@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/README.md
CHANGED
|
@@ -7,8 +7,8 @@ both to the harness.
|
|
|
7
7
|
```text
|
|
8
8
|
runner (the cloud worker today) harness (@sixb/agent)
|
|
9
9
|
claims the run → AgentRunSession builds the prompt and tools, runs the loop, finishes
|
|
10
|
-
opens its environment → openSandbox
|
|
11
|
-
publish_artifact · children
|
|
10
|
+
opens its environment → openSandbox read · edit · write · glob · grep · bash · wait ·
|
|
11
|
+
stop · publish_artifact · children
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
```text
|
|
@@ -16,7 +16,7 @@ runAgentTurn a conversation turn
|
|
|
16
16
|
runSubagent a child agent's run
|
|
17
17
|
runWorkflowAgentNode a workflow agent step: the loop, then the structured finalizer
|
|
18
18
|
create*AgentEnvironment the run's prompt, tools and files, in the environment its runner opens
|
|
19
|
-
SubagentCoordinator spawn_agent,
|
|
19
|
+
SubagentCoordinator spawn_agent, message_agent, children for wait and stop, their questions
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
A run reaches shared state only through its session (see
|
|
@@ -1 +1 @@
|
|
|
1
|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B,wBAAwB,CAAC,KAAK,EAAE;IAC9C,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAA;IAClC,QAAQ,CAAC,YAAY,EAAE,SAAS,kBAAkB,EAAE,CAAA;CACrD,GAAG,MAAM,CAsBT;AAoBD,kFAAkF;AAClF,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EAChD,SAAS,EAAE,IAAI,EACf,QAAQ,EAAE,YAAY,GACrB,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAGzC;AAED,iGAAiG;AACjG,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,GAAG,MAAM,CAY3E"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import type { ArtifactTheme,
|
|
1
|
+
import type { ArtifactTheme, Canvas, DocumentPaper } from "@sixb/core/artifacts";
|
|
2
2
|
import { type FrameLayout, type LayoutProblem } from "@sixb/core/internal/artifacts/frames";
|
|
3
3
|
import { type ArtifactQueryAnswer } from "@sixb/core/internal/artifacts/publish";
|
|
4
|
-
import type { ArtifactBoardPreviewSize } from "@sixb/core/storage";
|
|
5
4
|
import { type AgentSandboxHandle } from "../../sandbox-handle";
|
|
6
5
|
/** What the layout check found, for the publish tool to report beside the version. */
|
|
7
6
|
export type LayoutCheck = {
|
|
8
7
|
readonly status: "checked";
|
|
9
8
|
readonly warnings: readonly LayoutWarning[];
|
|
10
|
-
/** One per slide,
|
|
9
|
+
/** One per slide, a page's at each width, or a document's pages, as the agent names them. */
|
|
11
10
|
readonly screenshots: readonly string[];
|
|
12
|
-
/**
|
|
13
|
-
readonly
|
|
11
|
+
/** How many pages a designed document with paper was cut into. */
|
|
12
|
+
readonly pages?: number;
|
|
14
13
|
/** A canvas as it opens in the app, as the agent names it, when the check took it. */
|
|
15
14
|
readonly overview?: string;
|
|
16
15
|
} | {
|
|
@@ -33,19 +32,6 @@ export interface CheckedBoard {
|
|
|
33
32
|
readonly w: number;
|
|
34
33
|
readonly h: number;
|
|
35
34
|
readonly html: Uint8Array;
|
|
36
|
-
/** Screenshot in every mode, not only the first: it needs its pictures for readers. */
|
|
37
|
-
readonly pictured?: boolean;
|
|
38
|
-
}
|
|
39
|
-
/** A board's picture in one mode and size, which the check took. */
|
|
40
|
-
export interface CheckedPreview {
|
|
41
|
-
readonly board: string;
|
|
42
|
-
readonly theme: ArtifactThemeMode;
|
|
43
|
-
/** `full`, a PNG of the board; `small`, a WebP at most 480 pixels wide. */
|
|
44
|
-
readonly size: ArtifactBoardPreviewSize;
|
|
45
|
-
/** Absolute, in the sandbox. */
|
|
46
|
-
readonly path: string;
|
|
47
|
-
/** How large the check wrote it. */
|
|
48
|
-
readonly bytes?: number;
|
|
49
35
|
}
|
|
50
36
|
/**
|
|
51
37
|
* What a page's `sixb.query(name)` reads in the check: the query route's JSON as it answers the
|
|
@@ -55,10 +41,11 @@ export type CheckedQuery = ArtifactQueryAnswer;
|
|
|
55
41
|
/** A width a page is checked at, as a laptop and a phone show it. */
|
|
56
42
|
export type PageView = "desktop" | "phone";
|
|
57
43
|
/**
|
|
58
|
-
* Lays a published deck, page, or canvas out in the sandbox's headless
|
|
59
|
-
* frame does, and reports what a reader would find wrong: on each slide of
|
|
60
|
-
* laptop's width and a phone's,
|
|
61
|
-
* of
|
|
44
|
+
* Lays a published deck, page, designed document, or canvas out in the sandbox's headless
|
|
45
|
+
* Chromium, as the app's frame does, and reports what a reader would find wrong: on each slide of
|
|
46
|
+
* a deck, on a page at a laptop's width and a phone's, on a designed document as one sheet and on
|
|
47
|
+
* each of its pages, or on each of a canvas's boards at its own size, with a screenshot of each for
|
|
48
|
+
* the Agent to look at. A sandbox without the agent image's browser skips it; so does
|
|
62
49
|
* a check that fails, which never costs the Agent its publish.
|
|
63
50
|
*/
|
|
64
51
|
export declare function checkLayout(input: {
|
|
@@ -79,6 +66,8 @@ export declare function checkLayout(input: {
|
|
|
79
66
|
} & ({
|
|
80
67
|
readonly layout: FrameLayout;
|
|
81
68
|
readonly entry: Uint8Array;
|
|
69
|
+
/** A designed document's paper, which its runtime cuts it into pages by. */
|
|
70
|
+
readonly paper?: DocumentPaper;
|
|
82
71
|
} | {
|
|
83
72
|
readonly layout: "canvas";
|
|
84
73
|
readonly boards: readonly CheckedBoard[];
|
|
@@ -100,10 +89,16 @@ interface OversizedBoard {
|
|
|
100
89
|
* all show only its top left. The board takes the page's size; the canvas's zoom makes it small.
|
|
101
90
|
*/
|
|
102
91
|
export declare function oversizedWarnings(boards: readonly OversizedBoard[]): LayoutWarning[];
|
|
103
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* A problem where the check found it: on a deck's slide, on a page at one width, on a designed
|
|
94
|
+
* document's page, or on a designed document as one sheet, at its paper's width, which names none
|
|
95
|
+
* of them, or on a phone.
|
|
96
|
+
*/
|
|
104
97
|
type CheckedProblem = LayoutProblem & {
|
|
105
98
|
readonly theme: "light" | "dark";
|
|
106
99
|
readonly slide?: number;
|
|
100
|
+
/** A designed document's page. */
|
|
101
|
+
readonly page?: number;
|
|
107
102
|
readonly view?: PageView;
|
|
108
103
|
/** The canvas's board it is on. */
|
|
109
104
|
readonly board?: string;
|
|
@@ -114,6 +109,8 @@ type CheckedProblem = LayoutProblem & {
|
|
|
114
109
|
* same colors, is one warning naming every slide or width it is at, so a deck's eyebrow at 17px
|
|
115
110
|
* is one line, not nine. Contrast says which theme it fails in when it fails in one.
|
|
116
111
|
*/
|
|
117
|
-
export declare function layoutWarnings(problems: readonly CheckedProblem[]
|
|
112
|
+
export declare function layoutWarnings(problems: readonly CheckedProblem[],
|
|
113
|
+
/** What was checked when it is a designed document, whose problems at a width are its own. */
|
|
114
|
+
checked?: "document"): LayoutWarning[];
|
|
118
115
|
export {};
|
|
119
116
|
//# sourceMappingURL=layout-check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-check.d.ts","sourceRoot":"","sources":["../../../src/artifacts/layout-check/layout-check.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"layout-check.d.ts","sourceRoot":"","sources":["../../../src/artifacts/layout-check/layout-check.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EAGL,KAAK,WAAW,EAEhB,KAAK,aAAa,EAGnB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,KAAK,mBAAmB,EAAsB,MAAM,uCAAuC,CAAA;AAEpG,OAAO,EAAE,KAAK,kBAAkB,EAAe,MAAM,sBAAsB,CAAA;AAe3E,sFAAsF;AACtF,MAAM,MAAM,WAAW,GACnB;IACE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAA;IAC3C,6FAA6F;IAC7F,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAA;IACvC,kEAAkE;IAClE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,sFAAsF;IACtF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC3B,GACD;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAE3D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,oFAAoF;IACpF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,kGAAkG;AAClG,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEhD,+CAA+C;AAC/C,MAAM,WAAW,YAAY;IAC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xC,yEAAyE;IACzE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,CACJ,GACA,OAAO,CAAC,WAAW,CAAC,CAoJtB;AA6ED,qEAAqE;AACrE,UAAU,cAAc;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAC1D;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,cAAc,EAAE,GAAG,aAAa,EAAE,CAcpF;AAiBD;;;;GAIG;AACH,KAAK,cAAc,GAAG,aAAa,GAAG;IACpC,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAA;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,kCAAkC;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAA;IACxB,mCAAmC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,SAAS,cAAc,EAAE;AACnC,8FAA8F;AAC9F,OAAO,CAAC,EAAE,UAAU,GACnB,aAAa,EAAE,CAiHjB"}
|
|
@@ -7,7 +7,8 @@ import { type InstalledArtifacts } from "./materialize";
|
|
|
7
7
|
type PublishableKind = ArtifactKind;
|
|
8
8
|
export declare const PUBLISH_ARTIFACT_TOOL_SPEC: {
|
|
9
9
|
readonly name: "publish_artifact";
|
|
10
|
-
readonly
|
|
10
|
+
readonly strict: true;
|
|
11
|
+
readonly description: string;
|
|
11
12
|
readonly inputSchema: {
|
|
12
13
|
type: string;
|
|
13
14
|
properties: {
|
|
@@ -15,36 +16,18 @@ export declare const PUBLISH_ARTIFACT_TOOL_SPEC: {
|
|
|
15
16
|
readonly type: "string";
|
|
16
17
|
readonly description: "A file or a directory in the sandbox, relative to the working directory.";
|
|
17
18
|
};
|
|
18
|
-
kind: {
|
|
19
|
-
type: string;
|
|
20
|
-
enum: ("file" | "document" | "sheet" | "slides" | "page" | "canvas")[];
|
|
21
|
-
};
|
|
22
19
|
title: {
|
|
23
20
|
readonly type: "string";
|
|
24
21
|
readonly description: "Plain text of at most 200 characters naming the deliverable.";
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
required: string[];
|
|
28
|
-
additionalProperties: false;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare const UPDATE_ARTIFACT_TOOL_SPEC: {
|
|
32
|
-
readonly name: "update_artifact";
|
|
33
|
-
readonly description: "Update an artifact of this conversation, or one an object the user may edit holds, from a file or directory in the sandbox: your files replace its current version's, which stays open, and its kind stays. Versions the user created stay as they are. $SIXB_ARTIFACTS lists this conversation's artifacts, each with its current version under $SIXB_ARTIFACTS_DIR/<id>/; open one it does not list with open_artifact first. Returns the version and revision it wrote; a refusal says what to fix.";
|
|
34
|
-
readonly inputSchema: {
|
|
35
|
-
type: string;
|
|
36
|
-
properties: {
|
|
37
|
-
id: {
|
|
23
|
+
kind: {
|
|
38
24
|
type: string;
|
|
25
|
+
enum: ("file" | "document" | "sheet" | "slides" | "page" | "canvas")[];
|
|
39
26
|
description: string;
|
|
40
27
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
-
title: {
|
|
46
|
-
readonly type: "string";
|
|
47
|
-
readonly description: "Plain text of at most 200 characters naming the deliverable.";
|
|
28
|
+
id: {
|
|
29
|
+
type: string;
|
|
30
|
+
description: string;
|
|
48
31
|
};
|
|
49
32
|
};
|
|
50
33
|
required: string[];
|
|
@@ -53,7 +36,8 @@ export declare const UPDATE_ARTIFACT_TOOL_SPEC: {
|
|
|
53
36
|
};
|
|
54
37
|
export declare const OPEN_ARTIFACT_TOOL_SPEC: {
|
|
55
38
|
readonly name: "open_artifact";
|
|
56
|
-
readonly
|
|
39
|
+
readonly strict: true;
|
|
40
|
+
readonly description: "Open an artifact $SIXB_ARTIFACTS does not list, such as one a project object holds: its current version is installed under $SIXB_ARTIFACTS_DIR/<id>/ and listed in $SIXB_ARTIFACTS, to read it, or to revise it with publish_artifact and its id when the user may change it. Publishes nothing. Returns its title, revision, and whether the user may only read it.";
|
|
57
41
|
readonly inputSchema: {
|
|
58
42
|
type: string;
|
|
59
43
|
properties: {
|
|
@@ -66,16 +50,8 @@ export declare const OPEN_ARTIFACT_TOOL_SPEC: {
|
|
|
66
50
|
additionalProperties: false;
|
|
67
51
|
};
|
|
68
52
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
readonly kind: PublishableKind;
|
|
72
|
-
readonly title: string;
|
|
73
|
-
}
|
|
74
|
-
export interface UpdateArtifactToolInput {
|
|
75
|
-
readonly id: string;
|
|
76
|
-
readonly path: string;
|
|
77
|
-
readonly title: string;
|
|
78
|
-
}
|
|
53
|
+
/** A publish: of a new artifact by its kind, or of an artifact's current version by its id. */
|
|
54
|
+
export type PublishArtifactToolInput = PublishRequest;
|
|
79
55
|
export interface OpenArtifactToolInput {
|
|
80
56
|
readonly id: string;
|
|
81
57
|
}
|
|
@@ -94,19 +70,25 @@ interface PublishToolsInput {
|
|
|
94
70
|
readonly installed: Promise<InstalledArtifacts>;
|
|
95
71
|
}
|
|
96
72
|
/**
|
|
97
|
-
* `publish_artifact`
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
73
|
+
* `publish_artifact` reads a file or a directory from the sandbox, stores its bytes, and publishes
|
|
74
|
+
* them through the run's session, which applies a run's rules (see `AgentRunArtifacts.publish`):
|
|
75
|
+
* a new artifact of its kind, or, by id, the open version's content replaced, or the next version
|
|
76
|
+
* opened after one the user created. What it wrote exists when the tool returns, so the
|
|
101
77
|
* conversation shows it mid-turn and a cancelled run keeps it.
|
|
102
78
|
*
|
|
103
79
|
* `open_artifact` installs one the conversation does not list, as the requester reads it, so an
|
|
104
80
|
* update starts from what it holds.
|
|
105
81
|
*/
|
|
106
|
-
export declare function createPublishArtifactTools(input: PublishToolsInput): readonly [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
82
|
+
export declare function createPublishArtifactTools(input: PublishToolsInput): readonly [ModelTool<PublishArtifactToolInput>, ModelTool<OpenArtifactToolInput>];
|
|
83
|
+
interface PublishRequest {
|
|
84
|
+
readonly path: string;
|
|
85
|
+
readonly title: string;
|
|
86
|
+
/** A new artifact of this kind, or this artifact's latest version. */
|
|
87
|
+
readonly target: {
|
|
88
|
+
readonly kind: PublishableKind;
|
|
89
|
+
} | {
|
|
90
|
+
readonly artifactId: string;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
111
93
|
export {};
|
|
112
94
|
//# sourceMappingURL=publish-tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-tool.d.ts","sourceRoot":"","sources":["../../src/artifacts/publish-tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,YAAY,EAGjB,KAAK,SAAS,EAEf,MAAM,YAAY,CAAA;AASnB,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"publish-tool.d.ts","sourceRoot":"","sources":["../../src/artifacts/publish-tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,YAAY,EAGjB,KAAK,SAAS,EAEf,MAAM,YAAY,CAAA;AASnB,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAA;AAUnC,OAAO,KAAK,EAAc,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAS9D,OAAO,KAAK,EAA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Q,CAAC,IAAI,EAAE,eAAe,CAAA;KAAE,GAAG;QAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CACtF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type AgentMessage } from "@sixb/core";
|
|
2
|
+
import { type AgentQuestion } from "@sixb/core/internal/agents";
|
|
3
|
+
import { type ModelTool } from "@sixb/core/models";
|
|
4
|
+
import type { SubagentInbox } from "./subagent-inbox";
|
|
5
|
+
export declare const ASK_TOOL_NAME = "ask";
|
|
6
|
+
export interface AskInput {
|
|
7
|
+
readonly questions: readonly AgentQuestion[];
|
|
8
|
+
}
|
|
9
|
+
/** What a sub-agent's `ask` answers: its parent's answer, or that it comes in a later turn. */
|
|
10
|
+
export type AskParentOutput = {
|
|
11
|
+
readonly answer: string;
|
|
12
|
+
}
|
|
13
|
+
/** `question`: its id, which the answer of a later turn replies to. */
|
|
14
|
+
| {
|
|
15
|
+
readonly status: "deferred";
|
|
16
|
+
readonly question: string;
|
|
17
|
+
readonly note: string;
|
|
18
|
+
}
|
|
19
|
+
/** It paused on a held call too: only a decision continues it, without an answer. */
|
|
20
|
+
| {
|
|
21
|
+
readonly status: "unanswered";
|
|
22
|
+
readonly question: string;
|
|
23
|
+
readonly note: string;
|
|
24
|
+
};
|
|
25
|
+
/** What the Agent's `ask` answers: the user sees the questions, and the turn ends. */
|
|
26
|
+
export interface AskUserOutput {
|
|
27
|
+
readonly status: "asked";
|
|
28
|
+
readonly note: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* What a question deferred in the step that held a call reads as once the child continues: the
|
|
32
|
+
* decision continues it, and no answer comes with it. Only a continuation reads it, as the child
|
|
33
|
+
* paused right after that step, so what its thread keeps may say so without changing a byte the
|
|
34
|
+
* model already read.
|
|
35
|
+
*/
|
|
36
|
+
export declare function unansweredQuestion<TMessage extends Pick<AgentMessage, "parts">>(messages: readonly TMessage[]): readonly TMessage[];
|
|
37
|
+
/**
|
|
38
|
+
* A sub-agent's questions to its parent, which it waits for within its step. Its parent reads them
|
|
39
|
+
* as one text and answers with `message_agent`; when its turn ends first, the child pauses on them
|
|
40
|
+
* and a later turn continues it with the answer.
|
|
41
|
+
*/
|
|
42
|
+
export declare function createAskParentTool(inbox: SubagentInbox): ModelTool<AskInput>;
|
|
43
|
+
/**
|
|
44
|
+
* The Agent's questions to the user. The turn ends after the step that asks (see
|
|
45
|
+
* {@link stepAskedUser}); the app and the TUI show the questions with their choices, and the
|
|
46
|
+
* user's answer is their next message, which the next turn reads after this call.
|
|
47
|
+
*/
|
|
48
|
+
export declare function createAskUserTool(): ModelTool<AskInput>;
|
|
49
|
+
/**
|
|
50
|
+
* Whether a step of the Agent's asked the user: the turn ends after it. A call refused for its
|
|
51
|
+
* input did not ask: the model reads why and tries again.
|
|
52
|
+
*/
|
|
53
|
+
export declare function stepAskedUser(step: {
|
|
54
|
+
readonly content: readonly {
|
|
55
|
+
readonly type: string;
|
|
56
|
+
readonly toolName?: string;
|
|
57
|
+
readonly output?: {
|
|
58
|
+
readonly type: string;
|
|
59
|
+
};
|
|
60
|
+
}[];
|
|
61
|
+
}): boolean;
|
|
62
|
+
//# sourceMappingURL=ask-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ask-tool.d.ts","sourceRoot":"","sources":["../src/ask-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAwB,MAAM,YAAY,CAAA;AACpE,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAkD,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAElG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,eAAO,MAAM,aAAa,QAAQ,CAAA;AAElC,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,SAAS,EAAE,SAAS,aAAa,EAAE,CAAA;CAC7C;AAED,+FAA+F;A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 -4,7 +4,7 @@ import type { LanguageModel, ModelMessage } from "@sixb/core/models";
|
|
|
4
4
|
import type { AgentMessageRecord } from "@sixb/core/storage";
|
|
5
5
|
/**
|
|
6
6
|
* Where a parent finds what its children wrote to `out/`, a directory per spawn key, in the context
|
|
7
|
-
* directory: `
|
|
7
|
+
* directory: `wait` and `stop` copy them there, and later turns materialize them there again.
|
|
8
8
|
*/
|
|
9
9
|
export declare const CHILD_FILES_DIRECTORY = "children";
|
|
10
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../src/attachments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAY,OAAO,EAAE,MAAM,YAAY,CAAA;AAC5E,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAoB5D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../src/attachments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAY,OAAO,EAAE,MAAM,YAAY,CAAA;AAC5E,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAoB5D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,aAAa,CAAA;AAI/C;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAA;AAEV,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,OAAO,EAAE,SAAS,uBAAuB,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,CAAA;IAC3B,oEAAoE;IACpE,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;IACjC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAC9B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CA6D1C;AAED,8FAA8F;AAC9F,wBAAsB,8BAA8B,CAAC,KAAK,EAAE;IAC1D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAA;IACvC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CACpC,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAsF3C;AAyfD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAMvE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,8BAA8B,EACvC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,sBAAsB,CAAC,GACpD,8BAA8B,CA4BhC;AA8LD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIjD;AAED,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,4BAA4B,CAAA"}
|
|
@@ -5,7 +5,7 @@ export declare const BACKGROUND_DIRECTORY = "background";
|
|
|
5
5
|
export type BackgroundCommandStatus = "running" | "exited" | "stopped";
|
|
6
6
|
/** A background command as its tools report it, and as a chat can show it. */
|
|
7
7
|
export interface BackgroundCommandState {
|
|
8
|
-
/** `bg_<hex>`: the id `
|
|
8
|
+
/** `bg_<hex>`: the id `wait` and `stop` take, never the same in two runs. */
|
|
9
9
|
readonly id: string;
|
|
10
10
|
readonly command: string;
|
|
11
11
|
readonly status: BackgroundCommandStatus;
|
|
@@ -20,7 +20,7 @@ export interface BackgroundCommandState {
|
|
|
20
20
|
/** The file holding everything it wrote, stdout and stderr together, as the agent names it. */
|
|
21
21
|
readonly outputPath: string;
|
|
22
22
|
}
|
|
23
|
-
/** What `
|
|
23
|
+
/** What `wait` and `stop` return of it: its state, and what it wrote since the last read. */
|
|
24
24
|
export interface BackgroundCommandOutput extends BackgroundCommandState {
|
|
25
25
|
/** What it wrote since the last read: its newest 20,000 bytes at most. */
|
|
26
26
|
readonly output: string;
|
|
@@ -89,7 +89,7 @@ export declare class BackgroundCommands {
|
|
|
89
89
|
/**
|
|
90
90
|
* Stop the commands a `sixb` that ended without stopping them left running: one killed, or that
|
|
91
91
|
* crashed. Their pid files are all that is left of them. Each group still running its command
|
|
92
|
-
* gets SIGTERM, then SIGKILL after the grace period `
|
|
92
|
+
* gets SIGTERM, then SIGKILL after the grace period `stop` gives, in one call.
|
|
93
93
|
*/
|
|
94
94
|
export declare function stopLeftRunning(sandbox: Sandbox, pidFiles: readonly string[], signal: AbortSignal): Promise<void>;
|
|
95
95
|
//# sourceMappingURL=background-commands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-commands.d.ts","sourceRoot":"","sources":["../src/background-commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4C,KAAK,OAAO,EAAE,MAAM,YAAY,CAAA;AAGnF,OAAO,EAAE,KAAK,kBAAkB,EAAe,MAAM,kBAAkB,CAAA;AASvE,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,eAAe,CAAA;AAoBhD,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEtE,8EAA8E;AAC9E,MAAM,WAAW,sBAAsB;IACrC,
|
|
1
|
+
{"version":3,"file":"background-commands.d.ts","sourceRoot":"","sources":["../src/background-commands.ts"],"names":[],"mappings":"A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AA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"background-notices.d.ts","sourceRoot":"","sources":["../src/background-notices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,YAAY,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AASvF;;;;;;GAMG;AACH,qBAAa,iBAAiB;;IAa1B,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,kBAAkB,EAC7C,OAAO,GAAE;QACP,6FAA6F;QAC7F,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAA;QACxD,+FAA+F;QAC/F,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KACvB;IAYR,+DAA+D;IAC/D,IAAI,CAAC,GAAG,OAAa,GAAG,MAAM,GAAG,SAAS;IAmB1C,2EAA2E;IAC3E,IAAI,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE;CAsB/C;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,SAAS,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,GAC/C,SAAS,sBAAsB,EAAE,CAmBnC"}
|
package/dist/child-files.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare function handedFileRefs(input: {
|
|
|
45
45
|
}): Promise<readonly SubagentRunFile[]>;
|
|
46
46
|
/**
|
|
47
47
|
* The child's side: the files its parent handed over, at the same paths in its sandbox, listed in
|
|
48
|
-
* `$SIXB_ATTACHMENTS` and readable with `
|
|
48
|
+
* `$SIXB_ATTACHMENTS` and readable with `read`.
|
|
49
49
|
*/
|
|
50
50
|
export declare function prepareHandedFiles(input: {
|
|
51
51
|
readonly projectId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A question a child asked: the id of its mail and what it asks. A child paused on it keeps both in
|
|
3
|
-
* its thread, the
|
|
3
|
+
* its thread, the questions as its `ask` call's input and the id in that call's output.
|
|
4
4
|
*/
|
|
5
5
|
export interface QuestionRef {
|
|
6
6
|
readonly id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { waitForAbort } from "./abort";
|
|
2
2
|
export type { AgentWorkspacePromptContext } from "./agent-prompt";
|
|
3
|
-
export {
|
|
4
|
-
export { createAskParentTool } from "./ask-parent-tool";
|
|
3
|
+
export { createAskParentTool } from "./ask-tool";
|
|
5
4
|
export type { BackgroundCommandStatus } from "./background-commands";
|
|
6
5
|
export { type ComputerBackgroundCommand, type ComputerBackgroundCommandRef, ComputerRunner, type ComputerRunnerOptions, type OpenComputerSandbox, } from "./computer-runner";
|
|
7
6
|
export { prepareAgentModel } from "./context-budget";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,YAAY,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,YAAY,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,YAAY,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAA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