@sbo3l/agentforce
v1.2.0
Published
Salesforce Agentforce action adapter for SBO3L — gate Agentforce action invocations through the policy boundary.
Downloads
125
Maintainers
Readme
@sbo3l/agentforce
SBO3L adapter for the Agentforce agent / API surface.
npm i @sbo3l/agentforce @sbo3l/sdkWiring
import { SBO3LClient } from "@sbo3l/sdk";
import { sbo3lAgentforceAction, runSbo3lAgentforceAction } from "@sbo3l/agentforce";
const sbo3l = new SBO3LClient({ endpoint: "http://localhost:8730" });
const tool = sbo3lAgentforceAction({ client: sbo3l });
// Hand `tool.descriptor` to Agentforce's tool registry.
// Pair each emitted tool call with `runSbo3lAgentforceAction`.Behaviour
- allow →
{ ok: true, output: PolicyReceipt } - deny / requires_human →
{ ok: false, output: { error, deny_code, audit_event_id } } - transport fail →
{ ok: false, output: { error: "transport.failed", detail } }
The runner never re-throws — every outcome is a structured envelope so the framework's loop can branch and self-correct.
Tests
npm test # 11 vitest passing
npm run typecheck
npm run build # ESM + CJS + d.ts