You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add defender config option to StackOneToolSet
Adds a `defender` option to the `StackOneToolSet` constructor that allows
controlling prompt injection detection behavior at the toolset level.
- Add `DefenderConfig` interface with `enabled`, `blockHighRisk`,
`useTier1Classification`, and `useTier2Classification` fields —
matching canonical `DefenderSettings` names from `@stackone/core`
- Add `defender_enabled` to `rpcActionRequestSchema` so it is no longer
silently dropped by Zod validation
- Forward `defender_enabled` through `RpcClient.rpcAction()` request body
- Thread `defenderConfig.enabled` → `defender_enabled` in every RPC call
made by `createRpcBackedTool`
- Export `DefenderConfig` from the package index
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments