@tangle-network/agent-runtime 0.94.8 → 0.94.10
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/candidate-execution/index.js +2 -2
- package/dist/{chunk-MSUWXCHD.js → chunk-33OG2NN3.js} +2 -2
- package/dist/{chunk-HKMKUESZ.js → chunk-37V4KQDC.js} +79 -79
- package/dist/chunk-37V4KQDC.js.map +1 -0
- package/dist/{chunk-FRXDOBFP.js → chunk-C3UKLQ54.js} +221 -21
- package/dist/chunk-C3UKLQ54.js.map +1 -0
- package/dist/{chunk-5BT2NMML.js → chunk-FTXM7Q7P.js} +2 -2
- package/dist/{chunk-TNUBPPZA.js → chunk-HGRW27YY.js} +2 -2
- package/dist/{chunk-KYPVUEJ4.js → chunk-MXBQNVFE.js} +3 -3
- package/dist/{chunk-7HH22XN4.js → chunk-YP6B7RZ2.js} +2 -2
- package/dist/chunk-YP6B7RZ2.js.map +1 -0
- package/dist/{completion-gate-tzwyyD-E.d.ts → completion-gate-BB4IZwyh.d.ts} +45 -11
- package/dist/{coordination-o0TzS7Ms.d.ts → coordination-CyVQ61My.d.ts} +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.js +7 -7
- package/dist/intelligence.js +1 -1
- package/dist/knowledge.d.ts +4 -3
- package/dist/knowledge.js +2 -2
- package/dist/{loop-runner-bin-iTSxSmpv.d.ts → loop-runner-bin-DA3ccCAs.d.ts} +1 -1
- package/dist/loop-runner-bin.d.ts +4 -3
- package/dist/loop-runner-bin.js +3 -3
- package/dist/loops.d.ts +9 -8
- package/dist/loops.js +2 -2
- package/dist/mcp/bin.js +1 -1
- package/dist/mcp/index.d.ts +5 -4
- package/dist/mcp/index.js +3 -3
- package/dist/{supervise-CRwaJIkd.d.ts → supervise-BaEsCHNh.d.ts} +2 -2
- package/dist/{worktree-fanout-BJy24LYe.d.ts → worktree-fanout-Do2YbtFD.d.ts} +11 -5
- package/package.json +1 -1
- package/dist/chunk-7HH22XN4.js.map +0 -1
- package/dist/chunk-FRXDOBFP.js.map +0 -1
- package/dist/chunk-HKMKUESZ.js.map +0 -1
- /package/dist/{chunk-MSUWXCHD.js.map → chunk-33OG2NN3.js.map} +0 -0
- /package/dist/{chunk-5BT2NMML.js.map → chunk-FTXM7Q7P.js.map} +0 -0
- /package/dist/{chunk-TNUBPPZA.js.map → chunk-HGRW27YY.js.map} +0 -0
- /package/dist/{chunk-KYPVUEJ4.js.map → chunk-MXBQNVFE.js.map} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WorkspacePlanReceipt } from '@tangle-network/agent-profile-materialize';
|
|
1
2
|
import { L as LocalHarness, C as CodexTokenUsage, b as CodexExecutionPolicy } from './local-harness-ZLMkKdZc.js';
|
|
2
3
|
import { c as Executor } from './types-CogNCaw7.js';
|
|
3
4
|
|
|
@@ -46,6 +47,12 @@ interface DiffOptions {
|
|
|
46
47
|
worktree: WorktreeHandle;
|
|
47
48
|
/** What to compare against. Default `worktree.baseSha`. */
|
|
48
49
|
baseRef?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Repository-relative input paths to omit from the captured worker patch.
|
|
52
|
+
* Paths are passed to Git with literal exclusion magic, so profile-provided
|
|
53
|
+
* `*`, `?`, `[` and `:` characters can never expand into broader pathspecs.
|
|
54
|
+
*/
|
|
55
|
+
excludePaths?: ReadonlyArray<string>;
|
|
49
56
|
/** Test seam. */
|
|
50
57
|
runGit?: GitRunner;
|
|
51
58
|
}
|
|
@@ -77,9 +84,13 @@ type GitRunner = (args: ReadonlyArray<string>, opts: {
|
|
|
77
84
|
};
|
|
78
85
|
/** Checkout a fresh git worktree for a delegation run on a new branch under `variantsDir`. @experimental */
|
|
79
86
|
declare function createWorktree(options: CreateWorktreeOptions): Promise<WorktreeHandle>;
|
|
80
|
-
/** Stage
|
|
87
|
+
/** Stage worker changes and return the diff + shortstat, excluding declared input paths. @experimental */
|
|
81
88
|
declare function captureWorktreeDiff(options: DiffOptions): Promise<DiffResult>;
|
|
82
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* Remove a git worktree and delete its branch. Already-removed paths are harmless; every other
|
|
91
|
+
* Git failure rejects so callers cannot report a worktree as destroyed when cleanup failed.
|
|
92
|
+
* @experimental
|
|
93
|
+
*/
|
|
83
94
|
declare function removeWorktree(options: RemoveWorktreeOptions): Promise<void>;
|
|
84
95
|
|
|
85
96
|
/**
|
|
@@ -91,15 +102,14 @@ declare function removeWorktree(options: RemoveWorktreeOptions): Promise<void>;
|
|
|
91
102
|
* - `createWorktreeCliExecutor` — the `Scope`/`Supervisor` leaf `Executor`.
|
|
92
103
|
* - `createInProcessExecutor` — the `runLoop` `SandboxClient` / coder-delegate path.
|
|
93
104
|
*
|
|
94
|
-
* §1.5 by construction: the
|
|
95
|
-
*
|
|
96
|
-
*
|
|
105
|
+
* §1.5 by construction: prompt + model reach the direct invocation, while file-backed resources
|
|
106
|
+
* are lowered by the shared profile materializer and applied before spawn. Resource instructions
|
|
107
|
+
* join the direct prompt because reproducible Codex intentionally disables ambient project docs.
|
|
97
108
|
*
|
|
98
|
-
* Lifecycle: `createWorktree` →
|
|
99
|
-
* (BEFORE checks, so the patch is
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
* run never leaks a worktree.
|
|
109
|
+
* Lifecycle: `createWorktree` → materialize profile inputs → `harnessInvocation` +
|
|
110
|
+
* `runLocalHarness` → `captureWorktreeDiff` excluding those inputs (BEFORE checks, so the patch is
|
|
111
|
+
* the harness's output, not polluted by files a test run writes) → configured checks → return the
|
|
112
|
+
* result + caller-owned `cleanup`. A throw cleans up before propagating.
|
|
103
113
|
*
|
|
104
114
|
* @experimental
|
|
105
115
|
*/
|
|
@@ -115,6 +125,25 @@ interface WorktreeCommandResult {
|
|
|
115
125
|
/** Combined stdout+stderr (capped) — surfaced in traces for diagnosis. */
|
|
116
126
|
output: string;
|
|
117
127
|
}
|
|
128
|
+
/** Proof of the profile inputs delivered before the worker process started. */
|
|
129
|
+
interface WorktreeProfileMaterializationReceipt {
|
|
130
|
+
/** Digest of the exact materializer plan: files, modes, environment, flags, and unsupported rows. */
|
|
131
|
+
workspacePlanDigest: string;
|
|
132
|
+
/** Repository-relative profile input files written into the worker worktree. */
|
|
133
|
+
writtenPaths: string[];
|
|
134
|
+
/** Must be empty on a successful run because this path fails closed. */
|
|
135
|
+
unsupported: WorkspacePlanReceipt['unsupported'];
|
|
136
|
+
/** Environment variable names added to the worker process. Values remain out of telemetry. */
|
|
137
|
+
environmentNames: string[];
|
|
138
|
+
/** Exact additional CLI arguments emitted by the materializer. */
|
|
139
|
+
flags: string[];
|
|
140
|
+
/** `resources.instructions` bypasses native project files so reproducible Codex cannot drop it. */
|
|
141
|
+
resourceInstructions: {
|
|
142
|
+
delivery: 'none' | 'invocation-prompt';
|
|
143
|
+
sha256: string | null;
|
|
144
|
+
byteLength: number;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
118
147
|
/** The canonical result of one worktree-harness run, projected by each port to its own shape. */
|
|
119
148
|
interface WorktreeHarnessResult {
|
|
120
149
|
/** The branch the worktree was cut on (`delegate/<runId>`). */
|
|
@@ -127,6 +156,11 @@ interface WorktreeHarnessResult {
|
|
|
127
156
|
insertions: number;
|
|
128
157
|
deletions: number;
|
|
129
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* Exact profile materialization applied before the harness launched.
|
|
161
|
+
* Absent on transports that cannot return a materializer receipt; never fabricated.
|
|
162
|
+
*/
|
|
163
|
+
profileMaterialization?: WorktreeProfileMaterializationReceipt;
|
|
130
164
|
/** The harness subprocess outcome. */
|
|
131
165
|
harness: {
|
|
132
166
|
name: LocalHarness | 'bridge';
|
|
@@ -219,4 +253,4 @@ interface DeliverableSpec<Out = unknown> {
|
|
|
219
253
|
*/
|
|
220
254
|
declare function gateOnDeliverable<Out>(inner: Executor<Out>, deliverable: DeliverableSpec<Out>): Executor<Out>;
|
|
221
255
|
|
|
222
|
-
export { type CreateWorktreeOptions as C, type DeliverableSpec as D, type GitRunner as G, type RemoveWorktreeOptions as R, type WorktreeHarnessResult as W, type WorktreeCheckRunner as a, type DiffOptions as b, type DiffResult as c, type WorktreeHandle as d, captureWorktreeDiff as e, createWorktree as f, type WorktreeCommandResult as g,
|
|
256
|
+
export { type CreateWorktreeOptions as C, type DeliverableSpec as D, type GitRunner as G, type RemoveWorktreeOptions as R, type WorktreeHarnessResult as W, type WorktreeCheckRunner as a, type DiffOptions as b, type DiffResult as c, type WorktreeHandle as d, captureWorktreeDiff as e, createWorktree as f, type WorktreeCommandResult as g, type WorktreeProfileMaterializationReceipt as h, gateOnDeliverable as i, removeWorktree as r };
|
|
@@ -5,7 +5,7 @@ import { S as SandboxClient, E as ExecCtx, g as LoopTraceEmitter, e as LoopTrace
|
|
|
5
5
|
import { BackendType, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
|
|
6
6
|
import { AgentEvalError } from '@tangle-network/agent-eval';
|
|
7
7
|
import { b as ToolSpec, c as RuntimeTelemetryOptions, R as RouterConfig } from './sanitize-Dcbjp0tU.js';
|
|
8
|
-
import { G as GitRunner, a as WorktreeCheckRunner, D as DeliverableSpec } from './completion-gate-
|
|
8
|
+
import { G as GitRunner, a as WorktreeCheckRunner, D as DeliverableSpec } from './completion-gate-BB4IZwyh.js';
|
|
9
9
|
import { L as LocalHarness } from './local-harness-ZLMkKdZc.js';
|
|
10
10
|
import { ProviderExecutorOptions, AgentEnvironmentProviderRegistry } from './environment-provider.js';
|
|
11
11
|
import { AgentEnvironmentProvider } from '@tangle-network/agent-interface/environment-provider';
|
package/dist/index.d.ts
CHANGED
|
@@ -14,20 +14,21 @@ import { Scenario as Scenario$1, SelfImproveOptions } from '@tangle-network/agen
|
|
|
14
14
|
import { S as SurfaceImprovementEdit } from './improvement-adapter-BieWeK5J.js';
|
|
15
15
|
import { I as ImprovementAdapter } from './types-BC3bZpH0.js';
|
|
16
16
|
export { AgentKnowledgeReadinessCheckOptions, KnowledgeImprovementJobMeasurement, KnowledgeImprovementJobResult, KnowledgeReadinessCheck, KnowledgeReadinessCheckInput, KnowledgeReadinessCheckResult, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, RunKnowledgeImprovementJobOptions, SupervisedKnowledgeUpdateInput, SupervisedKnowledgeUpdateOptions, SupervisedKnowledgeUpdateResult, SupervisedKnowledgeUpdater, createAgentKnowledgeReadinessCheck, createSupervisedKnowledgeUpdater, formatSupervisedKnowledgeTask, knowledgeReadinessDeliverable, runKnowledgeImprovementJob, runSupervisedKnowledgeUpdate } from './knowledge.js';
|
|
17
|
-
export { D as DELEGATED_LOOP_MODES, a as DelegatedLoopMode, b as DelegatedLoopRegistry, c as DelegatedLoopResult, d as DelegatedLoopRunner, L as LoopRunnerCliArgs, e as LoopRunnerCliResult, R as ResearchLoopResult, f as ResearchLoopRunnerOptions, g as RunDelegatedLoopOptions, V as VetoedFact, W as WorktreeLoopRunnerOptions, h as auditLoopRunner, i as isDelegatedLoopMode, p as parseLoopRunnerArgv, r as researchLoopRunner, j as runDelegatedLoop, k as runLoopRunnerCli, s as selfImproveLoopRunner, w as worktreeLoopRunner } from './loop-runner-bin-
|
|
17
|
+
export { D as DELEGATED_LOOP_MODES, a as DelegatedLoopMode, b as DelegatedLoopRegistry, c as DelegatedLoopResult, d as DelegatedLoopRunner, L as LoopRunnerCliArgs, e as LoopRunnerCliResult, R as ResearchLoopResult, f as ResearchLoopRunnerOptions, g as RunDelegatedLoopOptions, V as VetoedFact, W as WorktreeLoopRunnerOptions, h as auditLoopRunner, i as isDelegatedLoopMode, p as parseLoopRunnerArgv, r as researchLoopRunner, j as runDelegatedLoop, k as runLoopRunnerCli, s as selfImproveLoopRunner, w as worktreeLoopRunner } from './loop-runner-bin-DA3ccCAs.js';
|
|
18
18
|
export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from './openai-tools-0wACz8f8.js';
|
|
19
|
-
export { b0 as EvalRunEvent, b1 as EvalRunGeneration, b2 as EvalRunsExportConfig, b3 as EvalRunsExportResult, b4 as INTELLIGENCE_WIRE_VERSION, b5 as LoopSpanNode, b6 as OtelAttribute, b7 as OtelExportConfig, b8 as OtelExporter, b9 as OtelSpan, ba as RuntimeEventOtelOptions, bb as buildLoopOtelSpans, bc as buildLoopSpanNodes, bd as buildRuntimeEventOtelSpans, be as createOtelExporter, bf as exportEvalRuns, bg as loopEventToOtelSpan } from './coordination-
|
|
19
|
+
export { b0 as EvalRunEvent, b1 as EvalRunGeneration, b2 as EvalRunsExportConfig, b3 as EvalRunsExportResult, b4 as INTELLIGENCE_WIRE_VERSION, b5 as LoopSpanNode, b6 as OtelAttribute, b7 as OtelExportConfig, b8 as OtelExporter, b9 as OtelSpan, ba as RuntimeEventOtelOptions, bb as buildLoopOtelSpans, bc as buildLoopSpanNodes, bd as buildRuntimeEventOtelSpans, be as createOtelExporter, bf as exportEvalRuns, bg as loopEventToOtelSpan } from './coordination-CyVQ61My.js';
|
|
20
20
|
import { c as RuntimeTelemetryOptions } from './sanitize-Dcbjp0tU.js';
|
|
21
21
|
export { d as RuntimeEventCollector, e as RuntimeStreamEventCollector, S as SanitizedKnowledgeReadinessReport, f as createRuntimeEventCollector, g as createRuntimeStreamEventCollector, s as sanitizeAgentRuntimeEvent, h as sanitizeKnowledgeReadinessReport, i as sanitizeRuntimeStreamEvent } from './sanitize-Dcbjp0tU.js';
|
|
22
22
|
import '@tangle-network/sandbox';
|
|
23
23
|
import './local-harness-ZLMkKdZc.js';
|
|
24
24
|
import 'node:child_process';
|
|
25
25
|
import '@tangle-network/agent-knowledge';
|
|
26
|
-
import './supervise-
|
|
26
|
+
import './supervise-BaEsCHNh.js';
|
|
27
27
|
import './types-CogNCaw7.js';
|
|
28
|
-
import './completion-gate-
|
|
28
|
+
import './completion-gate-BB4IZwyh.js';
|
|
29
|
+
import '@tangle-network/agent-profile-materialize';
|
|
29
30
|
import './kb-gate-CwHO0vz6.js';
|
|
30
|
-
import './worktree-fanout-
|
|
31
|
+
import './worktree-fanout-Do2YbtFD.js';
|
|
31
32
|
import './substrate-DO2GHNg2.js';
|
|
32
33
|
import './environment-provider.js';
|
|
33
34
|
import '@tangle-network/agent-interface/environment-provider';
|
package/dist/index.js
CHANGED
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
createProtectedAgentCandidateModelPort,
|
|
8
8
|
disposePreparedAgentCandidateExecution,
|
|
9
9
|
recoverExpiredAgentCandidateExecution
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FTXM7Q7P.js";
|
|
11
11
|
import {
|
|
12
12
|
mcpToolsForRuntimeMcp,
|
|
13
13
|
mcpToolsForRuntimeMcpSubset
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-33OG2NN3.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_ROUTER_BASE_URL,
|
|
17
17
|
cleanModelId,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
runLoopRunnerCli,
|
|
31
31
|
selfImproveLoopRunner,
|
|
32
32
|
worktreeLoopRunner
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MXBQNVFE.js";
|
|
34
34
|
import "./chunk-SGKPNBXE.js";
|
|
35
35
|
import {
|
|
36
36
|
applyImprovementWinnerToProfile,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
prepareAgentCandidateExecution,
|
|
53
53
|
sealAgentCandidateBundle,
|
|
54
54
|
verifyAgentCandidateBundle
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-37V4KQDC.js";
|
|
56
56
|
import {
|
|
57
57
|
InMemoryRuntimeSessionStore,
|
|
58
58
|
createIterableBackend,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
normalizeBackendStreamEvent,
|
|
63
63
|
nowIso,
|
|
64
64
|
touchSession
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-YP6B7RZ2.js";
|
|
66
66
|
import "./chunk-QDSOD7RC.js";
|
|
67
67
|
import {
|
|
68
68
|
mcpBuildPrompt,
|
|
@@ -82,14 +82,14 @@ import {
|
|
|
82
82
|
knowledgeReadinessDeliverable,
|
|
83
83
|
runKnowledgeImprovementJob,
|
|
84
84
|
runSupervisedKnowledgeUpdate
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-HGRW27YY.js";
|
|
86
86
|
import "./chunk-5QOB7H74.js";
|
|
87
87
|
import {
|
|
88
88
|
composeRuntimeHooks,
|
|
89
89
|
defineRuntimeHooks,
|
|
90
90
|
notifyRuntimeDecisionPoint,
|
|
91
91
|
notifyRuntimeHookEvent
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-C3UKLQ54.js";
|
|
93
93
|
import "./chunk-DPEUKJRO.js";
|
|
94
94
|
import {
|
|
95
95
|
INTELLIGENCE_WIRE_VERSION,
|
package/dist/intelligence.js
CHANGED
package/dist/knowledge.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
2
|
+
import { E as ExecutorConfig } from './coordination-CyVQ61My.js';
|
|
3
|
+
import { a as SuperviseOptions, S as SupervisorProfile } from './supervise-BaEsCHNh.js';
|
|
4
4
|
import { B as Budget, b as SupervisedResult } from './types-CogNCaw7.js';
|
|
5
|
-
import { D as DeliverableSpec } from './completion-gate-
|
|
5
|
+
import { D as DeliverableSpec } from './completion-gate-BB4IZwyh.js';
|
|
6
6
|
import '@tangle-network/agent-interface';
|
|
7
7
|
import './substrate-DO2GHNg2.js';
|
|
8
8
|
import './types-CKmyZ9TP.js';
|
|
@@ -13,6 +13,7 @@ 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';
|
|
16
|
+
import '@tangle-network/agent-profile-materialize';
|
|
16
17
|
|
|
17
18
|
/** Standing prompt for a supervisor that grows a shared knowledge base through spawned researchers. */
|
|
18
19
|
declare const RESEARCH_SUPERVISOR_SYSTEM_PROMPT: string;
|
package/dist/knowledge.js
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
knowledgeReadinessDeliverable,
|
|
7
7
|
runKnowledgeImprovementJob,
|
|
8
8
|
runSupervisedKnowledgeUpdate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HGRW27YY.js";
|
|
10
10
|
import "./chunk-5QOB7H74.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-C3UKLQ54.js";
|
|
12
12
|
import "./chunk-DPEUKJRO.js";
|
|
13
13
|
import "./chunk-ISTDY47H.js";
|
|
14
14
|
import "./chunk-WIPGQ4GT.js";
|
|
@@ -3,7 +3,7 @@ import { SelfImproveOptions, SelfImproveResult } from '@tangle-network/agent-eva
|
|
|
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
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-
|
|
6
|
+
import { A as AuthoredHarness, W as WinnerStrategy, a as WorktreeFanoutOptions, b as WorktreePatchArtifact } from './worktree-fanout-Do2YbtFD.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
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-DA3ccCAs.js';
|
|
3
3
|
import '@tangle-network/agent-eval/campaign';
|
|
4
4
|
import '@tangle-network/agent-eval/contract';
|
|
5
5
|
import './types-BC3bZpH0.js';
|
|
@@ -9,7 +9,8 @@ import './types-CogNCaw7.js';
|
|
|
9
9
|
import '@tangle-network/agent-interface';
|
|
10
10
|
import '@tangle-network/sandbox';
|
|
11
11
|
import './types-CKmyZ9TP.js';
|
|
12
|
-
import './worktree-fanout-
|
|
13
|
-
import './completion-gate-
|
|
12
|
+
import './worktree-fanout-Do2YbtFD.js';
|
|
13
|
+
import './completion-gate-BB4IZwyh.js';
|
|
14
|
+
import '@tangle-network/agent-profile-materialize';
|
|
14
15
|
import './local-harness-ZLMkKdZc.js';
|
|
15
16
|
import 'node:child_process';
|
package/dist/loop-runner-bin.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseLoopRunnerArgv,
|
|
4
4
|
runLoopRunnerCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MXBQNVFE.js";
|
|
6
6
|
import "./chunk-SGKPNBXE.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-YP6B7RZ2.js";
|
|
8
8
|
import "./chunk-QDSOD7RC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-C3UKLQ54.js";
|
|
10
10
|
import "./chunk-DPEUKJRO.js";
|
|
11
11
|
import "./chunk-ISTDY47H.js";
|
|
12
12
|
import "./chunk-WIPGQ4GT.js";
|
package/dist/loops.d.ts
CHANGED
|
@@ -4,27 +4,28 @@ import { SandboxEvent, SandboxInstance, CreateSandboxOptions, PromptOptions, Tas
|
|
|
4
4
|
export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
|
|
5
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
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-
|
|
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-
|
|
7
|
+
import { M as MakeWorkerAgent, A as AnalystRegistry, o as CoordinationTools, n as CoordinationEvent, as as QuestionPolicy, E as ExecutorConfig } from './coordination-CyVQ61My.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-CyVQ61My.js';
|
|
9
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
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-Do2YbtFD.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-Do2YbtFD.js';
|
|
15
15
|
import { b as AnalystRegistryLike } from './types-BC3bZpH0.js';
|
|
16
16
|
import { AgentProfile as AgentProfile$1 } from '@tangle-network/agent-interface';
|
|
17
17
|
import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-Dcbjp0tU.js';
|
|
18
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-
|
|
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-
|
|
19
|
+
import { D as DeliverableSpec } from './completion-gate-BB4IZwyh.js';
|
|
20
|
+
export { g as WorktreeCommandResult, h as WorktreeProfileMaterializationReceipt, i as gateOnDeliverable } from './completion-gate-BB4IZwyh.js';
|
|
21
|
+
import { S as SupervisorProfile } from './supervise-BaEsCHNh.js';
|
|
22
|
+
export { D as DriveHarness, a as SuperviseOptions, b as SupervisorAgentDeps, s as supervise, c as supervisorAgent, w as workerFromBackend } from './supervise-BaEsCHNh.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
26
|
import './local-harness-ZLMkKdZc.js';
|
|
27
27
|
import 'node:child_process';
|
|
28
|
+
import '@tangle-network/agent-profile-materialize';
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
31
|
*
|
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-YP6B7RZ2.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-C3UKLQ54.js";
|
|
144
144
|
import "./chunk-DPEUKJRO.js";
|
|
145
145
|
import {
|
|
146
146
|
assertModelAllowed
|
package/dist/mcp/bin.js
CHANGED
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
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-
|
|
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-
|
|
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-CyVQ61My.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-CyVQ61My.js';
|
|
4
4
|
import { L as LocalHarness, r as runLocalHarness } from '../local-harness-ZLMkKdZc.js';
|
|
5
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-
|
|
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-
|
|
6
|
+
import { G as GitRunner } from '../completion-gate-BB4IZwyh.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-BB4IZwyh.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
9
|
export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-0wACz8f8.js';
|
|
10
10
|
import { AnalystFinding } from '@tangle-network/agent-eval';
|
|
@@ -16,6 +16,7 @@ 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';
|
|
19
|
+
import '@tangle-network/agent-profile-materialize';
|
|
19
20
|
|
|
20
21
|
/** Bounded, credential-redacted process context attached when reproducible Codex output fails
|
|
21
22
|
* validation. The process still fails closed; this only preserves enough evidence to diagnose it. */
|
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-33OG2NN3.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-YP6B7RZ2.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-C3UKLQ54.js";
|
|
71
71
|
import "../chunk-DPEUKJRO.js";
|
|
72
72
|
import "../chunk-ISTDY47H.js";
|
|
73
73
|
import "../chunk-WIPGQ4GT.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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-
|
|
2
|
+
import { M as MakeWorkerAgent, A as AnalystRegistry, E as ExecutorConfig } from './coordination-CyVQ61My.js';
|
|
3
3
|
import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-Dcbjp0tU.js';
|
|
4
|
-
import { D as DeliverableSpec } from './completion-gate-
|
|
4
|
+
import { D as DeliverableSpec } from './completion-gate-BB4IZwyh.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. */
|
|
@@ -3,7 +3,7 @@ import { AnalystFinding, DefaultVerdict } from '@tangle-network/agent-eval';
|
|
|
3
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
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-
|
|
6
|
+
import { W as WorktreeHarnessResult, G as GitRunner, a as WorktreeCheckRunner, D as DeliverableSpec } from './completion-gate-BB4IZwyh.js';
|
|
7
7
|
import { L as LocalHarness, r as runLocalHarness } from './local-harness-ZLMkKdZc.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -799,8 +799,8 @@ interface CoderCheckConstraints {
|
|
|
799
799
|
* This is a THIN adapter: the physical act (worktree → profile-aware harness invocation → diff →
|
|
800
800
|
* checks → cleanup) lives ONCE in `runWorktreeHarness` (`../../mcp/worktree-harness`), shared with
|
|
801
801
|
* the `runLoop`/coder-delegate `createInProcessExecutor`. This executor only projects that core's
|
|
802
|
-
* result onto the `Executor` port (artifact + spend) and owns the teardown point. The
|
|
803
|
-
*
|
|
802
|
+
* result onto the `Executor` port (artifact + spend) and owns the teardown point. The complete
|
|
803
|
+
* profile delivery — direct prompt/model plus materialized file-backed resources — lives there.
|
|
804
804
|
*
|
|
805
805
|
* Token accounting: ordinary harness CLI runs remain `budgetExempt`. Reproducible Codex mode
|
|
806
806
|
* parses the CLI's terminal JSONL usage and is metered by default; an absent usage event fails the
|
|
@@ -817,9 +817,15 @@ type WorktreePatchArtifact = WorktreeHarnessResult;
|
|
|
817
817
|
interface WorktreeCliExecutorOptions {
|
|
818
818
|
/** Absolute path to the git checkout the worktree is cut from. */
|
|
819
819
|
repoRoot: string;
|
|
820
|
-
/**
|
|
820
|
+
/**
|
|
821
|
+
* The supervisor-authored prompt/model plus materializable structural resources.
|
|
822
|
+
* `model.default` selects the one-shot model; `small`, `provider`, and `metadata` remain hints.
|
|
823
|
+
* Resource failures are fatal regardless of `resources.failOnError`.
|
|
824
|
+
* Tools, permissions, connections, confidential execution, modes, and extensions fail closed.
|
|
825
|
+
* Harness-specific nested controls that the pinned materializer cannot preserve also fail closed.
|
|
826
|
+
*/
|
|
821
827
|
profile: AgentProfile;
|
|
822
|
-
/**
|
|
828
|
+
/** Local CLI for this leaf. This explicit choice overrides `profile.harness`. */
|
|
823
829
|
harness: LocalHarness;
|
|
824
830
|
/** The per-task instruction handed to the harness (composed under the system prompt). */
|
|
825
831
|
taskPrompt: string;
|
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.10",
|
|
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": {
|