orkestrator 2.35.5-beta → 2.36.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/dist/client.js +956 -486
- package/dist/main.js +48232 -43225
- package/package.json +3 -3
- package/resources/acp-bridge/dist/index.js +317 -242
- package/resources/claude-bridge/dist/index.js +179 -22
- package/resources/codex-bridge/dist/index.js +529 -113
- package/resources/cursor-bridge/dist/index.js +26 -6
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +61 -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)
|
|
@@ -28290,7 +28291,7 @@ function newSessionState(clientSessionKey, policy) {
|
|
|
28290
28291
|
// ../protocol/src/secret-redaction.ts
|
|
28291
28292
|
var TEXT_RULES = [
|
|
28292
28293
|
{
|
|
28293
|
-
pattern: /([a-z][a-z0-9+.-]*:\/\/)[^/\s:@]+(?::[^/\s@]*)?@/gi,
|
|
28294
|
+
pattern: /(?<![a-z0-9+.-])([a-z][a-z0-9+.-]*:\/\/)[^/\s:@]+(?::[^/\s@]*)?@/gi,
|
|
28294
28295
|
replacement: "$1[redacted]@"
|
|
28295
28296
|
},
|
|
28296
28297
|
{
|
|
@@ -28310,7 +28311,7 @@ var TEXT_RULES = [
|
|
|
28310
28311
|
{ pattern: /\bAKIA[0-9A-Z]{12,}/g, replacement: "[redacted]" },
|
|
28311
28312
|
{ pattern: /\bAIza[0-9A-Za-z_-]{20,}/g, replacement: "[redacted]" },
|
|
28312
28313
|
{
|
|
28313
|
-
pattern:
|
|
28314
|
+
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
28315
|
replacement: "$1$2[redacted]"
|
|
28315
28316
|
}
|
|
28316
28317
|
];
|
|
@@ -28628,6 +28629,7 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
28628
28629
|
"session.created": "A session was created or recovered.",
|
|
28629
28630
|
"session.delete-failed": "Deleting a session failed.",
|
|
28630
28631
|
"session.fork-failed": "Forking a session failed.",
|
|
28632
|
+
"session.policy-widening-refused": "A config request tried to widen a live session's execution policy and was refused; widened names the axes.",
|
|
28631
28633
|
"session.rename-failed": "Renaming a session failed.",
|
|
28632
28634
|
"session.resolve-failed": "A session could not be found or loaded for a request; action names the request.",
|
|
28633
28635
|
"session.rewind-failed": "Rewinding session files failed.",
|
|
@@ -28760,6 +28762,7 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
28760
28762
|
"backend.keychain-link-remove-failed": "An agent-test profile kept a legacy link to the host keychain.",
|
|
28761
28763
|
"backend.start-failed": "The Local backend did not start; continuing with remote machines.",
|
|
28762
28764
|
"clipboard.write-failed": "Writing text to the system clipboard failed.",
|
|
28765
|
+
"dev-mode.ignored-packaged": "A packaged app was launched with ELECTRON_DEV=1 and ignored it; it loads its bundled renderer.",
|
|
28763
28766
|
"instance.already-running": "Another instance holds this data directory; this one will quit.",
|
|
28764
28767
|
"main-thread.stalled": "A timer fired late, so windows, IPC and the stdout reader waited.",
|
|
28765
28768
|
"quit.stopping-backend": "The app is quitting and has asked the Local backend to stop.",
|
|
@@ -28832,7 +28835,8 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
28832
28835
|
description: "Preparing the pinned agent toolchain at desktop startup.",
|
|
28833
28836
|
events: {
|
|
28834
28837
|
"bootstrap-progress.show-failed": "The toolchain progress window could not be shown.",
|
|
28835
|
-
"prepare.failed": "Preparing the pinned agent tools failed."
|
|
28838
|
+
"prepare.failed": "Preparing the pinned agent tools failed.",
|
|
28839
|
+
"prepare.ready": "The pinned agent tools were verified and activated; durationMs is how long startup waited."
|
|
28836
28840
|
}
|
|
28837
28841
|
},
|
|
28838
28842
|
"artifact-host": {
|
|
@@ -29020,6 +29024,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
29020
29024
|
description: "Native agent sessions and what the backend reads from their bridges.",
|
|
29021
29025
|
events: {
|
|
29022
29026
|
"catalogue.outdated-bridge": "A bridge predates the command catalogue, so its commands stay unavailable.",
|
|
29027
|
+
"compact.instructions-ignored": "A bridge compacted without confirming the instructions sent with /compact: it predates them.",
|
|
29023
29028
|
"handoff.summary-read-failed": "Change summaries could not be read for a handoff, so the carrier says they are unmeasured.",
|
|
29024
29029
|
"handoff.consume-failed": "A delivered handoff could not be marked consumed.",
|
|
29025
29030
|
"job.pr-refresh-rollback-failed": "Rolling back a pull request refresh for a job failed.",
|
|
@@ -29275,6 +29280,8 @@ var TMUX_LOG_AREAS = defineLogAreas({
|
|
|
29275
29280
|
"interactive.snapshot-failed": "An interactive snapshot failed; expected while a pane is closing.",
|
|
29276
29281
|
"signal.arm-failed": "The Claude state signal could not be armed.",
|
|
29277
29282
|
"signal.degraded": "The Claude state signal missed a change or rang too often, so polling stays at one second until it is re-armed.",
|
|
29283
|
+
"hook-signal.arm-failed": "The tmux hook doorbell could not be armed.",
|
|
29284
|
+
"hook-signal.degraded": "The tmux hook doorbell missed a hook, so idle tabs poll every second until it is re-armed.",
|
|
29278
29285
|
"pr-refresh.schedule-failed": "A pull request refresh after a turn could not be scheduled.",
|
|
29279
29286
|
"pr-probe.failed": "Probing for a pull request an agent created failed.",
|
|
29280
29287
|
"activity.persist-failed": "Tmux tab activity could not be saved.",
|
|
@@ -29456,6 +29463,7 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
29456
29463
|
"work.move-failed": "Work could not move to the main coordinator.",
|
|
29457
29464
|
"wake.observe-remote-workflow-failed": "A remote workflow could not be observed for status wakes.",
|
|
29458
29465
|
"wake.observe-pull-request-failed": "A pull request could not be observed for status wakes.",
|
|
29466
|
+
"wake.observe-feature-plan-failed": "A feature plan could not be observed for status wakes.",
|
|
29459
29467
|
"wake.observe-workflow-failed": "A workflow could not be observed for status wakes.",
|
|
29460
29468
|
"wake.deliver-failed": "A workflow status wake could not be delivered; the next pass retries.",
|
|
29461
29469
|
"wake.waiting-check-failed": "A waiting worker could not be checked; the next pass retries.",
|
|
@@ -29467,7 +29475,11 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
29467
29475
|
"store.invalid-workspace": "An invalid coordinator workspace record was ignored.",
|
|
29468
29476
|
"store.workflows-cleared": "The workflow store was full, so a batch of its oldest finished records was removed.",
|
|
29469
29477
|
"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."
|
|
29478
|
+
"remote-worker.settle-failed": "A remote worker could not be settled.",
|
|
29479
|
+
"checkout.merge-followed": "After an environment's PR merged, the project checkout was fast-forwarded, or `outcome` says why not.",
|
|
29480
|
+
"checkout.merge-follow-failed": "Fast-forwarding the project checkout failed, after an environment's PR merged or before mail woke the main coordinator.",
|
|
29481
|
+
"checkout.mail-follow": "Before mail woke the main coordinator, the project checkout was fast-forwarded, or `outcome` says why not (`timed-out`, `failed`).",
|
|
29482
|
+
"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
29483
|
}
|
|
29472
29484
|
}
|
|
29473
29485
|
});
|
|
@@ -29499,6 +29511,7 @@ var REVIEW_LOG_AREAS = defineLogAreas({
|
|
|
29499
29511
|
"gh.pr-list-unparseable": "`gh pr list` returned nothing that parses. Sizes only, never the output.",
|
|
29500
29512
|
"monitor.start-failed": "Monitoring could not start for a newly opened pull request.",
|
|
29501
29513
|
"cleanup-scheduler.missing": "A merged pull request was seen, but this runtime has no merge cleanup scheduler.",
|
|
29514
|
+
"checkout.follow-merge-lookup-failed": "A merged pull request's project could not be read, so its checkout was not fast-forwarded.",
|
|
29502
29515
|
"auto-merge.evaluation-failed": "Evaluating an environment for auto-merge failed.",
|
|
29503
29516
|
"auto-merge.merge-failed": "Auto-merge could not merge a pull request; the attempt is held and retried.",
|
|
29504
29517
|
"auto-merge.resolve-failed": "Auto-merge could not launch Resolve for a pull request; the attempt is held and retried.",
|
|
@@ -29542,6 +29555,8 @@ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
|
|
|
29542
29555
|
"container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
|
|
29543
29556
|
"last-usage.save-failed": "The last plan usage reading could not be saved; the next save retries.",
|
|
29544
29557
|
"login-cleanup.failed": "A temporary login could not be cleaned up.",
|
|
29558
|
+
"login-renewal.failed": "Renewing an idle account's sign-in to read its usage failed; it is retried after a backoff.",
|
|
29559
|
+
"login-renewal.not-extended": "Claude Code ran to renew an idle account's sign-in, but its token is still lapsed.",
|
|
29545
29560
|
"login-refresh.deferred": "Containers were not told to refresh their login now; they reconcile from its durable generation."
|
|
29546
29561
|
}
|
|
29547
29562
|
}
|
|
@@ -29555,6 +29570,7 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
29555
29570
|
"portable-inputs.relay-missing": "Docker is rootless and the image predates the staged-input relay, so the container cannot read them until rebuilt.",
|
|
29556
29571
|
"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
29572
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
29573
|
+
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
29558
29574
|
"login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
|
|
29559
29575
|
"login-keeper.refresh-failed": "Refreshing the host Claude login failed. Fixed text: CLI output can hold credentials.",
|
|
29560
29576
|
"login-keeper.refresh-not-extended": "Refreshing the host Claude login did not extend its expiry.",
|
|
@@ -29678,7 +29694,7 @@ var GRAPH_LOG_AREAS = defineLogAreas({
|
|
|
29678
29694
|
// ../protocol/src/log-vocabulary/nodes.ts
|
|
29679
29695
|
var NODES_LOG_AREAS = defineLogAreas({
|
|
29680
29696
|
nodes: {
|
|
29681
|
-
description: "Command nodes: links, handovers, leaf mail and project copies.",
|
|
29697
|
+
description: "Command nodes: links, handovers, leaf mail, ticket sync and project copies.",
|
|
29682
29698
|
events: {
|
|
29683
29699
|
"actions.resume-failed": "Approved actions could not be resumed; a later pass retries.",
|
|
29684
29700
|
"project-copy.notify-failed": "The coordinator could not be told a project copy finished.",
|
|
@@ -29690,7 +29706,11 @@ var NODES_LOG_AREAS = defineLogAreas({
|
|
|
29690
29706
|
"verification.record-failed": "A node verification could not be recorded.",
|
|
29691
29707
|
"profile.record-failed": "A node profile could not be recorded.",
|
|
29692
29708
|
"detach.unconfirmed": "A forgotten node has not confirmed the detach yet.",
|
|
29693
|
-
"handover.recovery-pending": "Command handover recovery is still pending."
|
|
29709
|
+
"handover.recovery-pending": "Command handover recovery is still pending.",
|
|
29710
|
+
"ticket-sync.work-record-failed": "A remote build started but its ticket work location could not be saved.",
|
|
29711
|
+
"ticket-sync.failed": "A Kanban sync with a node failed; it is retried.",
|
|
29712
|
+
"ticket-sync.unknown-project": "A node sent ticket changes for a project that no longer exists here.",
|
|
29713
|
+
"ticket-sync.forget-failed": "A detached command node's ticket copies could not be released."
|
|
29694
29714
|
}
|
|
29695
29715
|
}
|
|
29696
29716
|
});
|
|
@@ -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;
|
|
@@ -4133,7 +4155,7 @@ var NATIVE_AGENT_MAIL_CAPABILITIES = Object.freeze(Object.fromEntries(AGENT_PLAT
|
|
|
4133
4155
|
// ../protocol/src/secret-redaction.ts
|
|
4134
4156
|
var TEXT_RULES = [
|
|
4135
4157
|
{
|
|
4136
|
-
pattern: /([a-z][a-z0-9+.-]*:\/\/)[^/\s:@]+(?::[^/\s@]*)?@/gi,
|
|
4158
|
+
pattern: /(?<![a-z0-9+.-])([a-z][a-z0-9+.-]*:\/\/)[^/\s:@]+(?::[^/\s@]*)?@/gi,
|
|
4137
4159
|
replacement: "$1[redacted]@"
|
|
4138
4160
|
},
|
|
4139
4161
|
{
|
|
@@ -4153,7 +4175,7 @@ var TEXT_RULES = [
|
|
|
4153
4175
|
{ pattern: /\bAKIA[0-9A-Z]{12,}/g, replacement: "[redacted]" },
|
|
4154
4176
|
{ pattern: /\bAIza[0-9A-Za-z_-]{20,}/g, replacement: "[redacted]" },
|
|
4155
4177
|
{
|
|
4156
|
-
pattern:
|
|
4178
|
+
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
4179
|
replacement: "$1$2[redacted]"
|
|
4158
4180
|
}
|
|
4159
4181
|
];
|
|
@@ -29044,6 +29066,7 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
|
|
|
29044
29066
|
"session.created": "A session was created or recovered.",
|
|
29045
29067
|
"session.delete-failed": "Deleting a session failed.",
|
|
29046
29068
|
"session.fork-failed": "Forking a session failed.",
|
|
29069
|
+
"session.policy-widening-refused": "A config request tried to widen a live session's execution policy and was refused; widened names the axes.",
|
|
29047
29070
|
"session.rename-failed": "Renaming a session failed.",
|
|
29048
29071
|
"session.resolve-failed": "A session could not be found or loaded for a request; action names the request.",
|
|
29049
29072
|
"session.rewind-failed": "Rewinding session files failed.",
|
|
@@ -29176,6 +29199,7 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
29176
29199
|
"backend.keychain-link-remove-failed": "An agent-test profile kept a legacy link to the host keychain.",
|
|
29177
29200
|
"backend.start-failed": "The Local backend did not start; continuing with remote machines.",
|
|
29178
29201
|
"clipboard.write-failed": "Writing text to the system clipboard failed.",
|
|
29202
|
+
"dev-mode.ignored-packaged": "A packaged app was launched with ELECTRON_DEV=1 and ignored it; it loads its bundled renderer.",
|
|
29179
29203
|
"instance.already-running": "Another instance holds this data directory; this one will quit.",
|
|
29180
29204
|
"main-thread.stalled": "A timer fired late, so windows, IPC and the stdout reader waited.",
|
|
29181
29205
|
"quit.stopping-backend": "The app is quitting and has asked the Local backend to stop.",
|
|
@@ -29248,7 +29272,8 @@ var DESKTOP_LOG_AREAS = defineLogAreas({
|
|
|
29248
29272
|
description: "Preparing the pinned agent toolchain at desktop startup.",
|
|
29249
29273
|
events: {
|
|
29250
29274
|
"bootstrap-progress.show-failed": "The toolchain progress window could not be shown.",
|
|
29251
|
-
"prepare.failed": "Preparing the pinned agent tools failed."
|
|
29275
|
+
"prepare.failed": "Preparing the pinned agent tools failed.",
|
|
29276
|
+
"prepare.ready": "The pinned agent tools were verified and activated; durationMs is how long startup waited."
|
|
29252
29277
|
}
|
|
29253
29278
|
},
|
|
29254
29279
|
"artifact-host": {
|
|
@@ -29436,6 +29461,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
29436
29461
|
description: "Native agent sessions and what the backend reads from their bridges.",
|
|
29437
29462
|
events: {
|
|
29438
29463
|
"catalogue.outdated-bridge": "A bridge predates the command catalogue, so its commands stay unavailable.",
|
|
29464
|
+
"compact.instructions-ignored": "A bridge compacted without confirming the instructions sent with /compact: it predates them.",
|
|
29439
29465
|
"handoff.summary-read-failed": "Change summaries could not be read for a handoff, so the carrier says they are unmeasured.",
|
|
29440
29466
|
"handoff.consume-failed": "A delivered handoff could not be marked consumed.",
|
|
29441
29467
|
"job.pr-refresh-rollback-failed": "Rolling back a pull request refresh for a job failed.",
|
|
@@ -29691,6 +29717,8 @@ var TMUX_LOG_AREAS = defineLogAreas({
|
|
|
29691
29717
|
"interactive.snapshot-failed": "An interactive snapshot failed; expected while a pane is closing.",
|
|
29692
29718
|
"signal.arm-failed": "The Claude state signal could not be armed.",
|
|
29693
29719
|
"signal.degraded": "The Claude state signal missed a change or rang too often, so polling stays at one second until it is re-armed.",
|
|
29720
|
+
"hook-signal.arm-failed": "The tmux hook doorbell could not be armed.",
|
|
29721
|
+
"hook-signal.degraded": "The tmux hook doorbell missed a hook, so idle tabs poll every second until it is re-armed.",
|
|
29694
29722
|
"pr-refresh.schedule-failed": "A pull request refresh after a turn could not be scheduled.",
|
|
29695
29723
|
"pr-probe.failed": "Probing for a pull request an agent created failed.",
|
|
29696
29724
|
"activity.persist-failed": "Tmux tab activity could not be saved.",
|
|
@@ -29872,6 +29900,7 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
29872
29900
|
"work.move-failed": "Work could not move to the main coordinator.",
|
|
29873
29901
|
"wake.observe-remote-workflow-failed": "A remote workflow could not be observed for status wakes.",
|
|
29874
29902
|
"wake.observe-pull-request-failed": "A pull request could not be observed for status wakes.",
|
|
29903
|
+
"wake.observe-feature-plan-failed": "A feature plan could not be observed for status wakes.",
|
|
29875
29904
|
"wake.observe-workflow-failed": "A workflow could not be observed for status wakes.",
|
|
29876
29905
|
"wake.deliver-failed": "A workflow status wake could not be delivered; the next pass retries.",
|
|
29877
29906
|
"wake.waiting-check-failed": "A waiting worker could not be checked; the next pass retries.",
|
|
@@ -29883,7 +29912,11 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
29883
29912
|
"store.invalid-workspace": "An invalid coordinator workspace record was ignored.",
|
|
29884
29913
|
"store.workflows-cleared": "The workflow store was full, so a batch of its oldest finished records was removed.",
|
|
29885
29914
|
"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."
|
|
29915
|
+
"remote-worker.settle-failed": "A remote worker could not be settled.",
|
|
29916
|
+
"checkout.merge-followed": "After an environment's PR merged, the project checkout was fast-forwarded, or `outcome` says why not.",
|
|
29917
|
+
"checkout.merge-follow-failed": "Fast-forwarding the project checkout failed, after an environment's PR merged or before mail woke the main coordinator.",
|
|
29918
|
+
"checkout.mail-follow": "Before mail woke the main coordinator, the project checkout was fast-forwarded, or `outcome` says why not (`timed-out`, `failed`).",
|
|
29919
|
+
"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
29920
|
}
|
|
29888
29921
|
}
|
|
29889
29922
|
});
|
|
@@ -29915,6 +29948,7 @@ var REVIEW_LOG_AREAS = defineLogAreas({
|
|
|
29915
29948
|
"gh.pr-list-unparseable": "`gh pr list` returned nothing that parses. Sizes only, never the output.",
|
|
29916
29949
|
"monitor.start-failed": "Monitoring could not start for a newly opened pull request.",
|
|
29917
29950
|
"cleanup-scheduler.missing": "A merged pull request was seen, but this runtime has no merge cleanup scheduler.",
|
|
29951
|
+
"checkout.follow-merge-lookup-failed": "A merged pull request's project could not be read, so its checkout was not fast-forwarded.",
|
|
29918
29952
|
"auto-merge.evaluation-failed": "Evaluating an environment for auto-merge failed.",
|
|
29919
29953
|
"auto-merge.merge-failed": "Auto-merge could not merge a pull request; the attempt is held and retried.",
|
|
29920
29954
|
"auto-merge.resolve-failed": "Auto-merge could not launch Resolve for a pull request; the attempt is held and retried.",
|
|
@@ -29958,6 +29992,8 @@ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
|
|
|
29958
29992
|
"container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
|
|
29959
29993
|
"last-usage.save-failed": "The last plan usage reading could not be saved; the next save retries.",
|
|
29960
29994
|
"login-cleanup.failed": "A temporary login could not be cleaned up.",
|
|
29995
|
+
"login-renewal.failed": "Renewing an idle account's sign-in to read its usage failed; it is retried after a backoff.",
|
|
29996
|
+
"login-renewal.not-extended": "Claude Code ran to renew an idle account's sign-in, but its token is still lapsed.",
|
|
29961
29997
|
"login-refresh.deferred": "Containers were not told to refresh their login now; they reconcile from its durable generation."
|
|
29962
29998
|
}
|
|
29963
29999
|
}
|
|
@@ -29971,6 +30007,7 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
29971
30007
|
"portable-inputs.relay-missing": "Docker is rootless and the image predates the staged-input relay, so the container cannot read them until rebuilt.",
|
|
29972
30008
|
"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
30009
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
30010
|
+
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
29974
30011
|
"login-keeper.pass-failed": "A Claude login keeper pass failed; the next interval retries.",
|
|
29975
30012
|
"login-keeper.refresh-failed": "Refreshing the host Claude login failed. Fixed text: CLI output can hold credentials.",
|
|
29976
30013
|
"login-keeper.refresh-not-extended": "Refreshing the host Claude login did not extend its expiry.",
|
|
@@ -30094,7 +30131,7 @@ var GRAPH_LOG_AREAS = defineLogAreas({
|
|
|
30094
30131
|
// ../protocol/src/log-vocabulary/nodes.ts
|
|
30095
30132
|
var NODES_LOG_AREAS = defineLogAreas({
|
|
30096
30133
|
nodes: {
|
|
30097
|
-
description: "Command nodes: links, handovers, leaf mail and project copies.",
|
|
30134
|
+
description: "Command nodes: links, handovers, leaf mail, ticket sync and project copies.",
|
|
30098
30135
|
events: {
|
|
30099
30136
|
"actions.resume-failed": "Approved actions could not be resumed; a later pass retries.",
|
|
30100
30137
|
"project-copy.notify-failed": "The coordinator could not be told a project copy finished.",
|
|
@@ -30106,7 +30143,11 @@ var NODES_LOG_AREAS = defineLogAreas({
|
|
|
30106
30143
|
"verification.record-failed": "A node verification could not be recorded.",
|
|
30107
30144
|
"profile.record-failed": "A node profile could not be recorded.",
|
|
30108
30145
|
"detach.unconfirmed": "A forgotten node has not confirmed the detach yet.",
|
|
30109
|
-
"handover.recovery-pending": "Command handover recovery is still pending."
|
|
30146
|
+
"handover.recovery-pending": "Command handover recovery is still pending.",
|
|
30147
|
+
"ticket-sync.work-record-failed": "A remote build started but its ticket work location could not be saved.",
|
|
30148
|
+
"ticket-sync.failed": "A Kanban sync with a node failed; it is retried.",
|
|
30149
|
+
"ticket-sync.unknown-project": "A node sent ticket changes for a project that no longer exists here.",
|
|
30150
|
+
"ticket-sync.forget-failed": "A detached command node's ticket copies could not be released."
|
|
30110
30151
|
}
|
|
30111
30152
|
}
|
|
30112
30153
|
});
|
|
@@ -37804,7 +37845,7 @@ async function routeSession(request, response, url, clientSignal) {
|
|
|
37804
37845
|
return await handleCancel(response, state);
|
|
37805
37846
|
}
|
|
37806
37847
|
if (action === "compact" && request.method === "POST") {
|
|
37807
|
-
return await handleCompact(response, state);
|
|
37848
|
+
return await handleCompact(request, response, state);
|
|
37808
37849
|
}
|
|
37809
37850
|
if (action === "steer" && request.method === "POST") {
|
|
37810
37851
|
return await handleSteer(request, response, state);
|
|
@@ -37906,7 +37947,7 @@ async function handleCancel(response, state) {
|
|
|
37906
37947
|
}
|
|
37907
37948
|
return json(response, 200, { cancelled: false });
|
|
37908
37949
|
}
|
|
37909
|
-
async function handleCompact(response, state) {
|
|
37950
|
+
async function handleCompact(request, response, state) {
|
|
37910
37951
|
assertSessionOpen(state);
|
|
37911
37952
|
if (state.status === "running" || state.dispatching || state.compacting || state.commandReload || state.promptClaim !== undefined) {
|
|
37912
37953
|
throw new HttpError(409, "Session is already running");
|
|
@@ -37914,9 +37955,14 @@ async function handleCompact(response, state) {
|
|
|
37914
37955
|
state.dispatching = true;
|
|
37915
37956
|
state.compacting = true;
|
|
37916
37957
|
state.revision += 1;
|
|
37958
|
+
let instructions;
|
|
37917
37959
|
try {
|
|
37960
|
+
const parsed = parseCompactInstructionsBody(await readJsonValue(request));
|
|
37961
|
+
if (!parsed.ok)
|
|
37962
|
+
throw new HttpError(400, parsed.error);
|
|
37963
|
+
instructions = parsed.instructions;
|
|
37918
37964
|
const session = await ensureSession(state);
|
|
37919
|
-
await session.compact();
|
|
37965
|
+
await session.compact(instructions);
|
|
37920
37966
|
} finally {
|
|
37921
37967
|
state.compacting = false;
|
|
37922
37968
|
state.dispatching = false;
|
|
@@ -37926,7 +37972,7 @@ async function handleCompact(response, state) {
|
|
|
37926
37972
|
return;
|
|
37927
37973
|
});
|
|
37928
37974
|
}
|
|
37929
|
-
return json(response, 200, { compacted: true });
|
|
37975
|
+
return json(response, 200, instructions ? { compacted: true, instructions: "applied" } : { compacted: true });
|
|
37930
37976
|
}
|
|
37931
37977
|
async function handleSteer(request, response, state) {
|
|
37932
37978
|
const body = await readJson(request);
|
|
@@ -38437,6 +38483,10 @@ function readBoundedString(value, limit, field) {
|
|
|
38437
38483
|
return trimmed;
|
|
38438
38484
|
}
|
|
38439
38485
|
async function readJson(request) {
|
|
38486
|
+
const parsed = await readJsonValue(request);
|
|
38487
|
+
return isObject(parsed) ? parsed : {};
|
|
38488
|
+
}
|
|
38489
|
+
async function readJsonValue(request) {
|
|
38440
38490
|
const chunks = [];
|
|
38441
38491
|
let total = 0;
|
|
38442
38492
|
for await (const chunk of request) {
|
|
@@ -38449,8 +38499,7 @@ async function readJson(request) {
|
|
|
38449
38499
|
if (total === 0)
|
|
38450
38500
|
return {};
|
|
38451
38501
|
try {
|
|
38452
|
-
|
|
38453
|
-
return isObject(parsed) ? parsed : {};
|
|
38502
|
+
return JSON.parse(Buffer.concat(chunks).toString("utf8"));
|
|
38454
38503
|
} catch {
|
|
38455
38504
|
throw new HttpError(400, "Request body must be JSON");
|
|
38456
38505
|
}
|