@sixb/agent 0.2.1 → 0.2.2

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.
Files changed (76) hide show
  1. package/README.md +2 -1
  2. package/dist/agent-prompt.d.ts +13 -0
  3. package/dist/agent-prompt.d.ts.map +1 -1
  4. package/dist/agent-runtime/preflight.d.ts.map +1 -1
  5. package/dist/artifacts/layout-check/layout-check.d.ts.map +1 -1
  6. package/dist/background-commands.d.ts +95 -0
  7. package/dist/background-commands.d.ts.map +1 -0
  8. package/dist/background-notices.d.ts +31 -0
  9. package/dist/background-notices.d.ts.map +1 -0
  10. package/dist/computer-runner.d.ts +63 -2
  11. package/dist/computer-runner.d.ts.map +1 -1
  12. package/dist/context-compaction.d.ts +3 -0
  13. package/dist/context-compaction.d.ts.map +1 -1
  14. package/dist/execution-plan.d.ts +12 -2
  15. package/dist/execution-plan.d.ts.map +1 -1
  16. package/dist/index.d.ts +2 -1
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +2287 -230
  19. package/dist/index.js.map +28 -18
  20. package/dist/login-shell.d.ts +16 -0
  21. package/dist/login-shell.d.ts.map +1 -0
  22. package/dist/run-child.d.ts +3 -0
  23. package/dist/run-child.d.ts.map +1 -1
  24. package/dist/run-conversation-turn.d.ts +6 -2
  25. package/dist/run-conversation-turn.d.ts.map +1 -1
  26. package/dist/run-environment.d.ts +12 -2
  27. package/dist/run-environment.d.ts.map +1 -1
  28. package/dist/run-sandbox.d.ts +23 -0
  29. package/dist/run-sandbox.d.ts.map +1 -1
  30. package/dist/sandbox-files.d.ts.map +1 -1
  31. package/dist/tools/background.d.ts +50 -0
  32. package/dist/tools/background.d.ts.map +1 -0
  33. package/dist/tools/bash.d.ts +12 -4
  34. package/dist/tools/bash.d.ts.map +1 -1
  35. package/dist/tools/model-spec.d.ts +9 -2
  36. package/dist/tools/model-spec.d.ts.map +1 -1
  37. package/dist/tools/tool-outputs.d.ts +12 -2
  38. package/dist/tools/tool-outputs.d.ts.map +1 -1
  39. package/dist/tools/web-fetch/cache.d.ts +33 -0
  40. package/dist/tools/web-fetch/cache.d.ts.map +1 -0
  41. package/dist/tools/web-fetch/html-markdown.d.ts +25 -0
  42. package/dist/tools/web-fetch/html-markdown.d.ts.map +1 -0
  43. package/dist/tools/web-fetch/network.d.ts +55 -0
  44. package/dist/tools/web-fetch/network.d.ts.map +1 -0
  45. package/dist/tools/web-fetch/tool.d.ts +96 -0
  46. package/dist/tools/web-fetch/tool.d.ts.map +1 -0
  47. package/dist/tools/web-search.d.ts +40 -0
  48. package/dist/tools/web-search.d.ts.map +1 -0
  49. package/dist/workspace-instructions.d.ts +15 -0
  50. package/dist/workspace-instructions.d.ts.map +1 -0
  51. package/package.json +13 -4
  52. package/src/agent-prompt.ts +60 -1
  53. package/src/agent-runtime/preflight.ts +2 -1
  54. package/src/artifacts/layout-check/layout-check.ts +4 -4
  55. package/src/background-commands.ts +573 -0
  56. package/src/background-notices.ts +178 -0
  57. package/src/computer-runner.ts +211 -9
  58. package/src/context-compaction.ts +4 -1
  59. package/src/execution-plan.ts +15 -2
  60. package/src/index.ts +3 -0
  61. package/src/login-shell.ts +18 -0
  62. package/src/run-child.ts +5 -0
  63. package/src/run-conversation-turn.ts +23 -4
  64. package/src/run-environment.ts +92 -12
  65. package/src/run-sandbox.ts +41 -0
  66. package/src/sandbox-files.ts +2 -1
  67. package/src/tools/background.ts +127 -0
  68. package/src/tools/bash.ts +80 -11
  69. package/src/tools/model-spec.ts +25 -3
  70. package/src/tools/tool-outputs.ts +46 -6
  71. package/src/tools/web-fetch/cache.ts +91 -0
  72. package/src/tools/web-fetch/html-markdown.ts +479 -0
  73. package/src/tools/web-fetch/network.ts +452 -0
  74. package/src/tools/web-fetch/tool.ts +619 -0
  75. package/src/tools/web-search.ts +139 -0
  76. package/src/workspace-instructions.ts +163 -0
