ralph-prd 1.0.9 → 1.0.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.
- package/README.md +7 -2
- package/bin/install.mjs +10 -1
- package/install.sh +10 -13
- package/package.json +1 -1
- package/ralph/ralph-claude.mjs +1 -1
- package/ralph/ralph.config.sample.yaml +10 -0
package/README.md
CHANGED
|
@@ -94,8 +94,10 @@ Options:
|
|
|
94
94
|
--i-did-this Skip Claude self-commit; run separate commit step
|
|
95
95
|
--send-it Push branch + open PR when all phases complete
|
|
96
96
|
--wait-for-it Pause before each commit for review
|
|
97
|
-
--skip-ship-check
|
|
98
|
-
--
|
|
97
|
+
--skip-ship-check Skip the post-commit ship-check step entirely
|
|
98
|
+
--ship-check-retries=N Retry ship-check up to N times per phase before giving up (default 1)
|
|
99
|
+
--skip-on-ship-check-fail Log and continue when all ship-check retries fail instead of hard-stopping
|
|
100
|
+
--skip-on-verify-fail Skip verification and continue instead of hard-stopping when all repair attempts fail
|
|
99
101
|
--update-skills Re-fetch skills from tahaJemmali/skills and exit
|
|
100
102
|
--version, -v Print installed version and exit
|
|
101
103
|
```
|
|
@@ -147,6 +149,9 @@ writableDirs:
|
|
|
147
149
|
flags:
|
|
148
150
|
maxRepairs: 3
|
|
149
151
|
sendIt: false
|
|
152
|
+
skipShipCheck: false
|
|
153
|
+
shipCheckRetries: 1
|
|
154
|
+
skipOnShipCheckFail: true
|
|
150
155
|
skipOnVerifyFail: false
|
|
151
156
|
|
|
152
157
|
hooks:
|
package/bin/install.mjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* from the skills repo via `npx skills add tahaJemmali/skills`.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { existsSync, mkdirSync, cpSync, rmSync, readFileSync, writeFileSync } from 'fs';
|
|
10
|
+
import { existsSync, mkdirSync, cpSync, rmSync, readFileSync, writeFileSync, copyFileSync } from 'fs';
|
|
11
11
|
import { resolve, dirname } from 'path';
|
|
12
12
|
import { fileURLToPath } from 'url';
|
|
13
13
|
import { spawnSync } from 'child_process';
|
|
@@ -62,6 +62,14 @@ const pkg = JSON.parse(readFileSync(resolve(PKG_ROOT, 'package.json'), 'utf8'));
|
|
|
62
62
|
writeFileSync(resolve(ralphDst, '.ralph-version'), pkg.version + '\n', 'utf8');
|
|
63
63
|
ok(`Installed ralph runner v${pkg.version} -> .claude/ralph/`);
|
|
64
64
|
|
|
65
|
+
// Create default ralph.config.yaml if it doesn't exist yet
|
|
66
|
+
const configDst = resolve(ralphDst, 'ralph.config.yaml');
|
|
67
|
+
const configSrc = resolve(ralphDst, 'ralph.config.sample.yaml');
|
|
68
|
+
if (!existsSync(configDst) && existsSync(configSrc)) {
|
|
69
|
+
copyFileSync(configSrc, configDst);
|
|
70
|
+
ok('Created default ralph.config.yaml -> .claude/ralph/ralph.config.yaml');
|
|
71
|
+
}
|
|
72
|
+
|
|
65
73
|
// Install skills via skills.sh
|
|
66
74
|
info('Installing skills from tahaJemmali/skills…');
|
|
67
75
|
const REQUIRED_SKILLS = [
|
|
@@ -111,6 +119,7 @@ console.log('');
|
|
|
111
119
|
info(`Installed to: ${claudeDir}`);
|
|
112
120
|
info('');
|
|
113
121
|
info('Quick start:');
|
|
122
|
+
info(' 0. Configure: edit .claude/ralph/ralph.config.yaml');
|
|
114
123
|
info(' 1. Write a PRD: claude then /write-a-prd');
|
|
115
124
|
info(' 2. Create a plan: claude then /prd-to-plan');
|
|
116
125
|
info(' 3. Execute: node .claude/ralph/ralph-claude.mjs docs/<feature>/plan.md');
|
package/install.sh
CHANGED
|
@@ -95,20 +95,17 @@ if [ -f "$SOURCE_DIR/package.json" ]; then
|
|
|
95
95
|
info "Stamped version: $VERSION"
|
|
96
96
|
fi
|
|
97
97
|
|
|
98
|
-
#
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
GITIGNORE
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if [ ! -f "$GITIGNORE" ] || ! grep -qF "# ralph-prd" "$GITIGNORE"; then
|
|
105
|
-
printf '\n# ralph-prd (installed via install.sh)\n' >> "$GITIGNORE"
|
|
106
|
-
fi
|
|
107
|
-
echo "$entry" >> "$GITIGNORE"
|
|
108
|
-
ok "Added $entry to .gitignore"
|
|
98
|
+
# Add required entries to .gitignore (idempotent — skips entries already present).
|
|
99
|
+
GITIGNORE="$PROJECT_ROOT/.gitignore"
|
|
100
|
+
for entry in ".claude/ralph/" ".claude/skills/" "logs/"; do
|
|
101
|
+
if [ ! -f "$GITIGNORE" ] || ! grep -qxF "$entry" "$GITIGNORE"; then
|
|
102
|
+
if [ ! -f "$GITIGNORE" ] || ! grep -qF "# ralph-prd" "$GITIGNORE"; then
|
|
103
|
+
printf '\n# ralph-prd (installed via install.sh)\n' >> "$GITIGNORE"
|
|
109
104
|
fi
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
echo "$entry" >> "$GITIGNORE"
|
|
106
|
+
ok "Added $entry to .gitignore"
|
|
107
|
+
fi
|
|
108
|
+
done
|
|
112
109
|
|
|
113
110
|
# Summary
|
|
114
111
|
echo ""
|
package/package.json
CHANGED
package/ralph/ralph-claude.mjs
CHANGED
|
@@ -363,7 +363,7 @@ async function main() {
|
|
|
363
363
|
// Derive branch name and log directory
|
|
364
364
|
const branch = deriveBranchName(planPath);
|
|
365
365
|
const timestamp = new Date().toISOString().replace(/[:.]/g, '-').slice(0, 19);
|
|
366
|
-
const logsBaseDir = resolve(__dirname, 'logs');
|
|
366
|
+
const logsBaseDir = resolve(__dirname, '../..', 'logs');
|
|
367
367
|
let logsDir;
|
|
368
368
|
if (isDryRun) {
|
|
369
369
|
// Dry runs always get a fresh folder
|
|
@@ -54,6 +54,16 @@ flags:
|
|
|
54
54
|
# CLI equivalent: --skip-ship-check
|
|
55
55
|
skipShipCheck: false
|
|
56
56
|
|
|
57
|
+
# Max ship-check attempts per phase before giving up. On final failure,
|
|
58
|
+
# behaviour is controlled by skipOnShipCheckFail below.
|
|
59
|
+
# CLI equivalent: --ship-check-retries=N
|
|
60
|
+
shipCheckRetries: 1
|
|
61
|
+
|
|
62
|
+
# When true, log and continue if ship-check fails after all retries instead
|
|
63
|
+
# of hard-stopping. Defaults to true.
|
|
64
|
+
# CLI equivalent: --skip-on-ship-check-fail
|
|
65
|
+
skipOnShipCheckFail: true
|
|
66
|
+
|
|
57
67
|
# When all repair attempts are exhausted, skip verification and continue to
|
|
58
68
|
# the commit step instead of hard-stopping. Useful when the acceptance
|
|
59
69
|
# criteria require external credentials or manual steps that the agent cannot
|