@neriros/ralphy 3.10.11 → 3.10.12

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.
@@ -18928,8 +18928,8 @@ import { readFileSync } from "fs";
18928
18928
  import { resolve } from "path";
18929
18929
  function getVersion() {
18930
18930
  try {
18931
- if ("3.10.11")
18932
- return "3.10.11";
18931
+ if ("3.10.12")
18932
+ return "3.10.12";
18933
18933
  } catch {}
18934
18934
  const dirsToTry = [];
18935
18935
  try {
@@ -106150,6 +106150,7 @@ class AgentCoordinator {
106150
106150
  issueIdentifier: issue2.identifier,
106151
106151
  issue: issue2,
106152
106152
  trigger,
106153
+ ...prep.cwd ? { cwd: prep.cwd } : {},
106153
106154
  kill: handle.kill,
106154
106155
  lastReportedIteration: 0,
106155
106156
  lastSyncedIteration: 0,
@@ -106237,7 +106238,7 @@ class AgentCoordinator {
106237
106238
  exit_code: code,
106238
106239
  ok
106239
106240
  });
106240
- await this.notifyExited(issue2, prep.changeName, code, trigger);
106241
+ await this.notifyExited(issue2, prep.changeName, code, trigger, worker.cwd);
106241
106242
  this.deps.onWorkersChanged();
106242
106243
  this.spawnNext();
106243
106244
  }
@@ -106297,7 +106298,7 @@ class AgentCoordinator {
106297
106298
  this.deps.onLog(`! onSteeringAppended failed for ${changeName}: ${err.message}`, "yellow");
106298
106299
  }
106299
106300
  }
106300
- async notifyExited(issue2, changeName, code, trigger) {
106301
+ async notifyExited(issue2, changeName, code, trigger, workerCwd) {
106301
106302
  const noChanges = code === NO_CHANGES_EXIT;
106302
106303
  const ok = code === 0 || noChanges;
106303
106304
  const changeDir = this.deps.getChangeDir?.(issue2) ?? undefined;
@@ -106317,6 +106318,7 @@ class AgentCoordinator {
106317
106318
  issueIdentifier: issue2.identifier,
106318
106319
  issue: issue2,
106319
106320
  trigger,
106321
+ ...workerCwd ? { cwd: workerCwd } : {},
106320
106322
  kill: () => {},
106321
106323
  lastReportedIteration: 0,
106322
106324
  lastSyncedIteration: 0,
@@ -106929,7 +106931,9 @@ async function applyAwaitingMarkerOnce(issue2, statePath, state, deps) {
106929
106931
  }
106930
106932
  state.confirmation.awaitingMarkerAppliedAt = new Date().toISOString();
106931
106933
  try {
106932
- await writeConfirmationState(statePath, state.stateObj, state.confirmation);
106934
+ const fresh = await readConfirmationState(statePath);
106935
+ fresh.confirmation.awaitingMarkerAppliedAt = state.confirmation.awaitingMarkerAppliedAt;
106936
+ await writeConfirmationState(statePath, fresh.stateObj, fresh.confirmation);
106933
106937
  } catch (err) {
106934
106938
  deps.onLog(`! persist awaitingMarkerAppliedAt for ${issue2.identifier}: ${err.message}`, "yellow");
106935
106939
  }
@@ -106949,7 +106953,9 @@ async function openDraftPrOnce(issue2, statePath, changeName, cwd2, state, deps)
106949
106953
  }
106950
106954
  state.confirmation.earlyDraftPrAt = new Date().toISOString();
106951
106955
  try {
106952
- await writeConfirmationState(statePath, state.stateObj, state.confirmation);
106956
+ const fresh = await readConfirmationState(statePath);
106957
+ fresh.confirmation.earlyDraftPrAt = state.confirmation.earlyDraftPrAt;
106958
+ await writeConfirmationState(statePath, fresh.stateObj, fresh.confirmation);
106953
106959
  } catch (err) {
106954
106960
  deps.onLog(`! persist earlyDraftPrAt for ${issue2.identifier}: ${err.message}`, "yellow");
106955
106961
  }
@@ -107677,6 +107683,7 @@ function createPrepareHelpers(input) {
107677
107683
  }
107678
107684
  return {
107679
107685
  changeName,
107686
+ cwd: workerCwd,
107680
107687
  ...maps.prByChange.has(changeName) ? { prUrl: maps.prByChange.get(changeName) } : {}
107681
107688
  };
107682
107689
  }
@@ -262202,7 +262209,7 @@ function createCommentSyncHooks(input) {
262202
262209
  return {
262203
262210
  enabled: enabled2,
262204
262211
  syncTasks: async (worker, iteration) => {
262205
- const root = cwdByChange.get(worker.changeName) ?? projectRoot;
262212
+ const root = worker.cwd ?? cwdByChange.get(worker.changeName) ?? projectRoot;
262206
262213
  const layout = projectLayout(root);
262207
262214
  const changeDir = layout.changeDir(worker.changeName);
262208
262215
  const statePath = layout.stateFile(worker.changeName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neriros/ralphy",
3
- "version": "3.10.11",
3
+ "version": "3.10.12",
4
4
  "description": "An iterative AI task execution framework. Orchestrates multi-phase autonomous work using Claude or Codex engines.",
5
5
  "keywords": [
6
6
  "agent",