specrails-core 2.1.1 → 2.1.2
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 +6 -3
- package/docs/testing/test-matrix-codex.md +15 -15
- package/docs/user-docs/cli-reference.md +1 -0
- package/docs/user-docs/getting-started-codex.md +1 -1
- package/docs/user-docs/installation.md +9 -2
- package/docs/user-docs/quick-start.md +2 -0
- package/install.sh +14 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
[](https://www.npmjs.com/package/specrails-core)
|
|
7
7
|
[](https://docs.anthropic.com/en/docs/claude-code)
|
|
8
|
+
[](https://github.com/openai/codex)
|
|
8
9
|
|
|
9
10
|
**Your AI development team. From idea to production code.**
|
|
10
11
|
|
|
@@ -14,7 +15,7 @@ One command gives your repo a full team of specialized AI agents: architect, dev
|
|
|
14
15
|
npx specrails-core@latest init --root-dir .
|
|
15
16
|
```
|
|
16
17
|
|
|
17
|
-
> **Requirements:** [Claude Code](https://docs.anthropic.com/en/docs/claude-code) (
|
|
18
|
+
> **Requirements:** [Claude Code](https://docs.anthropic.com/en/docs/claude-code) or [Codex CLI](https://github.com/openai/codex) (choose one), Node 18+, git
|
|
18
19
|
|
|
19
20
|
<!--
|
|
20
21
|
BOARD: Add demo GIF here — this is the #1 conversion driver on Product Hunt and npm.
|
|
@@ -51,10 +52,12 @@ Every artifact (agents, rules, personas) is generated **specifically for your pr
|
|
|
51
52
|
npx specrails-core@latest init --root-dir .
|
|
52
53
|
```
|
|
53
54
|
|
|
54
|
-
**2. Run setup inside
|
|
55
|
+
**2. Run setup inside your AI CLI**
|
|
55
56
|
|
|
56
57
|
```bash
|
|
57
|
-
claude #
|
|
58
|
+
claude # Claude Code
|
|
59
|
+
# or
|
|
60
|
+
codex # OpenAI Codex (beta)
|
|
58
61
|
> /setup # run the 5-phase wizard (~5 min)
|
|
59
62
|
```
|
|
60
63
|
|
|
@@ -37,15 +37,15 @@ Epic: [SPEA-505](/SPEA/issues/SPEA-505) — Codex Compatibility Approach B
|
|
|
37
37
|
| Feature | Claude Code | Codex |
|
|
38
38
|
|---------|:-:|:-:|
|
|
39
39
|
| Legacy slash commands `.claude/commands/sr/` | ✅ | ❌ |
|
|
40
|
-
| SKILL.md format `.claude/skills/sr-*/` |
|
|
41
|
-
| `sr:implement` skill | ✅ |
|
|
42
|
-
| `sr:product-backlog` skill | ✅ |
|
|
43
|
-
| `sr:health-check` skill | ✅ |
|
|
44
|
-
| `sr:compat-check` skill | ✅ |
|
|
45
|
-
| `sr:why` skill | ✅ |
|
|
46
|
-
| `sr:refactor-recommender` skill | ✅ |
|
|
47
|
-
| `sr:batch-implement` skill | ✅ |
|
|
48
|
-
| `sr:update-product-driven-backlog` skill | ✅ |
|
|
40
|
+
| SKILL.md format `.claude/skills/sr-*/` | ✅ | ✅ |
|
|
41
|
+
| `sr:implement` skill | ✅ | ✅ |
|
|
42
|
+
| `sr:product-backlog` skill | ✅ | ✅ |
|
|
43
|
+
| `sr:health-check` skill | ✅ | ✅ |
|
|
44
|
+
| `sr:compat-check` skill | ✅ | ✅ |
|
|
45
|
+
| `sr:why` skill | ✅ | ✅ |
|
|
46
|
+
| `sr:refactor-recommender` skill | ✅ | ✅ |
|
|
47
|
+
| `sr:batch-implement` skill | ✅ | ✅ |
|
|
48
|
+
| `sr:update-product-driven-backlog` skill | ✅ | ✅ |
|
|
49
49
|
| Backward compat: slash commands still invoke correctly | ✅ | — |
|
|
50
50
|
|
|
51
51
|
### Permissions Configuration (SPEA-508)
|
|
@@ -76,12 +76,12 @@ Epic: [SPEA-505](/SPEA/issues/SPEA-505) — Codex Compatibility Approach B
|
|
|
76
76
|
|
|
77
77
|
| Feature | Claude Code | Codex |
|
|
78
78
|
|---------|:-:|:-:|
|
|
79
|
-
| Hub detects claude binary |
|
|
80
|
-
| Hub detects codex binary | — |
|
|
81
|
-
| `integration-contract.json` v2 schema valid |
|
|
82
|
-
| Hub invokes CLI with correct args |
|
|
83
|
-
| Hub dashboard shows CLI badge |
|
|
84
|
-
| Hub handles "no CLI detected" state |
|
|
79
|
+
| Hub detects claude binary | ✅ | — |
|
|
80
|
+
| Hub detects codex binary | — | ✅ |
|
|
81
|
+
| `integration-contract.json` v2 schema valid | ✅ | ✅ |
|
|
82
|
+
| Hub invokes CLI with correct args | ✅ | ✅ |
|
|
83
|
+
| Hub dashboard shows CLI badge | ✅ | ✅ |
|
|
84
|
+
| Hub handles "no CLI detected" state | ✅ | ✅ |
|
|
85
85
|
|
|
86
86
|
---
|
|
87
87
|
|
|
@@ -410,6 +410,7 @@ The `npx specrails-core@latest init` command accepts:
|
|
|
410
410
|
|------|--------|
|
|
411
411
|
| `--root-dir <path>` | Install into this directory (default: current directory) |
|
|
412
412
|
| `--yes` / `-y` | Skip confirmation prompts |
|
|
413
|
+
| `--provider <claude\|codex>` | Force a specific AI CLI (default: auto-detect) |
|
|
413
414
|
|
|
414
415
|
---
|
|
415
416
|
|
|
@@ -177,7 +177,7 @@ codex --version
|
|
|
177
177
|
If Codex is installed via a custom path, pass the provider explicitly:
|
|
178
178
|
|
|
179
179
|
```bash
|
|
180
|
-
|
|
180
|
+
npx specrails-core@latest init --root-dir . --provider codex
|
|
181
181
|
```
|
|
182
182
|
|
|
183
183
|
### Existing `.codex/` directory detected
|
|
@@ -13,7 +13,7 @@ SpecRails supports both **Claude Code** and **OpenAI Codex**. The installer dete
|
|
|
13
13
|
| **Codex CLI** | Latest | Beta — `npm i -g @openai/codex` |
|
|
14
14
|
| **Git** | Any | Your project must be a git repository |
|
|
15
15
|
|
|
16
|
-
You need at least one of Claude Code or Codex CLI. If both are installed, the installer uses Claude Code by default. Override with `CLI_PROVIDER=codex
|
|
16
|
+
You need at least one of Claude Code or Codex CLI. If both are installed, the installer uses Claude Code by default. Override with `--provider codex` (or the env var `CLI_PROVIDER=codex`).
|
|
17
17
|
|
|
18
18
|
Optional but recommended:
|
|
19
19
|
|
|
@@ -38,9 +38,16 @@ The installer copies agent templates, skills, and configuration files into `.cla
|
|
|
38
38
|
|------|--------|
|
|
39
39
|
| `--root-dir <path>` | Target directory (default: current directory) |
|
|
40
40
|
| `--yes` / `-y` | Skip confirmation prompts |
|
|
41
|
+
| `--provider <claude\|codex>` | Force a specific AI CLI (default: auto-detect) |
|
|
41
42
|
|
|
42
43
|
You can also force a specific provider:
|
|
43
44
|
|
|
45
|
+
```bash
|
|
46
|
+
npx specrails-core@latest init --root-dir . --provider codex
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Alternatively, use the `CLI_PROVIDER` env var (legacy):
|
|
50
|
+
|
|
44
51
|
```bash
|
|
45
52
|
CLI_PROVIDER=codex npx specrails-core@latest init --root-dir .
|
|
46
53
|
```
|
|
@@ -169,7 +176,7 @@ npm i -g @openai/codex
|
|
|
169
176
|
Or force the provider if Codex is installed at a non-standard path:
|
|
170
177
|
|
|
171
178
|
```bash
|
|
172
|
-
|
|
179
|
+
npx specrails-core@latest init --root-dir . --provider codex
|
|
173
180
|
```
|
|
174
181
|
|
|
175
182
|
---
|
package/install.sh
CHANGED
|
@@ -290,15 +290,24 @@ if [[ "$CLI_PROVIDER" == "claude" ]]; then
|
|
|
290
290
|
fi
|
|
291
291
|
else
|
|
292
292
|
# Codex
|
|
293
|
+
CODEX_AUTHED=false
|
|
293
294
|
if [[ -n "${OPENAI_API_KEY:-}" ]]; then
|
|
294
|
-
|
|
295
|
+
CODEX_AUTHED=true
|
|
296
|
+
elif codex login status 2>/dev/null | grep -qi "logged in"; then
|
|
297
|
+
CODEX_AUTHED=true
|
|
298
|
+
elif [[ -f "${HOME}/.codex/auth.json" ]] && grep -q '"access_token"' "${HOME}/.codex/auth.json" 2>/dev/null; then
|
|
299
|
+
CODEX_AUTHED=true
|
|
300
|
+
fi
|
|
301
|
+
|
|
302
|
+
if [[ "$CODEX_AUTHED" == "true" ]]; then
|
|
303
|
+
ok "Codex: authenticated"
|
|
295
304
|
elif [[ "$SKIP_PREREQS" == "1" ]]; then
|
|
296
|
-
warn "
|
|
305
|
+
warn "Codex authentication not found (skipped — SPECRAILS_SKIP_PREREQS=1)"
|
|
297
306
|
else
|
|
298
|
-
fail "No
|
|
307
|
+
fail "No Codex authentication found."
|
|
299
308
|
echo ""
|
|
300
|
-
echo "
|
|
301
|
-
echo "
|
|
309
|
+
echo " Option 1 (API key): export OPENAI_API_KEY=<your-key>"
|
|
310
|
+
echo " Option 2 (OAuth): codex login"
|
|
302
311
|
exit 1
|
|
303
312
|
fi
|
|
304
313
|
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specrails-core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "AI agent workflow system for Claude Code — installs 12 specialized agents, orchestration commands, and persona-driven product discovery into any repository",
|
|
5
5
|
"bin": {
|
|
6
6
|
"specrails-core": "bin/specrails-core.js"
|