package/README.md CHANGED
@@ -7,7 +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 bash · read · view_file · publish_artifact · children
10
+ opens its environment → openSandbox bash · bash_output · bash_stop · read · view_file ·
11
+ publish_artifact · children
11
12
  ```
12
13
 
13
14
  ```text
@@ -70,6 +70,19 @@ export interface AgentWorkspacePromptContext {
70
70
  readonly url: string;
71
71
  readonly authenticatedAccess?: "read" | "write";
72
72
  };
73
+ /**
74
+ * The instruction files the workspace carries, its repository's root first, as read when it was
75
+ * acquired (see `readWorkspaceInstructions`).
76
+ */
77
+ readonly instructions?: readonly WorkspaceInstructionsFile[];
78
+ }
79
+ /** A workspace's `AGENTS.md`, or `CLAUDE.md` where a folder has no `AGENTS.md`. */
80
+ export interface WorkspaceInstructionsFile {
81
+ /** From the working directory: `AGENTS.md`, or `../AGENTS.md` for its parent folder's. */
82
+ readonly path: string;
83
+ readonly text: string;
84
+ /** Cut at the size limit: the line the rest of the file starts at. */
85
+ readonly continuesAtLine?: number;
73
86
  }
74
87
  export interface RenderWorkflowOutputFinalizerPromptInput {
75
88
  readonly instructions?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-prompt.d.ts","sourceRoot":"","sources":["../src/agent-prompt.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAA6B,MAAM,YAAY,CAAA;AACjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACrF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG,UAAU,GAAG,eAAe,CAAA;AA6E9E,MAAM,WAAW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E,MAAM,CAAA;CACvC;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,8BAA8B,GACpC,OAAO,CAAC,IAAI,CAAC,CAsBf"}
1
+ {"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/preflight.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAiB,OAAO,EAAE,MAAM,YAAY,CAAA;AA8BxD,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAC9C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,0GAA0G;IAC1G,QAAQ,CAAC,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACjD,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAA;CACvC;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,8BAA8B,GACpC,OAAO,CAAC,IAAI,CAAC,CAsBf"}
@@ -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,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAGL,KAAK,WAAW,EAEhB,KAAK,aAAa,EAGnB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,KAAK,kBAAkB,EAAe,MAAM,sBAAsB,CAAA;AAc3E,sFAAsF;AACtF,MAAM,MAAM,WAAW,GACnB;IACE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAA;IAC3C,yEAAyE;IACzE,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAA;CACxC,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C,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,yFAAyF;IACzF,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,4FAA4F;IAC5F,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAA;IACzD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B,gDAAgD;IAChD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B,GAAG,CACA;IAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAAE,GAC5D;IAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAA;CAAE,CAC1E,GACA,OAAO,CAAC,WAAW,CAAC,CA8HtB;AAuED,wFAAwF;AACxF,KAAK,cAAc,GAAG,aAAa,GAAG;IACpC,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAA;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAA;IACxB,mCAAmC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,aAAa,EAAE,CAiFnF"}
@@ -0,0 +1,95 @@
1
+ import { type Sandbox } from "@sixb/core";
2
+ import { type AgentSandboxHandle } from "./sandbox-handle";
3
+ /** Where the commands' files go, in the run's context directory. */
4
+ export declare const BACKGROUND_DIRECTORY = "background";
5
+ export type BackgroundCommandStatus = "running" | "exited" | "stopped";
6
+ /** A background command as its tools report it, and as a chat can show it. */
7
+ export interface BackgroundCommandState {
8
+ /** `bg_<hex>`: the id `bash_output` and `bash_stop` take, never the same in two runs. */
9
+ readonly id: string;
10
+ readonly command: string;
11
+ readonly status: BackgroundCommandStatus;
12
+ /**
13
+ * Its exit code once it ended. A stopped command's is the signal's (143 for SIGTERM, 137 for
14
+ * SIGKILL), or absent when its sandbox went away under it.
15
+ */
16
+ readonly exitCode?: number;
17
+ /** ISO timestamps. */
18
+ readonly startedAt: string;
19
+ readonly endedAt?: string;
20
+ /** The file holding everything it wrote, stdout and stderr together, as the agent names it. */
21
+ readonly outputPath: string;
22
+ }
23
+ /** What `bash_output` and `bash_stop` return: its state, and what it wrote since the last read. */
24
+ export interface BackgroundCommandOutput extends BackgroundCommandState {
25
+ /** What it wrote since the last read: its newest 20,000 bytes at most. */
26
+ readonly output: string;
27
+ /** What it wrote since the last read that `output` leaves out, ahead of it: in the file. */
28
+ readonly skippedBytes?: number;
29
+ }
30
+ /**
31
+ * The background commands of a run, or of a thread on the user's computer, where they outlive
32
+ * the turn that started them. Their state is in memory; their output, pid and exit code are files
33
+ * in the sandbox.
34
+ */
35
+ export declare class BackgroundCommands {
36
+ #private;
37
+ private readonly options;
38
+ constructor(options?: {
39
+ /** Called as a command starts or ends: a computer reports its commands then. */
40
+ readonly onChange?: () => void;
41
+ });
42
+ /** Whether it ever started one: their files are then worth keeping for a later turn. */
43
+ get hasCommands(): boolean;
44
+ /** Whether one of them runs now. */
45
+ get running(): boolean;
46
+ /**
47
+ * Start `command` in the background and return once it runs, its output going to its file. One
48
+ * the sandbox could not start, as in a directory that does not exist, throws what it said. A
49
+ * `signal` that aborts before then stops it.
50
+ */
51
+ start(input: {
52
+ readonly handle: AgentSandboxHandle;
53
+ readonly command: string;
54
+ readonly cwd?: string;
55
+ readonly signal?: AbortSignal;
56
+ }): Promise<BackgroundCommandState>;
57
+ /** Whether it knows a command by this id. */
58
+ has(id: string): boolean;
59
+ /** A command by id, or a public error the model can act on. */
60
+ get(id: string): BackgroundCommandState;
61
+ /** Every command, oldest first. */
62
+ list(): readonly BackgroundCommandState[];
63
+ /**
64
+ * Wait until the command ends, `timeoutMs` elapses or `signal` aborts, which rejects with its
65
+ * reason.
66
+ */
67
+ wait(id: string, timeoutMs: number, signal: AbortSignal): Promise<void>;
68
+ /**
69
+ * Its state and what it wrote since the last read, read through `handle`: the sandbox of the run
70
+ * that asks. Once it reports the command ended, no notice repeats it.
71
+ */
72
+ read(id: string, handle: AgentSandboxHandle, signal: AbortSignal): Promise<BackgroundCommandOutput>;
73
+ /**
74
+ * Stop the command and everything it started: SIGTERM to its process group, SIGKILL after a
75
+ * grace period or where the sandbox cannot reach it, then the held call's abort. Resolves once
76
+ * it ended.
77
+ */
78
+ stop(id: string): Promise<BackgroundCommandState>;
79
+ /** Stop every command still running. */
80
+ stopAll(): Promise<void>;
81
+ /**
82
+ * Settles once no command started in `sandbox` runs; undefined when none does now. A computer
83
+ * keeps a turn's sandbox until then.
84
+ */
85
+ endOf(sandbox: Sandbox): Promise<void> | undefined;
86
+ /** The commands that ended and the model has not heard of: each is reported once. */
87
+ takeEnded(): readonly BackgroundCommandState[];
88
+ }
89
+ /**
90
+ * Stop the commands a `sixb` that ended without stopping them left running: one killed, or that
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 `bash_stop` gives, in one call.
93
+ */
94
+ export declare function stopLeftRunning(sandbox: Sandbox, pidFiles: readonly string[], signal: AbortSignal): Promise<void>;
95
+ //# sourceMappingURL=background-commands.d.ts.map
@@ -0,0 +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,G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E,EAAE,MAAM,GAAG,OAAO;IAIxB,+DAA+D;IAC/D,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,sBAAsB;IAIvC,mCAAmC;IACnC,IAAI,IAAI,SAAS,sBAAsB,EAAE;IAIzC;;;OAGG;IACG,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB7E;;;OAGG;IACG,IAAI,CACR,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,uBAAuB,CAAC;IAsCnC;;;;OAIG;IACG,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IASvD,wCAAwC;IAClC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAK9B;;;OAGG;IACH,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS;IAQlD,qFAAqF;IACrF,SAAS,IAAI,SAAS,sBAAsB,EAAE;CA0E/C;AAmDD;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,IAAI,CAAC,CASf"}
@@ -0,0 +1,31 @@
1
+ import { type AgentMessage } from "@sixb/core";
2
+ import type { ModelTool } from "@sixb/core/models";
3
+ import type { BackgroundCommandState, BackgroundCommands } from "./background-commands";
4
+ /**
5
+ * How a run hears of its background commands without polling: a short notice closing the result
6
+ * of the first tool that returns after one ended, and, on its first, those of an earlier turn
7
+ * still running and those its history left running that ended with their run. A tool's result is
8
+ * what its message part keeps (`modelOutput`), so a later turn replays the notice where the model
9
+ * read it, byte for byte; no other request is touched.
10
+ */
11
+ export declare class BackgroundNotices {
12
+ #private;
13
+ private readonly commands;
14
+ constructor(commands: BackgroundCommands, options?: {
15
+ /** The commands the history last read as running ({@link backgroundCommandsLeftRunning}). */
16
+ readonly leftRunning?: readonly BackgroundCommandState[];
17
+ /** What ended those this run's commands do not know: the run, or the `sixb`, that ran them. */
18
+ readonly endedWith?: string;
19
+ });
20
+ /** The notice due now, once: undefined when nothing is new. */
21
+ take(now?: Date): string | undefined;
22
+ /** The run's tools, each result closed by the notice due as it returns. */
23
+ wrap(tools: readonly ModelTool[]): ModelTool[];
24
+ }
25
+ /**
26
+ * The background commands a history last read as running: their tools reported them so, and no
27
+ * later result or notice said they ended. A run whose own commands do not know them is told they
28
+ * ended with the run, or the `sixb`, that ran them.
29
+ */
30
+ export declare function backgroundCommandsLeftRunning(messages: readonly Pick<AgentMessage, "parts">[]): readonly BackgroundCommandState[];
31
+ //# sourceMappingURL=background-notices.d.ts.map
@@ -0,0 +1 @@
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;AAiBvF;;;;;;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,CAkBnC"}
@@ -1,5 +1,6 @@
1
1
  import type { Sandbox, SandboxRequestCredential } from "@sixb/core";
2
2
  import type { ConversationAgentRunRecord } from "@sixb/core/storage";
3
+ import { type BackgroundCommandStatus } from "./background-commands";
3
4
  /** Opens the sandbox a computer's run works in. */
4
5
  export type OpenComputerSandbox = (input: {
5
6
  /** The user's folder, for a turn; absent for a child, which works in a folder of its own. */
@@ -27,8 +28,9 @@ export interface ComputerRunnerOptions {
27
28
  readonly folder: string;
28
29
  /**
29
30
  * Where each run's own files go: a directory per thread, so every turn's prompt names the same
30
- * paths, emptied when a run starts and removed when it ends. Shared by every runner on the
31
- * computer, which hold a thread's directory one run at a time.
31
+ * paths, emptied when a run starts and removed when it ends, but for the files of the thread's
32
+ * background commands. Shared by every runner on the computer, which hold a thread's directory
33
+ * one run at a time.
32
34
  */
33
35
  readonly runFilesRoot: string;
34
36
  readonly openSandbox: OpenComputerSandbox;
@@ -36,13 +38,42 @@ export interface ComputerRunnerOptions {
36
38
  readonly childCapacity?: number;
37
39
  /** A run that failed, once its end is recorded. */
38
40
  readonly onFailure?: (error: unknown) => void;
41
+ /**
42
+ * A background command started or ended: the computer's session reports
43
+ * {@link ComputerRunner.backgroundCommands} at once, so the web shows it.
44
+ */
45
+ readonly onBackgroundChange?: () => void;
39
46
  readonly fetch?: (request: Request) => Promise<Response>;
40
47
  }
48
+ /** A thread's background command, as the computer reports it to the web. */
49
+ export interface ComputerBackgroundCommand {
50
+ readonly threadId: string;
51
+ /** `bg_<hex>`: unique in its thread while `sixb` stays open, with `startedAt` beyond. */
52
+ readonly id: string;
53
+ /** Cut to {@link REPORTED_COMMAND_CHARS}. */
54
+ readonly command: string;
55
+ readonly status: BackgroundCommandStatus;
56
+ readonly exitCode?: number;
57
+ /** ISO timestamps. */
58
+ readonly startedAt: string;
59
+ readonly endedAt?: string;
60
+ }
61
+ /** Which command a stop names: an id comes again once `sixb` restarts, its start does not. */
62
+ export interface ComputerBackgroundCommandRef {
63
+ readonly threadId: string;
64
+ readonly id: string;
65
+ readonly startedAt: string;
66
+ }
41
67
  export declare class ComputerRunner {
42
68
  private readonly options;
43
69
  private readonly teardowns;
44
70
  /** Each running turn's renewal, by run id, to renew at once. */
45
71
  private readonly renewals;
72
+ /**
73
+ * Each thread's background commands, by thread id: they outlive the turn that started them,
74
+ * until they end, the agent stops them or {@link stopBackgroundCommands}.
75
+ */
76
+ private readonly background;
46
77
  constructor(options: ComputerRunnerOptions);
47
78
  /**
48
79
  * Claim a queued turn and run it to its end. False when it was not this computer's to run: it
@@ -55,6 +86,23 @@ export declare class ComputerRunner {
55
86
  * just asked for, so a stop from this computer takes effect at once.
56
87
  */
57
88
  renewNow(runId: string): void;
89
+ /** Whether a background command a turn started runs now. */
90
+ get runsBackgroundCommands(): boolean;
91
+ /**
92
+ * Stop every background command a turn left running, as `sixb` closes: the sandboxes kept for
93
+ * them are torn down then, which {@link drain} waits for.
94
+ */
95
+ stopBackgroundCommands(): Promise<void>;
96
+ /**
97
+ * Every thread's background commands while `sixb` stays open: the running ones, then the latest
98
+ * to end, {@link REPORTED_COMMANDS} at most.
99
+ */
100
+ backgroundCommands(): readonly ComputerBackgroundCommand[];
101
+ /**
102
+ * Stop a thread's background command, as someone asked from the web. False when it is not one
103
+ * this `sixb` runs: it ended already, or the id names a later command, after a restart.
104
+ */
105
+ stopBackgroundCommand(ref: ComputerBackgroundCommandRef): Promise<boolean>;
58
106
  /** Wait for sandbox teardowns that outlived their runs. */
59
107
  drain(): Promise<void>;
60
108
  /**
@@ -69,6 +117,19 @@ export declare class ComputerRunner {
69
117
  * prompt names them, so each run of the thread names the same paths.
70
118
  */
71
119
  private sandbox;
120
+ /**
121
+ * Stop the thread's commands a `sixb` killed, or that crashed, left running: their groups run
122
+ * on, re-parented, and this one knows them only by the pid files its run is about to remove.
123
+ * Done in a sandbox of its own, opened only when there are some; a failure is reported, and the
124
+ * run goes on.
125
+ */
126
+ private stopCommandsLeftRunning;
127
+ private threadBackground;
72
128
  private track;
73
129
  }
130
+ /**
131
+ * Remove `directory`, or, with `keep`, everything in it but `keep` and the directories that lead
132
+ * to it.
133
+ */
134
+ export declare function emptyDirectory(directory: string, keep?: string): Promise<void>;
74
135
  //# sourceMappingURL=computer-runner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"computer-runner.d.ts","sourceRoot":"","sources":["../src/computer-runner.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AASnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAA;AAapE,mDAAmD;AACnD,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE;IACxC,6FAA6F;IAC7F,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAClC,0FAA0F;IAC1F,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,oEAAoE;IACpE,QAAQ,CAAC,UAAU,EAAE,wBAAwB,CAAA;IAC7C,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;CAC7B,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;AAEtB,MAAM,WAAW,qBAAqB;IACpC,gCAAgC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,0FAA0F;IAC1F,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAChC;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACnE,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB;;;;OAIG;IAC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CAAC;IAWhF,2DAA2D;IACrD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAsBb,OAAO,CAAC,WAAW;IAkCnB;;;;OAIG;IACH,OAAO,CAAC,OAAO;IAuFf;;;;;OAKG;YACW,uBAAuB;IAkCrC,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,KAAK;CAId;AAeD;;;GAGG;AACH,wBAAsB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAepF"}
@@ -1,6 +1,7 @@
1
1
  import { type AgentContextBudget, type AgentContextEstimateTool, type AgentRunSession, type AgentSystemPromptSize, type AgentThreadModelContextMessage, type AgentToolSpec, type AgentTurnHistory } from "@sixb/core/internal/agents";
2
2
  import type { OntologyDocsIndexEntry } from "@sixb/core/internal/ontology";
3
3
  import type { ModelCachingIntent, ModelMessage, ModelTool } from "@sixb/core/models";
4
+ import type { SandboxNetworkPolicy } from "@sixb/core/sandboxes";
4
5
  import type { AgentContextCheckpointReason, ConversationAgentRunRecord, SubagentRunRecord } from "@sixb/core/storage";
5
6
  import type { ConversationMemory } from "./conversation-memory";
6
7
  import type { ResolvedAgentExecutionPlan } from "./execution-plan";
@@ -70,6 +71,8 @@ interface ConversationCompactionInput extends Omit<AgentThreadCompactionInput, "
70
71
  readonly ontologyIndex?: readonly OntologyDocsIndexEntry[];
71
72
  /** Where the run's files go, as the prompt names them. */
72
73
  readonly contextDirectory: string;
74
+ /** Its sandbox's declared network, which decides whether it has `web_fetch`. */
75
+ readonly networkPolicy?: SandboxNetworkPolicy;
73
76
  /** Who can read the run's thread: in a shared one, who wrote what counts toward the estimate. */
74
77
  readonly conversation?: ConversationReaders;
75
78
  readonly frameworkTools?: readonly ModelTool[];
@@ -1 +1 @@
1
- {"version":3,"file":"context-compaction.d.ts","sourceRoot":"","sources":["../src/context-compaction.ts"],"names":[],"m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B,oBAAoB,CAClC,KAAK,EAAE,SAAS,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,GAAG,aAAa,CAAC,EAAE,GAC5E,SAAS,wBAAwB,EAAE,CAMrC"}
@@ -1,5 +1,5 @@
1
1
  import type { AgentReasoning, AgentSkillDefinition } from "@sixb/core";
2
- import type { AgentContextTokenRateSample, AgentRunPlan, AgentToolSpec, SandboxModel } from "@sixb/core/internal/agents";
2
+ import type { AgentContextTokenRateSample, AgentRunPlan, AgentRunWebPlan, AgentToolSpec, SandboxModel } from "@sixb/core/internal/agents";
3
3
  import type { RenderedOntologyDocs } from "@sixb/core/internal/ontology";
4
4
  import type { LanguageModel } from "@sixb/core/models";
5
5
  /**
@@ -10,6 +10,12 @@ import type { LanguageModel } from "@sixb/core/models";
10
10
  */
11
11
  export interface ResolvedAgentExecutionPlan {
12
12
  readonly model: LanguageModel;
13
+ /**
14
+ * The same model as the run's session records each call, without the context budget `model`
15
+ * may add: a tool's side call (`web_fetch`'s question) is admitted and accounted with the run's
16
+ * calls, but never weighs on the run's context, nor measures its tokenizer.
17
+ */
18
+ readonly recordedModel: LanguageModel;
13
19
  readonly reasoning?: AgentReasoning;
14
20
  readonly instructions?: string;
15
21
  /** The project tools it offers, as the model is offered them; they run where the project is. */
@@ -27,12 +33,16 @@ export interface ResolvedAgentExecutionPlan {
27
33
  readonly tokenRates?: readonly AgentContextTokenRateSample[];
28
34
  /** At most this many model calls. Absent: it runs until its model answers. */
29
35
  readonly maxSteps?: number;
36
+ /** Its web tools. Absent: it has none. */
37
+ readonly web?: AgentRunWebPlan;
30
38
  }
31
39
  /**
32
40
  * A turn's or a child's plan, with the session's model, which records each call itself, and the
33
- * harness's skills added. Its project tools run through the session.
41
+ * harness's skills added. Its project tools run through the session. `recordedModel` is the same
42
+ * model, its calls kept out of the run's tokenizer measure; absent, `model`.
34
43
  */
35
44
  export declare function resolveRunPlan(plan: AgentRunPlan, resolved: {
36
45
  readonly model: LanguageModel;
46
+ readonly recordedModel?: LanguageModel;
37
47
  }): ResolvedAgentExecutionPlan;
38
48
  //# sourceMappingURL=execution-plan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-plan.d.ts","sourceRoot":"","sources":["../src/execution-plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACtE,OAAO,KAAK,EACV,2BAA2B,EAC3B,YAAY,EACZ,aAAa,EACb,YAAY,EACb,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGtD;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,cAAc,CAAA;IACnC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,gGAAgG;IAChG,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAA;IACxC,sEAAsE;IACtE,QAAQ,CAAC,MAAM,EAAE,SAAS,oBAAoB,EAAE,CAAA;IAChD,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,oFAAoF;IACpF,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IAChD,4FAA4F;IAC5F,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAA;IAC3C,sFAAsF;IACtF,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,2BAA2B,EAAE,CAAA;IAC5D,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,E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AAC,EAAE,MAAM,CAAA;IAC1B,0CAA0C;IAC1C,QAAQ,CAAC,GAAG,CAAC,EAAE,eAAe,CAAA;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAA;CAAE,GAClF,0BAA0B,CA2B5B"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export { waitForAbort } from "./abort";
2
2
  export type { AgentWorkspacePromptContext } from "./agent-prompt";
3
3
  export { createAskParentTool } from "./ask-parent-tool";
4
- export { ComputerRunner, type ComputerRunnerOptions, type OpenComputerSandbox, } from "./computer-runner";
4
+ export type { BackgroundCommandStatus } from "./background-commands";
5
+ export { type ComputerBackgroundCommand, type ComputerBackgroundCommandRef, ComputerRunner, type ComputerRunnerOptions, type OpenComputerSandbox, } from "./computer-runner";
5
6
  export { prepareAgentModel } from "./context-budget";
6
7
  export { AgentEnvironmentSaveError, AgentRequesterLeftThreadError, isLostExecution, } from "./errors";
7
8
  export { type ResolvedAgentExecutionPlan, resolveRunPlan } from "./execution-plan";
@@ -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,mBAAmB,CAAA;AACvD,OAAO,EACL,cAAc,EACd,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,eAAe,GAChB,MAAM,UAAU,CAAA;AACjB,OAA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