@sixb/agent 0.1.0 → 0.2.0

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 (102) hide show
  1. package/dist/agent-prompt.d.ts +34 -28
  2. package/dist/agent-prompt.d.ts.map +1 -1
  3. package/dist/artifacts/publish-tool.d.ts +1 -1
  4. package/dist/attachments.d.ts +42 -1
  5. package/dist/attachments.d.ts.map +1 -1
  6. package/dist/child-files.d.ts +0 -5
  7. package/dist/child-files.d.ts.map +1 -1
  8. package/dist/computer-runner.d.ts +16 -7
  9. package/dist/computer-runner.d.ts.map +1 -1
  10. package/dist/context-budget.d.ts +23 -17
  11. package/dist/context-budget.d.ts.map +1 -1
  12. package/dist/context-compaction.d.ts +118 -18
  13. package/dist/context-compaction.d.ts.map +1 -1
  14. package/dist/context-guard.d.ts +69 -0
  15. package/dist/context-guard.d.ts.map +1 -0
  16. package/dist/conversation-messages.d.ts +33 -0
  17. package/dist/conversation-messages.d.ts.map +1 -0
  18. package/dist/execution-plan.d.ts +5 -1
  19. package/dist/execution-plan.d.ts.map +1 -1
  20. package/dist/failure.d.ts.map +1 -1
  21. package/dist/index.js +4916 -2697
  22. package/dist/index.js.map +41 -34
  23. package/dist/inline-images.d.ts +28 -0
  24. package/dist/inline-images.d.ts.map +1 -0
  25. package/dist/message-authors.d.ts +4 -4
  26. package/dist/message-authors.d.ts.map +1 -1
  27. package/dist/message-times.d.ts +4 -3
  28. package/dist/message-times.d.ts.map +1 -1
  29. package/dist/model-adapters.d.ts +6 -2
  30. package/dist/model-adapters.d.ts.map +1 -1
  31. package/dist/prompt-cache.d.ts +28 -0
  32. package/dist/prompt-cache.d.ts.map +1 -0
  33. package/dist/run-agent-turn.d.ts +33 -3
  34. package/dist/run-agent-turn.d.ts.map +1 -1
  35. package/dist/run-child.d.ts.map +1 -1
  36. package/dist/run-conversation-turn.d.ts.map +1 -1
  37. package/dist/run-environment.d.ts +35 -5
  38. package/dist/run-environment.d.ts.map +1 -1
  39. package/dist/run-files-lock.d.ts +16 -0
  40. package/dist/run-files-lock.d.ts.map +1 -0
  41. package/dist/run-subagent.d.ts +15 -1
  42. package/dist/run-subagent.d.ts.map +1 -1
  43. package/dist/run-workflow-agent-node.d.ts +5 -0
  44. package/dist/run-workflow-agent-node.d.ts.map +1 -1
  45. package/dist/sandbox-api-context.d.ts.map +1 -1
  46. package/dist/subagent-context.d.ts +50 -0
  47. package/dist/subagent-context.d.ts.map +1 -0
  48. package/dist/subagent-continuation.d.ts +10 -4
  49. package/dist/subagent-continuation.d.ts.map +1 -1
  50. package/dist/subagent-tools.d.ts +11 -0
  51. package/dist/subagent-tools.d.ts.map +1 -1
  52. package/dist/thread-context.d.ts +7 -2
  53. package/dist/thread-context.d.ts.map +1 -1
  54. package/dist/tools/bash.d.ts +8 -0
  55. package/dist/tools/bash.d.ts.map +1 -1
  56. package/dist/tools/model-spec.d.ts +7 -2
  57. package/dist/tools/model-spec.d.ts.map +1 -1
  58. package/dist/tools/result-media.d.ts +53 -10
  59. package/dist/tools/result-media.d.ts.map +1 -1
  60. package/dist/tools/result-output.d.ts +1 -1
  61. package/dist/tools/result-output.d.ts.map +1 -1
  62. package/dist/tools/tool-outputs.d.ts +63 -0
  63. package/dist/tools/tool-outputs.d.ts.map +1 -0
  64. package/dist/types.d.ts +9 -2
  65. package/dist/types.d.ts.map +1 -1
  66. package/package.json +4 -4
  67. package/src/agent-prompt.ts +178 -76
  68. package/src/attachments.ts +275 -84
  69. package/src/child-files.ts +1 -6
  70. package/src/computer-runner.ts +75 -23
  71. package/src/context-budget.ts +110 -94
  72. package/src/context-compaction.ts +1007 -187
  73. package/src/context-guard.ts +826 -0
  74. package/src/conversation-messages.ts +86 -0
  75. package/src/execution-plan.ts +22 -2
  76. package/src/failure.ts +11 -0
  77. package/src/inline-images.ts +69 -0
  78. package/src/message-authors.ts +5 -5
  79. package/src/message-times.ts +8 -5
  80. package/src/model-adapters.ts +59 -13
  81. package/src/prompt-cache.ts +40 -0
  82. package/src/run-agent-turn.ts +234 -72
  83. package/src/run-child.ts +30 -5
  84. package/src/run-conversation-turn.ts +16 -1
  85. package/src/run-environment.ts +553 -106
  86. package/src/run-files-lock.ts +118 -0
  87. package/src/run-subagent.ts +132 -46
  88. package/src/run-workflow-agent-node.ts +84 -10
  89. package/src/sandbox-api-context.ts +3 -0
  90. package/src/skills/sixb-artifacts/canvas.md +1 -1
  91. package/src/skills/sixb-artifacts/page.md +1 -1
  92. package/src/skills/sixb-artifacts/slides.md +1 -1
  93. package/src/subagent-context.ts +182 -0
  94. package/src/subagent-continuation.ts +11 -6
  95. package/src/subagent-tools.ts +73 -11
  96. package/src/thread-context.ts +9 -3
  97. package/src/tools/bash.ts +17 -1
  98. package/src/tools/model-spec.ts +9 -4
  99. package/src/tools/result-media.ts +286 -82
  100. package/src/tools/result-output.ts +4 -2
  101. package/src/tools/tool-outputs.ts +464 -0
  102. package/src/types.ts +14 -2
