@atbash/sdk 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -119,8 +119,6 @@ interface JudgeOptions {
119
119
  endpoint?: string; // API base URL (default: https://atbash.ai)
120
120
  timeout?: number; // Request timeout in ms
121
121
  provider?: string; // "openai" | "google" | "microsoft" | "custom"
122
- apiKey?: string; // API key for the AI provider
123
- providerEndpoint?: string; // Endpoint for microsoft/custom providers
124
122
  model?: string; // Model override (e.g. "gpt-4o-mini")
125
123
  toolName?: string; // Tool name for audit trail
126
124
  toolArgsJson?: string; // Tool arguments JSON for audit trail
@@ -227,10 +225,9 @@ const result = await judgeAction(action, context, auth, {
227
225
  endpoint: "https://your-instance.example.com",
228
226
  });
229
227
 
230
- // Custom provider
228
+ // Custom provider (API keys are saved in the dashboard, not passed here)
231
229
  const result = await judgeAction(action, context, auth, {
232
230
  provider: "openai",
233
- apiKey: process.env.OPENAI_API_KEY,
234
231
  model: "gpt-4o",
235
232
  });
236
233
 
@@ -290,7 +287,7 @@ API error 404: {"error":"Agent not registered..."}
290
287
  | `Agent is jailed` | BLOCK verdict triggered auto-jail (Enforcement tier) | [atbash.ai/risk-engine/agents](https://atbash.ai/risk-engine/agents) |
291
288
  | `Org tier does not support verdicts` | Org is on Audit tier | [atbash.ai/risk-engine/settings](https://atbash.ai/risk-engine/settings) |
292
289
  | `API error 400: action is required` | Empty action string | Fix caller |
293
- | `API error 502: Incorrect API key` | Invalid provider API key | Check `apiKey` in `JudgeOptions` |
290
+ | `API error 502: Incorrect API key` | Invalid provider API key | Check saved key at [atbash.ai/risk-engine/settings](https://atbash.ai/risk-engine/settings) |
294
291
 
295
292
  ```ts
296
293
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atbash/sdk",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Atbash SDK — control boundary before the last irreversible step in an agent workflow",
5
5
  "homepage": "https://atbash.ai",
6
6
  "author": "Atbash",