@tangle-network/agent-runtime 0.56.1 → 0.58.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.
Files changed (41) hide show
  1. package/dist/agent.d.ts +1 -1
  2. package/dist/agent.js +1 -1
  3. package/dist/analyst-loop.d.ts +1 -1
  4. package/dist/{chunk-EXIV2C72.js → chunk-E2L6PG5F.js} +59 -79
  5. package/dist/chunk-E2L6PG5F.js.map +1 -0
  6. package/dist/{chunk-G4NIVG34.js → chunk-ISVIQDIX.js} +4 -3
  7. package/dist/chunk-ISVIQDIX.js.map +1 -0
  8. package/dist/{chunk-4H2FML7G.js → chunk-MDFZSPHA.js} +950 -230
  9. package/dist/chunk-MDFZSPHA.js.map +1 -0
  10. package/dist/{chunk-F5XQA43K.js → chunk-VAGARXI5.js} +2 -2
  11. package/dist/{chunk-6XKXWA7H.js → chunk-ZGPQY6Z3.js} +2 -2
  12. package/dist/{coder-COuOK8h8.d.ts → coder-CybltHEm.d.ts} +1 -1
  13. package/dist/{coordination-DWNGqygr.d.ts → coordination-BydGBQCZ.d.ts} +164 -4
  14. package/dist/{delegates-D9o5_VFj.d.ts → delegates-C94qchkz.d.ts} +8 -2
  15. package/dist/index.d.ts +6 -6
  16. package/dist/index.js +4 -4
  17. package/dist/intelligence.d.ts +1 -1
  18. package/dist/{loop-runner-bin-CN2Se3jB.d.ts → loop-runner-bin-Noz7P-mS.d.ts} +3 -3
  19. package/dist/loop-runner-bin.d.ts +4 -4
  20. package/dist/loop-runner-bin.js +3 -3
  21. package/dist/loops.d.ts +7 -6
  22. package/dist/loops.js +31 -1
  23. package/dist/mcp/bin.js +3 -3
  24. package/dist/mcp/index.d.ts +20 -82
  25. package/dist/mcp/index.js +4 -4
  26. package/dist/{openai-tools-CoeLQ7Uo.d.ts → openai-tools-d4GKwgya.d.ts} +1 -1
  27. package/dist/profiles.d.ts +2 -2
  28. package/dist/{run-loop-DluzfJ2h.d.ts → run-loop-CcqfR_gy.d.ts} +1 -1
  29. package/dist/runtime.d.ts +336 -67
  30. package/dist/runtime.js +31 -1
  31. package/dist/{types-C8rNlxfV.d.ts → types-CUzjRFZ3.d.ts} +1 -1
  32. package/dist/workflow.d.ts +2 -2
  33. package/dist/workflow.js +1 -1
  34. package/package.json +2 -2
  35. package/skills/loop-writer/SKILL.md +1 -1
  36. package/skills/supervise/SKILL.md +1 -1
  37. package/dist/chunk-4H2FML7G.js.map +0 -1
  38. package/dist/chunk-EXIV2C72.js.map +0 -1
  39. package/dist/chunk-G4NIVG34.js.map +0 -1
  40. /package/dist/{chunk-F5XQA43K.js.map → chunk-VAGARXI5.js.map} +0 -0
  41. /package/dist/{chunk-6XKXWA7H.js.map → chunk-ZGPQY6Z3.js.map} +0 -0
@@ -14,7 +14,7 @@ import {
14
14
  DELEGATION_STATUS_DESCRIPTION,
15
15
  DELEGATION_STATUS_INPUT_SCHEMA,
16
16
  DELEGATION_STATUS_TOOL_NAME
17
- } from "./chunk-4H2FML7G.js";
17
+ } from "./chunk-MDFZSPHA.js";
18
18
 
19
19
  // src/mcp/openai-tools.ts
20
20
  function buildTool(name, description, parameters) {
@@ -61,4 +61,4 @@ export {
61
61
  mcpToolsForRuntimeMcp,
62
62
  mcpToolsForRuntimeMcpSubset
63
63
  };
64
- //# sourceMappingURL=chunk-F5XQA43K.js.map
64
+ //# sourceMappingURL=chunk-VAGARXI5.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-FNMGYYSS.js";
4
4
  import {
5
5
  createDefaultCoderDelegate
6
- } from "./chunk-G4NIVG34.js";
6
+ } from "./chunk-ISVIQDIX.js";
7
7
  import {
8
8
  runAnalystLoop
9
9
  } from "./chunk-P5OKDSLB.js";
@@ -171,4 +171,4 @@ export {
171
171
  runLoopRunnerCli,
172
172
  parseLoopRunnerArgv
173
173
  };
174
- //# sourceMappingURL=chunk-6XKXWA7H.js.map
174
+ //# sourceMappingURL=chunk-ZGPQY6Z3.js.map
@@ -1,5 +1,5 @@
1
1
  import { AgentProfile } from '@tangle-network/sandbox';
2
- import { O as OutputAdapter, V as Validator, A as AgentRunSpec, D as Driver } from './types-C8rNlxfV.js';
2
+ import { O as OutputAdapter, V as Validator, A as AgentRunSpec, D as Driver } from './types-CUzjRFZ3.js';
3
3
  import { DefaultVerdict } from '@tangle-network/agent-eval';
4
4
 
5
5
  /**
@@ -1,8 +1,8 @@
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 { d as LoopTokenUsage } from './types-C8rNlxfV.js';
5
- import { b as DelegateFeedbackArgs, c as DelegationFeedbackSnapshot, d as DelegationTaskQueue, e as CoderDelegate, R as ResearcherDelegate, U as UiAuditorDelegate, T as TraceContext } from './delegates-D9o5_VFj.js';
4
+ import { e as LoopTokenUsage } from './types-CUzjRFZ3.js';
5
+ import { b as DelegateFeedbackArgs, c as DelegationFeedbackSnapshot, d as DelegationTaskQueue, e as CoderDelegate, R as ResearcherDelegate, U as UiAuditorDelegate, T as TraceContext } from './delegates-C94qchkz.js';
6
6
 
7
7
  /**
8
8
  * @experimental
@@ -98,6 +98,15 @@ interface Executor<Out> {
98
98
  verdict?: DefaultVerdict;
99
99
  spent: Spend;
100
100
  };
101
+ /**
102
+ * A driver-executor's OWN-inference subtree total (rolled up from its nested tree's `metered`
103
+ * events) — the parent scope journals it as a `metered` event for this node on settle, on BOTH
104
+ * the done AND the down/crash paths, so a crashed sub-driver's partial inference still re-homes
105
+ * (the pool already debited it via `observe`; the journal must match). NOT reconciled, so it never
106
+ * trips the reservation clamp. Read on settle, valid after `execute` resolves OR throws. Leaf
107
+ * executors omit it (returns `undefined`).
108
+ */
109
+ metered?(): Spend | undefined;
101
110
  }
102
111
  /** Terminal artifact of a one-shot `Executor.execute`. */
