@buildautomaton/cli 0.1.95 → 0.1.96

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/cli.js CHANGED
@@ -24124,6 +24124,7 @@ function isCliSqliteLockError(e) {
24124
24124
  var CliSqliteInterrupted;
24125
24125
  var init_sqlite_errors = __esm({
24126
24126
  "../bridge/src/sqlite/sqlite-errors.ts"() {
24127
+ "use strict";
24127
24128
  CliSqliteInterrupted = class extends Error {
24128
24129
  name = "CliSqliteInterrupted";
24129
24130
  constructor() {
@@ -30369,7 +30370,7 @@ var {
30369
30370
  } = import_index.default;
30370
30371
 
30371
30372
  // src/cli-version.ts
30372
- var CLI_VERSION = "0.1.95".length > 0 ? "0.1.95" : "0.0.0-dev";
30373
+ var CLI_VERSION = "0.1.96".length > 0 ? "0.1.96" : "0.0.0-dev";
30373
30374
 
30374
30375
  // src/cli/defaults.ts
30375
30376
  var DEFAULT_API_URL = process.env.BUILDAUTOMATON_API_URL ?? "https://api.buildautomaton.com";
@@ -30673,7 +30674,7 @@ function formatSpawnError(err, command) {
30673
30674
  }
30674
30675
 
30675
30676
  // ../bridge/src/agents/acp/clients/kill-process-tree.ts
30676
- var import_tree_kill = __toESM(require_tree_kill());
30677
+ var import_tree_kill = __toESM(require_tree_kill(), 1);
30677
30678
  import { promisify } from "node:util";
30678
30679
  var treeKillAsync = promisify(import_tree_kill.default);
30679
30680
  var ACP_PROCESS_TREE_KILL_GRACE_MS = 2500;
@@ -43591,7 +43592,7 @@ function createBridgeHeartbeatController(params) {
43591
43592
  }
43592
43593
 
43593
43594
  // ../bridge/src/cli/cli-version.ts
43594
- var CLI_VERSION2 = "0.1.95".length > 0 ? "0.1.95" : "0.0.0-dev";
43595
+ var CLI_VERSION2 = "0.1.96".length > 0 ? "0.1.96" : "0.0.0-dev";
43595
43596
 
43596
43597
  // ../bridge/src/connection/identify/send-bridge-identify.ts
43597
43598
  function sendBridgeIdentify(ws, params) {
@@ -54085,6 +54086,7 @@ async function executePromptQueueActions(actions, deps) {
54085
54086
  continue;
54086
54087
  }
54087
54088
  if (action.type === "start_run") {
54089
+ if (getRunIdQueueKey(action.turn.turnId)) continue;
54088
54090
  const ok = await markTurnRunning(action.queueKey, action.turn, deps);
54089
54091
  if (!ok) {
54090
54092
  report[action.queueKey] = [{ turnId: action.turn.turnId, cliState: "failed" }];
@@ -54135,7 +54137,7 @@ var SLOW_QUEUE_SYNC_MS = 2e3;
54135
54137
  async function persistAndReconcileQueue(queueKey, serverTurns, deps) {
54136
54138
  const prev = await readPersistedQueue(queueKey);
54137
54139
  const merged = mergeServerSnapshotWithLocal(queueKey, serverTurns, prev);
54138
- const liveCheck = (runId) => deps.acpManager.isRegisteredRun(runId);
54140
+ const liveCheck = (runId) => deps.acpManager.isRegisteredRun(runId) || getRunIdQueueKey(runId) != null;
54139
54141
  const actions = reconcileQueueActions(queueKey, merged.turns, liveCheck);
54140
54142
  merged.turns = applyStaleRunningNormalization(merged.turns, liveCheck);
54141
54143
  await writePersistedQueue(merged);