orkestrator 2.35.5-beta → 2.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +964 -486
- package/dist/main.js +50800 -44088
- package/package.json +3 -3
- package/resources/acp-bridge/dist/index.js +325 -242
- package/resources/claude-bridge/dist/index.js +187 -22
- package/resources/codex-bridge/dist/index.js +537 -113
- package/resources/cursor-bridge/dist/index.js +34 -6
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +69 -12
- package/resources/pi-bridge/runtime/install.json +1 -1
|
@@ -6,6 +6,7 @@ var port = parsePort(process.env.PORT);
|
|
|
6
6
|
var hostname = process.env.HOSTNAME?.trim() || "127.0.0.1";
|
|
7
7
|
var workingDirectory = resolve(process.env.CWD?.trim() || process.cwd());
|
|
8
8
|
var authToken = process.env.CURSOR_BRIDGE_TOKEN?.trim() || randomBytes(32).toString("base64url");
|
|
9
|
+
delete process.env.CURSOR_BRIDGE_TOKEN;
|
|
9
10
|
function applyWorkingDirectory(directory = workingDirectory) {
|
|
10
11
|
const target = resolve(directory);
|
|
11
12
|
if (process.cwd() === target)
|
|
@@ -25666,6 +25667,9 @@ function agentMailCapabilities(tabType, agent, locked = true) {
|
|
|
25666
25667
|
}
|
|
25667
25668
|
if (tabType === "claude-tmux")
|
|
25668
25669
|
return { canPull: true, canSend: true, canInject: true };
|
|
25670
|
+
if (tabType === "pipeline-worker") {
|
|
25671
|
+
return agent ? { canPull: true, canSend: true, canInject: true } : { canPull: false, canSend: false, canInject: false };
|
|
25672
|
+
}
|
|
25669
25673
|
if (["claude", "codex", "opencode"].includes(tabType)) {
|
|
25670
25674
|
return { canPull: true, canSend: true, canInject: false };
|
|
25671
25675
|
}
|
|
@@ -28290,7 +28294,7 @@ function newSessionState(clientSessionKey, policy) {
|
|
|
28290
28294
|
// ../protocol/src/secret-redaction.ts
|
|
28291
28295
|
var TEXT_RULES = [
|
|
28292
28296
|
{
|
|
28293
|
-
pattern: /([a-z][a-z0-9+.-]*:\/\/)[^/\s:@]+(?::[^/\s@]*)?@/gi,
|
|
28297
|
+
pattern: /(?<![a-z0-9+.-])([a-z][a-z0-9+.-]*:\/\/)[^/\s:@]+(?::[^/\s@]*)?@/gi,
|
|
28294
28298
|
replacement: "$1[redacted]@"
|
|
28295
28299
|
},
|
|
28296
28300
|
{
|
|
@@ -28310,7 +28314,7 @@ var TEXT_RULES = [
|
|
|
28310
28314
|
{ pattern: /\bAKIA[0-9A-Z]{12,}/g, replacement: "[redacted]" },
|
|
28311
28315
|
{ pattern: /\bAIza[0-9A-Za-z_-]{20,}/g, replacement: "[redacted]" },
|
|
28312
28316
|
{
|
|
28313
|
-
pattern:
|
|
28317
|
+
pattern: /(?<![A-Za-z0-9_-])(-*\b(?:[A-Za-z0-9]+[_-])*(?:api[_-]?key|apikey|access[_-]?token|refresh[_-]?token|auth[_-]?token|token|secret|client[_-]?secret|password|passwd|passphrase|authorization))("?\s*[:=]\s*)("?)(?!Bearer\b|Basic\b|\[redacted\])[^\s"',;)&]{6,}\3/gi,
|
|
28314
28318
|
replacement: "$1$2[redacted]"
|
|
28315
28319
|
}
|
|
28316
28320
|
];
|
|
@@ -28628,6 +28632,7 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
28628
28632
|
"session.created": "A session was created or recovered.",
|
|
28629
28633
|
"session.delete-failed": "Deleting a session failed.",
|
|
28630
28634
|
"session.fork-failed": "Forking a session failed.",
|
|
28635
|
+
"session.policy-widening-refused": "A config request tried to widen a live session's execution policy and was refused; widened names the axes.",
|
|
28631
28636
|
"session.rename-failed": "Renaming a session failed.",
|
|
28632
28637
|
"session.resolve-failed": "A session could not be found or loaded for a request; action names the request.",
|
|
28633
28638
|
"session.rewind-failed": "Rewinding session files failed.",
|
|
@@ -28760,6 +28765,7 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
28760
28765
|
"backend.keychain-link-remove-failed": "An agent-test profile kept a legacy link to the host keychain.",
|
|
28761
28766
|
"backend.start-failed": "The Local backend did not start; continuing with remote machines.",
|
|
28762
28767
|
"clipboard.write-failed": "Writing text to the system clipboard failed.",
|
|
28768
|
+
"dev-mode.ignored-packaged": "A packaged app was launched with ELECTRON_DEV=1 and ignored it; it loads its bundled renderer.",
|
|
28763
28769
|
"instance.already-running": "Another instance holds this data directory; this one will quit.",
|
|
28764
28770
|
"main-thread.stalled": "A timer fired late, so windows, IPC and the stdout reader waited.",
|
|
28765
28771
|
"quit.stopping-backend": "The app is quitting and has asked the Local backend to stop.",
|
|
@@ -28832,7 +28838,8 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
28832
28838
|
description: "Preparing the pinned agent toolchain at desktop startup.",
|
|
28833
28839
|
events: {
|
|
28834
28840
|
"bootstrap-progress.show-failed": "The toolchain progress window could not be shown.",
|
|
28835
|
-
"prepare.failed": "Preparing the pinned agent tools failed."
|
|
28841
|
+
"prepare.failed": "Preparing the pinned agent tools failed.",
|
|
28842
|
+
"prepare.ready": "The pinned agent tools were verified and activated; durationMs is how long startup waited."
|
|
28836
28843
|
}
|
|
28837
28844
|
},
|
|
28838
28845
|
"artifact-host": {
|
|
@@ -29020,6 +29027,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
29020
29027
|
description: "Native agent sessions and what the backend reads from their bridges.",
|
|
29021
29028
|
events: {
|
|
29022
29029
|
"catalogue.outdated-bridge": "A bridge predates the command catalogue, so its commands stay unavailable.",
|
|
29030
|
+
"compact.instructions-ignored": "A bridge compacted without confirming the instructions sent with /compact: it predates them.",
|
|
29023
29031
|
"handoff.summary-read-failed": "Change summaries could not be read for a handoff, so the carrier says they are unmeasured.",
|
|
29024
29032
|
"handoff.consume-failed": "A delivered handoff could not be marked consumed.",
|
|
29025
29033
|
"job.pr-refresh-rollback-failed": "Rolling back a pull request refresh for a job failed.",
|
|
@@ -29275,6 +29283,8 @@ var TMUX_LOG_AREAS = defineLogAreas({
|
|
|
29275
29283
|
"interactive.snapshot-failed": "An interactive snapshot failed; expected while a pane is closing.",
|
|
29276
29284
|
"signal.arm-failed": "The Claude state signal could not be armed.",
|
|
29277
29285
|
"signal.degraded": "The Claude state signal missed a change or rang too often, so polling stays at one second until it is re-armed.",
|
|
29286
|
+
"hook-signal.arm-failed": "The tmux hook doorbell could not be armed.",
|
|
29287
|
+
"hook-signal.degraded": "The tmux hook doorbell missed a hook, so idle tabs poll every second until it is re-armed.",
|
|
29278
29288
|
"pr-refresh.schedule-failed": "A pull request refresh after a turn could not be scheduled.",
|
|
29279
29289
|
"pr-probe.failed": "Probing for a pull request an agent created failed.",
|
|
29280
29290
|
"activity.persist-failed": "Tmux tab activity could not be saved.",
|
|
@@ -29394,6 +29404,7 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
|
|
|
29394
29404
|
"usage.read-failed": "Reading a stage session's token usage failed.",
|
|
29395
29405
|
"checkpoint.deferred": "A stage transcript checkpoint could not be written yet; the provider's history stands.",
|
|
29396
29406
|
"checkpoint.not-committed": "A stage transcript checkpoint was reverted in the commit that should have kept it.",
|
|
29407
|
+
"worker-mail.claim-failed": "Mail queued for a worker could not be claimed at its turn end; it stays queued.",
|
|
29397
29408
|
"legacy-transcript.deferred": "Moving a legacy inline transcript failed; the inline body stays readable."
|
|
29398
29409
|
}
|
|
29399
29410
|
}
|
|
@@ -29456,18 +29467,27 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
29456
29467
|
"work.move-failed": "Work could not move to the main coordinator.",
|
|
29457
29468
|
"wake.observe-remote-workflow-failed": "A remote workflow could not be observed for status wakes.",
|
|
29458
29469
|
"wake.observe-pull-request-failed": "A pull request could not be observed for status wakes.",
|
|
29470
|
+
"wake.observe-feature-plan-failed": "A feature plan could not be observed for status wakes.",
|
|
29459
29471
|
"wake.observe-workflow-failed": "A workflow could not be observed for status wakes.",
|
|
29460
29472
|
"wake.deliver-failed": "A workflow status wake could not be delivered; the next pass retries.",
|
|
29461
29473
|
"wake.waiting-check-failed": "A waiting worker could not be checked; the next pass retries.",
|
|
29462
29474
|
"wake.resolve-report-failed": "A finished Resolve tab could not be reported.",
|
|
29463
29475
|
"wake.waiting-report-failed": "A waiting worker could not be reported.",
|
|
29464
29476
|
"wake.worker-outcomes-failed": "Coordinator-owned workers' merges and deletions could not be checked; the next sweep retries.",
|
|
29477
|
+
"pr-watch.added": "A pull request a coordinator conversation showed joined the project's watch; `source` says how.",
|
|
29478
|
+
"pr-watch.observe-failed": "A watched pull request could not be observed; the next sweep retries.",
|
|
29479
|
+
"pr-watch.read-failed": "GitHub could not be read for a watched pull request; `code` is the error category.",
|
|
29480
|
+
"pr-watch.removed": "A watched pull request stopped being watched without a reading; `reason` is `deleted` (GitHub confirmed it is gone) or `unreadable` (not found for the give-up period).",
|
|
29465
29481
|
"store.malformed": "The coordinator store was malformed and is treated as empty.",
|
|
29466
29482
|
"store.unsupported-version": "The coordinator store has an unsupported version and is treated as empty.",
|
|
29467
29483
|
"store.invalid-workspace": "An invalid coordinator workspace record was ignored.",
|
|
29468
29484
|
"store.workflows-cleared": "The workflow store was full, so a batch of its oldest finished records was removed.",
|
|
29469
29485
|
"store.workflows-in-use": "The workflow store was full and every record was still in use, so new work was refused.",
|
|
29470
|
-
"remote-worker.settle-failed": "A remote worker could not be settled."
|
|
29486
|
+
"remote-worker.settle-failed": "A remote worker could not be settled.",
|
|
29487
|
+
"checkout.merge-followed": "After an environment's PR merged, the project checkout was fast-forwarded, or `outcome` says why not.",
|
|
29488
|
+
"checkout.merge-follow-failed": "Fast-forwarding the project checkout failed, after an environment's PR merged or before mail woke the main coordinator.",
|
|
29489
|
+
"checkout.mail-follow": "Before mail woke the main coordinator, the project checkout was fast-forwarded, or `outcome` says why not (`timed-out`, `failed`).",
|
|
29490
|
+
"checkout.mail-follow-failed": "Before mail woke the main coordinator, checking whether to fast-forward the project checkout failed; the mail was delivered anyway."
|
|
29471
29491
|
}
|
|
29472
29492
|
}
|
|
29473
29493
|
});
|
|
@@ -29499,6 +29519,7 @@ var REVIEW_LOG_AREAS = defineLogAreas({
|
|
|
29499
29519
|
"gh.pr-list-unparseable": "`gh pr list` returned nothing that parses. Sizes only, never the output.",
|
|
29500
29520
|
"monitor.start-failed": "Monitoring could not start for a newly opened pull request.",
|
|
29501
29521
|
"cleanup-scheduler.missing": "A merged pull request was seen, but this runtime has no merge cleanup scheduler.",
|
|
29522
|
+
"checkout.follow-merge-lookup-failed": "A merged pull request's project could not be read, so its checkout was not fast-forwarded.",
|
|
29502
29523
|
"auto-merge.evaluation-failed": "Evaluating an environment for auto-merge failed.",
|
|
29503
29524
|
"auto-merge.merge-failed": "Auto-merge could not merge a pull request; the attempt is held and retried.",
|
|
29504
29525
|
"auto-merge.resolve-failed": "Auto-merge could not launch Resolve for a pull request; the attempt is held and retried.",
|
|
@@ -29542,6 +29563,8 @@ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
|
|
|
29542
29563
|
"container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
|
|
29543
29564
|
"last-usage.save-failed": "The last plan usage reading could not be saved; the next save retries.",
|
|
29544
29565
|
"login-cleanup.failed": "A temporary login could not be cleaned up.",
|
|
29566
|
+
"login-renewal.failed": "Renewing an idle account's sign-in to read its usage failed; it is retried after a backoff.",
|
|
29567
|
+
"login-renewal.not-extended": "Claude Code ran to renew an idle account's sign-in, but its token is still lapsed.",
|
|
29545
29568
|
"login-refresh.deferred": "Containers were not told to refresh their login now; they reconcile from its durable generation."
|
|
29546
29569
|
}
|
|
29547
29570
|
}
|
|
@@ -29555,6 +29578,7 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
29555
29578
|
"portable-inputs.relay-missing": "Docker is rootless and the image predates the staged-input relay, so the container cannot read them until rebuilt.",
|
|
29556
29579
|
"project-seed.refused": "A project .env, .env.local or opencode.json was not copied into a new container: a link, not a regular file, outside the project, too large or unreadable.",
|
|
29557
29580
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
29581
|
+
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
29558
29582
|
"login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
|
|
29559
29583
|
"login-keeper.refresh-failed": "Refreshing the host Claude login failed. Fixed text: CLI output can hold credentials.",
|
|
29560
29584
|
"login-keeper.refresh-not-extended": "Refreshing the host Claude login did not extend its expiry.",
|
|
@@ -29678,7 +29702,7 @@ var GRAPH_LOG_AREAS = defineLogAreas({
|
|
|
29678
29702
|
// ../protocol/src/log-vocabulary/nodes.ts
|
|
29679
29703
|
var NODES_LOG_AREAS = defineLogAreas({
|
|
29680
29704
|
nodes: {
|
|
29681
|
-
description: "Command nodes: links, handovers, leaf mail and project copies.",
|
|
29705
|
+
description: "Command nodes: links, handovers, leaf mail, ticket sync and project copies.",
|
|
29682
29706
|
events: {
|
|
29683
29707
|
"actions.resume-failed": "Approved actions could not be resumed; a later pass retries.",
|
|
29684
29708
|
"project-copy.notify-failed": "The coordinator could not be told a project copy finished.",
|
|
@@ -29690,7 +29714,11 @@ var NODES_LOG_AREAS = defineLogAreas({
|
|
|
29690
29714
|
"verification.record-failed": "A node verification could not be recorded.",
|
|
29691
29715
|
"profile.record-failed": "A node profile could not be recorded.",
|
|
29692
29716
|
"detach.unconfirmed": "A forgotten node has not confirmed the detach yet.",
|
|
29693
|
-
"handover.recovery-pending": "Command handover recovery is still pending."
|
|
29717
|
+
"handover.recovery-pending": "Command handover recovery is still pending.",
|
|
29718
|
+
"ticket-sync.work-record-failed": "A remote build started but its ticket work location could not be saved.",
|
|
29719
|
+
"ticket-sync.failed": "A Kanban sync with a node failed; it is retried.",
|
|
29720
|
+
"ticket-sync.unknown-project": "A node sent ticket changes for a project that no longer exists here.",
|
|
29721
|
+
"ticket-sync.forget-failed": "A detached command node's ticket copies could not be released."
|
|
29694
29722
|
}
|
|
29695
29723
|
}
|
|
29696
29724
|
});
|
|
@@ -499,6 +499,7 @@ var port = parsePort(process.env.PORT);
|
|
|
499
499
|
var hostname = process.env.HOSTNAME?.trim() || "127.0.0.1";
|
|
500
500
|
var workingDirectory = resolve(process.env.CWD?.trim() || process.cwd());
|
|
501
501
|
var authToken = process.env.PI_BRIDGE_TOKEN?.trim() || randomBytes(32).toString("base64url");
|
|
502
|
+
delete process.env.PI_BRIDGE_TOKEN;
|
|
502
503
|
function stateFilePath() {
|
|
503
504
|
const directory = process.env.PI_BRIDGE_STATE_DIR?.trim();
|
|
504
505
|
return directory ? resolve(directory, "state.json") : null;
|
|
@@ -2434,6 +2435,27 @@ var SUPPRESSED_COMPOSER_PARAMETERS = Object.freeze({
|
|
|
2434
2435
|
claude: Object.freeze(["parameter:thinking", "parameter:context1m"]),
|
|
2435
2436
|
cursor: Object.freeze(["parameter:variant"])
|
|
2436
2437
|
});
|
|
2438
|
+
var COMPACT_INSTRUCTIONS_MAX_LENGTH = 16000;
|
|
2439
|
+
function parseCompactInstructionsBody(body) {
|
|
2440
|
+
if (body === undefined || body === null)
|
|
2441
|
+
return { ok: true };
|
|
2442
|
+
if (typeof body !== "object" || Array.isArray(body)) {
|
|
2443
|
+
return { ok: false, error: "Compact request body must be an object" };
|
|
2444
|
+
}
|
|
2445
|
+
const raw = body.instructions;
|
|
2446
|
+
if (raw === undefined)
|
|
2447
|
+
return { ok: true };
|
|
2448
|
+
if (typeof raw !== "string")
|
|
2449
|
+
return { ok: false, error: "instructions must be a string" };
|
|
2450
|
+
const instructions = raw.trim();
|
|
2451
|
+
if (instructions.length > COMPACT_INSTRUCTIONS_MAX_LENGTH) {
|
|
2452
|
+
return {
|
|
2453
|
+
ok: false,
|
|
2454
|
+
error: `instructions must be at most ${COMPACT_INSTRUCTIONS_MAX_LENGTH} characters`
|
|
2455
|
+
};
|
|
2456
|
+
}
|
|
2457
|
+
return instructions ? { ok: true, instructions } : { ok: true };
|
|
2458
|
+
}
|
|
2437
2459
|
function isNativeAgentExecutionPolicy(value) {
|
|
2438
2460
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
2439
2461
|
return false;
|
|
@@ -4120,6 +4142,9 @@ function agentMailCapabilities(tabType, agent, locked = true) {
|
|
|
4120
4142
|
}
|
|
4121
4143
|
if (tabType === "claude-tmux")
|
|
4122
4144
|
return { canPull: true, canSend: true, canInject: true };
|
|
4145
|
+
if (tabType === "pipeline-worker") {
|
|
4146
|
+
return agent ? { canPull: true, canSend: true, canInject: true } : { canPull: false, canSend: false, canInject: false };
|
|
4147
|
+
}
|
|
4123
4148
|
if (["claude", "codex", "opencode"].includes(tabType)) {
|
|
4124
4149
|
return { canPull: true, canSend: true, canInject: false };
|
|
4125
4150
|
}
|
|
@@ -4133,7 +4158,7 @@ var NATIVE_AGENT_MAIL_CAPABILITIES = Object.freeze(Object.fromEntries(AGENT_PLAT
|
|
|
4133
4158
|
// ../protocol/src/secret-redaction.ts
|
|
4134
4159
|
var TEXT_RULES = [
|
|
4135
4160
|
{
|
|
4136
|
-
pattern: /([a-z][a-z0-9+.-]*:\/\/)[^/\s:@]+(?::[^/\s@]*)?@/gi,
|
|
4161
|
+
pattern: /(?<![a-z0-9+.-])([a-z][a-z0-9+.-]*:\/\/)[^/\s:@]+(?::[^/\s@]*)?@/gi,
|
|
4137
4162
|
replacement: "$1[redacted]@"
|
|
4138
4163
|
},
|
|
4139
4164
|
{
|
|
@@ -4153,7 +4178,7 @@ var TEXT_RULES = [
|
|
|
4153
4178
|
{ pattern: /\bAKIA[0-9A-Z]{12,}/g, replacement: "[redacted]" },
|
|
4154
4179
|
{ pattern: /\bAIza[0-9A-Za-z_-]{20,}/g, replacement: "[redacted]" },
|
|
4155
4180
|
{
|
|
4156
|
-
pattern:
|
|
4181
|
+
pattern: /(?<![A-Za-z0-9_-])(-*\b(?:[A-Za-z0-9]+[_-])*(?:api[_-]?key|apikey|access[_-]?token|refresh[_-]?token|auth[_-]?token|token|secret|client[_-]?secret|password|passwd|passphrase|authorization))("?\s*[:=]\s*)("?)(?!Bearer\b|Basic\b|\[redacted\])[^\s"',;)&]{6,}\3/gi,
|
|
4157
4182
|
replacement: "$1$2[redacted]"
|
|
4158
4183
|
}
|
|
4159
4184
|
];
|
|
@@ -29044,6 +29069,7 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
29044
29069
|
"session.created": "A session was created or recovered.",
|
|
29045
29070
|
"session.delete-failed": "Deleting a session failed.",
|
|
29046
29071
|
"session.fork-failed": "Forking a session failed.",
|
|
29072
|
+
"session.policy-widening-refused": "A config request tried to widen a live session's execution policy and was refused; widened names the axes.",
|
|
29047
29073
|
"session.rename-failed": "Renaming a session failed.",
|
|
29048
29074
|
"session.resolve-failed": "A session could not be found or loaded for a request; action names the request.",
|
|
29049
29075
|
"session.rewind-failed": "Rewinding session files failed.",
|
|
@@ -29176,6 +29202,7 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
29176
29202
|
"backend.keychain-link-remove-failed": "An agent-test profile kept a legacy link to the host keychain.",
|
|
29177
29203
|
"backend.start-failed": "The Local backend did not start; continuing with remote machines.",
|
|
29178
29204
|
"clipboard.write-failed": "Writing text to the system clipboard failed.",
|
|
29205
|
+
"dev-mode.ignored-packaged": "A packaged app was launched with ELECTRON_DEV=1 and ignored it; it loads its bundled renderer.",
|
|
29179
29206
|
"instance.already-running": "Another instance holds this data directory; this one will quit.",
|
|
29180
29207
|
"main-thread.stalled": "A timer fired late, so windows, IPC and the stdout reader waited.",
|
|
29181
29208
|
"quit.stopping-backend": "The app is quitting and has asked the Local backend to stop.",
|
|
@@ -29248,7 +29275,8 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
29248
29275
|
description: "Preparing the pinned agent toolchain at desktop startup.",
|
|
29249
29276
|
events: {
|
|
29250
29277
|
"bootstrap-progress.show-failed": "The toolchain progress window could not be shown.",
|
|
29251
|
-
"prepare.failed": "Preparing the pinned agent tools failed."
|
|
29278
|
+
"prepare.failed": "Preparing the pinned agent tools failed.",
|
|
29279
|
+
"prepare.ready": "The pinned agent tools were verified and activated; durationMs is how long startup waited."
|
|
29252
29280
|
}
|
|
29253
29281
|
},
|
|
29254
29282
|
"artifact-host": {
|
|
@@ -29436,6 +29464,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
29436
29464
|
description: "Native agent sessions and what the backend reads from their bridges.",
|
|
29437
29465
|
events: {
|
|
29438
29466
|
"catalogue.outdated-bridge": "A bridge predates the command catalogue, so its commands stay unavailable.",
|
|
29467
|
+
"compact.instructions-ignored": "A bridge compacted without confirming the instructions sent with /compact: it predates them.",
|
|
29439
29468
|
"handoff.summary-read-failed": "Change summaries could not be read for a handoff, so the carrier says they are unmeasured.",
|
|
29440
29469
|
"handoff.consume-failed": "A delivered handoff could not be marked consumed.",
|
|
29441
29470
|
"job.pr-refresh-rollback-failed": "Rolling back a pull request refresh for a job failed.",
|
|
@@ -29691,6 +29720,8 @@ var TMUX_LOG_AREAS = defineLogAreas({
|
|
|
29691
29720
|
"interactive.snapshot-failed": "An interactive snapshot failed; expected while a pane is closing.",
|
|
29692
29721
|
"signal.arm-failed": "The Claude state signal could not be armed.",
|
|
29693
29722
|
"signal.degraded": "The Claude state signal missed a change or rang too often, so polling stays at one second until it is re-armed.",
|
|
29723
|
+
"hook-signal.arm-failed": "The tmux hook doorbell could not be armed.",
|
|
29724
|
+
"hook-signal.degraded": "The tmux hook doorbell missed a hook, so idle tabs poll every second until it is re-armed.",
|
|
29694
29725
|
"pr-refresh.schedule-failed": "A pull request refresh after a turn could not be scheduled.",
|
|
29695
29726
|
"pr-probe.failed": "Probing for a pull request an agent created failed.",
|
|
29696
29727
|
"activity.persist-failed": "Tmux tab activity could not be saved.",
|
|
@@ -29810,6 +29841,7 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
|
|
|
29810
29841
|
"usage.read-failed": "Reading a stage session's token usage failed.",
|
|
29811
29842
|
"checkpoint.deferred": "A stage transcript checkpoint could not be written yet; the provider's history stands.",
|
|
29812
29843
|
"checkpoint.not-committed": "A stage transcript checkpoint was reverted in the commit that should have kept it.",
|
|
29844
|
+
"worker-mail.claim-failed": "Mail queued for a worker could not be claimed at its turn end; it stays queued.",
|
|
29813
29845
|
"legacy-transcript.deferred": "Moving a legacy inline transcript failed; the inline body stays readable."
|
|
29814
29846
|
}
|
|
29815
29847
|
}
|
|
@@ -29872,18 +29904,27 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
29872
29904
|
"work.move-failed": "Work could not move to the main coordinator.",
|
|
29873
29905
|
"wake.observe-remote-workflow-failed": "A remote workflow could not be observed for status wakes.",
|
|
29874
29906
|
"wake.observe-pull-request-failed": "A pull request could not be observed for status wakes.",
|
|
29907
|
+
"wake.observe-feature-plan-failed": "A feature plan could not be observed for status wakes.",
|
|
29875
29908
|
"wake.observe-workflow-failed": "A workflow could not be observed for status wakes.",
|
|
29876
29909
|
"wake.deliver-failed": "A workflow status wake could not be delivered; the next pass retries.",
|
|
29877
29910
|
"wake.waiting-check-failed": "A waiting worker could not be checked; the next pass retries.",
|
|
29878
29911
|
"wake.resolve-report-failed": "A finished Resolve tab could not be reported.",
|
|
29879
29912
|
"wake.waiting-report-failed": "A waiting worker could not be reported.",
|
|
29880
29913
|
"wake.worker-outcomes-failed": "Coordinator-owned workers' merges and deletions could not be checked; the next sweep retries.",
|
|
29914
|
+
"pr-watch.added": "A pull request a coordinator conversation showed joined the project's watch; `source` says how.",
|
|
29915
|
+
"pr-watch.observe-failed": "A watched pull request could not be observed; the next sweep retries.",
|
|
29916
|
+
"pr-watch.read-failed": "GitHub could not be read for a watched pull request; `code` is the error category.",
|
|
29917
|
+
"pr-watch.removed": "A watched pull request stopped being watched without a reading; `reason` is `deleted` (GitHub confirmed it is gone) or `unreadable` (not found for the give-up period).",
|
|
29881
29918
|
"store.malformed": "The coordinator store was malformed and is treated as empty.",
|
|
29882
29919
|
"store.unsupported-version": "The coordinator store has an unsupported version and is treated as empty.",
|
|
29883
29920
|
"store.invalid-workspace": "An invalid coordinator workspace record was ignored.",
|
|
29884
29921
|
"store.workflows-cleared": "The workflow store was full, so a batch of its oldest finished records was removed.",
|
|
29885
29922
|
"store.workflows-in-use": "The workflow store was full and every record was still in use, so new work was refused.",
|
|
29886
|
-
"remote-worker.settle-failed": "A remote worker could not be settled."
|
|
29923
|
+
"remote-worker.settle-failed": "A remote worker could not be settled.",
|
|
29924
|
+
"checkout.merge-followed": "After an environment's PR merged, the project checkout was fast-forwarded, or `outcome` says why not.",
|
|
29925
|
+
"checkout.merge-follow-failed": "Fast-forwarding the project checkout failed, after an environment's PR merged or before mail woke the main coordinator.",
|
|
29926
|
+
"checkout.mail-follow": "Before mail woke the main coordinator, the project checkout was fast-forwarded, or `outcome` says why not (`timed-out`, `failed`).",
|
|
29927
|
+
"checkout.mail-follow-failed": "Before mail woke the main coordinator, checking whether to fast-forward the project checkout failed; the mail was delivered anyway."
|
|
29887
29928
|
}
|
|
29888
29929
|
}
|
|
29889
29930
|
});
|
|
@@ -29915,6 +29956,7 @@ var REVIEW_LOG_AREAS = defineLogAreas({
|
|
|
29915
29956
|
"gh.pr-list-unparseable": "`gh pr list` returned nothing that parses. Sizes only, never the output.",
|
|
29916
29957
|
"monitor.start-failed": "Monitoring could not start for a newly opened pull request.",
|
|
29917
29958
|
"cleanup-scheduler.missing": "A merged pull request was seen, but this runtime has no merge cleanup scheduler.",
|
|
29959
|
+
"checkout.follow-merge-lookup-failed": "A merged pull request's project could not be read, so its checkout was not fast-forwarded.",
|
|
29918
29960
|
"auto-merge.evaluation-failed": "Evaluating an environment for auto-merge failed.",
|
|
29919
29961
|
"auto-merge.merge-failed": "Auto-merge could not merge a pull request; the attempt is held and retried.",
|
|
29920
29962
|
"auto-merge.resolve-failed": "Auto-merge could not launch Resolve for a pull request; the attempt is held and retried.",
|
|
@@ -29958,6 +30000,8 @@ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
|
|
|
29958
30000
|
"container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
|
|
29959
30001
|
"last-usage.save-failed": "The last plan usage reading could not be saved; the next save retries.",
|
|
29960
30002
|
"login-cleanup.failed": "A temporary login could not be cleaned up.",
|
|
30003
|
+
"login-renewal.failed": "Renewing an idle account's sign-in to read its usage failed; it is retried after a backoff.",
|
|
30004
|
+
"login-renewal.not-extended": "Claude Code ran to renew an idle account's sign-in, but its token is still lapsed.",
|
|
29961
30005
|
"login-refresh.deferred": "Containers were not told to refresh their login now; they reconcile from its durable generation."
|
|
29962
30006
|
}
|
|
29963
30007
|
}
|
|
@@ -29971,6 +30015,7 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
29971
30015
|
"portable-inputs.relay-missing": "Docker is rootless and the image predates the staged-input relay, so the container cannot read them until rebuilt.",
|
|
29972
30016
|
"project-seed.refused": "A project .env, .env.local or opencode.json was not copied into a new container: a link, not a regular file, outside the project, too large or unreadable.",
|
|
29973
30017
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
30018
|
+
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
29974
30019
|
"login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
|
|
29975
30020
|
"login-keeper.refresh-failed": "Refreshing the host Claude login failed. Fixed text: CLI output can hold credentials.",
|
|
29976
30021
|
"login-keeper.refresh-not-extended": "Refreshing the host Claude login did not extend its expiry.",
|
|
@@ -30094,7 +30139,7 @@ var GRAPH_LOG_AREAS = defineLogAreas({
|
|
|
30094
30139
|
// ../protocol/src/log-vocabulary/nodes.ts
|
|
30095
30140
|
var NODES_LOG_AREAS = defineLogAreas({
|
|
30096
30141
|
nodes: {
|
|
30097
|
-
description: "Command nodes: links, handovers, leaf mail and project copies.",
|
|
30142
|
+
description: "Command nodes: links, handovers, leaf mail, ticket sync and project copies.",
|
|
30098
30143
|
events: {
|
|
30099
30144
|
"actions.resume-failed": "Approved actions could not be resumed; a later pass retries.",
|
|
30100
30145
|
"project-copy.notify-failed": "The coordinator could not be told a project copy finished.",
|
|
@@ -30106,7 +30151,11 @@ var NODES_LOG_AREAS = defineLogAreas({
|
|
|
30106
30151
|
"verification.record-failed": "A node verification could not be recorded.",
|
|
30107
30152
|
"profile.record-failed": "A node profile could not be recorded.",
|
|
30108
30153
|
"detach.unconfirmed": "A forgotten node has not confirmed the detach yet.",
|
|
30109
|
-
"handover.recovery-pending": "Command handover recovery is still pending."
|
|
30154
|
+
"handover.recovery-pending": "Command handover recovery is still pending.",
|
|
30155
|
+
"ticket-sync.work-record-failed": "A remote build started but its ticket work location could not be saved.",
|
|
30156
|
+
"ticket-sync.failed": "A Kanban sync with a node failed; it is retried.",
|
|
30157
|
+
"ticket-sync.unknown-project": "A node sent ticket changes for a project that no longer exists here.",
|
|
30158
|
+
"ticket-sync.forget-failed": "A detached command node's ticket copies could not be released."
|
|
30110
30159
|
}
|
|
30111
30160
|
}
|
|
30112
30161
|
});
|
|
@@ -37804,7 +37853,7 @@ async function routeSession(request, response, url, clientSignal) {
|
|
|
37804
37853
|
return await handleCancel(response, state);
|
|
37805
37854
|
}
|
|
37806
37855
|
if (action === "compact" && request.method === "POST") {
|
|
37807
|
-
return await handleCompact(response, state);
|
|
37856
|
+
return await handleCompact(request, response, state);
|
|
37808
37857
|
}
|
|
37809
37858
|
if (action === "steer" && request.method === "POST") {
|
|
37810
37859
|
return await handleSteer(request, response, state);
|
|
@@ -37906,7 +37955,7 @@ async function handleCancel(response, state) {
|
|
|
37906
37955
|
}
|
|
37907
37956
|
return json(response, 200, { cancelled: false });
|
|
37908
37957
|
}
|
|
37909
|
-
async function handleCompact(response, state) {
|
|
37958
|
+
async function handleCompact(request, response, state) {
|
|
37910
37959
|
assertSessionOpen(state);
|
|
37911
37960
|
if (state.status === "running" || state.dispatching || state.compacting || state.commandReload || state.promptClaim !== undefined) {
|
|
37912
37961
|
throw new HttpError(409, "Session is already running");
|
|
@@ -37914,9 +37963,14 @@ async function handleCompact(response, state) {
|
|
|
37914
37963
|
state.dispatching = true;
|
|
37915
37964
|
state.compacting = true;
|
|
37916
37965
|
state.revision += 1;
|
|
37966
|
+
let instructions;
|
|
37917
37967
|
try {
|
|
37968
|
+
const parsed = parseCompactInstructionsBody(await readJsonValue(request));
|
|
37969
|
+
if (!parsed.ok)
|
|
37970
|
+
throw new HttpError(400, parsed.error);
|
|
37971
|
+
instructions = parsed.instructions;
|
|
37918
37972
|
const session = await ensureSession(state);
|
|
37919
|
-
await session.compact();
|
|
37973
|
+
await session.compact(instructions);
|
|
37920
37974
|
} finally {
|
|
37921
37975
|
state.compacting = false;
|
|
37922
37976
|
state.dispatching = false;
|
|
@@ -37926,7 +37980,7 @@ async function handleCompact(response, state) {
|
|
|
37926
37980
|
return;
|
|
37927
37981
|
});
|
|
37928
37982
|
}
|
|
37929
|
-
return json(response, 200, { compacted: true });
|
|
37983
|
+
return json(response, 200, instructions ? { compacted: true, instructions: "applied" } : { compacted: true });
|
|
37930
37984
|
}
|
|
37931
37985
|
async function handleSteer(request, response, state) {
|
|
37932
37986
|
const body = await readJson(request);
|
|
@@ -38437,6 +38491,10 @@ function readBoundedString(value, limit, field) {
|
|
|
38437
38491
|
return trimmed;
|
|
38438
38492
|
}
|
|
38439
38493
|
async function readJson(request) {
|
|
38494
|
+
const parsed = await readJsonValue(request);
|
|
38495
|
+
return isObject(parsed) ? parsed : {};
|
|
38496
|
+
}
|
|
38497
|
+
async function readJsonValue(request) {
|
|
38440
38498
|
const chunks = [];
|
|
38441
38499
|
let total = 0;
|
|
38442
38500
|
for await (const chunk of request) {
|
|
@@ -38449,8 +38507,7 @@ async function readJson(request) {
|
|
|
38449
38507
|
if (total === 0)
|
|
38450
38508
|
return {};
|
|
38451
38509
|
try {
|
|
38452
|
-
|
|
38453
|
-
return isObject(parsed) ? parsed : {};
|
|
38510
|
+
return JSON.parse(Buffer.concat(chunks).toString("utf8"));
|
|
38454
38511
|
} catch {
|
|
38455
38512
|
throw new HttpError(400, "Request body must be JSON");
|
|
38456
38513
|
}
|