specpilot 2.20.0 ā 2.21.0
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 +35 -14
- package/dist/cli.js +6 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/add-specs.d.ts +1 -0
- package/dist/commands/add-specs.d.ts.map +1 -1
- package/dist/commands/add-specs.js +8 -2
- package/dist/commands/add-specs.js.map +1 -1
- package/dist/commands/backfill.js +8 -9
- package/dist/commands/backfill.js.map +1 -1
- package/dist/commands/init.d.ts +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +10 -4
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/refine.d.ts.map +1 -1
- package/dist/commands/refine.js +6 -1
- package/dist/commands/refine.js.map +1 -1
- package/dist/commands/serve.d.ts +1 -1
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +22 -7
- package/dist/commands/serve.js.map +1 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +4 -0
- package/dist/commands/validate.js.map +1 -1
- package/dist/core/chatFlow.js +1 -1
- package/dist/core/chatFlow.js.map +1 -1
- package/dist/core/ideConfig.d.ts +0 -1
- package/dist/core/ideConfig.d.ts.map +1 -1
- package/dist/core/ideConfig.js +1 -2
- package/dist/core/ideConfig.js.map +1 -1
- package/dist/core/render.d.ts +2 -0
- package/dist/core/render.d.ts.map +1 -1
- package/dist/core/render.js +1 -0
- package/dist/core/render.js.map +1 -1
- package/dist/core/slashCommands.js +7 -7
- package/dist/core/specFiles.js +8 -6
- package/dist/core/specFiles.js.map +1 -1
- package/dist/core/templateEngine.d.ts +1 -0
- package/dist/core/templateEngine.d.ts.map +1 -1
- package/dist/core/templateEngine.js +4 -0
- package/dist/core/templateEngine.js.map +1 -1
- package/dist/utils/addSpecsQuestions.d.ts +7 -0
- package/dist/utils/addSpecsQuestions.d.ts.map +1 -1
- package/dist/utils/addSpecsQuestions.js +7 -1
- package/dist/utils/addSpecsQuestions.js.map +1 -1
- package/dist/utils/folderPicker.d.ts.map +1 -1
- package/dist/utils/folderPicker.js +3 -1
- package/dist/utils/folderPicker.js.map +1 -1
- package/dist/utils/ideConfigGenerator.d.ts +2 -8
- package/dist/utils/ideConfigGenerator.d.ts.map +1 -1
- package/dist/utils/ideConfigGenerator.js +2 -9
- package/dist/utils/ideConfigGenerator.js.map +1 -1
- package/dist/utils/mcpLocal.js +1 -1
- package/dist/utils/mcpLocal.js.map +1 -1
- package/dist/utils/nodeCheck.d.ts +20 -0
- package/dist/utils/nodeCheck.d.ts.map +1 -0
- package/dist/utils/nodeCheck.js +50 -0
- package/dist/utils/nodeCheck.js.map +1 -0
- package/dist/utils/projectRegistry.d.ts +2 -0
- package/dist/utils/projectRegistry.d.ts.map +1 -1
- package/dist/utils/projectRegistry.js +3 -1
- package/dist/utils/projectRegistry.js.map +1 -1
- package/dist/utils/slashCommandGenerator.d.ts.map +1 -1
- package/dist/utils/slashCommandGenerator.js +12 -0
- package/dist/utils/slashCommandGenerator.js.map +1 -1
- package/dist/utils/specArchiver.d.ts +17 -4
- package/dist/utils/specArchiver.d.ts.map +1 -1
- package/dist/utils/specArchiver.js +20 -4
- package/dist/utils/specArchiver.js.map +1 -1
- package/dist/utils/specBackfiller.d.ts +19 -12
- package/dist/utils/specBackfiller.d.ts.map +1 -1
- package/dist/utils/specBackfiller.js +54 -56
- package/dist/utils/specBackfiller.js.map +1 -1
- package/dist/utils/specPaths.d.ts.map +1 -1
- package/dist/utils/specPaths.js +5 -2
- package/dist/utils/specPaths.js.map +1 -1
- package/dist/utils/specServer.d.ts +24 -0
- package/dist/utils/specServer.d.ts.map +1 -1
- package/dist/utils/specServer.js +205 -62
- package/dist/utils/specServer.js.map +1 -1
- package/dist/utils/specValidator.d.ts +6 -0
- package/dist/utils/specValidator.d.ts.map +1 -1
- package/dist/utils/specValidator.js +153 -8
- package/dist/utils/specValidator.js.map +1 -1
- package/dist/utils/taskMover.d.ts +9 -3
- package/dist/utils/taskMover.d.ts.map +1 -1
- package/dist/utils/taskMover.js +42 -18
- package/dist/utils/taskMover.js.map +1 -1
- package/package.json +3 -3
- package/ui/app.css +107 -11
- package/ui/app.js +320 -43
- package/ui/index.html +41 -23
- package/ui/route.js +41 -12
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
[](https://lightnow.ai/servers/dev.specpilot/specpilot)
|
|
6
6
|
|
|
7
|
-
SpecPilot is a spec-driven development (SDD) CLI for AI coding agents like Claude Code, Cursor, and ChatGPT. It initializes, validates, and syncs a `.specs/` directory so AI-assisted coding stays grounded in living requirements, architecture, and task specs instead of drifting from the codebase.
|
|
7
|
+
SpecPilot is a spec-driven development (SDD) CLI for AI coding agents like Claude Code, Cursor, and ChatGPT. It initializes, validates, and syncs a `.specs/` directory so AI-assisted coding stays grounded in living requirements, architecture, and task specs instead of drifting from the codebase. `specpilot serve` lays that folder out in a local web page: the tasks, the architecture, the test plan, the security model, and your AI IDE's instructions, commands and skills.
|
|
8
8
|
|
|
9
9
|

|
|
10
10
|
|
|
@@ -37,6 +37,10 @@ No install, no API key. Full setup notes: <https://specpilot.dev/mcp-setup>
|
|
|
37
37
|
|
|
38
38
|
`specpilot serve` also serves a local MCP endpoint, so your AI IDE can read this machine's specs, add or move tasks and set up a folder: see [Local MCP endpoint](#local-mcp-endpoint-specpilot-serve) below.
|
|
39
39
|
|
|
40
|
+
## Requirements
|
|
41
|
+
|
|
42
|
+
Node.js 22.23.5 or later 22.x, 24.22.3 or later 24.x, or 26.13.1 or later (`package.json` `engines`: `^22.23.5 || ^24.22.3 || >=26.13.1`): the Node.js release lines that still get security fixes, at or above their November 2026 security release. Older Node.js versions and 25.x are not supported. npm warns (`EBADENGINE`) when you install on a Node.js outside this range, but does not stop the install; SpecPilot itself prints a warning on stderr when it runs on one, and the command still runs; `specpilot serve` also shows a banner on its page, which you can dismiss for the browser tab.
|
|
43
|
+
|
|
40
44
|
## Quick Start
|
|
41
45
|
|
|
42
46
|
```bash
|
|
@@ -88,13 +92,13 @@ This AI-assisted approach ensures comprehensive, high-quality specifications tai
|
|
|
88
92
|
|
|
89
93
|
| Command | Options |
|
|
90
94
|
| ----------- | ----------------------------------------------------------------------------------- |
|
|
91
|
-
| `init` | `--lang` Ā· `--framework` Ā· `--dir` Ā· `--specs-name` Ā· `--no-prompts` Ā· `--dry-run` |
|
|
95
|
+
| `init` | `--lang` Ā· `--framework` Ā· `--dir` Ā· `--specs-name` Ā· `--no-prompts` Ā· `--dry-run` Ā· `--ide` |
|
|
92
96
|
| `validate` | `--fix` Ā· `--verbose` |
|
|
93
97
|
| `migrate` | `--from` Ā· `--to` Ā· `--backup` |
|
|
94
98
|
| `list` | `--lang` Ā· `--verbose` |
|
|
95
99
|
| `refine` | `--update` Ā· `--no-prompts` |
|
|
96
100
|
| `archive` | `--dry-run` Ā· `--force` |
|
|
97
|
-
| `add-specs` | `--no-analysis` Ā· `--no-prompts`
|
|
101
|
+
| `add-specs` | `--no-analysis` Ā· `--no-prompts` Ā· `--ide` |
|
|
98
102
|
| `backfill` | `--dir` Ā· `--specs-name` Ā· `--dry-run` Ā· `--no-prompts` |
|
|
99
103
|
| `serve` | `--port` Ā· `--poll` Ā· `--read-only` Ā· `--open` Ā· `--no-mcp` Ā· `--stop` |
|
|
100
104
|
|
|
@@ -138,17 +142,20 @@ specpilot serve --stop # stop the server on port 4321 from another ter
|
|
|
138
142
|
| `--stop` | | Stop the SpecPilot server running on this machine on `--port` (default 4321), as Ctrl+C would; takes no other option. A `--read-only` server cannot be stopped this way: press Ctrl+C in its terminal |
|
|
139
143
|
|
|
140
144
|
- **Several projects**: name any folders; one without `.specs/` is served too and shows the Setup view (below). They are numbered in command-line order from 0 (`../api` is project 0, `../web` is project 1), and that number is the `?project=<n>` on the server's `/api/` routes and the `#1/...` at the start of a page link for any project after the first (no number means project 0). Each project keeps its own tasks, files and live reload; a move changes only that project's `tasks.md`. Folders opened from the page (below) get the next numbers; a number never changes while the server runs, and one server holds at most 20 projects.
|
|
141
|
-
- **Quit**: the
|
|
145
|
+
- **Quit**: `Quit SpecPilotā¦` in the Settings menu (the cog at the foot of the left rail) stops the server after you confirm, as Ctrl+C or `specpilot serve --stop` would (a running clone is stopped and cleaned up first). The page then says SpecPilot has stopped; other open pages simply stop updating. Not shown with `--read-only`.
|
|
142
146
|
- **Task moves**: drag a row, use `Alt+Up/Down` to reorder and `Alt+Left/Right` to move between Backlog, Current Sprint and Review (Backlog and Current Sprint either way; Current Sprint to Review and back), or open a card's menu (right-click, the `āÆ` button on the card, or `Shift+F10`) and pick `Move to <lane>` (its end, or `<lane>, top`), `Move up` or `Move down`; the menu also has `Open details` and `Copy ID`. A move changes exactly one line of `.specs/planning/tasks.md` and nothing else, and offers Undo; Completed and Won't do rows do not move. If the file changed on disk since the page loaded, the move is refused and the page redraws. Start with `--read-only` to turn moves off.
|
|
143
147
|
- **Warning while work is in progress**: a move from the page, and Archive, ask first when the project is on a branch other than `main` or `master`, or when a `.specs/` file changed on disk in the last two minutes and not from the page (an agent or editor at work). The dialog says what could happen (the change rides on the branch's work and can conflict at the merge; an agent saving an older copy of `tasks.md` can undo it) and offers `Cancel` or `Move anyway`; Archive adds the check to its own list. The page knows only what it has seen since it loaded. Approve and Send back never ask.
|
|
144
148
|
- **Review lane**: `## Review` in `.specs/planning/tasks.md` holds finished work that you check before it counts as done; the lane's header reads `Review HITL` (human-in-the-loop). Your AI agent moves finished work from Current Sprint to Review, never straight to Completed (the generated instruction files and the MCP server say so). Open a Review card: `Approve` appends `Approved <date>` to the row and shows an `Approved` chip, and the panel says the next step (tell your agent to wrap it up; `Copy prompt` gives you the line); `Send back` opens a note box (`What needs fixing? (optional)`, up to 200 characters, `Cmd/Ctrl+Enter` sends, `Escape` cancels), appends `Sent back <date>: <note>` and moves the row to the top of Current Sprint, so the agent picks it up next; both offer Undo, and the panel lists earlier notes under `History`. A drag or `Alt+ā` out of Review is a Send back without a note, so an approved row that comes back is no longer approved. The agent writes the Completed entry (number, CD ID, commit) by hand once a row is marked Approved; SpecPilot never writes it. `## Won't do`, when the file has it, is a read-only lane after Completed, folded to a strip until you open it. Off with `--read-only`.
|
|
145
149
|
- **Type and Priority**: when Backlog, Current Sprint and Review are `| ID | Type | Priority | Description |` tables (what `init` writes), each card shows its Priority (`P1` to `P3`) and Type (`feat`, `bug`, `chore`) on its bottom line, and the task details set them with two button groups that save at once; New Task offers them too. A table that is still `| ID | Description |` works as before; when all three are, a note above the lanes says how to add the columns (`Copy prompt`), and a warning says when the three lanes' shapes differ, because a row with a Type or Priority cannot move into a table without the columns. Off with `--read-only`.
|
|
146
150
|
- **Section headings**: when `.specs/planning/tasks.md` lacks `## Backlog`, `## Current Sprint`, `## Review` or `## Completed`, a warning above the lanes names the empty lane, what the file has instead and the fix (edit the file; best ask your AI IDE, so anything that refers to the section follows), with `Open tasks.md in VS Code` and `Copy prompt`; a `## ` heading the board does not know gets a note that its rows are not shown here; a known section that holds its tasks as plain lines or a list instead of a table gets a warning saying the lane shows none of them and how to turn them into a table. Warnings hide for the session into a one-line strip, notes until the headings change. `specpilot validate` warns on the missing ones and `--fix` renames an unambiguous variant.
|
|
147
|
-
- **Commands and Skills**: each view lists its files in two groups. Under From SpecPilot are the `specpilot-*` commands whose bytes match a version SpecPilot released (in `.claude/commands/` and `.
|
|
151
|
+
- **Commands and Skills**: each view lists its files in two groups. Under From SpecPilot are the `specpilot-*` commands whose bytes match a version SpecPilot released (in `.claude/commands/`, `.github/prompts/`, `.cursor/commands/`, `.windsurf/workflows/`, `.agent/workflows/` and `.codex/prompts/`) and the `specpilot-project` skill while it is still SpecPilot's own render of your `project.yaml`; everything else is under Yours, including a `specpilot-*` command you edited and every file in Devin Desktop's `.devin/workflows/`, which SpecPilot does not write, and every other skill in `.claude/skills/`, `.agents/skills/`, `.cursor/skills/`, `.github/skills/` and `.agent/skills/` (the project skills folders Claude Code, Cursor, Codex, Copilot and Antigravity read). Regenerate All, in the From SpecPilot header of Commands, runs what `specpilot backfill` runs for command files, and nothing else: for each IDE `project.yaml` lists in `ides` (without that line, each IDE whose instruction file is in the project) it adds the missing `specpilot-*` commands and updates the unedited ones to the current version, in every IDE's command folder. It also refreshes `.claude/skills/specpilot-project/SKILL.md` from `.specs/project/project.yaml` (name, language, framework, platforms, package manager, test framework, repository URL, license) when the skill is still SpecPilot's own, and adds it when missing; a skill you edited, or one rendered from values `project.yaml` no longer holds, is kept with the reason `does not match SpecPilot's render of project.yaml`. Edited files, links, files under a linked folder, your own commands and skills, instruction files and `.specs/` are never written. What it did is shown above the groups as it happened: updated, added, and kept with the reason.
|
|
148
152
|
- **New Task**: the `+ Add` button in the header of the Backlog or Current Sprint lane opens a small form for that lane: a description, with the ID the row will get shown above it. SpecPilot adds one row, `| <ID> | <description> |`, at the end of that section's table in `.specs/planning/tasks.md` and changes nothing else in the file. The ID is the next free one: `BL-###` for Backlog, `CS-###` for Current Sprint, one past the highest in use in `tasks.md` and `tasks-archive.md` (only IDs in ID columns and leading tags count, not IDs mentioned in a description; gaps are never filled). The description is written exactly as you typed it, markdown included, with no label or date added; one with a line break, a control character, a `|` or a trailing `\`, or over 4000 characters, is refused with the reason, and what you typed stays in the form. The new row is selected and opened in the details panel. If the file changed on disk since the page loaded, nothing is added and the page redraws. Protected like a task move; off with `--read-only`.
|
|
149
|
-
- **
|
|
153
|
+
- **Overview**: each project opens on Overview (the first row in the left menu). At the top: the project from `project.yaml` (name, description, version, language, framework, license) with Open Tasks and a button for your IDE (Open in Cursor or VS Code, or Copy folder path for a terminal agent such as Claude Code), the four task lanes with their counts, and the open rows counted by Type and Priority. Then two columns: Review (always shown, with the Tasks board's own line when empty), Current Sprint and Recent activity (commits made in this clone, `prompts.md` entries, Completed rows) on the left; Roadmap, Security and Agent Guidance (instruction files, commands, skills) on the right; then the newest spec files. Every count and row opens the view that lists it. The Roadmap card is always there: a roadmap with no `## Timeline` release, or no `roadmap.md`, is flagged with what to fix and a prompt to copy for your AI IDE.
|
|
154
|
+
- **Edit a Backlog task**: a Backlog card's details panel has an `Edit` button beside Description. It opens the description as written in `.specs/planning/tasks.md` (markdown included); Enter or `Save` replaces that one cell and nothing else in the file, by New Task's rules, and what you typed stays in the form if it is refused. Escape or `Cancel` leaves it unchanged. Only Backlog rows can be edited here. If the file changed on disk since the page loaded, nothing is written and the page redraws. Protected like a task move; off with `--read-only`.
|
|
155
|
+
- **Resize the details panel**: drag the panel's left edge to make it wider or narrower (320px up to all but 160px of the content area); with the edge focused, Left and Right change it by 16px and Home and End go to the narrowest and widest. A double-click goes back to 400px. The width is kept in this browser (`sp-insp-width` in local storage) and applies to tasks and files alike. Below a 480px content area the panel keeps its usual width and has no handle.
|
|
156
|
+
- **Archive oldest Completed rows**: the Completed lane's header has an `Archive` button. It opens a dialog that says what the action does and lists the checks that apply, each with its state: the branch (as `specpilot archive` warns, archive on `main` or `master` after merging) and `## Completed`'s 25-line limit (the `specpilot validate` warning), with how many rows would move. A check that warns has a box to tick, and `Archive` is enabled once every box is ticked. It then does what `specpilot archive` does for that section: the oldest rows move, byte for byte, into a dated block at the end of `.specs/planning/tasks-archive.md`, the newest 10 stay, nothing else in either file changes, and the lane shows what is left. Within the limit you can still archive by ticking the limit check. `prompts.md` is left to `specpilot archive`. Protected like a task move; off with `--read-only`.
|
|
150
157
|
- **Setup view**: a folder without `.specs/` (one you name, open from the page or clone) shows the Setup view instead of the other views, and Start a New Project on Home shows it too, with a Project name and a Parent folder (with Browseā¦). Your AI IDE does the setup: it reads the code, answers what it can, and asks you the rest. The view says how, in three steps: 1 Connect your AI IDE, the config for this server with Copy and a status, `Waiting for a connection` until an IDE connects to `/mcp`, then `Connected Ā· <the IDE's name>`; 2 Tell it what to do, one line to paste into the IDE (`Set up SpecPilot for <folder>`, or `Start a SpecPilot project called <name> in <parent>`); 3 Progress, four rows that follow the IDE's calls (Read the code, Answer the questions, Write the files, Validate). When `.specs/` appears, the page opens the project; there is no Finish button. For a new project, the page checks the name and the parent as you type and remembers `<parent>/<name>` for this run of the server as the one place a new project may be made; nothing is created until your IDE does it, and the folder must be missing or empty. Without MCP the view says so and how to restart. `specpilot add-specs` (in an existing folder) or `specpilot init` (for a new one) asks the same questions in the terminal. The current-directory default is never offered setup (it needs `.specs/` to start; `specpilot serve .` names it). If a setup is interrupted, the next `specpilot serve` removes the `.specpilot-setup-<id>/` folder it left (and only that folder, recognised by its marker file).
|
|
151
|
-
- **Home**: the logo at the top of the left rail, the `+` tile below the projects (or the `h` key, or `#home`) shows "
|
|
158
|
+
- **Home**: the logo at the top of the left rail, the `+` tile below the projects (or the `h` key, or `#home`) shows "The command center for your spec-driven projects.", an Open a Project Folder button and your Recent projects (path, last-opened time and, for projects already open, the git branch); click one to open it, or Remove from list to forget it (the folder is not touched); if the project is open, removing it also closes it: its tile leaves the rail, and opening it again later gives it a new number. `specpilot serve` starts on the first project's Overview (the first folder you named, else the project you opened most recently); in a folder without `.specs/` and with nothing remembered it starts with no project open and shows Home (the terminal says `No .specs/ folder in <folder>`; the folder itself is not served, `specpilot serve .` names it). `--read-only` has no Home, so there a folder without `.specs/` still exits 1.
|
|
152
159
|
- **Open a project from the page**: Open a Project Folder on Home opens a sheet (Clone a Repository opens it on its Clone tab); type a folder path (`/Users/you/project` or `~/project`), or click Browse⦠to pick it in your system's folder dialog (macOS; Linux with `zenity` or `kdialog`; Windows), and Open, and the folder is served alongside the others, with the Setup view if it has no `.specs/`. Folders you open this way are listed under Recent projects next time, remembered in `~/.specpilot/projects.json` (path, last-opened time and a pinned flag, at most 50; the file is created the first time a project is served, and every project you serve or open is added to it). At startup, after the folders you name, the remembered projects that have `.specs/` are reopened, pinned and most recently opened first, up to 20 in all (the terminal says `Reopened <k> remembered projects from ~/.specpilot/projects.json.`); a folder without `.specs/` stays on the list to click, a missing one is skipped, and reopening never changes the file. Remove from list forgets a folder without touching it. Browse⦠only fills in the path; nothing is opened until you click Open. The Clone tab's Parent folder and the Setup view's Parent folder (Start a New Project) have the same Browse⦠button, which likewise only fills in the field. Checked on macOS: picking a folder fills the field and Open opens it, and no privacy prompt appears at Browse⦠or at Open, also for a folder inside `~/Documents`; the Linux and Windows dialogs are not yet checked by hand. The home folder, the root of a drive and folders already open are refused; a `projects.json` that cannot be read is left exactly as it is, and the page and the terminal say so. The request is protected like a task move.
|
|
153
160
|
- **Clone a repository from the page**: Clone a Repository on Home (or the Clone tab of the same sheet) asks for a repository URL, a parent folder and a folder name (leave it empty for the repository's name), runs your installed `git clone` and opens the result: on Tasks when the repository has `.specs/`, in the Setup view when it has none. Accepted URLs: `https://host/path`, `git@host:path` and `ssh://host/path`; an https URL must not contain a user name or password (git uses your credential helper and ssh keys, as in a terminal), so for Azure DevOps drop the `org@` part. Submodules are not cloned, Git LFS files are left as pointer files (run `git lfs pull` in the folder to fetch them), and there is no branch or depth option. The target folder must not exist or must be empty; the parent follows the rules of Start a New Project. As you type or paste the URL, Folder name is filled with the repository's name until you type one yourself. While the clone runs the sheet shows the elapsed time and, once git reports it, git's stage and percentage (`Receiving objects 42% Ā· 0:13`, then `Resolving deltas` and `Updating files`); until then, or when git reports none, a moving bar. git is never asked a question it would wait on: a repository that needs a login it cannot get fails with git's own message, its last `fatal:` line with the line before it, for example `Host key verification failed. fatal: Could not read from remote repository.`, and a clone is stopped after 10 minutes. The page cannot accept an ssh host key for you: for a host you have never connected to, run `ssh -T git@host` once in a terminal, then clone again. Your ssh setup is used as it is; SpecPilot sets no ssh option on macOS and Linux. One clone runs at a time. A clone that fails, is stopped, or is cancelled (Cancel, Escape, closing the tab, Ctrl+C) removes what it downloaded; on Ctrl+C the server waits at most 5 seconds for that. Needs `git` on your `PATH`. This is the only time SpecPilot starts another program for the page and the only time it uses the network. On Windows ssh is put in batch mode (unless you have set `GIT_SSH_COMMAND`, `GIT_SSH` or `core.sshCommand`), and a stopped clone can leave git's helper process running until it ends by itself, and the clean-up can then fail on a file that helper still holds; the message says so.
|
|
154
161
|
- **Open in VS Code**: the icon at the top right of every project view (and beside each Recent project on Home whose folder still exists) is a `vscode://file/` link to that project's folder. Your browser hands it to VS Code, which asks before opening it; SpecPilot starts nothing itself. Nothing happens if VS Code is not installed. A task's details panel has Open tasks.md in VS Code, which opens `.specs/planning/tasks.md` at that task's line; VS Code puts a file in the window it picks (by default the last one you used), which may not be this project's. It opens VS Code only, not Insiders or another editor. The file view of every `.specs/` file and the details panel of every Instructions, Commands and Skills file also have Open in VS Code, which opens that file.
|
|
@@ -156,8 +163,8 @@ specpilot serve --stop # stop the server on port 4321 from another ter
|
|
|
156
163
|
- **Nothing else is written**: in a project with `.specs/`, its `.specs/planning/tasks.md` and, through Regenerate All, its `specpilot-*` command files and its `specpilot-project` skill are the only files the server can change; in a named folder without `.specs/`, setup creates new files and changes none; a new project is one new folder (or an empty one) with new files; a clone is one new folder (or an empty one) filled by `git clone`; `~/.specpilot/projects.json` is the one file written outside your projects; everything else is read on every request.
|
|
157
164
|
- **Loopback only**: binds 127.0.0.1 only; rejects any Host header other than `127.0.0.1:<port>` or `localhost:<port>` (403).
|
|
158
165
|
- **Live reload**: polls allowlisted files with `stat()` every `--poll` ms while a page is open, and pushes changed paths on `/api/events`; open pages update in place.
|
|
159
|
-
- **What it shows**: `.specs/`, `CLAUDE.md`, `AGENTS.md`, `.github/copilot-instructions.md`, `.claude/commands/`, `.claude/skills/` and `.
|
|
160
|
-
- **Limits**: paths through symlinked folders, hidden files and `node_modules` are not shown. Task moves and new tasks are refused, not approximated, when they cannot change exactly one line: a section with no table yet (a fresh project's `[TODO]`), a move involving the file's last line when it has no trailing newline, and a `tasks.md` that is not valid UTF-8. If an editor saves `tasks.md` in the same instant the server writes it, that save can be overwritten; git keeps it recoverable. VS Code reads a path ending in `:<number>` as a line number, so a project folder whose name ends that way (`notes:12`) may not open as a folder from Open in VS Code. Windows paths (`C:\ā¦`) in that link are untested. The Cursor links are untested on a machine with Cursor installed, and Windsurf has none yet.
|
|
166
|
+
- **What it shows**: `.specs/`, the instruction files `CLAUDE.md`, `AGENTS.md`, `.github/copilot-instructions.md`, `.cursor/rules/specpilot.mdc`, `.windsurfrules`, `.antigravity/rules.md` and `CODEX_INSTRUCTIONS.md`, and the folders `.claude/commands/`, `.claude/skills/`, `.github/prompts/`, `.cursor/commands/`, `.windsurf/workflows/`, `.agent/workflows/`, `.codex/prompts/`, `.agents/skills/`, `.cursor/skills/`, `.github/skills/`, `.agent/skills/`, `.devin/skills/`, `.windsurf/skills/` and `.devin/workflows/`, as the files' own text. Nothing else in an IDE's folder is shown: not `.cursor/mcp.json` or other settings files, which can hold tokens.
|
|
167
|
+
- **Limits**: paths through symlinked folders, hidden files and `node_modules` are not shown. The Connect Your AI IDE configs follow each IDE's docs as read on 2026-11-09; only Claude Code's was tested with the IDE itself. The Skills view lists Windsurf's `.devin/skills/` and legacy `.windsurf/skills/` from Windsurf's (Devin Desktop's) docs as read on 2026-11-14, unverified with Windsurf itself, and not `.codex/skills/`, which Codex's docs do not name; Antigravity's `.agent/skills/` comes from Google's codelab; skills folders in subfolders such as `apps/web/.cursor/skills/` are not listed; and no IDE was tested loading skills from these folders. The Commands view lists Devin Desktop's `.devin/workflows/` from its docs as read on 2026-11-15. SpecPilot still writes `.windsurf/workflows/` and `.windsurfrules`, which those docs call legacy and read when a workspace kept `.windsurf/`; whether a workspace migrated to `.devin/` still reads them, and whether Devin Desktop still reads the Connect card's `~/.codeium/windsurf/mcp_config.json`, is not verified with Devin Desktop itself. Task moves and new tasks are refused, not approximated, when they cannot change exactly one line: a section with no table yet (a fresh project's `[TODO]`), a move involving the file's last line when it has no trailing newline, and a `tasks.md` that is not valid UTF-8. If an editor saves `tasks.md` in the same instant the server writes it, that save can be overwritten; git keeps it recoverable. VS Code reads a path ending in `:<number>` as a line number, so a project folder whose name ends that way (`notes:12`) may not open as a folder from Open in VS Code. Windows paths (`C:\ā¦`) in that link are untested. The Cursor links are untested on a machine with Cursor installed, and Windsurf has none yet. The Setup view's Connected status shows the name the IDE sends when it connects (`clientInfo`); it was checked with test requests in both MCP revisions, not with every IDE. The order the setup tools want is sent as the MCP `instructions` and in the tools' descriptions; whether an IDE shows `instructions` to its agent is up to the IDE, and only test requests were checked. A local program that can read the page can also register a new project's folder itself: the setup tools guard against an agent writing elsewhere by mistake, not against software already running on your machine. The server treats every user and program that can reach its port on this machine as you, so do not run it on a machine shared with other accounts. With `SPECPILOT_MCP_TOKEN` set, your IDE sends that token to whatever program holds the port while `serve` is down; if another program has used the port, set a new value. A service worker another program left on the port is removed when the page loads, and the page takes no token while one is in control; this is checked in Chromium, not yet in Firefox or Safari, and Safari before 16.4 lacks part of it. A page shown inside another tool's frame (for example an editor's built-in browser) does not display; open it in a browser tab. No other page can frame it or clear its saved theme and dismissed notes. Overview's commits are those recorded in this clone's `.git/logs/HEAD` (commits made, merged or amended here), so commits that came in by a pull or were made before the clone are not listed.
|
|
161
168
|
|
|
162
169
|
### Local MCP endpoint (`specpilot serve`)
|
|
163
170
|
|
|
@@ -166,16 +173,28 @@ The server also answers MCP at `http://127.0.0.1:<port>/mcp`, so Claude Code, Cu
|
|
|
166
173
|
```bash
|
|
167
174
|
specpilot serve
|
|
168
175
|
# MCP endpoint: http://127.0.0.1:4321/mcp
|
|
169
|
-
#
|
|
176
|
+
# Claude Code (.mcp.json): {"mcpServers":{"specpilot-local":{"type":"http","url":"http://127.0.0.1:4321/mcp","headers":{"X-SpecPilot-Token":"<token>"}}}}
|
|
177
|
+
# Other IDEs: Connect Your AI IDE on the page gives each one's file.
|
|
170
178
|
```
|
|
171
179
|
|
|
172
|
-
|
|
180
|
+
The terminal line is Claude Code's. Each IDE takes its own file and shape, so the **Connect Your AI IDE** card on Home and step 1 of the Setup view have one button per IDE, chosen from the project's instruction file until you pick one, and show that IDE's file, config and note, with Copy:
|
|
181
|
+
|
|
182
|
+
| IDE | File | Shape |
|
|
183
|
+
|---|---|---|
|
|
184
|
+
| Claude Code | `.mcp.json` in the project | `mcpServers`, `type: "http"`, `url`, `headers`; reads `${SPECPILOT_MCP_TOKEN}` |
|
|
185
|
+
| Cursor | `.cursor/mcp.json` in the project | `mcpServers`, `url`, `headers`; reads `${env:SPECPILOT_MCP_TOKEN}` |
|
|
186
|
+
| VS Code (Copilot) | `.vscode/mcp.json` in the project | `servers`, `type: "http"`, `url`, `headers`; reads `${env:SPECPILOT_MCP_TOKEN}` |
|
|
187
|
+
| Windsurf | `~/.codeium/windsurf/mcp_config.json` | `mcpServers`, `serverUrl`, `headers` |
|
|
188
|
+
| Codex | `~/.codex/config.toml` | TOML `[mcp_servers.specpilot-local]`, `url`, `http_headers` or `env_http_headers` |
|
|
189
|
+
| Antigravity | `.agents/mcp_config.json` in the project | `mcpServers`, `serverUrl`, `headers` |
|
|
190
|
+
|
|
191
|
+
A project file that holds the page's token belongs in `.gitignore`; the card's note says so. With `SPECPILOT_MCP_TOKEN` set, the config names the variable where the IDE reads one, and Windsurf and Antigravity get a placeholder for its value.
|
|
173
192
|
|
|
174
193
|
- **Tools**: `specpilot_list_projects`, `specpilot_read_spec`, `specpilot_list_tasks`, `specpilot_new_task`, `specpilot_move_task`, `specpilot_validate_specs` (no `--fix`, writes nothing) and `specpilot_regenerate_commands`. Each takes an optional `project` index. The two task writes need the `sha256` that `specpilot_list_tasks` returned; if `tasks.md` changed since, the write is refused ("since you last read it") and nothing is written. Open pages show the change through live reload.
|
|
175
194
|
- **Setup tools**: `specpilot_setup_questions` (a path) returns what was detected in the code and every question, with choices and suggestions; `specpilot_setup_project` (the path, the answers, and which ones the user gave) writes `.specs/`, the instruction files and the skill (creating a new project's folder), runs `specpilot validate` and returns the files written and the result. Nine tools in all. They work only on a folder the page is setting up: one you named, opened or cloned that has no `.specs/`, or the new project's folder you named on the Setup view. The server tells the IDE the order (questions, answer from the code, ask the user the rest, write, report). The Setup view's Progress rows follow these calls.
|
|
176
195
|
- **Same guards as the page**: loopback only, the Host check, the token (a wrong or missing `X-SpecPilot-Token` gets 403), JSON only, 64 KB, the page's read allowlist, the page's write allowlist and one write lock for page and IDE. A request from a web page (any other `Origin`) is refused with 403; IDEs send none. Clones and the project list are not tools.
|
|
177
196
|
- **Protocol revisions**: MCP `2026-07-28` (no handshake; the version, `Mcp-Method` and `Mcp-Name` headers must match the request body), and `2025-11-25` and `2025-06-18` (with `initialize`), on the same URL. A client that speaks both picks one; the config line is the same. Streamable HTTP, POST only, no sessions; answers are JSON, never a stream, and no change notifications are sent.
|
|
178
|
-
- **Token**: a new one each time `serve` starts, so the line needs copying again after a restart. To keep one line, set `SPECPILOT_MCP_TOKEN` (at least 32 characters, no spaces) in the environment of `serve` and of your IDE; the
|
|
197
|
+
- **Token**: a new one each time `serve` starts, so the line needs copying again after a restart. To keep one line, set `SPECPILOT_MCP_TOKEN` (at least 32 characters, no spaces) in the environment of `serve` and of your IDE; the config then names the variable where the IDE reads one (Claude Code, Cursor, VS Code, Codex), and Windsurf and Antigravity get a placeholder for its value. SpecPilot never writes the token anywhere.
|
|
179
198
|
- **`--read-only`**: only the four read tools (no task writes, no Regenerate, no setup tools); the endpoint gets its own token and the page stays read-only.
|
|
180
199
|
- **Instruction files**: files generated by `init`, `add-specs` and the setup through your AI IDE carry one more process mandate: use the SpecPilot MCP tools for tasks when they are connected, otherwise edit `.specs/planning/tasks.md` and keep its table format (`| ID | Type | Priority | Description |` under Backlog, Current Sprint and Review, or `| ID | Description |` in a file that has that shape; `| # | ID | Description |` under Completed; one row per task). `specpilot backfill` adds it to an existing file that has no Tasks line.
|
|
181
200
|
|
|
@@ -257,7 +276,7 @@ SpecPilot generates AI agent configuration files during project initialization.
|
|
|
257
276
|
|
|
258
277
|
- **GitHub Copilot** - Industry standard with Copilot integration
|
|
259
278
|
- **Cursor** - AI-first code editor with enhanced AI context
|
|
260
|
-
- **Windsurf** - Advanced AI coding assistant
|
|
279
|
+
- **Windsurf (Devin Desktop)** - Advanced AI coding assistant
|
|
261
280
|
- **Antigravity** - AI-powered IDE with context awareness
|
|
262
281
|
|
|
263
282
|
**Cloud-Based AI Agents (Instruction Files):**
|
|
@@ -274,12 +293,14 @@ Each IDE/Agent selection generates one AI context file at the project root:
|
|
|
274
293
|
| GitHub Copilot | `.github/copilot-instructions.md` |
|
|
275
294
|
| Codex | `.github/copilot-instructions.md` |
|
|
276
295
|
| Cursor | `.cursor/rules/specpilot.mdc` |
|
|
277
|
-
| Windsurf
|
|
296
|
+
| Windsurf (Devin Desktop) | `.windsurfrules` |
|
|
278
297
|
| Antigravity | `.antigravity/rules.md` |
|
|
279
298
|
| Claude Code | `CLAUDE.md` |
|
|
280
299
|
|
|
281
300
|
All context files contain: project name/stack, critical mandates, Code Philosophy, Code Rules, and a Re-Anchor Prompt.
|
|
282
301
|
|
|
302
|
+
**Which IDEs SpecPilot writes for:** setup records your choice in `.specs/project/project.yaml` as `ides: [cursor]` (the lowercased choice; `vscode` is GitHub Copilot). `specpilot backfill`, Regenerate All on `specpilot serve` and the `specpilot_regenerate_commands` tool write commands for the IDEs that list names, and the page offers Open in Cursor and preselects the Connect card's IDE from it. Add an IDE by hand (`ides: [cursor, claude-code]`) to have its commands written too. A project without the line, set up before it existed, works as before: SpecPilot looks for each IDE's instruction file. `specpilot validate` warns about a value it does not know.
|
|
303
|
+
|
|
283
304
|
For desktop IDEs: `.vscode/settings.json` (or `.cursor/`, `.windsurf/`, etc.)
|
|
284
305
|
|
|
285
306
|
- IDE-specific workspace folder setup for code + .specs
|
package/dist/cli.js
CHANGED
|
@@ -17,10 +17,11 @@ const backfill_1 = require("./commands/backfill");
|
|
|
17
17
|
const specArchiver_1 = require("./utils/specArchiver");
|
|
18
18
|
const serve_1 = require("./commands/serve");
|
|
19
19
|
const logger_1 = require("./utils/logger");
|
|
20
|
+
const nodeCheck_1 = require("./utils/nodeCheck");
|
|
20
21
|
const packageJson = require('../package.json');
|
|
21
22
|
commander_1.program
|
|
22
23
|
.name('specpilot')
|
|
23
|
-
.description('CLI
|
|
24
|
+
.description('Spec-driven development CLI for AI coding agents, with a local command center (specpilot serve)')
|
|
24
25
|
.version(packageJson.version);
|
|
25
26
|
// Initialize command
|
|
26
27
|
commander_1.program
|
|
@@ -34,6 +35,7 @@ commander_1.program
|
|
|
34
35
|
.option('--specs-name <name>', 'Name for specs folder', '.specs')
|
|
35
36
|
.option('--no-prompts', 'Skip interactive prompts')
|
|
36
37
|
.option('--dry-run', 'List files that would be created without writing them')
|
|
38
|
+
.option('--ide <name>', 'AI IDE to set up for (claude-code, cursor, vscode, windsurf (Devin Desktop), antigravity, codex); skips the IDE question')
|
|
37
39
|
.action(init_1.initCommand);
|
|
38
40
|
// Validate command
|
|
39
41
|
commander_1.program
|
|
@@ -90,12 +92,13 @@ commander_1.program
|
|
|
90
92
|
.option('-f, --framework <framework>', 'Framework (react, express, django, etc.)')
|
|
91
93
|
.option('--no-analysis', 'Skip codebase analysis')
|
|
92
94
|
.option('--no-prompts', 'Skip interactive prompts')
|
|
95
|
+
.option('--ide <name>', 'AI IDE to set up for (claude-code, cursor, vscode, windsurf (Devin Desktop), antigravity, codex); skips the IDE question')
|
|
93
96
|
.action(add_specs_1.addSpecsCommand);
|
|
94
97
|
// Backfill command
|
|
95
98
|
commander_1.program
|
|
96
99
|
.command('backfill')
|
|
97
100
|
.alias('bf')
|
|
98
|
-
.description('Backfill missing SpecPilot mandates into
|
|
101
|
+
.description('Backfill missing SpecPilot mandates into project.yaml and existing IDE instruction files, and commands for those IDEs; creates no instruction file')
|
|
99
102
|
.option('-d, --dir <directory>', 'Project directory', '.')
|
|
100
103
|
.option('--specs-name <name>', 'Name for specs folder', '.specs')
|
|
101
104
|
.option('--dry-run', 'Preview changes without writing any files')
|
|
@@ -123,6 +126,7 @@ Per-command options: specpilot <command> --help
|
|
|
123
126
|
`);
|
|
124
127
|
// Parse command line arguments
|
|
125
128
|
const args = process.argv.slice(2);
|
|
129
|
+
(0, nodeCheck_1.printNodeNotice)(args, process.stderr); // BL-189: before any output of the command's own
|
|
126
130
|
// If no arguments provided, show welcome message
|
|
127
131
|
if (args.length === 0) {
|
|
128
132
|
const logger = new logger_1.Logger();
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;AAEA,yCAAoC;AACpC,kDAA0B;AAC1B,0CAA8C;AAC9C,kDAAsD;AACtD,gDAAoD;AACpD,0CAA8C;AAC9C,8CAAkD;AAClD,oDAAuD;AACvD,gDAAoD;AACpD,kDAAsD;AACtD,uDAAgF;AAChF,4CAAgD;AAChD,2CAAwC;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;AAEA,yCAAoC;AACpC,kDAA0B;AAC1B,0CAA8C;AAC9C,kDAAsD;AACtD,gDAAoD;AACpD,0CAA8C;AAC9C,8CAAkD;AAClD,oDAAuD;AACvD,gDAAoD;AACpD,kDAAsD;AACtD,uDAAgF;AAChF,4CAAgD;AAChD,2CAAwC;AACxC,iDAAoD;AAEpD,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE/C,mBAAO;KACJ,IAAI,CAAC,WAAW,CAAC;KACjB,WAAW,CAAC,iGAAiG,CAAC;KAC9G,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAEhC,qBAAqB;AACrB,mBAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,8BAA8B,CAAC;KAC3C,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;KAC7C,MAAM,CAAC,uBAAuB,EAAE,2CAA2C,EAAE,YAAY,CAAC;KAC1F,MAAM,CAAC,6BAA6B,EAAE,kDAAkD,CAAC;KACzF,MAAM,CAAC,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,CAAC;KACxD,MAAM,CAAC,qBAAqB,EAAE,uBAAuB,EAAE,QAAQ,CAAC;KAChE,MAAM,CAAC,cAAc,EAAE,0BAA0B,CAAC;KAClD,MAAM,CAAC,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s.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"add-specs.d.ts","sourceRoot":"","sources":["../../src/commands/add-specs.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,iBA0K7D"}
|
|
@@ -19,6 +19,12 @@ const addSpecsQuestions_1 = require("../utils/addSpecsQuestions");
|
|
|
19
19
|
async function addSpecsCommand(options) {
|
|
20
20
|
const logger = new logger_1.Logger();
|
|
21
21
|
try {
|
|
22
|
+
// --ide names the IDE; any other value stops here, before any question, analysis or write (BL-159)
|
|
23
|
+
const chosenIde = options.ide !== undefined ? (0, addSpecsQuestions_1.ideChoice)(options.ide) : undefined;
|
|
24
|
+
if (chosenIde === null) {
|
|
25
|
+
logger.error(`ā ${(0, addSpecsQuestions_1.unknownIdeMessage)(options.ide)}`);
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
22
28
|
logger.info('š Analyzing existing project...');
|
|
23
29
|
const projectDir = process.cwd();
|
|
24
30
|
const specsDir = (0, path_1.join)(projectDir, '.specs');
|
|
@@ -98,8 +104,8 @@ async function addSpecsCommand(options) {
|
|
|
98
104
|
developerName = handle;
|
|
99
105
|
}
|
|
100
106
|
// Get IDE/Agent preference for context configuration
|
|
101
|
-
let ide = 'vscode'; // default
|
|
102
|
-
if (options.prompts) {
|
|
107
|
+
let ide = chosenIde?.value ?? 'vscode'; // default
|
|
108
|
+
if (options.prompts && !chosenIde) {
|
|
103
109
|
const ideResponse = await inquirer_1.default.prompt([{
|
|
104
110
|
type: 'list',
|
|
105
111
|
name: 'ide',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-specs.js","sourceRoot":"","sources":["../../src/commands/add-specs.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"add-specs.js","sourceRoot":"","sources":["../../src/commands/add-specs.ts"],"names":[],"mappings":";;;;;AAwBA,0CA0KC;AAlMD,+BAA4B;AAC5B,2BAAgC;AAChC,4CAAoB;AACpB,kDAA0B;AAC1B,wDAAgC;AAChC,8DAA2D;AAC3D,oDAA+D;AAC/D,wDAAqD;AACrD,0DAAmE;AACnE,4CAAuD;AACvD,0EAAsE;AACtE,kEAGoC;AAU7B,KAAK,UAAU,eAAe,CAAC,OAAwB;IAC5D,MAAM,MAAM,GAAG,IAAI,eAAM,EAAE,CAAC;IAE5B,IAAI,CAAC;QACH,mGAAmG;QACnG,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,6BAAS,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACjF,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACvB,MAAM,CAAC,KAAK,CAAC,KAAK,IAAA,qCAAiB,EAAC,OAAO,CAAC,GAAa,CAAC,EAAE,CAAC,CAAC;YAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;QAEhD,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAE5C,iCAAiC;QACjC,IAAI,IAAA,eAAU,EAAC,QAAQ,CAAC,EAAE,CAAC;YACz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10 +37,6 @@ function fileResultLines(label, r, dryRun) {
|
|
|
37
37
|
lines.push(chalk_1.default.green(` ā
All ${r.total} item${r.total === 1 ? '' : 's'} already present ā nothing to backfill`));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
else if (r.action === 'created') {
|
|
41
|
-
const verb = dryRun ? 'Would create' : 'Created';
|
|
42
|
-
lines.push(chalk_1.default.green(` ā
${verb} with all ${r.total} mandates`));
|
|
43
|
-
}
|
|
44
40
|
else {
|
|
45
41
|
// updated
|
|
46
42
|
lines.push(chalk_1.default.green(` ā
${r.found}/${r.total} items already present`));
|
|
@@ -108,7 +104,8 @@ function slashCommandResultLines(r, dryRun) {
|
|
|
108
104
|
return lines;
|
|
109
105
|
}
|
|
110
106
|
function displayResult(result, dryRun, logger) {
|
|
111
|
-
const
|
|
107
|
+
const copilot = result.copilotInstructions;
|
|
108
|
+
const allResults = [result.projectYaml, ...(copilot ? [copilot] : []), result.tasksMd, ...result.ideFiles];
|
|
112
109
|
const ideLines = result.ideFiles.length > 0
|
|
113
110
|
? [
|
|
114
111
|
chalk_1.default.blue.bold('IDE-native AI context files'),
|
|
@@ -128,22 +125,24 @@ function displayResult(result, dryRun, logger) {
|
|
|
128
125
|
'',
|
|
129
126
|
...fileResultLines('.specs/project/project.yaml', result.projectYaml, dryRun),
|
|
130
127
|
'',
|
|
131
|
-
...fileResultLines('.github/copilot-instructions.md',
|
|
132
|
-
'',
|
|
128
|
+
...(copilot ? [...fileResultLines('.github/copilot-instructions.md', copilot, dryRun), ''] : []),
|
|
133
129
|
...fileResultLines('.specs/planning/tasks.md', result.tasksMd, dryRun),
|
|
134
130
|
'',
|
|
135
131
|
...ideLines,
|
|
136
132
|
...slashLines,
|
|
137
133
|
...(result.skill ? skillResultLines(result.skill, dryRun) : []),
|
|
138
134
|
];
|
|
139
|
-
const updatedCount = allResults.filter((r) => r.action === 'updated'
|
|
135
|
+
const updatedCount = allResults.filter((r) => r.action === 'updated').length +
|
|
140
136
|
result.slashCommands.filter((r) => r.added.length > 0 || r.updated.length > 0).length +
|
|
141
137
|
(result.skill?.action === 'added' || result.skill?.action === 'updated' ? 1 : 0);
|
|
142
138
|
const skippedCount = allResults.filter((r) => r.action === 'skipped').length +
|
|
143
139
|
result.slashCommands.filter((r) => r.added.length === 0 && r.updated.length === 0).length +
|
|
144
140
|
(result.skill?.action === 'current' ? 1 : 0);
|
|
145
141
|
const keptCount = result.skill?.action === 'kept' ? 1 : 0;
|
|
146
|
-
if (updatedCount === 0 && keptCount === 0) {
|
|
142
|
+
if (updatedCount === 0 && keptCount === 0 && copilot?.action === 'missing' && result.slashCommands.length === 0) { // no IDE at all (BL-154); a listed one is handled (BL-158)
|
|
143
|
+
content.push(chalk_1.default.yellow('ā ļø No IDE instruction file, so no mandates or commands were added.'));
|
|
144
|
+
}
|
|
145
|
+
else if (updatedCount === 0 && keptCount === 0) {
|
|
147
146
|
content.push(chalk_1.default.green('ā
Everything is up to date ā nothing to backfill.'));
|
|
148
147
|
}
|
|
149
148
|
else if (dryRun) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backfill.js","sourceRoot":"","sources":["../../src/commands/backfill.ts"],"names":[],"mappings":";;;;;AAmBA,0CAsBC;AAzCD,kDAA0B;AAC1B,+BAA+B;AAC/B,4DAMiC;AAEjC,4CAAyC;AASlC,KAAK,UAAU,eAAe,CAAC,OAAwB;IAC5D,MAAM,MAAM,GAAG,IAAI,eAAM,EAAE,CAAC;IAC5B,MAAM,UAAU,GAAG,IAAA,cAAO,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAExC,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,UAAU,GAAG,IAAI,+BAAc,EAAE,CAAC;IAExC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,QAAQ,CACtC,UAAU,EACV,OAAO,C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ACjD,OAAO,CAAC,IAAI,CAAC,eAAK,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC,CAAC;IACjF,CAAC;SAAM,IAAI,MAAM,EAAE,CAAC;QAClB,OAAO,CAAC,IAAI,CACV,eAAK,CAAC,MAAM,CACV,OAAO,YAAY,8BAA8B,YAAY,wBAAwB,SAAS,wCAAwC,CACvI,CACF,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,IAAI,CACV,eAAK,CAAC,KAAK,CACT,KAAK,YAAY,qBAAqB,YAAY,wBAAwB,SAAS,QAAQ,CAC5F,CACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,OAAO,CAAC,IAAI,CAAC,eAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAC3C,OAAO,CAAC,IAAI,CAAC,eAAK,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC,CAAC;IACtF,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC"}
|
package/dist/commands/init.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,iBAiSnE"}
|
package/dist/commands/init.js
CHANGED
|
@@ -31,6 +31,12 @@ async function initCommand(name, options) {
|
|
|
31
31
|
logger.displayError('Unsupported Language', `Language "${options.lang}" is not supported\n\nš” Supported languages: ${addSpecsQuestions_1.SUPPORTED_LANGUAGES.join(', ')}`);
|
|
32
32
|
process.exit(1);
|
|
33
33
|
}
|
|
34
|
+
// --ide names the IDE; any other value stops here, before any question or write (BL-159)
|
|
35
|
+
const chosenIde = options.ide !== undefined ? (0, addSpecsQuestions_1.ideChoice)(options.ide) : undefined;
|
|
36
|
+
if (chosenIde === null) {
|
|
37
|
+
logger.displayError('Unknown IDE', (0, addSpecsQuestions_1.unknownIdeMessage)(options.ide));
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
34
40
|
// Dry-run: list files that would be created without writing them
|
|
35
41
|
if (options.dryRun) {
|
|
36
42
|
const targetDir = (0, path_1.resolve)(options.dir, projectName);
|
|
@@ -63,8 +69,8 @@ async function initCommand(name, options) {
|
|
|
63
69
|
chalk_1.default.white(' ' + targetDir + '/'),
|
|
64
70
|
...list(generator.targetsInSpecs('', options.specsName)),
|
|
65
71
|
'',
|
|
66
|
-
chalk_1.default.gray(' For VS Code; the IDE you choose decides these:'),
|
|
67
|
-
...list(generator.targetsOutsideSpecs('vscode')),
|
|
72
|
+
chalk_1.default.gray(chosenIde ? ` For ${chosenIde.name}:` : ' For VS Code; the IDE you choose decides these:'),
|
|
73
|
+
...list(generator.targetsOutsideSpecs(chosenIde?.value ?? 'vscode')),
|
|
68
74
|
'',
|
|
69
75
|
chalk_1.default.gray(`(${files} files, ${seen.size + 1} directories)`),
|
|
70
76
|
'',
|
|
@@ -134,8 +140,8 @@ async function initCommand(name, options) {
|
|
|
134
140
|
developerName = handle;
|
|
135
141
|
}
|
|
136
142
|
// Get IDE/Agent preference for context configuration
|
|
137
|
-
let ide = 'vscode'; // default
|
|
138
|
-
if (options.prompts) {
|
|
143
|
+
let ide = chosenIde?.value ?? 'vscode'; // default
|
|
144
|
+
if (options.prompts && !chosenIde) {
|
|
139
145
|
const ideResponse = await inquirer_1.default.prompt([{
|
|
140
146
|
type: 'list',
|
|
141
147
|
name: 'ide',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";;;;;AAwBA,kCA0RC;AAlTD,+BAAqC;AACrC,2BAAyD;AACzD,4CAAoB;AACpB,kDAA0B;AAC1B,wDAAgC;AAChC,oDAA+D;AAC/D,0DAAmE;AACnE,4CAAyC;AACzC,0EAAsE;AACtE,kEAEoC;AACpC,0DAAqH;AACrH,oDAAmD;AAW5C,KAAK,UAAU,WAAW,CAAC,IAAY,EAAE,OAAoB;IAClE,MAAM,MAAM,GAAG,IAAI,eAAM,EAAE,CAAC;IAE5B,IAAI,CAAC;QACH,2FAA2F;QAC3F,MAAM,WAAW,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACxC,MAAM,WAAW,GAAG,IAAA,gCAAgB,EAAC,WAAW,CAAC,CAAC;QAClD,IAAI,WAAW,EAAE,CAAC;YAChB,MAAM,CAAC,YAAY,CAAC,sBAAsB,EAAE,WAAW,CAAC,OAAO,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACvH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,8BAA8B;QAC9B,IAAI,CAAC,uCAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YAChD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C,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAC1C,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,oBAAoB,YAAY,+BAA+B,CAAC,CAAC,CAAC;QACzF,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC,CAAC;IAErF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,YAAY,CAAC,uBAAuB,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;QACvG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refine.d.ts","sourceRoot":"","sources":["../../src/commands/refine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"refine.d.ts","sourceRoot":"","sources":["../../src/commands/refine.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CACjB;AAWD,wBAAsB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,aAAa,iBAoK1F"}
|
package/dist/commands/refine.js
CHANGED
|
@@ -10,6 +10,7 @@ const chalk_1 = __importDefault(require("chalk"));
|
|
|
10
10
|
const inquirer_1 = __importDefault(require("inquirer"));
|
|
11
11
|
const specGenerator_1 = require("../utils/specGenerator");
|
|
12
12
|
const specPaths_1 = require("../utils/specPaths");
|
|
13
|
+
const specBackfiller_1 = require("../utils/specBackfiller");
|
|
13
14
|
const logger_1 = require("../utils/logger");
|
|
14
15
|
async function refineCommand(description, options) {
|
|
15
16
|
const logger = new logger_1.Logger();
|
|
@@ -115,13 +116,17 @@ async function refineCommand(description, options) {
|
|
|
115
116
|
if (options.update) {
|
|
116
117
|
logger.info('š Regenerating specifications with updated context...');
|
|
117
118
|
const specGenerator = new specGenerator_1.SpecGenerator();
|
|
119
|
+
// The recorded IDEs (REQ-002.A.13): files for the first, the list written back; none recorded ā vscode.
|
|
120
|
+
const ides = (0, specBackfiller_1.projectIdes)(options.dir, options.specsName) ?? undefined;
|
|
118
121
|
const result = await specGenerator.generateSpecs({
|
|
119
122
|
projectName: projectName || 'updated-project',
|
|
120
123
|
language: language || 'typescript',
|
|
121
124
|
framework: framework,
|
|
122
125
|
targetDir: options.dir,
|
|
123
126
|
specsName: options.specsName,
|
|
124
|
-
description: projectDescription
|
|
127
|
+
description: projectDescription,
|
|
128
|
+
ide: ides?.[0],
|
|
129
|
+
ides,
|
|
125
130
|
});
|
|
126
131
|
logger.success('ā
Regenerated specifications with new description');
|
|
127
132
|
(0, specGenerator_1.keepReport)(result).forEach(line => logger.info(line));
|