feinai 0.5.4 → 0.5.6
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 +1 -1
- package/package.json +1 -1
- package/skills/feinai-dispatch/SKILL.md +74 -17
- package/skills/feinai-sdd/SKILL.md +11 -1
- package/src/cli.ts +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ sudo ln -sf ~/.bun/bin/bun /usr/local/bin/bun
|
|
|
67
67
|
|
|
68
68
|
```bash
|
|
69
69
|
mkdir -p ~/.claude/skills
|
|
70
|
-
SKILLS
|
|
70
|
+
SKILLS=~/.bun/install/global/node_modules/feinai/skills
|
|
71
71
|
for skill in feinai-sdd feinai-write-spec feinai-write-tasks feinai-dispatch feinai-implement; do
|
|
72
72
|
ln -sf "$SKILLS/$skill" ~/.claude/skills/$skill
|
|
73
73
|
done
|
package/package.json
CHANGED
|
@@ -7,45 +7,102 @@ description: Use when tasks exist in feinai for a spec and need to be executed.
|
|
|
7
7
|
|
|
8
8
|
Execute the pending tasks of a SPEC. One responsibility: dispatch subagents in worktrees, integrate their output, handle failures.
|
|
9
9
|
|
|
10
|
-
## Preconditions
|
|
10
|
+
## Preconditions — environment check
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Run this first:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
feinai --version 2>&1
|
|
16
16
|
feinai git status 2>&1
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
### Failure: `feinai: command not found`
|
|
22
|
+
|
|
23
|
+
feinai is not installed. Tell the user:
|
|
24
|
+
|
|
25
|
+
> feinai is not installed. Install with:
|
|
26
|
+
> ```bash
|
|
27
|
+
> bun install -g feinai
|
|
28
|
+
> ```
|
|
29
|
+
> Full setup guide: https://www.npmjs.com/package/feinai
|
|
30
|
+
|
|
31
|
+
**Offer to run it.** Do not proceed until `feinai --version` returns a version number.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
### Failure: `feinai` found but `opengit: command not found`
|
|
36
|
+
|
|
37
|
+
opengit ships with feinai — if it's missing, the install is incomplete. Tell the user:
|
|
38
|
+
|
|
39
|
+
> opengit is missing. Reinstall feinai:
|
|
40
|
+
> ```bash
|
|
41
|
+
> bun remove -g feinai && bun install -g feinai
|
|
42
|
+
> ```
|
|
43
|
+
|
|
44
|
+
**Offer to run it.**
|
|
45
|
+
|
|
46
|
+
---
|
|
20
47
|
|
|
21
|
-
|
|
48
|
+
### Failure: `feinai --version` works but `feinai status` fails with command not found in a different shell
|
|
22
49
|
|
|
23
|
-
Tell the user:
|
|
50
|
+
PATH issue in non-interactive SSH session. `~/.bun/bin` is not loaded. Tell the user:
|
|
24
51
|
|
|
25
|
-
>
|
|
52
|
+
> feinai is installed but not on PATH in this shell context (common in non-interactive SSH sessions).
|
|
26
53
|
>
|
|
27
|
-
> Fix with a one-time symlink (requires
|
|
54
|
+
> Fix with a one-time symlink (requires root):
|
|
28
55
|
> ```bash
|
|
29
56
|
> sudo ln -sf ~/.bun/bin/feinai /usr/local/bin/feinai
|
|
30
57
|
> sudo ln -sf ~/.bun/bin/opengit /usr/local/bin/opengit
|
|
31
58
|
> sudo ln -sf ~/.bun/bin/bun /usr/local/bin/bun
|
|
32
59
|
> ```
|
|
33
|
-
> Or
|
|
60
|
+
> Or via root SSH if available:
|
|
34
61
|
> ```bash
|
|
35
|
-
> ssh
|
|
62
|
+
> ssh root@<host> "ln -sf /home/<user>/.bun/bin/feinai /usr/local/bin/feinai && ln -sf /home/<user>/.bun/bin/opengit /usr/local/bin/opengit && ln -sf /home/<user>/.bun/bin/bun /usr/local/bin/bun"
|
|
36
63
|
> ```
|
|
37
|
-
>
|
|
38
|
-
> Want me to run this fix now?
|
|
39
64
|
|
|
40
|
-
**
|
|
65
|
+
**Offer to run it.** Full docs: https://www.npmjs.com/package/feinai
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
### Failure: `feinai status` exits with code 2 (`no .tasca/tasca.db found`)
|
|
70
|
+
|
|
71
|
+
feinai is installed but no DB in this project. Ask the user:
|
|
72
|
+
|
|
73
|
+
> No feinai DB found in this directory. Run `feinai init` to create one?
|
|
74
|
+
|
|
75
|
+
**Offer to run `feinai init`.**
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
### Failure: skills not activating in Claude Code
|
|
80
|
+
|
|
81
|
+
If Claude Code doesn't recognize `feinai-dispatch` or other skills after install:
|
|
82
|
+
|
|
83
|
+
> Run this to activate the skills:
|
|
84
|
+
> ```bash
|
|
85
|
+
> mkdir -p ~/.claude/skills
|
|
86
|
+
> SKILLS=~/.bun/install/global/node_modules/feinai/skills
|
|
87
|
+
> for skill in feinai-sdd feinai-write-spec feinai-write-tasks feinai-dispatch feinai-implement; do
|
|
88
|
+
> ln -sf "$SKILLS/$skill" ~/.claude/skills/$skill
|
|
89
|
+
> done
|
|
90
|
+
> ```
|
|
91
|
+
> Then restart Claude Code.
|
|
92
|
+
|
|
93
|
+
**Offer to run it.**
|
|
94
|
+
|
|
95
|
+
---
|
|
41
96
|
|
|
42
|
-
|
|
97
|
+
**Do not proceed to dispatch until all checks pass:**
|
|
43
98
|
|
|
44
|
-
1. `feinai
|
|
45
|
-
2.
|
|
46
|
-
3.
|
|
99
|
+
1. `feinai --version` returns a version number
|
|
100
|
+
2. `feinai git status` runs without error
|
|
101
|
+
3. `feinai status` exits 0 (DB found)
|
|
102
|
+
4. The SPEC has pending tasks: `feinai list --spec SPEC-NNN --pending --json` returns non-empty
|
|
103
|
+
5. Current working directory is a clean git repo
|
|
47
104
|
|
|
48
|
-
If any fails: stop
|
|
105
|
+
If any fails: stop, diagnose, offer the fix above.
|
|
49
106
|
|
|
50
107
|
## Input
|
|
51
108
|
|
|
@@ -44,7 +44,17 @@ feinai status 2>/dev/null
|
|
|
44
44
|
- Exit code 0: tasca is active in this project → use this skill.
|
|
45
45
|
- Exit code 2: `No .tasca/tasca.db found` → fall back to vanilla superpowers
|
|
46
46
|
(or ask the user `feinai init` if it seems intended).
|
|
47
|
-
- Command not found:
|
|
47
|
+
- Command not found: feinai is not installed or not on PATH. Tell the user:
|
|
48
|
+
|
|
49
|
+
> `feinai` is not found. Install it with:
|
|
50
|
+
> ```bash
|
|
51
|
+
> bun install -g feinai
|
|
52
|
+
> ```
|
|
53
|
+
> Full documentation and setup guide: https://www.npmjs.com/package/feinai
|
|
54
|
+
>
|
|
55
|
+
> If already installed but not found in this shell context (non-interactive SSH), see the PATH setup section in the docs above.
|
|
56
|
+
|
|
57
|
+
Stop and wait for the user to confirm it's fixed before continuing.
|
|
48
58
|
|
|
49
59
|
---
|
|
50
60
|
|