@tangle-network/agent-runtime 0.68.0 → 0.69.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.
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createFleetWorkspaceExecutor,
3
3
  createSiblingSandboxExecutor
4
- } from "./chunk-QNUEFNU7.js";
4
+ } from "./chunk-RTDI2DHD.js";
5
5
  import {
6
6
  runWorktreeHarness
7
- } from "./chunk-VKUHUFX7.js";
7
+ } from "./chunk-NLRA6434.js";
8
8
  import {
9
9
  buildLoopOtelSpans,
10
10
  createOtelExporter
@@ -275,4 +275,4 @@ export {
275
275
  createPropagatingTraceEmitter,
276
276
  traceContextToEnv
277
277
  };
278
- //# sourceMappingURL=chunk-LTEF2LYD.js.map
278
+ //# sourceMappingURL=chunk-QZ6FA5LM.js.map
@@ -11,7 +11,7 @@ import {
11
11
  runDetachedTurn,
12
12
  runLoop,
13
13
  selectValidWinner
14
- } from "./chunk-VKUHUFX7.js";
14
+ } from "./chunk-NLRA6434.js";
15
15
 
16
16
  // src/mcp/executor.ts
17
17
  function createSiblingSandboxExecutor(options) {
@@ -472,4 +472,4 @@ export {
472
472
  coderTaskFromArgs,
473
473
  settleDetachedCoderTurn
474
474
  };
475
- //# sourceMappingURL=chunk-QNUEFNU7.js.map
475
+ //# sourceMappingURL=chunk-RTDI2DHD.js.map
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  mcpToolsForRuntimeMcp,
3
3
  mcpToolsForRuntimeMcpSubset
4
- } from "./chunk-OYU5LR4T.js";
4
+ } from "./chunk-G6U3GVK2.js";
5
5
  import {
6
6
  DEFAULT_ROUTER_BASE_URL,
7
7
  cleanModelId,
@@ -21,9 +21,9 @@ import {
21
21
  runLoopRunnerCli,
22
22
  selfImproveLoopRunner,
23
23
  worktreeLoopRunner
24
- } from "./chunk-FCIPUALH.js";
24
+ } from "./chunk-K4FQSEXQ.js";
25
25
  import "./chunk-FNMGYYSS.js";
26
- import "./chunk-QNUEFNU7.js";
26
+ import "./chunk-RTDI2DHD.js";
27
27
  import "./chunk-DVQGYDN5.js";
28
28
  import "./chunk-P5OKDSLB.js";
29
29
  import {
@@ -31,7 +31,7 @@ import {
31
31
  defineRuntimeHooks,
32
32
  notifyRuntimeDecisionPoint,
33
33
  notifyRuntimeHookEvent
34
- } from "./chunk-VKUHUFX7.js";
34
+ } from "./chunk-NLRA6434.js";
35
35
  import "./chunk-WIR4HOOJ.js";
36
36
  import {
37
37
  AgentEvalError,
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  parseLoopRunnerArgv,
4
4
  runLoopRunnerCli
5
- } from "./chunk-FCIPUALH.js";
5
+ } from "./chunk-K4FQSEXQ.js";
6
6
  import "./chunk-FNMGYYSS.js";
7
- import "./chunk-QNUEFNU7.js";
7
+ import "./chunk-RTDI2DHD.js";
8
8
  import "./chunk-DVQGYDN5.js";
9
9
  import "./chunk-P5OKDSLB.js";
10
- import "./chunk-VKUHUFX7.js";
10
+ import "./chunk-NLRA6434.js";
11
11
  import "./chunk-WIR4HOOJ.js";
12
12
  import "./chunk-VLF5RHEQ.js";
13
13
  import "./chunk-O2UPHN7X.js";
package/dist/loops.js CHANGED
@@ -123,7 +123,7 @@ import {
123
123
  widen,
124
124
  withDriverExecutor,
125
125
  worktreeFanout
126
- } from "./chunk-VKUHUFX7.js";
126
+ } from "./chunk-NLRA6434.js";
127
127
  import "./chunk-WIR4HOOJ.js";
128
128
  import {
129
129
  extractLlmCallEvent,
package/dist/mcp/bin.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createPropagatingTraceEmitter,
4
4
  detectExecutor,
5
5
  readTraceContextFromEnv
6
- } from "../chunk-LTEF2LYD.js";
6
+ } from "../chunk-QZ6FA5LM.js";
7
7
  import {
8
8
  resolveRouterBaseUrl
9
9
  } from "../chunk-GRAGM4MC.js";
@@ -11,7 +11,7 @@ import {
11
11
  coderTaskFromArgs,
12
12
  detachedSessionDelegate,
13
13
  settleDetachedCoderTurn
14
- } from "../chunk-QNUEFNU7.js";
14
+ } from "../chunk-RTDI2DHD.js";
15
15
  import {
16
16
  coderTaskToPrompt
17
17
  } from "../chunk-DVQGYDN5.js";
