@tangle-network/agent-runtime 0.117.0 → 0.120.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/{activation-BZ2FyX0O.js → activation-DdIpwQ0k.js} +3 -3
- package/dist/{activation-BZ2FyX0O.js.map → activation-DdIpwQ0k.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -3
- package/dist/candidate-execution/index.d.ts +2 -2
- package/dist/candidate-execution/index.js +4 -4
- package/dist/{candidate-execution-PX61zXd2.js → candidate-execution-DDkSRPjY.js} +4 -4
- package/dist/{candidate-execution-PX61zXd2.js.map → candidate-execution-DDkSRPjY.js.map} +1 -1
- package/dist/{environment-provider-CTZjdIUg.d.ts → environment-provider-Bh4nX2qt.d.ts} +9 -1
- package/dist/{environment-provider-CzcEyRL7.js → environment-provider-Cr75N-rU.js} +2 -2
- package/dist/{environment-provider-CzcEyRL7.js.map → environment-provider-Cr75N-rU.js.map} +1 -1
- package/dist/environment-provider.d.ts +1 -1
- package/dist/environment-provider.js +1 -1
- package/dist/{improvement-cycle-Bcqz8rZI.js → improvement-cycle-zjR-MXwK.js} +7 -7
- package/dist/improvement-cycle-zjR-MXwK.js.map +1 -0
- package/dist/{index-X2YwyWkc.d.ts → index-B3bHsVLw.d.ts} +2 -2
- package/dist/{index-BHSYaWrC.d.ts → index-BLsKcxNd.d.ts} +3 -3
- package/dist/{index-DPWJxSRa.d.ts → index-CGADWaa_.d.ts} +20 -165
- package/dist/{index-BTUG4Xln.d.ts → index-I35151Fr.d.ts} +9 -9
- package/dist/index.d.ts +8 -8
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +4 -4
- package/dist/intelligence.js +6 -6
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +8 -7
- package/dist/{knowledge-CDlrayRc.js → knowledge-I1e9zQGj.js} +5 -5
- package/dist/{knowledge-CDlrayRc.js.map → knowledge-I1e9zQGj.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{local-harness-t6cDWDQ2.d.ts → local-harness-BIajef4A.d.ts} +29 -7
- package/dist/{loop-runner-bin-oyL7it5O.d.ts → loop-runner-bin-BeG9vTdE.d.ts} +3 -3
- package/dist/{loop-runner-bin-BxhhDtmG.js → loop-runner-bin-L996YVPS.js} +3 -3
- package/dist/{loop-runner-bin-BxhhDtmG.js.map → loop-runner-bin-L996YVPS.js.map} +1 -1
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +2 -2
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +5 -5
- package/dist/mcp/index.js +8 -13
- package/dist/mcp/index.js.map +1 -1
- package/dist/{openai-tools-CO9X36zy.js → openai-tools-CvFEzw6f.js} +2 -2
- package/dist/{openai-tools-CO9X36zy.js.map → openai-tools-CvFEzw6f.js.map} +1 -1
- package/dist/{prepare-BbI6qGOW.js → prepare-DpV6np9e.js} +44 -34
- package/dist/{prepare-BbI6qGOW.js.map → prepare-DpV6np9e.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{protected-model-port-B0yXMpLL.d.ts → protected-model-port-CoJOiINX.d.ts} +2 -2
- package/dist/{protected-model-port-COnyZfML.js → protected-model-port-vQLBRoAQ.js} +2 -2
- package/dist/{protected-model-port-COnyZfML.js.map → protected-model-port-vQLBRoAQ.js.map} +1 -1
- package/dist/{redact-BEtQtvd6.d.ts → redact-PQzmE1Jn.d.ts} +4 -4
- package/dist/run-layout-C2FGmZ3v.js +158 -0
- package/dist/run-layout-C2FGmZ3v.js.map +1 -0
- package/dist/{runtime-Ce39zfqn.js → runtime-D4e3GP5K.js} +7 -142
- package/dist/runtime-D4e3GP5K.js.map +1 -0
- package/dist/{spawn-journal-B_mu_oH2.js → spawn-journal-IeXpidO2.js} +2 -2
- package/dist/{spawn-journal-B_mu_oH2.js.map → spawn-journal-IeXpidO2.js.map} +1 -1
- package/dist/{structural-rollout-DLwW69R4.js → structural-rollout-DQHO3b2Y.js} +3 -3
- package/dist/{structural-rollout-DLwW69R4.js.map → structural-rollout-DQHO3b2Y.js.map} +1 -1
- package/dist/{supervise-U7_K5yuV.js → supervise-Cq50UT5-.js} +289 -1084
- package/dist/supervise-Cq50UT5-.js.map +1 -0
- package/dist/{supervisor-CAXiCKnX.js → supervisor-CpT9yAxL.js} +113 -35
- package/dist/supervisor-CpT9yAxL.js.map +1 -0
- package/dist/testing.js +10 -10
- package/dist/top-app-5unxqovu.js +1088 -0
- package/dist/top-app-5unxqovu.js.map +1 -0
- package/dist/tui/bin.d.ts +1 -0
- package/dist/tui/bin.js +19 -0
- package/dist/tui/bin.js.map +1 -0
- package/dist/tui/index.d.ts +209 -0
- package/dist/tui/index.js +2 -0
- package/dist/{util-Cc9g9Y-o.js → util-MVgdwuIS.js} +2 -2
- package/dist/{util-Cc9g9Y-o.js.map → util-MVgdwuIS.js.map} +1 -1
- package/dist/{workspace-archive-CqPIijFA.js → workspace-archive-B4SkNJjw.js} +2 -2
- package/dist/{workspace-archive-CqPIijFA.js.map → workspace-archive-B4SkNJjw.js.map} +1 -1
- package/package.json +11 -5
- package/dist/improvement-cycle-Bcqz8rZI.js.map +0 -1
- package/dist/runtime-Ce39zfqn.js.map +0 -1
- package/dist/supervise-U7_K5yuV.js.map +0 -1
- package/dist/supervisor-CAXiCKnX.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as RuntimeRunStateError, u as ValidationError } from "./errors-DEAvWQPy.js";
|
|
2
|
-
import { S as detachedSnapshot, _ as captureWorkerTraceEvidence, c as replaySpawnTree, f as attestNestedDriverTreeOwner, h as runtimeOwnedNestedDriverTreeRoot, m as nestedDriverTreeRoot, o as materializeTreeView, p as driverRuntime, s as pendingWaits, x as contentAddress } from "./spawn-journal-
|
|
3
|
-
import {
|
|
2
|
+
import { S as detachedSnapshot, _ as captureWorkerTraceEvidence, c as replaySpawnTree, f as attestNestedDriverTreeOwner, h as runtimeOwnedNestedDriverTreeRoot, m as nestedDriverTreeRoot, o as materializeTreeView, p as driverRuntime, s as pendingWaits, x as contentAddress } from "./spawn-journal-IeXpidO2.js";
|
|
3
|
+
import { f as zeroTokenUsage, t as addTokenUsage } from "./util-MVgdwuIS.js";
|
|
4
4
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-C7iJOWm3.js";
|
|
5
5
|
import { estimateCost, isModelPriced } from "@tangle-network/agent-eval";
|
|
6
6
|
import { AGENT_PROFILE_MATERIALIZATION_AXES, agentProfileSchema, canonicalCandidateDigest, profileMaterializationAxes, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
@@ -140,20 +140,6 @@ function collectStringLeaves(value, output) {
|
|
|
140
140
|
*
|
|
141
141
|
* @experimental
|
|
142
142
|
*/
|
|
143
|
-
const codexReasoningEffort = {
|
|
144
|
-
none: "none",
|
|
145
|
-
minimal: "minimal",
|
|
146
|
-
low: "low",
|
|
147
|
-
medium: "medium",
|
|
148
|
-
high: "high",
|
|
149
|
-
xhigh: "xhigh",
|
|
150
|
-
ultracode: "xhigh"
|
|
151
|
-
};
|
|
152
|
-
function codexReasoningArgs(reasoningEffort) {
|
|
153
|
-
const mapped = codexReasoningEffort[reasoningEffort];
|
|
154
|
-
if (mapped === void 0) throw new Error(`harnessInvocation: unsupported Codex reasoning effort ${String(reasoningEffort)}`);
|
|
155
|
-
return ["-c", `model_reasoning_effort="${mapped}"`];
|
|
156
|
-
}
|
|
157
143
|
/**
|
|
158
144
|
* Default per-harness command + arg shape. `buildArgs` takes ONLY the task prompt and
|
|
159
145
|
* emits the prompt-only invocation (no model, no system prompt) — the safe default shape
|
|
@@ -161,25 +147,94 @@ function codexReasoningArgs(reasoningEffort) {
|
|
|
161
147
|
* the harness's selector flag (every supported harness takes `-m <model>`). The §1.5
|
|
162
148
|
* profile-aware mapper `harnessInvocation` composes these to thread the full
|
|
163
149
|
* supervisor-authored profile (systemPrompt + model) into argv.
|
|
150
|
+
*
|
|
151
|
+
* Every per-harness difference is a FIELD on this row, never a test on the harness name at a
|
|
152
|
+
* call site: adding harness N+1 is one entry here, and a caller asking for a capability the
|
|
153
|
+
* row does not declare is refused up front instead of silently losing the request.
|
|
164
154
|
*/
|
|
165
155
|
const HARNESS_INVOCATIONS = {
|
|
166
|
-
claude: {
|
|
156
|
+
"claude-code": {
|
|
167
157
|
command: "claude",
|
|
168
158
|
buildArgs: (taskPrompt) => ["-p", taskPrompt],
|
|
169
|
-
modelArgs: (model) => ["-m", model]
|
|
159
|
+
modelArgs: (model) => ["-m", model],
|
|
160
|
+
reasoning: {
|
|
161
|
+
levels: {
|
|
162
|
+
low: "low",
|
|
163
|
+
medium: "medium",
|
|
164
|
+
high: "high",
|
|
165
|
+
xhigh: "xhigh",
|
|
166
|
+
ultracode: "max"
|
|
167
|
+
},
|
|
168
|
+
args: (level) => ["--effort", level]
|
|
169
|
+
},
|
|
170
|
+
permissionBypassArgs: () => ["--dangerously-skip-permissions"]
|
|
170
171
|
},
|
|
171
172
|
codex: {
|
|
172
173
|
command: "codex",
|
|
173
174
|
buildArgs: (taskPrompt) => ["exec", taskPrompt],
|
|
174
175
|
modelArgs: (model) => ["-m", model],
|
|
175
|
-
|
|
176
|
+
reasoning: {
|
|
177
|
+
levels: {
|
|
178
|
+
none: "none",
|
|
179
|
+
minimal: "minimal",
|
|
180
|
+
low: "low",
|
|
181
|
+
medium: "medium",
|
|
182
|
+
high: "high",
|
|
183
|
+
xhigh: "xhigh",
|
|
184
|
+
ultracode: "xhigh"
|
|
185
|
+
},
|
|
186
|
+
args: (level) => ["-c", `model_reasoning_effort="${level}"`]
|
|
187
|
+
},
|
|
188
|
+
permissionBypassArgs: () => [
|
|
189
|
+
"--sandbox",
|
|
190
|
+
"workspace-write",
|
|
191
|
+
"-c",
|
|
192
|
+
"approval_policy=\"never\""
|
|
193
|
+
]
|
|
176
194
|
},
|
|
177
195
|
opencode: {
|
|
178
196
|
command: "opencode",
|
|
179
197
|
buildArgs: (taskPrompt) => ["run", taskPrompt],
|
|
180
|
-
modelArgs: (model) => ["-m", model]
|
|
198
|
+
modelArgs: (model) => ["-m", model],
|
|
199
|
+
reasoning: {
|
|
200
|
+
levels: {
|
|
201
|
+
minimal: "minimal",
|
|
202
|
+
low: "low",
|
|
203
|
+
medium: "medium",
|
|
204
|
+
high: "high",
|
|
205
|
+
xhigh: "xhigh",
|
|
206
|
+
ultracode: "max"
|
|
207
|
+
},
|
|
208
|
+
args: (level) => ["--variant", level]
|
|
209
|
+
}
|
|
181
210
|
}
|
|
182
211
|
};
|
|
212
|
+
/** Every local harness, in table order — the one list `AGENT_RUNTIME_LOCAL_HARNESSES` and any
|
|
213
|
+
* other harness enumeration reads, so adding a row above is the only edit a new harness needs. */
|
|
214
|
+
const LOCAL_HARNESSES = Object.keys(HARNESS_INVOCATIONS);
|
|
215
|
+
/** The harness a caller gets when it expresses no preference. A composition-root default, not a
|
|
216
|
+
* capability claim: one constant so the several entry points cannot drift apart. */
|
|
217
|
+
const DEFAULT_LOCAL_HARNESS = "claude-code";
|
|
218
|
+
/** The CLI binary a harness id runs. The two are NOT the same string (`claude-code` runs `claude`),
|
|
219
|
+
* so anything spawning a harness — a version probe, a login check — reads it from here rather than
|
|
220
|
+
* passing the harness id as a command. */
|
|
221
|
+
function localHarnessExecutable(harness) {
|
|
222
|
+
return HARNESS_INVOCATIONS[harness].command;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Whether the harness's native control can express this reasoning effort. Admission checks read
|
|
226
|
+
* this so a profile the invocation would later refuse is rejected BEFORE any workspace state is
|
|
227
|
+
* created, against the same table that emits the argv.
|
|
228
|
+
*/
|
|
229
|
+
function harnessSupportsReasoningEffort(harness, reasoningEffort) {
|
|
230
|
+
return HARNESS_INVOCATIONS[harness].reasoning?.levels[reasoningEffort] !== void 0;
|
|
231
|
+
}
|
|
232
|
+
function harnessReasoningArgs(harness, reasoningEffort) {
|
|
233
|
+
const reasoning = HARNESS_INVOCATIONS[harness].reasoning;
|
|
234
|
+
const level = reasoning?.levels[reasoningEffort];
|
|
235
|
+
if (reasoning === void 0 || level === void 0) throw new Error(`harnessInvocation: ${harness} cannot express reasoning effort ${String(reasoningEffort)}`);
|
|
236
|
+
return reasoning.args(level);
|
|
237
|
+
}
|
|
183
238
|
const CODEX_REPRODUCIBLE_ARGS = [
|
|
184
239
|
"--ephemeral",
|
|
185
240
|
"--ignore-rules",
|
|
@@ -205,8 +260,9 @@ const CODEX_REPRODUCIBLE_ARGS = [
|
|
|
205
260
|
"--strict-config"
|
|
206
261
|
];
|
|
207
262
|
function buildHarnessArgs(harness, taskPrompt, options = {}) {
|
|
208
|
-
const
|
|
209
|
-
|
|
263
|
+
const invocation = HARNESS_INVOCATIONS[harness];
|
|
264
|
+
const args = invocation.buildArgs(taskPrompt);
|
|
265
|
+
if (options.dangerouslySkipPermissions && !options.codexReproducible) args.push(...invocation.permissionBypassArgs?.() ?? []);
|
|
210
266
|
if (options.codexReproducible) {
|
|
211
267
|
if (harness !== "codex") throw new Error("harnessInvocation: codexReproducible requires the Codex harness");
|
|
212
268
|
args.push(...CODEX_REPRODUCIBLE_ARGS);
|
|
@@ -249,7 +305,7 @@ function harnessInvocation(harness, profile, taskPrompt, options = {}) {
|
|
|
249
305
|
const model = profile.model?.default;
|
|
250
306
|
if (typeof model === "string" && model.length > 0) args.push(...invocation.modelArgs(model));
|
|
251
307
|
const reasoningEffort = profile.model?.reasoningEffort;
|
|
252
|
-
if (reasoningEffort !== void 0
|
|
308
|
+
if (reasoningEffort !== void 0) args.push(...harnessReasoningArgs(harness, reasoningEffort));
|
|
253
309
|
return {
|
|
254
310
|
command: invocation.command,
|
|
255
311
|
args,
|
|
@@ -1577,9 +1633,6 @@ async function removeWorktree(options) {
|
|
|
1577
1633
|
* @experimental
|
|
1578
1634
|
*/
|
|
1579
1635
|
const defaultCheckOutputCap = 16e3;
|
|
1580
|
-
function materializerHarness(harness) {
|
|
1581
|
-
return harness === "claude" ? "claude-code" : harness;
|
|
1582
|
-
}
|
|
1583
1636
|
/** This harness runs public plans only — it has no secret provider, so any
|
|
1584
1637
|
* templated argument or secret-ref env value is refused rather than leaked
|
|
1585
1638
|
* or silently stringified. */
|
|
@@ -1626,7 +1679,7 @@ async function runWorktreeHarness(opts) {
|
|
|
1626
1679
|
if (applied.unsupported.length > 0) throw new Error("runWorktreeHarness: applied profile unexpectedly retained unsupported rows");
|
|
1627
1680
|
const invocationProfile = profileWithResourceInstructions(profile, resourceInstructions);
|
|
1628
1681
|
const { command, args } = harnessInvocation(opts.harness, invocationProfile, opts.taskPrompt, {
|
|
1629
|
-
dangerouslySkipPermissions:
|
|
1682
|
+
dangerouslySkipPermissions: true,
|
|
1630
1683
|
...opts.codexReproducible ? { codexReproducible: true } : {}
|
|
1631
1684
|
});
|
|
1632
1685
|
const harnessResult = await runHarness({
|
|
@@ -1720,7 +1773,7 @@ function prepareWorktreeProfile(profile, harness) {
|
|
|
1720
1773
|
const workspaceProfile = materializationOnlyProfile(profile);
|
|
1721
1774
|
assertSupportedWorktreeProfile(profile, harness);
|
|
1722
1775
|
assertSafeProfileResourcePaths(profile);
|
|
1723
|
-
const plan = materializeProfile(workspaceProfile,
|
|
1776
|
+
const plan = materializeProfile(workspaceProfile, harness);
|
|
1724
1777
|
if (plan.unsupported.length > 0) throw new Error(`runWorktreeHarness: profile cannot be materialized for ${harness}: ${plan.unsupported.map(({ dimension, reason }) => `${dimension}: ${reason}`).join("; ")}`);
|
|
1725
1778
|
assertSafeMaterializedPaths(plan);
|
|
1726
1779
|
return {
|
|
@@ -1784,7 +1837,8 @@ function assertSupportedWorktreeProfile(profile, harness) {
|
|
|
1784
1837
|
context: "runWorktreeHarness"
|
|
1785
1838
|
});
|
|
1786
1839
|
const unsupportedAxes = [];
|
|
1787
|
-
|
|
1840
|
+
const reasoningEffort = profile.model?.reasoningEffort;
|
|
1841
|
+
if (reasoningEffort !== void 0 && !harnessSupportsReasoningEffort(harness, reasoningEffort)) unsupportedAxes.push("model.reasoningEffort");
|
|
1788
1842
|
if (unsupportedAxes.length > 0) throw new Error(`runWorktreeHarness: profile requests unsupported worktree behavior: ${unsupportedAxes.join(", ")}`);
|
|
1789
1843
|
}
|
|
1790
1844
|
function assertSafeMaterializedPaths(plan) {
|
|
@@ -2971,9 +3025,13 @@ const WORKER_TOKEN_FLOOR = {
|
|
|
2971
3025
|
*
|
|
2972
3026
|
* A `null` harness is the router/inline arm: it holds only coordination verbs and re-sends no
|
|
2973
3027
|
* harness scaffolding, so it has no floor of this kind.
|
|
3028
|
+
*
|
|
3029
|
+
* Accepts a bare `string` because `AgentProfile.harness` is not exactly `BackendType` — an
|
|
3030
|
+
* unrecognised name resolves to `null` (no floor) rather than throwing, which keeps an unknown
|
|
3031
|
+
* harness admissible instead of refusing work on a name this table has not heard of.
|
|
2974
3032
|
*/
|
|
2975
3033
|
function workerTokenFloor(harness) {
|
|
2976
|
-
if (harness === null) return null;
|
|
3034
|
+
if (harness === null || harness === void 0) return null;
|
|
2977
3035
|
return WORKER_TOKEN_FLOOR[harness] ?? null;
|
|
2978
3036
|
}
|
|
2979
3037
|
//#endregion
|
|
@@ -3210,6 +3268,27 @@ function queueOf(units, budget) {
|
|
|
3210
3268
|
* Deliberately generous: a coding harness routinely spends minutes inside one tool call, and a
|
|
3211
3269
|
* false stall that provokes a steer is worse than a late one. */
|
|
3212
3270
|
const DEFAULT_STALL_AFTER_MS = 18e4;
|
|
3271
|
+
/** A short, already-truncated descriptor of a tool call's target — the file/command a driver
|
|
3272
|
+
* needs to tell "editing the right module" from "re-reading the same file for the fifth time",
|
|
3273
|
+
* without pulling the worker's transcript across the wire. Shared by every executor that fills an
|
|
3274
|
+
* `ActivityLog` (pi RPC, sandbox session parts, cli-bridge tool-call deltas) so one harness's
|
|
3275
|
+
* argument naming never reads differently from another's in the same driver's window. */
|
|
3276
|
+
function describeToolArgs(argsValue) {
|
|
3277
|
+
if (!argsValue || typeof argsValue !== "object") return void 0;
|
|
3278
|
+
const a = argsValue;
|
|
3279
|
+
for (const key of [
|
|
3280
|
+
"filePath",
|
|
3281
|
+
"file_path",
|
|
3282
|
+
"path",
|
|
3283
|
+
"file",
|
|
3284
|
+
"command",
|
|
3285
|
+
"cmd",
|
|
3286
|
+
"pattern"
|
|
3287
|
+
]) {
|
|
3288
|
+
const v = a[key];
|
|
3289
|
+
if (typeof v === "string" && v.length > 0) return v.length > 120 ? `${v.slice(0, 117)}...` : v;
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3213
3292
|
/** Create a bounded activity ring. `limit` caps memory for a worker that runs thousands of tools. */
|
|
3214
3293
|
function createActivityLog(limit = 12) {
|
|
3215
3294
|
const notes = [];
|
|
@@ -4464,7 +4543,7 @@ function generateTraceId() {
|
|
|
4464
4543
|
* PRECEDENCE, from lowest to highest:
|
|
4465
4544
|
* 1. the supervisor process's own `process.env` (ambient inheritance),
|
|
4466
4545
|
* 2. the trace context stamped here,
|
|
4467
|
-
* 3. the caller's own seam env (`
|
|
4546
|
+
* 3. the caller's own seam env (`CliSeam.env`).
|
|
4468
4547
|
* A caller who sets `TRACE_ID` / `PARENT_SPAN_ID` on a seam wins — theirs is a deliberate
|
|
4469
4548
|
* declaration about the worker. Ambient `process.env` does NOT win: when the supervisor process was
|
|
4470
4549
|
* itself launched as someone's worker, its inherited ids describe the SUPERVISOR's place in an
|
|
@@ -4475,7 +4554,6 @@ function generateTraceId() {
|
|
|
4475
4554
|
*
|
|
4476
4555
|
* WHICH BACKENDS PROPAGATE. Only a backend with a real environment channel to the worker can carry
|
|
4477
4556
|
* this, and the ones that cannot say so here rather than dropping it silently:
|
|
4478
|
-
* - `pi` YES — `PiSeam.env` → the `pi --mode rpc` subprocess.
|
|
4479
4557
|
* - `cli` YES — `CliSeam.env` → the spawned subprocess.
|
|
4480
4558
|
* - `sandbox` YES — `CreateSandboxOptions.env` on the box the worker runs in (single-shot
|
|
4481
4559
|
* and steerable). This is the cross-MACHINE case the feature exists for.
|
|
@@ -4730,7 +4808,7 @@ function createScope(args) {
|
|
|
4730
4808
|
reason: "invalid-identity"
|
|
4731
4809
|
};
|
|
4732
4810
|
}
|
|
4733
|
-
const floor = workerTokenFloor(spec.harness);
|
|
4811
|
+
const floor = workerTokenFloor(spec.harness ?? spec.profile.harness ?? null);
|
|
4734
4812
|
if (floor !== null && opts.budget.maxTokens < floor) {
|
|
4735
4813
|
args.pool.reconcile(reservation.ticket, zeroSpend$1());
|
|
4736
4814
|
permit.release();
|
|
@@ -7108,6 +7186,6 @@ function isNonEmptySpend(s) {
|
|
|
7108
7186
|
return s.iterations > 0 || s.tokens.input > 0 || s.tokens.output > 0 || s.usd > 0 || s.ms > 0 || s.tokensKnown === false || s.usdKnown === false;
|
|
7109
7187
|
}
|
|
7110
7188
|
//#endregion
|
|
7111
|
-
export {
|
|
7189
|
+
export { WORKER_TOKEN_FLOOR as $, loopEventToOtelSpan as A, promptControlProfileMaterialization as At, timerAt as B, harnessInvocation as Bt, buildLoopSpanNodes as C, removeWorktree as Ct, exportEvalRuns as D, defineProfileMaterializationContract as Dt, createOtelExporter as E, controlProfileMaterialization as Et, sanitizeKnowledgeReadinessReport as F, sandboxActProfileMaterialization as Ft, describeToolArgs as G, CodexExecutionDiagnosticError as Gt, waitUntil as H, localHarnessExecutable as Ht, sanitizeRuntimeStreamEvent as I, validateProfileMaterialization as It, freeSlots as J, readWorkerProgress as K, createWaitProbes as L, worktreeCliProfileMaterialization as Lt, createRuntimeEventCollector as M, promptOnlyProfileMaterialization as Mt, createRuntimeStreamEventCollector as N, promptResourceProfileMaterialization as Nt, flatOtelSpan as O, fullProfileMaterialization as Ot, sanitizeAgentRuntimeEvent as P, renderProfileMaterializationIssues as Pt, teardownExecutor as Q, isWaitOutcome as R, DEFAULT_LOCAL_HARNESS as Rt, buildLoopOtelSpans as S, createWorktree as St, createOpenInferenceFileExporter as T, assertProfileMaterialization as Tt, DEFAULT_STALL_AFTER_MS as U, parseCodexTokenUsage as Ut, validateWaitSpec as V, harnessSupportsReasoningEffort as Vt, createActivityLog as W, runLocalHarness as Wt, rollingDispatch as X, queueOf as Y, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as Z, workerTraceSeamKey as _, runSettledCommand as _t, pickBestDelivered as a, attestRuntimeOwnedScopeOwner as at, traceContextToEnv as b, worktreeProfileExecutionPlan as bt, driverChild as c, runtimeOwnedExecutorExecutionBinding as ct, deriveNodeExecutionIdentity as d, routerBrain as dt, workerTokenFloor as et, recordScopeOwnerMaterialization as f, routerChatWithTools as ft, workerTraceEnv as g, runBrainLoop as gt, readWorkerTraceContext as h, streamRouterChatWithTools as ht, collectDelivered as i, attestRuntimeOwnedExecutor as it, toOtelAttributes as j, promptModelProfileMaterialization as jt, generateSpanId as k, profileMaterializationAxes as kt, withDriverExecutor as l, runtimeOwnedExecutorMaterialization as lt, settledToIteration as m, routerToolLoop as mt, createSupervisor as n, createBudgetPool as nt, runFinalizer as o, inheritRuntimeOwnedExecutorAttestation as ot, scopeOwnerExecutorNodeContext as p, routerChatWithUsage as pt, effectiveConcurrency as q, bestDelivered as r, spendFromUsageEvents as rt, runTree as s, newExecutionAttemptId as st, createRootHandle as t, assertValidBudget as tt, createScope as u, runtimeOwnedScopeOwnerRuntime as ut, createPropagatingTraceEmitter as v, runWorktreeChecks as vt, buildRuntimeEventOtelSpans as w, AGENT_PROFILE_MATERIALIZATION_AXES as wt, INTELLIGENCE_WIRE_VERSION as x, captureWorktreeDiff as xt, readTraceContextFromEnv as y, runWorktreeHarness as yt, pollFor as z, LOCAL_HARNESSES as zt };
|
|
7112
7190
|
|
|
7113
|
-
//# sourceMappingURL=supervisor-
|
|
7191
|
+
//# sourceMappingURL=supervisor-CpT9yAxL.js.map
|