zidane 1.6.6 → 1.6.7
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/dist/{agent-0Tafyla0.d.ts → agent-CXMcPke1.d.ts} +61 -56
- package/dist/{chunk-NNMWWSBY.js → chunk-5LOHDFK3.js} +13 -5
- package/dist/{chunk-F4BVVP67.js → chunk-GCALAOLD.js} +21 -18
- package/dist/{chunk-KG63Q5KF.js → chunk-Z2NZSEBZ.js} +1 -1
- package/dist/harnesses.d.ts +1 -1
- package/dist/harnesses.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/{spawn-Bm1ihQ_K.d.ts → spawn-BUUQxLIp.d.ts} +1 -1
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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:
|
|
524
|
-
|
|
525
|
-
|
|
553
|
+
'tool:gate': (ctx: ToolHookContext & {
|
|
554
|
+
block: boolean;
|
|
555
|
+
reason: string;
|
|
526
556
|
}) => void;
|
|
527
|
-
'tool:
|
|
528
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
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:
|
|
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:
|
|
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 {
|
|
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,
|
|
57
|
-
|
|
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
|
-
|
|
61
|
-
|
|
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-
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
}
|
package/dist/harnesses.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'hookable';
|
|
2
|
-
export { H as Harness, i as HarnessConfig,
|
|
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-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
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,
|
|
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-
|
|
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-
|
|
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-
|
|
13
|
+
} from "./chunk-GCALAOLD.js";
|
|
14
14
|
import {
|
|
15
15
|
connectMcpServers
|
|
16
|
-
} from "./chunk-
|
|
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,
|
|
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
package/dist/providers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as AnthropicParams, C as CerebrasParams, O as OpenRouterParams, P as Provider,
|
|
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,
|
|
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 {
|
|
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-
|
|
2
|
-
import {
|
|
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
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,
|
|
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-
|
|
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';
|