@sixb/agent 0.2.3 → 0.2.5
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/README.md +3 -3
- package/dist/agent-prompt.d.ts.map +1 -1
- package/dist/artifacts/layout-check/layout-check.d.ts +21 -24
- package/dist/artifacts/layout-check/layout-check.d.ts.map +1 -1
- package/dist/artifacts/publish-tool.d.ts +26 -44
- package/dist/artifacts/publish-tool.d.ts.map +1 -1
- package/dist/ask-tool.d.ts +62 -0
- package/dist/ask-tool.d.ts.map +1 -0
- package/dist/attachments.d.ts +1 -1
- package/dist/attachments.d.ts.map +1 -1
- package/dist/background-commands.d.ts +3 -3
- package/dist/background-commands.d.ts.map +1 -1
- package/dist/background-notices.d.ts.map +1 -1
- package/dist/child-files.d.ts +1 -1
- package/dist/child-questions.d.ts +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10457 -7971
- package/dist/index.js.map +46 -38
- package/dist/run-agent-turn.d.ts +3 -14
- package/dist/run-agent-turn.d.ts.map +1 -1
- package/dist/run-conversation-turn.d.ts.map +1 -1
- package/dist/run-environment.d.ts +4 -1
- package/dist/run-environment.d.ts.map +1 -1
- package/dist/run-subagent.d.ts +1 -1
- package/dist/run-subagent.d.ts.map +1 -1
- package/dist/sandbox-api-context.d.ts.map +1 -1
- package/dist/search-script.d.ts +7 -0
- package/dist/search-script.d.ts.map +1 -0
- package/dist/skills/built-in.d.ts.map +1 -1
- package/dist/subagent-tools.d.ts +20 -1
- package/dist/subagent-tools.d.ts.map +1 -1
- package/dist/tools/background.d.ts +50 -18
- package/dist/tools/background.d.ts.map +1 -1
- package/dist/tools/bash.d.ts +1 -0
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/edit-text.d.ts +22 -0
- package/dist/tools/edit-text.d.ts.map +1 -0
- package/dist/tools/edit.d.ts +54 -0
- package/dist/tools/edit.d.ts.map +1 -0
- package/dist/tools/file-writes.d.ts +52 -0
- package/dist/tools/file-writes.d.ts.map +1 -0
- package/dist/tools/glob.d.ts +41 -0
- package/dist/tools/glob.d.ts.map +1 -0
- package/dist/tools/grep.d.ts +64 -0
- package/dist/tools/grep.d.ts.map +1 -0
- package/dist/tools/model-spec.d.ts.map +1 -1
- package/dist/tools/read.d.ts +16 -3
- package/dist/tools/read.d.ts.map +1 -1
- package/dist/tools/sandbox-search.d.ts +26 -0
- package/dist/tools/sandbox-search.d.ts.map +1 -0
- package/dist/tools/search/command.d.ts +15 -0
- package/dist/tools/search/command.d.ts.map +1 -0
- package/dist/tools/search/gitignore.d.ts +28 -0
- package/dist/tools/search/gitignore.d.ts.map +1 -0
- package/dist/tools/search/glob.d.ts +15 -0
- package/dist/tools/search/glob.d.ts.map +1 -0
- package/dist/tools/search/main.d.ts +2 -0
- package/dist/tools/search/main.d.ts.map +1 -0
- package/dist/tools/search/match.d.ts +30 -0
- package/dist/tools/search/match.d.ts.map +1 -0
- package/dist/tools/search/pattern.d.ts +19 -0
- package/dist/tools/search/pattern.d.ts.map +1 -0
- package/dist/tools/search/read.d.ts +62 -0
- package/dist/tools/search/read.d.ts.map +1 -0
- package/dist/tools/search/request.d.ts +80 -0
- package/dist/tools/search/request.d.ts.map +1 -0
- package/dist/tools/search/search.d.ts +4 -0
- package/dist/tools/search/search.d.ts.map +1 -0
- package/dist/tools/search/walk.d.ts +43 -0
- package/dist/tools/search/walk.d.ts.map +1 -0
- package/dist/tools/tool-outputs.d.ts.map +1 -1
- package/dist/tools/view-file.d.ts +20 -23
- package/dist/tools/view-file.d.ts.map +1 -1
- package/dist/tools/web-fetch/tool.d.ts +1 -0
- package/dist/tools/web-fetch/tool.d.ts.map +1 -1
- package/dist/tools/web-search.d.ts +1 -0
- package/dist/tools/web-search.d.ts.map +1 -1
- package/dist/tools/write.d.ts +36 -0
- package/dist/tools/write.d.ts.map +1 -0
- package/dist/turn-inbox.d.ts +75 -0
- package/dist/turn-inbox.d.ts.map +1 -0
- package/package.json +6 -4
- package/src/agent-prompt.ts +10 -9
- package/src/agent-runtime/preflight.ts +1 -0
- package/src/artifacts/layout-check/check.cjs +176 -95
- package/src/artifacts/layout-check/layout-check.ts +118 -76
- package/src/artifacts/publish-tool.ts +123 -192
- package/src/ask-tool.ts +223 -0
- package/src/attachments.ts +7 -6
- package/src/background-commands.ts +5 -5
- package/src/background-notices.ts +5 -12
- package/src/child-files.ts +1 -1
- package/src/child-questions.ts +1 -1
- package/src/context-compaction.ts +4 -1
- package/src/generated/search.mjs +985 -0
- package/src/index.ts +1 -2
- package/src/run-agent-turn.ts +99 -133
- package/src/run-child.ts +1 -1
- package/src/run-conversation-turn.ts +8 -5
- package/src/run-environment.ts +40 -21
- package/src/run-subagent.ts +4 -4
- package/src/sandbox-api-context.ts +3 -0
- package/src/search-script-assets.d.ts +5 -0
- package/src/search-script.ts +9 -0
- package/src/skills/built-in.ts +16 -0
- package/src/skills/sixb-artifacts/SKILL.md +13 -13
- package/src/skills/sixb-artifacts/canvas.md +5 -4
- package/src/skills/sixb-artifacts/document.md +92 -5
- package/src/skills/sixb-artifacts/examples/document/service-proposal/design.css +114 -0
- package/src/skills/sixb-artifacts/examples/document/service-proposal/document.html +159 -0
- package/src/skills/sixb-artifacts/examples/document/service-proposal/images/fieldwise.svg +1 -0
- package/src/skills/sixb-artifacts/examples/document/service-proposal/images/harbor-pine.svg +1 -0
- package/src/skills/sixb-artifacts/page.md +2 -2
- package/src/skills/sixb-artifacts/queries.md +2 -1
- package/src/skills/sixb-artifacts/slides.md +2 -2
- package/src/subagent-tools.ts +115 -81
- package/src/tools/background.ts +227 -67
- package/src/tools/bash.ts +2 -1
- package/src/tools/edit-text.ts +241 -0
- package/src/tools/edit.ts +166 -0
- package/src/tools/file-writes.ts +270 -0
- package/src/tools/glob.ts +124 -0
- package/src/tools/grep.ts +190 -0
- package/src/tools/model-spec.ts +13 -13
- package/src/tools/read.ts +75 -9
- package/src/tools/sandbox-search.ts +219 -0
- package/src/tools/search/command.ts +116 -0
- package/src/tools/search/gitignore.ts +101 -0
- package/src/tools/search/glob.ts +90 -0
- package/src/tools/search/main.ts +9 -0
- package/src/tools/search/match.ts +278 -0
- package/src/tools/search/pattern.ts +178 -0
- package/src/tools/search/read.ts +237 -0
- package/src/tools/search/request.ts +101 -0
- package/src/tools/search/search.ts +297 -0
- package/src/tools/search/walk.ts +145 -0
- package/src/tools/tool-outputs.ts +9 -4
- package/src/tools/view-file.ts +78 -80
- package/src/tools/web-fetch/tool.ts +2 -1
- package/src/tools/web-search.ts +1 -0
- package/src/tools/write.ts +95 -0
- package/src/turn-inbox.ts +283 -0
- package/dist/artifacts/board-previews.d.ts +0 -41
- package/dist/artifacts/board-previews.d.ts.map +0 -1
- package/dist/ask-parent-tool.d.ts +0 -36
- package/dist/ask-parent-tool.d.ts.map +0 -1
- package/src/artifacts/board-previews.ts +0 -218
- package/src/ask-parent-tool.ts +0 -100
package/dist/run-agent-turn.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { AgentMessagePart, AgentStepRequestSize } from "@sixb/core";
|
|
2
1
|
import { type AgentContextBudget, type AgentRunSession } from "@sixb/core/internal/agents";
|
|
3
2
|
import { type AgentRunRecord, type AppendAgentMessageInput, type ConversationAgentRunRecord } from "@sixb/core/storage";
|
|
4
3
|
import type { ResolvedAgentExecutionPlan } from "./execution-plan";
|
|
@@ -44,10 +43,10 @@ export interface RunAgentTurnInput {
|
|
|
44
43
|
readonly compactInTurn?: ConversationAgentExecutionEnvironment["compactInTurn"];
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
|
-
* Handed the answer so far after each step that completed, as the
|
|
48
|
-
* append: a turn that fails then records
|
|
46
|
+
* Handed the answer so far after each step that completed, as the messages the turn would
|
|
47
|
+
* append: a turn that fails then records them with its failure, and keeps that work.
|
|
49
48
|
*/
|
|
50
|
-
readonly onWork?: (
|
|
49
|
+
readonly onWork?: (messages: readonly AppendAgentMessageInput[]) => void;
|
|
51
50
|
}
|
|
52
51
|
/**
|
|
53
52
|
* How a turn hears the questions its children ask, leaves them waiting when it ends, and waits for
|
|
@@ -75,16 +74,6 @@ export declare function runAgentTurn(input: RunAgentTurnInput): Promise<AgentRun
|
|
|
75
74
|
* Whether the turn holds a call for its requester, as `runs.finish` checks before it pauses: one
|
|
76
75
|
* waiting, or decided and not reported to the model yet, its children's included.
|
|
77
76
|
*/
|
|
78
|
-
/**
|
|
79
|
-
* Mark each step from `fromStep` on as answering a request the turn reduced, for the next turn's
|
|
80
|
-
* estimate not to go by what those calls read.
|
|
81
|
-
*/
|
|
82
|
-
export declare function markReducedSteps(parts: readonly AgentMessagePart[], fromStep: number | undefined): readonly AgentMessagePart[];
|
|
83
|
-
/**
|
|
84
|
-
* Record on each step-start what its request carried, by step: the next turn's context meter
|
|
85
|
-
* reads the system prompt and tools the latest one sent.
|
|
86
|
-
*/
|
|
87
|
-
export declare function recordStepRequests(parts: readonly AgentMessagePart[], requests: readonly (AgentStepRequestSize | undefined)[]): readonly AgentMessagePart[];
|
|
88
77
|
/**
|
|
89
78
|
* Whether the worker's stop, rather than the user's, ended the turn. Whichever fired first wins:
|
|
90
79
|
* the combined turn signal carries the reason of the first source that aborted it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-agent-turn.d.ts","sourceRoot":"","sources":["../src/run-agent-turn.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-agent-turn.d.ts","sourceRoot":"","sources":["../src/run-agent-turn.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EAOrB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAEhC,MAAM,oBAAoB,CAAA;AAK3B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAm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QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,KAAK,IAAI,CAAA;CACzE;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,8FAA8F;IAC9F,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,uFAAuF;IACvF,MAAM,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrC;;;OAGG;IACH,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3C;AAED,+EAA+E;AAC/E,wBAAsB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC,CA2SpF;AAED;;;GAGG;AAEH;;;GAGG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE,WAAW,GAAG,OAAO,CAE1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-conversation-turn.d.ts","sourceRoot":"","sources":["../src/run-conversation-turn.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,eAAe,EAErB,MAAM,4BAA4B,CAAA;AAInC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,KAAK,EACV,cAAc,EAEd,iBAAiB,EAEjB,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EAClB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"run-conversation-turn.d.ts","sourceRoot":"","sources":["../src/run-conversation-turn.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,eAAe,EAErB,MAAM,4BAA4B,CAAA;AAInC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,KAAK,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mBAAmB,CAAC,KAAK,EAAE;IAC/C,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC,0BAA0B,CAAC,CAAA;IAC7D,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAA;IACvC,gFAAgF;IAChF,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;CAC7B,GAAG,OAAO,CAAC,IAAI,CAAC,CAkIhB"}
|
|
@@ -12,6 +12,7 @@ import { type BeforeFinalizeOptions, type RunSandbox } from "./run-sandbox";
|
|
|
12
12
|
import { type SubagentThreadContext } from "./subagent-context";
|
|
13
13
|
import type { SubagentHistory } from "./subagent-continuation";
|
|
14
14
|
import { type LoadedAgentThreadModelContext } from "./thread-context";
|
|
15
|
+
import { type WaitableChildren } from "./tools/background";
|
|
15
16
|
import type { AgentTurnRuntime } from "./turn-runtime";
|
|
16
17
|
import type { AgentExecutionContext, AgentRunFiles, AgentTurnContext } from "./types";
|
|
17
18
|
export interface AgentExecutionEnvironment {
|
|
@@ -86,6 +87,8 @@ export interface CreateConversationAgentEnvironmentInput extends CreateAgentEnvi
|
|
|
86
87
|
readonly history: AgentTurnHistory;
|
|
87
88
|
/** Framework-owned tools of the conversational Agent: delegation. */
|
|
88
89
|
readonly frameworkTools?: readonly ModelTool[];
|
|
90
|
+
/** Its children, which `wait` and `stop` reach beside its background commands. */
|
|
91
|
+
readonly children?: WaitableChildren;
|
|
89
92
|
}
|
|
90
93
|
export interface CreateSubagentEnvironmentInput extends CreateAgentEnvironmentInput {
|
|
91
94
|
/** The child's session: its workspace goes through it. */
|
|
@@ -99,7 +102,7 @@ export interface CreateSubagentEnvironmentInput extends CreateAgentEnvironmentIn
|
|
|
99
102
|
readonly requestedBy?: Principal;
|
|
100
103
|
/** Its thread's messages, whose files are projected again, and the paused run it continues. */
|
|
101
104
|
readonly history: SubagentHistory;
|
|
102
|
-
/** Framework-owned tools of a child: `
|
|
105
|
+
/** Framework-owned tools of a child: `ask`, to its parent. */
|
|
103
106
|
readonly frameworkTools?: readonly ModelTool[];
|
|
104
107
|
/** Weigh the thread before the first call, and compact it on the child's thread when needed. */
|
|
105
108
|
readonly preflight?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-environment.d.ts","sourceRoot":"","sources":["../src/run-environment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,cAAc,EACnB,KAAK,eAAe,EAGpB,KAAK,gBAAgB,EAGtB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,KAAK,EACV,4BAA4B,EAE5B,iBAAiB,EACjB,0BAA0B,EAC1B,iBAAiB,EACjB,0BAA0B,EAC3B,MAAM,oBAAoB,CAAA;AAwB3B,OAAO,EAGL,KAAK,mBAAmB,EAMzB,MAAM,sBAAsB,CAAA;AAI7B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAElE,OAAO,EAAE,KAAK,mBAAmB,EAAuB,MAAM,mBAAmB,CAAA;AACjF,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAqB,MAAM,kBAAkB,CAAA;AAClG,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EAChB,MAAM,eAAe,CAAA;AAUtB,OAAO,EAEL,KAAK,qBAAqB,EAI3B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EAA2B,KAAK,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"run-environment.d.ts","sourceRoot":"","sources":["../src/run-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AAkC,CACtD,KAAK,EAAE,uCAAuC,GAC7C,OAAO,CAAC,qCAAqC,CAAC,CAyNhD;AAED;;;;;;;;GAQG;AACH,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,8BAA8B,GACpC,OAAO,CAAC,iCAAiC,CAAC,CAsC5C;AAoND,mFAAmF;AACnF,wBAAsB,kCAAkC,CACtD,KAAK,EAAE,uCAAuC,GAC7C,OAAO,CAAC,yBAAyB,CAAC,CAqDpC"}
|
package/dist/run-subagent.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare function runSubagent(input: {
|
|
|
50
50
|
readonly runFiles: AgentRunFiles;
|
|
51
51
|
/**
|
|
52
52
|
* What its parent sends it while it runs, read before its next step, and the questions it asks,
|
|
53
|
-
* through the inbox's `
|
|
53
|
+
* through the inbox's `ask` among its tools.
|
|
54
54
|
*/
|
|
55
55
|
readonly inbox: SubagentInbox;
|
|
56
56
|
}): Promise<SubagentRunRecord>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-subagent.d.ts","sourceRoot":"","sources":["../src/run-subagent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EAKrB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAE5B,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAA;AAM3B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"run-subagent.d.ts","sourceRoot":"","sources":["../src/run-subagent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EAKrB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAEL,KAA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AQ,CAAC,MAAM,EAAE,iBAAiB,CAAA;IAClC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,2FAA2F;IAC3F,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAA;IAClC,gGAAgG;IAChG,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,CAAA;IAC5B,uFAAuF;IACvF,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAA;IAChC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;CAC9B,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA6G7B;AAkND;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,EAAE,aAAa,SAAI,GAAG,MAAM,CASrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-api-context.d.ts","sourceRoot":"","sources":["../src/sandbox-api-context.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,OAAO,EAER,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"sandbox-api-context.d.ts","sourceRoot":"","sources":["../src/sandbox-api-context.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,OAAO,EAER,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAA;AAInE;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,cAAc,CAAA;AACpD,eAAO,MAAM,wBAAwB,2BAA2B,CAAA;AAGhE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CAC/C;AAED,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,gFAAgF;IAChF,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;IACjC,sFAAsF;IACtF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,8BAA8B,CAAA;IACrD,QAAQ,CAAC,MAAM,EAAE,SAAS,oBAAoB,EAAE,CAAA;IAChD,iGAAiG;IACjG,QAAQ,CAAC,aAAa,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACnD,qFAAqF;IACrF,QAAQ,CAAC,SAAS,CAAC,EAAE,qBAAqB,CAAA;IAC1C,uEAAuE;IACvE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAA;CACjD;AAED,wBAAsB,6BAA6B,CACjD,KAAK,EAAE,kCAAkC,GACxC,OAAO,CAAC,sBAAsB,CAAC,CAoIjC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The engine of `glob` and `grep`, bundled from `tools/search/` by
|
|
3
|
+
* `bun run generate:search-script`. A run installs it at `lib/search.mjs` and runs it on Bun or
|
|
4
|
+
* Node. Part of this module, so that a program compiled to one file carries it too.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SEARCH_SCRIPT_SOURCE: Uint8Array;
|
|
7
|
+
//# sourceMappingURL=search-script.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-script.d.ts","sourceRoot":"","sources":["../src/search-script.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAA6C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../src/skills/built-in.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../src/skills/built-in.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAuGtD;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,oBAAoB,EA0CzD,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,oBAA4D,CAAA;AAEvF,oDAAoD;AACpD,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,SAAS,oBAAoB,EAAE,GAC7C,SAAS,oBAAoB,EAAE,CAEjC"}
|
package/dist/subagent-tools.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { type InstalledChildFile } from "./child-files";
|
|
|
6
6
|
import { type QuestionRef } from "./child-questions";
|
|
7
7
|
import { FamilyMailbox } from "./family-mailbox";
|
|
8
8
|
import type { TurnChildren } from "./run-agent-turn";
|
|
9
|
+
import type { WaitableChildren } from "./tools/background";
|
|
9
10
|
import type { AgentRunFiles, AgentRunSettings } from "./types";
|
|
10
11
|
/**
|
|
11
12
|
* How long a wait for children goes without reading their runs when nothing woke it. A child's
|
|
@@ -108,7 +109,7 @@ export interface WaitedQuestion extends QuestionRef {
|
|
|
108
109
|
}
|
|
109
110
|
export interface WaitForSubagentsOutput {
|
|
110
111
|
readonly results: readonly WaitedSubagentResult[];
|
|
111
|
-
/** Every question a child of this turn waits on: `
|
|
112
|
+
/** Every question a child of this turn waits on: `wait` returns as soon as one comes. */
|
|
112
113
|
readonly questions?: readonly WaitedQuestion[];
|
|
113
114
|
/** The files no earlier result held, in the order of `results`. */
|
|
114
115
|
readonly files: readonly InstalledChildFile[];
|
|
@@ -183,6 +184,15 @@ export declare class SubagentCoordinator {
|
|
|
183
184
|
*/
|
|
184
185
|
private pausedChildrenToContinue;
|
|
185
186
|
createTools(): Promise<readonly ModelTool[]>;
|
|
187
|
+
/** The turn's children as `wait` and `stop` reach them, by key or run id. */
|
|
188
|
+
waitable(): WaitableChildren;
|
|
189
|
+
/**
|
|
190
|
+
* Stop one of this turn's children, then return what `wait` returns for it once it ended: its
|
|
191
|
+
* answer so far, the files it wrote, the messages it did not read.
|
|
192
|
+
*/
|
|
193
|
+
stop(id: string, signal: AbortSignal): Promise<WaitForSubagentsOutput>;
|
|
194
|
+
/** The run a key names: this turn's child under it. A run id names itself. */
|
|
195
|
+
private childRunId;
|
|
186
196
|
/**
|
|
187
197
|
* Send a child a message, through the turn's mailbox. Its id names this turn, the model call and
|
|
188
198
|
* the tool call in it, so a replay of the call is the same message and the child reads it once,
|
|
@@ -236,6 +246,15 @@ export declare class SubagentCoordinator {
|
|
|
236
246
|
/** The open questions of the turn's children still at work, each with the child's key. */
|
|
237
247
|
private askingChildren;
|
|
238
248
|
spawn(input: SpawnSubagentInput, signal: AbortSignal): Promise<SpawnSubagentOutput>;
|
|
249
|
+
/**
|
|
250
|
+
* The runs these ids name. A run id names itself. A key names this turn's child under it, the one
|
|
251
|
+
* a spawn of this same step is admitting, or else the conversation's latest child under it, as
|
|
252
|
+
* `message_agent` finds one. Calls of one step run together, each starting once its call is
|
|
253
|
+
* published, so a wait may begin before the spawn beside it: a key that names nothing yet is
|
|
254
|
+
* looked up again a few times, a second at most. What is still missing the caller refuses.
|
|
255
|
+
*/
|
|
256
|
+
private resolveChildren;
|
|
257
|
+
private admitSpawn;
|
|
239
258
|
private admitInTurn;
|
|
240
259
|
/**
|
|
241
260
|
* What admission will answer, read before the files the child is handed: the child already
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subagent-tools.d.ts","sourceRoot":"","sources":["../src/subagent-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"subagent-tools.d.ts","sourceRoot":"","sources":["../src/subagent-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,cAAc,EAEnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,KAAK,0BAA0B,EAG/B,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EAQrB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAML,KAAK,SAAS,EACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,0BAA0B,EAE1B,iBAAiB,EAElB,MAAM,oBAAoB,CAAA;AAK3B,OAAO,EAEL,KAAK,kBAAkB,EAIxB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAsB,KAAK,WAAW,EAAwB,MAAM,mBAAmB,CAAA;AAC9F,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAGtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,OAAQ,CAAA;AAC1C;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAA;AAwBxC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,iBAAiB,CAAA;IACrD,QAAQ,CAAC,SAAS,CAAC,EAAE,cAAc,CAAA;IACnC,+DAA+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IAiB7B;;;OAGG;YACW,gBAAgB;IAS9B,qFAAqF;YACvE,cAAc;IAoB5B;;;;;OAKG;YACW,YAAY;IAwF1B,OAAO,CAAC,QAAQ;IAOhB,2EAA2E;IAC3E,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,YAAY;CAuBrB;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM,CA0C3E"}
|
|
@@ -1,17 +1,30 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { BackgroundCommands } from "../background-commands";
|
|
1
|
+
import { type ModelTool } from "@sixb/core/models";
|
|
2
|
+
import type { BackgroundCommandOutput, BackgroundCommands } from "../background-commands";
|
|
3
3
|
import type { AgentSandboxHandle } from "../sandbox-handle";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import type { WaitForSubagentsOutput } from "../subagent-tools";
|
|
5
|
+
/** Before `wait` and `stop`, a background command's tools: earlier threads hold calls to them. */
|
|
6
|
+
export declare const LEGACY_BACKGROUND_TOOLS: readonly ["bash_output", "bash_stop"];
|
|
7
|
+
/** Before `wait`, the Agent's wait for its children: earlier threads hold calls to it. */
|
|
8
|
+
export declare const LEGACY_WAIT_AGENT_TOOL = "wait_agent";
|
|
9
|
+
export declare const WAIT_TOOL_SPEC: {
|
|
10
|
+
readonly name: "wait";
|
|
11
|
+
readonly strict: true;
|
|
12
|
+
readonly description: string;
|
|
7
13
|
readonly inputSchema: {
|
|
8
14
|
type: string;
|
|
9
15
|
properties: {
|
|
10
|
-
|
|
16
|
+
ids: {
|
|
11
17
|
type: string;
|
|
18
|
+
minItems: number;
|
|
19
|
+
maxItems: number;
|
|
20
|
+
uniqueItems: true;
|
|
21
|
+
items: {
|
|
22
|
+
type: string;
|
|
23
|
+
minLength: number;
|
|
24
|
+
};
|
|
12
25
|
description: string;
|
|
13
26
|
};
|
|
14
|
-
|
|
27
|
+
timeoutMs: {
|
|
15
28
|
type: string;
|
|
16
29
|
description: string;
|
|
17
30
|
};
|
|
@@ -20,14 +33,16 @@ export declare const BASH_OUTPUT_TOOL_SPEC: {
|
|
|
20
33
|
additionalProperties: false;
|
|
21
34
|
};
|
|
22
35
|
};
|
|
23
|
-
export declare const
|
|
24
|
-
readonly name: "
|
|
25
|
-
readonly
|
|
36
|
+
export declare const STOP_TOOL_SPEC: {
|
|
37
|
+
readonly name: "stop";
|
|
38
|
+
readonly strict: true;
|
|
39
|
+
readonly description: "Stop work you started: a background command and all it started (SIGTERM, then SIGKILL after 3 s), or a child agent of this turn. Returns what wait would: how it ended, and its output or answer so far.";
|
|
26
40
|
readonly inputSchema: {
|
|
27
41
|
type: string;
|
|
28
42
|
properties: {
|
|
29
43
|
id: {
|
|
30
44
|
type: string;
|
|
45
|
+
minLength: number;
|
|
31
46
|
description: string;
|
|
32
47
|
};
|
|
33
48
|
};
|
|
@@ -35,16 +50,33 @@ export declare const BASH_STOP_TOOL_SPEC: {
|
|
|
35
50
|
additionalProperties: false;
|
|
36
51
|
};
|
|
37
52
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
53
|
+
/**
|
|
54
|
+
* The Agent's children, as `wait` and `stop` reach them: an id that names no background command
|
|
55
|
+
* names one of them, by its key or its run id.
|
|
56
|
+
*/
|
|
57
|
+
export interface WaitableChildren {
|
|
58
|
+
wait(ids: readonly string[], signal: AbortSignal): Promise<WaitForSubagentsOutput>;
|
|
59
|
+
stop(id: string, signal: AbortSignal): Promise<WaitForSubagentsOutput>;
|
|
60
|
+
}
|
|
61
|
+
/** What `wait` and `stop` return: the commands named, and the children's results. */
|
|
62
|
+
export interface WaitOutput extends Partial<Omit<WaitForSubagentsOutput, "files">> {
|
|
63
|
+
readonly commands?: readonly BackgroundCommandOutput[];
|
|
64
|
+
}
|
|
65
|
+
interface WaitToolInput {
|
|
66
|
+
readonly ids: readonly string[];
|
|
67
|
+
readonly timeoutMs?: number;
|
|
41
68
|
}
|
|
42
|
-
interface
|
|
69
|
+
interface StopToolInput {
|
|
43
70
|
readonly id: string;
|
|
44
71
|
}
|
|
45
|
-
/** `
|
|
46
|
-
export declare function
|
|
47
|
-
/** `
|
|
48
|
-
export declare function
|
|
72
|
+
/** `wait`: until the commands and children named end, a child asks, or the timeout passes. */
|
|
73
|
+
export declare function createWaitTool(resolveSandbox: () => Promise<AgentSandboxHandle>, commands: BackgroundCommands, children?: WaitableChildren): ModelTool<WaitToolInput>;
|
|
74
|
+
/** `stop`: stop a command or a child, then report how it ended and its output or answer so far. */
|
|
75
|
+
export declare function createStopTool(resolveSandbox: () => Promise<AgentSandboxHandle>, commands: BackgroundCommands, children?: WaitableChildren): ModelTool<StopToolInput>;
|
|
76
|
+
/**
|
|
77
|
+
* The background commands a tool's result reports, as each read it: `bash` and the tools before
|
|
78
|
+
* `wait` report one, `wait` and `stop` those they name.
|
|
79
|
+
*/
|
|
80
|
+
export declare function reportedCommands(toolName: string, output: unknown): readonly unknown[];
|
|
49
81
|
export {};
|
|
50
82
|
//# sourceMappingURL=background.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background.d.ts","sourceRoot":"","sources":["../../src/tools/background.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"background.d.ts","sourceRoot":"","sources":["../../src/tools/background.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoD,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACpG,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAEzF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAQ/D,kGAAkG;AAClG,eAAO,MAAM,uBAAuB,uCAAwC,CAAA;AAE5E,0FAA0F;AAC1F,eAAO,MAAM,sBAAsB,eAAe,CAAA;AAElD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;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 -4,6 +4,7 @@ import type { BackgroundCommands } from "../background-commands";
|
|
|
4
4
|
import type { AgentSandboxHandle } from "../sandbox-handle";
|
|
5
5
|
export declare const BASH_TOOL_SPEC: {
|
|
6
6
|
readonly name: "bash";
|
|
7
|
+
readonly strict: true;
|
|
7
8
|
readonly description: string;
|
|
8
9
|
readonly inputSchema: {
|
|
9
10
|
type: string;
|
package/dist/tools/bash.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AACrE,OAAO,KAAK,EAAyB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,KAAK,EAA0B,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAExF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAO3D,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AACrE,OAAO,KAAK,EAAyB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,KAAK,EAA0B,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAExF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAO3D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BjB,CAAA;AAEV,UAAU,aAAa;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;CACrC;AAED,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CAClC;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,cAAc,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,EACjD,UAAU,EAAE,kBAAkB,GAC7B,SAAS,CAAC,aAAa,CAAC,CAoC1B;AAsED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,cAAc,CAEvE;AAiBD,UAAU,cAAc;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;CAC5B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,cAAc,CAe7E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The text half of `edit`: find `old` in a file, replace it, and describe the change as a unified
|
|
3
|
+
* diff, or say where to look when it does not match. No sandbox here, so it is tested on strings.
|
|
4
|
+
*/
|
|
5
|
+
export type EditTextResult = {
|
|
6
|
+
readonly ok: true;
|
|
7
|
+
readonly text: string;
|
|
8
|
+
readonly replaced: number;
|
|
9
|
+
readonly diff: string;
|
|
10
|
+
/** Lines the change adds and removes, all of them: the diff may be cut. */
|
|
11
|
+
readonly added: number;
|
|
12
|
+
readonly removed: number;
|
|
13
|
+
} | {
|
|
14
|
+
readonly ok: false;
|
|
15
|
+
readonly reason: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function editText(text: string, input: {
|
|
18
|
+
readonly old: string;
|
|
19
|
+
readonly new: string;
|
|
20
|
+
readonly all: boolean;
|
|
21
|
+
}): EditTextResult;
|
|
22
|
+
//# sourceMappingURL=edit-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-text.d.ts","sourceRoot":"","sources":["../../src/tools/edit-text.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,MAAM,cAAc,GACtB;IACE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;IACjB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB,GACD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnD,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GAC3E,cAAc,CAsChB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ModelTool } from "@sixb/core/models";
|
|
2
|
+
import type { AgentSandboxHandle } from "../sandbox-handle";
|
|
3
|
+
import { type FileReadLedger, type LoadedSandboxFile } from "./file-writes";
|
|
4
|
+
export declare const EDIT_TOOL_SPEC: {
|
|
5
|
+
readonly name: "edit";
|
|
6
|
+
readonly strict: true;
|
|
7
|
+
readonly description: "Replace text in a file. old_string must match the file exactly, once, unless replace_all is true. Read the file first: an edit refuses a file that changed since you read it. Returns the change as a diff, so there is no need to read the file again to check it.";
|
|
8
|
+
readonly inputSchema: {
|
|
9
|
+
type: string;
|
|
10
|
+
properties: {
|
|
11
|
+
path: {
|
|
12
|
+
type: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
old_string: {
|
|
16
|
+
type: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
new_string: {
|
|
20
|
+
type: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
replace_all: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
required: string[];
|
|
29
|
+
additionalProperties: false;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export interface EditToolInput {
|
|
33
|
+
readonly path: string;
|
|
34
|
+
readonly old_string: string;
|
|
35
|
+
readonly new_string: string;
|
|
36
|
+
readonly replace_all?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface EditToolOutput {
|
|
39
|
+
readonly path: string;
|
|
40
|
+
readonly replaced: number;
|
|
41
|
+
/** Unified diff of the change, with line numbers; cut past a few thousand characters. */
|
|
42
|
+
readonly diff: string;
|
|
43
|
+
/** Lines the change adds and removes, all of them, however short the diff was cut. */
|
|
44
|
+
readonly added: number;
|
|
45
|
+
readonly removed: number;
|
|
46
|
+
}
|
|
47
|
+
export declare function createEditTool(resolveSandbox: () => Promise<AgentSandboxHandle>, ledger: FileReadLedger): ModelTool<EditToolInput>;
|
|
48
|
+
/** An existing file is changed only as the run last read or wrote it. */
|
|
49
|
+
export declare function assertReadAsIs(ledger: FileReadLedger, loaded: Extract<LoadedSandboxFile, {
|
|
50
|
+
kind: "file";
|
|
51
|
+
}>, path: string, tool: string): void;
|
|
52
|
+
export declare function objectInput(value: unknown, tool: string, keys: readonly string[]): Record<string, unknown>;
|
|
53
|
+
export declare function pathInput(value: unknown, tool: string): string;
|
|
54
|
+
//# sourceMappingURL=edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../src/tools/edit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAyB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAEzE,OAAO,KAAK,EAAE,kBAAkB,EAA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MAAM,CAK9D"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { AgentToolPublicError } from "@sixb/core";
|
|
2
|
+
import { type AgentSandboxHandle } from "../sandbox-handle";
|
|
3
|
+
/** The largest file `edit` changes and `write` writes: a whole file passes through the harness. */
|
|
4
|
+
export declare const MAX_EDITED_FILE_BYTES: number;
|
|
5
|
+
/**
|
|
6
|
+
* What a run has read, by real path: the file's fingerprint (`cksum`: CRC and size) when it read
|
|
7
|
+
* it. `edit` and `write` change an existing file only when it is the file the run read, so a change
|
|
8
|
+
* made since, by the user, another process or the run's own `bash`, is never overwritten blind.
|
|
9
|
+
*/
|
|
10
|
+
export declare class FileReadLedger {
|
|
11
|
+
#private;
|
|
12
|
+
record(realPath: string, fingerprint: string): void;
|
|
13
|
+
get(realPath: string): string | undefined;
|
|
14
|
+
}
|
|
15
|
+
export type LoadedSandboxFile = {
|
|
16
|
+
readonly kind: "missing";
|
|
17
|
+
} | {
|
|
18
|
+
readonly kind: "file";
|
|
19
|
+
readonly realPath: string;
|
|
20
|
+
readonly fingerprint: string;
|
|
21
|
+
readonly bytes: Uint8Array;
|
|
22
|
+
};
|
|
23
|
+
/** Read a whole file for `edit` or `write`: where it really is, its fingerprint and its bytes. */
|
|
24
|
+
export declare function loadSandboxFile(handle: AgentSandboxHandle, input: {
|
|
25
|
+
readonly path: string;
|
|
26
|
+
readonly tool: string;
|
|
27
|
+
readonly signal: AbortSignal;
|
|
28
|
+
}): Promise<LoadedSandboxFile>;
|
|
29
|
+
/**
|
|
30
|
+
* Write `bytes` to `path` when the file there is still `expected` (a fingerprint, or `missing`
|
|
31
|
+
* for a file to create), keeping an existing file's mode. Missing parent directories are created
|
|
32
|
+
* inside the run's roots. Returns where the file is and its new fingerprint.
|
|
33
|
+
*/
|
|
34
|
+
export declare function commitSandboxFile(handle: AgentSandboxHandle, input: {
|
|
35
|
+
readonly path: string;
|
|
36
|
+
readonly expected: string;
|
|
37
|
+
readonly bytes: Uint8Array;
|
|
38
|
+
readonly tool: string;
|
|
39
|
+
readonly signal: AbortSignal;
|
|
40
|
+
}): Promise<{
|
|
41
|
+
readonly realPath: string;
|
|
42
|
+
readonly fingerprint: string;
|
|
43
|
+
}>;
|
|
44
|
+
export declare function publicError(tool: string, message: string): AgentToolPublicError;
|
|
45
|
+
export declare function isFingerprint(value: string): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Bash functions shared with `read`: a file's fingerprint as `crc:size` from `cksum`, and a real
|
|
48
|
+
* path on one line (empty when the path holds a newline, which then goes unrecorded). Neither
|
|
49
|
+
* needs `tr` or `awk`, which some sandbox images lack.
|
|
50
|
+
*/
|
|
51
|
+
export declare const FINGERPRINT_FUNCTIONS = "fingerprint() {\n local sum rest\n sum=\"$(cksum < \"$1\")\" || return 1\n rest=\"${sum#* }\"\n printf '%s:%s\\n' \"${sum%% *}\" \"${rest%% *}\"\n}\nprint_path() {\n case \"$1\" in *$'\\n'*) printf '\\n' ;; *) printf '%s\\n' \"$1\" ;; esac\n}";
|
|
52
|
+
//# sourceMappingURL=file-writes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-writes.d.ts","sourceRoot":"","sources":["../../src/tools/file-writes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAsB,MAAM,YAAY,CAAA;AAErE,OAAO,EAAE,KAAK,kBAAkB,EAAe,MAAM,mBAAmB,CAAA;AAExE,mGAAmG;AACnG,eAAO,MAAM,qBAAqB,QAAc,CAAA;AAShD;;;;GAIG;AACH,qBAAa,cAAc;;IAGzB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;IAInD,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAG1C;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IACE,QAAQ,CAAC,IAAI,EA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|
5
|
+
readonly strict: true;
|
|
6
|
+
readonly description: "Find files by name. A pattern without / matches at any depth (*.md finds every Markdown file); one with / matches from path (src/**/*.ts). Supports *, **, ?, [abc] and {a,b}. Skips .git and what .gitignore excludes, and hidden files and node_modules unless the pattern names them. Returns at most 100 paths, sorted. Prefer this over bash to find files.";
|
|
7
|
+
readonly inputSchema: {
|
|
8
|
+
type: string;
|
|
9
|
+
properties: {
|
|
10
|
+
pattern: {
|
|
11
|
+
type: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
path: {
|
|
15
|
+
type: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
required: string[];
|
|
20
|
+
additionalProperties: false;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export interface GlobToolInput {
|
|
24
|
+
readonly pattern: string;
|
|
25
|
+
readonly path?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface GlobToolOutput {
|
|
28
|
+
readonly pattern: string;
|
|
29
|
+
/** As the call named it; `.` for the working directory. */
|
|
30
|
+
readonly path: string;
|
|
31
|
+
/** Relative to the working directory when under it, absolute otherwise. */
|
|
32
|
+
readonly files: readonly string[];
|
|
33
|
+
/** More files match than the 100 listed. */
|
|
34
|
+
readonly truncated: boolean;
|
|
35
|
+
/** The search stopped at its deadline. */
|
|
36
|
+
readonly incomplete?: true;
|
|
37
|
+
}
|
|
38
|
+
export declare function createGlobTool(resolveSandbox: () => Promise<AgentSandboxHandle>): ModelTool<GlobToolInput>;
|
|
39
|
+
/** One path per line, then what the list leaves out. */
|
|
40
|
+
export declare function globModelText(output: GlobToolOutput): string;
|
|
41
|
+
//# sourceMappingURL=glob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../src/tools/glob.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAEzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAY3D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;CAkBjB,CAAA;AAEV,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;IACjC,4CAA4C;IAC5C,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,0CAA0C;IAC1C,QAAQ,CAAC,UAAU,CAAC,EAAE,IAAI,CAAA;CAC3B;AAED,wBAAgB,cAAc,CAC5B,cAAc,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,GAChD,SAAS,CAAC,aAAa,CAAC,CA4B1B;AAED,wDAAwD;AACxD,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAS5D"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { ModelTool } from "@sixb/core/models";
|
|
2
|
+
import type { AgentSandboxHandle } from "../sandbox-handle";
|
|
3
|
+
import type { GrepMatch } from "./search/request";
|
|
4
|
+
export declare const GREP_TOOL_SPEC: {
|
|
5
|
+
readonly name: "grep";
|
|
6
|
+
readonly strict: true;
|
|
7
|
+
readonly description: "Search file contents with a JavaScript regular expression, or with literal text. Case is ignored unless the pattern has an uppercase letter. Searches hidden files, and skips .git, node_modules, what .gitignore excludes, binary files and files over 10 MiB. Matches the first 4,000 characters of a line. Returns matching lines grouped by file, at most 100 in all and 20 per file, with line numbers that read takes as its offset. Prefer this over bash to search text.";
|
|
8
|
+
readonly inputSchema: {
|
|
9
|
+
type: string;
|
|
10
|
+
properties: {
|
|
11
|
+
pattern: {
|
|
12
|
+
type: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
path: {
|
|
16
|
+
type: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
include: {
|
|
20
|
+
type: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
literal: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
required: string[];
|
|
29
|
+
additionalProperties: false;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export interface GrepToolInput {
|
|
33
|
+
readonly pattern: string;
|
|
34
|
+
readonly path?: string;
|
|
35
|
+
readonly include?: string;
|
|
36
|
+
readonly literal?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface GrepToolOutput {
|
|
39
|
+
readonly pattern: string;
|
|
40
|
+
/** As the call named it; `.` for the working directory. */
|
|
41
|
+
readonly path: string;
|
|
42
|
+
/** Paths relative to the working directory when under it, absolute otherwise. */
|
|
43
|
+
readonly matches: readonly GrepMatch[];
|
|
44
|
+
/** How many files the matches are in. */
|
|
45
|
+
readonly files: number;
|
|
46
|
+
/** Matching lines past the 20 a file shows, by path. */
|
|
47
|
+
readonly more?: Readonly<Record<string, number>>;
|
|
48
|
+
/** Another file matches past the 100 lines shown. */
|
|
49
|
+
readonly truncated: boolean;
|
|
50
|
+
/** The search stopped at its deadline. */
|
|
51
|
+
readonly incomplete?: true;
|
|
52
|
+
}
|
|
53
|
+
export declare function createGrepTool(resolveSandbox: () => Promise<AgentSandboxHandle>): ModelTool<GrepToolInput>;
|
|
54
|
+
/**
|
|
55
|
+
* Matches grouped by file, each line with its number, then how many more the file holds:
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
* src/config.ts
|
|
59
|
+
* 12: const retries = 3
|
|
60
|
+
* … 7 more in this file
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export declare function grepModelText(output: GrepToolOutput): string;
|
|
64
|
+
//# sourceMappingURL=grep.d.ts.map
|