@tangle-network/agent-runtime 0.45.0 → 0.47.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 +3 -3
- package/dist/agent.d.ts +5 -5
- package/dist/agent.js +2 -2
- package/dist/agent.js.map +1 -1
- package/dist/analyst-loop.d.ts +5 -40
- package/dist/analyst-loop.js +2 -4
- package/dist/{chunk-IJ6FGOPO.js → chunk-5YDS7BLC.js} +12 -7
- package/dist/chunk-5YDS7BLC.js.map +1 -0
- package/dist/{chunk-KEWO4KI6.js → chunk-72JQCHOZ.js} +850 -131
- package/dist/chunk-72JQCHOZ.js.map +1 -0
- package/dist/{chunk-PRX45WE2.js → chunk-GSUO5QS6.js} +1 -119
- package/dist/chunk-GSUO5QS6.js.map +1 -0
- package/dist/{chunk-FK53TXOP.js → chunk-HNUXAZIJ.js} +4 -27
- package/dist/chunk-HNUXAZIJ.js.map +1 -0
- package/dist/{chunk-IJGS6J7X.js → chunk-JNPK46YH.js} +2 -2
- package/dist/{chunk-QR4UUC5P.js → chunk-KADIJAD4.js} +33 -19
- package/dist/chunk-KADIJAD4.js.map +1 -0
- package/dist/{chunk-NYN5RTLP.js → chunk-MGFEUYOH.js} +7 -7
- package/dist/chunk-MGFEUYOH.js.map +1 -0
- package/dist/{chunk-Z2QXVBA6.js → chunk-T4OQQEE3.js} +4 -4
- package/dist/chunk-T4OQQEE3.js.map +1 -0
- package/dist/{chunk-KSMX62JF.js → chunk-VR4JIC5H.js} +2 -2
- package/dist/{coder-CczgMqFx.d.ts → coder-CVZNGbyg.d.ts} +1 -1
- package/dist/{dynamic-BvllHV6M.d.ts → driver-DYU2sgHr.d.ts} +6 -6
- package/dist/{improvement-adapter-CWegd3vw.d.ts → improvement-adapter-BC4HhuAR.d.ts} +1 -1
- package/dist/improvement.d.ts +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +8 -8
- package/dist/{kb-gate-D9GBocLN.d.ts → kb-gate-51BlLlVM.d.ts} +13 -7
- package/dist/{loop-runner-bin-CPrCoKqC.d.ts → loop-runner-bin-DEm4roYF.d.ts} +11 -11
- package/dist/loop-runner-bin.d.ts +6 -6
- package/dist/loop-runner-bin.js +6 -6
- package/dist/loops.d.ts +5 -5
- package/dist/loops.js +18 -10
- package/dist/mcp/bin.js +6 -6
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +75 -74
- package/dist/mcp/index.js +203 -31
- package/dist/mcp/index.js.map +1 -1
- package/dist/{otel-export-Dy2DyUCU.d.ts → otel-export-EzfsVUhh.d.ts} +1 -1
- package/dist/profiles.d.ts +8 -8
- package/dist/profiles.js +1 -1
- package/dist/profiles.js.map +1 -1
- package/dist/{run-loop--hSoIknW.d.ts → run-loop-DvD4aGiE.d.ts} +2 -2
- package/dist/runtime.d.ts +244 -57
- package/dist/runtime.js +18 -10
- package/dist/{types-1HbsFa7H.d.ts → types-Cbx3dNK5.d.ts} +23 -23
- package/dist/{types-DdzkffAm.d.ts → types-nBMuollC.d.ts} +34 -5
- package/dist/{types-BtRLF2U3.d.ts → types-p8dWBIXL.d.ts} +1 -1
- package/dist/workflow.d.ts +3 -3
- package/dist/workflow.js +2 -2
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
- package/skills/agent-runtime-adoption/SKILL.md +3 -3
- package/skills/generate-eval/SKILL.md +60 -0
- package/skills/loop-writer/SKILL.md +163 -0
- package/dist/chunk-FK53TXOP.js.map +0 -1
- package/dist/chunk-IJ6FGOPO.js.map +0 -1
- package/dist/chunk-KEWO4KI6.js.map +0 -1
- package/dist/chunk-NYN5RTLP.js.map +0 -1
- package/dist/chunk-PRX45WE2.js.map +0 -1
- package/dist/chunk-QR4UUC5P.js.map +0 -1
- package/dist/chunk-Z2QXVBA6.js.map +0 -1
- /package/dist/{chunk-IJGS6J7X.js.map → chunk-JNPK46YH.js.map} +0 -0
- /package/dist/{chunk-KSMX62JF.js.map → chunk-VR4JIC5H.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefaultVerdict } from '@tangle-network/agent-eval';
|
|
2
2
|
import { AgentProfile, BackendType } from '@tangle-network/sandbox';
|
|
3
3
|
import { R as RuntimeHooks } from './runtime-hooks-C7JwKb9E.js';
|
|
4
|
-
import {
|
|
4
|
+
import { c as LoopTokenUsage } from './types-nBMuollC.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @experimental
|
|
@@ -19,7 +19,7 @@ import { d as LoopTokenUsage } from './types-DdzkffAm.js';
|
|
|
19
19
|
* - The journal records a content-addressed `outRef` per child result, so replay
|
|
20
20
|
* rehydrates the exact `Settled` the driver branched on (the replay invariant below).
|
|
21
21
|
*
|
|
22
|
-
* The leaf RUNTIME is one OPEN `
|
|
22
|
+
* The leaf RUNTIME is one OPEN `Executor` interface, not a closed `inline|sandbox|cli`
|
|
23
23
|
* union the call site switches on. The built-ins (router/inline, sandbox, cli) are the
|
|
24
24
|
* initial IMPLEMENTATIONS; any user agent is first-class the moment it implements the
|
|
25
25
|
* interface. The interface IS the extension point — no per-vendor adapters live here.
|
|
@@ -45,7 +45,7 @@ interface Agent<Task, Out> {
|
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* The leaf runtime — ONE open interface, not a closed union. `execute` returns a
|
|
48
|
-
* `Promise<
|
|
48
|
+
* `Promise<ExecutorResult>` for one-shot executors OR an `AsyncIterable<UsageEvent>` for
|
|
49
49
|
* streaming ones; a streaming executor reports incremental normalized usage as it runs
|
|
50
50
|
* (the budget pool reconciles against it) and exposes its terminal artifact via
|
|
51
51
|
* `resultArtifact()`. Both shapes normalize usage to `UsageEvent` so the conserved pool
|
|
@@ -57,7 +57,7 @@ interface Agent<Task, Out> {
|
|
|
57
57
|
* (Halo/RLM subprocess; `budgetExempt`, excluded from equal-k by construction). A user's
|
|
58
58
|
* own agent (mastra/agno/raw HTTP/anything) is first-class by implementing this interface.
|
|
59
59
|
*/
|
|
60
|
-
interface
|
|
60
|
+
interface Executor<Out> {
|
|
61
61
|
/** Stable runtime tag for traces + the equal-k exemption check. */
|
|
62
62
|
readonly runtime: Runtime;
|
|
63
63
|
/**
|
|
@@ -67,11 +67,11 @@ interface LeafExecutor<Out> {
|
|
|
67
67
|
*/
|
|
68
68
|
readonly budgetExempt?: boolean;
|
|
69
69
|
/**
|
|
70
|
-
* One-shot → resolves a `
|
|
70
|
+
* One-shot → resolves a `ExecutorResult`; streaming → yields incremental `UsageEvent`s and
|
|
71
71
|
* the terminal artifact is read from `resultArtifact()` after the stream drains.
|
|
72
72
|
* `signal` is the spawn-scoped abort (chains the acquire lifecycle for sandbox).
|
|
73
73
|
*/
|
|
74
|
-
execute(task: unknown, signal: AbortSignal): Promise<
|
|
74
|
+
execute(task: unknown, signal: AbortSignal): Promise<ExecutorResult<Out>> | AsyncIterable<UsageEvent>;
|
|
75
75
|
/**
|
|
76
76
|
* Optional inbox: receive an out-of-band message from the driver mid-run (the `send`/`steer_worker`
|
|
77
77
|
* verb). A streaming executor drains pending messages between turns and folds them into the next
|
|
@@ -98,8 +98,8 @@ interface LeafExecutor<Out> {
|
|
|
98
98
|
spent: Spend;
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
/** Terminal artifact of a one-shot `
|
|
102
|
-
interface
|
|
101
|
+
/** Terminal artifact of a one-shot `Executor.execute`. */
|
|
102
|
+
interface ExecutorResult<Out> {
|
|
103
103
|
outRef: string;
|
|
104
104
|
out: Out;
|
|
105
105
|
verdict?: DefaultVerdict;
|
|
@@ -120,7 +120,7 @@ type UsageEvent = {
|
|
|
120
120
|
} | {
|
|
121
121
|
kind: 'iteration';
|
|
122
122
|
};
|
|
123
|
-
/** The runtime tag of a `
|
|
123
|
+
/** The runtime tag of a `Executor` impl. Open by intent — `string` so a BYO executor
|
|
124
124
|
* names its own runtime; the built-ins use these literals. */
|
|
125
125
|
type Runtime = 'router' | 'inline' | 'sandbox' | 'cli' | (string & {});
|
|
126
126
|
/**
|
|
@@ -129,7 +129,7 @@ type Runtime = 'router' | 'inline' | 'sandbox' | 'cli' | (string & {});
|
|
|
129
129
|
* executor through this MINIMAL wrapper, never by fabricating a field onto `AgentProfile`.
|
|
130
130
|
*
|
|
131
131
|
* Resolution (in `runtime.ts`):
|
|
132
|
-
* - `executor` present → BYO: use it verbatim (a user's own `
|
|
132
|
+
* - `executor` present → BYO: use it verbatim (a user's own `Executor`).
|
|
133
133
|
* - `harness === null` → router/inline: a direct Router call, no box.
|
|
134
134
|
* - `harness` is a `BackendType` → sandbox: compose `runLoop` against `profile` on that backend.
|
|
135
135
|
* Fail loud on an unresolvable spec (no executor and an unknown harness).
|
|
@@ -139,15 +139,15 @@ interface AgentSpec {
|
|
|
139
139
|
/** `null` selects router/inline; a `BackendType` selects the sandboxed harness. */
|
|
140
140
|
readonly harness: BackendType | null;
|
|
141
141
|
/** Bring-your-own executor: when set, overrides harness-based resolution entirely. */
|
|
142
|
-
readonly executor?:
|
|
142
|
+
readonly executor?: Executor<unknown>;
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
145
|
-
* Builds a fresh `
|
|
145
|
+
* Builds a fresh `Executor` for one spawn from the resolved spec. Per-spawn (not
|
|
146
146
|
* shared) so each child owns its own box/abort/teardown lifecycle. A BYO factory lets a
|
|
147
147
|
* user supply construction args without pre-instantiating.
|
|
148
148
|
*/
|
|
149
|
-
type
|
|
150
|
-
/** Construction context handed to a `
|
|
149
|
+
type ExecutorFactory<Out> = (spec: AgentSpec, ctx: ExecutorContext) => Executor<Out>;
|
|
150
|
+
/** Construction context handed to a `ExecutorFactory` — the seams a built-in needs
|
|
151
151
|
* (sandbox client for the sandbox executor, router config for router/inline) without
|
|
152
152
|
* the factory reaching into module globals. */
|
|
153
153
|
interface ExecutorContext {
|
|
@@ -156,14 +156,14 @@ interface ExecutorContext {
|
|
|
156
156
|
readonly seams: Readonly<Record<string, unknown>>;
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
|
-
* The OPEN resolver: maps an `AgentSpec` to a `
|
|
159
|
+
* The OPEN resolver: maps an `AgentSpec` to a `ExecutorFactory`. The default
|
|
160
160
|
* registry resolves the three built-ins AND accepts a BYO `executor`/factory; callers
|
|
161
161
|
* register more runtimes by name. NOT a closed switch — registration is the extension
|
|
162
|
-
* point, mirroring the open `
|
|
162
|
+
* point, mirroring the open `Executor` interface.
|
|
163
163
|
*/
|
|
164
164
|
interface ExecutorRegistry {
|
|
165
165
|
/** Register a factory for a named runtime. Throws on a duplicate name (fail loud). */
|
|
166
|
-
register<Out>(runtime: Runtime, factory:
|
|
166
|
+
register<Out>(runtime: Runtime, factory: ExecutorFactory<Out>): void;
|
|
167
167
|
/**
|
|
168
168
|
* Resolve a spec to a factory. Precedence: a BYO `spec.executor` → a trivial factory
|
|
169
169
|
* returning it; else `harness === null` → the `'router'` factory; else a registered
|
|
@@ -172,7 +172,7 @@ interface ExecutorRegistry {
|
|
|
172
172
|
*/
|
|
173
173
|
resolve<Out>(spec: AgentSpec): {
|
|
174
174
|
succeeded: true;
|
|
175
|
-
value:
|
|
175
|
+
value: ExecutorFactory<Out>;
|
|
176
176
|
} | {
|
|
177
177
|
succeeded: false;
|
|
178
178
|
error: string;
|
|
@@ -245,9 +245,9 @@ type Settled<Out> = {
|
|
|
245
245
|
};
|
|
246
246
|
/**
|
|
247
247
|
* The budget-conserving reactive scope an `Agent.act` runs inside. `spawn` reserves
|
|
248
|
-
* budget atomically from the shared pool and
|
|
249
|
-
* `next()`
|
|
250
|
-
* the
|
|
248
|
+
* budget atomically from the shared pool and fails closed when the pool cannot cover it.
|
|
249
|
+
* `next()` waits for one settlement from this scope's live set; `view` reads live state,
|
|
250
|
+
* not the replay log.
|
|
251
251
|
*/
|
|
252
252
|
interface Scope<Out> {
|
|
253
253
|
/**
|
|
@@ -367,7 +367,7 @@ interface SupervisorOpts {
|
|
|
367
367
|
readonly journal: SpawnJournal;
|
|
368
368
|
/** Result payload store backing `outRef` rehydration. */
|
|
369
369
|
readonly blobs: ResultBlobStore;
|
|
370
|
-
/** Executor resolution — the open registry mapping `AgentSpec` → `
|
|
370
|
+
/** Executor resolution — the open registry mapping `AgentSpec` → `Executor`. */
|
|
371
371
|
readonly executors: ExecutorRegistry;
|
|
372
372
|
/** Runtime recursion-depth ceiling (paired with the conserved pool per R3). */
|
|
373
373
|
readonly maxDepth?: number;
|
|
@@ -435,4 +435,4 @@ interface WidenGate<Out> {
|
|
|
435
435
|
readonly judgeExempt?: boolean;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
-
export type { Agent as A, Budget as B,
|
|
438
|
+
export type { Agent as A, Budget as B, ExecutorFactory as E, Handle as H, NodeId as N, ResultBlobStore as R, Scope as S, TreeView as T, UsageEvent as U, WidenGate as W, SpawnJournal as a, SpawnEvent as b, Settled as c, AgentSpec as d, ExecutorRegistry as e, RootHandle as f, SupervisedResult as g, Spend as h, Supervisor as i, Executor as j, ExecutorContext as k, ExecutorResult as l, NodeSnapshot as m, NodeStatus as n, Restart as o, RootSignal as p, Runtime as q, SpawnOpts as r, SupervisorOpts as s };
|
|
@@ -639,6 +639,12 @@ declare function startRuntimeRun(options: RuntimeRunOptions): RuntimeRunHandle;
|
|
|
639
639
|
interface ValidationCtx {
|
|
640
640
|
/** Iteration index this output came from (0-based). */
|
|
641
641
|
iteration: number;
|
|
642
|
+
/**
|
|
643
|
+
* Live sandbox for this iteration. Validators that need execution-grounded
|
|
644
|
+
* evidence can inspect files or run commands here instead of forcing callers
|
|
645
|
+
* to bypass the loop kernel with raw Sandbox SDK orchestration.
|
|
646
|
+
*/
|
|
647
|
+
box?: SandboxInstance;
|
|
642
648
|
/** Cooperative cancellation channel. */
|
|
643
649
|
signal: AbortSignal;
|
|
644
650
|
/**
|
|
@@ -668,6 +674,17 @@ interface AgentRunSpec<Task> {
|
|
|
668
674
|
profile: AgentProfile;
|
|
669
675
|
/** Task → prompt formatter. Pure and deterministic. */
|
|
670
676
|
taskToPrompt: (task: Task) => string;
|
|
677
|
+
/**
|
|
678
|
+
* Optional pre-prompt sandbox provisioner. Runs after the sandbox is acquired
|
|
679
|
+
* and before the first prompt is streamed into that box. Use this for
|
|
680
|
+
* domain-agnostic setup such as repo snapshots, benchmark fixtures, policy
|
|
681
|
+
* files, or seed datasets. The hook is part of the runtime surface so loop
|
|
682
|
+
* consumers do not hand-roll Sandbox SDK orchestration just to prepare a
|
|
683
|
+
* workspace before the agent sees it.
|
|
684
|
+
*/
|
|
685
|
+
prepareBox?: (box: SandboxInstance, ctx: {
|
|
686
|
+
signal: AbortSignal;
|
|
687
|
+
}) => Promise<void> | void;
|
|
671
688
|
/**
|
|
672
689
|
* Per-spec stable name. Surfaced in trace events and the default winner
|
|
673
690
|
* selector tiebreak. Falls back to `profile.name ?? 'agent'`.
|
|
@@ -745,7 +762,7 @@ interface Driver<Task, Output, Decision> {
|
|
|
745
762
|
* move + rationale (not just the inferred fan-width). Drivers whose topology
|
|
746
763
|
* is a pure function of count (refine/fanout-vote) omit it — the kernel
|
|
747
764
|
* infers `moveKind` from the planned-task count. Agent-authored drivers
|
|
748
|
-
* (`
|
|
765
|
+
* (`createDriver`) return their chosen move's kind + rationale.
|
|
749
766
|
*/
|
|
750
767
|
describePlan?(): LoopPlanDescription | undefined;
|
|
751
768
|
/**
|
|
@@ -807,7 +824,7 @@ interface LoopResult<Task, Output, Decision> {
|
|
|
807
824
|
*
|
|
808
825
|
* @experimental
|
|
809
826
|
*/
|
|
810
|
-
interface
|
|
827
|
+
interface SandboxClient {
|
|
811
828
|
create(options?: CreateSandboxOptions): Promise<SandboxInstance>;
|
|
812
829
|
describePlacement?(box: SandboxInstance): LoopSandboxPlacement;
|
|
813
830
|
/**
|
|
@@ -840,7 +857,7 @@ interface LoopSandboxClient {
|
|
|
840
857
|
* `describePlan` — refine, fanout-vote), the kernel prunes boxes no future
|
|
841
858
|
* round can reach after each round, so the live set tracks the active frontier.
|
|
842
859
|
* When the driver authors its own branch point (`describePlan().parentIndex` —
|
|
843
|
-
* `
|
|
860
|
+
* `createDriver`), it may descend from any prior
|
|
844
861
|
* iteration, so no box is pruned and the live-box count rises to the total
|
|
845
862
|
* iterations across all rounds. Size `forkFanout` runs accordingly (CRIU forks
|
|
846
863
|
* are copy-on-write, but each is still a live box until loop end).
|
|
@@ -878,6 +895,18 @@ interface LoopLineageOptions {
|
|
|
878
895
|
* different-per-branch profiles use the unforked fanout path.
|
|
879
896
|
*/
|
|
880
897
|
forkFanout?: boolean;
|
|
898
|
+
/**
|
|
899
|
+
* Per-turn sandbox streaming mode. Default `'sse'` (live `streamPrompt` —
|
|
900
|
+
* low-latency, full per-token trace; best for interactive chat). `'poll'`
|
|
901
|
+
* fire-and-detaches via `dispatchPrompt` and awaits the terminal result by
|
|
902
|
+
* status-polling, so a long, quiet in-box turn (clone + build + test) never
|
|
903
|
+
* holds a live stream a proxy idle-timeout can drop mid-execution. Lower trace
|
|
904
|
+
* fidelity (one terminal event), so it is opt-in — intended for BATCH eval
|
|
905
|
+
* runs, which don't need live streaming and were losing long turns to the
|
|
906
|
+
* idle-drop. Applies to the default fresh-box path too, not only when
|
|
907
|
+
* `sessionContinuity`/`forkFanout` are on.
|
|
908
|
+
*/
|
|
909
|
+
streaming?: 'sse' | 'poll';
|
|
881
910
|
}
|
|
882
911
|
/** @experimental */
|
|
883
912
|
interface LoopSandboxPlacement {
|
|
@@ -1041,7 +1070,7 @@ interface LoopTeardownFailedPayload {
|
|
|
1041
1070
|
/** @experimental */
|
|
1042
1071
|
interface ExecCtx {
|
|
1043
1072
|
/** Sandbox SDK client — the kernel calls `.create()` per iteration. */
|
|
1044
|
-
sandboxClient:
|
|
1073
|
+
sandboxClient: SandboxClient;
|
|
1045
1074
|
/** Optional runtime hooks. Execution-scoped; never part of `AgentProfile`. */
|
|
1046
1075
|
hooks?: RuntimeHooks;
|
|
1047
1076
|
/** Optional trace emitter. When set, the kernel emits `loop.*` events. */
|
|
@@ -1067,4 +1096,4 @@ interface ExecCtx {
|
|
|
1067
1096
|
parentSpanId?: string;
|
|
1068
1097
|
}
|
|
1069
1098
|
|
|
1070
|
-
export { type AgentRunSpec as A, type
|
|
1099
|
+
export { type AgentRunSpec as A, type BackendErrorDetail as B, type LoopDecisionPayload as C, type Driver as D, type ExecCtx as E, type LoopEndedPayload as F, type LoopIterationDispatchPayload as G, type LoopIterationEndedPayload as H, type Iteration as I, type LoopIterationStartedPayload as J, type KnowledgeReadinessDecision as K, type LoopWinner as L, type LoopPlanDescription as M, type LoopPlanPayload as N, type OutputAdapter as O, type LoopStartedPayload as P, type LoopTeardownFailedPayload as Q, type RuntimeStreamEvent as R, type SandboxClient as S, type LoopTraceEvent as T, type ValidationCtx as U, type Validator as V, type LoopLineageOptions as a, type LoopResult as b, type LoopTokenUsage as c, type OpenAIChatTool as d, type LoopTraceEmitter as e, type LoopSandboxPlacement as f, type AgentBackendInput as g, type AgentExecutionBackend as h, type OpenAIChatToolChoice as i, type AgentBackendContext as j, type RunAgentTaskOptions as k, type AgentTaskRunResult as l, type RunAgentTaskStreamOptions as m, type AgentRuntimeEvent as n, type AgentTaskStatus as o, type RuntimeSessionStore as p, type RuntimeSession as q, type AgentAdapter as r, type AgentKnowledgeProvider as s, type AgentRuntimeEventSink as t, type AgentTaskContext as u, type AgentTaskSpec as v, type RuntimeRunHandle as w, type RuntimeRunPersistenceAdapter as x, type RuntimeRunRow as y, startRuntimeRun as z };
|
|
@@ -242,4 +242,4 @@ type AnalystLoopEvent = {
|
|
|
242
242
|
durationMs: number;
|
|
243
243
|
};
|
|
244
244
|
|
|
245
|
-
export type {
|
|
245
|
+
export type { AnalystLoopEvent as A, FindingsStoreLike as F, ImprovementAdapter as I, KnowledgeAdapter as K, RunAnalystLoopOpts as R, RunAnalystLoopResult as a, AnalystRegistryLike as b, AnalystRegistryStreamingLike as c, AutoApplyPolicy as d, ImprovementEditBatch as e, ImprovementReport as f, KnowledgeProposalBatch as g, KnowledgeReport as h };
|
package/dist/workflow.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentProfile, CreateSandboxOptions, PromptOptions, TaskOptions, SandboxEvent } from '@tangle-network/sandbox';
|
|
2
|
-
import {
|
|
3
|
-
import { R as RunLoopOptions } from './run-loop
|
|
2
|
+
import { S as SandboxClient, O as OutputAdapter, f as LoopSandboxPlacement, b as LoopResult } from './types-nBMuollC.js';
|
|
3
|
+
import { R as RunLoopOptions } from './run-loop-DvD4aGiE.js';
|
|
4
4
|
import '@tangle-network/agent-eval';
|
|
5
5
|
import './runtime-hooks-C7JwKb9E.js';
|
|
6
6
|
|
|
@@ -437,7 +437,7 @@ interface WorkflowSandboxAgentTrace<TOutput = unknown> {
|
|
|
437
437
|
tokenUsage: WorkflowTokenUsage;
|
|
438
438
|
}
|
|
439
439
|
interface CreateSandboxWorkflowAgentDelegateOptions<TOutput = unknown> {
|
|
440
|
-
client:
|
|
440
|
+
client: SandboxClient;
|
|
441
441
|
profile: WorkflowSandboxAgentProfileResolver;
|
|
442
442
|
output?: OutputAdapter<TOutput>;
|
|
443
443
|
stream?: WorkflowSandboxAgentStream;
|
package/dist/workflow.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
createSandboxForSpec,
|
|
3
3
|
describeSandboxPlacement,
|
|
4
4
|
runLoop
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-72JQCHOZ.js";
|
|
6
6
|
import {
|
|
7
7
|
ValidationError,
|
|
8
8
|
extractLlmCallEvent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GSUO5QS6.js";
|
|
10
10
|
import "./chunk-DGUM43GV.js";
|
|
11
11
|
|
|
12
12
|
// src/workflow/agent-delegate.ts
|