@tangle-network/agent-runtime 0.93.2 → 0.94.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +5 -6
- package/dist/agent.js.map +1 -1
- package/dist/{agentic-generator-B8oeE2Yv.d.ts → agentic-generator-D9ZmAuiL.d.ts} +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/candidate-execution/index.d.ts +10 -3
- package/dist/candidate-execution/index.js +9 -3
- package/dist/{chunk-6K5CI33W.js → chunk-D336OZHK.js} +1232 -19
- package/dist/chunk-D336OZHK.js.map +1 -0
- package/dist/{chunk-TU73X3I6.js → chunk-HPCJBBLS.js} +2 -2
- package/dist/chunk-ISTDY47H.js +849 -0
- package/dist/chunk-ISTDY47H.js.map +1 -0
- package/dist/{chunk-RTVVH2KL.js → chunk-JEP2WM24.js} +2 -2
- package/dist/{chunk-Z7K5BPKZ.js → chunk-K7OPNHU4.js} +2 -2
- package/dist/{chunk-OX3QRJOA.js → chunk-KHLE3C5G.js} +281 -251
- package/dist/chunk-KHLE3C5G.js.map +1 -0
- package/dist/{chunk-XDSWWUKE.js → chunk-MZH4HORF.js} +6 -29
- package/dist/chunk-MZH4HORF.js.map +1 -0
- package/dist/chunk-PJNGPWTA.js +634 -0
- package/dist/chunk-PJNGPWTA.js.map +1 -0
- package/dist/{chunk-X5KJKS33.js → chunk-RTSZNYXM.js} +3 -3
- package/dist/{chunk-WGR6QJ5H.js → chunk-SJHFJOCY.js} +8 -161
- package/dist/chunk-SJHFJOCY.js.map +1 -0
- package/dist/{chunk-2BQMAZAB.js → chunk-URMJTSXB.js} +1378 -28
- package/dist/chunk-URMJTSXB.js.map +1 -0
- package/dist/{chunk-3D2RHC4K.js → chunk-WIPGQ4GT.js} +1 -1
- package/dist/{chunk-3D2RHC4K.js.map → chunk-WIPGQ4GT.js.map} +1 -1
- package/dist/{chunk-R5GWDTM3.js → chunk-ZEYAT33L.js} +2 -2
- package/dist/{completion-gate-BLaiN0-X.d.ts → completion-gate-BAj3dXeW.d.ts} +14 -2
- package/dist/{coordination-DxJ83oZA.d.ts → coordination-B3ZuApR_.d.ts} +7 -5
- package/dist/environment-provider.d.ts +2 -2
- package/dist/{improve-DDhQaaJT.d.ts → improve-r8SvIxYv.d.ts} +13 -16
- package/dist/index.d.ts +39 -110
- package/dist/index.js +92 -36
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +24 -7
- package/dist/intelligence.js +114 -20
- package/dist/intelligence.js.map +1 -1
- package/dist/knowledge.d.ts +7 -7
- package/dist/knowledge.js +5 -5
- package/dist/lifecycle.d.ts +3 -3
- package/dist/lifecycle.js +2 -2
- package/dist/{local-harness-dcD5WTTr.d.ts → local-harness-B7bNuNJw.d.ts} +49 -1
- package/dist/{loop-runner-bin-kKUNGLyV.d.ts → loop-runner-bin-D4bMIxmB.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +6 -6
- package/dist/loop-runner-bin.js +6 -7
- package/dist/loops.d.ts +457 -18
- package/dist/loops.js +39 -41
- package/dist/mcp/bin.js +5 -5
- package/dist/mcp/index.d.ts +10 -10
- package/dist/mcp/index.js +9 -8
- package/dist/{mcp-serve-verifier-Bg4C3p5S.d.ts → mcp-serve-verifier-BuXjaZDE.d.ts} +1 -1
- package/dist/{openai-tools-E3woykz9.d.ts → openai-tools-D0ZSRCC6.d.ts} +1 -1
- package/dist/{prepare-DiVGKcwS.d.ts → prepare-BKxAiUcH.d.ts} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{sanitize-C9go6tXj.d.ts → sanitize-C2jicjNf.d.ts} +1 -1
- package/dist/{supervise-T2pazU3G.d.ts → supervise-DTNcLDl2.d.ts} +4 -4
- package/dist/{types-DAdIm4AC.d.ts → types-Bb-CqxJH.d.ts} +5 -2
- package/dist/{types-B00NtbCs.d.ts → types-DWA64rbJ.d.ts} +1 -1
- package/dist/{worktree-fanout-BUb2Ag02.d.ts → worktree-fanout-IMKqdV_E.d.ts} +244 -244
- package/package.json +4 -4
- package/skills/build-with-agent-runtime/SKILL.md +1 -1
- package/dist/chunk-2BQMAZAB.js.map +0 -1
- package/dist/chunk-6K5CI33W.js.map +0 -1
- package/dist/chunk-FDJ7AHXG.js +0 -1229
- package/dist/chunk-FDJ7AHXG.js.map +0 -1
- package/dist/chunk-J2K6WIG6.js +0 -2172
- package/dist/chunk-J2K6WIG6.js.map +0 -1
- package/dist/chunk-OX3QRJOA.js.map +0 -1
- package/dist/chunk-PX6SXX3M.js +0 -146
- package/dist/chunk-PX6SXX3M.js.map +0 -1
- package/dist/chunk-WGR6QJ5H.js.map +0 -1
- package/dist/chunk-XDSWWUKE.js.map +0 -1
- package/dist/structural-rollout-DHGDbhvR.d.ts +0 -446
- /package/dist/{chunk-TU73X3I6.js.map → chunk-HPCJBBLS.js.map} +0 -0
- /package/dist/{chunk-RTVVH2KL.js.map → chunk-JEP2WM24.js.map} +0 -0
- /package/dist/{chunk-Z7K5BPKZ.js.map → chunk-K7OPNHU4.js.map} +0 -0
- /package/dist/{chunk-X5KJKS33.js.map → chunk-RTSZNYXM.js.map} +0 -0
- /package/dist/{chunk-R5GWDTM3.js.map → chunk-ZEYAT33L.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-B3ZuApR_.js';
|
|
3
|
+
import { a as SuperviseOptions, S as SupervisorProfile } from './supervise-DTNcLDl2.js';
|
|
4
|
+
import { B as Budget, b as SupervisedResult } from './types-Bb-CqxJH.js';
|
|
5
|
+
import { D as DeliverableSpec } from './completion-gate-BAj3dXeW.js';
|
|
6
6
|
import '@tangle-network/agent-interface';
|
|
7
7
|
import './substrate-DO2GHNg2.js';
|
|
8
|
-
import './types-
|
|
8
|
+
import './types-DWA64rbJ.js';
|
|
9
9
|
import '@tangle-network/agent-eval';
|
|
10
10
|
import '@tangle-network/sandbox';
|
|
11
|
-
import './sanitize-
|
|
12
|
-
import './local-harness-
|
|
11
|
+
import './sanitize-C2jicjNf.js';
|
|
12
|
+
import './local-harness-B7bNuNJw.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-HPCJBBLS.js";
|
|
10
10
|
import "./chunk-5QOB7H74.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-URMJTSXB.js";
|
|
12
12
|
import "./chunk-DPEUKJRO.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-ISTDY47H.js";
|
|
14
|
+
import "./chunk-WIPGQ4GT.js";
|
|
15
15
|
import "./chunk-VSWBYWFK.js";
|
|
16
16
|
import "./chunk-3MDZX7YU.js";
|
|
17
17
|
import "./chunk-FVJ7M3DA.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-PJNGPWTA.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-BuXjaZDE.js';
|
|
6
|
+
import { L as LocalHarness } from './local-harness-B7bNuNJw.js';
|
|
7
|
+
import './agentic-generator-D9ZmAuiL.js';
|
|
8
8
|
import '@tangle-network/agent-eval/campaign';
|
|
9
9
|
import 'node:child_process';
|
|
10
10
|
|
package/dist/lifecycle.js
CHANGED
|
@@ -42,6 +42,9 @@ interface RunLocalHarnessOptions {
|
|
|
42
42
|
/** Allow autonomous Claude edits without an interactive permission prompt.
|
|
43
43
|
* Use only when `cwd` is an isolated candidate worktree. */
|
|
44
44
|
dangerouslySkipPermissions?: boolean;
|
|
45
|
+
/** Isolate Codex from ambient configuration/instructions and require JSONL token usage.
|
|
46
|
+
* The invocation should come from `harnessInvocation(..., { codexReproducible: true })`. */
|
|
47
|
+
codexReproducible?: boolean;
|
|
45
48
|
/** Wall-clock kill deadline (ms). Default 5 min. Subprocess SIGTERMed on expiry. */
|
|
46
49
|
timeoutMs?: number;
|
|
47
50
|
/** Caller cancellation. SIGTERM is sent on abort. */
|
|
@@ -58,6 +61,45 @@ interface RunLocalHarnessOptions {
|
|
|
58
61
|
stdio: 'pipe';
|
|
59
62
|
}) => ChildProcess;
|
|
60
63
|
}
|
|
64
|
+
/** Exact aggregate usage emitted by Codex's terminal `turn.completed` JSONL event. */
|
|
65
|
+
interface CodexTokenUsage {
|
|
66
|
+
inputTokens: number;
|
|
67
|
+
cachedInputTokens: number;
|
|
68
|
+
outputTokens: number;
|
|
69
|
+
reasoningOutputTokens: number;
|
|
70
|
+
}
|
|
71
|
+
/** Isolation settings asserted before a reproducible Codex run is allowed to start. */
|
|
72
|
+
interface CodexExecutionPolicy {
|
|
73
|
+
sessionPersistence: 'ephemeral';
|
|
74
|
+
userConfig: false;
|
|
75
|
+
rules: false;
|
|
76
|
+
projectInstructions: false;
|
|
77
|
+
skillInstructions: false;
|
|
78
|
+
appInstructions: false;
|
|
79
|
+
toolSuggestions: false;
|
|
80
|
+
multiAgentInstructions: false;
|
|
81
|
+
sandbox: 'workspace-write';
|
|
82
|
+
permissionProfile: 'agent_runtime_reproducible';
|
|
83
|
+
approvalPolicy: 'never';
|
|
84
|
+
shellNetwork: false;
|
|
85
|
+
webSearch: false;
|
|
86
|
+
serviceTier: 'default';
|
|
87
|
+
shellEnvironment: 'core-filtered';
|
|
88
|
+
loginShell: false;
|
|
89
|
+
credentialsReadable: false;
|
|
90
|
+
parentRepoRead: false;
|
|
91
|
+
gitMetadata: false;
|
|
92
|
+
temporaryDirectory: 'workspace-private';
|
|
93
|
+
containerSockets: false;
|
|
94
|
+
}
|
|
95
|
+
/** Zero-model-call evidence for the exact Codex process about to run. */
|
|
96
|
+
interface CodexExecutionEvidence {
|
|
97
|
+
cliVersion: string;
|
|
98
|
+
effectivePromptSha256: string;
|
|
99
|
+
nonPromptArgsSha256: string;
|
|
100
|
+
controlledConfigSha256: string;
|
|
101
|
+
policy: CodexExecutionPolicy;
|
|
102
|
+
}
|
|
61
103
|
/** @experimental */
|
|
62
104
|
interface LocalHarnessResult {
|
|
63
105
|
/** OS exit code. `null` when killed before exit. */
|
|
@@ -72,6 +114,10 @@ interface LocalHarnessResult {
|
|
|
72
114
|
durationMs: number;
|
|
73
115
|
/** Set when timeoutMs elapsed before exit. */
|
|
74
116
|
timedOut: boolean;
|
|
117
|
+
/** Present for a reproducible Codex run; parsed from the real terminal JSONL event. */
|
|
118
|
+
usage?: CodexTokenUsage;
|
|
119
|
+
/** Present for reproducible Codex runs; generated and checked before model execution. */
|
|
120
|
+
evidence?: CodexExecutionEvidence;
|
|
75
121
|
}
|
|
76
122
|
/**
|
|
77
123
|
* Spawn a local coding harness CLI as a subprocess + collect its output.
|
|
@@ -93,5 +139,7 @@ interface LocalHarnessResult {
|
|
|
93
139
|
* @experimental
|
|
94
140
|
*/
|
|
95
141
|
declare function runLocalHarness(options: RunLocalHarnessOptions): Promise<LocalHarnessResult>;
|
|
142
|
+
/** Parse and validate the one terminal usage event emitted by `codex exec --json`. */
|
|
143
|
+
declare function parseCodexTokenUsage(stdout: string): CodexTokenUsage;
|
|
96
144
|
|
|
97
|
-
export { type LocalHarness as L, type RunLocalHarnessOptions as R, type
|
|
145
|
+
export { type CodexTokenUsage as C, type LocalHarness as L, type RunLocalHarnessOptions as R, type CodexExecutionPolicy as a, type CodexExecutionEvidence 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-Bb-CqxJH.js';
|
|
6
|
+
import { A as AuthoredHarness, W as WinnerStrategy, a as WorktreeFanoutOptions, b as WorktreePatchArtifact } from './worktree-fanout-IMKqdV_E.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-D4bMIxmB.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-Bb-CqxJH.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-DWA64rbJ.js';
|
|
12
|
+
import './worktree-fanout-IMKqdV_E.js';
|
|
13
|
+
import './completion-gate-BAj3dXeW.js';
|
|
14
|
+
import './local-harness-B7bNuNJw.js';
|
|
15
15
|
import 'node:child_process';
|
package/dist/loop-runner-bin.js
CHANGED
|
@@ -2,19 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseLoopRunnerArgv,
|
|
4
4
|
runLoopRunnerCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RTSZNYXM.js";
|
|
6
6
|
import "./chunk-SGKPNBXE.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-FDJ7AHXG.js";
|
|
7
|
+
import "./chunk-D336OZHK.js";
|
|
9
8
|
import "./chunk-ZQZX77MM.js";
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-URMJTSXB.js";
|
|
11
10
|
import "./chunk-DPEUKJRO.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ISTDY47H.js";
|
|
12
|
+
import "./chunk-WIPGQ4GT.js";
|
|
14
13
|
import "./chunk-VSWBYWFK.js";
|
|
15
14
|
import "./chunk-3MDZX7YU.js";
|
|
16
15
|
import "./chunk-FVJ7M3DA.js";
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-PJNGPWTA.js";
|
|
18
17
|
import "./chunk-YEJR7IXO.js";
|
|
19
18
|
import "./chunk-DGUM43GV.js";
|
|
20
19
|
export {
|