zidane 1.6.6 → 1.6.8

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.
@@ -127,6 +127,35 @@ interface ChildRunStats {
127
127
  task: string;
128
128
  stats: AgentStats;
129
129
  }
130
+ /** Base context for tool execution hooks */
131
+ interface ToolHookContext {
132
+ turnId: string;
133
+ callId: string;
134
+ name: string;
135
+ input: Record<string, unknown>;
136
+ }
137
+ /** Base context for MCP tool hooks */
138
+ interface McpToolHookContext {
139
+ turnId: string;
140
+ callId: string;
141
+ server: string;
142
+ tool: string;
143
+ input: Record<string, unknown>;
144
+ }
145
+ /** Base context for session hooks */
146
+ interface SessionHookContext {
147
+ sessionId: string;
148
+ }
149
+ /** Base context for spawn hooks */
150
+ interface SpawnHookContext {
151
+ id: string;
152
+ task: string;
153
+ }
154
+ /** Context for stream hooks */
155
+ interface StreamHookContext {
156
+ turnId: string;
157
+ }
158
+ type SessionEndStatus = 'completed' | 'aborted' | 'error';
130
159
 
131
160
  interface AnthropicParams {
132
161
  apiKey?: string;
@@ -239,6 +268,10 @@ interface ToolContext {
239
268
  hooks: Hookable<AgentHooks>;
240
269
  /** The harness config for this agent (tools available to the agent) */
241
270
  harness: HarnessConfig;
271
+ /** Turn ID that requested this tool call */
272
+ turnId: string;
273
+ /** Tool call ID from the model */
274
+ callId: string;
242
275
  }
243
276
  interface ToolDef {
244
277
  spec: ToolSpec;
@@ -506,43 +539,29 @@ interface AgentHooks {
506
539
  usage: TurnUsage;
507
540
  message: SessionTurn;
508
541
  }) => void;
509
- 'stream:text': (ctx: {
542
+ 'stream:text': (ctx: StreamHookContext & {
510
543
  delta: string;
511
544
  text: string;
512
- turnId: string;
513
545
  }) => void;
514
- 'stream:end': (ctx: {
546
+ 'stream:end': (ctx: StreamHookContext & {
515
547
  text: string;
516
- turnId: string;
517
548
  }) => void;
518
- 'stream:thinking': (ctx: {
549
+ 'stream:thinking': (ctx: StreamHookContext & {
519
550
  delta: string;
520
551
  thinking: string;
521
- turnId: string;
522
552
  }) => void;
523
- 'tool:before': (ctx: {
524
- name: string;
525
- input: Record<string, unknown>;
553
+ 'tool:gate': (ctx: ToolHookContext & {
554
+ block: boolean;
555
+ reason: string;
526
556
  }) => void;
527
- 'tool:after': (ctx: {
528
- name: string;
529
- input: Record<string, unknown>;
557
+ 'tool:before': (ctx: ToolHookContext) => void;
558
+ 'tool:after': (ctx: ToolHookContext & {
530
559
  result: string;
531
560
  }) => void;
532
- 'tool:error': (ctx: {
533
- name: string;
534
- input: Record<string, unknown>;
561
+ 'tool:error': (ctx: ToolHookContext & {
535
562
  error: Error;
536
563
  }) => void;
537
- 'tool:gate': (ctx: {
538
- name: string;
539
- input: Record<string, unknown>;
540
- block: boolean;
541
- reason: string;
542
- }) => void;
543
- 'tool:transform': (ctx: {
544
- name: string;
545
- input: Record<string, unknown>;
564
+ 'tool:transform': (ctx: ToolHookContext & {
546
565
  result: string;
547
566
  isError: boolean;
548
567
  }) => void;
@@ -552,14 +571,9 @@ interface AgentHooks {
552
571
  'steer:inject': (ctx: {
553
572
  message: string;
554
573
  }) => void;
574
+ 'spawn:before': (ctx: SpawnHookContext) => void;
555
575
  'spawn:complete': (ctx: ChildRunStats) => void;
556
- 'spawn:before': (ctx: {
557
- id: string;
558
- task: string;
559
- }) => void;
560
- 'spawn:error': (ctx: {
561
- id: string;
562
- task: string;
576
+ 'spawn:error': (ctx: SpawnHookContext & {
563
577
  error: Error;
564
578
  }) => void;
565
579
  'mcp:connect': (ctx: {
@@ -574,21 +588,18 @@ interface AgentHooks {
574
588
  'mcp:close': (ctx: {
575
589
  name: string;
576
590
  }) => void;
577
- 'mcp:tool:before': (ctx: {
578
- server: string;
579
- tool: string;
580
- input: Record<string, unknown>;
591
+ 'mcp:tool:gate': (ctx: McpToolHookContext & {
592
+ block: boolean;
593
+ reason: string;
594
+ }) => void;
595
+ 'mcp:tool:before': (ctx: McpToolHookContext) => void;
596
+ 'mcp:tool:after': (ctx: McpToolHookContext & {
597
+ result: string;
581
598
  }) => void;
582
- 'mcp:tool:after': (ctx: {
583
- server: string;
584
- tool: string;
585
- input: Record<string, unknown>;
599
+ 'mcp:tool:transform': (ctx: McpToolHookContext & {
586
600
  result: string;
587
601
  }) => void;
588
- 'mcp:tool:error': (ctx: {
589
- server: string;
590
- tool: string;
591
- input: Record<string, unknown>;
602
+ 'mcp:tool:error': (ctx: McpToolHookContext & {
592
603
  error: Error;
593
604
  }) => void;
594
605
  'skills:resolve': (ctx: {
@@ -614,29 +625,23 @@ interface AgentHooks {
614
625
  }) => void;
615
626
  'agent:abort': (ctx: object) => void;
616
627
  'agent:done': (ctx: AgentStats) => void;
617
- 'session:start': (ctx: {
618
- sessionId: string;
628
+ 'session:start': (ctx: SessionHookContext & {
619
629
  runId: string;
620
630
  prompt: string;
621
631
  }) => void;
622
- 'session:end': (ctx: {
623
- sessionId: string;
632
+ 'session:end': (ctx: SessionHookContext & {
624
633
  runId: string;
625
- status: 'completed' | 'aborted' | 'error';
634
+ status: SessionEndStatus;
626
635
  turnRange: [number, number];
627
636
  }) => void;
628
- 'session:turns': (ctx: {
629
- sessionId: string;
637
+ 'session:turns': (ctx: SessionHookContext & {
630
638
  count: number;
631
639
  }) => void;
632
- 'session:meta': (ctx: {
633
- sessionId: string;
640
+ 'session:meta': (ctx: SessionHookContext & {
634
641
  key: string;
635
642
  value: unknown;
636
643
  }) => void;
637
- 'session:save': (ctx: {
638
- sessionId: string;
639
- }) => void;
644
+ 'session:save': (ctx: SessionHookContext) => void;
640
645
  }
641
646
  interface AgentOptions {
642
647
  /** Harness (tools + system prompt). Defaults to a no-tools harness if omitted. */
@@ -674,4 +679,4 @@ interface Agent {
674
679
  }
675
680
  declare function createAgent({ harness: harnessOption, provider, behavior: agentBehavior, execution, mcpServers, session, skills: agentSkills, _mcpConnector }: AgentOptions): Agent;
676
681
 
677
- export { cerebras as $, type Agent as A, type TurnResult as B, type CerebrasParams as C, type TurnUsage as D, autoDetectAndConvert as E, connectMcpServers as F, createAgent as G, type Harness as H, type ImageContent as I, createMemoryStore as J, createRemoteStore as K, createSession as L, type McpConnection as M, createSqliteStore as N, type OpenRouterParams as O, type Provider as P, defineHarness as Q, type RemoteStoreOptions as R, type Session as S, type ThinkingLevel as T, fromAnthropic as U, fromOpenAI as V, loadSession as W, noTools as X, toAnthropic as Y, toOpenAI as Z, anthropic as _, type AgentBehavior as a, openrouter as a0, _default as a1, basicTools as a2, resultToString as a3, type AgentHooks as b, type AgentOptions as c, type AgentRunOptions as d, type AgentStats as e, type AnthropicParams as f, type ChildRunStats as g, type CreateSessionOptions as h, type HarnessConfig as i, type McpServerConfig as j, type SessionContentBlock as k, type SessionData as l, type SessionMessage as m, type SessionRun as n, type SessionStore as o, type SessionTurn as p, type SqliteStoreOptions as q, type StreamCallbacks as r, type StreamOptions as s, type ToolCall as t, type ToolContext as u, type ToolDef as v, type ToolExecutionMode as w, type ToolMap as x, type ToolResult as y, type ToolSpec as z };
682
+ export { fromOpenAI as $, type Agent as A, type ToolDef as B, type CerebrasParams as C, type ToolExecutionMode as D, type ToolHookContext as E, type ToolMap as F, type ToolResult as G, type Harness as H, type ImageContent as I, type ToolSpec as J, type TurnResult as K, type TurnUsage as L, type McpConnection as M, autoDetectAndConvert as N, type OpenRouterParams as O, type Provider as P, connectMcpServers as Q, type RemoteStoreOptions as R, type Session as S, type ThinkingLevel as T, createAgent as U, createMemoryStore as V, createRemoteStore as W, createSession as X, createSqliteStore as Y, defineHarness as Z, fromAnthropic as _, type AgentBehavior as a, loadSession as a0, noTools as a1, toAnthropic as a2, toOpenAI as a3, anthropic as a4, cerebras as a5, openrouter as a6, _default as a7, basicTools as a8, resultToString as a9, type AgentHooks as b, type AgentOptions as c, type AgentRunOptions as d, type AgentStats as e, type AnthropicParams as f, type ChildRunStats as g, type CreateSessionOptions as h, type HarnessConfig as i, type McpServerConfig as j, type McpToolHookContext as k, type SessionContentBlock as l, type SessionData as m, type SessionEndStatus as n, type SessionHookContext as o, type SessionMessage as p, type SessionRun as q, type SessionStore as r, type SessionTurn as s, type SpawnHookContext as t, type SqliteStoreOptions as u, type StreamCallbacks as v, type StreamHookContext as w, type StreamOptions as x, type ToolCall as y, type ToolContext as z };
@@ -53,15 +53,23 @@ async function connectMcpServers(configs, _clientFactory, hooks) {
53
53
  description: tool.description || "",
54
54
  inputSchema: tool.inputSchema ?? { type: "object", properties: {} }
55
55
  },
56
- execute: async (input, _ctx) => {
57
- await hooks?.callHook("mcp:tool:before", { server: config.name, tool: tool.name, input });
56
+ execute: async (input, ctx) => {
57
+ const { turnId, callId } = ctx;
58
+ const gateCtx = { turnId, callId, server: config.name, tool: tool.name, input, block: false, reason: "MCP tool execution was blocked" };
59
+ await hooks?.callHook("mcp:tool:gate", gateCtx);
60
+ if (gateCtx.block)
61
+ return `Blocked: ${gateCtx.reason}`;
62
+ await hooks?.callHook("mcp:tool:before", { turnId, callId, server: config.name, tool: tool.name, input });
58
63
  try {
59
64
  const result = await client.callTool({ name: tool.name, arguments: input });
60
- const output = resultToString(result.content);
61
- await hooks?.callHook("mcp:tool:after", { server: config.name, tool: tool.name, input, result: output });
65
+ let output = resultToString(result.content);
66
+ const transformCtx = { turnId, callId, server: config.name, tool: tool.name, input, result: output };
67
+ await hooks?.callHook("mcp:tool:transform", transformCtx);
68
+ output = transformCtx.result;
69
+ await hooks?.callHook("mcp:tool:after", { turnId, callId, server: config.name, tool: tool.name, input, result: output });
62
70
  return output;
63
71
  } catch (err) {
64
- await hooks?.callHook("mcp:tool:error", { server: config.name, tool: tool.name, input, error: err });
72
+ await hooks?.callHook("mcp:tool:error", { turnId, callId, server: config.name, tool: tool.name, input, error: err });
65
73
  throw err;
66
74
  }
67
75
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  connectMcpServers
3
- } from "./chunk-NNMWWSBY.js";
3
+ } from "./chunk-5LOHDFK3.js";
4
4
  import {
5
5
  buildCatalog,
6
6
  interpolateShellCommands,
@@ -504,7 +504,7 @@ async function executeTurn(ctx, turn) {
504
504
  }
505
505
  return { ended: true, turnId, usage: result.usage };
506
506
  }
507
- const toolResults = ctx.toolExecution === "parallel" ? await executeToolsParallel(ctx, result.toolCalls) : await executeToolsSequential(ctx, result.toolCalls);
507
+ const toolResults = ctx.toolExecution === "parallel" ? await executeToolsParallel(ctx, result.toolCalls, turnId) : await executeToolsSequential(ctx, result.toolCalls, turnId);
508
508
  const toolResultMsg = ctx.provider.toolResultsMessage(toolResults);
509
509
  ctx.turns.push({
510
510
  id: await ctx.generateTurnId(),
@@ -515,23 +515,24 @@ async function executeTurn(ctx, turn) {
515
515
  });
516
516
  return { ended: false, turnId, usage: result.usage };
517
517
  }
518
- async function executeSingleTool(ctx, call) {
518
+ async function executeSingleTool(ctx, call, turnId) {
519
519
  const toolDef = ctx.tools[call.name];
520
- const gateCtx = { name: call.name, input: call.input, block: false, reason: "Tool execution was blocked" };
520
+ const callId = call.id;
521
+ const gateCtx = { turnId, callId, name: call.name, input: call.input, block: false, reason: "Tool execution was blocked" };
521
522
  await ctx.hooks.callHook("tool:gate", gateCtx);
522
523
  if (gateCtx.block) {
523
- return { result: { id: call.id, content: `Blocked: ${gateCtx.reason}` } };
524
+ return { result: { id: callId, content: `Blocked: ${gateCtx.reason}` } };
524
525
  }
525
526
  if (!toolDef) {
526
527
  const err = new Error(`Unknown tool: ${call.name}`);
527
- await ctx.hooks.callHook("tool:error", { name: call.name, input: call.input, error: err });
528
- return { result: { id: call.id, content: `Tool error: ${err.message}` } };
528
+ await ctx.hooks.callHook("tool:error", { turnId, callId, name: call.name, input: call.input, error: err });
529
+ return { result: { id: callId, content: `Tool error: ${err.message}` } };
529
530
  }
530
531
  const validation = validateToolArgs(call.input, toolDef.spec.inputSchema);
531
532
  if (!validation.valid) {
532
- return { result: { id: call.id, content: `Validation error: ${validation.error}` } };
533
+ return { result: { id: callId, content: `Validation error: ${validation.error}` } };
533
534
  }
534
- await ctx.hooks.callHook("tool:before", { name: call.name, input: call.input });
535
+ await ctx.hooks.callHook("tool:before", { turnId, callId, name: call.name, input: call.input });
535
536
  let output;
536
537
  let isError = false;
537
538
  try {
@@ -541,22 +542,24 @@ async function executeSingleTool(ctx, call) {
541
542
  execution: ctx.execution,
542
543
  handle: ctx.handle,
543
544
  hooks: ctx.hooks,
544
- harness: ctx.harness
545
+ harness: ctx.harness,
546
+ turnId,
547
+ callId
545
548
  };
546
549
  output = await toolDef.execute(call.input, toolCtx);
547
550
  } catch (err) {
548
- await ctx.hooks.callHook("tool:error", { name: call.name, input: call.input, error: err });
551
+ await ctx.hooks.callHook("tool:error", { turnId, callId, name: call.name, input: call.input, error: err });
549
552
  output = `Tool error: ${err.message}`;
550
553
  isError = true;
551
554
  }
552
- const transformCtx = { name: call.name, input: call.input, result: output, isError };
555
+ const transformCtx = { turnId, callId, name: call.name, input: call.input, result: output, isError };
553
556
  await ctx.hooks.callHook("tool:transform", transformCtx);
554
557
  output = transformCtx.result;
555
558
  isError = transformCtx.isError;
556
- await ctx.hooks.callHook("tool:after", { name: call.name, input: call.input, result: output });
557
- return { result: { id: call.id, content: output } };
559
+ await ctx.hooks.callHook("tool:after", { turnId, callId, name: call.name, input: call.input, result: output });
560
+ return { result: { id: callId, content: output } };
558
561
  }
559
- async function executeToolsSequential(ctx, toolCalls) {
562
+ async function executeToolsSequential(ctx, toolCalls, turnId) {
560
563
  const results = [];
561
564
  for (const call of toolCalls) {
562
565
  if (ctx.signal.aborted)
@@ -585,13 +588,13 @@ async function executeToolsSequential(ctx, toolCalls) {
585
588
  });
586
589
  return [];
587
590
  }
588
- const { result } = await executeSingleTool(ctx, call);
591
+ const { result } = await executeSingleTool(ctx, call, turnId);
589
592
  results.push(result);
590
593
  }
591
594
  return results;
592
595
  }
593
- async function executeToolsParallel(ctx, toolCalls) {
594
- const executions = toolCalls.map((call) => executeSingleTool(ctx, call));
596
+ async function executeToolsParallel(ctx, toolCalls, turnId) {
597
+ const executions = toolCalls.map((call) => executeSingleTool(ctx, call, turnId));
595
598
  const settled = await Promise.all(executions);
596
599
  return settled.map((s) => s.result);
597
600
  }
@@ -4,7 +4,7 @@ import {
4
4
  shell,
5
5
  spawn,
6
6
  writeFile
7
- } from "./chunk-F4BVVP67.js";
7
+ } from "./chunk-GCALAOLD.js";
8
8
 
9
9
  // src/harnesses/basic.ts
10
10
  var basicTools = { shell, readFile, writeFile, listFiles };
@@ -1,4 +1,4 @@
1
1
  import 'hookable';
2
- export { H as Harness, i as HarnessConfig, u as ToolContext, v as ToolDef, x as ToolMap, a1 as basic, a2 as basicTools, Q as defineHarness, X as noTools } from './agent-0Tafyla0.js';
2
+ export { H as Harness, i as HarnessConfig, z as ToolContext, B as ToolDef, F as ToolMap, a7 as basic, a8 as basicTools, Z as defineHarness, a1 as noTools } from './agent-CXMcPke1.js';
3
3
  import './types-CKXAp41h.js';
4
4
  import '@modelcontextprotocol/sdk/client/index.js';
package/dist/harnesses.js CHANGED
@@ -3,9 +3,9 @@ import {
3
3
  basic_default,
4
4
  defineHarness,
5
5
  noTools
6
- } from "./chunk-KG63Q5KF.js";
7
- import "./chunk-F4BVVP67.js";
8
- import "./chunk-NNMWWSBY.js";
6
+ } from "./chunk-Z2NZSEBZ.js";
7
+ import "./chunk-GCALAOLD.js";
8
+ import "./chunk-5LOHDFK3.js";
9
9
  import "./chunk-4C6Y56CC.js";
10
10
  export {
11
11
  basic_default as basic,
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { A as Agent, a as AgentBehavior, b as AgentHooks, c as AgentOptions, d as AgentRunOptions, e as AgentStats, h as CreateSessionOptions, H as Harness, i as HarnessConfig, I as ImageContent, M as McpConnection, j as McpServerConfig, R as RemoteStoreOptions, S as Session, k as SessionContentBlock, l as SessionData, m as SessionMessage, n as SessionRun, o as SessionStore, p as SessionTurn, q as SqliteStoreOptions, T as ThinkingLevel, u as ToolContext, v as ToolDef, w as ToolExecutionMode, x as ToolMap, D as TurnUsage, E as autoDetectAndConvert, F as connectMcpServers, G as createAgent, J as createMemoryStore, K as createRemoteStore, L as createSession, N as createSqliteStore, Q as defineHarness, U as fromAnthropic, V as fromOpenAI, W as loadSession, X as noTools, Y as toAnthropic, Z as toOpenAI } from './agent-0Tafyla0.js';
1
+ export { A as Agent, a as AgentBehavior, b as AgentHooks, c as AgentOptions, d as AgentRunOptions, e as AgentStats, h as CreateSessionOptions, H as Harness, i as HarnessConfig, I as ImageContent, M as McpConnection, j as McpServerConfig, k as McpToolHookContext, R as RemoteStoreOptions, S as Session, l as SessionContentBlock, m as SessionData, n as SessionEndStatus, o as SessionHookContext, p as SessionMessage, q as SessionRun, r as SessionStore, s as SessionTurn, t as SpawnHookContext, u as SqliteStoreOptions, w as StreamHookContext, T as ThinkingLevel, z as ToolContext, B as ToolDef, D as ToolExecutionMode, E as ToolHookContext, F as ToolMap, L as TurnUsage, N as autoDetectAndConvert, Q as connectMcpServers, U as createAgent, V as createMemoryStore, W as createRemoteStore, X as createSession, Y as createSqliteStore, Z as defineHarness, _ as fromAnthropic, $ as fromOpenAI, a0 as loadSession, a1 as noTools, a2 as toAnthropic, a3 as toOpenAI } from './agent-CXMcPke1.js';
2
2
  import { f as SpawnConfig, b as ExecutionContext } from './types-CKXAp41h.js';
3
3
  export { C as ContextCapabilities, a as ContextType, E as ExecResult, c as ExecutionHandle, S as SkillConfig, d as SkillResource, e as SkillsConfig } from './types-CKXAp41h.js';
4
4
  export { S as SandboxProvider, c as createSandboxContext } from './sandbox-DZn3ybp_.js';
5
5
  export { buildCatalog, defineSkill, discoverSkills, interpolateShellCommands, mergeSkillsConfig, parseSkillFile, resolveSkills, validateSkillName, writeSkillToDisk, writeSkillsToDisk } from './skills.js';
6
- export { C as ChildAgent, I as InteractionToolOptions, S as SpawnToolOptions, a as SpawnToolState, c as createInteractionTool, b as createSpawnTool, s as spawn } from './spawn-Bm1ihQ_K.js';
6
+ export { C as ChildAgent, I as InteractionToolOptions, S as SpawnToolOptions, a as SpawnToolState, c as createInteractionTool, b as createSpawnTool, s as spawn } from './spawn-BUUQxLIp.js';
7
7
  import 'hookable';
8
8
  import '@modelcontextprotocol/sdk/client/index.js';
9
9
 
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  defineHarness,
3
3
  noTools
4
- } from "./chunk-KG63Q5KF.js";
4
+ } from "./chunk-Z2NZSEBZ.js";
5
5
  import {
6
6
  createAgent,
7
7
  createDockerContext,
@@ -10,10 +10,10 @@ import {
10
10
  createSandboxContext,
11
11
  createSpawnTool,
12
12
  spawn
13
- } from "./chunk-F4BVVP67.js";
13
+ } from "./chunk-GCALAOLD.js";
14
14
  import {
15
15
  connectMcpServers
16
- } from "./chunk-NNMWWSBY.js";
16
+ } from "./chunk-5LOHDFK3.js";
17
17
  import {
18
18
  createMemoryStore,
19
19
  createRemoteStore,
package/dist/mcp.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import 'hookable';
2
- export { M as McpConnection, j as McpServerConfig, F as connectMcpServers, a3 as resultToString } from './agent-0Tafyla0.js';
2
+ export { M as McpConnection, j as McpServerConfig, Q as connectMcpServers, a9 as resultToString } from './agent-CXMcPke1.js';
3
3
  import '@modelcontextprotocol/sdk/client/index.js';
4
4
  import './types-CKXAp41h.js';
package/dist/mcp.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  connectMcpServers,
3
3
  resultToString
4
- } from "./chunk-NNMWWSBY.js";
4
+ } from "./chunk-5LOHDFK3.js";
5
5
  export {
6
6
  connectMcpServers,
7
7
  resultToString
@@ -1,4 +1,4 @@
1
- export { f as AnthropicParams, C as CerebrasParams, O as OpenRouterParams, P as Provider, r as StreamCallbacks, s as StreamOptions, t as ToolCall, y as ToolResult, z as ToolSpec, B as TurnResult, _ as anthropic, $ as cerebras, a0 as openrouter } from './agent-0Tafyla0.js';
1
+ export { f as AnthropicParams, C as CerebrasParams, O as OpenRouterParams, P as Provider, v as StreamCallbacks, x as StreamOptions, y as ToolCall, G as ToolResult, J as ToolSpec, K as TurnResult, a4 as anthropic, a5 as cerebras, a6 as openrouter } from './agent-CXMcPke1.js';
2
2
  import 'hookable';
3
3
  import './types-CKXAp41h.js';
4
4
  import '@modelcontextprotocol/sdk/client/index.js';
package/dist/session.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { h as CreateSessionOptions, R as RemoteStoreOptions, S as Session, k as SessionContentBlock, l as SessionData, m as SessionMessage, n as SessionRun, o as SessionStore, p as SessionTurn, q as SqliteStoreOptions, E as autoDetectAndConvert, J as createMemoryStore, K as createRemoteStore, L as createSession, N as createSqliteStore, U as fromAnthropic, V as fromOpenAI, W as loadSession, Y as toAnthropic, Z as toOpenAI } from './agent-0Tafyla0.js';
1
+ export { h as CreateSessionOptions, R as RemoteStoreOptions, S as Session, l as SessionContentBlock, m as SessionData, p as SessionMessage, q as SessionRun, r as SessionStore, s as SessionTurn, u as SqliteStoreOptions, N as autoDetectAndConvert, V as createMemoryStore, W as createRemoteStore, X as createSession, Y as createSqliteStore, _ as fromAnthropic, $ as fromOpenAI, a0 as loadSession, a2 as toAnthropic, a3 as toOpenAI } from './agent-CXMcPke1.js';
2
2
  import 'hookable';
3
3
  import './types-CKXAp41h.js';
4
4
  import '@modelcontextprotocol/sdk/client/index.js';
@@ -1,4 +1,4 @@
1
- import { v as ToolDef, i as HarnessConfig, e as AgentStats } from './agent-0Tafyla0.js';
1
+ import { B as ToolDef, i as HarnessConfig, e as AgentStats } from './agent-CXMcPke1.js';
2
2
 
3
3
  /**
4
4
  * Interaction tool — lets the agent request structured input from the outside world.
package/dist/tools.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { C as ChildAgent, I as InteractionToolOptions, S as SpawnToolOptions, a as SpawnToolState, c as createInteractionTool, b as createSpawnTool, s as spawn } from './spawn-Bm1ihQ_K.js';
2
- import { v as ToolDef } from './agent-0Tafyla0.js';
1
+ export { C as ChildAgent, I as InteractionToolOptions, S as SpawnToolOptions, a as SpawnToolState, c as createInteractionTool, b as createSpawnTool, s as spawn } from './spawn-BUUQxLIp.js';
2
+ import { B as ToolDef } from './agent-CXMcPke1.js';
3
3
  export { V as ValidationResult, v as validateToolArgs } from './validation-DOY_k7lW.js';
4
4
  import 'hookable';
5
5
  import './types-CKXAp41h.js';
package/dist/tools.js CHANGED
@@ -7,8 +7,8 @@ import {
7
7
  spawn,
8
8
  validateToolArgs,
9
9
  writeFile
10
- } from "./chunk-F4BVVP67.js";
11
- import "./chunk-NNMWWSBY.js";
10
+ } from "./chunk-GCALAOLD.js";
11
+ import "./chunk-5LOHDFK3.js";
12
12
  import "./chunk-4C6Y56CC.js";
13
13
  export {
14
14
  createInteractionTool,
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { A as Agent, a as AgentBehavior, b as AgentHooks, c as AgentOptions, d as AgentRunOptions, e as AgentStats, f as AnthropicParams, C as CerebrasParams, g as ChildRunStats, h as CreateSessionOptions, H as Harness, i as HarnessConfig, I as ImageContent, M as McpConnection, j as McpServerConfig, O as OpenRouterParams, P as Provider, R as RemoteStoreOptions, S as Session, k as SessionContentBlock, l as SessionData, m as SessionMessage, n as SessionRun, o as SessionStore, p as SessionTurn, q as SqliteStoreOptions, r as StreamCallbacks, s as StreamOptions, T as ThinkingLevel, t as ToolCall, u as ToolContext, v as ToolDef, w as ToolExecutionMode, x as ToolMap, y as ToolResult, z as ToolSpec, B as TurnResult, D as TurnUsage } from './agent-0Tafyla0.js';
1
+ export { A as Agent, a as AgentBehavior, b as AgentHooks, c as AgentOptions, d as AgentRunOptions, e as AgentStats, f as AnthropicParams, C as CerebrasParams, g as ChildRunStats, h as CreateSessionOptions, H as Harness, i as HarnessConfig, I as ImageContent, M as McpConnection, j as McpServerConfig, k as McpToolHookContext, O as OpenRouterParams, P as Provider, R as RemoteStoreOptions, S as Session, l as SessionContentBlock, m as SessionData, n as SessionEndStatus, o as SessionHookContext, p as SessionMessage, q as SessionRun, r as SessionStore, s as SessionTurn, t as SpawnHookContext, u as SqliteStoreOptions, v as StreamCallbacks, w as StreamHookContext, x as StreamOptions, T as ThinkingLevel, y as ToolCall, z as ToolContext, B as ToolDef, D as ToolExecutionMode, E as ToolHookContext, F as ToolMap, G as ToolResult, J as ToolSpec, K as TurnResult, L as TurnUsage } from './agent-CXMcPke1.js';
2
2
  export { C as ContextCapabilities, a as ContextType, E as ExecResult, b as ExecutionContext, c as ExecutionHandle, S as SkillConfig, d as SkillResource, e as SkillsConfig, f as SpawnConfig } from './types-CKXAp41h.js';
3
3
  export { S as SandboxProvider } from './sandbox-DZn3ybp_.js';
4
- export { C as ChildAgent, I as InteractionToolOptions, S as SpawnToolOptions, a as SpawnToolState } from './spawn-Bm1ihQ_K.js';
4
+ export { C as ChildAgent, I as InteractionToolOptions, S as SpawnToolOptions, a as SpawnToolState } from './spawn-BUUQxLIp.js';
5
5
  export { V as ValidationResult } from './validation-DOY_k7lW.js';
6
6
  import 'hookable';
7
7
  import '@modelcontextprotocol/sdk/client/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zidane",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "an agent that goes straight to the goal",
5
5
  "type": "module",
6
6
  "private": false,