@@ -29,7 +29,7 @@ import {
29
29
  parseDetachedSessionRef,
30
30
  runDetachedTurn,
31
31
  runLoop
32
- } from "../chunk-VKUHUFX7.js";
32
+ } from "../chunk-NLRA6434.js";
33
33
  import "../chunk-WIR4HOOJ.js";
34
34
  import "../chunk-VLF5RHEQ.js";
35
35
  import "../chunk-O2UPHN7X.js";
package/dist/mcp/index.js CHANGED
@@ -4,11 +4,11 @@ import {
4
4
  detectExecutor,
5
5
  readTraceContextFromEnv,
6
6
  traceContextToEnv
7
- } from "../chunk-LTEF2LYD.js";
7
+ } from "../chunk-QZ6FA5LM.js";
8
8
  import {
9
9
  mcpToolsForRuntimeMcp,
10
10
  mcpToolsForRuntimeMcpSubset
11
- } from "../chunk-OYU5LR4T.js";
11
+ } from "../chunk-G6U3GVK2.js";
12
12
  import {
13
13
  createKbGate
14
14
  } from "../chunk-FNMGYYSS.js";
@@ -18,7 +18,7 @@ import {
18
18
  createSiblingSandboxExecutor,
19
19
  detachedSessionDelegate,
20
20
  settleDetachedCoderTurn
21
- } from "../chunk-QNUEFNU7.js";
21
+ } from "../chunk-RTDI2DHD.js";
22
22
  import "../chunk-DVQGYDN5.js";
23
23
  import {
24
24
  DELEGATION_MCP_SERVER_KEY,
@@ -82,7 +82,7 @@ import {
82
82
  validateDelegateUiAuditArgs,
83
83
  validateDelegationHistoryArgs,
84
84
  validateDelegationStatusArgs
85
- } from "../chunk-VKUHUFX7.js";
85
+ } from "../chunk-NLRA6434.js";
86
86
  import "../chunk-WIR4HOOJ.js";
87
87
  import "../chunk-VLF5RHEQ.js";
88
88
  import {
package/dist/runtime.d.ts CHANGED
@@ -2768,6 +2768,12 @@ interface CliWorktreeSeam {
2768
2768
  * `agentProfile` is the bridge-dialect profile (metadata.disallowedTools, mcp)
2769
2769
  * forwarded verbatim per request — how an arm disables native tools or injects
2770
2770
  * a provider search MCP.
2771
+ *
2772
+ * The executor opens a RESUMABLE cli-bridge session — structurally identical to the
2773
+ * sandbox executor's persistent box, just local. `sessionId` is the stable
2774
+ * caller-owned id cli-bridge maps to the harness's internal conversation id; a
2775
+ * follow-up steer/resume on the SAME id continues the SAME harness session (opencode
2776
+ * `-s`, claude `--resume`, …). Omit it and the executor mints a stable one per spawn.
2771
2777
  */
2772
2778
  interface BridgeSeam {
2773
2779
  bridgeUrl: string;
@@ -2775,6 +2781,12 @@ interface BridgeSeam {
2775
2781
  model: string;
2776
2782
  agentProfile?: Record<string, unknown>;
2777
2783
  timeoutMs?: number;
2784
+ /** Stable, caller-owned cli-bridge session id for harness-side resume. Defaults
2785
+ * to a freshly minted per-spawn id so each worker is its own resumable session. */
2786
+ sessionId?: string;
2787
+ /** Per-resume-turn inference cap before the worker settles on its last output.
2788
+ * Mirrors `routerToolsInlineExecutor.maxTurns`; default 200 (runaway backstop). */
2789
+ maxTurns?: number;
2778
2790
  }
2779
2791
  /**
2780
2792
  * Router seam WITH tool use — the tool-using router backend. Same direct
package/dist/runtime.js CHANGED
@@ -123,7 +123,7 @@ import {
123
123
  widen,
124
124
  withDriverExecutor,
125
125
  worktreeFanout
126
- } from "./chunk-VKUHUFX7.js";
126
+ } from "./chunk-NLRA6434.js";
127
127
  import "./chunk-WIR4HOOJ.js";
128
128
  import {
129
129
  extractLlmCallEvent,
package/dist/workflow.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  createSandboxForSpec,
3
3
  describeSandboxPlacement,
4
4
  runLoop
5
- } from "./chunk-VKUHUFX7.js";
5
+ } from "./chunk-NLRA6434.js";
6
6
  import "./chunk-WIR4HOOJ.js";
7
7
  import {
8
8
  ValidationError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-runtime",
3
- "version": "0.68.0",
3
+ "version": "0.69.0",
4
4
  "description": "Shared task-lifecycle skeleton for agents: a recursive loop kernel for chat turns, one-shot tasks, and multi-attempt loops, with trace capture and eval-gated self-improvement. Domain behavior lives in adapters; scoring and ship-gates in @tangle-network/agent-eval.",
5
5
  "homepage": "https://github.com/tangle-network/agent-runtime#readme",
6
6
  "repository": {