@clawdstrike/openai
v0.2.7
Published
In-process tool boundary hooks for the OpenAI Agents SDK
Maintainers
Readme
@clawdstrike/openai
In-process tool-boundary hooks for the OpenAI Agents SDK.
This package is intentionally runtime-agnostic: you wire it into the layer that actually executes tools (file/network/command/etc).
See Enforcement Tiers & Integration Contract for what this does and does not prevent (and what requires a sandbox/broker).
Install
npm install @clawdstrike/openai @clawdstrike/engine-localUsage
import { createStrikeCell } from '@clawdstrike/engine-local';
import { OpenAIToolBoundary, wrapOpenAIToolDispatcher } from '@clawdstrike/openai';
const engine = createStrikeCell({ policyRef: 'default' });
const boundary = new OpenAIToolBoundary({ engine });
// Drop-in wrapper around your real dispatcher:
const dispatchTool = wrapOpenAIToolDispatcher(boundary, async (toolName, input, runId) => {
// ...execute the tool...
return { toolName, input, runId };
});
await dispatchTool('bash', { cmd: 'echo hello' }, 'run-123');