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 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="$(bun pm bin -g)/../lib/node_modules/feinai/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feinai",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "Task & spec manager for AI agents — parallel worktrees, live dashboard, SDD skills",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
- Before anything else, verify the environment:
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
- **If `feinai: command not found` or `opengit: command not found`:**
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
- This means `~/.bun/bin` is not on PATH in this shell context. This is a known issue with bun global installs in non-interactive sessions.
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
- > `feinai` (or `opengit`) is not on PATH in this shell context. This happens in non-interactive SSH sessions where `~/.bun/bin` is not loaded.
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 sudo/root):
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 if root access is available via a different user (e.g. `do-hermes`):
60
+ > Or via root SSH if available:
34
61
  > ```bash
35
- > ssh do-hermes "ln -sf /home/martin/.bun/bin/feinai /usr/local/bin/feinai && ln -sf /home/martin/.bun/bin/opengit /usr/local/bin/opengit && ln -sf /home/martin/.bun/bin/bun /usr/local/bin/bun"
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
- **Do not proceed until `feinai --version` returns a version number.**
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
- Then verify:
97
+ **Do not proceed to dispatch until all checks pass:**
43
98
 
44
- 1. `feinai status` succeeds
45
- 2. The SPEC has pending tasks: `feinai list --spec SPEC-NNN --pending --json` returns non-empty
46
- 3. The current working directory is a clean git repo (no uncommitted changes blocking worktree creation)
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 and report. Do not improvise.
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: tasca is not installed. Tell the user and stop.
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
 
package/src/cli.ts CHANGED
@@ -48,7 +48,7 @@ import {
48
48
  type OutputFormat,
49
49
  } from "./format";
50
50
 
51
- const VERSION = "0.5.4";
51
+ const VERSION = "0.5.6";
52
52
 
53
53
  interface ParsedArgs {
54
54
  positional: string[];