103
112
  interface ExecutorResult<Out> {
@@ -275,12 +284,30 @@ interface Scope<Out> {
275
284
  * is a direct call; the sandbox/Agent-Bus transports surface the SAME verb as an MCP tool.
276
285
  */
277
286
  send(nodeId: NodeId, msg: unknown): boolean;
287
+ /** This scope's abort signal — aborted when the run is cancelled, a breaker trips, the pool
288
+ * is exhausted, or a parent scope cascades. A long-running driver `act` over this scope reads
289
+ * it to break promptly (the conserved pool + driver-stop are the other bounds). A nested
290
+ * scope carries its own signal, chained off its driver child's abort. */
291
+ readonly signal: AbortSignal;
292
+ /**
293
+ * Meter the driver's OWN compute against the conserved pool — its inference turns, which are
294
+ * real tokens/usd but not a spawned child (no reserve/reconcile). A direct `free → committed`
295
+ * debit, so equal-k counts the driver's tokens AND the in-loop budget guard (`budget.tokensLeft`)
296
+ * halts a driver that thinks the pool dry. `detail` rides an `agent.turn` trace event for live
297
+ * observability (turn index, tool calls, cumulative spend). It also journals a `metered` event —
298
+ * the durable twin of the pool debit (as `settled` is the twin of `reconcile`) — so every
299
+ * journal-based cost reader (`spentFromJournal`, `trajectoryReport`) sums driver inference
300
+ * automatically. A leaf never calls this; a driver meters each chat turn and awaits it (the
301
+ * metered event is cost-critical, so it lands before the join-barrier roll-up).
302
+ */
303
+ meter(spend: Spend, detail?: Record<string, unknown>): Promise<void>;
278
304
  /** The live tree — reads the in-memory nursery, not the journal. */
279
305
  readonly view: TreeView;
280
306
  /** Conserved-pool readouts (post-reservation). */
281
307
  readonly budget: Readonly<{
282
308
  tokensLeft: number;
283
309
  usdLeft: number;
310
+ usdCapped: boolean;
284
311
  deadlineMs: number;
285
312
  reservedTokens: number;
286
313
  }>;
@@ -332,6 +359,19 @@ type SpawnEvent = {
332
359
  reason: string;
333
360
  seq: number;
334
361
  at: string;
362
+ } | {
363
+ /** A driver's OWN inference spend, journaled separately from spawned-child work — the journal
364
+ * TWIN of `BudgetPool.observe`, exactly as `settled` is the twin of `reconcile`. So every
365
+ * journal-based cost reader sums it automatically — the journal is the single cost ledger.
366
+ * It carries spend only and is NOT a settlement: replay + `materializeTreeView` skip it for
367
+ * structure, and its `seq` lives outside the cursor-uniqueness namespace. A
368
+ * driver re-homes its nested subtree's metered total up to its parent (like settled spend),
369
+ * so summing any sub-tree root yields that sub-tree's true driver-inference cost. */
370
+ kind: 'metered';
371
+ id: NodeId;
372
+ spend: Spend;
373
+ seq: number;
374
+ at: string;
335
375
  };
336
376
  /**
337
377
  * The spawn-tree event source (mirrors `ConversationJournal`'s begin/append/load shape).
@@ -392,6 +432,13 @@ type SupervisedResult<Out> = {
392
432
  verdict?: DefaultVerdict;
393
433
  tree: TreeView;
394
434
  spentTotal: Spend;
435
+ /** Where `spentTotal` went: `driverInference` = the drivers' own chat turns (metered via
436
+ * `Scope.meter`); `childWork` = every spawned child's reconciled spend (the journal sum).
437
+ * `driverInference + childWork === spentTotal`. Present whenever any driver metered. */
438
+ spentBreakdown?: {
439
+ driverInference: Spend;
440
+ childWork: Spend;
441
+ };
395
442
  } | {
396
443
  kind: 'no-winner';
397
444
  reason: 'all-children-down' | 'budget-exhausted' | 'aborted';
@@ -515,6 +562,75 @@ declare function captureWorktreeDiff(options: DiffOptions): Promise<DiffResult>;
515
562
  /** @experimental */
516
563
  declare function removeWorktree(options: RemoveWorktreeOptions): Promise<void>;
517
564
 
565
+ /**
566
+ * @experimental
567
+ *
568
+ * The child→parent message bus: the ONE pipe carrying every message a worker, sub-driver, or
569
+ * analyst sends up to the driver — settled outputs, questions, and trace-analyst findings. It
570
+ * unifies channels that were ad-hoc before (the settled-worker cursor, the ask-parent question
571
+ * channel, and analyst results) into a single typed primitive with two lanes:
572
+ *
573
+ * - PASS-THROUGH (`subscribe`): every published event reaches subscribers immediately — the
574
+ * express lane for online steering and live observation (a UI, a hook, the parent's box).
575
+ * - STANDBY (`pull`): events also queue so the driver consumes them on its own cadence. The queue
576
+ * is PRIORITY-ordered: a higher-`priority` event (a blocking question) is bumped ahead of
577
+ * queued settles/findings so the driver sees it first; ties resolve FIFO by publish order.
578
+ *
579
+ * Observability is first-class (A++): every event is stamped with a monotonic `seq` and wall-clock
580
+ * `at`, the full ordered `history()` is retained as an audit/replay trail, and `stats()` exposes
581
+ * published/pulled counts by kind. Subscribers receive the stamped record, not a bare event.
582
+ *
583
+ * The interface is transport-agnostic on purpose. Same box → this in-process queue. Cross box →
584
+ * the SAME publish/pull/subscribe surface backed by a durable mailbox on the parent's box (children
585
+ * POST events with at-least-once retry; payloads are blob refs so the event stays small). Consumers
586
+ * depend only on this interface, so distribution is a transport swap, never an architecture change.
587
+ */
588
+ /** Every bus event is a discriminated union member keyed by `type`. */
589
+ interface BusEvent {
590
+ readonly type: string;
591
+ }
592
+ /** A published event stamped for ordering and observability. `seq` is the monotonic publish index;
593
+ * `priority` drives pull order (higher = bumped ahead); `at` is the wall-clock publish time (ms). */
594
+ interface BusRecord<E extends BusEvent> {
595
+ readonly seq: number;
596
+ readonly at: number;
597
+ readonly priority: number;
598
+ readonly event: E;
599
+ }
600
+ interface PublishOptions {
601
+ /** Higher = pulled ahead of lower-priority queued events (default 0). A blocking question sets
602
+ * this so it bumps to the front of the driver's inbox. */
603
+ readonly priority?: number;
604
+ /** Whether the event enters the pull queue (default true). Set `false` for record-only events —
605
+ * the parent→child down-leg (steer / answer / resume): they belong in `history()` and reach
606
+ * `subscribe` observers, but the parent must never `pull` its own outbound message back. */
607
+ readonly queue?: boolean;
608
+ }
609
+ interface BusStats {
610
+ readonly published: number;
611
+ readonly pulled: number;
612
+ /** Count published per event `type`. */
613
+ readonly byKind: Readonly<Record<string, number>>;
614
+ }
615
+ interface EventBus<E extends BusEvent> {
616
+ /** Stamp + queue the event, then deliver the stamped record to every subscriber in order.
617
+ * Returns the stamped record. */
618
+ publish(event: E, opts?: PublishOptions): Promise<BusRecord<E>>;
619
+ /** Remove and return the highest-priority QUEUED event whose type is in `kinds` (any if omitted),
620
+ * ties broken FIFO by `seq`; `undefined` when nothing matches. */
621
+ pull(kinds?: ReadonlyArray<E['type']>): E | undefined;
622
+ /** Register a pass-through handler; it receives the stamped record of every event published after
623
+ * registration. Returns an unsubscribe fn. */
624
+ subscribe(handler: (record: BusRecord<E>) => void | Promise<void>): () => void;
625
+ /** Count of queued, not-yet-pulled events (filtered by `kinds` when given). */
626
+ pending(kinds?: ReadonlyArray<E['type']>): number;
627
+ /** The full ordered log of every event ever published (the audit/replay trail). */
628
+ history(): ReadonlyArray<BusRecord<E>>;
629
+ /** Throughput counters for observability dashboards. */
630
+ stats(): BusStats;
631
+ }
632
+ declare function createEventBus<E extends BusEvent>(now?: () => number): EventBus<E>;
633
+
518
634
  /**
519
635
  * @experimental
520
636
  *
@@ -706,7 +822,7 @@ declare function createInProcessTransport(): {
706
822
  * them into any UI/report envelope it needs.
707
823
  */
708
824
 
709
- /** A worker the driver has drained via `await_next`. */
825
+ /** A worker the driver has drained via `await_event`. */
710
826
  interface SettledWorker {
711
827
  readonly id: string;
712
828
  readonly status: 'done' | 'down';
@@ -756,9 +872,38 @@ interface AnalystRegistry {
756
872
  }>;
757
873
  readonly run: (kindId: string, trace: unknown) => Promise<unknown>;
758
874
  }
875
+ /** A trace-analyst result re-entered as a message on the bus (the `finding` event kind). */
876
+ interface AnalystFindingEvent {
877
+ readonly fromWorker: string;
878
+ readonly analyst: string;
879
+ readonly findings: unknown;
880
+ }
881
+ /** A parent→child message (the down-leg): recorded for observability, delivered via the child inbox,
882
+ * never pulled back by the parent. `delivered` mirrors whether the live child accepted it. */
883
+ interface DownMessageEvent {
884
+ readonly toWorker: string;
885
+ readonly instruction: string;
886
+ readonly delivered: boolean;
887
+ }
888
+ /** Every message on the one typed pipe. UP (child→parent): question / settled / finding — queued for
889
+ * the driver to `pull`. DOWN (parent→child): steer / answer — record-only (history + subscribers),
890
+ * routed to the child inbox. New kinds are additive. */
759
891
  type CoordinationEvent = {
760
892
  readonly type: 'question';
761
893
  readonly question: QuestionRecord;
894
+ } | {
895
+ readonly type: 'settled';
896
+ readonly worker: SettledWorker;
897
+ } | {
898
+ readonly type: 'finding';
899
+ readonly finding: AnalystFindingEvent;
900
+ } | {
901
+ readonly type: 'steer';
902
+ readonly down: DownMessageEvent;
903
+ } | {
904
+ readonly type: 'answer';
905
+ readonly down: DownMessageEvent;
906
+ readonly questionId: string;
762
907
  };
763
908
  type MakeWorkerAgent = (profile: unknown) => Agent<unknown, unknown>;
764
909
  interface CoordinationToolsOptions {
@@ -769,6 +914,11 @@ interface CoordinationToolsOptions {
769
914
  readonly analysts?: AnalystRegistry;
770
915
  readonly onEvent?: (event: CoordinationEvent) => void | Promise<void>;
771
916
  readonly questionPolicy?: QuestionPolicy;
917
+ /** Analyst kind ids to run AUTOMATICALLY when a worker settles `done` (the analyst-on-settle
918
+ * hook). Each result is published as a `finding` event on the bus — pass-through to subscribers
919
+ * and queued for the driver to pull via `await_event`. Omit/empty = no auto-analysis (default;
920
+ * the driver can still run lenses on demand via `run_analyst`). Requires `analysts`. */
921
+ readonly analyzeOnSettle?: ReadonlyArray<string>;
772
922
  }
773
923
  interface CoordinationTools {
774
924
  readonly tools: McpToolDescriptor[];
@@ -776,8 +926,18 @@ interface CoordinationTools {
776
926
  stopReason(): string | undefined;
777
927
  settled(): ReadonlyArray<SettledWorker>;
778
928
  questions(): ReadonlyArray<QuestionRecord>;
929
+ /** The full ordered log of every bus event — UP (settled / question / finding) and DOWN
930
+ * (steer / answer) — the observability audit + replay trail. Each record carries seq,
931
+ * timestamp, and priority. */
932
+ history(): ReadonlyArray<BusRecord<CoordinationEvent>>;
933
+ /** Bus throughput counters (published / pulled / by-kind) for live dashboards. */
934
+ stats(): BusStats;
935
+ /** Raise a `finding` on the bus from outside the settle hook — the seam an ONLINE detector
936
+ * (mid-run, on the worker pipe) uses to tell the driver "this worker is looping/erroring" the
937
+ * moment it happens, instead of only at settle. Queued for `await_event` + pass-through. */
938
+ raiseFinding(finding: AnalystFindingEvent): Promise<void>;
779
939
  }
780
940
  /** Build the driver's MCP tools over a live scope. */
781
941
  declare function createCoordinationTools(opts: CoordinationToolsOptions): CoordinationTools;
782
942
 
783
- export { type NodeSnapshot as $, type AnalystRegistry as A, type Budget as B, type CoordinationEvent as C, type DiffOptions as D, type ExecutorRegistry as E, type FeedbackStore as F, type GitRunner as G, type RootHandle as H, InMemoryFeedbackStore as I, type JsonRpcMessage as J, type SupervisedResult as K, type Spend as L, type MakeWorkerAgent as M, type NodeId as N, type Scope as O, type ExecutorFactory as P, type Question as Q, type RemoveWorktreeOptions as R, type SettledWorker as S, type TreeView as T, type Executor as U, type UsageEvent as V, type WorktreeHandle as W, type Supervisor as X, type ExecutorContext as Y, type ExecutorResult as Z, type Handle as _, type CoordinationTools as a, type NodeStatus as a0, type Restart as a1, type RootSignal as a2, type Runtime as a3, type SpawnOpts as a4, type SupervisorOpts as a5, type WidenGate as a6, type CoordinationToolsOptions as b, type CreateWorktreeOptions as c, type DiffResult as d, type FeedbackEvent as e, type JsonRpcResponse as f, type McpServer as g, type McpServerOptions as h, type McpToolDescriptor as i, type McpTransport as j, type QuestionDecision as k, type QuestionPolicy as l, type QuestionRecord as m, captureWorktreeDiff as n, createCoordinationTools as o, createInProcessTransport as p, createMcpServer as q, createWorktree as r, eventToSnapshot as s, removeWorktree as t, type ResultBlobStore as u, type SpawnJournal as v, type SpawnEvent as w, type Settled as x, type AgentSpec as y, type Agent as z };
943
+ export { type EventBus as $, type AnalystRegistry as A, type Budget as B, type CoordinationEvent as C, type DiffOptions as D, type ExecutorRegistry as E, type FeedbackStore as F, type GitRunner as G, type RootHandle as H, InMemoryFeedbackStore as I, type JsonRpcMessage as J, type SupervisedResult as K, type Spend as L, type MakeWorkerAgent as M, type NodeId as N, type Scope as O, type ExecutorFactory as P, type Question as Q, type RemoveWorktreeOptions as R, type SettledWorker as S, type TreeView as T, type Executor as U, type UsageEvent as V, type WorktreeHandle as W, type Supervisor as X, type BusEvent as Y, type BusRecord as Z, type BusStats as _, type CoordinationTools as a, type ExecutorContext as a0, type ExecutorResult as a1, type Handle as a2, type NodeSnapshot as a3, type NodeStatus as a4, type PublishOptions as a5, type Restart as a6, type RootSignal as a7, type Runtime as a8, type SpawnOpts as a9, type SupervisorOpts as aa, type WidenGate as ab, createEventBus as ac, type CoordinationToolsOptions as b, type CreateWorktreeOptions as c, type DiffResult as d, type FeedbackEvent as e, type JsonRpcResponse as f, type McpServer as g, type McpServerOptions as h, type McpToolDescriptor as i, type McpTransport as j, type QuestionDecision as k, type QuestionPolicy as l, type QuestionRecord as m, captureWorktreeDiff as n, createCoordinationTools as o, createInProcessTransport as p, createMcpServer as q, createWorktree as r, eventToSnapshot as s, removeWorktree as t, type ResultBlobStore as u, type SpawnJournal as v, type SpawnEvent as w, type Settled as x, type AgentSpec as y, type Agent as z };
@@ -1,5 +1,5 @@
1
- import { C as CoderOutput, d as CoderTask } from './coder-COuOK8h8.js';
2
- import { g as LoopTraceEmitter, e as LoopTraceEvent, S as SandboxClient, A as AgentRunSpec } from './types-C8rNlxfV.js';
1
+ import { C as CoderOutput, d as CoderTask } from './coder-CybltHEm.js';
2
+ import { g as LoopTraceEmitter, d as LoopTraceEvent, S as SandboxClient, A as AgentRunSpec } from './types-CUzjRFZ3.js';
3
3
  import { SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
4
4
  import { AgentEvalError } from '@tangle-network/agent-eval';
5
5
  import { a as UiLens, U as UiFinding } from './substrate-CUgk7F7s.js';
@@ -1422,6 +1422,12 @@ interface CreateDefaultCoderDelegateOptions {
1422
1422
  harness?: string;
1423
1423
  /** Model override for the single-coder path. */
1424
1424
  model?: string;
1425
+ /**
1426
+ * The worker's authored system prompt (§1.5). Flows onto `coderProfile`'s
1427
+ * `profile.prompt.systemPrompt` → through `runLoop` → the executor's `harnessInvocation`, so the
1428
+ * harness runs under this stance, not just the default coder prompt. Omit to keep the default.
1429
+ */
1430
+ systemPrompt?: string;
1425
1431
  /** Default `['claude-code', 'codex', 'opencode/zai-coding-plan/glm-5.1']` when variants > 1. */
1426
1432
  fanoutHarnesses?: string[];
1427
1433
  /** Optional per-harness model override for `variants > 1`. */
package/dist/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  import { AgentProfile, AgentEvalError, KnowledgeReadinessReport, RunRecord, ControlEvalResult, KnowledgeRequirement } from '@tangle-network/agent-eval';
2
2
  export { AgentEvalError, AgentEvalErrorCode, ConfigError, ControlBudget, ControlDecision, ControlEvalResult, ControlRunResult, ControlStep, DataAcquisitionPlan, JudgeError, KnowledgeReadinessReport, KnowledgeRequirement, NotFoundError, RunRecord, ValidationError } from '@tangle-network/agent-eval';
3
- import { h as AgentBackendInput, i as AgentExecutionBackend, c as OpenAIChatTool, j as OpenAIChatToolChoice, k as AgentBackendContext, R as RuntimeStreamEvent, K as KnowledgeReadinessDecision, l as RunAgentTaskOptions, m as AgentTaskRunResult, n as RunAgentTaskStreamOptions, o as AgentRuntimeEvent, p as AgentTaskStatus, q as RuntimeSessionStore, r as RuntimeSession } from './types-C8rNlxfV.js';
4
- export { s as AgentAdapter, t as AgentKnowledgeProvider, u as AgentRuntimeEventSink, v as AgentTaskContext, w as AgentTaskSpec, B as BackendErrorDetail, x as RuntimeRunHandle, y as RuntimeRunPersistenceAdapter, z as RuntimeRunRow, C as startRuntimeRun } from './types-C8rNlxfV.js';
3
+ import { h as AgentBackendInput, i as AgentExecutionBackend, c as OpenAIChatTool, j as OpenAIChatToolChoice, k as AgentBackendContext, R as RuntimeStreamEvent, K as KnowledgeReadinessDecision, l as RunAgentTaskOptions, m as AgentTaskRunResult, n as RunAgentTaskStreamOptions, o as AgentRuntimeEvent, p as AgentTaskStatus, q as RuntimeSessionStore, r as RuntimeSession } from './types-CUzjRFZ3.js';
4
+ export { s as AgentAdapter, t as AgentKnowledgeProvider, u as AgentRuntimeEventSink, v as AgentTaskContext, w as AgentTaskSpec, B as BackendErrorDetail, x as RuntimeRunHandle, y as RuntimeRunPersistenceAdapter, z as RuntimeRunRow, C as startRuntimeRun } from './types-CUzjRFZ3.js';
5
5
  import { Scenario, ProfileDispatchFn } from '@tangle-network/agent-eval/campaign';
6
- export { C as CoderLoopRunnerOptions, D as DELEGATED_LOOP_MODES, a as DelegatedLoopMode, b as DelegatedLoopRegistry, c as DelegatedLoopResult, d as DelegatedLoopRunner, L as LoopRunnerCliArgs, e as LoopRunnerCliResult, R as ResearchLoopResult, f as ResearchLoopRunnerOptions, g as RunDelegatedLoopOptions, V as VetoedFact, h as auditLoopRunner, i as coderLoopRunner, j as isDelegatedLoopMode, p as parseLoopRunnerArgv, r as researchLoopRunner, k as reviewLoopRunner, l as runDelegatedLoop, m as runLoopRunnerCli, s as selfImproveLoopRunner } from './loop-runner-bin-CN2Se3jB.js';
7
- export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from './openai-tools-CoeLQ7Uo.js';
8
- export { ax as EvalRunEvent, ay as EvalRunGeneration, az as EvalRunsExportConfig, aA as EvalRunsExportResult, aB as INTELLIGENCE_WIRE_VERSION, aC as LoopSpanNode, aD as OtelAttribute, aE as OtelExportConfig, aF as OtelExporter, aG as OtelSpan, aH as buildLoopOtelSpans, aI as buildLoopSpanNodes, aJ as createOtelExporter, aK as exportEvalRuns, aL as loopEventToOtelSpan } from './delegates-D9o5_VFj.js';
6
+ export { C as CoderLoopRunnerOptions, D as DELEGATED_LOOP_MODES, a as DelegatedLoopMode, b as DelegatedLoopRegistry, c as DelegatedLoopResult, d as DelegatedLoopRunner, L as LoopRunnerCliArgs, e as LoopRunnerCliResult, R as ResearchLoopResult, f as ResearchLoopRunnerOptions, g as RunDelegatedLoopOptions, V as VetoedFact, h as auditLoopRunner, i as coderLoopRunner, j as isDelegatedLoopMode, p as parseLoopRunnerArgv, r as researchLoopRunner, k as reviewLoopRunner, l as runDelegatedLoop, m as runLoopRunnerCli, s as selfImproveLoopRunner } from './loop-runner-bin-Noz7P-mS.js';
7
+ export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from './openai-tools-d4GKwgya.js';
8
+ export { ax as EvalRunEvent, ay as EvalRunGeneration, az as EvalRunsExportConfig, aA as EvalRunsExportResult, aB as INTELLIGENCE_WIRE_VERSION, aC as LoopSpanNode, aD as OtelAttribute, aE as OtelExportConfig, aF as OtelExporter, aG as OtelSpan, aH as buildLoopOtelSpans, aI as buildLoopSpanNodes, aJ as createOtelExporter, aK as exportEvalRuns, aL as loopEventToOtelSpan } from './delegates-C94qchkz.js';
9
9
  import { R as RuntimeHooks } from './runtime-hooks-C7JwKb9E.js';
10
10
  export { b as RuntimeDecisionEvidenceRef, c as RuntimeDecisionKind, d as RuntimeDecisionPoint, e as RuntimeHookContext, f as RuntimeHookErrorContext, a as RuntimeHookEvent, g as RuntimeHookPhase, h as RuntimeHookTarget, i as composeRuntimeHooks, j as defineRuntimeHooks, n as notifyRuntimeDecisionPoint, k as notifyRuntimeHookEvent } from './runtime-hooks-C7JwKb9E.js';
11
11
  import '@tangle-network/sandbox';
12
12
  import '@tangle-network/agent-eval/contract';
13
13
  import './types-p8dWBIXL.js';
14
14
  import './kb-gate-CuzMYGYM.js';
15
- import './coder-COuOK8h8.js';
15
+ import './coder-CybltHEm.js';
16
16
  import './substrate-CUgk7F7s.js';
17
17
 
18
18
  /**
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  mcpToolsForRuntimeMcp,
3
3
  mcpToolsForRuntimeMcpSubset
4
- } from "./chunk-F5XQA43K.js";
4
+ } from "./chunk-VAGARXI5.js";
5
5
  import {
6
6
  DEFAULT_ROUTER_BASE_URL,
7
7
  cleanModelId,
@@ -21,16 +21,16 @@ import {
21
21
  runDelegatedLoop,
22
22
  runLoopRunnerCli,
23
23
  selfImproveLoopRunner
24
- } from "./chunk-6XKXWA7H.js";
24
+ } from "./chunk-ZGPQY6Z3.js";
25
25
  import "./chunk-FNMGYYSS.js";
26
- import "./chunk-G4NIVG34.js";
26
+ import "./chunk-ISVIQDIX.js";
27
27
  import "./chunk-P5OKDSLB.js";
28
28
  import {
29
29
  composeRuntimeHooks,
30
30
  defineRuntimeHooks,
31
31
  notifyRuntimeDecisionPoint,
32
32
  notifyRuntimeHookEvent
33
- } from "./chunk-4H2FML7G.js";
33
+ } from "./chunk-MDFZSPHA.js";
34
34
  import "./chunk-7QYOXFCD.js";
35
35
  import "./chunk-WIR4HOOJ.js";
36
36
  import {
@@ -1,4 +1,4 @@
1
- import { e as LoopTraceEvent } from './types-C8rNlxfV.js';
1
+ import { d as LoopTraceEvent } from './types-CUzjRFZ3.js';
2
2
  import { AgentProfileMcpServer } from '@tangle-network/sandbox';
3
3
  import { T as ToolSpec } from './router-client-30Y_pca8.js';
4
4
  import '@tangle-network/agent-eval';
@@ -1,10 +1,10 @@
1
1
  import { Scenario } from '@tangle-network/agent-eval/campaign';
2
2
  import { SelfImproveOptions, SelfImproveResult } from '@tangle-network/agent-eval/contract';
3
3
  import { R as RunAnalystLoopOpts, a as RunAnalystLoopResult } from './types-p8dWBIXL.js';
4
- import { D as DelegateCodeArgs, C as CoderReviewer, a as CoderWinnerSelection } from './delegates-D9o5_VFj.js';
4
+ import { D as DelegateCodeArgs, C as CoderReviewer, a as CoderWinnerSelection } from './delegates-C94qchkz.js';
5
5
  import { F as FactCandidate, C as CreateKbGateOptions } from './kb-gate-CuzMYGYM.js';
6
- import { C as CoderOutput } from './coder-COuOK8h8.js';
7
- import { S as SandboxClient } from './types-C8rNlxfV.js';
6
+ import { C as CoderOutput } from './coder-CybltHEm.js';
7
+ import { S as SandboxClient } from './types-CUzjRFZ3.js';
8
8
 
9
9
  /**
10
10
  * @experimental
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
- export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, m as runLoopRunnerCli } from './loop-runner-bin-CN2Se3jB.js';
2
+ export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, m as runLoopRunnerCli } from './loop-runner-bin-Noz7P-mS.js';
3
3
  import '@tangle-network/agent-eval/campaign';
4
4
  import '@tangle-network/agent-eval/contract';
5
5
  import './types-p8dWBIXL.js';
6
6
  import '@tangle-network/agent-eval';
7
- import './delegates-D9o5_VFj.js';
8
- import './coder-COuOK8h8.js';
7
+ import './delegates-C94qchkz.js';
8
+ import './coder-CybltHEm.js';
9
9
  import '@tangle-network/sandbox';
10
- import './types-C8rNlxfV.js';
10
+ import './types-CUzjRFZ3.js';
11
11
  import './runtime-hooks-C7JwKb9E.js';
12
12
  import './substrate-CUgk7F7s.js';
13
13
  import './kb-gate-CuzMYGYM.js';
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  parseLoopRunnerArgv,
4
4
  runLoopRunnerCli
5
- } from "./chunk-6XKXWA7H.js";
5
+ } from "./chunk-ZGPQY6Z3.js";
6
6
  import "./chunk-FNMGYYSS.js";
7
- import "./chunk-G4NIVG34.js";
7
+ import "./chunk-ISVIQDIX.js";
8
8
  import "./chunk-P5OKDSLB.js";
9
- import "./chunk-4H2FML7G.js";
9
+ import "./chunk-MDFZSPHA.js";
10
10
  import "./chunk-7QYOXFCD.js";
11
11
  import "./chunk-WIR4HOOJ.js";
12
12
  import "./chunk-VLF5RHEQ.js";
package/dist/loops.d.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
2
- export { AgenticOptions, AgenticRunResult, AgenticSurface, AgenticTask, AgenticTool, AnytimeReport, AnytimeStrategySummary, AnytimeTaskCurve, ArtifactHandle, AssertTraceDerivedFindings, AuditIntentInput, AuditIntentOptions, AuthorStrategyOptions, AuthoredCoderHarness, AuthoredProfile, AuthoredStrategy, BenchmarkCell, BenchmarkConfig, BenchmarkLift, BenchmarkReport, BenchmarkStrategySummary, BenchmarkTaskRow, BridgeSeam, BudgetPool, BudgetReadout, ChampionPick, ChampionPolicy, CheckpointCapableBox, CliSeam, CliWorktreeSeam, CoderDeliverableOptions, CoderWinnerStrategy, CombinatorShape, CompletionAnalyst, CompletionEvidence, CompletionPolicy, CompletionVerdict, CoordinationDriverOptions, CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, CreateScopeAnalystOptions, CriuCapableClient, DefinePersona, DefinePersonaInput, Deliverable, DeliverableSpec, DriverChat, DriverMessage, DriverToolCall, DriverTurn, Environment, EqualKArm, EqualKOnCost, EqualKOnCostOptions, EqualKVerdict, EvolutionArchiveNode, EvolutionAuthor, EvolutionBandInfo, EvolutionCandidate, EvolutionGeneration, EvolutionReport, ExecutorConfig, Fanout, FanoutOptions, FanoutSynthesis, FanoutWinnerSelector, FileCorpus, FileResultBlobStore, FileSpawnJournal, FlatWidenGate, ForkCapableBox, GitWorkspaceOptions, HarvestCorpusOptions, HarvestFailure, HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, IntentAudit, LoopDispatchOptions, LoopOptionsForDispatch, LoopShape, LoopUntil, LoopUntilSpec, LoopUntilState, McpEndpoint, McpEnvironmentOptions, NestedScopeSeam, Observation, ObserveInput, ObserveOptions, OpenSandboxRunOptions, Outcome, Panel, PanelJudge, PanelSpec, PanelVerdict, Persona, PersonaContext, PersonaExecutors, Pipeline, PipelineStage, PromotionGateOptions, PromotionVerdict, RegistryAnalyzeProjection, RenderCorpusToInstructions, RenderCorpusToInstructionsOptions, ReservationTicket, RouterSeam, RouterToolsSeam, RunAgenticOptions, RunPersonified, RunPersonifiedOptions, SandboxCapabilities, SandboxLineage, SandboxLineageHandle, SandboxRun, SandboxSeam, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, SessionCapableBox, ShapeBudget, ShapeContext, ShapeRegistry, Shell, ShotPersona, ShotSpec, SteerContext, Strategy, StrategyCtx, StrategyEvolutionConfig, StrategyResult, SurfaceScore, TrajectoryNode, TrajectoryReport, TrajectoryReportFn, TrajectoryReportOptions, TurnResult, UsageSink, VerifierEnvironmentOptions, Verify, VerifySpec, WaterfallCollector, WaterfallReport, WaterfallSpan, Widen, WidenDecision, WidenLineage, WidenSpec, Workspace, WorkspaceCommit, WorkspaceRun, WorktreeCliExecutorOptions, WorktreeCoderFanoutOptions, WorktreeCommandResult, WorktreePatchArtifact, acquireSandbox, adaptiveRefine, anytimeReport, asAuthoredProfile, assertStrategyContract, assertTraceDerivedFindings, auditIntent, authorStrategy, authoredWorker, breadthDriver, buildSteerContext, builtinShapes, cliWorktreeExecutor, coderDeliverable, completionAuthorizes, contentAddress, coordinationDriverAgent, createBudgetPool, createExecutor, createExecutorRegistry, createMcpEnvironment, createRootHandle, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, createWorktreeCliExecutor, defaultAnalystInstruction, defaultAuditorInstruction, definePersona, defineStrategy, depthDriver, deterministicCompletion, discriminatingMeans, driverChild, driverExecutorFactory, driverRuntime, equalKOnCost, extractLlmCallEvent, fanout, flatWidenGate, gateOnDeliverable, gitWorkspace, harvestCorpus, inlineSandboxClient, isDriverSpec, jjWorkspace, localShell, loopDispatch, loopUntil, mapSandboxEvent, materializeTreeView, nestedScopeSeamKey, observe, openSandboxRun, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderReport, replaySpawnTree, reportLoopUsage, runAgentic, runBenchmark, runInWorkspace, runPersonified, runStrategyEvolution, sample, sampleThenRefine, selectChampion, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervisorSkill, trajectoryReport, verify, widen, withDriverExecutor, worktreeCoderFanout } from './runtime.js';
2
+ export { AgenticOptions, AgenticRunResult, AgenticSurface, AgenticTask, AgenticTool, AnytimeReport, AnytimeStrategySummary, AnytimeTaskCurve, ArtifactHandle, AssertTraceDerivedFindings, AuditIntentInput, AuditIntentOptions, AuthorStrategyOptions, AuthoredCoderHarness, AuthoredProfile, AuthoredStrategy, BenchmarkCell, BenchmarkConfig, BenchmarkLift, BenchmarkReport, BenchmarkStrategySummary, BenchmarkTaskRow, BridgeSeam, BudgetPool, BudgetReadout, ChampionPick, ChampionPolicy, CheckpointCapableBox, CliSeam, CliWorktreeSeam, CoderDeliverableOptions, CoderWinnerStrategy, CombinatorShape, CompletionAnalyst, CompletionEvidence, CompletionPolicy, CompletionVerdict, CoordinationDriverOptions, CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, CreateScopeAnalystOptions, CriuCapableClient, DefinePersona, DefinePersonaInput, Deliverable, DeliverableSpec, DriverChat, DriverMessage, DriverToolCall, DriverTurn, Environment, EqualKArm, EqualKOnCost, EqualKOnCostOptions, EqualKVerdict, EvolutionArchiveNode, EvolutionAuthor, EvolutionBandInfo, EvolutionCandidate, EvolutionGeneration, EvolutionReport, ExecutorConfig, Fanout, FanoutOptions, FanoutSynthesis, FanoutWinnerSelector, FileCorpus, FileResultBlobStore, FileSpawnJournal, FlatWidenGate, ForkCapableBox, GitWorkspaceOptions, HarvestCorpusOptions, HarvestFailure, HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, Inbox, InboxMessage, IntentAudit, LoopDispatchOptions, LoopOptionsForDispatch, LoopShape, LoopUntil, LoopUntilSpec, LoopUntilState, McpEndpoint, McpEnvironmentOptions, NestedScopeSeam, Observation, ObserveInput, ObserveOptions, OpenSandboxRunOptions, Outcome, Panel, PanelJudge, PanelSpec, PanelVerdict, Persona, PersonaContext, PersonaExecutors, Pipeline, PipelineStage, PromotionGateOptions, PromotionVerdict, RegistryAnalyzeProjection, RenderCorpusToInstructions, RenderCorpusToInstructionsOptions, ReservationTicket, RouterSeam, RouterToolsSeam, RunAgenticOptions, RunPersonified, RunPersonifiedOptions, SandboxCapabilities, SandboxLineage, SandboxLineageHandle, SandboxRun, SandboxSeam, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, SessionCapableBox, SessionMessageLike, SessionTraceBox, ShapeBudget, ShapeContext, ShapeRegistry, Shell, ShotPersona, ShotSpec, SteerContext, Strategy, StrategyCtx, StrategyEvolutionConfig, StrategyResult, SurfaceScore, ToolPartDecoder, ToolStepInput, TraceSource, TrajectoryAnalysis, TrajectoryNode, TrajectoryReport, TrajectoryReportFn, TrajectoryReportOptions, TurnResult, UsageSink, VerifierEnvironmentOptions, Verify, VerifySpec, WatchTraceOptions, WaterfallCollector, WaterfallReport, WaterfallSpan, Widen, WidenDecision, WidenLineage, WidenSpec, Workspace, WorkspaceCommit, WorkspaceRun, WorktreeCliExecutorOptions, WorktreeCoderFanoutOptions, WorktreeCommandResult, WorktreePatchArtifact, acquireSandbox, adaptiveRefine, analyzeTrace, anytimeReport, asAuthoredProfile, assertStrategyContract, assertTraceDerivedFindings, auditIntent, authorStrategy, authoredWorker, breadthDriver, buildSteerContext, builtinShapes, cliWorktreeExecutor, coderDeliverable, completionAuthorizes, contentAddress, coordinationDriverAgent, createBudgetPool, createExecutor, createExecutorRegistry, createInbox, createMcpEnvironment, createPartsTraceSource, createPushTraceSource, createRootHandle, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, createWorktreeCliExecutor, decodeAnthropicPart, decodeOpenAiPart, decodeOpencodePart, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultToolDetectors, definePersona, defineStrategy, depthDriver, deterministicCompletion, discriminatingMeans, driverChild, driverExecutorFactory, driverRuntime, equalKOnCost, extractLlmCallEvent, fanout, flatWidenGate, gateOnDeliverable, gitWorkspace, harvestCorpus, inlineSandboxClient, isDriverSpec, jjWorkspace, localShell, loopDispatch, loopUntil, mapSandboxEvent, materializeTreeView, nestedScopeSeamKey, observe, openSandboxRun, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderReport, replaySpawnTree, reportLoopUsage, routerDriverChat, runAgentic, runBenchmark, runInWorkspace, runPersonified, runStrategyEvolution, sample, sampleThenRefine, sandboxSessionTraceSource, selectChampion, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervisorSkill, toToolSpan, toolPartDecoders, trajectoryReport, verify, watchTrace, widen, withDriverExecutor, worktreeCoderFanout } from './runtime.js';
3
3
  export { a as RouterChatResult, b as RouterChatToolsResult, R as RouterConfig, c as RouterToolCall, d as RouterToolLoopResult, T as ToolSpec, r as routerChatWithTools, e as routerChatWithUsage, f as routerToolLoop } from './router-client-30Y_pca8.js';
4
- export { R as RunLoopOptions, c as createSandboxForSpec, d as defaultSelectWinner, r as runLoop } from './run-loop-DluzfJ2h.js';
5
- export { z as Agent, y as AgentSpec, B as Budget, U as Executor, Y as ExecutorContext, P as ExecutorFactory, E as ExecutorRegistry, Z as ExecutorResult, _ as Handle, N as NodeId, $ as NodeSnapshot, a0 as NodeStatus, a1 as Restart, u as ResultBlobStore, H as RootHandle, a2 as RootSignal, a3 as Runtime, O as Scope, x as Settled, w as SpawnEvent, v as SpawnJournal, a4 as SpawnOpts, L as Spend, K as SupervisedResult, X as Supervisor, a5 as SupervisorOpts, T as TreeView, V as UsageEvent, a6 as WidenGate } from './coordination-DWNGqygr.js';
6
- export { A as AgentRunSpec, D as Driver, E as ExecCtx, I as Iteration, F as LoopDecisionPayload, G as LoopEndedPayload, H as LoopIterationDispatchPayload, J as LoopIterationEndedPayload, M as LoopIterationStartedPayload, a as LoopLineageOptions, N as LoopPlanDescription, P as LoopPlanPayload, b as LoopResult, f as LoopSandboxPlacement, Q as LoopStartedPayload, T as LoopTeardownFailedPayload, d as LoopTokenUsage, g as LoopTraceEmitter, e as LoopTraceEvent, L as LoopWinner, O as OutputAdapter, S as SandboxClient, U as ValidationCtx, V as Validator } from './types-C8rNlxfV.js';
4
+ export { R as RunLoopOptions, c as createSandboxForSpec, d as defaultSelectWinner, r as runLoop } from './run-loop-CcqfR_gy.js';
5
+ export { z as Agent, y as AgentSpec, B as Budget, Y as BusEvent, Z as BusRecord, _ as BusStats, $ as EventBus, U as Executor, a0 as ExecutorContext, P as ExecutorFactory, E as ExecutorRegistry, a1 as ExecutorResult, a2 as Handle, N as NodeId, a3 as NodeSnapshot, a4 as NodeStatus, a5 as PublishOptions, a6 as Restart, u as ResultBlobStore, H as RootHandle, a7 as RootSignal, a8 as Runtime, O as Scope, x as Settled, w as SpawnEvent, v as SpawnJournal, a9 as SpawnOpts, L as Spend, K as SupervisedResult, X as Supervisor, aa as SupervisorOpts, T as TreeView, V as UsageEvent, ab as WidenGate, ac as createEventBus } from './coordination-BydGBQCZ.js';
6
+ export { A as AgentRunSpec, D as Driver, E as ExecCtx, I as Iteration, F as LoopDecisionPayload, G as LoopEndedPayload, H as LoopIterationDispatchPayload, J as LoopIterationEndedPayload, M as LoopIterationStartedPayload, a as LoopLineageOptions, N as LoopPlanDescription, P as LoopPlanPayload, b as LoopResult, f as LoopSandboxPlacement, Q as LoopStartedPayload, T as LoopTeardownFailedPayload, e as LoopTokenUsage, g as LoopTraceEmitter, d as LoopTraceEvent, L as LoopWinner, O as OutputAdapter, S as SandboxClient, U as ValidationCtx, V as Validator } from './types-CUzjRFZ3.js';
7
7
  export { DefaultVerdict } from '@tangle-network/agent-eval';
8
8
  import './runtime-hooks-C7JwKb9E.js';
9
9
  import '@tangle-network/agent-eval/campaign';
10
10
  import './types-p8dWBIXL.js';
11
- import './coder-COuOK8h8.js';
11
+ import './coder-CybltHEm.js';
12
12
  import './local-harness-BE_h8szs.js';
13
13
  import 'node:child_process';
14
- import './delegates-D9o5_VFj.js';
14
+ import '@tangle-network/agent-eval/pipelines';
15
+ import './delegates-C94qchkz.js';
15
16
  import './substrate-CUgk7F7s.js';
package/dist/loops.js CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  InMemorySpawnJournal,
8
8
  acquireSandbox,
9
9
  adaptiveRefine,
10
+ analyzeTrace,
10
11
  anytimeReport,
11
12
  asAuthoredProfile,
12
13
  assertStrategyContract,
@@ -23,9 +24,13 @@ import {
23
24
  contentAddress,
24
25
  coordinationDriverAgent,
25
26
  createBudgetPool,
27
+ createEventBus,
26
28
  createExecutor,
27
29
  createExecutorRegistry,
30
+ createInbox,
28
31
  createMcpEnvironment,
32
+ createPartsTraceSource,
33
+ createPushTraceSource,
29
34
  createRootHandle,
30
35
  createSandboxForSpec,
31
36
  createSandboxLineage,
@@ -36,9 +41,14 @@ import {
36
41
  createVerifierEnvironment,
37
42
  createWaterfallCollector,
38
43
  createWorktreeCliExecutor,
44
+ decodeAnthropicPart,
45
+ decodeOpenAiPart,
46
+ decodeOpencodePart,
47
+ decodeToolPart,
39
48
  defaultAnalystInstruction,
40
49
  defaultAuditorInstruction,
41
50
  defaultSelectWinner,
51
+ defaultToolDetectors,
42
52
  definePersona,
43
53
  defineStrategy,
44
54
  depthDriver,
@@ -79,6 +89,7 @@ import {
79
89
  reportLoopUsage,
80
90
  routerChatWithTools,
81
91
  routerChatWithUsage,
92
+ routerDriverChat,
82
93
  routerToolLoop,
83
94
  runAgentic,
84
95
  runBenchmark,
@@ -88,6 +99,7 @@ import {
88
99
  runStrategyEvolution,
89
100
  sample,
90
101
  sampleThenRefine,
102
+ sandboxSessionTraceSource,
91
103
  selectChampion,
92
104
  sentinelCompletion,
93
105
  serveCoordinationMcp,
@@ -96,12 +108,15 @@ import {
96
108
  stopSentinel,
97
109
  strategyAuthorContract,
98
110
  supervisorSkill,
111
+ toToolSpan,
112
+ toolPartDecoders,
99
113
  trajectoryReport,
100
114
  verify,
115
+ watchTrace,
101
116
  widen,
102
117
  withDriverExecutor,
103
118
  worktreeCoderFanout
104
- } from "./chunk-4H2FML7G.js";
119
+ } from "./chunk-MDFZSPHA.js";
105
120
  import "./chunk-7QYOXFCD.js";
106
121
  import "./chunk-WIR4HOOJ.js";
107
122
  import {
@@ -120,6 +135,7 @@ export {
120
135
  InMemorySpawnJournal,
121
136
  acquireSandbox,
122
137
  adaptiveRefine,
138
+ analyzeTrace,
123
139
  anytimeReport,
124
140
  asAuthoredProfile,
125
141
  assertStrategyContract,
@@ -136,9 +152,13 @@ export {
136
152
  contentAddress,
137
153
  coordinationDriverAgent,
138
154
  createBudgetPool,
155
+ createEventBus,
139
156
  createExecutor,
140
157
  createExecutorRegistry,
158
+ createInbox,
141
159
  createMcpEnvironment,
160
+ createPartsTraceSource,
161
+ createPushTraceSource,
142
162
  createRootHandle,
143
163
  createSandboxForSpec,
144
164
  createSandboxLineage,
@@ -149,9 +169,14 @@ export {
149
169
  createVerifierEnvironment,
150
170
  createWaterfallCollector,
151
171
  createWorktreeCliExecutor,
172
+ decodeAnthropicPart,
173
+ decodeOpenAiPart,
174
+ decodeOpencodePart,
175
+ decodeToolPart,
152
176
  defaultAnalystInstruction,
153
177
  defaultAuditorInstruction,
154
178
  defaultSelectWinner,
179
+ defaultToolDetectors,
155
180
  definePersona,
156
181
  defineStrategy,
157
182
  depthDriver,
@@ -194,6 +219,7 @@ export {
194
219
  reportLoopUsage,
195
220
  routerChatWithTools,
196
221
  routerChatWithUsage,
222
+ routerDriverChat,
197
223
  routerToolLoop,
198
224
  runAgentic,
199
225
  runBenchmark,
@@ -203,6 +229,7 @@ export {
203
229
  runStrategyEvolution,
204
230
  sample,
205
231
  sampleThenRefine,
232
+ sandboxSessionTraceSource,
206
233
  selectChampion,
207
234
  sentinelCompletion,
208
235
  serveCoordinationMcp,
@@ -211,8 +238,11 @@ export {
211
238
  stopSentinel,
212
239
  strategyAuthorContract,
213
240
  supervisorSkill,
241
+ toToolSpan,
242
+ toolPartDecoders,
214
243
  trajectoryReport,
215
244
  verify,
245
+ watchTrace,
216
246
  widen,
217
247
  withDriverExecutor,
218
248
  worktreeCoderFanout
package/dist/mcp/bin.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createPropagatingTraceEmitter,
4
4
  detectExecutor,
5
5
  readTraceContextFromEnv
6
- } from "../chunk-EXIV2C72.js";
6
+ } from "../chunk-E2L6PG5F.js";
7
7
  import {
8
8
  resolveRouterBaseUrl
9
9
  } from "../chunk-GRAGM4MC.js";
@@ -11,7 +11,7 @@ import {
11
11
  coderTaskFromArgs,
12
12
  createDefaultCoderDelegate,
13
13
  settleDetachedCoderTurn
14
- } from "../chunk-G4NIVG34.js";
14
+ } from "../chunk-ISVIQDIX.js";
15
15
  import {
16
16
  DEFAULT_SANDBOX_BASE_URL
17
17
  } from "../chunk-XRYEZPR6.js";
@@ -26,7 +26,7 @@ import {
26
26
  parseDetachedSessionRef,
27
27
  runDetachedTurn,
28
28
  runLoop
29
- } from "../chunk-4H2FML7G.js";
29
+ } from "../chunk-MDFZSPHA.js";
30
30
  import {
31
31
  coderProfile
32
32
  } from "../chunk-7QYOXFCD.js";