@@ -7,6 +7,11 @@ export interface LoadedAgentThreadModelContext {
7
7
  /** The history it was built from, as the session answered it. */
8
8
  readonly history: AgentTurnHistory;
9
9
  }
10
- /** The retained tail with its checkpoint, projected for the model. */
11
- export declare function agentThreadModelContext(history: AgentTurnHistory): LoadedAgentThreadModelContext;
10
+ /**
11
+ * The retained tail with its checkpoint, projected for the model. A child's run reads its thread
12
+ * without `historyReadable`: `sixb history` prints only a conversation's.
13
+ */
14
+ export declare function agentThreadModelContext(history: AgentTurnHistory, options?: {
15
+ readonly historyReadable?: boolean;
16
+ }): LoadedAgentThreadModelContext;
12
17
  //# sourceMappingURL=thread-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"thread-context.d.ts","sourceRoot":"","sources":["../src/thread-context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EAEtB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAE1F,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,UAAU,EAAE,4BAA4B,GAAG,IAAI,CAAA;IACxD,QAAQ,CAAC,gBAAgB,EAAE,SAAS,kBAAkB,EAAE,CAAA;IACxD,QAAQ,CAAC,aAAa,EAAE,SAAS,8BAA8B,EAAE,CAAA;IACjE,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAA;CACnC;AAED,sEAAsE;AACtE,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,gBAAgB,GAAG,6BAA6B,CAQhG"}
