@neriros/ralphy 2.21.2 → 2.21.3
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/README.md +12 -3
- package/dist/cli/index.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -181,10 +181,16 @@ Example `ralphy.config.json`:
|
|
|
181
181
|
"codeReviewStaleHours": 24,
|
|
182
182
|
"indicators": {
|
|
183
183
|
"getTodo": { "filter": [{ "type": "status", "value": "Todo" }] },
|
|
184
|
-
"getInProgress": {
|
|
185
|
-
|
|
184
|
+
"getInProgress": {
|
|
185
|
+
"filter": [{ "type": "status", "value": "In Progress" }],
|
|
186
|
+
},
|
|
187
|
+
"getConflicted": {
|
|
188
|
+
"filter": [{ "type": "label", "value": "ralph:conflicted" }],
|
|
189
|
+
},
|
|
186
190
|
"getReview": { "filter": [{ "type": "label", "value": "ralph:review" }] },
|
|
187
|
-
"getAutoMerge": {
|
|
191
|
+
"getAutoMerge": {
|
|
192
|
+
"filter": [{ "type": "label", "value": "ralph:auto-merge" }],
|
|
193
|
+
},
|
|
188
194
|
"setInProgress": { "type": "status", "value": "In Progress" },
|
|
189
195
|
"setDone": {
|
|
190
196
|
"apply": [
|
|
@@ -243,6 +249,9 @@ With `useWorktree: true` (or `--worktree`) each task runs in an isolated worktre
|
|
|
243
249
|
|
|
244
250
|
- **`setupScript`** — `sh -c`-run inside the worktree right after scaffolding (e.g. `bun install`, `cp .env.example .env`).
|
|
245
251
|
- **`teardownScript`** — `sh -c`-run after the loop exits and (optional) worktree cleanup.
|
|
252
|
+
|
|
253
|
+
Both scripts receive `WORKSPACE_ROOT` in their environment — the absolute path to the origin repository (the parent of the worktree). Use it to reference project-root files from inside a worktree, e.g. `cp "$WORKSPACE_ROOT/.env.example" .env`.
|
|
254
|
+
|
|
246
255
|
- **`cleanupWorktreeOnSuccess`** — remove the worktree on clean exit. Failed workers always keep their worktree + branch for human inspection.
|
|
247
256
|
|
|
248
257
|
Both scripts log failures but never block the loop. **`appendPrompt`** (or `--prompt` in agent mode) is appended to every scaffolded `proposal.md` under `## Additional instructions` — use it for cross-cutting guidance every task should see.
|
package/dist/cli/index.js
CHANGED
|
@@ -35029,8 +35029,8 @@ import { readFileSync as readFileSync2 } from "fs";
|
|
|
35029
35029
|
import { resolve } from "path";
|
|
35030
35030
|
function getVersion() {
|
|
35031
35031
|
try {
|
|
35032
|
-
if ("2.21.
|
|
35033
|
-
return "2.21.
|
|
35032
|
+
if ("2.21.3")
|
|
35033
|
+
return "2.21.3";
|
|
35034
35034
|
} catch {}
|
|
35035
35035
|
const dirsToTry = [];
|
|
35036
35036
|
try {
|
|
@@ -61460,6 +61460,7 @@ function buildAgentCoordinator(input) {
|
|
|
61460
61460
|
const proc = Bun.spawn({
|
|
61461
61461
|
cmd: ["sh", "-c", cmd],
|
|
61462
61462
|
cwd: cwd2,
|
|
61463
|
+
env: { ...process.env, WORKSPACE_ROOT: projectRoot },
|
|
61463
61464
|
stdout: "ignore",
|
|
61464
61465
|
stderr: "pipe",
|
|
61465
61466
|
stdin: "ignore"
|