zidane 1.6.16 → 1.6.17
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/{chunk-MUX6RBUV.js → chunk-KLFSGJE4.js} +1 -1
- package/dist/{chunk-FKG35KT3.js → chunk-OJATGJ5F.js} +2 -2
- package/dist/harnesses.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{spawn-xwRhPoH7.d.ts → spawn-hNTJA3Iw.d.ts} +3 -3
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -21,8 +21,8 @@ function createInteractionTool(options) {
|
|
|
21
21
|
description,
|
|
22
22
|
inputSchema: options.schema
|
|
23
23
|
},
|
|
24
|
-
async execute(input) {
|
|
25
|
-
const result = await options.onRequest(input);
|
|
24
|
+
async execute(input, ctx) {
|
|
25
|
+
const result = await options.onRequest(input, ctx);
|
|
26
26
|
return typeof result === "string" ? result : JSON.stringify(result);
|
|
27
27
|
}
|
|
28
28
|
};
|
package/dist/harnesses.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
basic_default,
|
|
4
4
|
defineHarness,
|
|
5
5
|
noTools
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-KLFSGJE4.js";
|
|
7
|
+
import "./chunk-OJATGJ5F.js";
|
|
8
8
|
import "./chunk-4C6Y56CC.js";
|
|
9
9
|
import "./chunk-SZA4FKW5.js";
|
|
10
10
|
import "./chunk-WDBO3JCO.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { S as SandboxProvider, c as createSandboxContext } from './sandbox-CW72e
|
|
|
4
4
|
export { C as ContextCapabilities, a as ContextType, E as ExecResult, b as ExecutionContext, c as ExecutionHandle, S as SpawnConfig } from './types-BpvTmawk.js';
|
|
5
5
|
export { buildCatalog, defineSkill, discoverSkills, interpolateShellCommands, mergeSkillsConfig, parseSkillFile, resolveSkills, validateSkillName, writeSkillToDisk, writeSkillsToDisk } from './skills.js';
|
|
6
6
|
export { S as SkillConfig, a as SkillResource, b as SkillsConfig } from './types-CDI8Kmve.js';
|
|
7
|
-
export { C as ChildAgent, I as InteractionToolOptions, S as SpawnToolOptions, a as SpawnToolState, c as createInteractionTool, b as createSpawnTool, s as spawn } from './spawn-
|
|
7
|
+
export { C as ChildAgent, I as InteractionToolOptions, S as SpawnToolOptions, a as SpawnToolState, c as createInteractionTool, b as createSpawnTool, s as spawn } from './spawn-hNTJA3Iw.js';
|
|
8
8
|
import 'hookable';
|
|
9
9
|
import '@modelcontextprotocol/sdk/client/index.js';
|
|
10
10
|
|
package/dist/index.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
defineHarness,
|
|
6
6
|
noTools
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KLFSGJE4.js";
|
|
8
8
|
import {
|
|
9
9
|
createAgent,
|
|
10
10
|
createInteractionTool,
|
|
11
11
|
createSpawnTool,
|
|
12
12
|
spawn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OJATGJ5F.js";
|
|
14
14
|
import {
|
|
15
15
|
buildCatalog,
|
|
16
16
|
discoverSkills,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as ToolDef, i as HarnessConfig, e as AgentStats } from './agent-CtGvwTdo.js';
|
|
1
|
+
import { z as ToolContext, B as ToolDef, i as HarnessConfig, e as AgentStats } from './agent-CtGvwTdo.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interaction tool — lets the agent request structured input from the outside world.
|
|
@@ -25,8 +25,8 @@ interface InteractionToolOptions {
|
|
|
25
25
|
name?: string;
|
|
26
26
|
/** Tool description shown to the model */
|
|
27
27
|
description?: string;
|
|
28
|
-
/** Called when the model invokes this tool. Receives the validated payload, returns data for the model. */
|
|
29
|
-
onRequest: (payload: Record<string, unknown
|
|
28
|
+
/** Called when the model invokes this tool. Receives the validated payload and tool context, returns data for the model. */
|
|
29
|
+
onRequest: (payload: Record<string, unknown>, ctx: ToolContext) => Promise<Record<string, unknown> | string>;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Create an interaction tool that lets the agent request structured input.
|
package/dist/tools.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-hNTJA3Iw.js';
|
|
2
2
|
import { B as ToolDef } from './agent-CtGvwTdo.js';
|
|
3
3
|
export { V as ValidationResult, v as validateToolArgs } from './validation-DOY_k7lW.js';
|
|
4
4
|
import 'hookable';
|
package/dist/tools.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { A as Agent, a as AgentBehavior, b as AgentHooks, c as AgentOptions, d a
|
|
|
2
2
|
export { C as ContextCapabilities, a as ContextType, E as ExecResult, b as ExecutionContext, c as ExecutionHandle, S as SpawnConfig } from './types-BpvTmawk.js';
|
|
3
3
|
export { S as SandboxProvider } from './sandbox-CW72eLDP.js';
|
|
4
4
|
export { S as SkillConfig, a as SkillResource, b as SkillsConfig } from './types-CDI8Kmve.js';
|
|
5
|
-
export { C as ChildAgent, I as InteractionToolOptions, S as SpawnToolOptions, a as SpawnToolState } from './spawn-
|
|
5
|
+
export { C as ChildAgent, I as InteractionToolOptions, S as SpawnToolOptions, a as SpawnToolState } from './spawn-hNTJA3Iw.js';
|
|
6
6
|
export { V as ValidationResult } from './validation-DOY_k7lW.js';
|
|
7
7
|
import 'hookable';
|
|
8
8
|
import '@modelcontextprotocol/sdk/client/index.js';
|