@tangle-network/agent-runtime 0.94.5 → 0.94.7
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 +4 -4
- package/dist/{agentic-generator-CL1q0H91.d.ts → agentic-generator-1g7GDba7.d.ts} +73 -6
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/analyst-loop.js +2 -2
- package/dist/candidate-execution/index.d.ts +39 -4
- package/dist/candidate-execution/index.js +8 -2
- package/dist/{chunk-MZH4HORF.js → chunk-5BT2NMML.js} +689 -3
- package/dist/chunk-5BT2NMML.js.map +1 -0
- package/dist/{chunk-GKZ6DFDN.js → chunk-7HH22XN4.js} +105 -27
- package/dist/chunk-7HH22XN4.js.map +1 -0
- package/dist/{chunk-JMT5VYY3.js → chunk-7NCP74SL.js} +174 -48
- package/dist/chunk-7NCP74SL.js.map +1 -0
- package/dist/{chunk-WQA5Y6PD.js → chunk-EP6RVHMX.js} +3 -3
- package/dist/chunk-EP6RVHMX.js.map +1 -0
- package/dist/{chunk-LWNMCOEA.js → chunk-FRXDOBFP.js} +3 -3
- package/dist/chunk-GHXW56PO.js +526 -0
- package/dist/chunk-GHXW56PO.js.map +1 -0
- package/dist/{chunk-KHLE3C5G.js → chunk-HKMKUESZ.js} +169 -50
- package/dist/chunk-HKMKUESZ.js.map +1 -0
- package/dist/{chunk-63TIZHMI.js → chunk-KYPVUEJ4.js} +4 -4
- package/dist/{chunk-FVJ7M3DA.js → chunk-M22PL4GH.js} +1 -1
- package/dist/chunk-M22PL4GH.js.map +1 -0
- package/dist/{chunk-4VMRCEI6.js → chunk-MSUWXCHD.js} +2 -2
- package/dist/{chunk-ZQZX77MM.js → chunk-QDSOD7RC.js} +2 -2
- package/dist/{chunk-RNWDH5Z3.js → chunk-TNUBPPZA.js} +2 -2
- package/dist/{completion-gate-CfX2thvL.d.ts → completion-gate-tzwyyD-E.d.ts} +2 -2
- package/dist/{coordination-pOGZuYS7.d.ts → coordination-o0TzS7Ms.d.ts} +5 -5
- package/dist/environment-provider.d.ts +2 -2
- package/dist/{improve-Ciuvu2jh.d.ts → improve-DZeatcs7.d.ts} +19 -8
- package/dist/index.d.ts +22 -19
- package/dist/index.js +45 -22
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +7 -7
- package/dist/intelligence.js +42 -18
- package/dist/intelligence.js.map +1 -1
- package/dist/knowledge.d.ts +7 -7
- package/dist/knowledge.js +4 -4
- package/dist/lifecycle.d.ts +3 -3
- package/dist/lifecycle.js +2 -2
- package/dist/{local-harness-CePtFrwu.d.ts → local-harness-ZLMkKdZc.d.ts} +1 -1
- package/dist/{loop-runner-bin-B4PwjVaF.d.ts → loop-runner-bin-iTSxSmpv.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +6 -6
- package/dist/loop-runner-bin.js +6 -6
- package/dist/loops.d.ts +36 -23
- package/dist/loops.js +4 -4
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +10 -10
- package/dist/mcp/index.js +5 -5
- package/dist/{mcp-serve-verifier-D7hCZIkT.d.ts → mcp-serve-verifier-BO4MEsR3.d.ts} +1 -1
- package/dist/{openai-tools-BMOu1t3A.d.ts → openai-tools-0wACz8f8.d.ts} +1 -1
- package/dist/{prepare-BKxAiUcH.d.ts → prepare-DIeVgQG3.d.ts} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{sanitize-Dr3SliRC.d.ts → sanitize-Dcbjp0tU.d.ts} +1 -1
- package/dist/{supervise-Y3w878fN.d.ts → supervise-CRwaJIkd.d.ts} +4 -4
- package/dist/{types-Kjr5W6OF.d.ts → types-CKmyZ9TP.d.ts} +4 -7
- package/dist/{types-DHLXdLVN.d.ts → types-CogNCaw7.d.ts} +1 -1
- package/dist/{worktree-fanout-DmBvR-_O.d.ts → worktree-fanout-BJy24LYe.d.ts} +4 -4
- package/package.json +6 -4
- package/dist/chunk-4WWSICFY.js +0 -210
- package/dist/chunk-4WWSICFY.js.map +0 -1
- package/dist/chunk-FVJ7M3DA.js.map +0 -1
- package/dist/chunk-GKZ6DFDN.js.map +0 -1
- package/dist/chunk-JMT5VYY3.js.map +0 -1
- package/dist/chunk-KHLE3C5G.js.map +0 -1
- package/dist/chunk-MZH4HORF.js.map +0 -1
- package/dist/chunk-WQA5Y6PD.js.map +0 -1
- /package/dist/{chunk-LWNMCOEA.js.map → chunk-FRXDOBFP.js.map} +0 -0
- /package/dist/{chunk-63TIZHMI.js.map → chunk-KYPVUEJ4.js.map} +0 -0
- /package/dist/{chunk-4VMRCEI6.js.map → chunk-MSUWXCHD.js.map} +0 -0
- /package/dist/{chunk-ZQZX77MM.js.map → chunk-QDSOD7RC.js.map} +0 -0
- /package/dist/{chunk-RNWDH5Z3.js.map → chunk-TNUBPPZA.js.map} +0 -0
package/dist/knowledge.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { KnowledgeReadinessSpec, BuildEvalKnowledgeBundleOptions, KnowledgeBaseQualityOptions, KnowledgeImprovementResult, KnowledgeImprovementOptions } from '@tangle-network/agent-knowledge';
|
|
2
|
-
import { E as ExecutorConfig } from './coordination-
|
|
3
|
-
import { a as SuperviseOptions, S as SupervisorProfile } from './supervise-
|
|
4
|
-
import { B as Budget, b as SupervisedResult } from './types-
|
|
5
|
-
import { D as DeliverableSpec } from './completion-gate-
|
|
2
|
+
import { E as ExecutorConfig } from './coordination-o0TzS7Ms.js';
|
|
3
|
+
import { a as SuperviseOptions, S as SupervisorProfile } from './supervise-CRwaJIkd.js';
|
|
4
|
+
import { B as Budget, b as SupervisedResult } from './types-CogNCaw7.js';
|
|
5
|
+
import { D as DeliverableSpec } from './completion-gate-tzwyyD-E.js';
|
|
6
6
|
import '@tangle-network/agent-interface';
|
|
7
7
|
import './substrate-DO2GHNg2.js';
|
|
8
|
-
import './types-
|
|
8
|
+
import './types-CKmyZ9TP.js';
|
|
9
9
|
import '@tangle-network/agent-eval';
|
|
10
10
|
import '@tangle-network/sandbox';
|
|
11
|
-
import './sanitize-
|
|
12
|
-
import './local-harness-
|
|
11
|
+
import './sanitize-Dcbjp0tU.js';
|
|
12
|
+
import './local-harness-ZLMkKdZc.js';
|
|
13
13
|
import 'node:child_process';
|
|
14
14
|
import './environment-provider.js';
|
|
15
15
|
import '@tangle-network/agent-interface/environment-provider';
|
package/dist/knowledge.js
CHANGED
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
knowledgeReadinessDeliverable,
|
|
7
7
|
runKnowledgeImprovementJob,
|
|
8
8
|
runSupervisedKnowledgeUpdate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TNUBPPZA.js";
|
|
10
10
|
import "./chunk-5QOB7H74.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-FRXDOBFP.js";
|
|
12
12
|
import "./chunk-DPEUKJRO.js";
|
|
13
13
|
import "./chunk-ISTDY47H.js";
|
|
14
14
|
import "./chunk-WIPGQ4GT.js";
|
|
15
15
|
import "./chunk-VSWBYWFK.js";
|
|
16
16
|
import "./chunk-3MDZX7YU.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-M22PL4GH.js";
|
|
18
|
+
import "./chunk-EP6RVHMX.js";
|
|
19
19
|
import "./chunk-YEJR7IXO.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
package/dist/lifecycle.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { AgentProfile } from '@tangle-network/agent-interface';
|
|
|
2
2
|
import { a as ProfileArtifact, A as ArtifactKind, b as ArtifactStatus, c as ArtifactInput, E as EvalRunner, d as EvalResult, G as GenerateContext, C as CandidateGenerator, e as PromotionVerdict, P as PromotionGate } from './generator-YkAQrOoD.js';
|
|
3
3
|
export { f as ArtifactPayloads, H as HeldOutPromotionGateOptions, M as MarginalLift, g as MeasureMarginalLiftOptions, h as heldOutPromotionGate, m as measureMarginalLift, t as thresholdPromotionGate } from './generator-YkAQrOoD.js';
|
|
4
4
|
import { LlmClientOptions, AnalystFinding } from '@tangle-network/agent-eval';
|
|
5
|
-
import { M as McpServeSpec } from './mcp-serve-verifier-
|
|
6
|
-
import { L as LocalHarness } from './local-harness-
|
|
7
|
-
import './agentic-generator-
|
|
5
|
+
import { M as McpServeSpec } from './mcp-serve-verifier-BO4MEsR3.js';
|
|
6
|
+
import { L as LocalHarness } from './local-harness-ZLMkKdZc.js';
|
|
7
|
+
import './agentic-generator-1g7GDba7.js';
|
|
8
8
|
import '@tangle-network/agent-eval/campaign';
|
|
9
9
|
import 'node:child_process';
|
|
10
10
|
|
package/dist/lifecycle.js
CHANGED
|
@@ -160,4 +160,4 @@ declare function runLocalHarness(options: RunLocalHarnessOptions): Promise<Local
|
|
|
160
160
|
/** Parse and validate the one terminal usage event emitted by `codex exec --json`. */
|
|
161
161
|
declare function parseCodexTokenUsage(stdout: string): CodexTokenUsage;
|
|
162
162
|
|
|
163
|
-
export { type CodexTokenUsage as C, type LocalHarness as L, type RunLocalHarnessOptions as R, type
|
|
163
|
+
export { type CodexTokenUsage as C, type LocalHarness as L, type RunLocalHarnessOptions as R, type CodexExecutionEvidence as a, type CodexExecutionPolicy as b, type LocalHarnessResult as c, parseCodexTokenUsage as p, runLocalHarness as r };
|
|
@@ -2,8 +2,8 @@ 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-BC3bZpH0.js';
|
|
4
4
|
import { F as FactCandidate, C as CreateKbGateOptions } from './kb-gate-CwHO0vz6.js';
|
|
5
|
-
import { B as Budget } from './types-
|
|
6
|
-
import { A as AuthoredHarness, W as WinnerStrategy, a as WorktreeFanoutOptions, b as WorktreePatchArtifact } from './worktree-fanout-
|
|
5
|
+
import { B as Budget } from './types-CogNCaw7.js';
|
|
6
|
+
import { A as AuthoredHarness, W as WinnerStrategy, a as WorktreeFanoutOptions, b as WorktreePatchArtifact } from './worktree-fanout-BJy24LYe.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, k as runLoopRunnerCli } from './loop-runner-bin-
|
|
2
|
+
export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, k as runLoopRunnerCli } from './loop-runner-bin-iTSxSmpv.js';
|
|
3
3
|
import '@tangle-network/agent-eval/campaign';
|
|
4
4
|
import '@tangle-network/agent-eval/contract';
|
|
5
5
|
import './types-BC3bZpH0.js';
|
|
6
6
|
import '@tangle-network/agent-eval';
|
|
7
7
|
import './kb-gate-CwHO0vz6.js';
|
|
8
|
-
import './types-
|
|
8
|
+
import './types-CogNCaw7.js';
|
|
9
9
|
import '@tangle-network/agent-interface';
|
|
10
10
|
import '@tangle-network/sandbox';
|
|
11
|
-
import './types-
|
|
12
|
-
import './worktree-fanout-
|
|
13
|
-
import './completion-gate-
|
|
14
|
-
import './local-harness-
|
|
11
|
+
import './types-CKmyZ9TP.js';
|
|
12
|
+
import './worktree-fanout-BJy24LYe.js';
|
|
13
|
+
import './completion-gate-tzwyyD-E.js';
|
|
14
|
+
import './local-harness-ZLMkKdZc.js';
|
|
15
15
|
import 'node:child_process';
|
package/dist/loop-runner-bin.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseLoopRunnerArgv,
|
|
4
4
|
runLoopRunnerCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KYPVUEJ4.js";
|
|
6
6
|
import "./chunk-SGKPNBXE.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-7HH22XN4.js";
|
|
8
|
+
import "./chunk-QDSOD7RC.js";
|
|
9
|
+
import "./chunk-FRXDOBFP.js";
|
|
10
10
|
import "./chunk-DPEUKJRO.js";
|
|
11
11
|
import "./chunk-ISTDY47H.js";
|
|
12
12
|
import "./chunk-WIPGQ4GT.js";
|
|
13
13
|
import "./chunk-VSWBYWFK.js";
|
|
14
14
|
import "./chunk-3MDZX7YU.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-M22PL4GH.js";
|
|
16
|
+
import "./chunk-EP6RVHMX.js";
|
|
17
17
|
import "./chunk-YEJR7IXO.js";
|
|
18
18
|
import "./chunk-DGUM43GV.js";
|
|
19
19
|
export {
|
package/dist/loops.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ChatClient, RunRecord, HarnessType, AgentProfile, AnalystFinding, AnalystRunInputs, ToolSpan, StreamingDetector, DetectorSignal, buildTrajectory } from '@tangle-network/agent-eval';
|
|
1
|
+
import { ChatClient, RunRecord, HarnessType, AgentProfile, MaximumCharge, AnalystFinding, AnalystRunInputs, ToolSpan, StreamingDetector, DetectorSignal, buildTrajectory } from '@tangle-network/agent-eval';
|
|
2
2
|
export { AnalystFinding, DefaultVerdict, computeFindingId, makeFinding } from '@tangle-network/agent-eval';
|
|
3
3
|
import { SandboxEvent, SandboxInstance, CreateSandboxOptions, PromptOptions, TaskOptions } from '@tangle-network/sandbox';
|
|
4
4
|
export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
|
|
5
|
-
import { a as ResultBlobStore, f as SpawnJournal, N as NodeId, j as SpawnEvent, E as ExecutorFactory, A as Agent, B as Budget, S as Scope, h as Settled, b as SupervisedResult, i as Spend, U as UsageEvent, e as ExecutorRegistry, k as Supervisor } from './types-
|
|
6
|
-
export { d as AgentSpec, c as Executor, l as ExecutorContext, m as ExecutorResult, R as Runtime, n as SupervisorOpts, T as TreeView, W as WidenGate } from './types-
|
|
7
|
-
import { M as MakeWorkerAgent, A as AnalystRegistry, o as CoordinationTools, n as CoordinationEvent, as as QuestionPolicy, E as ExecutorConfig } from './coordination-
|
|
8
|
-
export { bh as BusEvent, bi as BusRecord, bj as BusStats, bk as EventBus, bl as ProviderSeam, bm as PublishOptions, bn as cliWorktreeExecutor, bo as createEventBus, bp as createExecutor, bq as createExecutorRegistry } from './coordination-
|
|
9
|
-
import { R as RuntimeHooks, I as Iteration, S as SandboxClient, D as Driver, d as AgentRunSpec, c 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, k as AgentExecutionBackend, b as AgentTaskStatus, B as BackendErrorDetail, $ as SelectionReceipt } from './types-
|
|
10
|
-
export { a0 as LoopDecisionPayload, a1 as LoopEndedPayload, a2 as LoopIterationDispatchPayload, a3 as LoopIterationEndedPayload, a4 as LoopIterationStartedPayload, a5 as LoopPlanDescription, a6 as LoopPlanPayload, f as LoopSandboxPlacement, a7 as LoopStartedPayload, a8 as LoopTeardownFailedPayload, g as LoopTraceEmitter, e as LoopTraceEvent, a9 as MountManifestEntry, aa as RunProvenance, ab as ValidationCtx } from './types-
|
|
5
|
+
import { a as ResultBlobStore, f as SpawnJournal, N as NodeId, j as SpawnEvent, E as ExecutorFactory, A as Agent, B as Budget, S as Scope, h as Settled, b as SupervisedResult, i as Spend, U as UsageEvent, e as ExecutorRegistry, k as Supervisor } from './types-CogNCaw7.js';
|
|
6
|
+
export { d as AgentSpec, c as Executor, l as ExecutorContext, m as ExecutorResult, R as Runtime, n as SupervisorOpts, T as TreeView, W as WidenGate } from './types-CogNCaw7.js';
|
|
7
|
+
import { M as MakeWorkerAgent, A as AnalystRegistry, o as CoordinationTools, n as CoordinationEvent, as as QuestionPolicy, E as ExecutorConfig } from './coordination-o0TzS7Ms.js';
|
|
8
|
+
export { bh as BusEvent, bi as BusRecord, bj as BusStats, bk as EventBus, bl as ProviderSeam, bm as PublishOptions, bn as cliWorktreeExecutor, bo as createEventBus, bp as createExecutor, bq as createExecutorRegistry } from './coordination-o0TzS7Ms.js';
|
|
9
|
+
import { R as RuntimeHooks, I as Iteration, S as SandboxClient, D as Driver, d as AgentRunSpec, c 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, k as AgentExecutionBackend, b as AgentTaskStatus, B as BackendErrorDetail, $ as SelectionReceipt } from './types-CKmyZ9TP.js';
|
|
10
|
+
export { a0 as LoopDecisionPayload, a1 as LoopEndedPayload, a2 as LoopIterationDispatchPayload, a3 as LoopIterationEndedPayload, a4 as LoopIterationStartedPayload, a5 as LoopPlanDescription, a6 as LoopPlanPayload, f as LoopSandboxPlacement, a7 as LoopStartedPayload, a8 as LoopTeardownFailedPayload, g as LoopTraceEmitter, e as LoopTraceEvent, a9 as MountManifestEntry, aa as RunProvenance, ab as ValidationCtx } from './types-CKmyZ9TP.js';
|
|
11
11
|
import { RunProfileMatrixResult, Scenario, ProfileDispatchFn, JudgeConfig, RunProfileMatrixOptions, DispatchFn } from '@tangle-network/agent-eval/campaign';
|
|
12
12
|
export { AgentEnvironmentProviderRef, AgentEnvironmentProviderRegistry, ProviderAsSandboxClientOptions, ProviderExecutorOptions, SandboxClientProviderOptions, createAgentEnvironmentProviderRegistry, providerAsExecutor, providerAsSandboxClient, resolveAgentEnvironmentProvider, sandboxClientAsProvider } from './environment-provider.js';
|
|
13
|
-
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-
|
|
14
|
-
export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanout, w as FanoutSynthesis, x as FlatWidenGate, y as LoopUntil, z as LoopUntilState, B as Panel, G as PanelJudge, H as PanelVerdict, I as PatchDeliverableOptions, J as PersonaContext, K as PersonaExecutors, M as Pipeline, N as RenderCorpusToInstructions, Q as RunPersonified, U as ShapeBudget, X as ShapeContext, Y as TrajectoryNode, Z as TrajectoryReportFn, _ as Verify, $ as Widen, a0 as WidenDecision, a1 as WidenLineage, a2 as WorktreeCliExecutorOptions, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a3 as createWorktreeCliExecutor, a4 as patchDelivered, a5 as worktreeFanout } from './worktree-fanout-
|
|
13
|
+
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-BJy24LYe.js';
|
|
14
|
+
export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanout, w as FanoutSynthesis, x as FlatWidenGate, y as LoopUntil, z as LoopUntilState, B as Panel, G as PanelJudge, H as PanelVerdict, I as PatchDeliverableOptions, J as PersonaContext, K as PersonaExecutors, M as Pipeline, N as RenderCorpusToInstructions, Q as RunPersonified, U as ShapeBudget, X as ShapeContext, Y as TrajectoryNode, Z as TrajectoryReportFn, _ as Verify, $ as Widen, a0 as WidenDecision, a1 as WidenLineage, a2 as WorktreeCliExecutorOptions, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a3 as createWorktreeCliExecutor, a4 as patchDelivered, a5 as worktreeFanout } from './worktree-fanout-BJy24LYe.js';
|
|
15
15
|
import { b as AnalystRegistryLike } from './types-BC3bZpH0.js';
|
|
16
16
|
import { AgentProfile as AgentProfile$1 } from '@tangle-network/agent-interface';
|
|
17
|
-
import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-
|
|
18
|
-
export { j as RouterChatResult, k as RouterChatToolsResult, l as RouterToolCall, m as RouterToolLoopResult, n as ToolLoopCompaction, b as ToolSpec, r as routerBrain, o as routerChatWithTools, p as routerChatWithUsage, q as routerToolLoop } from './sanitize-
|
|
19
|
-
import { D as DeliverableSpec } from './completion-gate-
|
|
20
|
-
export { g as WorktreeCommandResult, h as gateOnDeliverable } from './completion-gate-
|
|
21
|
-
import { S as SupervisorProfile } from './supervise-
|
|
22
|
-
export { D as DriveHarness, a as SuperviseOptions, b as SupervisorAgentDeps, s as supervise, c as supervisorAgent, w as workerFromBackend } from './supervise-
|
|
17
|
+
import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-Dcbjp0tU.js';
|
|
18
|
+
export { j as RouterChatResult, k as RouterChatToolsResult, l as RouterToolCall, m as RouterToolLoopResult, n as ToolLoopCompaction, b as ToolSpec, r as routerBrain, o as routerChatWithTools, p as routerChatWithUsage, q as routerToolLoop } from './sanitize-Dcbjp0tU.js';
|
|
19
|
+
import { D as DeliverableSpec } from './completion-gate-tzwyyD-E.js';
|
|
20
|
+
export { g as WorktreeCommandResult, h as gateOnDeliverable } from './completion-gate-tzwyyD-E.js';
|
|
21
|
+
import { S as SupervisorProfile } from './supervise-CRwaJIkd.js';
|
|
22
|
+
export { D as DriveHarness, a as SuperviseOptions, b as SupervisorAgentDeps, s as supervise, c as supervisorAgent, w as workerFromBackend } from './supervise-CRwaJIkd.js';
|
|
23
23
|
import { stuckLoopView, toolWasteView } from '@tangle-network/agent-eval/pipelines';
|
|
24
24
|
export { AgentEnvironment, AgentEnvironmentCapabilities, AgentEnvironmentEvent, AgentEnvironmentProvider, AgentEnvironmentQuery, AgentEnvironmentStatus, AgentEnvironmentSummary, AgentProfileRef, AgentSession, AgentSessionRef, AgentSessionStatus, AgentTurnInput, AgentTurnResult, CheckpointRef, CheckpointRequest, CreateAgentEnvironmentInput, ExecRequest, ExecResult, ForkRequest, PlacementInfo, ResourceRequest, WorkspaceRequest } from '@tangle-network/agent-interface/environment-provider';
|
|
25
25
|
import './substrate-DO2GHNg2.js';
|
|
26
|
-
import './local-harness-
|
|
26
|
+
import './local-harness-ZLMkKdZc.js';
|
|
27
27
|
import 'node:child_process';
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -641,7 +641,7 @@ interface LeaderboardSpec<TCase, TArtifact = string> {
|
|
|
641
641
|
* an out-of-family model expands to the `default` sentinel): the RunRecord
|
|
642
642
|
* must pin a real snapshot-bearing model id, which only the dispatch —
|
|
643
643
|
* reading the backend's usage/terminal events — can know. When this returns
|
|
644
|
-
* a value the default dispatch
|
|
644
|
+
* a value the default dispatch records it on the paid-call receipt;
|
|
645
645
|
* in-family cells (concrete declared model) never need it.
|
|
646
646
|
*/
|
|
647
647
|
resolveModel?: (events: readonly SandboxEvent[]) => string | undefined;
|
|
@@ -657,6 +657,9 @@ interface LeaderboardSpec<TCase, TArtifact = string> {
|
|
|
657
657
|
shots?: number;
|
|
658
658
|
/** Replicates per cell (`--reps`). Default 1. */
|
|
659
659
|
reps?: number;
|
|
660
|
+
/** Provider- or executor-enforced maximum for one cell dispatch. Required
|
|
661
|
+
* before execution when `matrix.costCeiling` is configured. */
|
|
662
|
+
maximumCharge?: MaximumCharge | ((profile: AgentProfile, scenario: LeaderboardScenario<TCase>) => MaximumCharge | undefined);
|
|
660
663
|
/** Passthrough overrides spread onto the final `runProfileMatrix` call
|
|
661
664
|
* (e.g. `maxConcurrency`, `costCeiling`, `integrity`, `storage`) — spread
|
|
662
665
|
* LAST, so anything the facade wired can be overridden. */
|
|
@@ -1033,6 +1036,11 @@ interface LoopDispatchOptions<Task, Output, Decision, TScenario extends Scenario
|
|
|
1033
1036
|
forwardTrace?: boolean;
|
|
1034
1037
|
/** Cost-meter source label for the loop's spend. Default `'loop'`. */
|
|
1035
1038
|
costSource?: string;
|
|
1039
|
+
/** Provider- or executor-enforced maximum for this whole cell dispatch.
|
|
1040
|
+
* Required by agent-eval before execution when the campaign is cost-capped. */
|
|
1041
|
+
maximumCharge?: MaximumCharge | ((scenario: TScenario, profile: AgentProfile) => MaximumCharge | undefined);
|
|
1042
|
+
/** Resolve the model actually served from the completed loop. */
|
|
1043
|
+
resolveCostModel?: (result: LoopResult<Task, Output, Decision>, scenario: TScenario, profile: AgentProfile) => string | undefined;
|
|
1036
1044
|
}
|
|
1037
1045
|
/** Options for adapting plain agent-eval campaign scenarios into runtime `runLoop` cells. */
|
|
1038
1046
|
interface LoopCampaignDispatchOptions<Task, Output, Decision, TScenario extends Scenario, TArtifact> {
|
|
@@ -1046,6 +1054,10 @@ interface LoopCampaignDispatchOptions<Task, Output, Decision, TScenario extends
|
|
|
1046
1054
|
forwardTrace?: boolean;
|
|
1047
1055
|
/** Cost-meter source label for the loop's spend. Default `'loop'`. */
|
|
1048
1056
|
costSource?: string;
|
|
1057
|
+
/** Provider- or executor-enforced maximum for this whole cell dispatch. */
|
|
1058
|
+
maximumCharge?: MaximumCharge | ((scenario: TScenario) => MaximumCharge | undefined);
|
|
1059
|
+
/** Resolve the model actually served from the completed loop. */
|
|
1060
|
+
resolveCostModel?: (result: LoopResult<Task, Output, Decision>, scenario: TScenario) => string | undefined;
|
|
1049
1061
|
}
|
|
1050
1062
|
/**
|
|
1051
1063
|
* Adapter for plain `runCampaign` scenarios. This is the runtime-side pair for
|
|
@@ -2109,10 +2121,11 @@ declare function extractLlmCallEvent(event: SandboxEvent, agentRunName: string):
|
|
|
2109
2121
|
* `openSandboxRun` cell. Folds `extractLlmCallEvent` over the stream (which reads usage off EVERY backend
|
|
2110
2122
|
* event shape), so a `runProfileMatrix` dispatch can report it to `ctx.cost`:
|
|
2111
2123
|
*
|
|
2112
|
-
*
|
|
2113
|
-
*
|
|
2114
|
-
*
|
|
2115
|
-
*
|
|
2124
|
+
* receipt: (turn) => {
|
|
2125
|
+
* const u = sumSandboxUsage(turn.events)
|
|
2126
|
+
* return { model, inputTokens: u.input, outputTokens: u.output,
|
|
2127
|
+
* ...(u.costUsd > 0 ? { actualCostUsd: u.costUsd } : {}) }
|
|
2128
|
+
* }
|
|
2116
2129
|
*
|
|
2117
2130
|
* Without this a cell reads `{tokens:0, cost:0}` and the backend-integrity guard correctly aborts the
|
|
2118
2131
|
* matrix as a stub. `agentRunName` is the fallback model label for cost-only events (default `'agent'`).
|
|
@@ -4025,8 +4038,8 @@ interface TrajectoryAnalysis {
|
|
|
4025
4038
|
/** Structured run summary (tool-call count, step order). Steps carry a single timestamp, so per-span
|
|
4026
4039
|
* duration is 0; loop/waste detection keys on call PATTERNS + cross-span windows, not durations. */
|
|
4027
4040
|
readonly trajectory: Awaited<ReturnType<typeof buildTrajectory>>;
|
|
4028
|
-
/** Full-run repeated-call view (total occurrences + window) —
|
|
4029
|
-
*
|
|
4041
|
+
/** Full-run repeated-call view (total occurrences + window) — allows one intervening call so it
|
|
4042
|
+
* catches a loop the online consecutive detector interleaves past. */
|
|
4030
4043
|
readonly stuckLoop: Awaited<ReturnType<typeof stuckLoopView>>;
|
|
4031
4044
|
/** Wasted-vs-total tool-call ratio for the run. */
|
|
4032
4045
|
readonly toolWaste: Awaited<ReturnType<typeof toolWasteView>>;
|
package/dist/loops.js
CHANGED
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
watchTrace,
|
|
103
103
|
widen,
|
|
104
104
|
worktreeFanout
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-7HH22XN4.js";
|
|
106
106
|
import {
|
|
107
107
|
acquireSandbox,
|
|
108
108
|
asAuthoredProfile,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
supervisorAgent,
|
|
141
141
|
supervisorInstructions,
|
|
142
142
|
workerFromBackend
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-FRXDOBFP.js";
|
|
144
144
|
import "./chunk-DPEUKJRO.js";
|
|
145
145
|
import {
|
|
146
146
|
assertModelAllowed
|
|
@@ -164,8 +164,8 @@ import {
|
|
|
164
164
|
mapSandboxEvent,
|
|
165
165
|
mapSandboxToolEvent,
|
|
166
166
|
sumSandboxUsage
|
|
167
|
-
} from "./chunk-
|
|
168
|
-
import "./chunk-
|
|
167
|
+
} from "./chunk-M22PL4GH.js";
|
|
168
|
+
import "./chunk-EP6RVHMX.js";
|
|
169
169
|
import "./chunk-YEJR7IXO.js";
|
|
170
170
|
import "./chunk-DGUM43GV.js";
|
|
171
171
|
export {
|
package/dist/mcp/bin.js
CHANGED
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
DelegationTaskQueue,
|
|
10
10
|
FileDelegationStore,
|
|
11
11
|
createMcpServer
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-FRXDOBFP.js";
|
|
13
13
|
import "../chunk-DPEUKJRO.js";
|
|
14
14
|
import "../chunk-ISTDY47H.js";
|
|
15
15
|
import "../chunk-WIPGQ4GT.js";
|
|
16
16
|
import "../chunk-VSWBYWFK.js";
|
|
17
17
|
import "../chunk-3MDZX7YU.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-M22PL4GH.js";
|
|
19
|
+
import "../chunk-EP6RVHMX.js";
|
|
20
20
|
import "../chunk-YEJR7IXO.js";
|
|
21
21
|
import "../chunk-DGUM43GV.js";
|
|
22
22
|
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { S as SandboxClient, f as LoopSandboxPlacement } from '../types-
|
|
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, G as DelegateResearchConfig, H as DelegateResearchResult, I as DelegateResult, J as DelegateRunCtx, K as DelegateUiAuditConfig, L as DelegateUiAuditRoute, N as DelegationError, O as DelegationFeedbackSnapshot, P as DelegationHistoryEntry, Q as DelegationPersistenceError, R as DelegationProfile, S as DelegationProgress, T as DelegationRecord, V as DelegationResultPayload, W as DelegationResumeContext, X as DelegationResumeDriver, Y as DelegationResumeTick, Z as DelegationRunContext, _ as DelegationStateCorruptError, $ as DelegationStatus, a0 as DelegationStore, a1 as DelegationTaskQueueOptions, a2 as DelegationTraceCaps, a3 as DelegationTraceCollector, a4 as DelegationTraceSpan, a5 as DetachedSessionDelegateOptions, a6 as DetachedSessionRefParts, a7 as DetachedTurn, a8 as DetachedTurnResumeDriverOptions, a9 as DetachedWinnerSelection, aa as DriveTurnCapableBox, ab as DriveTurnTick, ac as FeedbackEvent, ad as FeedbackRating, ae as FeedbackRefersTo, af as FileDelegationStore, ag as FileDelegationStoreOptions, ah as FleetWorkspaceExecutorOptions, ai as InMemoryDelegationStore, aj as InMemoryFeedbackStore, ak as JsonRpcMessage, al as JsonRpcResponse, M as MakeWorkerAgent, am as McpServer, an as McpServerOptions, ao as McpToolDescriptor, ap as McpTransport, aq as Question, ar as QuestionDecision, as as QuestionPolicy, at as QuestionRecord, au as ResearchOutputShape, av as ResearchSource, aw as RunDetachedTurnOptions, ax as SettleDetachedCoderTurnOptions, ay as SettledWorker, az as SiblingSandboxExecutorOptions, aA as SubmitInput, aB as SubmitOutput, aC as TraceContext, aD as UiAuditorDelegationOutput, aE as buildDelegationTraceSpans, aF as capDelegationTrace, aG as coderTaskFromArgs, aH as composeLoopTraceEmitters, aI as createCoordinationTools, aJ as createDelegateHandler, aK as createDelegationTraceCollector, aL as createDetachedTurnResumeDriver, aM as createFleetWorkspaceExecutor, aN as createInProcessTransport, aO as createMcpServer, aP as createPropagatingTraceEmitter, aQ as createSiblingSandboxExecutor, aR as detachedSessionDelegate, aS as detachedTurnEvents, aT as eventToSnapshot, aU as formatDetachedSessionRef, aV as hashIdempotencyInput, aW as parseDetachedSessionRef, aX as readTraceContextFromEnv, aY as runDetachedTurn, aZ as settleDetachedCoderTurn, a_ as traceContextToEnv, a$ as validateDelegateArgs } from '../coordination-
|
|
4
|
-
import { L as LocalHarness, r as runLocalHarness } from '../local-harness-
|
|
5
|
-
export {
|
|
6
|
-
import { G as GitRunner } from '../completion-gate-
|
|
7
|
-
export { C as CreateWorktreeOptions, b as DiffOptions, c as DiffResult, R as RemoveWorktreeOptions, d as WorktreeHandle, e as captureWorktreeDiff, f as createWorktree, r as removeWorktree } from '../completion-gate-
|
|
1
|
+
import { S as SandboxClient, f as LoopSandboxPlacement } from '../types-CKmyZ9TP.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-o0TzS7Ms.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, G as DelegateResearchConfig, H as DelegateResearchResult, I as DelegateResult, J as DelegateRunCtx, K as DelegateUiAuditConfig, L as DelegateUiAuditRoute, N as DelegationError, O as DelegationFeedbackSnapshot, P as DelegationHistoryEntry, Q as DelegationPersistenceError, R as DelegationProfile, S as DelegationProgress, T as DelegationRecord, V as DelegationResultPayload, W as DelegationResumeContext, X as DelegationResumeDriver, Y as DelegationResumeTick, Z as DelegationRunContext, _ as DelegationStateCorruptError, $ as DelegationStatus, a0 as DelegationStore, a1 as DelegationTaskQueueOptions, a2 as DelegationTraceCaps, a3 as DelegationTraceCollector, a4 as DelegationTraceSpan, a5 as DetachedSessionDelegateOptions, a6 as DetachedSessionRefParts, a7 as DetachedTurn, a8 as DetachedTurnResumeDriverOptions, a9 as DetachedWinnerSelection, aa as DriveTurnCapableBox, ab as DriveTurnTick, ac as FeedbackEvent, ad as FeedbackRating, ae as FeedbackRefersTo, af as FileDelegationStore, ag as FileDelegationStoreOptions, ah as FleetWorkspaceExecutorOptions, ai as InMemoryDelegationStore, aj as InMemoryFeedbackStore, ak as JsonRpcMessage, al as JsonRpcResponse, M as MakeWorkerAgent, am as McpServer, an as McpServerOptions, ao as McpToolDescriptor, ap as McpTransport, aq as Question, ar as QuestionDecision, as as QuestionPolicy, at as QuestionRecord, au as ResearchOutputShape, av as ResearchSource, aw as RunDetachedTurnOptions, ax as SettleDetachedCoderTurnOptions, ay as SettledWorker, az as SiblingSandboxExecutorOptions, aA as SubmitInput, aB as SubmitOutput, aC as TraceContext, aD as UiAuditorDelegationOutput, aE as buildDelegationTraceSpans, aF as capDelegationTrace, aG as coderTaskFromArgs, aH as composeLoopTraceEmitters, aI as createCoordinationTools, aJ as createDelegateHandler, aK as createDelegationTraceCollector, aL as createDetachedTurnResumeDriver, aM as createFleetWorkspaceExecutor, aN as createInProcessTransport, aO as createMcpServer, aP as createPropagatingTraceEmitter, aQ as createSiblingSandboxExecutor, aR as detachedSessionDelegate, aS as detachedTurnEvents, aT as eventToSnapshot, aU as formatDetachedSessionRef, aV as hashIdempotencyInput, aW as parseDetachedSessionRef, aX as readTraceContextFromEnv, aY as runDetachedTurn, aZ as settleDetachedCoderTurn, a_ as traceContextToEnv, a$ as validateDelegateArgs } from '../coordination-o0TzS7Ms.js';
|
|
4
|
+
import { L as LocalHarness, r as runLocalHarness } from '../local-harness-ZLMkKdZc.js';
|
|
5
|
+
export { a as CodexExecutionEvidence, b as CodexExecutionPolicy, C as CodexTokenUsage, c as LocalHarnessResult, R as RunLocalHarnessOptions, p as parseCodexTokenUsage } from '../local-harness-ZLMkKdZc.js';
|
|
6
|
+
import { G as GitRunner } from '../completion-gate-tzwyyD-E.js';
|
|
7
|
+
export { C as CreateWorktreeOptions, b as DiffOptions, c as DiffResult, R as RemoveWorktreeOptions, d as WorktreeHandle, e as captureWorktreeDiff, f as createWorktree, r as removeWorktree } from '../completion-gate-tzwyyD-E.js';
|
|
8
8
|
export { C as CreateKbGateOptions, F as FactCandidate, a as FactJudge, b as FactJudgeVerdict, K as KbGateResult, c as createKbGate } from '../kb-gate-CwHO0vz6.js';
|
|
9
|
-
export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-
|
|
9
|
+
export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-0wACz8f8.js';
|
|
10
10
|
import { AnalystFinding } from '@tangle-network/agent-eval';
|
|
11
11
|
import { U as UiLens } from '../substrate-DO2GHNg2.js';
|
|
12
12
|
import '@tangle-network/sandbox';
|
|
13
|
-
import '../types-
|
|
13
|
+
import '../types-CogNCaw7.js';
|
|
14
14
|
import '@tangle-network/agent-interface';
|
|
15
|
-
import '../sanitize-
|
|
15
|
+
import '../sanitize-Dcbjp0tU.js';
|
|
16
16
|
import '../environment-provider.js';
|
|
17
17
|
import '@tangle-network/agent-interface/environment-provider';
|
|
18
18
|
import 'node:child_process';
|
package/dist/mcp/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
mcpToolsForRuntimeMcp,
|
|
11
11
|
mcpToolsForRuntimeMcpSubset
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-MSUWXCHD.js";
|
|
13
13
|
import {
|
|
14
14
|
createKbGate
|
|
15
15
|
} from "../chunk-SGKPNBXE.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
assertTraceDerivedFindings,
|
|
18
18
|
runCoderChecks,
|
|
19
19
|
selectValidWinner
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-7HH22XN4.js";
|
|
21
21
|
import {
|
|
22
22
|
DELEGATE_DESCRIPTION,
|
|
23
23
|
DELEGATE_FEEDBACK_DESCRIPTION,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
validateDelegateUiAuditArgs,
|
|
68
68
|
validateDelegationHistoryArgs,
|
|
69
69
|
validateDelegationStatusArgs
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-FRXDOBFP.js";
|
|
71
71
|
import "../chunk-DPEUKJRO.js";
|
|
72
72
|
import "../chunk-ISTDY47H.js";
|
|
73
73
|
import "../chunk-WIPGQ4GT.js";
|
|
@@ -78,12 +78,12 @@ import {
|
|
|
78
78
|
throwAbort,
|
|
79
79
|
throwIfAborted
|
|
80
80
|
} from "../chunk-3MDZX7YU.js";
|
|
81
|
-
import "../chunk-
|
|
81
|
+
import "../chunk-M22PL4GH.js";
|
|
82
82
|
import {
|
|
83
83
|
CodexExecutionDiagnosticError,
|
|
84
84
|
parseCodexTokenUsage,
|
|
85
85
|
runLocalHarness
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-EP6RVHMX.js";
|
|
87
87
|
import {
|
|
88
88
|
ValidationError
|
|
89
89
|
} from "../chunk-YEJR7IXO.js";
|
|
@@ -13,7 +13,7 @@ declare const verifiedTaskOutcomeBrand: unique symbol;
|
|
|
13
13
|
interface AgentCandidateArtifactPort {
|
|
14
14
|
read(ref: AgentCandidateArtifactRef): Promise<Uint8Array>;
|
|
15
15
|
}
|
|
16
|
-
type AgentCandidateOutputPurpose = 'task-manifest' | 'task-archive' | 'task-patch' | 'task-outcome' | 'memory-after-manifest' | 'memory-after-archive' | 'grader-evidence' | 'benchmark-result' | 'model-settlement' | 'trace' | 'run-receipt' | 'failure-evidence';
|
|
16
|
+
type AgentCandidateOutputPurpose = 'candidate-workspace-manifest' | 'candidate-workspace-archive' | 'task-manifest' | 'task-archive' | 'task-patch' | 'task-outcome' | 'memory-after-manifest' | 'memory-after-archive' | 'grader-evidence' | 'benchmark-result' | 'model-settlement' | 'trace' | 'run-receipt' | 'failure-evidence';
|
|
17
17
|
/** Durable content-addressed evidence store controlled only by the evaluator. */
|
|
18
18
|
interface AgentCandidateOutputArtifactPort extends AgentCandidateArtifactPort {
|
|
19
19
|
/** Must be idempotent for identical bytes and return only a durable S3/IPFS locator. */
|
package/dist/profiles.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as UiFinding, U as UiLens } from './substrate-DO2GHNg2.js';
|
|
2
2
|
export { C as CoderTask, b as UI_FINDING_SEVERITIES, c as UI_LENSES, d as UiFindingScreenshot, e as UiFindingSeverity, f as coderTaskToPrompt } from './substrate-DO2GHNg2.js';
|
|
3
3
|
import { AgentProfile, SandboxEvent } from '@tangle-network/sandbox';
|
|
4
|
-
import { V as Validator, d as AgentRunSpec, c as OutputAdapter, D as Driver, S as SandboxClient } from './types-
|
|
4
|
+
import { V as Validator, d as AgentRunSpec, c as OutputAdapter, D as Driver, S as SandboxClient } from './types-CKmyZ9TP.js';
|
|
5
5
|
import { AgentProfile as AgentProfile$1 } from '@tangle-network/agent-interface';
|
|
6
6
|
import '@tangle-network/agent-eval';
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ControlEvalResult, KnowledgeReadinessReport, KnowledgeRequirement } from '@tangle-network/agent-eval';
|
|
2
|
-
import { A as AgentRuntimeEvent, a as RuntimeStreamEvent, b as AgentTaskStatus } from './types-
|
|
2
|
+
import { A as AgentRuntimeEvent, a as RuntimeStreamEvent, b as AgentTaskStatus } from './types-CKmyZ9TP.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* THE canonical agentic tool-loop. One inference turn → run any requested tools → fold the
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as Scope, a as ResultBlobStore, B as Budget, A as Agent, b as SupervisedResult } from './types-
|
|
2
|
-
import { M as MakeWorkerAgent, A as AnalystRegistry, E as ExecutorConfig } from './coordination-
|
|
3
|
-
import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-
|
|
4
|
-
import { D as DeliverableSpec } from './completion-gate-
|
|
1
|
+
import { S as Scope, a as ResultBlobStore, B as Budget, A as Agent, b as SupervisedResult } from './types-CogNCaw7.js';
|
|
2
|
+
import { M as MakeWorkerAgent, A as AnalystRegistry, E as ExecutorConfig } from './coordination-o0TzS7Ms.js';
|
|
3
|
+
import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-Dcbjp0tU.js';
|
|
4
|
+
import { D as DeliverableSpec } from './completion-gate-tzwyyD-E.js';
|
|
5
5
|
|
|
6
6
|
/** The supervisor's profile — the subset of an `AgentProfile` that selects + shapes its brain.
|
|
7
7
|
* `harness` is the backend-as-data discriminant; `systemPrompt` is the standing instruction. */
|
|
@@ -825,10 +825,8 @@ interface AgentRunSpec<Task> {
|
|
|
825
825
|
interface OutputAdapter<Output> {
|
|
826
826
|
parse(events: SandboxEvent[]): Output;
|
|
827
827
|
}
|
|
828
|
-
/** LLM token usage. Structurally
|
|
829
|
-
*
|
|
830
|
-
* onto `ctx.cost.observeTokens` in a `runProfileMatrix` dispatch — without
|
|
831
|
-
* which the backend-integrity guard reads the run as a stub. */
|
|
828
|
+
/** LLM token usage. Structurally maps into agent-eval's paid-call receipt so a
|
|
829
|
+
* campaign dispatch settles real usage instead of appearing as a stub. */
|
|
832
830
|
interface LoopTokenUsage {
|
|
833
831
|
input: number;
|
|
834
832
|
output: number;
|
|
@@ -989,9 +987,8 @@ interface LoopResult<Task, Output, Decision> {
|
|
|
989
987
|
durationMs: number;
|
|
990
988
|
/** Sum of every iteration's `costUsd`. */
|
|
991
989
|
costUsd: number;
|
|
992
|
-
/** Sum of every iteration's token usage.
|
|
993
|
-
*
|
|
994
|
-
* integrity guard sees real LLM activity. */
|
|
990
|
+
/** Sum of every iteration's token usage. `loopDispatch` commits it through
|
|
991
|
+
* the campaign's paid-call receipt. */
|
|
995
992
|
tokenUsage: LoopTokenUsage;
|
|
996
993
|
/** Domain-free run provenance for auditability: the mount manifest recorded
|
|
997
994
|
* during `prepareBox` and the selection receipts for how the winner was
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefaultVerdict } from '@tangle-network/agent-eval';
|
|
2
2
|
import { AgentProfile } from '@tangle-network/agent-interface';
|
|
3
3
|
import { BackendType } from '@tangle-network/sandbox';
|
|
4
|
-
import { L as LoopTokenUsage, R as RuntimeHooks } from './types-
|
|
4
|
+
import { L as LoopTokenUsage, R as RuntimeHooks } from './types-CKmyZ9TP.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AgentProfile } from '@tangle-network/agent-interface';
|
|
2
2
|
import { AnalystFinding, DefaultVerdict } from '@tangle-network/agent-eval';
|
|
3
|
-
import { d as AgentSpec, e as ExecutorRegistry, B as Budget, A as Agent, f as SpawnJournal, a as ResultBlobStore, g as RootHandle, b as SupervisedResult, N as NodeId, h as Settled, i as Spend, S as Scope, c as Executor } from './types-
|
|
4
|
-
import { R as RuntimeHooks, I as Iteration } from './types-
|
|
3
|
+
import { d as AgentSpec, e as ExecutorRegistry, B as Budget, A as Agent, f as SpawnJournal, a as ResultBlobStore, g as RootHandle, b as SupervisedResult, N as NodeId, h as Settled, i as Spend, S as Scope, c as Executor } from './types-CogNCaw7.js';
|
|
4
|
+
import { R as RuntimeHooks, I as Iteration } from './types-CKmyZ9TP.js';
|
|
5
5
|
import { BackendType } from '@tangle-network/sandbox';
|
|
6
|
-
import { W as WorktreeHarnessResult, G as GitRunner, a as WorktreeCheckRunner, D as DeliverableSpec } from './completion-gate-
|
|
7
|
-
import { L as LocalHarness, r as runLocalHarness } from './local-harness-
|
|
6
|
+
import { W as WorktreeHarnessResult, G as GitRunner, a as WorktreeCheckRunner, D as DeliverableSpec } from './completion-gate-tzwyyD-E.js';
|
|
7
|
+
import { L as LocalHarness, r as runLocalHarness } from './local-harness-ZLMkKdZc.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-runtime",
|
|
3
|
-
"version": "0.94.
|
|
3
|
+
"version": "0.94.7",
|
|
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": {
|
|
@@ -104,10 +104,11 @@
|
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@biomejs/biome": "^2.4.15",
|
|
107
|
-
"@tangle-network/agent-eval": "
|
|
107
|
+
"@tangle-network/agent-eval": "0.117.1",
|
|
108
108
|
"@tangle-network/agent-interface": "^0.25.0",
|
|
109
109
|
"@tangle-network/sandbox": "^0.9.7",
|
|
110
110
|
"@types/node": "^25.9.3",
|
|
111
|
+
"@types/tar-stream": "3.1.4",
|
|
111
112
|
"playwright": "^1.61.0",
|
|
112
113
|
"tsup": "^8.0.0",
|
|
113
114
|
"tsx": "^4.22.4",
|
|
@@ -134,7 +135,7 @@
|
|
|
134
135
|
"license": "MIT",
|
|
135
136
|
"packageManager": "pnpm@10.28.0",
|
|
136
137
|
"peerDependencies": {
|
|
137
|
-
"@tangle-network/agent-eval": ">=0.
|
|
138
|
+
"@tangle-network/agent-eval": ">=0.117.1 <1.0.0",
|
|
138
139
|
"@tangle-network/agent-interface": ">=0.25.0 <1.0.0",
|
|
139
140
|
"@tangle-network/sandbox": ">=0.8.0 <1.0.0",
|
|
140
141
|
"playwright": "^1.40.0"
|
|
@@ -149,6 +150,7 @@
|
|
|
149
150
|
},
|
|
150
151
|
"dependencies": {
|
|
151
152
|
"@tangle-network/agent-knowledge": "^1.12.1",
|
|
152
|
-
"@tangle-network/agent-profile-materialize": "0.3.2"
|
|
153
|
+
"@tangle-network/agent-profile-materialize": "0.3.2",
|
|
154
|
+
"tar-stream": "3.2.0"
|
|
153
155
|
}
|
|
154
156
|
}
|