summaryrefslogtreecommitdiff
path: root/skills/brainstorming/scripts/start-server.sh
AgeCommit message (Collapse)Author
2026-03-11Fix owner PID tracking: resolve grandparent to get actual harness PIDJesse Vincent
$PPID inside start-server.sh is the ephemeral shell the harness spawns to run the script — it dies immediately when the script exits, causing the server to shut down after ~60s. Now resolves grandparent PID via `ps -o ppid= -p $PPID` to get the actual harness process (e.g. claude). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11Exit server when owner process dies (harness-agnostic cleanup)Jesse Vincent
start-server.sh passes $PPID as BRAINSTORM_OWNER_PID to the server. The server checks every 60s if the owner process is still alive (kill -0). If it's gone, the server shuts down immediately — deletes .server-info, writes .server-stopped, exits cleanly. Works across all harnesses (CC, Codex, Gemini CLI) since it tracks the shell process that launched the script, which dies when the harness dies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11Remove vendored node_modules, swap to zero-dep server.jsJesse Vincent
Delete 717 files: index.js, package.json, package-lock.json, and the entire node_modules directory (express, ws, chokidar + deps). Update start-server.sh to use server.js. Remove gitignore exception. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09Bundle brainstorm server dependencies instead of requiring npm installJesse Vincent
Vendor node_modules into the repo so the brainstorm server works immediately on fresh plugin installs without needing npm at runtime.
2026-03-09Auto-install brainstorm server dependencies on first runJesse Vincent
start-server.sh now runs npm install if node_modules is missing. Fixes broken server when superpowers is installed as a plugin (node_modules are in .gitignore and not included in the clone).
2026-03-09Replace Codex-specific server guidance with per-platform launch instructionsJesse Vincent
The visual companion docs now give concrete launch commands per platform: Claude Code (default mode), Codex (auto-foreground via CODEX_CI), Gemini CLI (--foreground with is_background), and a fallback for other environments.
2026-03-09Move brainstorm-server into skill directory per agentskills specJesse Vincent
Moves lib/brainstorm-server/ → skills/brainstorming/scripts/ so the brainstorming skill uses relative paths (scripts/start-server.sh) instead of ${CLAUDE_PLUGIN_ROOT}/lib/brainstorm-server/. This follows the agentskills.io specification for portable, cross-platform skills. Updates visual-companion.md references and test paths. All tests pass.