orkestrator 2.38.2-beta → 2.38.3-beta
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 +11 -6
- package/bin/orkestrator-launcher.js +21 -1
- package/dist/client.js +56 -6
- package/dist/main.js +28589 -26356
- package/package.json +3 -3
- package/resources/acp-bridge/dist/index.js +60 -5
- package/resources/claude-bridge/dist/index.js +287 -32
- package/resources/codex-bridge/dist/index.js +221 -20
- package/resources/cursor-bridge/dist/index.js +54 -4
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +54 -4
- package/resources/pi-bridge/runtime/install.json +1 -1
|
@@ -1314,13 +1314,27 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
1314
1314
|
"plugins.read-failed": "Listing plugins failed; the route answered 500.",
|
|
1315
1315
|
"prompt.accepted": "The route accepted a prompt and answered 202.",
|
|
1316
1316
|
"prompt.failed": "A prompt turn failed; the session reports the error.",
|
|
1317
|
-
"prompt.processing-
|
|
1317
|
+
"prompt.processing-provider-refused": "A prompt accepted by the route ended on a provider refusal; the turn already logged prompt.provider-refused.",
|
|
1318
|
+
"prompt.processing-failed": "A prompt accepted by the route failed while processing, before the turn could report it.",
|
|
1319
|
+
"prompt.processing-reported": "A prompt accepted by the route failed; the turn already logged prompt.failed.",
|
|
1318
1320
|
"prompt.processing-usage-limited": "A prompt accepted by the route ended on a usage limit; the turn already logged prompt.usage-limited.",
|
|
1321
|
+
"prompt.provider-refused": "A prompt turn ended because Claude refused it on the account's or the service's state; `reason` is the SDK's API error code and the session reports the error.",
|
|
1319
1322
|
"prompt.received": "A prompt reached the bridge; only its length is logged.",
|
|
1320
1323
|
"prompt.send-failed": "A prompt request failed; the route answered with an error.",
|
|
1321
1324
|
"prompt.usage-limited": "A prompt turn ended because the account's plan allowance is used up; the session reports the limit.",
|
|
1322
1325
|
"query.close-failed": "Stopping the Claude query failed while closing a tab; the close stays pending.",
|
|
1323
|
-
"query.failed":
|
|
1326
|
+
"query.failed": {
|
|
1327
|
+
description: "A Claude query ended with an error result the bridge does not know to be the account's or the service's state: `subtype` and `isError` from the result, `reason` the SDK's API error code when the turn ended on one, `apiStatus` its HTTP status, `startupFailure` whether the CLI failed to start.",
|
|
1328
|
+
essential: true,
|
|
1329
|
+
fields: {
|
|
1330
|
+
subtype: "label",
|
|
1331
|
+
isError: "boolean",
|
|
1332
|
+
reason: "label",
|
|
1333
|
+
apiStatus: "number",
|
|
1334
|
+
startupFailure: "boolean"
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
"query.provider-refused": "Claude refused a query on the account's or the service's state (a refused login, an account on hold, an overloaded or failing API); `reason` is the SDK's API error code and the turn reports the provider's words.",
|
|
1324
1338
|
"query.usage-limited": "Claude refused a query because the account's plan allowance is used up; the turn reports the limit.",
|
|
1325
1339
|
"question.answer-failed": "The answer-question route failed.",
|
|
1326
1340
|
"question.answering": "Answering a parked question.",
|
|
@@ -1913,6 +1927,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
1913
1927
|
"title.strategy-failed": "A session title strategy failed, so the next is tried. Content-free: the error can quote the prompt.",
|
|
1914
1928
|
"steer.qualification-failed": "A bridge's steer qualification failed or answered non-OK, so steering is not offered. Agent and status code or error class only.",
|
|
1915
1929
|
"steer.capability-cleared": "A projection cleared `actions.steer` because its bridge did not qualify. Identifiers and turn status only.",
|
|
1930
|
+
"queue.turn-not-running": "A projection holds queued prompts while its turn is not `running`; once per change of phase. Identifiers, phase and queue length only.",
|
|
1916
1931
|
...THROTTLE_LOG_EVENTS
|
|
1917
1932
|
}
|
|
1918
1933
|
},
|
|
@@ -2387,6 +2402,7 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
|
|
|
2387
2402
|
"sidebar.reconcile-failed": "Sidebar activity for pipelines could not be reconciled.",
|
|
2388
2403
|
"sidebar.update-failed": "The sidebar could not be updated for one pipeline.",
|
|
2389
2404
|
"result.consume-deferred": "Consuming a stage's workflow result failed; it stays staged and is retried.",
|
|
2405
|
+
"review.prompt-reads": "A review fan-out pass built or tried to build reviewer prompts; how many it built, and how often building them read the review instruction and project notes, failed reads included. Counts only.",
|
|
2390
2406
|
"consolidation.consume-deferred": "Consuming a review consolidation result failed; it stays pending and is retried.",
|
|
2391
2407
|
"dispatch.prepare-failed": "Attaching the agent before dispatch failed; the prompt request does the same work and answers authoritatively.",
|
|
2392
2408
|
"interaction.resolved": "A human interaction on a pipeline stage resolved. Metadata only.",
|
|
@@ -2435,6 +2451,8 @@ var CHANGE_TRACKING_LOG_AREAS = defineLogAreas({
|
|
|
2435
2451
|
"retention.failed": "A retention pass failed partway; what it deleted stands and the next pass goes on.",
|
|
2436
2452
|
"projection.failed": "Projecting a change event onto its environment failed.",
|
|
2437
2453
|
"startup.reconcile-failed": "Reconciling change tracking at startup failed.",
|
|
2454
|
+
"deleted-environments.purge-requested": "The startup reconcile found ledger rows of environments the environment store no longer holds and requested their purge.",
|
|
2455
|
+
"deleted-environments.reconcile-failed": "The startup reconcile of deleted environments could not read the environment store, so it requested no purge.",
|
|
2438
2456
|
"turn-start.capture-failed": "Capturing a turn's start failed, so the turn is untracked.",
|
|
2439
2457
|
"dispatch.record-failed": "Recording a turn's dispatch outcome failed.",
|
|
2440
2458
|
"turn.finalize-failed": "Finalizing a turn failed.",
|
|
@@ -2675,9 +2693,15 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
2675
2693
|
essential: true,
|
|
2676
2694
|
fields: { staleForMs: "number" }
|
|
2677
2695
|
},
|
|
2678
|
-
"writer-lease.listener-failed": "The callback told about a lost registry writer lease threw, so the schedules settings learn of the
|
|
2696
|
+
"writer-lease.listener-failed": "The callback told about a lost, or a late-won, registry writer lease threw, so the schedules settings learn of the change only at their next read.",
|
|
2697
|
+
"writer-lease.acquired-late": {
|
|
2698
|
+
description: "A backend that started without the registry writer lease won it later, because its holder stopped refreshing it (most often a crash just before this backend started). Schedules fire and container changes are allowed from now on; the `writer-lease.regained` line before it gives the stale lease's age.",
|
|
2699
|
+
essential: true,
|
|
2700
|
+
fields: {}
|
|
2701
|
+
},
|
|
2702
|
+
"writer-lease.retry-failed": "A backend without the registry writer lease could not try for it again for a reason other than the lease being held (an unreadable data directory, say). It tries again on its next tick.",
|
|
2679
2703
|
"writer-lease.not-acquired": {
|
|
2680
|
-
description: "This backend started without the registry writer lease, for the fixed `reason` given. A second backend on one data directory is normal: it serves reads, runs no schedules and refuses container changes.",
|
|
2704
|
+
description: "This backend started without the registry writer lease, for the fixed `reason` given. A second backend on one data directory is normal: it serves reads, runs no schedules and refuses container changes. A `busy` one keeps trying and writes `writer-lease.acquired-late` if it wins the lease once its holder stops refreshing it.",
|
|
2681
2705
|
essential: true,
|
|
2682
2706
|
fields: { reason: "label" }
|
|
2683
2707
|
},
|
|
@@ -2878,6 +2902,7 @@ var FEATURE_LOG_AREAS = defineLogAreas({
|
|
|
2878
2902
|
feature: {
|
|
2879
2903
|
description: "Pipeline environments started from a feature, and feature planning.",
|
|
2880
2904
|
events: {
|
|
2905
|
+
"debug-build.launched": "The debug button's pipeline environment was launched. Ids and counts only: no ticket text, transcript or screenshot.",
|
|
2881
2906
|
"naming.fallback": "Automatic naming failed, so a local fallback name is used. Error kind only: the description stays out.",
|
|
2882
2907
|
"planning.legacy-adopt-failed": "Legacy planning conversations could not be adopted.",
|
|
2883
2908
|
"planning.tick-retrying": "A planning tick failed on a transient error; the next tick retries."
|
|
@@ -3769,6 +3794,28 @@ var BRIDGE_LISTENER_REASONS = new Set([
|
|
|
3769
3794
|
"no-listener",
|
|
3770
3795
|
"launch-exited"
|
|
3771
3796
|
]);
|
|
3797
|
+
var CLAUDE_RESULT_SUBTYPES = new Set([
|
|
3798
|
+
"success",
|
|
3799
|
+
"error_during_execution",
|
|
3800
|
+
"error_max_turns",
|
|
3801
|
+
"error_max_budget_usd",
|
|
3802
|
+
"error_max_structured_output_retries"
|
|
3803
|
+
]);
|
|
3804
|
+
var CLAUDE_API_ERRORS = new Set([
|
|
3805
|
+
"authentication_failed",
|
|
3806
|
+
"oauth_org_not_allowed",
|
|
3807
|
+
"account_on_hold",
|
|
3808
|
+
"verification_required",
|
|
3809
|
+
"billing_error",
|
|
3810
|
+
"rate_limit",
|
|
3811
|
+
"overloaded",
|
|
3812
|
+
"invalid_request",
|
|
3813
|
+
"model_not_found",
|
|
3814
|
+
"server_error",
|
|
3815
|
+
"unknown",
|
|
3816
|
+
"max_output_tokens",
|
|
3817
|
+
"cloud_credential_error"
|
|
3818
|
+
]);
|
|
3772
3819
|
var UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
3773
3820
|
var SOURCE = new RegExp(`^(?:claude|codex|opencode|cursor|grok|acp|pi):${UUID}$`, "i");
|
|
3774
3821
|
var STORAGE_DATABASES = new Set(["main", "ledger", "other"]);
|
|
@@ -5201,7 +5248,7 @@ async function readBridgeLogPolicyBody(request) {
|
|
|
5201
5248
|
// ../../bridges/codex-bridge/src/index.ts
|
|
5202
5249
|
import { execFile as execFileCallback2 } from "node:child_process";
|
|
5203
5250
|
import { mkdir as mkdir10, readFile as readFile8, writeFile as writeFile7 } from "node:fs/promises";
|
|
5204
|
-
import { join as
|
|
5251
|
+
import { join as join25 } from "node:path";
|
|
5205
5252
|
import { promisify as promisify2 } from "node:util";
|
|
5206
5253
|
|
|
5207
5254
|
// ../../node_modules/.bun/@hono+node-server@2.1.5+c539cad7f494f5c9/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs
|
|
@@ -9981,6 +10028,9 @@ var WORKFLOW_RESULT_TOOL_NAMES = {
|
|
|
9981
10028
|
"subork-answer": "submit_subork_answer"
|
|
9982
10029
|
};
|
|
9983
10030
|
var WORKFLOW_RESULT_VALIDATION_TOOL_NAME = "validate_workflow_result";
|
|
10031
|
+
var WORKFLOW_RESULT_TOOL_META = Object.freeze({
|
|
10032
|
+
"anthropic/alwaysLoad": true
|
|
10033
|
+
});
|
|
9984
10034
|
var WORKFLOW_RESULT_KEY_MAX_LENGTH = 128;
|
|
9985
10035
|
var WORKFLOW_RESULT_TURN_MAX_SLOTS = 16;
|
|
9986
10036
|
var GRAPH_ACTIVATION_EXTRA_TOOLS = [
|
|
@@ -29091,12 +29141,160 @@ class CodexRuntimeSessions {
|
|
|
29091
29141
|
}
|
|
29092
29142
|
}
|
|
29093
29143
|
// ../../bridges/codex-bridge/src/codex-read-only-sandbox.ts
|
|
29094
|
-
import { existsSync as
|
|
29144
|
+
import { existsSync as existsSync5 } from "node:fs";
|
|
29145
|
+
|
|
29146
|
+
// ../../bridges/codex-bridge/src/codex-user-namespace-probe.ts
|
|
29147
|
+
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
29148
|
+
import { accessSync as accessSync2, constants as constants4 } from "node:fs";
|
|
29149
|
+
import { isAbsolute as isAbsolute10 } from "node:path";
|
|
29150
|
+
|
|
29151
|
+
// ../protocol/src/node/claude-linux-sandbox.ts
|
|
29152
|
+
import { accessSync, constants as constants3, existsSync as existsSync4, readFileSync as readFileSync4 } from "node:fs";
|
|
29153
|
+
import { delimiter as delimiter2, join as join22 } from "node:path";
|
|
29154
|
+
var CLAUDE_LINUX_SANDBOX_PROGRAMS = Object.freeze(["bwrap", "socat"]);
|
|
29155
|
+
var CLAUDE_LINUX_SANDBOX_PROBE_TTL_MS = 5 * 60000;
|
|
29156
|
+
var BWRAP_ARGS = Object.freeze([
|
|
29157
|
+
"--new-session",
|
|
29158
|
+
"--die-with-parent",
|
|
29159
|
+
"--unshare-user",
|
|
29160
|
+
"--unshare-pid",
|
|
29161
|
+
"--ro-bind",
|
|
29162
|
+
"/",
|
|
29163
|
+
"/",
|
|
29164
|
+
"--dev",
|
|
29165
|
+
"/dev",
|
|
29166
|
+
"--proc",
|
|
29167
|
+
"/proc",
|
|
29168
|
+
"--"
|
|
29169
|
+
]);
|
|
29170
|
+
var NESTED_ARGS = Object.freeze([
|
|
29171
|
+
"unshare",
|
|
29172
|
+
"--user",
|
|
29173
|
+
"--map-root-user",
|
|
29174
|
+
"--pid",
|
|
29175
|
+
"--mount",
|
|
29176
|
+
"--fork",
|
|
29177
|
+
"--mount-proc",
|
|
29178
|
+
"true"
|
|
29179
|
+
]);
|
|
29180
|
+
function executableOnPath(name, path = process.env.PATH) {
|
|
29181
|
+
for (const directory of (path ?? "").split(delimiter2)) {
|
|
29182
|
+
if (!directory)
|
|
29183
|
+
continue;
|
|
29184
|
+
try {
|
|
29185
|
+
accessSync(join22(directory, name), constants3.X_OK);
|
|
29186
|
+
return true;
|
|
29187
|
+
} catch {}
|
|
29188
|
+
}
|
|
29189
|
+
return false;
|
|
29190
|
+
}
|
|
29191
|
+
|
|
29192
|
+
// ../../bridges/codex-bridge/src/codex-user-namespace-probe.ts
|
|
29193
|
+
var CODEX_USER_NAMESPACE_PROBE_TIMEOUT_MS = 5000;
|
|
29194
|
+
var CODEX_USER_NAMESPACE_PROBE_TTL_MS = 5 * 60000;
|
|
29195
|
+
var CODEX_USER_NAMESPACE_PROBE_UNKNOWN_TTL_MS = 30000;
|
|
29196
|
+
var NAMESPACE_REFUSAL_PATTERNS = [
|
|
29197
|
+
/no permissions to create (a )?new namespace/i,
|
|
29198
|
+
/creating new namespace failed/i,
|
|
29199
|
+
/setting up uid map/i,
|
|
29200
|
+
/\/proc\/self\/(uid_map|gid_map|setgroups)/i,
|
|
29201
|
+
/\bunshare failed\b/i,
|
|
29202
|
+
/\bnamespace\b.*\b(operation not permitted|permission denied)\b/i
|
|
29203
|
+
];
|
|
29204
|
+
function namespaceRefusalLine(stderr) {
|
|
29205
|
+
const line = stderr.split(`
|
|
29206
|
+
`).map((entry) => entry.trim()).find((entry) => NAMESPACE_REFUSAL_PATTERNS.some((pattern) => pattern.test(entry)));
|
|
29207
|
+
if (line === undefined)
|
|
29208
|
+
return;
|
|
29209
|
+
return line.length > 200 ? `${line.slice(0, 199)}…` : line;
|
|
29210
|
+
}
|
|
29211
|
+
function classifyCodexUserNamespaceRun(run) {
|
|
29212
|
+
if (run.error !== undefined || run.status === null || run.signal)
|
|
29213
|
+
return { outcome: "unknown" };
|
|
29214
|
+
if (run.status === 0)
|
|
29215
|
+
return { outcome: "allowed" };
|
|
29216
|
+
const detail = namespaceRefusalLine(run.stderr);
|
|
29217
|
+
return detail === undefined ? { outcome: "unknown" } : { outcome: "refused", detail };
|
|
29218
|
+
}
|
|
29219
|
+
function runProbeCommand(command, args) {
|
|
29220
|
+
const result = spawnSync2(command, [...args], {
|
|
29221
|
+
timeout: CODEX_USER_NAMESPACE_PROBE_TIMEOUT_MS,
|
|
29222
|
+
killSignal: "SIGKILL",
|
|
29223
|
+
stdio: ["ignore", "ignore", "pipe"],
|
|
29224
|
+
encoding: "utf8",
|
|
29225
|
+
maxBuffer: 64 * 1024
|
|
29226
|
+
});
|
|
29227
|
+
return {
|
|
29228
|
+
status: result.status,
|
|
29229
|
+
signal: result.signal,
|
|
29230
|
+
...result.error ? { error: result.error.message } : {},
|
|
29231
|
+
stderr: result.stderr ?? ""
|
|
29232
|
+
};
|
|
29233
|
+
}
|
|
29234
|
+
function defaultCodexExecutable() {
|
|
29235
|
+
const configured = process.env.CODEX_PATH?.trim() || "codex";
|
|
29236
|
+
if (!isAbsolute10(configured))
|
|
29237
|
+
return executableOnPath(configured) ? configured : undefined;
|
|
29238
|
+
try {
|
|
29239
|
+
accessSync2(configured, constants4.X_OK);
|
|
29240
|
+
return configured;
|
|
29241
|
+
} catch {
|
|
29242
|
+
return;
|
|
29243
|
+
}
|
|
29244
|
+
}
|
|
29245
|
+
var CODEX_SANDBOX_PROBE_ARGS = Object.freeze([
|
|
29246
|
+
"sandbox",
|
|
29247
|
+
"-c",
|
|
29248
|
+
'sandbox_mode="read-only"',
|
|
29249
|
+
"--",
|
|
29250
|
+
"true"
|
|
29251
|
+
]);
|
|
29252
|
+
var BWRAP_PROBE_ARGS = Object.freeze([
|
|
29253
|
+
"--new-session",
|
|
29254
|
+
"--die-with-parent",
|
|
29255
|
+
"--unshare-user",
|
|
29256
|
+
"--ro-bind",
|
|
29257
|
+
"/",
|
|
29258
|
+
"/",
|
|
29259
|
+
"--dev",
|
|
29260
|
+
"/dev",
|
|
29261
|
+
"--",
|
|
29262
|
+
"true"
|
|
29263
|
+
]);
|
|
29264
|
+
var UNSHARE_PROBE_ARGS = Object.freeze(["--user", "--map-root-user", "true"]);
|
|
29265
|
+
function probeCodexUserNamespace(dependencies = {}) {
|
|
29266
|
+
const onPath = dependencies.onPath ?? executableOnPath;
|
|
29267
|
+
const run = dependencies.run ?? runProbeCommand;
|
|
29268
|
+
const codex = (dependencies.codexExecutable ?? defaultCodexExecutable)();
|
|
29269
|
+
if (codex !== undefined) {
|
|
29270
|
+
const answer = classifyCodexUserNamespaceRun(run(codex, CODEX_SANDBOX_PROBE_ARGS));
|
|
29271
|
+
if (answer.outcome !== "unknown")
|
|
29272
|
+
return answer;
|
|
29273
|
+
}
|
|
29274
|
+
const system = onPath("bwrap") ? classifyCodexUserNamespaceRun(run("bwrap", BWRAP_PROBE_ARGS)) : onPath("unshare") ? classifyCodexUserNamespaceRun(run("unshare", UNSHARE_PROBE_ARGS)) : undefined;
|
|
29275
|
+
return system?.outcome === "refused" ? system : { outcome: "unknown" };
|
|
29276
|
+
}
|
|
29277
|
+
var cached;
|
|
29278
|
+
function cacheLifetime(answer) {
|
|
29279
|
+
return answer.outcome === "unknown" ? CODEX_USER_NAMESPACE_PROBE_UNKNOWN_TTL_MS : CODEX_USER_NAMESPACE_PROBE_TTL_MS;
|
|
29280
|
+
}
|
|
29281
|
+
function codexUserNamespaceRefusal(now = Date.now(), probe = probeCodexUserNamespace) {
|
|
29282
|
+
const age = cached ? now - cached.at : -1;
|
|
29283
|
+
if (!cached || age < 0 || age >= cacheLifetime(cached.answer)) {
|
|
29284
|
+
cached = { answer: probe(), at: now };
|
|
29285
|
+
}
|
|
29286
|
+
return cached.answer.outcome === "refused" ? cached.answer.detail : undefined;
|
|
29287
|
+
}
|
|
29288
|
+
|
|
29289
|
+
// ../../bridges/codex-bridge/src/codex-read-only-sandbox.ts
|
|
29095
29290
|
var CODEX_READ_ONLY_SANDBOX_OFF_IN_CONTAINER = "Codex's command sandbox cannot run commands in this container: its Linux sandbox (bubblewrap) needs an unprivileged user namespace, which the container refuses.";
|
|
29291
|
+
function codexReadOnlySandboxOffOnHost(detail) {
|
|
29292
|
+
return `Codex's command sandbox cannot run commands on this host: its Linux sandbox (bubblewrap) needs an unprivileged user namespace, which the host refuses (${detail}). Unprivileged user namespaces are turned off or restricted here, for example by kernel.unprivileged_userns_clone or AppArmor's kernel.apparmor_restrict_unprivileged_userns; Orkestrator does not change that policy itself.`;
|
|
29293
|
+
}
|
|
29096
29294
|
var CODEX_READ_ONLY_APPROVAL_REFUSAL = "Codex asked to run something outside the commands it treats as read-only. Orkestrator declined it: this read-only turn runs without Codex's command sandbox, so it may only read.";
|
|
29097
29295
|
var CODEX_READ_ONLY_MCP_APPROVAL_REFUSAL = "Codex asked to call an MCP tool that needs approval. Orkestrator declined it: this read-only turn runs without Codex's command sandbox, and its approvals never wait on a person.";
|
|
29098
29296
|
function runningInContainer() {
|
|
29099
|
-
return
|
|
29297
|
+
return existsSync5("/.dockerenv") || existsSync5("/run/.containerenv");
|
|
29100
29298
|
}
|
|
29101
29299
|
function codexReadOnlyCommandSandboxOff(options = {}) {
|
|
29102
29300
|
if (options.permissionProfile || options.policy?.id === "coordinator-read-only")
|
|
@@ -29104,7 +29302,10 @@ function codexReadOnlyCommandSandboxOff(options = {}) {
|
|
|
29104
29302
|
if ((options.platform ?? process.platform) !== "linux")
|
|
29105
29303
|
return;
|
|
29106
29304
|
const container = options.policy?.sandbox === "container" || options.policy?.id === "interactive-container" || (options.inContainer ?? runningInContainer)();
|
|
29107
|
-
|
|
29305
|
+
if (container)
|
|
29306
|
+
return CODEX_READ_ONLY_SANDBOX_OFF_IN_CONTAINER;
|
|
29307
|
+
const refusal = (options.userNamespaceRefusal ?? codexUserNamespaceRefusal)();
|
|
29308
|
+
return refusal === undefined ? undefined : codexReadOnlySandboxOffOnHost(refusal);
|
|
29108
29309
|
}
|
|
29109
29310
|
|
|
29110
29311
|
// ../../bridges/codex-bridge/src/app-server-runtime-approvals.ts
|
|
@@ -29331,7 +29532,7 @@ function parseCommandToken(text, sigils = ["/"]) {
|
|
|
29331
29532
|
// ../../bridges/codex-bridge/src/prompts/template-discovery.ts
|
|
29332
29533
|
import { createHash as createHash15 } from "node:crypto";
|
|
29333
29534
|
import { open as open10, readdir as readdir3, stat as stat8 } from "node:fs/promises";
|
|
29334
|
-
import { join as
|
|
29535
|
+
import { join as join23 } from "node:path";
|
|
29335
29536
|
var TEMPLATE_LIMITS = Object.freeze({
|
|
29336
29537
|
maxTemplates: 512,
|
|
29337
29538
|
maxVisitedEntries: 2048,
|
|
@@ -29351,8 +29552,8 @@ var RESERVED_TEMPLATE_PREFIXES = ["/skill:", "/prompts:"];
|
|
|
29351
29552
|
var TEMPLATE_ID_PREFIX = "codex-template:";
|
|
29352
29553
|
function templateRoots(cwd, codexHome = getCodexHomeDir()) {
|
|
29353
29554
|
return [
|
|
29354
|
-
{ origin: "project", dir:
|
|
29355
|
-
{ origin: "user", dir:
|
|
29555
|
+
{ origin: "project", dir: join23(cwd, ".codex", "prompts") },
|
|
29556
|
+
{ origin: "user", dir: join23(codexHome, "prompts") }
|
|
29356
29557
|
];
|
|
29357
29558
|
}
|
|
29358
29559
|
function templateCommandId(origin, relativePath) {
|
|
@@ -29457,7 +29658,7 @@ async function scanPromptTemplates(roots, limits = TEMPLATE_LIMITS) {
|
|
|
29457
29658
|
return;
|
|
29458
29659
|
}
|
|
29459
29660
|
visited += 1;
|
|
29460
|
-
const absolutePath =
|
|
29661
|
+
const absolutePath = join23(dir, entry.name);
|
|
29461
29662
|
const relativePath = relative ? `${relative}/${entry.name}` : entry.name;
|
|
29462
29663
|
if (entry.isDirectory()) {
|
|
29463
29664
|
if (depth + 1 > limits.maxDepth) {
|
|
@@ -29624,7 +29825,7 @@ async function loadTemplateBody(entry, limits = TEMPLATE_LIMITS) {
|
|
|
29624
29825
|
}
|
|
29625
29826
|
|
|
29626
29827
|
// ../../bridges/codex-bridge/src/commands/skill-inventory.ts
|
|
29627
|
-
import { isAbsolute as
|
|
29828
|
+
import { isAbsolute as isAbsolute11 } from "node:path";
|
|
29628
29829
|
var SKILL_INVENTORY_LIMITS = Object.freeze({
|
|
29629
29830
|
maxSkills: 512,
|
|
29630
29831
|
maxDescriptionBytes: 1000,
|
|
@@ -29676,7 +29877,7 @@ function normalizeSkillsList(raw, context) {
|
|
|
29676
29877
|
}
|
|
29677
29878
|
const name = nonEmpty(candidate.name);
|
|
29678
29879
|
const path = typeof candidate.path === "string" ? candidate.path : undefined;
|
|
29679
|
-
if (!name || !usableSkillName(name) || !path || !
|
|
29880
|
+
if (!name || !usableSkillName(name) || !path || !isAbsolute11(path)) {
|
|
29680
29881
|
truncated = true;
|
|
29681
29882
|
continue;
|
|
29682
29883
|
}
|
|
@@ -33525,7 +33726,7 @@ class CodexRuntimePrompt {
|
|
|
33525
33726
|
}
|
|
33526
33727
|
|
|
33527
33728
|
// ../../bridges/codex-bridge/src/app-server-runtime-tail.ts
|
|
33528
|
-
import { join as
|
|
33729
|
+
import { join as join24, relative as relative4, isAbsolute as isAbsolute12 } from "node:path";
|
|
33529
33730
|
var log20 = createLogger("bridge.codex");
|
|
33530
33731
|
|
|
33531
33732
|
class CodexRuntimeTail {
|
|
@@ -33720,14 +33921,14 @@ class CodexRuntimeTail {
|
|
|
33720
33921
|
cursor = page.nextCursor ?? undefined;
|
|
33721
33922
|
} while (cursor);
|
|
33722
33923
|
} catch {}
|
|
33723
|
-
const archivedRoot =
|
|
33924
|
+
const archivedRoot = join24(this.ctx.options.codexHome, "archived_sessions");
|
|
33724
33925
|
const isArchived = (meta) => {
|
|
33725
33926
|
if (archived.has(meta.id))
|
|
33726
33927
|
return true;
|
|
33727
33928
|
if (!meta.transcriptPath)
|
|
33728
33929
|
return false;
|
|
33729
33930
|
const fromRoot = relative4(archivedRoot, meta.transcriptPath);
|
|
33730
|
-
return fromRoot !== "" && !fromRoot.startsWith("..") && !
|
|
33931
|
+
return fromRoot !== "" && !fromRoot.startsWith("..") && !isAbsolute12(fromRoot);
|
|
33731
33932
|
};
|
|
33732
33933
|
let persisted = [];
|
|
33733
33934
|
let generatedTitles = null;
|
|
@@ -34631,10 +34832,10 @@ function emit(event) {
|
|
|
34631
34832
|
}
|
|
34632
34833
|
}
|
|
34633
34834
|
function bridgeCacheDir() {
|
|
34634
|
-
return
|
|
34835
|
+
return join25(getCodexHomeDir(), "orkestrator-bridge");
|
|
34635
34836
|
}
|
|
34636
34837
|
function bridgeCachePath() {
|
|
34637
|
-
return
|
|
34838
|
+
return join25(bridgeCacheDir(), "models-cache.json");
|
|
34638
34839
|
}
|
|
34639
34840
|
var BRIDGE_MODEL_CACHE_VERSION = 2;
|
|
34640
34841
|
async function readPersistedBridgeCache() {
|
|
@@ -34658,7 +34859,7 @@ async function writePersistedBridgeCache(models) {
|
|
|
34658
34859
|
}
|
|
34659
34860
|
async function readCodexCliModelCache() {
|
|
34660
34861
|
try {
|
|
34661
|
-
const raw = await readFile8(
|
|
34862
|
+
const raw = await readFile8(join25(getCodexHomeDir(), "models_cache.json"), "utf8");
|
|
34662
34863
|
const models = parseModelCatalog(raw);
|
|
34663
34864
|
return models.length > 0 ? models : null;
|
|
34664
34865
|
} catch {
|
|
@@ -435,13 +435,27 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
435
435
|
"plugins.read-failed": "Listing plugins failed; the route answered 500.",
|
|
436
436
|
"prompt.accepted": "The route accepted a prompt and answered 202.",
|
|
437
437
|
"prompt.failed": "A prompt turn failed; the session reports the error.",
|
|
438
|
-
"prompt.processing-
|
|
438
|
+
"prompt.processing-provider-refused": "A prompt accepted by the route ended on a provider refusal; the turn already logged prompt.provider-refused.",
|
|
439
|
+
"prompt.processing-failed": "A prompt accepted by the route failed while processing, before the turn could report it.",
|
|
440
|
+
"prompt.processing-reported": "A prompt accepted by the route failed; the turn already logged prompt.failed.",
|
|
439
441
|
"prompt.processing-usage-limited": "A prompt accepted by the route ended on a usage limit; the turn already logged prompt.usage-limited.",
|
|
442
|
+
"prompt.provider-refused": "A prompt turn ended because Claude refused it on the account's or the service's state; `reason` is the SDK's API error code and the session reports the error.",
|
|
440
443
|
"prompt.received": "A prompt reached the bridge; only its length is logged.",
|
|
441
444
|
"prompt.send-failed": "A prompt request failed; the route answered with an error.",
|
|
442
445
|
"prompt.usage-limited": "A prompt turn ended because the account's plan allowance is used up; the session reports the limit.",
|
|
443
446
|
"query.close-failed": "Stopping the Claude query failed while closing a tab; the close stays pending.",
|
|
444
|
-
"query.failed":
|
|
447
|
+
"query.failed": {
|
|
448
|
+
description: "A Claude query ended with an error result the bridge does not know to be the account's or the service's state: `subtype` and `isError` from the result, `reason` the SDK's API error code when the turn ended on one, `apiStatus` its HTTP status, `startupFailure` whether the CLI failed to start.",
|
|
449
|
+
essential: true,
|
|
450
|
+
fields: {
|
|
451
|
+
subtype: "label",
|
|
452
|
+
isError: "boolean",
|
|
453
|
+
reason: "label",
|
|
454
|
+
apiStatus: "number",
|
|
455
|
+
startupFailure: "boolean"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"query.provider-refused": "Claude refused a query on the account's or the service's state (a refused login, an account on hold, an overloaded or failing API); `reason` is the SDK's API error code and the turn reports the provider's words.",
|
|
445
459
|
"query.usage-limited": "Claude refused a query because the account's plan allowance is used up; the turn reports the limit.",
|
|
446
460
|
"question.answer-failed": "The answer-question route failed.",
|
|
447
461
|
"question.answering": "Answering a parked question.",
|
|
@@ -1034,6 +1048,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
1034
1048
|
"title.strategy-failed": "A session title strategy failed, so the next is tried. Content-free: the error can quote the prompt.",
|
|
1035
1049
|
"steer.qualification-failed": "A bridge's steer qualification failed or answered non-OK, so steering is not offered. Agent and status code or error class only.",
|
|
1036
1050
|
"steer.capability-cleared": "A projection cleared `actions.steer` because its bridge did not qualify. Identifiers and turn status only.",
|
|
1051
|
+
"queue.turn-not-running": "A projection holds queued prompts while its turn is not `running`; once per change of phase. Identifiers, phase and queue length only.",
|
|
1037
1052
|
...THROTTLE_LOG_EVENTS
|
|
1038
1053
|
}
|
|
1039
1054
|
},
|
|
@@ -1508,6 +1523,7 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
|
|
|
1508
1523
|
"sidebar.reconcile-failed": "Sidebar activity for pipelines could not be reconciled.",
|
|
1509
1524
|
"sidebar.update-failed": "The sidebar could not be updated for one pipeline.",
|
|
1510
1525
|
"result.consume-deferred": "Consuming a stage's workflow result failed; it stays staged and is retried.",
|
|
1526
|
+
"review.prompt-reads": "A review fan-out pass built or tried to build reviewer prompts; how many it built, and how often building them read the review instruction and project notes, failed reads included. Counts only.",
|
|
1511
1527
|
"consolidation.consume-deferred": "Consuming a review consolidation result failed; it stays pending and is retried.",
|
|
1512
1528
|
"dispatch.prepare-failed": "Attaching the agent before dispatch failed; the prompt request does the same work and answers authoritatively.",
|
|
1513
1529
|
"interaction.resolved": "A human interaction on a pipeline stage resolved. Metadata only.",
|
|
@@ -1556,6 +1572,8 @@ var CHANGE_TRACKING_LOG_AREAS = defineLogAreas({
|
|
|
1556
1572
|
"retention.failed": "A retention pass failed partway; what it deleted stands and the next pass goes on.",
|
|
1557
1573
|
"projection.failed": "Projecting a change event onto its environment failed.",
|
|
1558
1574
|
"startup.reconcile-failed": "Reconciling change tracking at startup failed.",
|
|
1575
|
+
"deleted-environments.purge-requested": "The startup reconcile found ledger rows of environments the environment store no longer holds and requested their purge.",
|
|
1576
|
+
"deleted-environments.reconcile-failed": "The startup reconcile of deleted environments could not read the environment store, so it requested no purge.",
|
|
1559
1577
|
"turn-start.capture-failed": "Capturing a turn's start failed, so the turn is untracked.",
|
|
1560
1578
|
"dispatch.record-failed": "Recording a turn's dispatch outcome failed.",
|
|
1561
1579
|
"turn.finalize-failed": "Finalizing a turn failed.",
|
|
@@ -1796,9 +1814,15 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
1796
1814
|
essential: true,
|
|
1797
1815
|
fields: { staleForMs: "number" }
|
|
1798
1816
|
},
|
|
1799
|
-
"writer-lease.listener-failed": "The callback told about a lost registry writer lease threw, so the schedules settings learn of the
|
|
1817
|
+
"writer-lease.listener-failed": "The callback told about a lost, or a late-won, registry writer lease threw, so the schedules settings learn of the change only at their next read.",
|
|
1818
|
+
"writer-lease.acquired-late": {
|
|
1819
|
+
description: "A backend that started without the registry writer lease won it later, because its holder stopped refreshing it (most often a crash just before this backend started). Schedules fire and container changes are allowed from now on; the `writer-lease.regained` line before it gives the stale lease's age.",
|
|
1820
|
+
essential: true,
|
|
1821
|
+
fields: {}
|
|
1822
|
+
},
|
|
1823
|
+
"writer-lease.retry-failed": "A backend without the registry writer lease could not try for it again for a reason other than the lease being held (an unreadable data directory, say). It tries again on its next tick.",
|
|
1800
1824
|
"writer-lease.not-acquired": {
|
|
1801
|
-
description: "This backend started without the registry writer lease, for the fixed `reason` given. A second backend on one data directory is normal: it serves reads, runs no schedules and refuses container changes.",
|
|
1825
|
+
description: "This backend started without the registry writer lease, for the fixed `reason` given. A second backend on one data directory is normal: it serves reads, runs no schedules and refuses container changes. A `busy` one keeps trying and writes `writer-lease.acquired-late` if it wins the lease once its holder stops refreshing it.",
|
|
1802
1826
|
essential: true,
|
|
1803
1827
|
fields: { reason: "label" }
|
|
1804
1828
|
},
|
|
@@ -1999,6 +2023,7 @@ var FEATURE_LOG_AREAS = defineLogAreas({
|
|
|
1999
2023
|
feature: {
|
|
2000
2024
|
description: "Pipeline environments started from a feature, and feature planning.",
|
|
2001
2025
|
events: {
|
|
2026
|
+
"debug-build.launched": "The debug button's pipeline environment was launched. Ids and counts only: no ticket text, transcript or screenshot.",
|
|
2002
2027
|
"naming.fallback": "Automatic naming failed, so a local fallback name is used. Error kind only: the description stays out.",
|
|
2003
2028
|
"planning.legacy-adopt-failed": "Legacy planning conversations could not be adopted.",
|
|
2004
2029
|
"planning.tick-retrying": "A planning tick failed on a transient error; the next tick retries."
|
|
@@ -2711,6 +2736,28 @@ var BRIDGE_LISTENER_REASONS = new Set([
|
|
|
2711
2736
|
"no-listener",
|
|
2712
2737
|
"launch-exited"
|
|
2713
2738
|
]);
|
|
2739
|
+
var CLAUDE_RESULT_SUBTYPES = new Set([
|
|
2740
|
+
"success",
|
|
2741
|
+
"error_during_execution",
|
|
2742
|
+
"error_max_turns",
|
|
2743
|
+
"error_max_budget_usd",
|
|
2744
|
+
"error_max_structured_output_retries"
|
|
2745
|
+
]);
|
|
2746
|
+
var CLAUDE_API_ERRORS = new Set([
|
|
2747
|
+
"authentication_failed",
|
|
2748
|
+
"oauth_org_not_allowed",
|
|
2749
|
+
"account_on_hold",
|
|
2750
|
+
"verification_required",
|
|
2751
|
+
"billing_error",
|
|
2752
|
+
"rate_limit",
|
|
2753
|
+
"overloaded",
|
|
2754
|
+
"invalid_request",
|
|
2755
|
+
"model_not_found",
|
|
2756
|
+
"server_error",
|
|
2757
|
+
"unknown",
|
|
2758
|
+
"max_output_tokens",
|
|
2759
|
+
"cloud_credential_error"
|
|
2760
|
+
]);
|
|
2714
2761
|
var UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
2715
2762
|
var SOURCE = new RegExp(`^(?:claude|codex|opencode|cursor|grok|acp|pi):${UUID}$`, "i");
|
|
2716
2763
|
var STORAGE_DATABASES = new Set(["main", "ledger", "other"]);
|
|
@@ -29220,6 +29267,9 @@ var WORKFLOW_RESULT_TOOL_NAMES = {
|
|
|
29220
29267
|
"subork-answer": "submit_subork_answer"
|
|
29221
29268
|
};
|
|
29222
29269
|
var WORKFLOW_RESULT_VALIDATION_TOOL_NAME = "validate_workflow_result";
|
|
29270
|
+
var WORKFLOW_RESULT_TOOL_META = Object.freeze({
|
|
29271
|
+
"anthropic/alwaysLoad": true
|
|
29272
|
+
});
|
|
29223
29273
|
var REPORT_FINDING_TOOL_NAME = "report_finding";
|
|
29224
29274
|
var WORKFLOW_RESULT_KEY_MAX_LENGTH = 128;
|
|
29225
29275
|
var WORKFLOW_RESULT_TURN_MAX_SLOTS = 16;
|
|
@@ -928,13 +928,27 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
928
928
|
"plugins.read-failed": "Listing plugins failed; the route answered 500.",
|
|
929
929
|
"prompt.accepted": "The route accepted a prompt and answered 202.",
|
|
930
930
|
"prompt.failed": "A prompt turn failed; the session reports the error.",
|
|
931
|
-
"prompt.processing-
|
|
931
|
+
"prompt.processing-provider-refused": "A prompt accepted by the route ended on a provider refusal; the turn already logged prompt.provider-refused.",
|
|
932
|
+
"prompt.processing-failed": "A prompt accepted by the route failed while processing, before the turn could report it.",
|
|
933
|
+
"prompt.processing-reported": "A prompt accepted by the route failed; the turn already logged prompt.failed.",
|
|
932
934
|
"prompt.processing-usage-limited": "A prompt accepted by the route ended on a usage limit; the turn already logged prompt.usage-limited.",
|
|
935
|
+
"prompt.provider-refused": "A prompt turn ended because Claude refused it on the account's or the service's state; `reason` is the SDK's API error code and the session reports the error.",
|
|
933
936
|
"prompt.received": "A prompt reached the bridge; only its length is logged.",
|
|
934
937
|
"prompt.send-failed": "A prompt request failed; the route answered with an error.",
|
|
935
938
|
"prompt.usage-limited": "A prompt turn ended because the account's plan allowance is used up; the session reports the limit.",
|
|
936
939
|
"query.close-failed": "Stopping the Claude query failed while closing a tab; the close stays pending.",
|
|
937
|
-
"query.failed":
|
|
940
|
+
"query.failed": {
|
|
941
|
+
description: "A Claude query ended with an error result the bridge does not know to be the account's or the service's state: `subtype` and `isError` from the result, `reason` the SDK's API error code when the turn ended on one, `apiStatus` its HTTP status, `startupFailure` whether the CLI failed to start.",
|
|
942
|
+
essential: true,
|
|
943
|
+
fields: {
|
|
944
|
+
subtype: "label",
|
|
945
|
+
isError: "boolean",
|
|
946
|
+
reason: "label",
|
|
947
|
+
apiStatus: "number",
|
|
948
|
+
startupFailure: "boolean"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"query.provider-refused": "Claude refused a query on the account's or the service's state (a refused login, an account on hold, an overloaded or failing API); `reason` is the SDK's API error code and the turn reports the provider's words.",
|
|
938
952
|
"query.usage-limited": "Claude refused a query because the account's plan allowance is used up; the turn reports the limit.",
|
|
939
953
|
"question.answer-failed": "The answer-question route failed.",
|
|
940
954
|
"question.answering": "Answering a parked question.",
|
|
@@ -1527,6 +1541,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
1527
1541
|
"title.strategy-failed": "A session title strategy failed, so the next is tried. Content-free: the error can quote the prompt.",
|
|
1528
1542
|
"steer.qualification-failed": "A bridge's steer qualification failed or answered non-OK, so steering is not offered. Agent and status code or error class only.",
|
|
1529
1543
|
"steer.capability-cleared": "A projection cleared `actions.steer` because its bridge did not qualify. Identifiers and turn status only.",
|
|
1544
|
+
"queue.turn-not-running": "A projection holds queued prompts while its turn is not `running`; once per change of phase. Identifiers, phase and queue length only.",
|
|
1530
1545
|
...THROTTLE_LOG_EVENTS
|
|
1531
1546
|
}
|
|
1532
1547
|
},
|
|
@@ -2001,6 +2016,7 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
|
|
|
2001
2016
|
"sidebar.reconcile-failed": "Sidebar activity for pipelines could not be reconciled.",
|
|
2002
2017
|
"sidebar.update-failed": "The sidebar could not be updated for one pipeline.",
|
|
2003
2018
|
"result.consume-deferred": "Consuming a stage's workflow result failed; it stays staged and is retried.",
|
|
2019
|
+
"review.prompt-reads": "A review fan-out pass built or tried to build reviewer prompts; how many it built, and how often building them read the review instruction and project notes, failed reads included. Counts only.",
|
|
2004
2020
|
"consolidation.consume-deferred": "Consuming a review consolidation result failed; it stays pending and is retried.",
|
|
2005
2021
|
"dispatch.prepare-failed": "Attaching the agent before dispatch failed; the prompt request does the same work and answers authoritatively.",
|
|
2006
2022
|
"interaction.resolved": "A human interaction on a pipeline stage resolved. Metadata only.",
|
|
@@ -2049,6 +2065,8 @@ var CHANGE_TRACKING_LOG_AREAS = defineLogAreas({
|
|
|
2049
2065
|
"retention.failed": "A retention pass failed partway; what it deleted stands and the next pass goes on.",
|
|
2050
2066
|
"projection.failed": "Projecting a change event onto its environment failed.",
|
|
2051
2067
|
"startup.reconcile-failed": "Reconciling change tracking at startup failed.",
|
|
2068
|
+
"deleted-environments.purge-requested": "The startup reconcile found ledger rows of environments the environment store no longer holds and requested their purge.",
|
|
2069
|
+
"deleted-environments.reconcile-failed": "The startup reconcile of deleted environments could not read the environment store, so it requested no purge.",
|
|
2052
2070
|
"turn-start.capture-failed": "Capturing a turn's start failed, so the turn is untracked.",
|
|
2053
2071
|
"dispatch.record-failed": "Recording a turn's dispatch outcome failed.",
|
|
2054
2072
|
"turn.finalize-failed": "Finalizing a turn failed.",
|
|
@@ -2289,9 +2307,15 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
2289
2307
|
essential: true,
|
|
2290
2308
|
fields: { staleForMs: "number" }
|
|
2291
2309
|
},
|
|
2292
|
-
"writer-lease.listener-failed": "The callback told about a lost registry writer lease threw, so the schedules settings learn of the
|
|
2310
|
+
"writer-lease.listener-failed": "The callback told about a lost, or a late-won, registry writer lease threw, so the schedules settings learn of the change only at their next read.",
|
|
2311
|
+
"writer-lease.acquired-late": {
|
|
2312
|
+
description: "A backend that started without the registry writer lease won it later, because its holder stopped refreshing it (most often a crash just before this backend started). Schedules fire and container changes are allowed from now on; the `writer-lease.regained` line before it gives the stale lease's age.",
|
|
2313
|
+
essential: true,
|
|
2314
|
+
fields: {}
|
|
2315
|
+
},
|
|
2316
|
+
"writer-lease.retry-failed": "A backend without the registry writer lease could not try for it again for a reason other than the lease being held (an unreadable data directory, say). It tries again on its next tick.",
|
|
2293
2317
|
"writer-lease.not-acquired": {
|
|
2294
|
-
description: "This backend started without the registry writer lease, for the fixed `reason` given. A second backend on one data directory is normal: it serves reads, runs no schedules and refuses container changes.",
|
|
2318
|
+
description: "This backend started without the registry writer lease, for the fixed `reason` given. A second backend on one data directory is normal: it serves reads, runs no schedules and refuses container changes. A `busy` one keeps trying and writes `writer-lease.acquired-late` if it wins the lease once its holder stops refreshing it.",
|
|
2295
2319
|
essential: true,
|
|
2296
2320
|
fields: { reason: "label" }
|
|
2297
2321
|
},
|
|
@@ -2492,6 +2516,7 @@ var FEATURE_LOG_AREAS = defineLogAreas({
|
|
|
2492
2516
|
feature: {
|
|
2493
2517
|
description: "Pipeline environments started from a feature, and feature planning.",
|
|
2494
2518
|
events: {
|
|
2519
|
+
"debug-build.launched": "The debug button's pipeline environment was launched. Ids and counts only: no ticket text, transcript or screenshot.",
|
|
2495
2520
|
"naming.fallback": "Automatic naming failed, so a local fallback name is used. Error kind only: the description stays out.",
|
|
2496
2521
|
"planning.legacy-adopt-failed": "Legacy planning conversations could not be adopted.",
|
|
2497
2522
|
"planning.tick-retrying": "A planning tick failed on a transient error; the next tick retries."
|
|
@@ -3204,6 +3229,28 @@ var BRIDGE_LISTENER_REASONS = new Set([
|
|
|
3204
3229
|
"no-listener",
|
|
3205
3230
|
"launch-exited"
|
|
3206
3231
|
]);
|
|
3232
|
+
var CLAUDE_RESULT_SUBTYPES = new Set([
|
|
3233
|
+
"success",
|
|
3234
|
+
"error_during_execution",
|
|
3235
|
+
"error_max_turns",
|
|
3236
|
+
"error_max_budget_usd",
|
|
3237
|
+
"error_max_structured_output_retries"
|
|
3238
|
+
]);
|
|
3239
|
+
var CLAUDE_API_ERRORS = new Set([
|
|
3240
|
+
"authentication_failed",
|
|
3241
|
+
"oauth_org_not_allowed",
|
|
3242
|
+
"account_on_hold",
|
|
3243
|
+
"verification_required",
|
|
3244
|
+
"billing_error",
|
|
3245
|
+
"rate_limit",
|
|
3246
|
+
"overloaded",
|
|
3247
|
+
"invalid_request",
|
|
3248
|
+
"model_not_found",
|
|
3249
|
+
"server_error",
|
|
3250
|
+
"unknown",
|
|
3251
|
+
"max_output_tokens",
|
|
3252
|
+
"cloud_credential_error"
|
|
3253
|
+
]);
|
|
3207
3254
|
var UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
3208
3255
|
var SOURCE = new RegExp(`^(?:claude|codex|opencode|cursor|grok|acp|pi):${UUID}$`, "i");
|
|
3209
3256
|
var STORAGE_DATABASES = new Set(["main", "ledger", "other"]);
|
|
@@ -7944,6 +7991,9 @@ var WORKFLOW_RESULT_TOOL_NAMES = {
|
|
|
7944
7991
|
"subork-answer": "submit_subork_answer"
|
|
7945
7992
|
};
|
|
7946
7993
|
var WORKFLOW_RESULT_VALIDATION_TOOL_NAME = "validate_workflow_result";
|
|
7994
|
+
var WORKFLOW_RESULT_TOOL_META = Object.freeze({
|
|
7995
|
+
"anthropic/alwaysLoad": true
|
|
7996
|
+
});
|
|
7947
7997
|
var REPORT_FINDING_TOOL_NAME = "report_finding";
|
|
7948
7998
|
var WORKFLOW_RESULT_KEY_MAX_LENGTH = 128;
|
|
7949
7999
|
var WORKFLOW_RESULT_TURN_MAX_SLOTS = 16;
|