@tangle-network/agent-runtime 0.75.1 → 0.77.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.js +2 -2
- package/dist/{chunk-SA5GCF2X.js → chunk-CEW5BMGN.js} +177 -24
- package/dist/chunk-CEW5BMGN.js.map +1 -0
- package/dist/{chunk-QKNBYHMK.js → chunk-KKHMDE5I.js} +3 -3
- package/dist/{chunk-MRWXCFV5.js → chunk-LFL7K5FM.js} +2 -2
- package/dist/{chunk-ZKMOIEOB.js → chunk-RQYPH2QE.js} +28 -24
- package/dist/chunk-RQYPH2QE.js.map +1 -0
- package/dist/{coordination-c_7Olmtq.d.ts → coordination-CZe4lTxy.d.ts} +1 -1
- package/dist/index.d.ts +87 -140
- package/dist/index.js +114 -145
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +1 -1
- package/dist/loop-runner-bin.js +3 -3
- package/dist/loops.d.ts +183 -6
- package/dist/loops.js +8 -2
- package/dist/mcp/bin.js +1 -1
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +3 -3
- package/dist/{router-client-C7kp_ECN.d.ts → router-client-CMAWGv1h.d.ts} +8 -0
- package/package.json +5 -4
- package/dist/chunk-SA5GCF2X.js.map +0 -1
- package/dist/chunk-ZKMOIEOB.js.map +0 -1
- /package/dist/{chunk-QKNBYHMK.js.map → chunk-KKHMDE5I.js.map} +0 -0
- /package/dist/{chunk-MRWXCFV5.js.map → chunk-LFL7K5FM.js.map} +0 -0
package/dist/intelligence.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as LoopTraceEvent } from './types-B-jWSfcu.js';
|
|
2
2
|
import { AgentProfileMcpServer } from '@tangle-network/agent-interface';
|
|
3
|
-
import { T as ToolSpec } from './router-client-
|
|
3
|
+
import { T as ToolSpec } from './router-client-CMAWGv1h.js';
|
|
4
4
|
import '@tangle-network/agent-eval';
|
|
5
5
|
import '@tangle-network/sandbox';
|
|
6
6
|
|
package/dist/loop-runner-bin.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseLoopRunnerArgv,
|
|
4
4
|
runLoopRunnerCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KKHMDE5I.js";
|
|
6
6
|
import "./chunk-FNMGYYSS.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-CEW5BMGN.js";
|
|
8
|
+
import "./chunk-RQYPH2QE.js";
|
|
9
9
|
import "./chunk-VMNEQHJR.js";
|
|
10
10
|
import "./chunk-IODKUOBA.js";
|
|
11
11
|
import "./chunk-T2HVQVB4.js";
|
package/dist/loops.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChatClient, AnalystFinding, AgentProfile, AnalystRunInputs, ToolSpan, StreamingDetector, DetectorSignal, buildTrajectory } from '@tangle-network/agent-eval';
|
|
2
2
|
export { AnalystFinding, DefaultVerdict, computeFindingId, makeFinding } from '@tangle-network/agent-eval';
|
|
3
|
-
import { SandboxInstance, CreateSandboxOptions
|
|
3
|
+
import { SandboxEvent, SandboxInstance, CreateSandboxOptions } from '@tangle-network/sandbox';
|
|
4
4
|
export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
|
|
5
5
|
import { e as ResultBlobStore, S as SpawnJournal, N as NodeId, n as SpawnEvent, m as ExecutorFactory, d as Agent, B as Budget, j as Scope, h as Settled, g as SupervisedResult, l as DeliverableSpec, i as Spend, U as UsageEvent, E as ExecutorRegistry, o as Supervisor } from './worktree-CDxqwxGo.js';
|
|
6
6
|
export { A as AgentSpec, k as Executor, p as ExecutorContext, q as ExecutorResult, s as SupervisorOpts, T as TreeView, t as WidenGate, u as gateOnDeliverable } from './worktree-CDxqwxGo.js';
|
|
7
|
-
import { ak as MakeWorkerAgent, o as CoordinationTools, A as AnalystRegistry, n as CoordinationEvent, ar as QuestionPolicy, a$ as ExecutorConfig } from './coordination-
|
|
8
|
-
export { b0 as BusEvent, b1 as BusRecord, b2 as BusStats, b3 as EventBus, b4 as PublishOptions, b5 as cliWorktreeExecutor, b6 as createEventBus, b7 as createExecutor, b8 as createExecutorRegistry } from './coordination-
|
|
7
|
+
import { ak as MakeWorkerAgent, o as CoordinationTools, A as AnalystRegistry, n as CoordinationEvent, ar as QuestionPolicy, a$ as ExecutorConfig } from './coordination-CZe4lTxy.js';
|
|
8
|
+
export { b0 as BusEvent, b1 as BusRecord, b2 as BusStats, b3 as EventBus, b4 as PublishOptions, b5 as cliWorktreeExecutor, b6 as createEventBus, b7 as createExecutor, b8 as createExecutorRegistry } from './coordination-CZe4lTxy.js';
|
|
9
9
|
import { R as RuntimeHooks, I as Iteration, S as SandboxClient, W as Driver, A as AgentRunSpec, b as OutputAdapter, V as Validator, E as ExecCtx, X as LoopWinner, Y as LoopLineageOptions, Z as LoopResult, L as LoopTokenUsage, a as RuntimeStreamEvent, _ as MountRecorder } from './types-B-jWSfcu.js';
|
|
10
10
|
export { $ as LoopDecisionPayload, a0 as LoopEndedPayload, a1 as LoopIterationDispatchPayload, a2 as LoopIterationEndedPayload, a3 as LoopIterationStartedPayload, a4 as LoopPlanDescription, a5 as LoopPlanPayload, d as LoopSandboxPlacement, a6 as LoopStartedPayload, a7 as LoopTeardownFailedPayload, e as LoopTraceEmitter, c as LoopTraceEvent, a8 as MountManifestEntry, a9 as RunProvenance, aa as SelectionReceipt, ab as ValidationCtx } from './types-B-jWSfcu.js';
|
|
11
11
|
import { C as CorpusRecord, c as Corpus, O as Outcome, S as ScopeAnalyzeInput, d as AssertTraceDerivedFindings, e as SteerContext, f as ScopeAnalyst, F as FanoutOptions, g as CombinatorShape, h as ScopeWidenGate, L as LoopUntilSpec, P as PanelSpec, i as PipelineStage, W as WinnerStrategy, j as FanoutWinnerSelector, V as VerifySpec, k as WidenSpec, l as CorpusFilter, R as RenderCorpusToInstructionsOptions, D as DefinePersonaInput, m as Persona, n as RunPersonifiedOptions, o as ShapeRegistry, p as LoopShape, E as EqualKArm, q as EqualKOnCostOptions, r as EqualKVerdict, T as TrajectoryReportOptions, s as TrajectoryReport } from './worktree-fanout-CljF1L2v.js';
|
|
@@ -13,8 +13,8 @@ export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanou
|
|
|
13
13
|
import { Scenario, ProfileDispatchFn } from '@tangle-network/agent-eval/campaign';
|
|
14
14
|
import { b as AnalystRegistryLike } from './types-BC3bZpH0.js';
|
|
15
15
|
import { AgentProfile as AgentProfile$1 } from '@tangle-network/agent-interface';
|
|
16
|
-
import { R as RouterConfig, a as ToolLoopChat } from './router-client-
|
|
17
|
-
export { b as RouterChatResult, c as RouterChatToolsResult, d as RouterToolCall, e as RouterToolLoopResult, T as ToolSpec, r as routerBrain, f as routerChatWithTools, g as routerChatWithUsage, h as routerToolLoop } from './router-client-
|
|
16
|
+
import { R as RouterConfig, a as ToolLoopChat } from './router-client-CMAWGv1h.js';
|
|
17
|
+
export { b as RouterChatResult, c as RouterChatToolsResult, d as RouterToolCall, e as RouterToolLoopResult, T as ToolSpec, r as routerBrain, f as routerChatWithTools, g as routerChatWithUsage, h as routerToolLoop } from './router-client-CMAWGv1h.js';
|
|
18
18
|
import { stuckLoopView, toolWasteView } from '@tangle-network/agent-eval/pipelines';
|
|
19
19
|
import './substrate-rNj6TDc3.js';
|
|
20
20
|
import './otel-export-BKmNwiCb.js';
|
|
@@ -470,6 +470,55 @@ interface HarvestReport {
|
|
|
470
470
|
}
|
|
471
471
|
declare function harvestCorpus(opts: HarvestCorpusOptions): Promise<HarvestReport>;
|
|
472
472
|
|
|
473
|
+
/** Context handed to each `onPrompt` call. */
|
|
474
|
+
interface InProcessPromptCtx {
|
|
475
|
+
/** 0-based round index — increments per `streamPrompt` on the SAME box (so a
|
|
476
|
+
* refine driver's round N can differ from round N-1). Fresh boxes start at 0. */
|
|
477
|
+
round: number;
|
|
478
|
+
/** Absolute path of this box's workspace, when a `workdir` was configured.
|
|
479
|
+
* Write the deliverable / fixtures here; `fs.read`/`fs.write`/`exec` operate
|
|
480
|
+
* over it. `undefined` for pure event-only boxes. */
|
|
481
|
+
workdir?: string;
|
|
482
|
+
/** Cooperative cancellation channel for this turn. */
|
|
483
|
+
signal: AbortSignal;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* The user callback: given a prompt and its round, produce the box's event
|
|
487
|
+
* stream for that turn. Return a plain `SandboxEvent[]` (the common case) or an
|
|
488
|
+
* async iterable for streaming. The callback may also write files into
|
|
489
|
+
* `ctx.workdir` (read back via `fs.read` or graded by `exec`).
|
|
490
|
+
*/
|
|
491
|
+
type InProcessOnPrompt = (prompt: string, ctx: InProcessPromptCtx) => SandboxEvent[] | AsyncIterable<SandboxEvent> | Promise<SandboxEvent[]>;
|
|
492
|
+
/** @experimental */
|
|
493
|
+
interface InProcessSandboxClientOptions {
|
|
494
|
+
/** The per-turn behavior — see {@link InProcessOnPrompt}. */
|
|
495
|
+
onPrompt: InProcessOnPrompt;
|
|
496
|
+
/**
|
|
497
|
+
* Opt in to a REAL filesystem-backed box. When set, each `create()` mints a
|
|
498
|
+
* fresh temp directory (prefixed `<workdir>-`) and the box exposes
|
|
499
|
+
* `fs.read`/`fs.write` and `exec` over it; `delete()` removes the dir. Omit
|
|
500
|
+
* for a pure event-only box (no `fs`/`exec` members), which is all a driver
|
|
501
|
+
* or fanout loop needs.
|
|
502
|
+
*/
|
|
503
|
+
workdir?: string;
|
|
504
|
+
/**
|
|
505
|
+
* Override the box `id`. A string is used verbatim; a function receives the
|
|
506
|
+
* 0-based create-sequence and returns the id (e.g. machine-keyed placement
|
|
507
|
+
* demos). Default `in-process-<seq>`. The id is the value `describePlacement`
|
|
508
|
+
* tags, so set it when a demo's output reads on a meaningful sandbox id.
|
|
509
|
+
*/
|
|
510
|
+
id?: string | ((seq: number) => string);
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Adapt a single `onPrompt(prompt, ctx)` callback into a `SandboxClient` for
|
|
514
|
+
* `runLoop` / `openSandboxRun`. Returns a PROPERLY-TYPED `SandboxClient`: the
|
|
515
|
+
* lone `SandboxInstance` cast (object literal → `declare class`) lives inside
|
|
516
|
+
* this function, so call sites stay cast-free.
|
|
517
|
+
*
|
|
518
|
+
* @experimental
|
|
519
|
+
*/
|
|
520
|
+
declare function inProcessSandboxClient(options: InProcessSandboxClientOptions): SandboxClient;
|
|
521
|
+
|
|
473
522
|
/**
|
|
474
523
|
* Adapt an `ExecutorFactory` into a `SandboxClient` for `runLoop`. The factory is
|
|
475
524
|
* instantiated fresh per `streamPrompt` (mirrors the per-spawn executor lifecycle):
|
|
@@ -696,6 +745,12 @@ interface AgenticOptions {
|
|
|
696
745
|
routerBaseUrl: string;
|
|
697
746
|
routerKey: string;
|
|
698
747
|
model: string;
|
|
748
|
+
/** Optional completion transport (see `RouterConfig.complete`): when set, BOTH legs of an
|
|
749
|
+
* offline run use it instead of `fetch`-ing the router — the worker's tool loop (threaded into
|
|
750
|
+
* its `routerToolLoop` cfg) AND the analyst's critic (its `ChatClient` is bound to this same
|
|
751
|
+
* transport). One injected responder serves both, as a localhost mock endpoint would. Absent ⇒
|
|
752
|
+
* the live router fetch path (the default). */
|
|
753
|
+
complete?: (body: Record<string, unknown>) => Promise<unknown>;
|
|
699
754
|
temperature?: number;
|
|
700
755
|
/** Completion cap per worker turn — REQUIRED for thinking models (they burn unbounded
|
|
701
756
|
* budgets on reasoning and return empty content without it). Omitted ⇒ provider default. */
|
|
@@ -1877,6 +1932,128 @@ interface OpenSandboxRunOptions {
|
|
|
1877
1932
|
*/
|
|
1878
1933
|
declare function openSandboxRun<Out>(client: SandboxClient, options: OpenSandboxRunOptions, deliverable: Deliverable<Out>): Promise<SandboxRun<Out>>;
|
|
1879
1934
|
|
|
1935
|
+
/**
|
|
1936
|
+
* @experimental
|
|
1937
|
+
*
|
|
1938
|
+
* Leak-free steering drivers — the non-LLM controls for the driven loop.
|
|
1939
|
+
*
|
|
1940
|
+
* These are the two sibling `Driver`s of the `refine` reference driver
|
|
1941
|
+
* (examples/driver-loop/driver-loop.ts), differing ONLY in how much of the
|
|
1942
|
+
* prior `verdict` their `plan()` is allowed to read. The amount of the verdict
|
|
1943
|
+
* a driver reads IS the experimental axis:
|
|
1944
|
+
*
|
|
1945
|
+
* • refine — reads `verdict.notes` (and/or `verdict.scores`): the grader's
|
|
1946
|
+
* findings. A reviewer/judge LLM turns those findings into the
|
|
1947
|
+
* next prompt. This is the "coached" condition.
|
|
1948
|
+
* • dumb — reads ONLY `verdict.valid` (the pass/fail boolean). No findings,
|
|
1949
|
+
* no scores, no LLM. The next prompt is one of two fixed strings
|
|
1950
|
+
* keyed on pass/fail. This is the leak-free pass/fail control.
|
|
1951
|
+
* • naive — reads NOTHING from the verdict. The next prompt is one fixed
|
|
1952
|
+
* continuation string every round. This is the leak-free
|
|
1953
|
+
* no-signal control.
|
|
1954
|
+
*
|
|
1955
|
+
* The `dumb → refine` gap measured on the same task therefore isolates how much
|
|
1956
|
+
* the grader's findings (its notes/scores) inflate the result beyond a bare
|
|
1957
|
+
* pass/fail signal: it is exactly the delta between reading `verdict.valid` and
|
|
1958
|
+
* reading `verdict.notes`. The `naive → dumb` gap isolates the value of the
|
|
1959
|
+
* pass/fail bit alone. Run all three against one task to attribute a loop's
|
|
1960
|
+
* lift to its actual source instead of crediting it to the grader for free.
|
|
1961
|
+
*
|
|
1962
|
+
* GENERALITY CONTRACT
|
|
1963
|
+
* -------------------
|
|
1964
|
+
* These builders carry ZERO domain coupling:
|
|
1965
|
+
* • The continuation strings are PARAMETERS. The caller passes its own text;
|
|
1966
|
+
* the substrate hardcodes none.
|
|
1967
|
+
* • The Task shape is OPAQUE. The builder never assumes a `prompt` field (or
|
|
1968
|
+
* any field). The caller supplies `applyContinuation(task, text) → Task`,
|
|
1969
|
+
* which folds a steering string into the caller's own Task shape — exactly
|
|
1970
|
+
* symmetric with the caller-supplied `AgentRunSpec.taskToPrompt`. For a Task
|
|
1971
|
+
* that is `{ prompt: string; … }`, the fold is the one-liner
|
|
1972
|
+
* `(task, text) => ({ ...task, prompt: text })`.
|
|
1973
|
+
*
|
|
1974
|
+
* They consume nothing the loop kernel does not already give `plan()`/`decide()`
|
|
1975
|
+
* — `runLoop` requires no change. A benchmark picks a driver by name and the
|
|
1976
|
+
* kernel does the rest.
|
|
1977
|
+
*/
|
|
1978
|
+
|
|
1979
|
+
/**
|
|
1980
|
+
* Terminal-or-continue decision shared by all three steering drivers. The
|
|
1981
|
+
* non-terminal `'refine'` keeps the loop running another shot; the terminal
|
|
1982
|
+
* `'pick-winner'`/`'fail'` stop it (`isTerminalDecision` in run-loop.ts treats
|
|
1983
|
+
* `'pick-winner'` and `'fail'` as terminal and any other string as a request
|
|
1984
|
+
* for another round). Identical to the reference refine driver's decision set.
|
|
1985
|
+
*/
|
|
1986
|
+
type SteeringDecision = 'refine' | 'pick-winner' | 'fail';
|
|
1987
|
+
/**
|
|
1988
|
+
* Fold a steering string into the caller's Task shape, producing the Task for
|
|
1989
|
+
* the next shot. The substrate never assumes how a Task carries its prompt, so
|
|
1990
|
+
* the caller supplies this — the same way it supplies `taskToPrompt`. The
|
|
1991
|
+
* original `task` is passed so the fold can preserve task-level fields (ids,
|
|
1992
|
+
* fixtures, feature names) and replace only the instruction.
|
|
1993
|
+
*/
|
|
1994
|
+
type ApplyContinuation<Task> = (task: Task, continuation: string) => Task;
|
|
1995
|
+
/** Options for {@link naiveDriver}. */
|
|
1996
|
+
interface NaiveDriverOptions<Task> {
|
|
1997
|
+
/**
|
|
1998
|
+
* The fixed continuation issued every round after shot 0. The same string is
|
|
1999
|
+
* sent whether the prior shot passed inspection or not — the naive driver
|
|
2000
|
+
* reads no part of the verdict. Domain text is the caller's; the substrate
|
|
2001
|
+
* supplies none.
|
|
2002
|
+
*/
|
|
2003
|
+
continuation: string;
|
|
2004
|
+
/** Folds `continuation` into the caller's Task shape for the next shot. */
|
|
2005
|
+
applyContinuation: ApplyContinuation<Task>;
|
|
2006
|
+
/** Hard shot cap. The loop stops refining once history reaches this length. */
|
|
2007
|
+
maxIterations: number;
|
|
2008
|
+
/** Trace-event identifier. Default `'naive'`. */
|
|
2009
|
+
name?: string;
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
* `naiveDriver` — the no-signal steering control.
|
|
2013
|
+
*
|
|
2014
|
+
* `plan()` runs the initial `task` at shot 0, then issues the SAME fixed
|
|
2015
|
+
* `continuation` every subsequent round until a shot is valid or the cap is
|
|
2016
|
+
* hit. It reads NOTHING from `history[last].verdict` — not `.valid`, not
|
|
2017
|
+
* `.notes`, not `.scores`. It is the floor a coached loop must beat to earn its
|
|
2018
|
+
* coaching: any lift over naive that is not also present in `dumb` is
|
|
2019
|
+
* attributable to the pass/fail bit, and any lift of `refine` over `dumb` is
|
|
2020
|
+
* attributable to the grader's findings.
|
|
2021
|
+
*/
|
|
2022
|
+
declare function naiveDriver<Task, Output>(options: NaiveDriverOptions<Task>): Driver<Task, Output, SteeringDecision>;
|
|
2023
|
+
/** Options for {@link dumbDriver}. */
|
|
2024
|
+
interface DumbDriverOptions<Task> {
|
|
2025
|
+
/**
|
|
2026
|
+
* Continuation issued when the prior shot's verdict is valid. In a
|
|
2027
|
+
* stop-on-pass loop this is rarely reached (a valid shot ends the loop), but
|
|
2028
|
+
* it is required so the driver is total over the pass/fail bit; pass a
|
|
2029
|
+
* confirmation/keep-going string.
|
|
2030
|
+
*/
|
|
2031
|
+
onPass: string;
|
|
2032
|
+
/** Continuation issued when the prior shot's verdict is NOT valid. */
|
|
2033
|
+
onFail: string;
|
|
2034
|
+
/** Folds the chosen continuation into the caller's Task shape. */
|
|
2035
|
+
applyContinuation: ApplyContinuation<Task>;
|
|
2036
|
+
/** Hard shot cap. The loop stops refining once history reaches this length. */
|
|
2037
|
+
maxIterations: number;
|
|
2038
|
+
/** Trace-event identifier. Default `'dumb'`. */
|
|
2039
|
+
name?: string;
|
|
2040
|
+
}
|
|
2041
|
+
/**
|
|
2042
|
+
* `dumbDriver` — the pass/fail-only steering control.
|
|
2043
|
+
*
|
|
2044
|
+
* `plan()` runs the initial `task` at shot 0, then reads ONLY
|
|
2045
|
+
* `history[last].verdict.valid` (the boolean) and issues `onPass` or `onFail`
|
|
2046
|
+
* accordingly. It MUST NOT read `.notes` or `.scores` — that boundary is the
|
|
2047
|
+
* leak-free firewall. A `verdict` with no `valid` set (or no verdict) is
|
|
2048
|
+
* treated as not-valid, so the driver is total and never throws on a
|
|
2049
|
+
* grader/transport gap.
|
|
2050
|
+
*
|
|
2051
|
+
* The `dumb → refine` gap is the headline measurement: refine reads the
|
|
2052
|
+
* grader's `notes`, dumb reads only the pass/fail bit, so the difference is
|
|
2053
|
+
* exactly the value the findings add over a bare boolean.
|
|
2054
|
+
*/
|
|
2055
|
+
declare function dumbDriver<Task, Output>(options: DumbDriverOptions<Task>): Driver<Task, Output, SteeringDecision>;
|
|
2056
|
+
|
|
1880
2057
|
/**
|
|
1881
2058
|
* authorStrategy — the agent-authored layer as a package primitive (software-3.0): an
|
|
1882
2059
|
* LLM reads a benchmark's per-task LOSSES + the defineStrategy contract and writes a NEW
|
|
@@ -3065,4 +3242,4 @@ declare function runInWorkspace<T>(ws: Workspace, body: (cwd: string) => Promise
|
|
|
3065
3242
|
commitOnInvalid?: boolean;
|
|
3066
3243
|
}): Promise<WorkspaceRun<T>>;
|
|
3067
3244
|
|
|
3068
|
-
export { Agent, AgentRunSpec, type AgenticOptions, type AgenticRunResult, type AgenticSurface, type AgenticTask, type AgenticTool, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ArtifactHandle, AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredProfile, type AuthoredStrategy, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, Budget, type BudgetPool, type BudgetReadout, type ChampionPick, type ChampionPolicy, type CheckpointCapableBox, CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, CoordinationEvent, type CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, type CreateScopeAnalystOptions, type CriuCapableClient, DefinePersonaInput, type DelegateOptions, type Deliverable, DeliverableSpec, type DriveHarness, Driver, type DriverAgentOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, FanoutOptions, FanoutWinnerSelector, FileCorpus, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type Inbox, type InboxMessage, type IntentAudit, Iteration, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, type McpEndpoint, type McpEnvironmentOptions, MountRecorder, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunOptions, Outcome, OutputAdapter, PanelSpec, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, ResultBlobStore, RouterConfig, type RunAgenticOptions, RunPersonifiedOptions, type SandboxCapabilities, SandboxClient, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, Scope, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, type SessionCapableBox, type SessionTraceBox, Settled, ShapeRegistry, type Shell, type ShotPersona, type ShotSpec, Spend, SteerContext, type Strategy, type StrategyCtx, type StrategyEvolutionConfig, type StrategyResult, type SuperviseOptions, SupervisedResult, Supervisor, type SupervisorAgentDeps, type SupervisorProfile, type SurfaceScore, ToolLoopChat, type TraceSource, type TrajectoryAnalysis, TrajectoryReport, TrajectoryReportOptions, type TurnResult, UsageEvent, type UsageSink, Validator, type VerifierEnvironmentOptions, VerifySpec, type WatchTraceOptions, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, WidenSpec, WinnerStrategy, type Workspace, type WorkspaceCommit, type WorkspaceRun, acquireSandbox, adaptiveRefine, analyzeTrace, anytimeReport, asAuthoredProfile, assertModelAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, authoredWorker, breadthStrategy, buildSteerContext, builtinShapes, completionAuthorizes, contentAddress, createBudgetPool, createInMemoryRunContext, createInbox, createMcpEnvironment, createPushTraceSource, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultProfileRichnessThresholds, defaultSelectWinner, defaultToolDetectors, definePersona, defineStrategy, delegate, depthStrategy, deterministicCompletion, discriminatingMeans, driverAgent, equalKOnCost, extractLlmCallEvent, fanout, finalizeBestDelivered, flatWidenGate, gitWorkspace, harvestCorpus, inlineSandboxClient, jjWorkspace, localShell, loopDispatch, loopUntil, mapSandboxEvent, observe, openSandboxRun, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderReport, reportLoopUsage, runAgentic, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sample, sampleThenRefine, sandboxSessionTraceSource, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervise, supervisorAgent, supervisorInstructions, trajectoryReport, verify, watchTrace, widen, workerFromBackend };
|
|
3245
|
+
export { Agent, AgentRunSpec, type AgenticOptions, type AgenticRunResult, type AgenticSurface, type AgenticTask, type AgenticTool, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ApplyContinuation, type ArtifactHandle, AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredProfile, type AuthoredStrategy, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, Budget, type BudgetPool, type BudgetReadout, type ChampionPick, type ChampionPolicy, type CheckpointCapableBox, CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, CoordinationEvent, type CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, type CreateScopeAnalystOptions, type CriuCapableClient, DefinePersonaInput, type DelegateOptions, type Deliverable, DeliverableSpec, type DriveHarness, Driver, type DriverAgentOptions, type DumbDriverOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, FanoutOptions, FanoutWinnerSelector, FileCorpus, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type Inbox, type InboxMessage, type IntentAudit, Iteration, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, type McpEndpoint, type McpEnvironmentOptions, MountRecorder, type NaiveDriverOptions, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunOptions, Outcome, OutputAdapter, PanelSpec, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, ResultBlobStore, RouterConfig, type RunAgenticOptions, RunPersonifiedOptions, type SandboxCapabilities, SandboxClient, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, Scope, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, type SessionCapableBox, type SessionTraceBox, Settled, ShapeRegistry, type Shell, type ShotPersona, type ShotSpec, Spend, SteerContext, type SteeringDecision, type Strategy, type StrategyCtx, type StrategyEvolutionConfig, type StrategyResult, type SuperviseOptions, SupervisedResult, Supervisor, type SupervisorAgentDeps, type SupervisorProfile, type SurfaceScore, ToolLoopChat, type TraceSource, type TrajectoryAnalysis, TrajectoryReport, TrajectoryReportOptions, type TurnResult, UsageEvent, type UsageSink, Validator, type VerifierEnvironmentOptions, VerifySpec, type WatchTraceOptions, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, WidenSpec, WinnerStrategy, type Workspace, type WorkspaceCommit, type WorkspaceRun, acquireSandbox, adaptiveRefine, analyzeTrace, anytimeReport, asAuthoredProfile, assertModelAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, authoredWorker, breadthStrategy, buildSteerContext, builtinShapes, completionAuthorizes, contentAddress, createBudgetPool, createInMemoryRunContext, createInbox, createMcpEnvironment, createPushTraceSource, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultProfileRichnessThresholds, defaultSelectWinner, defaultToolDetectors, definePersona, defineStrategy, delegate, depthStrategy, deterministicCompletion, discriminatingMeans, driverAgent, dumbDriver, equalKOnCost, extractLlmCallEvent, fanout, finalizeBestDelivered, flatWidenGate, gitWorkspace, harvestCorpus, inProcessSandboxClient, inlineSandboxClient, jjWorkspace, localShell, loopDispatch, loopUntil, mapSandboxEvent, naiveDriver, observe, openSandboxRun, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderReport, reportLoopUsage, runAgentic, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sample, sampleThenRefine, sandboxSessionTraceSource, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervise, supervisorAgent, supervisorInstructions, trajectoryReport, verify, watchTrace, widen, workerFromBackend };
|
package/dist/loops.js
CHANGED
|
@@ -29,17 +29,20 @@ import {
|
|
|
29
29
|
depthStrategy,
|
|
30
30
|
deterministicCompletion,
|
|
31
31
|
discriminatingMeans,
|
|
32
|
+
dumbDriver,
|
|
32
33
|
equalKOnCost,
|
|
33
34
|
fanout,
|
|
34
35
|
flatWidenGate,
|
|
35
36
|
gitWorkspace,
|
|
36
37
|
harvestCorpus,
|
|
38
|
+
inProcessSandboxClient,
|
|
37
39
|
inlineSandboxClient,
|
|
38
40
|
jjWorkspace,
|
|
39
41
|
localShell,
|
|
40
42
|
loopDispatch,
|
|
41
43
|
loopUntil,
|
|
42
44
|
makeFinding,
|
|
45
|
+
naiveDriver,
|
|
43
46
|
observe,
|
|
44
47
|
openSandboxRun,
|
|
45
48
|
panel,
|
|
@@ -73,7 +76,7 @@ import {
|
|
|
73
76
|
watchTrace,
|
|
74
77
|
widen,
|
|
75
78
|
worktreeFanout
|
|
76
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-CEW5BMGN.js";
|
|
77
80
|
import {
|
|
78
81
|
InMemoryResultBlobStore,
|
|
79
82
|
InMemorySpawnJournal,
|
|
@@ -115,7 +118,7 @@ import {
|
|
|
115
118
|
supervisorAgent,
|
|
116
119
|
supervisorInstructions,
|
|
117
120
|
workerFromBackend
|
|
118
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-RQYPH2QE.js";
|
|
119
122
|
import "./chunk-VMNEQHJR.js";
|
|
120
123
|
import {
|
|
121
124
|
extractLlmCallEvent,
|
|
@@ -180,6 +183,7 @@ export {
|
|
|
180
183
|
deterministicCompletion,
|
|
181
184
|
discriminatingMeans,
|
|
182
185
|
driverAgent,
|
|
186
|
+
dumbDriver,
|
|
183
187
|
equalKOnCost,
|
|
184
188
|
extractLlmCallEvent,
|
|
185
189
|
fanout,
|
|
@@ -188,6 +192,7 @@ export {
|
|
|
188
192
|
gateOnDeliverable,
|
|
189
193
|
gitWorkspace,
|
|
190
194
|
harvestCorpus,
|
|
195
|
+
inProcessSandboxClient,
|
|
191
196
|
inlineSandboxClient,
|
|
192
197
|
jjWorkspace,
|
|
193
198
|
localShell,
|
|
@@ -195,6 +200,7 @@ export {
|
|
|
195
200
|
loopUntil,
|
|
196
201
|
makeFinding,
|
|
197
202
|
mapSandboxEvent,
|
|
203
|
+
naiveDriver,
|
|
198
204
|
observe,
|
|
199
205
|
openSandboxRun,
|
|
200
206
|
panel,
|
package/dist/mcp/bin.js
CHANGED
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as SandboxClient, d as LoopSandboxPlacement } from '../types-B-jWSfcu.js';
|
|
2
|
-
import { F as FleetHandle, D as DelegationExecutor, a as DelegationTaskQueue, b as FeedbackStore, c as DelegateFeedbackResult, d as DelegateFeedbackArgs, U as UiAuditorDelegate, e as DelegateUiAuditArgs, f as DelegateUiAuditResult, g as DelegationHistoryResult, h as DelegationHistoryArgs, i as DelegationStatusResult, j as DelegationStatusArgs } from '../coordination-
|
|
3
|
-
export { A as AnalystRegistry, C as CappedDelegationTrace, k as CoderDelegate, l as CoderReview, m as CoderReviewer, n as CoordinationEvent, o as CoordinationTools, p as CoordinationToolsOptions, q as DELEGATE_DESCRIPTION, r as DELEGATE_INPUT_SCHEMA, s as DELEGATE_TOOL_NAME, t as DELEGATION_TRACE_MAX_BYTES, u as DELEGATION_TRACE_MAX_SPANS, v as DelegateArgs, w as DelegateCodeArgs, x as DelegateCodeConfig, y as DelegateCodeResult, z as DelegateHandlerOptions, B as DelegateResearchArgs, E as DelegateResearchConfig, G as DelegateResearchResult, H as DelegateResult, I as DelegateRunCtx, J as DelegateUiAuditConfig, K as DelegateUiAuditRoute, L as DelegationError, M as DelegationFeedbackSnapshot, N as DelegationHistoryEntry, O as DelegationPersistenceError, P as DelegationProfile, Q as DelegationProgress, R as DelegationRecord, S as DelegationResultPayload, T as DelegationResumeContext, V as DelegationResumeDriver, W as DelegationResumeTick, X as DelegationRunContext, Y as DelegationStateCorruptError, Z as DelegationStatus, _ as DelegationStore, $ as DelegationTaskQueueOptions, a0 as DelegationTraceCaps, a1 as DelegationTraceCollector, a2 as DelegationTraceSpan, a3 as DetachedSessionDelegateOptions, a4 as DetachedSessionRefParts, a5 as DetachedTurn, a6 as DetachedTurnResumeDriverOptions, a7 as DetachedWinnerSelection, a8 as DriveTurnCapableBox, a9 as DriveTurnTick, aa as FeedbackEvent, ab as FeedbackRating, ac as FeedbackRefersTo, ad as FileDelegationStore, ae as FileDelegationStoreOptions, af as FleetWorkspaceExecutorOptions, ag as InMemoryDelegationStore, ah as InMemoryFeedbackStore, ai as JsonRpcMessage, aj as JsonRpcResponse, ak as MakeWorkerAgent, al as McpServer, am as McpServerOptions, an as McpToolDescriptor, ao as McpTransport, ap as Question, aq as QuestionDecision, ar as QuestionPolicy, as as QuestionRecord, at as ResearchOutputShape, au as ResearchSource, av as RunDetachedTurnOptions, aw as SettleDetachedCoderTurnOptions, ax as SettledWorker, ay as SiblingSandboxExecutorOptions, az as SubmitInput, aA as SubmitOutput, aB as TraceContext, aC as UiAuditorDelegationOutput, aD as buildDelegationTraceSpans, aE as capDelegationTrace, aF as coderTaskFromArgs, aG as composeLoopTraceEmitters, aH as createCoordinationTools, aI as createDelegateHandler, aJ as createDelegationTraceCollector, aK as createDetachedTurnResumeDriver, aL as createFleetWorkspaceExecutor, aM as createInProcessTransport, aN as createMcpServer, aO as createPropagatingTraceEmitter, aP as createSiblingSandboxExecutor, aQ as detachedSessionDelegate, aR as detachedTurnEvents, aS as eventToSnapshot, aT as formatDetachedSessionRef, aU as hashIdempotencyInput, aV as parseDetachedSessionRef, aW as readTraceContextFromEnv, aX as runDetachedTurn, aY as settleDetachedCoderTurn, aZ as traceContextToEnv, a_ as validateDelegateArgs } from '../coordination-
|
|
2
|
+
import { F as FleetHandle, D as DelegationExecutor, a as DelegationTaskQueue, b as FeedbackStore, c as DelegateFeedbackResult, d as DelegateFeedbackArgs, U as UiAuditorDelegate, e as DelegateUiAuditArgs, f as DelegateUiAuditResult, g as DelegationHistoryResult, h as DelegationHistoryArgs, i as DelegationStatusResult, j as DelegationStatusArgs } from '../coordination-CZe4lTxy.js';
|
|
3
|
+
export { A as AnalystRegistry, C as CappedDelegationTrace, k as CoderDelegate, l as CoderReview, m as CoderReviewer, n as CoordinationEvent, o as CoordinationTools, p as CoordinationToolsOptions, q as DELEGATE_DESCRIPTION, r as DELEGATE_INPUT_SCHEMA, s as DELEGATE_TOOL_NAME, t as DELEGATION_TRACE_MAX_BYTES, u as DELEGATION_TRACE_MAX_SPANS, v as DelegateArgs, w as DelegateCodeArgs, x as DelegateCodeConfig, y as DelegateCodeResult, z as DelegateHandlerOptions, B as DelegateResearchArgs, E as DelegateResearchConfig, G as DelegateResearchResult, H as DelegateResult, I as DelegateRunCtx, J as DelegateUiAuditConfig, K as DelegateUiAuditRoute, L as DelegationError, M as DelegationFeedbackSnapshot, N as DelegationHistoryEntry, O as DelegationPersistenceError, P as DelegationProfile, Q as DelegationProgress, R as DelegationRecord, S as DelegationResultPayload, T as DelegationResumeContext, V as DelegationResumeDriver, W as DelegationResumeTick, X as DelegationRunContext, Y as DelegationStateCorruptError, Z as DelegationStatus, _ as DelegationStore, $ as DelegationTaskQueueOptions, a0 as DelegationTraceCaps, a1 as DelegationTraceCollector, a2 as DelegationTraceSpan, a3 as DetachedSessionDelegateOptions, a4 as DetachedSessionRefParts, a5 as DetachedTurn, a6 as DetachedTurnResumeDriverOptions, a7 as DetachedWinnerSelection, a8 as DriveTurnCapableBox, a9 as DriveTurnTick, aa as FeedbackEvent, ab as FeedbackRating, ac as FeedbackRefersTo, ad as FileDelegationStore, ae as FileDelegationStoreOptions, af as FleetWorkspaceExecutorOptions, ag as InMemoryDelegationStore, ah as InMemoryFeedbackStore, ai as JsonRpcMessage, aj as JsonRpcResponse, ak as MakeWorkerAgent, al as McpServer, am as McpServerOptions, an as McpToolDescriptor, ao as McpTransport, ap as Question, aq as QuestionDecision, ar as QuestionPolicy, as as QuestionRecord, at as ResearchOutputShape, au as ResearchSource, av as RunDetachedTurnOptions, aw as SettleDetachedCoderTurnOptions, ax as SettledWorker, ay as SiblingSandboxExecutorOptions, az as SubmitInput, aA as SubmitOutput, aB as TraceContext, aC as UiAuditorDelegationOutput, aD as buildDelegationTraceSpans, aE as capDelegationTrace, aF as coderTaskFromArgs, aG as composeLoopTraceEmitters, aH as createCoordinationTools, aI as createDelegateHandler, aJ as createDelegationTraceCollector, aK as createDetachedTurnResumeDriver, aL as createFleetWorkspaceExecutor, aM as createInProcessTransport, aN as createMcpServer, aO as createPropagatingTraceEmitter, aP as createSiblingSandboxExecutor, aQ as detachedSessionDelegate, aR as detachedTurnEvents, aS as eventToSnapshot, aT as formatDetachedSessionRef, aU as hashIdempotencyInput, aV as parseDetachedSessionRef, aW as readTraceContextFromEnv, aX as runDetachedTurn, aY as settleDetachedCoderTurn, aZ as traceContextToEnv, a_ as validateDelegateArgs } from '../coordination-CZe4lTxy.js';
|
|
4
4
|
import { L as LocalHarness, r as runLocalHarness } from '../local-harness-BE_h8szs.js';
|
|
5
5
|
export { a as LocalHarnessResult, R as RunLocalHarnessOptions } from '../local-harness-BE_h8szs.js';
|
|
6
6
|
import { G as GitRunner } from '../worktree-CDxqwxGo.js';
|
|
@@ -12,7 +12,7 @@ import { U as UiLens } from '../substrate-rNj6TDc3.js';
|
|
|
12
12
|
import '@tangle-network/sandbox';
|
|
13
13
|
import '@tangle-network/agent-interface';
|
|
14
14
|
import '../otel-export-BKmNwiCb.js';
|
|
15
|
-
import '../router-client-
|
|
15
|
+
import '../router-client-CMAWGv1h.js';
|
|
16
16
|
import 'node:child_process';
|
|
17
17
|
|
|
18
18
|
/**
|
package/dist/mcp/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
mcpToolsForRuntimeMcp,
|
|
8
8
|
mcpToolsForRuntimeMcpSubset
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-LFL7K5FM.js";
|
|
10
10
|
import {
|
|
11
11
|
createKbGate
|
|
12
12
|
} from "../chunk-FNMGYYSS.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
assertTraceDerivedFindings,
|
|
15
15
|
runCoderChecks,
|
|
16
16
|
selectValidWinner
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-CEW5BMGN.js";
|
|
18
18
|
import {
|
|
19
19
|
DELEGATE_DESCRIPTION,
|
|
20
20
|
DELEGATE_FEEDBACK_DESCRIPTION,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
validateDelegateUiAuditArgs,
|
|
69
69
|
validateDelegationHistoryArgs,
|
|
70
70
|
validateDelegationStatusArgs
|
|
71
|
-
} from "../chunk-
|
|
71
|
+
} from "../chunk-RQYPH2QE.js";
|
|
72
72
|
import "../chunk-VMNEQHJR.js";
|
|
73
73
|
import "../chunk-T2HVQVB4.js";
|
|
74
74
|
import {
|
|
@@ -40,6 +40,14 @@ interface RouterConfig {
|
|
|
40
40
|
routerBaseUrl: string;
|
|
41
41
|
routerKey: string;
|
|
42
42
|
model: string;
|
|
43
|
+
/**
|
|
44
|
+
* Optional completion transport. When set, `routerChatWithUsage` / `routerChatWithTools` call it
|
|
45
|
+
* with the OpenAI-shape request body and use the parsed `/chat/completions` JSON it returns,
|
|
46
|
+
* INSTEAD of `fetch(routerBaseUrl + '/chat/completions')`. When absent the fetch path runs
|
|
47
|
+
* unchanged — the live router stays the default. The injection seam an offline benchmark uses to
|
|
48
|
+
* drive the worker with no network: a deterministic in-process responder satisfies it, no server.
|
|
49
|
+
*/
|
|
50
|
+
complete?: (body: Record<string, unknown>) => Promise<unknown>;
|
|
43
51
|
}
|
|
44
52
|
interface RouterChatResult {
|
|
45
53
|
content: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.77.0",
|
|
4
4
|
"description": "Shared task-lifecycle skeleton for agents: a recursive loop kernel for chat turns, one-shot tasks, and multi-attempt loops, with trace capture and eval-gated self-improvement. Domain behavior lives in adapters; scoring and ship-gates in @tangle-network/agent-eval.",
|
|
5
5
|
"homepage": "https://github.com/tangle-network/agent-runtime#readme",
|
|
6
6
|
"repository": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "tsup",
|
|
77
77
|
"dev": "tsup --watch",
|
|
78
|
-
"prepare": "tsup",
|
|
78
|
+
"prepare": "(git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath .githooks) || true; tsup",
|
|
79
79
|
"test": "vitest run",
|
|
80
80
|
"test:watch": "vitest",
|
|
81
81
|
"lint": "biome check src tests examples",
|
|
@@ -83,18 +83,19 @@
|
|
|
83
83
|
"typecheck": "tsc --noEmit && pnpm run typecheck:examples",
|
|
84
84
|
"typecheck:examples": "tsc --noEmit -p tsconfig.examples.json",
|
|
85
85
|
"verify:package": "node scripts/verify-package-exports.mjs",
|
|
86
|
-
"docs:api": "typedoc",
|
|
86
|
+
"docs:api": "typedoc && node scripts/gen-primitive-catalog.mjs",
|
|
87
87
|
"docs:freshness": "node scripts/check-docs-freshness.mjs",
|
|
88
88
|
"docs:check": "pnpm run docs:api && git diff --exit-code -- docs/api && pnpm run docs:freshness"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@biomejs/biome": "^2.4.15",
|
|
92
|
-
"@tangle-network/agent-eval": ">=0.
|
|
92
|
+
"@tangle-network/agent-eval": ">=0.100.0 <1.0.0",
|
|
93
93
|
"@tangle-network/agent-interface": ">=0.10.0 <1.0.0",
|
|
94
94
|
"@tangle-network/sandbox": ">=0.8.0 <1.0.0",
|
|
95
95
|
"@types/node": "^25.9.3",
|
|
96
96
|
"playwright": "^1.61.0",
|
|
97
97
|
"tsup": "^8.0.0",
|
|
98
|
+
"tsx": "^4.22.4",
|
|
98
99
|
"typedoc": "0.28.19",
|
|
99
100
|
"typedoc-plugin-markdown": "4.12.0",
|
|
100
101
|
"typescript": "^5.7.0",
|