@makerbi/openclaude 0.20.1 → 0.21.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makerbi/openclaude",
3
- "version": "0.20.1",
3
+ "version": "0.21.0",
4
4
  "description": "OpenClaude opens coding-agent workflows to any LLM — OpenAI, Gemini, DeepSeek, Ollama, and 200+ models",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1532,6 +1532,7 @@ export type AgentDefinition = {
1532
1532
  skills?: string[]
1533
1533
  initialPrompt?: string
1534
1534
  maxTurns?: number
1535
+ maxSteps?: number
1535
1536
  background?: boolean
1536
1537
  memory?: "user" | "project" | "local"
1537
1538
  effort?: "low" | "medium" | "high" | "xhigh" | "max" | number
@@ -288,12 +288,18 @@ export type QueryOptions = {
288
288
  | { type: 'custom'; content: string }
289
289
  /** Agent definitions to register with the query engine. */
290
290
  agents?: Record<string, {
291
- description: string
291
+ description?: string
292
292
  prompt: string
293
+ /**
294
+ * Tool allowlist for this agent. If omitted or set to ['*'], the agent can use
295
+ * all tools available to subagents after disallowedTools is applied.
296
+ */
293
297
  tools?: string[]
298
+ /** Tool denylist for this agent. Deny entries always override tools entries. */
294
299
  disallowedTools?: string[]
295
300
  model?: string
296
301
  maxTurns?: number
302
+ maxSteps?: number
297
303
  }>
298
304
  settingSources?: string[]
299
305
  /** When true, yields stream_event messages for token-by-token streaming. */
@@ -403,6 +409,21 @@ export type SDKSessionOptions = {
403
409
  onPermissionRequest?: (message: SDKPermissionRequestMessage) => void
404
410
  /** Tools to disallow (blanket deny by tool name). */
405
411
  disallowedTools?: string[]
412
+ /** Agent definitions to register with the session engine. */
413
+ agents?: Record<string, {
414
+ description?: string
415
+ prompt: string
416
+ /**
417
+ * Tool allowlist for this agent. If omitted or set to ['*'], the agent can use
418
+ * all tools available to subagents after disallowedTools is applied.
419
+ */
420
+ tools?: string[]
421
+ /** Tool denylist for this agent. Deny entries always override tools entries. */
422
+ disallowedTools?: string[]
423
+ model?: string
424
+ maxTurns?: number
425
+ maxSteps?: number
426
+ }>
406
427
  }
407
428
 
408
429
  export interface SDKSession {