@tangle-network/agent-runtime 0.56.0 → 0.57.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/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/{chunk-5ZOYQWEB.js → chunk-6BOIKGSU.js} +2 -2
- package/dist/{chunk-3BI6PSP3.js → chunk-7QYOXFCD.js} +1 -1
- package/dist/chunk-7QYOXFCD.js.map +1 -0
- package/dist/{chunk-A265AJ2Q.js → chunk-NJST5D2G.js} +2 -2
- package/dist/{chunk-ZADWPBOE.js → chunk-RLDUT4JL.js} +759 -192
- package/dist/chunk-RLDUT4JL.js.map +1 -0
- package/dist/{chunk-UIQTCS6H.js → chunk-TVBXDW7C.js} +59 -79
- package/dist/chunk-TVBXDW7C.js.map +1 -0
- package/dist/{chunk-GFDCNQRO.js → chunk-WFEQCRQP.js} +5 -4
- package/dist/chunk-WFEQCRQP.js.map +1 -0
- package/dist/{coder-CdsknxGF.d.ts → coder-CybltHEm.d.ts} +4 -7
- package/dist/{coordination-CfMk-RpQ.d.ts → coordination-BydGBQCZ.d.ts} +164 -4
- package/dist/{delegates-htF7l_H6.d.ts → delegates-C94qchkz.d.ts} +12 -8
- package/dist/index.d.ts +6 -6
- package/dist/index.js +5 -5
- package/dist/intelligence.d.ts +1 -1
- package/dist/{loop-runner-bin-C4YyFGdT.d.ts → loop-runner-bin-Noz7P-mS.d.ts} +3 -3
- package/dist/loop-runner-bin.d.ts +4 -4
- package/dist/loop-runner-bin.js +4 -4
- package/dist/loops.d.ts +7 -6
- package/dist/loops.js +14 -2
- package/dist/mcp/bin.js +4 -4
- package/dist/mcp/index.d.ts +20 -82
- package/dist/mcp/index.js +5 -5
- package/dist/{openai-tools-CoeLQ7Uo.d.ts → openai-tools-d4GKwgya.d.ts} +1 -1
- package/dist/profiles.d.ts +2 -2
- package/dist/profiles.js +1 -1
- package/dist/{run-loop-DluzfJ2h.d.ts → run-loop-CcqfR_gy.d.ts} +1 -1
- package/dist/runtime.d.ts +255 -67
- package/dist/runtime.js +14 -2
- package/dist/{types-C8rNlxfV.d.ts → types-CUzjRFZ3.d.ts} +1 -1
- package/dist/workflow.d.ts +2 -2
- package/dist/workflow.js +2 -2
- package/package.json +2 -2
- package/skills/loop-writer/SKILL.md +1 -1
- package/skills/supervise/SKILL.md +1 -1
- package/dist/chunk-3BI6PSP3.js.map +0 -1
- package/dist/chunk-GFDCNQRO.js.map +0 -1
- package/dist/chunk-UIQTCS6H.js.map +0 -1
- package/dist/chunk-ZADWPBOE.js.map +0 -1
- /package/dist/{chunk-5ZOYQWEB.js.map → chunk-6BOIKGSU.js.map} +0 -0
- /package/dist/{chunk-A265AJ2Q.js.map → chunk-NJST5D2G.js.map} +0 -0
|
@@ -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 {
|
|
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-
|
|
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 `
|
|
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
|
|
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-
|
|
2
|
-
import { g as LoopTraceEmitter,
|
|
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`. */
|
|
@@ -1464,12 +1470,10 @@ interface CreateDefaultCoderDelegateOptions {
|
|
|
1464
1470
|
* (driveTurn ticks) so a durable queue resumes them across an MCP restart — a substrate
|
|
1465
1471
|
* the recursive worktree-CLI leaf does not yet have a journal-replay equivalent for.
|
|
1466
1472
|
*
|
|
1467
|
-
*
|
|
1468
|
-
*
|
|
1469
|
-
*
|
|
1470
|
-
*
|
|
1471
|
-
* `createMcpServer` consumes for SANDBOX-session delegation + detached resume; it will remain
|
|
1472
|
-
* until the worktree-CLI leaf grows the detached-tick resume equivalent.
|
|
1473
|
+
* For NEW local-repo coding, `worktreeCoderFanout` is a generic alternative (author an
|
|
1474
|
+
* `AgentProfile` per harness → `createWorktreeCliExecutor` leaves → `gateOnDeliverable`). This
|
|
1475
|
+
* factory remains first-class: it owns the sandbox-session + detached-resume substrate that the
|
|
1476
|
+
* worktree-CLI leaf does not yet replicate.
|
|
1473
1477
|
*
|
|
1474
1478
|
* @experimental
|
|
1475
1479
|
*/
|
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-
|
|
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-
|
|
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-
|
|
7
|
-
export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from './openai-tools-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
+
} from "./chunk-NJST5D2G.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_ROUTER_BASE_URL,
|
|
7
7
|
cleanModelId,
|
|
@@ -21,17 +21,17 @@ import {
|
|
|
21
21
|
runDelegatedLoop,
|
|
22
22
|
runLoopRunnerCli,
|
|
23
23
|
selfImproveLoopRunner
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6BOIKGSU.js";
|
|
25
25
|
import "./chunk-FNMGYYSS.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-WFEQCRQP.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-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-RLDUT4JL.js";
|
|
34
|
+
import "./chunk-7QYOXFCD.js";
|
|
35
35
|
import "./chunk-WIR4HOOJ.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentEvalError,
|
package/dist/intelligence.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
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-
|
|
7
|
-
import { S as SandboxClient } from './types-
|
|
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-
|
|
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-
|
|
8
|
-
import './coder-
|
|
7
|
+
import './delegates-C94qchkz.js';
|
|
8
|
+
import './coder-CybltHEm.js';
|
|
9
9
|
import '@tangle-network/sandbox';
|
|
10
|
-
import './types-
|
|
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';
|
package/dist/loop-runner-bin.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseLoopRunnerArgv,
|
|
4
4
|
runLoopRunnerCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6BOIKGSU.js";
|
|
6
6
|
import "./chunk-FNMGYYSS.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-WFEQCRQP.js";
|
|
8
8
|
import "./chunk-P5OKDSLB.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-RLDUT4JL.js";
|
|
10
|
+
import "./chunk-7QYOXFCD.js";
|
|
11
11
|
import "./chunk-WIR4HOOJ.js";
|
|
12
12
|
import "./chunk-VLF5RHEQ.js";
|
|
13
13
|
import "./chunk-GLMFBUKT.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, DetectorMonitor, DetectorMonitorOptions, 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, RecordedToolStep, 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, ToolStep, TrajectoryAnalysis, TrajectoryNode, TrajectoryRecorder, 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, createDetectorMonitor, createExecutor, createExecutorRegistry, createInbox, createMcpEnvironment, createRootHandle, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createTrajectoryRecorder, createVerifierEnvironment, createWaterfallCollector, createWorktreeCliExecutor, 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, selectChampion, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervisorSkill, trajectoryReport, verify, 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-
|
|
5
|
-
export { z as Agent, y as AgentSpec, B as Budget, U as Executor,
|
|
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,
|
|
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-
|
|
11
|
+
import './coder-CybltHEm.js';
|
|
12
12
|
import './local-harness-BE_h8szs.js';
|
|
13
13
|
import 'node:child_process';
|
|
14
|
-
import '
|
|
14
|
+
import '@tangle-network/agent-eval/pipelines';
|
|
15
|
+
import './delegates-C94qchkz.js';
|
|
15
16
|
import './substrate-CUgk7F7s.js';
|
package/dist/loops.js
CHANGED
|
@@ -23,8 +23,11 @@ import {
|
|
|
23
23
|
contentAddress,
|
|
24
24
|
coordinationDriverAgent,
|
|
25
25
|
createBudgetPool,
|
|
26
|
+
createDetectorMonitor,
|
|
27
|
+
createEventBus,
|
|
26
28
|
createExecutor,
|
|
27
29
|
createExecutorRegistry,
|
|
30
|
+
createInbox,
|
|
28
31
|
createMcpEnvironment,
|
|
29
32
|
createRootHandle,
|
|
30
33
|
createSandboxForSpec,
|
|
@@ -33,12 +36,14 @@ import {
|
|
|
33
36
|
createScopeAnalyst,
|
|
34
37
|
createShapeRegistry,
|
|
35
38
|
createSupervisor,
|
|
39
|
+
createTrajectoryRecorder,
|
|
36
40
|
createVerifierEnvironment,
|
|
37
41
|
createWaterfallCollector,
|
|
38
42
|
createWorktreeCliExecutor,
|
|
39
43
|
defaultAnalystInstruction,
|
|
40
44
|
defaultAuditorInstruction,
|
|
41
45
|
defaultSelectWinner,
|
|
46
|
+
defaultToolDetectors,
|
|
42
47
|
definePersona,
|
|
43
48
|
defineStrategy,
|
|
44
49
|
depthDriver,
|
|
@@ -79,6 +84,7 @@ import {
|
|
|
79
84
|
reportLoopUsage,
|
|
80
85
|
routerChatWithTools,
|
|
81
86
|
routerChatWithUsage,
|
|
87
|
+
routerDriverChat,
|
|
82
88
|
routerToolLoop,
|
|
83
89
|
runAgentic,
|
|
84
90
|
runBenchmark,
|
|
@@ -101,8 +107,8 @@ import {
|
|
|
101
107
|
widen,
|
|
102
108
|
withDriverExecutor,
|
|
103
109
|
worktreeCoderFanout
|
|
104
|
-
} from "./chunk-
|
|
105
|
-
import "./chunk-
|
|
110
|
+
} from "./chunk-RLDUT4JL.js";
|
|
111
|
+
import "./chunk-7QYOXFCD.js";
|
|
106
112
|
import "./chunk-WIR4HOOJ.js";
|
|
107
113
|
import {
|
|
108
114
|
extractLlmCallEvent,
|
|
@@ -136,8 +142,11 @@ export {
|
|
|
136
142
|
contentAddress,
|
|
137
143
|
coordinationDriverAgent,
|
|
138
144
|
createBudgetPool,
|
|
145
|
+
createDetectorMonitor,
|
|
146
|
+
createEventBus,
|
|
139
147
|
createExecutor,
|
|
140
148
|
createExecutorRegistry,
|
|
149
|
+
createInbox,
|
|
141
150
|
createMcpEnvironment,
|
|
142
151
|
createRootHandle,
|
|
143
152
|
createSandboxForSpec,
|
|
@@ -146,12 +155,14 @@ export {
|
|
|
146
155
|
createScopeAnalyst,
|
|
147
156
|
createShapeRegistry,
|
|
148
157
|
createSupervisor,
|
|
158
|
+
createTrajectoryRecorder,
|
|
149
159
|
createVerifierEnvironment,
|
|
150
160
|
createWaterfallCollector,
|
|
151
161
|
createWorktreeCliExecutor,
|
|
152
162
|
defaultAnalystInstruction,
|
|
153
163
|
defaultAuditorInstruction,
|
|
154
164
|
defaultSelectWinner,
|
|
165
|
+
defaultToolDetectors,
|
|
155
166
|
definePersona,
|
|
156
167
|
defineStrategy,
|
|
157
168
|
depthDriver,
|
|
@@ -194,6 +205,7 @@ export {
|
|
|
194
205
|
reportLoopUsage,
|
|
195
206
|
routerChatWithTools,
|
|
196
207
|
routerChatWithUsage,
|
|
208
|
+
routerDriverChat,
|
|
197
209
|
routerToolLoop,
|
|
198
210
|
runAgentic,
|
|
199
211
|
runBenchmark,
|
package/dist/mcp/bin.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createPropagatingTraceEmitter,
|
|
4
4
|
detectExecutor,
|
|
5
5
|
readTraceContextFromEnv
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-TVBXDW7C.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-
|
|
14
|
+
} from "../chunk-WFEQCRQP.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_SANDBOX_BASE_URL
|
|
17
17
|
} from "../chunk-XRYEZPR6.js";
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
parseDetachedSessionRef,
|
|
27
27
|
runDetachedTurn,
|
|
28
28
|
runLoop
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-RLDUT4JL.js";
|
|
30
30
|
import {
|
|
31
31
|
coderProfile
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-7QYOXFCD.js";
|
|
33
33
|
import "../chunk-WIR4HOOJ.js";
|
|
34
34
|
import "../chunk-VLF5RHEQ.js";
|
|
35
35
|
import "../chunk-GLMFBUKT.js";
|