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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orkestrator",
3
- "version": "2.38.2-beta",
3
+ "version": "2.38.3-beta",
4
4
  "description": "Run the Orkestrator backend service without the desktop application",
5
5
  "homepage": "https://orkestrator.dev",
6
6
  "repository": {
@@ -39,8 +39,8 @@
39
39
  "sharp": "0.35.5"
40
40
  },
41
41
  "devDependencies": {
42
- "@orkestrator/protocol": "2.38.2-beta",
43
- "@orkestrator/toolchain": "2.38.2-beta"
42
+ "@orkestrator/protocol": "2.38.3-beta",
43
+ "@orkestrator/toolchain": "2.38.3-beta"
44
44
  },
45
45
  "engines": {
46
46
  "bun": ">=1.4.4"
@@ -431,13 +431,27 @@ var BRIDGE_LOG_AREAS = defineLogAreas({
431
431
  "plugins.read-failed": "Listing plugins failed; the route answered 500.",
432
432
  "prompt.accepted": "The route accepted a prompt and answered 202.",
433
433
  "prompt.failed": "A prompt turn failed; the session reports the error.",
434
- "prompt.processing-failed": "A prompt accepted by the route failed while processing.",
434
+ "prompt.processing-provider-refused": "A prompt accepted by the route ended on a provider refusal; the turn already logged prompt.provider-refused.",
435
+ "prompt.processing-failed": "A prompt accepted by the route failed while processing, before the turn could report it.",
436
+ "prompt.processing-reported": "A prompt accepted by the route failed; the turn already logged prompt.failed.",
435
437
  "prompt.processing-usage-limited": "A prompt accepted by the route ended on a usage limit; the turn already logged prompt.usage-limited.",
438
+ "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.",
436
439
  "prompt.received": "A prompt reached the bridge; only its length is logged.",
437
440
  "prompt.send-failed": "A prompt request failed; the route answered with an error.",
438
441
  "prompt.usage-limited": "A prompt turn ended because the account's plan allowance is used up; the session reports the limit.",
439
442
  "query.close-failed": "Stopping the Claude query failed while closing a tab; the close stays pending.",
440
- "query.failed": "A Claude query ended with an error result.",
443
+ "query.failed": {
444
+ 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.",
445
+ essential: true,
446
+ fields: {
447
+ subtype: "label",
448
+ isError: "boolean",
449
+ reason: "label",
450
+ apiStatus: "number",
451
+ startupFailure: "boolean"
452
+ }
453
+ },
454
+ "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.",
441
455
  "query.usage-limited": "Claude refused a query because the account's plan allowance is used up; the turn reports the limit.",
442
456
  "question.answer-failed": "The answer-question route failed.",
443
457
  "question.answering": "Answering a parked question.",
@@ -1030,6 +1044,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
1030
1044
  "title.strategy-failed": "A session title strategy failed, so the next is tried. Content-free: the error can quote the prompt.",
1031
1045
  "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.",
1032
1046
  "steer.capability-cleared": "A projection cleared `actions.steer` because its bridge did not qualify. Identifiers and turn status only.",
1047
+ "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.",
1033
1048
  ...THROTTLE_LOG_EVENTS
1034
1049
  }
1035
1050
  },
@@ -1504,6 +1519,7 @@ var BUILD_PIPELINE_LOG_AREAS = defineLogAreas({
1504
1519
  "sidebar.reconcile-failed": "Sidebar activity for pipelines could not be reconciled.",
1505
1520
  "sidebar.update-failed": "The sidebar could not be updated for one pipeline.",
1506
1521
  "result.consume-deferred": "Consuming a stage's workflow result failed; it stays staged and is retried.",
1522
+ "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.",
1507
1523
  "consolidation.consume-deferred": "Consuming a review consolidation result failed; it stays pending and is retried.",
1508
1524
  "dispatch.prepare-failed": "Attaching the agent before dispatch failed; the prompt request does the same work and answers authoritatively.",
1509
1525
  "interaction.resolved": "A human interaction on a pipeline stage resolved. Metadata only.",
@@ -1552,6 +1568,8 @@ var CHANGE_TRACKING_LOG_AREAS = defineLogAreas({
1552
1568
  "retention.failed": "A retention pass failed partway; what it deleted stands and the next pass goes on.",
1553
1569
  "projection.failed": "Projecting a change event onto its environment failed.",
1554
1570
  "startup.reconcile-failed": "Reconciling change tracking at startup failed.",
1571
+ "deleted-environments.purge-requested": "The startup reconcile found ledger rows of environments the environment store no longer holds and requested their purge.",
1572
+ "deleted-environments.reconcile-failed": "The startup reconcile of deleted environments could not read the environment store, so it requested no purge.",
1555
1573
  "turn-start.capture-failed": "Capturing a turn's start failed, so the turn is untracked.",
1556
1574
  "dispatch.record-failed": "Recording a turn's dispatch outcome failed.",
1557
1575
  "turn.finalize-failed": "Finalizing a turn failed.",
@@ -1792,9 +1810,15 @@ var DOCKER_LOG_AREAS = defineLogAreas({
1792
1810
  essential: true,
1793
1811
  fields: { staleForMs: "number" }
1794
1812
  },
1795
- "writer-lease.listener-failed": "The callback told about a lost registry writer lease threw, so the schedules settings learn of the loss only at their next read.",
1813
+ "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.",
1814
+ "writer-lease.acquired-late": {
1815
+ 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.",
1816
+ essential: true,
1817
+ fields: {}
1818
+ },
1819
+ "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.",
1796
1820
  "writer-lease.not-acquired": {
1797
- 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.",
1821
+ 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.",
1798
1822
  essential: true,
1799
1823
  fields: { reason: "label" }
1800
1824
  },
@@ -1995,6 +2019,7 @@ var FEATURE_LOG_AREAS = defineLogAreas({
1995
2019
  feature: {
1996
2020
  description: "Pipeline environments started from a feature, and feature planning.",
1997
2021
  events: {
2022
+ "debug-build.launched": "The debug button's pipeline environment was launched. Ids and counts only: no ticket text, transcript or screenshot.",
1998
2023
  "naming.fallback": "Automatic naming failed, so a local fallback name is used. Error kind only: the description stays out.",
1999
2024
  "planning.legacy-adopt-failed": "Legacy planning conversations could not be adopted.",
2000
2025
  "planning.tick-retrying": "A planning tick failed on a transient error; the next tick retries."
@@ -2707,6 +2732,28 @@ var BRIDGE_LISTENER_REASONS = new Set([
2707
2732
  "no-listener",
2708
2733
  "launch-exited"
2709
2734
  ]);
2735
+ var CLAUDE_RESULT_SUBTYPES = new Set([
2736
+ "success",
2737
+ "error_during_execution",
2738
+ "error_max_turns",
2739
+ "error_max_budget_usd",
2740
+ "error_max_structured_output_retries"
2741
+ ]);
2742
+ var CLAUDE_API_ERRORS = new Set([
2743
+ "authentication_failed",
2744
+ "oauth_org_not_allowed",
2745
+ "account_on_hold",
2746
+ "verification_required",
2747
+ "billing_error",
2748
+ "rate_limit",
2749
+ "overloaded",
2750
+ "invalid_request",
2751
+ "model_not_found",
2752
+ "server_error",
2753
+ "unknown",
2754
+ "max_output_tokens",
2755
+ "cloud_credential_error"
2756
+ ]);
2710
2757
  var UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
2711
2758
  var SOURCE = new RegExp(`^(?:claude|codex|opencode|cursor|grok|acp|pi):${UUID}$`, "i");
2712
2759
  var STORAGE_DATABASES = new Set(["main", "ledger", "other"]);
@@ -12696,6 +12743,11 @@ async function processes() {
12696
12743
  return match ? [{ pid: Number(match[1]), parent: Number(match[2]), stamp: match[3] }] : [];
12697
12744
  });
12698
12745
  }
12746
+ var DEFAULT_TERM_GRACE_MS = 2000;
12747
+ function termGraceMs(env = process.env) {
12748
+ const parsed = Number(env.ACP_TERM_GRACE_MS);
12749
+ return env.ACP_TERM_GRACE_MS !== undefined && Number.isSafeInteger(parsed) && parsed >= 10 ? Math.min(DEFAULT_TERM_GRACE_MS, parsed) : DEFAULT_TERM_GRACE_MS;
12750
+ }
12699
12751
  async function terminateAcpProcessTree(child) {
12700
12752
  if (!child.pid || child.exitCode !== null || child.signalCode !== null)
12701
12753
  return;
@@ -12746,7 +12798,7 @@ async function terminateAcpProcessTree(child) {
12746
12798
  return false;
12747
12799
  };
12748
12800
  signal("SIGTERM", table);
12749
- if (await wait(2000))
12801
+ if (await wait(termGraceMs()))
12750
12802
  return;
12751
12803
  signal("SIGKILL", await processes().catch(() => []));
12752
12804
  await wait(1000);
@@ -17219,6 +17271,9 @@ var WORKFLOW_RESULT_TOOL_NAMES = {
17219
17271
  "subork-answer": "submit_subork_answer"
17220
17272
  };
17221
17273
  var WORKFLOW_RESULT_VALIDATION_TOOL_NAME = "validate_workflow_result";
17274
+ var WORKFLOW_RESULT_TOOL_META = Object.freeze({
17275
+ "anthropic/alwaysLoad": true
17276
+ });
17222
17277
  var REPORT_FINDING_TOOL_NAME = "report_finding";
17223
17278
  var WORKFLOW_RESULT_KEY_MAX_LENGTH = 128;
17224
17279
  var WORKFLOW_RESULT_TURN_MAX_SLOTS = 16;