@tangle-network/agent-runtime 0.103.1 → 0.105.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.
- package/README.md +177 -39
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +5 -5
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/candidate-execution/index.d.ts +2 -2
- package/dist/candidate-execution/index.js +4 -4
- package/dist/{chunk-TUSOOIDV.js → chunk-C5RTIBNZ.js} +2 -2
- package/dist/{chunk-SNSMRT6H.js → chunk-CTRA64LY.js} +3 -3
- package/dist/{chunk-ZXICDSAK.js → chunk-H5QPIZNX.js} +2 -2
- package/dist/{chunk-6WZZXQV5.js → chunk-HLKC4UYB.js} +1 -13
- package/dist/chunk-HLKC4UYB.js.map +1 -0
- package/dist/{chunk-AAN2MB2X.js → chunk-HNP72PNU.js} +3 -10
- package/dist/chunk-HNP72PNU.js.map +1 -0
- package/dist/{chunk-M6MD6JBS.js → chunk-KRBFHMV6.js} +429 -1
- package/dist/chunk-KRBFHMV6.js.map +1 -0
- package/dist/chunk-OPVWXJ2H.js +75 -0
- package/dist/chunk-OPVWXJ2H.js.map +1 -0
- package/dist/{chunk-AYU35OTU.js → chunk-PZZKQVQV.js} +1 -1
- package/dist/chunk-PZZKQVQV.js.map +1 -0
- package/dist/{chunk-B7K7V22Y.js → chunk-RDOAVVHY.js} +2 -2
- package/dist/{chunk-L5DST3QC.js → chunk-SMQXZGLZ.js} +1 -1
- package/dist/chunk-SMQXZGLZ.js.map +1 -0
- package/dist/{chunk-LFM4JBRW.js → chunk-UHEZW5BU.js} +1084 -527
- package/dist/chunk-UHEZW5BU.js.map +1 -0
- package/dist/{chunk-5AITUUHO.js → chunk-VISA6CI3.js} +3 -3
- package/dist/{chunk-ZOYN3JR5.js → chunk-WMTCUOQL.js} +5 -5
- package/dist/{chunk-3LJF5XSE.js → chunk-WRTOVNN4.js} +6 -6
- package/dist/chunk-WRTOVNN4.js.map +1 -0
- package/dist/{chunk-SBTWKPVR.js → chunk-WSTRQZYQ.js} +1 -1
- package/dist/chunk-WSTRQZYQ.js.map +1 -0
- package/dist/{chunk-EAQ5YRRY.js → chunk-XBG2W2VW.js} +50 -23
- package/dist/chunk-XBG2W2VW.js.map +1 -0
- package/dist/{chunk-QYCKIV6C.js → chunk-YJZA2BIK.js} +2 -2
- package/dist/{chunk-QYCKIV6C.js.map → chunk-YJZA2BIK.js.map} +1 -1
- package/dist/{completion-gate-DLINnrkM.d.ts → completion-gate-BMy5LGoP.d.ts} +3 -3
- package/dist/{coordination-DTehA977.d.ts → coordination-BZZSVYpZ.d.ts} +28 -28
- package/dist/environment-provider.d.ts +18 -7
- package/dist/environment-provider.js +3 -1
- package/dist/index.d.ts +106 -182
- package/dist/index.js +374 -236
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +93 -47
- package/dist/intelligence.js +127 -73
- package/dist/intelligence.js.map +1 -1
- package/dist/knowledge.d.ts +6 -6
- package/dist/knowledge.js +9 -9
- package/dist/{local-harness-CtK9dSny.d.ts → local-harness-BDNcl6jI.d.ts} +1 -1
- package/dist/{loop-runner-bin-DhIXsLAd.d.ts → loop-runner-bin-68aoM9-7.d.ts} +5 -13
- package/dist/loop-runner-bin.d.ts +6 -8
- package/dist/loop-runner-bin.js +6 -6
- package/dist/loops.d.ts +67 -42
- package/dist/loops.js +10 -6
- package/dist/mcp/bin.js +4 -4
- package/dist/mcp/index.d.ts +9 -10
- package/dist/mcp/index.js +11 -11
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/primeintellect/index.d.ts +3 -4
- package/dist/primeintellect/index.js +5 -6
- package/dist/primeintellect/index.js.map +1 -1
- package/dist/profiles.d.ts +6 -6
- package/dist/profiles.js.map +1 -1
- package/dist/{protected-model-port-DzkUY3HQ.d.ts → protected-model-port-B4t-OQjL.d.ts} +1 -1
- package/dist/{improve-B40dRu0X.d.ts → redact-BuFjxBUJ.d.ts} +201 -154
- package/dist/{structural-rollout-BFPIy3iw.d.ts → structural-rollout-DEh6CEsa.d.ts} +4 -4
- package/dist/{supervise-Cp8bNcJi.d.ts → supervise-4_48wwvy.d.ts} +3 -3
- package/dist/testing.js +9 -9
- package/dist/testing.js.map +1 -1
- package/dist/{types-DK11_O4L.d.ts → types-BCoemcXU.d.ts} +4 -4
- package/dist/{types-lZTE_LBd.d.ts → types-CvNwMzQt.d.ts} +4 -4
- package/dist/{worktree-fanout-DiiJWjJO.d.ts → worktree-fanout-DxhAWr5Z.d.ts} +6 -6
- package/package.json +8 -7
- package/skills/build-with-agent-runtime/SKILL.md +15 -9
- package/skills/loop-writer/SKILL.md +1 -1
- package/dist/chunk-3LJF5XSE.js.map +0 -1
- package/dist/chunk-6WZZXQV5.js.map +0 -1
- package/dist/chunk-AAN2MB2X.js.map +0 -1
- package/dist/chunk-AYU35OTU.js.map +0 -1
- package/dist/chunk-EAQ5YRRY.js.map +0 -1
- package/dist/chunk-L5DST3QC.js.map +0 -1
- package/dist/chunk-LFM4JBRW.js.map +0 -1
- package/dist/chunk-M6MD6JBS.js.map +0 -1
- package/dist/chunk-SBTWKPVR.js.map +0 -1
- /package/dist/{chunk-TUSOOIDV.js.map → chunk-C5RTIBNZ.js.map} +0 -0
- /package/dist/{chunk-SNSMRT6H.js.map → chunk-CTRA64LY.js.map} +0 -0
- /package/dist/{chunk-ZXICDSAK.js.map → chunk-H5QPIZNX.js.map} +0 -0
- /package/dist/{chunk-B7K7V22Y.js.map → chunk-RDOAVVHY.js.map} +0 -0
- /package/dist/{chunk-5AITUUHO.js.map → chunk-VISA6CI3.js.map} +0 -0
- /package/dist/{chunk-ZOYN3JR5.js.map → chunk-WMTCUOQL.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkspacePlanReceipt } from '@tangle-network/agent-profile-materialize';
|
|
2
|
-
import { L as LocalHarness, C as CodexTokenUsage,
|
|
3
|
-
import { f as Executor } from './types-
|
|
2
|
+
import { L as LocalHarness, C as CodexTokenUsage, a as CodexExecutionPolicy } from './local-harness-BDNcl6jI.js';
|
|
3
|
+
import { f as Executor } from './types-CvNwMzQt.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -100,7 +100,7 @@ declare function removeWorktree(options: RemoveWorktreeOptions): Promise<void>;
|
|
|
100
100
|
* worktree off `repoRoot`, capture the diff, derive the test/typecheck PASS signals, then clean
|
|
101
101
|
* up — lives here ONCE. Two executors adapt it to two ports without re-implementing it:
|
|
102
102
|
* - `createWorktreeCliExecutor` — the `Scope`/`Supervisor` leaf `Executor`.
|
|
103
|
-
* - `createInProcessExecutor` — the `
|
|
103
|
+
* - `createInProcessExecutor` — the `runAgentRounds` `SandboxClient` / coder-delegate path.
|
|
104
104
|
*
|
|
105
105
|
* §1.5 by construction: prompt + model reach the direct invocation, while file-backed resources
|
|
106
106
|
* are lowered by the shared profile materializer and applied before spawn. Resource instructions
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { R as Runtime, E as ExecutorFactory, U as UsageEvent, k as ExecutorProgress, T as TraceSource, g as Spend, i as ExecutorRegistry, A as Agent, S as Scope, b as ResultBlobStore, B as Budget } from './types-
|
|
1
|
+
import { R as Runtime, E as ExecutorFactory, U as UsageEvent, k as ExecutorProgress, T as TraceSource, g as Spend, i as ExecutorRegistry, A as Agent, S as Scope, b as ResultBlobStore, B as Budget } from './types-CvNwMzQt.js';
|
|
2
2
|
import { StreamingDetector, DetectorSignal, ToolSpan, AgentEvalError } from '@tangle-network/agent-eval';
|
|
3
3
|
import { AgentProfile as AgentProfile$1 } from '@tangle-network/agent-interface';
|
|
4
4
|
import { a as UiLens, U as UiFinding, C as CoderTask } from './substrate-Dyiqmd3o.js';
|
|
5
|
-
import {
|
|
5
|
+
import { a as SandboxClient, E as ExecCtx, t as LoopTraceEmitter, c as LoopTraceEvent, A as AgentRunSpec } from './types-BCoemcXU.js';
|
|
6
6
|
import { AgentProfile, BackendType, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
|
|
7
7
|
import { b as ToolSpec, c as RuntimeTelemetryOptions, R as RouterConfig } from './sanitize-DEbPNtyI.js';
|
|
8
8
|
import { R as RuntimeStreamEvent } from './types-BwoZWq-i.js';
|
|
9
|
-
import { G as GitRunner, a as WorktreeCheckRunner, D as DeliverableSpec } from './completion-gate-
|
|
10
|
-
import { L as LocalHarness } from './local-harness-
|
|
9
|
+
import { G as GitRunner, a as WorktreeCheckRunner, D as DeliverableSpec } from './completion-gate-BMy5LGoP.js';
|
|
10
|
+
import { L as LocalHarness } from './local-harness-BDNcl6jI.js';
|
|
11
11
|
import { ProviderExecutorOptions, AgentEnvironmentProviderRegistry } from './environment-provider.js';
|
|
12
12
|
import { AgentEnvironmentProvider } from '@tangle-network/agent-interface/environment-provider';
|
|
13
13
|
|
|
@@ -23,7 +23,7 @@ import { AgentEnvironmentProvider } from '@tangle-network/agent-interface/enviro
|
|
|
23
23
|
* verb pi already has:
|
|
24
24
|
*
|
|
25
25
|
* `execute` → `prompt`, draining pi's event stream until `agent_end`
|
|
26
|
-
* `deliver` → `
|
|
26
|
+
* `deliver` → `prompt` with `streamingBehavior` — pi owns the queue, we do not
|
|
27
27
|
* `teardown` → `abort`, then close stdin and reap the process
|
|
28
28
|
* `progress` → pi's `tool_execution_start`/`_end` + `turn_end` events, plus `get_state`'s
|
|
29
29
|
* `pendingMessageCount` mirrored locally so the read stays synchronous
|
|
@@ -111,7 +111,7 @@ declare function createInbox(): Inbox;
|
|
|
111
111
|
* The STEERABLE sandbox worker: one box, one server-side session, MANY turns — so a message
|
|
112
112
|
* from the driver has a boundary to be folded into.
|
|
113
113
|
*
|
|
114
|
-
* The default cloud worker was built on `singleShotDriver`: one `
|
|
114
|
+
* The default cloud worker was built on `singleShotDriver`: one `runAgentRounds` shot, no turn
|
|
115
115
|
* boundary, and no `Executor.deliver`. `Scope.send` therefore returned `false` for it and
|
|
116
116
|
* `steer_agent` reported `delivered:false` on every call — steering the DEFAULT worker was
|
|
117
117
|
* mechanically impossible, not merely unused. This module is the missing continuation loop.
|
|
@@ -141,7 +141,7 @@ declare function createInbox(): Inbox;
|
|
|
141
141
|
* this bounds how many times a supervisor may redirect ONE worker before it must respawn. */
|
|
142
142
|
declare const DEFAULT_SANDBOX_STEERING_MAX_TURNS = 24;
|
|
143
143
|
/** Opt-in configuration for the steerable sandbox worker (`SandboxSeam.steering`). Absent, the
|
|
144
|
-
* sandbox executor keeps its historical single-shot `
|
|
144
|
+
* sandbox executor keeps its historical single-shot `runAgentRounds` composition verbatim. */
|
|
145
145
|
interface SandboxSteeringOptions {
|
|
146
146
|
/** Max turns for one worker (turn 0 + folded steers). Default {@link DEFAULT_SANDBOX_STEERING_MAX_TURNS}. */
|
|
147
147
|
readonly maxTurns?: number;
|
|
@@ -186,7 +186,7 @@ declare function createSteerableSandboxSession(args: SteerableSandboxArgs): Stee
|
|
|
186
186
|
*
|
|
187
187
|
* The interface is the extension point, not a closed `inline|sandbox|cli` union:
|
|
188
188
|
* - router/inline : a direct OpenAI-compatible Router call, no box (one-shot).
|
|
189
|
-
* - sandbox : COMPOSES the existing `
|
|
189
|
+
* - sandbox : COMPOSES the existing `runAgentRounds` kernel as a single-task
|
|
190
190
|
* leaf and surfaces its token/cost usage as `UsageEvent`s;
|
|
191
191
|
* forwards PR #150's optional `lineage` passthrough WITHOUT
|
|
192
192
|
* reinventing checkpoint/fork (streaming).
|
|
@@ -198,7 +198,7 @@ declare function createSteerableSandboxSession(args: SteerableSandboxArgs): Stee
|
|
|
198
198
|
* pass it as `AgentSpec.executor`.
|
|
199
199
|
*
|
|
200
200
|
* Layering: `estimateCost`/`isModelPriced` are substrate primitives from
|
|
201
|
-
* `@tangle-network/agent-eval`; `
|
|
201
|
+
* `@tangle-network/agent-eval`; `runAgentRounds`/`acquireSandbox` are runtime kernels
|
|
202
202
|
* from this package. No per-vendor adapters live here.
|
|
203
203
|
*
|
|
204
204
|
* @experimental
|
|
@@ -215,29 +215,29 @@ interface RouterSeam {
|
|
|
215
215
|
model?: string;
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
|
-
* Sandbox executor seam. The `sandboxClient` the composed `
|
|
218
|
+
* Sandbox executor seam. The `sandboxClient` the composed `runAgentRounds` creates
|
|
219
219
|
* boxes through, plus the optional trace/run/lineage wiring forwarded into the
|
|
220
|
-
* loop. `lineage` is opaque here (PR #150's `
|
|
220
|
+
* loop. `lineage` is opaque here (PR #150's `RunAgentRoundsOptions.lineage`): forwarded
|
|
221
221
|
* forward-compatibly, never inspected — this executor does NOT reinvent
|
|
222
222
|
* checkpoint/fork.
|
|
223
223
|
*/
|
|
224
224
|
interface SandboxSeam {
|
|
225
225
|
sandboxClient: SandboxClient;
|
|
226
|
-
/** Forwarded into the composed `
|
|
226
|
+
/** Forwarded into the composed `runAgentRounds`'s `ctx` (trace emitter, run handle, etc.). */
|
|
227
227
|
loopCtx?: Partial<Omit<ExecCtx, 'sandboxClient' | 'signal'>>;
|
|
228
|
-
/** PR #150 `
|
|
228
|
+
/** PR #150 `RunAgentRoundsOptions.lineage` passthrough — opaque; forwarded, not parsed. */
|
|
229
229
|
lineage?: unknown;
|
|
230
230
|
/** Hard cap on the composed loop's iterations. The budget pool reserves against
|
|
231
231
|
* the spawn `Budget.maxIterations`; this is the leaf's own ceiling. Default 1. */
|
|
232
232
|
maxIterations?: number;
|
|
233
233
|
/**
|
|
234
234
|
* OPT-IN: run this worker as a multi-turn, STEERABLE session instead of the historical
|
|
235
|
-
* single-shot `
|
|
235
|
+
* single-shot `runAgentRounds` composition. Setting it gives the sandbox worker an `Executor.deliver`
|
|
236
236
|
* inbox (so `Scope.send` / `steer_agent` actually reach it), a live tool-activity trace, and a
|
|
237
237
|
* `progress()` read — turning the default cloud worker from something a supervisor can only
|
|
238
238
|
* wait on into something it can watch and correct.
|
|
239
239
|
*
|
|
240
|
-
* Absent, nothing changes: the same `
|
|
240
|
+
* Absent, nothing changes: the same `runAgentRounds` leaf, no inbox, `steer_agent` still reports
|
|
241
241
|
* `delivered:false`. Opt-in because a steerable worker holds ONE box across several turns,
|
|
242
242
|
* which is a different resource profile from a fire-and-forget shot.
|
|
243
243
|
*/
|
|
@@ -973,7 +973,7 @@ declare function exportEvalRuns(events: EvalRunEvent[], config?: EvalRunsExportC
|
|
|
973
973
|
* PARENT_SPAN_ID=<span-that-dispatched-the-delegation>
|
|
974
974
|
*
|
|
975
975
|
* The MCP server reads these at startup and uses them as the root of its
|
|
976
|
-
* internal trace tree. All spans emitted by `
|
|
976
|
+
* internal trace tree. All spans emitted by `runAgentRounds` invocations inside
|
|
977
977
|
* the MCP are children of the parent's delegation span.
|
|
978
978
|
*
|
|
979
979
|
* When these env vars are absent, the MCP generates a fresh trace root —
|
|
@@ -1310,7 +1310,7 @@ interface DelegationHistoryResult {
|
|
|
1310
1310
|
* Each `submit` returns a `taskId` immediately and kicks the work off in the
|
|
1311
1311
|
* background. The work function receives an `AbortSignal` the queue fires
|
|
1312
1312
|
* when `cancel(taskId)` is called. The queue does NOT supervise runtime
|
|
1313
|
-
* timeouts — the underlying `
|
|
1313
|
+
* timeouts — the underlying `runAgentRounds` driver / sandbox imposes those.
|
|
1314
1314
|
*
|
|
1315
1315
|
* Idempotency: callers may supply an `idempotencyKey` (hash of the input).
|
|
1316
1316
|
* A duplicate `submit` with a known key returns the existing task instead of
|
|
@@ -1416,7 +1416,7 @@ interface DelegationRunContext {
|
|
|
1416
1416
|
* Per-delegation loop-trace sink, always provided by the queue. Events
|
|
1417
1417
|
* emitted here are journaled onto the record as a compact span tree
|
|
1418
1418
|
* (`record.trace`) when each loop run ends and at the delegation's
|
|
1419
|
-
* terminal transition. Delegates forward it into their `
|
|
1419
|
+
* terminal transition. Delegates forward it into their `runAgentRounds` ctx,
|
|
1420
1420
|
* composed with any process-wide OTEL emitter
|
|
1421
1421
|
* (`composeLoopTraceEmitters`). Optional in the type so consumer-built
|
|
1422
1422
|
* contexts stay source-compatible.
|
|
@@ -1639,7 +1639,7 @@ declare function hashIdempotencyInput(value: unknown): string;
|
|
|
1639
1639
|
* loop event stream (see `RunDetachedTurnOptions.traceEmitter`) so the span
|
|
1640
1640
|
* topology joins the inherited trace context, with cost/tokens reported as 0
|
|
1641
1641
|
* under the `'detached-turn'` driver tag. Multi-variant fanout stays on the
|
|
1642
|
-
* streaming `
|
|
1642
|
+
* streaming `runAgentRounds` path — N concurrent sessions cannot be expressed as one
|
|
1643
1643
|
* resume key, and winner selection needs every candidate.
|
|
1644
1644
|
*
|
|
1645
1645
|
* @experimental
|
|
@@ -1745,7 +1745,7 @@ interface RunDetachedTurnOptions {
|
|
|
1745
1745
|
* Loop-trace sink. When set, the detached turn synthesizes a
|
|
1746
1746
|
* single-iteration loop span tree (`runId` = `sessionId`, driver
|
|
1747
1747
|
* `'detached-turn'`) so trace-context inheritance survives the detached
|
|
1748
|
-
* path — the same events the streaming `
|
|
1748
|
+
* path — the same events the streaming `runAgentRounds` path would emit, minus
|
|
1749
1749
|
* per-token telemetry: `driveTurn` yields one terminal payload, so token
|
|
1750
1750
|
* and cost figures are structurally unavailable and reported as 0 under
|
|
1751
1751
|
* this driver tag.
|
|
@@ -1911,7 +1911,7 @@ declare function createFleetWorkspaceExecutor(options: FleetWorkspaceExecutorOpt
|
|
|
1911
1911
|
|
|
1912
1912
|
/**
|
|
1913
1913
|
*
|
|
1914
|
-
* `detachedSessionDelegate` — the sandbox-session coder delegate: a closure that drives `
|
|
1914
|
+
* `detachedSessionDelegate` — the sandbox-session coder delegate: a closure that drives `runAgentRounds`
|
|
1915
1915
|
* against a `SandboxClient` + a caller-supplied (or minimal model-only default) worker profile, to a
|
|
1916
1916
|
* mechanically-validated `CoderOutput`. The caller invokes the returned delegate directly with its
|
|
1917
1917
|
* coder args; when wired into a durable queue it also settles cross-restart-resumed records.
|
|
@@ -2012,7 +2012,7 @@ interface DetachedSessionDelegateOptions {
|
|
|
2012
2012
|
sandboxClient?: SandboxClient;
|
|
2013
2013
|
/**
|
|
2014
2014
|
* The worker's authored `AgentProfile` (§1.5: the system authors profiles). Spread onto the
|
|
2015
|
-
* sandbox-session run spec → `
|
|
2015
|
+
* sandbox-session run spec → `runAgentRounds` → the executor's `harnessInvocation`, so the harness runs
|
|
2016
2016
|
* under the caller's stance. Omit to use a minimal model-only default (no hardcoded skills/tools);
|
|
2017
2017
|
* `harness` / `model` / `systemPrompt` below are convenience overrides layered onto whichever
|
|
2018
2018
|
* profile is used.
|
|
@@ -2024,7 +2024,7 @@ interface DetachedSessionDelegateOptions {
|
|
|
2024
2024
|
model?: string;
|
|
2025
2025
|
/**
|
|
2026
2026
|
* The worker's authored system prompt (§1.5). Flows onto the run spec's
|
|
2027
|
-
* `profile.prompt.systemPrompt` → through `
|
|
2027
|
+
* `profile.prompt.systemPrompt` → through `runAgentRounds` → the executor's `harnessInvocation`, so the
|
|
2028
2028
|
* harness runs under this stance. Omit to keep the profile's own prompt.
|
|
2029
2029
|
*/
|
|
2030
2030
|
systemPrompt?: string;
|
|
@@ -2044,14 +2044,14 @@ interface DetachedSessionDelegateOptions {
|
|
|
2044
2044
|
/** Winner-selection strategy among eligible candidates. Default `highest-score`. */
|
|
2045
2045
|
winnerSelection?: DetachedWinnerSelection;
|
|
2046
2046
|
/**
|
|
2047
|
-
* Loop trace emitter forwarded into every delegated `
|
|
2047
|
+
* Loop trace emitter forwarded into every delegated `runAgentRounds`. Wire
|
|
2048
2048
|
* `createPropagatingTraceEmitter(readTraceContextFromEnv())` here (the bin
|
|
2049
2049
|
* does) so delegated build-loops export their topology spans to the OTLP /
|
|
2050
2050
|
* Tangle Intelligence sink when `OTEL_EXPORTER_OTLP_ENDPOINT` is set — and
|
|
2051
2051
|
* are a cheap no-op when it isn't. Configurable by construction.
|
|
2052
2052
|
*
|
|
2053
2053
|
* Detached single-variant turns (taken when `ctx.detachedSessionRef` is set)
|
|
2054
|
-
* bypass `
|
|
2054
|
+
* bypass `runAgentRounds`; `runDetachedTurn` synthesizes a single-iteration loop
|
|
2055
2055
|
* event stream for them so this emitter observes detached work too.
|
|
2056
2056
|
*/
|
|
2057
2057
|
traceEmitter?: LoopTraceEmitter;
|
|
@@ -2061,7 +2061,7 @@ interface DetachedSessionDelegateOptions {
|
|
|
2061
2061
|
detachedWallCapMs?: number;
|
|
2062
2062
|
}
|
|
2063
2063
|
/**
|
|
2064
|
-
* Build the sandbox-session coder delegate. It drives `
|
|
2064
|
+
* Build the sandbox-session coder delegate. It drives `runAgentRounds` against the project's
|
|
2065
2065
|
* sandbox client + coder profile; when `args.variants > 1` it switches to the multi-harness fanout
|
|
2066
2066
|
* topology.
|
|
2067
2067
|
*
|
|
@@ -2106,7 +2106,7 @@ interface SettleDetachedCoderTurnOptions {
|
|
|
2106
2106
|
* detached run must not return an unvalidated patch.
|
|
2107
2107
|
*
|
|
2108
2108
|
* SCOPE NOTE (detached/resume): the detached `driveTurn`-tick + cross-restart resume path is
|
|
2109
|
-
* bound to the `
|
|
2109
|
+
* bound to the `runAgentRounds` + sandbox-session substrate. The recursive `Scope`/worktree-CLI leaf has
|
|
2110
2110
|
* journal→replay but no driveTurn-over-a-detached-sandbox-session equivalent yet, so resume is NOT
|
|
2111
2111
|
* advertised on the generic `worktreeFanout` path. This helper (with `coderTaskFromArgs` and
|
|
2112
2112
|
* `createDetachedTurnResumeDriver`) stays as the resume seam `bin.ts` wires for in-flight records.
|
|
@@ -2285,7 +2285,7 @@ interface McpServerOptions {
|
|
|
2285
2285
|
delegateSupervisor?: DelegateHandlerOptions;
|
|
2286
2286
|
/**
|
|
2287
2287
|
* Required to enable delegate_ui_audit. Wire one that closes over your
|
|
2288
|
-
* `
|
|
2288
|
+
* `runAgentRounds` + `uiAuditorProfile` + a `SandboxClient` (the
|
|
2289
2289
|
* canonical in-process choice is `createInProcessUiAuditClient` from
|
|
2290
2290
|
* `@tangle-network/agent-runtime/profiles`) + your vision judge.
|
|
2291
2291
|
*/
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import { AgentProfile, AgentProfileValidationResult } from '@tangle-network/agent-interface';
|
|
2
|
-
import { CreateAgentEnvironmentInput, AgentTurnInput,
|
|
2
|
+
import { AgentEnvironmentProvider, CreateAgentEnvironmentInput, AgentTurnInput, AgentEnvironmentCapabilities, AgentProfileRef } from '@tangle-network/agent-interface/environment-provider';
|
|
3
3
|
export { AgentEnvironment, AgentEnvironmentCapabilities, AgentEnvironmentEvent, AgentEnvironmentProvider, AgentEnvironmentQuery, AgentEnvironmentStatus, AgentEnvironmentSummary, AgentProfileRef, AgentSession, AgentSessionRef, AgentSessionStatus, AgentTurnInput, AgentTurnResult, CheckpointRef, CheckpointRequest, CreateAgentEnvironmentInput, ExecRequest, ExecResult, ForkRequest, PlacementInfo, ResourceRequest, WorkspaceRequest } from '@tangle-network/agent-interface/environment-provider';
|
|
4
|
-
import { CreateSandboxOptions, BackendType } from '@tangle-network/sandbox';
|
|
5
|
-
import { R as Runtime, E as ExecutorFactory } from './types-
|
|
6
|
-
import {
|
|
4
|
+
import { SandboxClient, CreateSandboxOptions, BackendType } from '@tangle-network/sandbox';
|
|
5
|
+
import { R as Runtime, E as ExecutorFactory } from './types-CvNwMzQt.js';
|
|
6
|
+
import { a as SandboxClient$1 } from './types-BCoemcXU.js';
|
|
7
7
|
import '@tangle-network/agent-eval';
|
|
8
8
|
import './types-BwoZWq-i.js';
|
|
9
9
|
|
|
10
|
+
interface CreateTangleSandboxExactProcessProviderOptions {
|
|
11
|
+
name?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Adapt Tangle Sandbox's managed control runtime to Runtime's exact-process provider.
|
|
15
|
+
*
|
|
16
|
+
* The adapter deliberately exposes no ordinary agent environment: an exact experiment
|
|
17
|
+
* must start a fresh Sandbox with no managed agent and launch its declared argv directly.
|
|
18
|
+
*/
|
|
19
|
+
declare function createTangleSandboxExactProcessProvider(client: SandboxClient, options?: CreateTangleSandboxExactProcessProviderOptions): AgentEnvironmentProvider;
|
|
20
|
+
|
|
10
21
|
/** Provider object or registry name accepted by runtime provider adapters.
|
|
11
22
|
* @experimental */
|
|
12
23
|
type AgentEnvironmentProviderRef = AgentEnvironmentProvider | string;
|
|
@@ -38,7 +49,7 @@ interface ProviderAsSandboxClientOptions {
|
|
|
38
49
|
}
|
|
39
50
|
/** Adapt a neutral environment provider to the `SandboxClient` interface used by existing loop paths.
|
|
40
51
|
* @experimental */
|
|
41
|
-
declare function providerAsSandboxClient(provider: AgentEnvironmentProvider, options?: ProviderAsSandboxClientOptions): SandboxClient;
|
|
52
|
+
declare function providerAsSandboxClient(provider: AgentEnvironmentProvider, options?: ProviderAsSandboxClientOptions): SandboxClient$1;
|
|
42
53
|
/** Options for wrapping the current Tangle sandbox client as an environment provider.
|
|
43
54
|
* @experimental */
|
|
44
55
|
interface SandboxClientProviderOptions {
|
|
@@ -50,7 +61,7 @@ interface SandboxClientProviderOptions {
|
|
|
50
61
|
}
|
|
51
62
|
/** Adapt a `SandboxClient` into the shared `AgentEnvironmentProvider` contract.
|
|
52
63
|
* @experimental */
|
|
53
|
-
declare function sandboxClientAsProvider(client: SandboxClient, options?: SandboxClientProviderOptions): AgentEnvironmentProvider;
|
|
64
|
+
declare function sandboxClientAsProvider(client: SandboxClient$1, options?: SandboxClientProviderOptions): AgentEnvironmentProvider;
|
|
54
65
|
/** Options for running a provider as a supervise-mode executor.
|
|
55
66
|
* @experimental */
|
|
56
67
|
interface ProviderExecutorOptions {
|
|
@@ -64,4 +75,4 @@ interface ProviderExecutorOptions {
|
|
|
64
75
|
* @experimental */
|
|
65
76
|
declare function providerAsExecutor(provider: AgentEnvironmentProvider, options?: ProviderExecutorOptions): ExecutorFactory<unknown>;
|
|
66
77
|
|
|
67
|
-
export { type AgentEnvironmentProviderRef, type AgentEnvironmentProviderRegistry, type ProviderAsSandboxClientOptions, type ProviderExecutorOptions, type SandboxClientProviderOptions, createAgentEnvironmentProviderRegistry, providerAsExecutor, providerAsSandboxClient, resolveAgentEnvironmentProvider, sandboxClientAsProvider };
|
|
78
|
+
export { type AgentEnvironmentProviderRef, type AgentEnvironmentProviderRegistry, type CreateTangleSandboxExactProcessProviderOptions, type ProviderAsSandboxClientOptions, type ProviderExecutorOptions, type SandboxClientProviderOptions, createAgentEnvironmentProviderRegistry, createTangleSandboxExactProcessProvider, providerAsExecutor, providerAsSandboxClient, resolveAgentEnvironmentProvider, sandboxClientAsProvider };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAgentEnvironmentProviderRegistry,
|
|
3
|
+
createTangleSandboxExactProcessProvider,
|
|
3
4
|
providerAsExecutor,
|
|
4
5
|
providerAsSandboxClient,
|
|
5
6
|
resolveAgentEnvironmentProvider,
|
|
6
7
|
sandboxClientAsProvider
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KRBFHMV6.js";
|
|
8
9
|
import "./chunk-3MDZX7YU.js";
|
|
9
10
|
export {
|
|
10
11
|
createAgentEnvironmentProviderRegistry,
|
|
12
|
+
createTangleSandboxExactProcessProvider,
|
|
11
13
|
providerAsExecutor,
|
|
12
14
|
providerAsSandboxClient,
|
|
13
15
|
resolveAgentEnvironmentProvider,
|