ZeroLeaks SDK
Changelog
Changes to the ZeroLeaks SDK.
0.5.0
- Runtime scans contain tool calls by default. Side-effecting tools and calls to hosts outside your allowlist return a simulated result, and the call is still recorded as evidence.
- Pass
containment: falseto run tools for real. See tools and side effects. - Upgrade with
bun add @zeroleaks/sdk@^0.5.0.
0.4.0
- The optional AI SDK adapter moves to AI SDK 7. It needs
ai@^7, andaiSdk()accepts AI SDK 7's runtime-context type. - Projects still on AI SDK 6 should stay on 0.3.x.
- Upgrade with
bun add @zeroleaks/sdk@^0.4.0.
0.3.0
- Adds types for the remaining agent report fields: component findings, the secrets-in-context summary, defense fingerprints, campaign state, and the attack-path search tree.
- Adds
plantedSecretto endpoint configurations. - Deprecates
scans.createandscans.run. Both methods reject withPROMPT_SCANS_RETIREDbecause hosted prompt scans are retired. componentsnames its four components instead of usingRecord<string, unknown>, andboundaryAssuranceis typed instead ofunknown. Handwritten test reports must include all four components and every requiredboundaryAssurancefield. To castboundaryAssuranceto your own interface, cast throughunknown.- Upgrade with
bun add @zeroleaks/sdk@^0.3.0.
0.2.2
- The complete production probe catalog is the default for runtime scans.
- Isolated sessions run concurrently.
- The SDK detects stalled hosted workers.