@tangle-network/agent-runtime 0.45.0 → 0.46.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-KEWO4KI6.js → chunk-65FQLI4V.js} +628 -138
- package/dist/chunk-65FQLI4V.js.map +1 -0
- package/dist/{chunk-NYN5RTLP.js → chunk-GN75RGM6.js} +7 -7
- package/dist/chunk-GN75RGM6.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-IJ6FGOPO.js → chunk-I42NHLKX.js} +3 -3
- package/dist/chunk-I42NHLKX.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-Z2QXVBA6.js → chunk-KPN7OQ64.js} +4 -4
- package/dist/chunk-KPN7OQ64.js.map +1 -0
- package/dist/{chunk-KSMX62JF.js → chunk-VR4JIC5H.js} +2 -2
- package/dist/{coder-CczgMqFx.d.ts → coder-DCWFQpmJ.d.ts} +1 -1
- package/dist/{dynamic-BvllHV6M.d.ts → driver-C-mtBo7h.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-2Gwpz_27.d.ts} +7 -7
- package/dist/{loop-runner-bin-CPrCoKqC.d.ts → loop-runner-bin-D-K6bRp3.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 +10 -10
- package/dist/mcp/bin.js +6 -6
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +11 -11
- package/dist/mcp/index.js +7 -7
- package/dist/{otel-export-Dy2DyUCU.d.ts → otel-export-nurzFwuJ.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-CU2Y00Si.d.ts} +2 -2
- package/dist/runtime.d.ts +156 -52
- package/dist/runtime.js +10 -10
- package/dist/{types-1HbsFa7H.d.ts → types-BfoeiQRZ.d.ts} +20 -20
- package/dist/{types-DdzkffAm.d.ts → types-DnYoHvvZ.d.ts} +17 -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 +13 -24
- package/skills/agent-runtime-adoption/SKILL.md +3 -3
- package/skills/generate-eval/SKILL.md +60 -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
package/dist/runtime.js
CHANGED
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
assertTraceDerivedFindings,
|
|
10
10
|
buildSteerContext,
|
|
11
11
|
builtinShapes,
|
|
12
|
-
cliExecutor,
|
|
13
12
|
completionAuthorizes,
|
|
14
13
|
contentAddress,
|
|
15
14
|
createBudgetPool,
|
|
16
|
-
|
|
15
|
+
createDriver,
|
|
16
|
+
createExecutor,
|
|
17
17
|
createExecutorRegistry,
|
|
18
18
|
createRootHandle,
|
|
19
19
|
createSandboxForSpec,
|
|
@@ -28,9 +28,11 @@ import {
|
|
|
28
28
|
equalKOnCost,
|
|
29
29
|
fanout,
|
|
30
30
|
flatWidenGate,
|
|
31
|
+
inlineSandboxClient,
|
|
31
32
|
loopDispatch,
|
|
32
33
|
loopUntil,
|
|
33
34
|
materializeTreeView,
|
|
35
|
+
openSandboxRun,
|
|
34
36
|
panel,
|
|
35
37
|
pipeline,
|
|
36
38
|
probeSandboxCapabilities,
|
|
@@ -39,10 +41,8 @@ import {
|
|
|
39
41
|
renderCorpusToInstructions,
|
|
40
42
|
replaySpawnTree,
|
|
41
43
|
reportLoopUsage,
|
|
42
|
-
routerInlineExecutor,
|
|
43
44
|
runLoop,
|
|
44
45
|
runPersonified,
|
|
45
|
-
sandboxExecutor,
|
|
46
46
|
sentinelCompletion,
|
|
47
47
|
settledToIteration,
|
|
48
48
|
spendFromUsageEvents,
|
|
@@ -50,11 +50,11 @@ import {
|
|
|
50
50
|
trajectoryReport,
|
|
51
51
|
verify,
|
|
52
52
|
widen
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-65FQLI4V.js";
|
|
54
54
|
import {
|
|
55
55
|
extractLlmCallEvent,
|
|
56
56
|
mapSandboxEvent
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-GSUO5QS6.js";
|
|
58
58
|
import "./chunk-DGUM43GV.js";
|
|
59
59
|
export {
|
|
60
60
|
FileCorpus,
|
|
@@ -67,11 +67,11 @@ export {
|
|
|
67
67
|
assertTraceDerivedFindings,
|
|
68
68
|
buildSteerContext,
|
|
69
69
|
builtinShapes,
|
|
70
|
-
cliExecutor,
|
|
71
70
|
completionAuthorizes,
|
|
72
71
|
contentAddress,
|
|
73
72
|
createBudgetPool,
|
|
74
|
-
|
|
73
|
+
createDriver,
|
|
74
|
+
createExecutor,
|
|
75
75
|
createExecutorRegistry,
|
|
76
76
|
createRootHandle,
|
|
77
77
|
createSandboxForSpec,
|
|
@@ -87,10 +87,12 @@ export {
|
|
|
87
87
|
extractLlmCallEvent,
|
|
88
88
|
fanout,
|
|
89
89
|
flatWidenGate,
|
|
90
|
+
inlineSandboxClient,
|
|
90
91
|
loopDispatch,
|
|
91
92
|
loopUntil,
|
|
92
93
|
mapSandboxEvent,
|
|
93
94
|
materializeTreeView,
|
|
95
|
+
openSandboxRun,
|
|
94
96
|
panel,
|
|
95
97
|
pipeline,
|
|
96
98
|
probeSandboxCapabilities,
|
|
@@ -99,10 +101,8 @@ export {
|
|
|
99
101
|
renderCorpusToInstructions,
|
|
100
102
|
replaySpawnTree,
|
|
101
103
|
reportLoopUsage,
|
|
102
|
-
routerInlineExecutor,
|
|
103
104
|
runLoop,
|
|
104
105
|
runPersonified,
|
|
105
|
-
sandboxExecutor,
|
|
106
106
|
sentinelCompletion,
|
|
107
107
|
settledToIteration,
|
|
108
108
|
spendFromUsageEvents,
|
|
@@ -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-DnYoHvvZ.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;
|
|
@@ -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 };
|
|
@@ -745,7 +745,7 @@ interface Driver<Task, Output, Decision> {
|
|
|
745
745
|
* move + rationale (not just the inferred fan-width). Drivers whose topology
|
|
746
746
|
* is a pure function of count (refine/fanout-vote) omit it — the kernel
|
|
747
747
|
* infers `moveKind` from the planned-task count. Agent-authored drivers
|
|
748
|
-
* (`
|
|
748
|
+
* (`createDriver`) return their chosen move's kind + rationale.
|
|
749
749
|
*/
|
|
750
750
|
describePlan?(): LoopPlanDescription | undefined;
|
|
751
751
|
/**
|
|
@@ -807,7 +807,7 @@ interface LoopResult<Task, Output, Decision> {
|
|
|
807
807
|
*
|
|
808
808
|
* @experimental
|
|
809
809
|
*/
|
|
810
|
-
interface
|
|
810
|
+
interface SandboxClient {
|
|
811
811
|
create(options?: CreateSandboxOptions): Promise<SandboxInstance>;
|
|
812
812
|
describePlacement?(box: SandboxInstance): LoopSandboxPlacement;
|
|
813
813
|
/**
|
|
@@ -840,7 +840,7 @@ interface LoopSandboxClient {
|
|
|
840
840
|
* `describePlan` — refine, fanout-vote), the kernel prunes boxes no future
|
|
841
841
|
* round can reach after each round, so the live set tracks the active frontier.
|
|
842
842
|
* When the driver authors its own branch point (`describePlan().parentIndex` —
|
|
843
|
-
* `
|
|
843
|
+
* `createDriver`), it may descend from any prior
|
|
844
844
|
* iteration, so no box is pruned and the live-box count rises to the total
|
|
845
845
|
* iterations across all rounds. Size `forkFanout` runs accordingly (CRIU forks
|
|
846
846
|
* are copy-on-write, but each is still a live box until loop end).
|
|
@@ -878,6 +878,18 @@ interface LoopLineageOptions {
|
|
|
878
878
|
* different-per-branch profiles use the unforked fanout path.
|
|
879
879
|
*/
|
|
880
880
|
forkFanout?: boolean;
|
|
881
|
+
/**
|
|
882
|
+
* Per-turn sandbox streaming mode. Default `'sse'` (live `streamPrompt` —
|
|
883
|
+
* low-latency, full per-token trace; best for interactive chat). `'poll'`
|
|
884
|
+
* fire-and-detaches via `dispatchPrompt` and awaits the terminal result by
|
|
885
|
+
* status-polling, so a long, quiet in-box turn (clone + build + test) never
|
|
886
|
+
* holds a live stream a proxy idle-timeout can drop mid-execution. Lower trace
|
|
887
|
+
* fidelity (one terminal event), so it is opt-in — intended for BATCH eval
|
|
888
|
+
* runs, which don't need live streaming and were losing long turns to the
|
|
889
|
+
* idle-drop. Applies to the default fresh-box path too, not only when
|
|
890
|
+
* `sessionContinuity`/`forkFanout` are on.
|
|
891
|
+
*/
|
|
892
|
+
streaming?: 'sse' | 'poll';
|
|
881
893
|
}
|
|
882
894
|
/** @experimental */
|
|
883
895
|
interface LoopSandboxPlacement {
|
|
@@ -1041,7 +1053,7 @@ interface LoopTeardownFailedPayload {
|
|
|
1041
1053
|
/** @experimental */
|
|
1042
1054
|
interface ExecCtx {
|
|
1043
1055
|
/** Sandbox SDK client — the kernel calls `.create()` per iteration. */
|
|
1044
|
-
sandboxClient:
|
|
1056
|
+
sandboxClient: SandboxClient;
|
|
1045
1057
|
/** Optional runtime hooks. Execution-scoped; never part of `AgentProfile`. */
|
|
1046
1058
|
hooks?: RuntimeHooks;
|
|
1047
1059
|
/** Optional trace emitter. When set, the kernel emits `loop.*` events. */
|
|
@@ -1067,4 +1079,4 @@ interface ExecCtx {
|
|
|
1067
1079
|
parentSpanId?: string;
|
|
1068
1080
|
}
|
|
1069
1081
|
|
|
1070
|
-
export { type AgentRunSpec as A, type
|
|
1082
|
+
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-DnYoHvvZ.js';
|
|
3
|
+
import { R as RunLoopOptions } from './run-loop-CU2Y00Si.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-65FQLI4V.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
|