1
+ {"version":3,"file":"thread-context.d.ts","sourceRoot":"","sources":["../src/thread-context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EAEtB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAE1F,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,UAAU,EAAE,4BAA4B,GAAG,IAAI,CAAA;IACxD,QAAQ,CAAC,gBAAgB,EAAE,SAAS,kBAAkB,EAAE,CAAA;IACxD,QAAQ,CAAC,aAAa,EAAE,SAAS,8BAA8B,EAAE,CAAA;IACjE,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAA;CACnC;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,gBAAgB,EACzB,OAAO,GAAE;IAAE,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAO,GACnD,6BAA6B,CAQ/B"}
@@ -36,8 +36,16 @@ export interface BashToolOutput extends CommandResult {
36
36
  * resolver is awaited on the first command, not at tool-construction time, so
37
37
  * sandbox creation can run concurrently with the model's first response instead
38
38
  * of blocking the turn. A resolver rejection surfaces as a failed command.
39
+ *
40
+ * Its output holds the command's streams whole: the run's tools save an output too large for the
41
+ * context to a file and keep {@link keptCommandOutput} of it (see tool-outputs.ts).
39
42
  */
40
43
  export declare function createBashTool(resolveSandbox: () => Promise<AgentSandboxHandle>): ModelTool<BashToolInput>;
44
+ /**
45
+ * What a command's message part keeps of an output saved to a file: each stream within
46
+ * 20,000 characters, as the app, the TUI and `sixb history` show it.
47
+ */
48
+ export declare function keptCommandOutput(output: CommandResult): BashToolOutput;
41
49
  interface TruncateResult {
42
50
  readonly text: string;
43
51
  readonly truncated: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,KAAK,EAAyB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAM3D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;CAiBjB,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;CAC5B;AAED,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CAClC;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,cAAc,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,GAChD,SAAS,CAAC,aAAa,CAAC,CAgB1B;AAkDD,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"}
1
+ {"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,KAAK,EAAyB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAM3D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;CAiBjB,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;CAC5B;AAED,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CAClC;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,cAAc,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,GAChD,SAAS,CAAC,aAAa,CAAC,CAqB1B;AAmCD;;;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"}
@@ -1,4 +1,9 @@
1
1
  import type { AgentToolSpec } from "@sixb/core/internal/agents";
2
- /** Describe exactly the tools a conversational model receives, without starting its sandbox. */
3
- export declare function agentModelToolSpecs(projectTools: readonly AgentToolSpec[]): readonly AgentToolSpec[];
2
+ /**
3
+ * Describe exactly the tools a conversational model receives, in its order, without starting its
4
+ * sandbox. A conversation publishes artifacts once its run executes in a thread.
5
+ */
6
+ export declare function agentModelToolSpecs(projectTools: readonly AgentToolSpec[], options?: {
7
+ readonly publishes?: boolean;
8
+ }): readonly AgentToolSpec[];
4
9
  //# sourceMappingURL=model-spec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-spec.d.ts","sourceRoot":"","sources":["../../src/tools/model-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAS/D,gGAAgG;AAChG,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,SAAS,aAAa,EAAE,GACrC,SAAS,aAAa,EAAE,CAS1B"}
1
+ {"version":3,"file":"model-spec.d.ts","sourceRoot":"","sources":["../../src/tools/model-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAS/D;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,SAAS,aAAa,EAAE,EACtC,OAAO,GAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GAC7C,SAAS,aAAa,EAAE,CAU1B"}
@@ -1,22 +1,65 @@
1
1
  import type { FileRef, JsonValue } from "@sixb/core";
2
2
  import type { AgentRunFileStore, PrepareModelStepInput, PrepareModelStepResult } from "@sixb/core/internal/agents";
3
- import { prepareAgentToolFileProjection } from "../attachments";
3
+ import type { AgentMessageRecord } from "@sixb/core/storage";
4
+ import { type PreparedAgentAttachmentContext, prepareAgentToolFileProjection } from "../attachments";
5
+ import { type InlineImageBudget } from "../inline-images";
4
6
  import { type AgentToolModelOutput } from "./result-output";
5
- /** Move tool-created images into an ephemeral user message without changing their durable result. */
7
+ /** Whether the images a tool's results return reach the model after its step. */
8
+ export type SuppliesToolFiles = (toolName: string) => boolean;
9
+ /** An image a step's tool returned, not projected yet. */
10
+ interface ToolFileCandidate {
11
+ readonly toolCallId: string;
12
+ readonly fileRef: FileRef;
13
+ }
14
+ interface ToolFileProjectionInput {
15
+ readonly blobStorage: AgentRunFileStore;
16
+ readonly signal: AbortSignal;
17
+ /** Test seam; production uses the bounded attachment projector. */
18
+ readonly projectFile?: typeof prepareAgentToolFileProjection;
19
+ }
20
+ /**
21
+ * Move tool-created images into a user message after their step without changing their durable
22
+ * result. The message is derived from the step's results alone, so a later turn derives the same
23
+ * one from the stored trace ({@link replayToolFiles}) and its request keeps the prefix. Its images
24
+ * take what the request's inline image budget has left, after the history's.
25
+ */
6
26
  export declare class AgentToolResultMediaBridge {
7
- #private;
8
27
  private readonly input;
9
- constructor(input: {
10
- readonly blobStorage: AgentRunFileStore;
11
- readonly sandboxPathForFileRef?: (fileRef: FileRef) => string | undefined;
12
- /** Test seam; production uses the bounded attachment projector. */
13
- readonly projectFile?: typeof prepareAgentToolFileProjection;
28
+ constructor(input: Omit<ToolFileProjectionInput, "signal"> & {
29
+ readonly suppliesToolFiles: SuppliesToolFiles;
30
+ readonly inlineImages: InlineImageBudget;
31
+ readonly sandboxPathForFileRef?: (fileRef: FileRef) => string | undefined | Promise<string | undefined>;
14
32
  });
15
33
  toModelOutput(input: {
16
34
  readonly output: JsonValue;
17
35
  readonly signal: AbortSignal;
18
- readonly toolCallId: string;
19
36
  }): Promise<AgentToolModelOutput>;
20
- readonly prepareStep: ({ messages, model, signal: stepSignal, }: PrepareModelStepInput) => Promise<PrepareModelStepResult | undefined>;
37
+ readonly prepareStep: ({ stepIndex, messages, model, signal, }: PrepareModelStepInput) => Promise<PrepareModelStepResult | undefined>;
21
38
  }
39
+ /** The key of a stored step's tool-files message: its message and its first local tool call. */
40
+ export declare function toolFilesStepKey(messageId: string, partIndex: number): string;
41
+ /**
42
+ * The images each stored step's tools returned, by {@link toolFilesStepKey}, not projected yet:
43
+ * {@link allocateInlineImages} projects them as far as the request's budget goes.
44
+ */
45
+ export declare function replayToolFiles(input: {
46
+ readonly messages: readonly AgentMessageRecord[];
47
+ readonly suppliesToolFiles: SuppliesToolFiles;
48
+ readonly supportsImages: boolean;
49
+ }): ReadonlyMap<string, readonly ToolFileCandidate[]>;
50
+ /**
51
+ * Spend the request's inline image budget on the history, in thread order, oldest first: each user
52
+ * message's attachments, then the images after each step of the turn that answered it. Images are
53
+ * projected only while the budget is open, a few at a time; what does not fit reads as metadata.
54
+ * The run's own steps then take what is left, in the order a later replay walks them, so every
55
+ * turn takes the same decisions. Images are never stored: their bytes are projected again from
56
+ * their blobs, which is deterministic.
57
+ */
58
+ export declare function allocateInlineImages(input: ToolFileProjectionInput & {
59
+ readonly messages: readonly AgentMessageRecord[];
60
+ readonly attachments: PreparedAgentAttachmentContext;
61
+ readonly toolFiles: ReadonlyMap<string, readonly ToolFileCandidate[]>;
62
+ readonly budget: InlineImageBudget;
63
+ }): Promise<PreparedAgentAttachmentContext>;
64
+ export {};
22
65
  //# sourceMappingURL=result-media.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"result-media.d.ts","sourceRoot":"","sources":["../../src/tools/result-media.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAA6B,8BAA8B,EAAE,MAAM,gBAAgB,CAAA;AAE1F,OAAO,EAAE,KAAK,oBAAoB,EAAgC,MAAM,iBAAiB,CAAA;AAWzF,qGAAqG;AACrG,qBAAa,0BAA0B;;IAInC,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE;QACtB,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAA;QACvC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,GAAG,SAAS,CAAA;QACzE,mEAAmE;QACnE,QAAQ,CAAC,WAAW,CAAC,EA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AAE,WAAW,CAAC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC,CAAA;IACrE,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAA;CACnC,GACA,OAAO,CAAC,8BAA8B,CAAC,CAuDzC"}
@@ -12,7 +12,7 @@ export declare function agentToolResultToModelOutput(input: {
12
12
  readonly output: JsonValue;
13
13
  readonly blobStorage: AgentRunFileStore;
14
14
  readonly signal?: AbortSignal;
15
- readonly sandboxPathForFileRef?: (fileRef: FileRef) => string | undefined;
15
+ readonly sandboxPathForFileRef?: (fileRef: FileRef) => string | undefined | Promise<string | undefined>;
16
16
  readonly imageOmissionNote?: string;
17
17
  }): Promise<AgentToolModelOutput>;
18
18
  //# sourceMappingURL=result-output.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"result-output.d.ts","sourceRoot":"","sources":["../../src/tools/result-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,KAAK,iBAAiB,EAAqB,MAAM,4BAA4B,CAAA;AAGtF,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAA;AAExD,0FAA0F;AAC1F,wBAAsB,4BAA4B,CAAC,KAAK,EAAE;IACxD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAA;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;IAC7B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,GAAG,SAAS,CAAA;IACzE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CACpC,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA4BhC"}
1
+ {"version":3,"file":"result-output.d.ts","sourceRoot":"","sources":["../../src/tools/result-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,KAAK,iBAAiB,EAAqB,MAAM,4BAA4B,CAAA;AAGtF,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAA;AAExD,0FAA0F;AAC1F,wBAAsB,4BAA4B,CAAC,KAAK,EAAE;IACxD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAA;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;IAC7B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAC/B,OAAO,EAAE,OAAO,KACb,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACrD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CACpC,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA4BhC"}
@@ -0,0 +1,63 @@
1
+ import { type AgentRunFileStore, type AgentToolCallFile } from "@sixb/core/internal/agents";
2
+ import { type ModelTool } from "@sixb/core/models";
3
+ import type { AgentMessageRecord } from "@sixb/core/storage";
4
+ import { type AgentSandboxHandle } from "../sandbox-handle";
5
+ import { AgentFileBudget } from "./tool-files";
6
+ /**
7
+ * Past this, a tool's output reaches the model as a preview, and the whole of it as a file in the
8
+ * sandbox that the agent reads in pieces or searches: one result then never takes more than a few
9
+ * KB of the context, and nothing past a cap is lost.
10
+ */
11
+ export declare const TOOL_OUTPUT_FILE_MIN_BYTES: number;
12
+ /** Where saved outputs go, in the context directory: `$SIXB_TOOL_OUTPUTS_DIR`. */
13
+ export declare const TOOL_OUTPUTS_DIRECTORY = "tool-outputs";
14
+ /**
15
+ * What one run may save, apart from the run's file budget that published artifacts and
16
+ * file-returning tools take: saving gives way first, its outputs left to the copy their message
17
+ * keeps. Identical outputs count once.
18
+ */
19
+ export declare const TOOL_OUTPUTS_MAX_BYTES: number;
20
+ /**
21
+ * The run's tools, each saving an output too large for the context: stored as a file of its run,
22
+ * like a tool's own files, and copied into the sandbox at `tool-outputs/<call id>-<digest>.txt`.
23
+ * The model reads a preview with that path; the call's message part keeps a bounded copy of the
24
+ * output and the stored file as its `outputFile` ({@link fileOf}), which every later run writes
25
+ * back ({@link restoreSavedToolOutputs}). Saving that fails leaves the output as the part keeps it.
26
+ */
27
+ export declare class ToolOutputFiles {
28
+ #private;
29
+ private readonly input;
30
+ constructor(input: {
31
+ readonly sandbox: () => Promise<AgentSandboxHandle>;
32
+ readonly blobStorage: Pick<AgentRunFileStore, "put">;
33
+ /** Test seam; production holds {@link TOOL_OUTPUTS_MAX_BYTES}, never the run's own budget. */
34
+ readonly budget?: AgentFileBudget;
35
+ });
36
+ wrap(tools: readonly ModelTool[]): ModelTool[];
37
+ /** The stored file of a call whose output was saved, for its message part. */
38
+ fileOf(toolCallId: string): AgentToolCallFile | undefined;
39
+ private saving;
40
+ private save;
41
+ }
42
+ /**
43
+ * The outputs a history saved, to write back: the newest within
44
+ * {@link RESTORED_OUTPUTS_MAX_BYTES}, by the size they declare, listed oldest first so that a
45
+ * later one at the same path is written last. Only a file of the shape the harness names is: the
46
+ * stored messages are a runner's, or a fork's copy of them.
47
+ */
48
+ export declare function savedToolOutputFiles(messages: readonly AgentMessageRecord[]): AgentToolCallFile[];
49
+ /**
50
+ * Write the saved outputs back into a run's sandbox: those it does not hold already, as a
51
+ * workspace that persists does, read from the store a few at a time, oldest first. A file is read
52
+ * no further than the size it declares, so the bytes read stay within what
53
+ * {@link savedToolOutputFiles} counted; one that cannot be read, or holds more, is left out.
54
+ */
55
+ export declare function restoreSavedToolOutputs(input: {
56
+ readonly handle: AgentSandboxHandle;
57
+ readonly files: readonly AgentToolCallFile[];
58
+ readonly blobStorage: Pick<AgentRunFileStore, "open">;
59
+ readonly signal: AbortSignal;
60
+ }): Promise<void>;
61
+ /** The path a tool result's text names when it is the preview of a saved output. */
62
+ export declare function savedToolOutputPath(text: string): string | undefined;
63
+ //# sourceMappingURL=tool-outputs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-outputs.d.ts","sourceRoot":"","sources":["../../src/tools/tool-outputs.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EAIvB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAGL,KAAK,SAAS,EAGf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,OAAO,EAAE,KAAK,kBAAkB,EAAe,MAAM,mBAAmB,CAAA;AAGxE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAG9C;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,QAAY,CAAA;AAEnD,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,iBAA+B,CAAA;AASlE;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAmB,CAAA;AA4BtD;;;;;;GAMG;AACH,qBAAa,eAAe;;IAKxB,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE;QACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAA;QACnD,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAA;QACpD,8FAA8F;QAC9F,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAA;KAClC;IAKH,IAAI,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE;IAI9C,8EAA8E;IAC9E,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS;IAIzD,OAAO,CAAC,MAAM;YA2CA,IAAI;CAkCnB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GAAG,iBAAiB,EAAE,CAejG;AAED;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAAC,KAAK,EAAE;IACnD,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAA;IACnC,QAAQ,CAAC,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAA;IAC5C,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;IACrD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;CAC7B,GAAG,OAAO,CAAC,IAAI,CAAC,CAiChB;AAoCD,oFAAoF;AACpF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEpE"}
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { AuthorizablePrincipal } from "@sixb/core";
2
- import type { AgentRunFileStore, RunModelLoopInput } from "@sixb/core/internal/agents";
2
+ import type { AgentRunFileStore, AgentSystemPromptSize, AgentToolCallFile, RunModelLoopInput } from "@sixb/core/internal/agents";
3
3
  import type { ModelTool } from "@sixb/core/models";
4
4
  import type { PreparedAgentAttachmentContext } from "./attachments";
5
5
  import type { AgentRequester } from "./requester";
@@ -44,11 +44,18 @@ export interface AgentTurnContext {
44
44
  /** The Sixb API the run's commands call, when this turn was created through a run environment. */
45
45
  readonly apiBaseUrl?: string;
46
46
  readonly tools: readonly ModelTool[];
47
+ /** The stored file of a call whose output was too large for the context, for its message. */
48
+ readonly outputFileOf?: (toolCallId: string) => AgentToolCallFile | undefined;
47
49
  readonly prepareStep?: RunModelLoopInput["prepareStep"];
48
50
  /** Complete worker-owned system prompt, derived from the mode and provisioned runtime. */
49
51
  readonly systemPrompt: string;
50
- /** Time zone of runs that captured none, used to date their user messages. */
52
+ /** The same prompt with each section's bytes, for each step to record what its request sent. */
53
+ readonly systemPromptSize?: AgentSystemPromptSize;
54
+ /** Where the run's context files are, as the agent names them: its reads of them are named. */
55
+ readonly contextDirectory?: string;
56
+ /** Time zone and locale of runs that captured none, used to date their user messages. */
51
57
  readonly projectTimeZone: string;
58
+ readonly projectLocale: string;
52
59
  /** Prepared by the run's environment, which materializes the files in its context directory. */
53
60
  readonly attachmentContext?: PreparedAgentAttachmentContext;
54
61
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACtF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEzD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,qGAAqG;IACrG,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,kFAAkF;IAClF,QAAQ,CAAC,yBAAyB,EAAE,MAAM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AgG;IAChG,QAAQ,CAAC,iBAAiB,CAAC,EAAE,8BAA8B,CAAA;IAC3D;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;CACpD;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAA;IACtC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAA;IACvC,mDAAmD;IACnD,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAA;IAChC;;;;OAIG;IACH,oBAAoB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACpF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixb/agent",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "The Sixb agent harness: one loop, prompt and tools for every runner",
5
5
  "keywords": [
6
6
  "sixb",
@@ -35,10 +35,10 @@
35
35
  "prepack": "bun run build"
36
36
  },
37
37
  "peerDependencies": {
38
- "@sixb/core": "0.1.26"
38
+ "@sixb/core": "0.2.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@sixb/core": "0.1.26",
41
+ "@sixb/core": "0.2.0",
42
42
  "@types/bun": "latest",
43
43
  "typescript": "^5.7.0"
44
44
  },
@@ -56,6 +56,6 @@
56
56
  "LICENSE"
57
57
  ],
58
58
  "dependencies": {
59
- "@sixb/cli-core": "^0.1.10"
59
+ "@sixb/cli-core": "^0.2.0"
60
60
  }
61
61
  }