orkestrator 2.38.3-beta → 2.39.0-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/dist/client.js +47 -16
- package/dist/main.js +4908 -4047
- package/package.json +3 -3
- package/resources/acp-bridge/dist/index.js +17 -6
- package/resources/claude-bridge/dist/index.js +39 -13
- package/resources/codex-bridge/dist/index.js +17 -6
- package/resources/cursor-bridge/dist/index.js +17 -6
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +265 -17
- package/resources/pi-bridge/runtime/install.json +1 -1
package/dist/client.js
CHANGED
|
@@ -430,6 +430,7 @@ var init_bridge = __esm(() => {
|
|
|
430
430
|
"http.route-failed": "An HTTP route failed unexpectedly; its error is not logged because it can hold content.",
|
|
431
431
|
"session.policy-widening-refused": "A request tried to widen a live session's execution policy and was refused; widened names the axes.",
|
|
432
432
|
"session-list.failed": "Reading the resumable sessions failed, so none were offered; its error message is not logged because it can hold content.",
|
|
433
|
+
"session-list.read-by-pi": "A session file was in a format the header reader does not recognise, so the resumable sessions were read through Pi's own full listing; reason names the part not recognised.",
|
|
433
434
|
"state.over-budget": "The state file stayed over budget after shedding transcripts, so the write was skipped.",
|
|
434
435
|
"state.transcripts-shed": "The state file was over budget, so some sessions were saved without their transcript.",
|
|
435
436
|
"session.resume-fell-back": {
|
|
@@ -563,6 +564,7 @@ var init_desktop = __esm(() => {
|
|
|
563
564
|
"open-failed": "A dialog could not open; it was answered as cancelled.",
|
|
564
565
|
opening: "A native dialog is opening.",
|
|
565
566
|
"preview-beforeunload-ignored": "A browser preview's beforeunload handler was ignored.",
|
|
567
|
+
"quitting-cancelled": "A dialog with no open window to attach to was cancelled because the app is quitting.",
|
|
566
568
|
"renderer-beforeunload-cancelled": "A renderer's beforeunload handler cancelled an unload."
|
|
567
569
|
}
|
|
568
570
|
},
|
|
@@ -617,6 +619,7 @@ var init_environment = __esm(() => {
|
|
|
617
619
|
events: {
|
|
618
620
|
"cleanup.sessions-failed": "Session metadata cleanup failed during environment deletion; deletion continues.",
|
|
619
621
|
"cleanup.branch-kept": "A deleted environment's local branch was kept, as it may hold unmerged work.",
|
|
622
|
+
"project-seed.refused": "A project file the Environment Files setting matched was not copied into a new local worktree: a link, not a regular file, outside the project, too large, behind a link in the worktree, or over the match bounds. Path and reason only, never contents.",
|
|
620
623
|
"rename.failed": "Naming an environment from its pending prompt failed for the first time.",
|
|
621
624
|
"rename.still-failing": "That rename is still failing; written at the 2nd, 4th, 8th... failure.",
|
|
622
625
|
"rename.recovered": "A rename from a pending prompt succeeded after failing.",
|
|
@@ -766,8 +769,9 @@ var init_local_server = __esm(() => {
|
|
|
766
769
|
"reaper.tmux-reaped": "Orphaned claude-tmux sessions of a deleted environment were killed.",
|
|
767
770
|
"reaper.runtime-root-remove-failed": "A claude-tmux runtime root could not be removed; it stays for a retry.",
|
|
768
771
|
"reaper.server-unidentified": "An orphan candidate could not be identified, so its record is kept.",
|
|
772
|
+
"reaper.server-parent-unidentified": "An orphan candidate's live parent could not be read, so it is unknown whether a subreaper adopted it; its record is kept.",
|
|
769
773
|
"reaper.server-refused": "An orphan candidate leads no process group, so it was not reaped.",
|
|
770
|
-
"reaper.server-reaping": "An orphaned server is being stopped.",
|
|
774
|
+
"reaper.server-reaping": "An orphaned server is being stopped; `adoptedBySubreaper` says a Linux subreaper, not PID 1, had adopted it.",
|
|
771
775
|
"reaper.server-kill-failed": "An orphaned server did not exit.",
|
|
772
776
|
...THROTTLE_LOG_EVENTS
|
|
773
777
|
}
|
|
@@ -884,7 +888,6 @@ var init_native_agent = __esm(() => {
|
|
|
884
888
|
"job.pr-refresh-rollback-failed": "Rolling back a pull request refresh for a job failed.",
|
|
885
889
|
"job.resend-queue-failed": "A resend could not be queued for a job.",
|
|
886
890
|
"interaction.requests-dropped": "Interaction requests that could not be mapped were dropped.",
|
|
887
|
-
"interaction.observe-failed": "Observing a session's interactions failed. Error class only.",
|
|
888
891
|
"human-prompt.listener-failed": "A human prompt listener threw; the others still run.",
|
|
889
892
|
"question.attention-record-failed": "Attention for an async question could not be recorded; the transcript stays readable.",
|
|
890
893
|
"activity.reconcile-failed": "Reconciling an environment's activity failed. Error class only.",
|
|
@@ -959,6 +962,7 @@ var init_native_agent = __esm(() => {
|
|
|
959
962
|
"events.dropped": "The 2.x event stream ended or failed, so reads go to the server until it reconnects. Error class only.",
|
|
960
963
|
"monitor.silent": "The 2.x event stream sent a heartbeat and then went quiet, so it is replaced. `silenceMs` only.",
|
|
961
964
|
"steer.unconfirmed": "A 2.x steer got no definite answer, so its delivery is reconciled from history. Error class only.",
|
|
965
|
+
"steer.withdraw-failed": "A stop could not withdraw the user's steer still in a 2.x inbox, so it stays for the next run (to-do 8100 (retired)). Error class only.",
|
|
962
966
|
"provider.dispose-failed": "Disposing the 2.x provider of a replaced server failed. Error class only.",
|
|
963
967
|
"location.reload-unconfirmed": "After a 2.x location reload, the read that waits for the rebuilt location failed; catalogues are re-read anyway. Error class only.",
|
|
964
968
|
"credential.legacy-reconciled": "A host 2.x database from before OpenCode 1.x was retired was reconciled with auth.json once. Counts of credentials written and removed only.",
|
|
@@ -1363,6 +1367,8 @@ var init_storage = __esm(() => {
|
|
|
1363
1367
|
"listener.attention-failed": "An environment attention listener threw; the committed mutation stands.",
|
|
1364
1368
|
"listener.change-failed": "A resource change listener threw; the committed mutation stands.",
|
|
1365
1369
|
"kanban.image-cleanup-failed": "An orphaned Kanban image could not be removed after its retries; it is safe to remove later.",
|
|
1370
|
+
"kanban.removal-image-cleanup-pending": "A removed project's ticket image files could not all be unlinked; they stay journaled and the removal fails so a retry finishes them.",
|
|
1371
|
+
"kanban.delivery-sidecar-cleanup-failed": "A removed project's deleted-ticket delivery sidecars could not all be removed; the removal fails so a retry finishes them.",
|
|
1366
1372
|
"nodes.entries-dropped": "Unreadable node registry entries were ignored.",
|
|
1367
1373
|
"preview-identity.reminted": "The data directory moved or was copied, so previews get a new backend identity.",
|
|
1368
1374
|
"preview-settings.invalid": "Invalid preview settings disabled transport and relay.",
|
|
@@ -1493,6 +1499,7 @@ var init_change_tracking = __esm(() => {
|
|
|
1493
1499
|
events: {
|
|
1494
1500
|
"baseline.update-failed": "An environment's diff baseline could not be updated.",
|
|
1495
1501
|
"scan.watcher-failed": "An environment's diff watcher failed; its scans fall back to polling.",
|
|
1502
|
+
"scan.watcher-missed-change": "A safety scan found a change an environment's local diff watcher never reported (macOS: often an fseventsd that has stopped delivering), so its scans poll until the watcher delivers events again.",
|
|
1496
1503
|
"scan.failed": "A diff scan failed; the last results stay, marked stale, and the scan is retried.",
|
|
1497
1504
|
"scan.target-missing": "A local environment's worktree folder is missing (deleted, moved or on an unmounted drive); no scan runs, the last results stay, marked stale, and the folder is checked again on the failure backoff.",
|
|
1498
1505
|
"scan.freshness-read-failed": "Reading whether an environment's remote is fresh failed.",
|
|
@@ -1700,7 +1707,7 @@ var init_docker = __esm(() => {
|
|
|
1700
1707
|
"git-mirror.orphans-removed": "Git mirrors of removed projects were removed.",
|
|
1701
1708
|
"git-mirror.clone-used": "A new environment cloned from its project's Git mirror.",
|
|
1702
1709
|
"git-mirror.clone-fallback": "A new environment could not clone from its project's Git mirror and cloned from the remote.",
|
|
1703
|
-
"project-seed.refused": "A project .env
|
|
1710
|
+
"project-seed.refused": "A project file the Environment Files setting matched (by default .env and .env.local), or opencode.json, was not copied into a new container: a link, not a regular file, outside the project, too large, unreadable, an unusable pattern or over the match bounds. Path and reason only, never contents.",
|
|
1704
1711
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
1705
1712
|
"opencode.listener-replaced": "The process on a container's OpenCode port (`provider`: `opencode` or `opencode2`) is not the server the backend launched and recorded, so its password was withheld and the next start replaces it. `stage` is `request` when the re-check after a refused connection or an unexpected answer found it; that connection then sends nothing more.",
|
|
1706
1713
|
"opencode.project-config-too-large": "A checkout's opencode.json or opencode.jsonc was larger than the limit, so a launched OpenCode server does not read it. File name only.",
|
|
@@ -1720,7 +1727,9 @@ var init_docker = __esm(() => {
|
|
|
1720
1727
|
"replacement.copy-helper-remove-failed": "An abandoned rebuild copy step's helper container (`helper`, its name) could not be removed, so the step failed rather than settle while the helper may still mount the new storage.",
|
|
1721
1728
|
"replacement.clear-terminals-failed": "Terminal sessions could not be cleared after a container replacement.",
|
|
1722
1729
|
"recovery.clear-terminals-failed": "Terminal sessions could not be cleared after a recovery restore.",
|
|
1723
|
-
"github-ranges.seed-not-copied": "The GitHub ranges seed could not be copied into a container, so its firewall fetches them.",
|
|
1730
|
+
"github-ranges.seed-not-copied": "The GitHub ranges seed could not be copied into a container created before the seed directory was bound, so its firewall fetches them.",
|
|
1731
|
+
"github-ranges.seed-copied-before-boot": "A container created before the GitHub ranges seed directory was bound was given a fresh copy of the seed before it booted.",
|
|
1732
|
+
"github-ranges.seed-directory-unavailable": "The GitHub ranges seed directory could not be created, so a new restricted container is created without it and its firewall fetches the ranges itself.",
|
|
1724
1733
|
"availability.probe-failed": "Docker is not available; written when the diagnostic changes. Fixed-shape metadata only: messages can hold daemon endpoints.",
|
|
1725
1734
|
"start.port-collision-retrying": "An automatic host port collided on start, so it is retried: with fresh ports (up to ten times), or, when `backendChosen`, on the same backend-chosen port after a pause (up to three times).",
|
|
1726
1735
|
"copy-in.snapshot-busy-retrying": "Docker could not mount a created or stopped container's filesystem to copy files into it (device or resource busy), so the copy is retried after a pause.",
|
|
@@ -1998,6 +2007,9 @@ var init_host = __esm(() => {
|
|
|
1998
2007
|
"maintenance.listener-failed": "A host maintenance listener threw; the others still run.",
|
|
1999
2008
|
"suspend.reconcile-failed": "Reconciling due work after a host suspension failed.",
|
|
2000
2009
|
"load.sample-failed": "Sampling machine load failed; the next sample retries.",
|
|
2010
|
+
"load.history-restored": "Machine-load history was restored from its stored document at start (bucket count and the longest window's covered seconds).",
|
|
2011
|
+
"load.history-fresh": "Machine-load history started empty: reason missing (info) or unreadable, malformed, newer-version or too-large (warn); an unusable document is replaced at the next write.",
|
|
2012
|
+
"load.history-save-failed": "Writing machine-load history failed; the next 15-minute period or the shutdown write retries.",
|
|
2001
2013
|
"usage.source-stalled": "A usage source (scope: disk or gpu-sysfs) did not answer in time; its figure is missing from the sample until it does.",
|
|
2002
2014
|
...THROTTLE_LOG_EVENTS
|
|
2003
2015
|
}
|
|
@@ -2261,8 +2273,7 @@ var init_web_environment = __esm(() => {
|
|
|
2261
2273
|
"settings.extensions-load-failed": "The settings dialog could not load extensions.",
|
|
2262
2274
|
"settings.container-reset-failed": "The settings dialog could not reset the container.",
|
|
2263
2275
|
"settings.save-failed": "The settings dialog could not save.",
|
|
2264
|
-
"domains.test-failed": "Testing whether network whitelist domains resolve failed."
|
|
2265
|
-
"network-whitelist.save-failed": "The network whitelist dialog could not save."
|
|
2276
|
+
"domains.test-failed": "Testing whether network whitelist domains resolve failed."
|
|
2266
2277
|
}
|
|
2267
2278
|
},
|
|
2268
2279
|
"web.sidebar": {
|
|
@@ -9498,7 +9509,7 @@ async function probeExecutable(executablePath, artifact, timeoutMs, spawnProcess
|
|
|
9498
9509
|
clearTimeout(timeout);
|
|
9499
9510
|
reject(new Error(`${artifact.name} could not execute from the Orkestrator toolchain cache: ${error.message}`));
|
|
9500
9511
|
});
|
|
9501
|
-
child.once("
|
|
9512
|
+
child.once("close", (code, signal) => {
|
|
9502
9513
|
clearTimeout(timeout);
|
|
9503
9514
|
const output = Buffer.concat(chunks).toString("utf8");
|
|
9504
9515
|
if (code !== 0) {
|
|
@@ -11848,7 +11859,7 @@ var PUBLIC_ACTIONS = {
|
|
|
11848
11859
|
effects: [],
|
|
11849
11860
|
observation: "immediate",
|
|
11850
11861
|
milestone: "D",
|
|
11851
|
-
summary: "List scheduled jobs with their next fire time, owner and last outcome."
|
|
11862
|
+
summary: "List scheduled jobs with their next fire time, owner and last outcome, and whether this backend fires them."
|
|
11852
11863
|
},
|
|
11853
11864
|
"schedule.get": {
|
|
11854
11865
|
version: 1,
|
|
@@ -13256,7 +13267,7 @@ import path5 from "path";
|
|
|
13256
13267
|
// ../../apps/backend/package.json
|
|
13257
13268
|
var package_default = {
|
|
13258
13269
|
name: "@orkestrator/backend",
|
|
13259
|
-
version: "2.
|
|
13270
|
+
version: "2.39.0-beta",
|
|
13260
13271
|
private: true,
|
|
13261
13272
|
type: "module",
|
|
13262
13273
|
exports: {
|
|
@@ -15036,7 +15047,8 @@ async function submit(context, action, input, options2) {
|
|
|
15036
15047
|
return { session, ...outcome };
|
|
15037
15048
|
}
|
|
15038
15049
|
async function submitForWait(context, action, input, options2, timeoutMs) {
|
|
15039
|
-
const
|
|
15050
|
+
const now = observationClock(context.io).now ?? Date.now;
|
|
15051
|
+
const deadline = now() + timeoutMs;
|
|
15040
15052
|
const session = await context.session();
|
|
15041
15053
|
try {
|
|
15042
15054
|
return {
|
|
@@ -15051,7 +15063,7 @@ async function submitForWait(context, action, input, options2, timeoutMs) {
|
|
|
15051
15063
|
let receipt;
|
|
15052
15064
|
try {
|
|
15053
15065
|
receipt = await observe(async () => {
|
|
15054
|
-
if (
|
|
15066
|
+
if (now() >= deadline)
|
|
15055
15067
|
throw new ObservationStopped("deadline");
|
|
15056
15068
|
try {
|
|
15057
15069
|
const found = await session.readWithReceipt("run.get", {
|
|
@@ -15059,7 +15071,7 @@ async function submitForWait(context, action, input, options2, timeoutMs) {
|
|
|
15059
15071
|
action,
|
|
15060
15072
|
namespace,
|
|
15061
15073
|
submittedInput: input
|
|
15062
|
-
}, Math.max(1, deadline -
|
|
15074
|
+
}, Math.max(1, deadline - now()));
|
|
15063
15075
|
return found.receipt ? { done: true, value: found.receipt } : { done: false };
|
|
15064
15076
|
} catch (lookup) {
|
|
15065
15077
|
if (lookup instanceof CliError && (lookup.code === "not-found" || lookup.code === "connection-failed"))
|
|
@@ -15067,7 +15079,7 @@ async function submitForWait(context, action, input, options2, timeoutMs) {
|
|
|
15067
15079
|
throw lookup;
|
|
15068
15080
|
}
|
|
15069
15081
|
}, {
|
|
15070
|
-
timeoutMs: Math.max(0, deadline -
|
|
15082
|
+
timeoutMs: Math.max(0, deadline - now()),
|
|
15071
15083
|
signal: context.signal,
|
|
15072
15084
|
...observationClock(context.io)
|
|
15073
15085
|
});
|
|
@@ -15089,7 +15101,7 @@ async function submitForWait(context, action, input, options2, timeoutMs) {
|
|
|
15089
15101
|
return {
|
|
15090
15102
|
session,
|
|
15091
15103
|
receipt,
|
|
15092
|
-
deadline,
|
|
15104
|
+
deadline: Date.now() + Math.max(0, deadline - now()),
|
|
15093
15105
|
warnings: [`The ${action} response was lost; found the operation by its request key`]
|
|
15094
15106
|
};
|
|
15095
15107
|
}
|
|
@@ -28816,6 +28828,16 @@ var SCHEDULED_JOB_LIMITS = Object.freeze({
|
|
|
28816
28828
|
selfTimerGrantWindowMs: 2 * 60 * 60000,
|
|
28817
28829
|
userInstructionMaxChars: 500
|
|
28818
28830
|
});
|
|
28831
|
+
function schedulerPausedMessage(reason) {
|
|
28832
|
+
switch (reason) {
|
|
28833
|
+
case "writer-lease-lost":
|
|
28834
|
+
return "Schedules have stopped firing on this backend. It lost control of its data directory, usually to another Orkestrator using the same directory. Close the other one and restart Orkestrator to resume them.";
|
|
28835
|
+
case "another-backend":
|
|
28836
|
+
return "Schedules fire in another Orkestrator that is using this data directory, not in this one. They run while that one is running.";
|
|
28837
|
+
case "newer-data-directory":
|
|
28838
|
+
return "Schedules do not fire on this backend because a newer Orkestrator wrote its data directory. Update Orkestrator to run them here.";
|
|
28839
|
+
}
|
|
28840
|
+
}
|
|
28819
28841
|
function describeScheduleTrigger(trigger, timeZone) {
|
|
28820
28842
|
switch (trigger.kind) {
|
|
28821
28843
|
case "once":
|
|
@@ -29142,11 +29164,16 @@ function simpleMutation(verb, summary) {
|
|
|
29142
29164
|
}
|
|
29143
29165
|
};
|
|
29144
29166
|
}
|
|
29167
|
+
function schedulerNotice(scheduler) {
|
|
29168
|
+
if (!scheduler || scheduler.firing)
|
|
29169
|
+
return;
|
|
29170
|
+
return schedulerPausedMessage(scheduler.reason) ?? "Schedules do not fire on this backend.";
|
|
29171
|
+
}
|
|
29145
29172
|
var scheduleCommands = [
|
|
29146
29173
|
{
|
|
29147
29174
|
path: ["schedule", "list"],
|
|
29148
29175
|
action: "schedule.list",
|
|
29149
|
-
summary: "List scheduled jobs with their next fire, owner and last outcome.",
|
|
29176
|
+
summary: "List scheduled jobs with their next fire, owner and last outcome; warns when this backend does not fire them.",
|
|
29150
29177
|
positionals: [],
|
|
29151
29178
|
options: [
|
|
29152
29179
|
{
|
|
@@ -29170,6 +29197,7 @@ var scheduleCommands = [
|
|
|
29170
29197
|
{ name: "offset", kind: "integer", valueName: "N", description: "Rows to skip." },
|
|
29171
29198
|
{ name: "limit", kind: "integer", valueName: "N", description: "Rows (max 200)." }
|
|
29172
29199
|
],
|
|
29200
|
+
idOutput: "schedule IDs, one per line",
|
|
29173
29201
|
async run(context, parsed) {
|
|
29174
29202
|
const session = await context.session();
|
|
29175
29203
|
const options2 = parsed.options;
|
|
@@ -29180,9 +29208,12 @@ var scheduleCommands = [
|
|
|
29180
29208
|
...options2.offset !== undefined ? { offset: options2.offset } : {},
|
|
29181
29209
|
...options2.limit !== undefined ? { limit: options2.limit } : {}
|
|
29182
29210
|
});
|
|
29211
|
+
const notice = schedulerNotice(page.scheduler);
|
|
29183
29212
|
return {
|
|
29184
29213
|
action: "schedule.list",
|
|
29185
29214
|
result: page,
|
|
29215
|
+
...notice ? { warnings: [notice] } : {},
|
|
29216
|
+
ids: page.schedules.map((job) => job.id),
|
|
29186
29217
|
connection: session.identity,
|
|
29187
29218
|
human: table(["ID", "NAME", "STATE", "NEXT FIRE", "OWNER", "LAST"], page.schedules.map((job) => [
|
|
29188
29219
|
job.id,
|
|
@@ -30442,7 +30473,7 @@ var projectCommands = [
|
|
|
30442
30473
|
path: ["project", "remove"],
|
|
30443
30474
|
action: "project.remove",
|
|
30444
30475
|
summary: "Remove a project registration; --cascade deletes its environments first.",
|
|
30445
|
-
description: "Without --cascade a project that still has environments is refused (exit 8). With --cascade the backend deletes each environment through the normal lifecycle, one by one, reports a result for each, and removes the registration only if all were deleted (otherwise the operation is partial and the project is kept). The checkout on disk and any remote repository are never deleted. --wait observes a cascade until it ends.",
|
|
30476
|
+
description: "Without --cascade a project that still has environments is refused (exit 8). With --cascade the backend deletes each environment through the normal lifecycle, one by one, reports a result for each, and removes the registration only if all were deleted (otherwise the operation is partial and the project is kept). Removing the registration also deletes the project's tickets and their images, project notes and feature plans on that machine. The checkout on disk and any remote repository are never deleted. --wait observes a cascade until it ends.",
|
|
30446
30477
|
positionals: [{ name: "project", required: true }],
|
|
30447
30478
|
options: [
|
|
30448
30479
|
{
|