@tangle-network/agent-app 0.63.41 → 0.63.42

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.
@@ -7,7 +7,6 @@ import type { ChatTurnProduceArgs, ChatTurnHybridConfiguration } from './turn-ro
7
7
  import type { RouterTurnTool } from '../runtime/router-turn';
8
8
  import type { RouterTurnKey } from './router-producer';
9
9
  import type { ComputerVault } from '../sandbox/computer-files';
10
- import type { ComputerStepReceipts } from '../sandbox/computer-receipts';
11
10
  import type { Outcome } from '../sandbox/outcome';
12
11
  /** Worker bindings are explicit; no ambient deployment credentials replace product policy. */
13
12
  export interface ChatTurnEnvironment {
@@ -38,11 +37,10 @@ export interface ChatTurnDefaultBackend<TContext = unknown, TResource = unknown>
38
37
  funding?(args: ChatTurnProduceArgs<TContext, TResource>): RouterTurnKey | Promise<RouterTurnKey>;
39
38
  /** The product's in-process tools for the Router model; `sandbox_run` is added after them. */
40
39
  tools?(args: ChatTurnProduceArgs<TContext, TResource>): RouterTurnTool[] | Promise<RouterTurnTool[]>;
41
- /** What the computer step does beyond running the task: copy its files into the product's Vault, keep durable
42
- * receipts, and run a model the box key allows (`readSandboxRouterModels` with the payer's key). */
40
+ /** What the computer step does beyond running the task: copy its files into the product's Vault, and run a model
41
+ * the box key allows (`readSandboxRouterModels` with the payer's key). */
43
42
  computer?: {
44
43
  files?(args: ChatTurnProduceArgs<TContext, TResource>): ComputerVault | undefined;
45
- receipts?: ComputerStepReceipts;
46
44
  allowedModels?(args: ChatTurnProduceArgs<TContext, TResource>, signal: AbortSignal): Promise<Outcome<readonly string[] | null>>;
47
45
  };
48
46
  }
@@ -55,7 +55,7 @@ export interface HybridTurnBox {
55
55
  /** Runs the task on the box and returns its answer. Omit it and pass `computer` for agent-app's computer step. */
56
56
  runTask?: SandboxRunToolOptions['runTask'];
57
57
  /** agent-app's computer step ({@link createComputerStep}): the first of the turn's models the box key allows, one
58
- * session value, stable step ids, durable receipts and the copy of the step's files into the product's Vault.
58
+ * session value, a turn id the runtime's admission makes idempotent, and the copy of the step's files into the product's Vault.
59
59
  * `parentExecutionId` defaults to the turn's execution id on the chat route, else the trace id. */
60
60
  computer?: ComputerStepOptions;
61
61
  /** Wall-clock cap for one `sandbox_run` call, box start included. Default 4 minutes. */
@@ -79,7 +79,7 @@ import {
79
79
  turnCarriesFiles,
80
80
  turnPromptText,
81
81
  withProducerStream
82
- } from "../chunk-RLQRWCPB.js";
82
+ } from "../chunk-JUGXFBOS.js";
83
83
  import "../chunk-CWO2LHXH.js";
84
84
  import {
85
85
  sniffMimeFromName
@@ -87,12 +87,11 @@ import {
87
87
  import "../chunk-4DBHC63F.js";
88
88
  import "../chunk-RN4WPTBH.js";
89
89
  import "../chunk-MM6RLOXF.js";
90
- import "../chunk-Y4RVCT7Z.js";
90
+ import "../chunk-NMDKUCUJ.js";
91
91
  import "../chunk-F4TUZYMX.js";
92
92
  import {
93
93
  redactErrorMessage
94
94
  } from "../chunk-MH74DY2I.js";
95
- import "../chunk-GY4IPYG4.js";
96
95
  import {
97
96
  assistantRowIdForTurn,
98
97
  createAssistantDraftWriter,