specpilot 2.14.0 → 2.16.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.
Files changed (41) hide show
  1. package/README.md +19 -19
  2. package/dist/cli.js +3 -3
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/add-specs.d.ts +1 -2
  5. package/dist/commands/add-specs.d.ts.map +1 -1
  6. package/dist/commands/add-specs.js +1 -1
  7. package/dist/commands/add-specs.js.map +1 -1
  8. package/dist/commands/init.d.ts.map +1 -1
  9. package/dist/commands/init.js +27 -33
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/serve.d.ts.map +1 -1
  12. package/dist/commands/serve.js +6 -4
  13. package/dist/commands/serve.js.map +1 -1
  14. package/dist/core/chatFlow.js +2 -2
  15. package/dist/core/chatFlow.js.map +1 -1
  16. package/dist/core/slashCommands.d.ts.map +1 -1
  17. package/dist/core/slashCommands.js +0 -1
  18. package/dist/core/slashCommands.js.map +1 -1
  19. package/dist/utils/mcpLocal.d.ts +10 -0
  20. package/dist/utils/mcpLocal.d.ts.map +1 -1
  21. package/dist/utils/mcpLocal.js +61 -2
  22. package/dist/utils/mcpLocal.js.map +1 -1
  23. package/dist/utils/slashCommandGenerator.d.ts.map +1 -1
  24. package/dist/utils/slashCommandGenerator.js +6 -0
  25. package/dist/utils/slashCommandGenerator.js.map +1 -1
  26. package/dist/utils/specServer.d.ts +4 -4
  27. package/dist/utils/specServer.d.ts.map +1 -1
  28. package/dist/utils/specServer.js +187 -115
  29. package/dist/utils/specServer.js.map +1 -1
  30. package/dist/utils/specSetup.d.ts +21 -23
  31. package/dist/utils/specSetup.d.ts.map +1 -1
  32. package/dist/utils/specSetup.js +63 -56
  33. package/dist/utils/specSetup.js.map +1 -1
  34. package/dist/utils/specValidator.d.ts.map +1 -1
  35. package/dist/utils/specValidator.js +5 -2
  36. package/dist/utils/specValidator.js.map +1 -1
  37. package/package.json +1 -1
  38. package/ui/app.css +40 -110
  39. package/ui/app.js +113 -304
  40. package/ui/index.html +21 -27
  41. package/ui/route.js +3 -101
package/README.md CHANGED
@@ -35,7 +35,7 @@ For Cursor, VS Code and other clients, add it as an HTTP (streamable) server:
35
35
 
36
36
  No install, no API key. Full setup notes: <https://specpilot.dev/mcp-setup>
37
37
 
38
- To let your AI IDE read this machine's specs and add or move tasks, start `specpilot serve --mcp`: see [Local MCP endpoint](#local-mcp-endpoint-specpilot-serve---mcp) below.
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
40
  ## Quick Start
41
41
 
@@ -78,7 +78,7 @@ This AI-assisted approach ensures comprehensive, high-quality specifications tai
78
78
  | `list` | Show available templates |
79
79
  | `migrate` | Convert legacy `.project-spec` folder (rarely needed) |
80
80
  | `refine [desc]` | Refine project specifications |
81
- | `serve [folders...]` | Serve a local web UI over the `.specs/` of this project, or of each folder named; open more from the page, remembered in `~/.specpilot/projects.json` (task moves, new tasks, Regenerate All for command files, guided setup of a folder without `.specs/`, unless `--read-only`) |
81
+ | `serve [folders...]` | Serve a local web UI over the `.specs/` of this project, or of each folder named; open more from the page, remembered in `~/.specpilot/projects.json` (task moves, new tasks, Regenerate All for command files, the Setup view of a folder without `.specs/`, unless `--read-only`) |
82
82
 
83
83
  > **Tip — command aliases:** All commands have a short alias you can use instead of the full name.
84
84
  > `init` → `i` &nbsp;·&nbsp; `validate` → `v` &nbsp;·&nbsp; `migrate` → `m` &nbsp;·&nbsp; `list` → `ls` &nbsp;·&nbsp; `refine` → `ref` &nbsp;·&nbsp; `archive` → `ar` &nbsp;·&nbsp; `add-specs` → `add` &nbsp;·&nbsp; `backfill` → `bf`
@@ -94,9 +94,9 @@ This AI-assisted approach ensures comprehensive, high-quality specifications tai
94
94
  | `list` | `--lang` · `--verbose` |
95
95
  | `refine` | `--update` · `--no-prompts` |
96
96
  | `archive` | `--dry-run` · `--force` |
97
- | `add-specs` | `--no-analysis` · `--deep-analysis` · `--no-prompts` |
97
+ | `add-specs` | `--no-analysis` · `--no-prompts` |
98
98
  | `backfill` | `--dir` · `--specs-name` · `--dry-run` · `--no-prompts` |
99
- | `serve` | `--port` · `--poll` · `--read-only` · `--open` · `--mcp` · `--stop` |
99
+ | `serve` | `--port` · `--poll` · `--read-only` · `--open` · `--no-mcp` · `--stop` |
100
100
 
101
101
  > Run `specpilot <command> --help` for full flag descriptions and default values.
102
102
 
@@ -132,47 +132,47 @@ specpilot serve --stop # stop the server on port 4321 from another ter
132
132
  | ------------- | ------- | ---------------------------------------------------------------------------------------- |
133
133
  | `--port <n>` | `4321` | Port to listen on (127.0.0.1 only) |
134
134
  | `--poll <ms>` | `1000` | Change-detection interval in ms (minimum 250); polling runs only while a page is open |
135
- | `--read-only` | | No task moves, no new tasks, no guided setup, no opening folders and no registry: the UI only reads, with no drag handles, no New Task button and no write routes |
135
+ | `--read-only` | | No task moves, no new tasks, no Setup view steps, no opening folders and no registry: the UI only reads, with no drag handles, no New Task button and no write routes |
136
136
  | `--open` | | Open the UI in the default browser |
137
- | `--mcp` | | Also serve a local MCP endpoint at `/mcp` for your AI IDE, and show the Connect Your AI IDE card on Home (below) |
137
+ | `--no-mcp` | | Leave out the local MCP endpoint at `/mcp` (served by default for your AI IDE, with the Connect Your AI IDE card on Home and in the Setup view; below). `--mcp` is still accepted and changes nothing |
138
138
  | `--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
139
 
140
- - **Several projects**: name any folders; one without `.specs/` is served too and offers guided setup (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.
140
+ - **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
141
  - **Quit**: the power button 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
142
  - **Task moves**: drag a row, or use `Alt+Up/Down` to reorder and `Alt+Left/Right` to move between Backlog and Current Sprint. A move changes exactly one line of `.specs/planning/tasks.md` and nothing else, and offers Undo; Completed 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
143
  - **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 `.github/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. Regenerate All, in the From SpecPilot header of Commands, runs what `specpilot backfill` runs for command files, and nothing else: for 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, also the ones the page does not list (`.cursor/commands/`, `.windsurf/workflows/`, `.agent/workflows/`, `.codex/prompts/`). 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, kept with the reason, and the folders the page does not list.
144
144
  - **New Task**: the New Task button on the Tasks view opens a small form: a description and a section (Backlog by default, or Current Sprint). 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`.
145
- - **Guided setup**: a folder you name that has no `.specs/` shows, instead of the views, a Start Guided Setup button. It starts a chat that asks the questions `specpilot add-specs` asks (project type, language and framework when they are not detected, API paradigm, handle, IDE) one at a time: a friendly line per question with the CLI's own question under it, chips or a field with Continue and Skip, step dividers and a progress bar, then a recap of your answers by step with the files that will be written folded inside, before anything is created. What SpecPilot detected in the folder is already answered and marked `detected`: the language, the framework and the project name (and, when found, the package manager, test framework, repository URL and license, which are written to `project.yaml` and `quality/tests.md` by `add-specs` too), which `add-specs` takes from your files without asking, so they cannot be changed here, and a platform it can see directly (React Native, Next.js, React or Vue / Nuxt from `package.json`, iOS Native from an Xcode project, also a macOS one), which you can change; the chat starts at the first question it still needs. Tap any other answer, in the thread or the recap, to change it; you come straight back. It then creates exactly what `add-specs` creates for those answers. A handle that would be refused is caught where you type it. Your answers stay in the page while it is open; they are not saved anywhere. Files outside `.specs/` that already exist (your own `.gitattributes`, `CLAUDE.md`, `.vscode/settings.json`, a command file) are never changed: the recap's file list marks them (`Already here, will be kept`) and the page lists them again afterwards, and `specpilot backfill` adds missing SpecPilot sections to kept instruction and command files (a kept `.gitattributes` does not get the `merge=union` lines). Setup is offered only for folders named on the command line, not for the current-directory default, which still needs `.specs/` (`specpilot serve .` names it). The request is protected like a task move. While it runs, the files are generated into a `.specpilot-setup-<id>/` folder inside the project, which is removed when done; if a run is interrupted, the next `specpilot serve` removes that folder (and only that folder, recognised by its marker file).
145
+ - **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).
146
146
  - **Home**: the logo at the top of the left rail, the `+` tile below the projects (or the `h` key, or `#home`) shows "Your specs, as a board.", 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). `specpilot serve` still starts on the first project's Tasks view, and `--read-only` has no Home.
147
- - **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 guided setup 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 you open a folder from the page, and folders named on the command line are added to it only once it exists). 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 New Project chat's parent-folder question 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.
148
- - **Start a new project from the page**: Start a New Project on Home opens the same chat: name the project to start, then it asks for the parent folder (`/Users/you/dev` or `~/dev`) and the questions `specpilot init` asks, one at a time, then shows your answers and the files that will be written, and creates `<parent>/<name>`, writes the files `init` writes there and opens it on its onboarding prompt. An existing folder is used only if it is empty; one with content is refused (open it from the Folder tab to add `.specs/` to it). The parent must already exist and cannot be your home folder itself, the root of a drive, or a `.specs/` folder or anything under one. A project name that would be refused is caught where you type it. For a Brownfield project the four project-context questions are not asked, because `init` writes those answers only for Greenfield. Nothing that exists is changed, a run that fails removes what it created, and no `git init` is run. Not offered here: `--specs-name` and `--dry-run`.
149
- - **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 guided setup 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, 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.
147
+ - **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 you open a folder from the page, and folders named on the command line are added to it only once it exists). 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.
148
+ - **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, 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.
150
149
  - **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.
151
150
  - **Open in AI IDE**: the sparkle icon beside Open in VS Code shows a short menu when it has something to offer. Open in Cursor (`cursor://file/`) appears when the project has `.cursor/rules/specpilot.mdc`, the file SpecPilot writes for Cursor. While `.specs/development/onboarding.md` exists, Send onboarding prompt to Cursor puts the prompt into Cursor's chat through Cursor's own link (it stays on this machine; Cursor waits for you to confirm, and uses the window it has in front, so open the project in Cursor first), and Copy onboarding prompt copies it for Claude Code, which has no link to open, or any other IDE. A prompt too long for a Cursor link (10,000 characters) is copied instead. It is on project views only, not on Home's rows.
152
151
  - **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.
153
152
  - **Loopback only**: binds 127.0.0.1 only; rejects any Host header other than `127.0.0.1:<port>` or `localhost:<port>` (403).
154
153
  - **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.
155
154
  - **What it shows**: `.specs/`, `CLAUDE.md`, `AGENTS.md`, `.github/copilot-instructions.md`, `.claude/commands/`, `.claude/skills/` and `.github/prompts/`, as the files' own text.
156
- - **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. Adding or removing `.cursor/rules/specpilot.mdc` shows on the page at its next refresh, not at once, since that file is not watched.
155
+ - **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. Adding or removing `.cursor/rules/specpilot.mdc` shows on the page at its next refresh, not at once, since that file is not watched. 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.
157
156
 
158
- ### Local MCP endpoint (`specpilot serve --mcp`)
157
+ ### Local MCP endpoint (`specpilot serve`)
159
158
 
160
- With `--mcp`, the server also answers MCP at `http://127.0.0.1:<port>/mcp`, so Claude Code, Cursor and other AI IDEs on this machine can read the specs and add or move tasks through the same checks as the page. It is off by default; without the flag nothing changes.
159
+ The server also answers MCP at `http://127.0.0.1:<port>/mcp`, so Claude Code, Cursor and other AI IDEs on this machine can read the specs and add or move tasks through the same checks as the page. It is on by default; start with `--no-mcp` to leave it out (the Setup view then says how to restart). `--mcp` is still accepted and changes nothing.
161
160
 
162
161
  ```bash
163
- specpilot serve --mcp
162
+ specpilot serve
164
163
  # MCP endpoint: http://127.0.0.1:4321/mcp
165
164
  # Add to your IDE's MCP settings: {"mcpServers":{"specpilot-local":{"type":"http","url":"http://127.0.0.1:4321/mcp","headers":{"X-SpecPilot-Token":"<token>"}}}}
166
165
  ```
167
166
 
168
- Copy that line from the terminal or from the **Connect Your AI IDE** card on Home (Copy button) into your IDE's MCP settings, or into `.mcp.json` in your project and add `.mcp.json` to `.gitignore`.
167
+ Copy that line from the terminal, from the **Connect Your AI IDE** card on Home, or from step 1 of the Setup view (Copy button) into your IDE's MCP settings, or into `.mcp.json` in your project and add `.mcp.json` to `.gitignore`.
169
168
 
170
169
  - **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.
171
- - **Same guards as the page**: loopback only, the Host check, the token (a wrong or missing `X-SpecPilot-Token` gets 403), JSON only, 16 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. Setup, new projects, clones and the project list are not tools.
170
+ - **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.
171
+ - **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.
172
172
  - **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.
173
173
  - **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 line then says `${SPECPILOT_MCP_TOKEN}`, which Claude Code fills in from the environment (other IDEs: put the token in its place). SpecPilot never writes the token anywhere.
174
- - **`--read-only --mcp`**: only the four read tools; the endpoint gets its own token and the page stays read-only.
175
- - **Instruction files**: files generated by `init`, `add-specs` and the page's setup 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. `specpilot backfill` does not add it to existing files yet.
174
+ - **`--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.
175
+ - **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. `specpilot backfill` does not add it to existing files yet.
176
176
 
177
177
  ## Supported Languages & Frameworks
178
178
 
package/dist/cli.js CHANGED
@@ -89,7 +89,6 @@ commander_1.program
89
89
  .option('-l, --lang <language>', 'Programming language (typescript, python)')
90
90
  .option('-f, --framework <framework>', 'Framework (react, express, django, etc.)')
91
91
  .option('--no-analysis', 'Skip codebase analysis')
92
- .option('--deep-analysis', 'Perform thorough codebase analysis')
93
92
  .option('--no-prompts', 'Skip interactive prompts')
94
93
  .action(add_specs_1.addSpecsCommand);
95
94
  // Backfill command
@@ -105,13 +104,14 @@ commander_1.program
105
104
  // Serve command
106
105
  commander_1.program
107
106
  .command('serve')
108
- .description('Serve a local web UI over the .specs/ of this project, or of each folder named (127.0.0.1 only; task moves, and guided setup of a named folder without .specs/, unless --read-only)')
107
+ .description('Serve a local web UI over the .specs/ of this project, or of each folder named (127.0.0.1 only; task moves, and setup of a folder without .specs/ through your AI IDE, unless --read-only)')
109
108
  .argument('[folders...]', 'Project folders to serve, in this order (default: the current directory)')
110
109
  .option('-p, --port <number>', 'Port to listen on', '4321')
111
110
  .option('--poll <ms>', 'How often to check spec files for changes, in ms (minimum 250)', '1000')
112
111
  .option('--read-only', 'Turn off task moves and guided setup: the page only reads')
113
112
  .option('--open', 'Open the UI in your default browser')
114
- .option('--mcp', 'Also serve a local MCP endpoint at /mcp for your AI IDE (SPECPILOT_MCP_TOKEN sets its token)')
113
+ .option('--mcp', 'Serve the local MCP endpoint at /mcp for your AI IDE (the default; SPECPILOT_MCP_TOKEN sets its token)')
114
+ .option('--no-mcp', 'Do not serve the local MCP endpoint')
115
115
  .option('--stop', 'Stop the SpecPilot server running on this machine (on --port; a --read-only one stops with Ctrl+C)')
116
116
  .action(serve_1.serveCommand);
117
117
  commander_1.program.addHelpText('after', `
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;AAExC,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE/C,mBAAO;KACJ,IAAI,CAAC,WAAW,CAAC;KACjB,WAAW,CAAC,qEAAqE,CAAC;KAClF,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,WAAW,EAAE,uDAAuD,CAAC;KAC5E,MAAM,CAAC,kBAAW,CAAC,CAAC;AAEvB,mBAAmB;AACnB,mBAAO;KACJ,OAAO,CAAC,UAAU,CAAC;KACnB,KAAK,CAAC,GAAG,CAAC;KACV,WAAW,CAAC,iCAAiC,CAAC;KAC9C,MAAM,CAAC,uBA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AAC,GAAG,CAAC,IAAI,GAAG,eAAK,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC,CAAC;IAC3E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,mBAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -1,8 +1,7 @@
1
1
  export interface AddSpecsOptions {
2
2
  lang?: string;
3
3
  framework?: string;
4
- noAnalysis: boolean;
5
- deepAnalysis: boolean;
4
+ analysis?: boolean;
6
5
  prompts: boolean;
7
6
  }
8
7
  export declare function addSpecsCommand(options: AddSpecsOptions): Promise<void>;
@@ -1 +1 @@
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,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,iBAmK7D"}
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;CAClB;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,iBAmK7D"}
@@ -110,7 +110,7 @@ async function addSpecsCommand(options) {
110
110
  }
111
111
  // Analyze codebase if requested
112
112
  let analysis = null;
113
- if (!options.noAnalysis) {
113
+ if (options.analysis !== false) {
114
114
  logger.info('📊 Analyzing codebase...');
115
115
  const analyzer = new codeAnalyzer_1.CodeAnalyzer();
116
116
  analysis = await analyzer.analyz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AAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC;QACnG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -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;CAClB;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,iBAiSnE"}
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;CAClB;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,iBA0RnE"}
@@ -67,45 +67,39 @@ async function initCommand(name, options) {
67
67
  // Dry-run: list files that would be created without writing them
68
68
  if (options.dryRun) {
69
69
  const targetDir = (0, path_1.resolve)(options.dir, projectName);
70
- const specsName = options.specsName;
71
- const specsDir = (0, path_1.join)(targetDir, specsName);
72
- const ideDir = '.vscode'; // default for dry-run (IDE is chosen interactively)
73
- const entries = [
74
- targetDir + '/',
75
- specsDir + '/',
76
- (0, path_1.join)(specsDir, 'README.md'),
77
- (0, path_1.join)(specsDir, 'project') + '/',
78
- (0, path_1.join)(specsDir, 'project', 'project.yaml'),
79
- (0, path_1.join)(specsDir, 'project', 'requirements.md'),
80
- (0, path_1.join)(specsDir, 'architecture') + '/',
81
- (0, path_1.join)(specsDir, 'architecture', 'architecture.md'),
82
- (0, path_1.join)(specsDir, 'architecture', 'api.yaml'),
83
- (0, path_1.join)(specsDir, 'planning') + '/',
84
- (0, path_1.join)(specsDir, 'planning', 'tasks.md'),
85
- (0, path_1.join)(specsDir, 'planning', 'roadmap.md'),
86
- (0, path_1.join)(specsDir, 'quality') + '/',
87
- (0, path_1.join)(specsDir, 'quality', 'tests.md'),
88
- (0, path_1.join)(specsDir, 'development') + '/',
89
- (0, path_1.join)(specsDir, 'development', 'context.md'),
90
- (0, path_1.join)(specsDir, 'development', 'prompts.md'),
91
- (0, path_1.join)(specsDir, 'development', 'onboarding.md'),
92
- (0, path_1.join)(specsDir, 'security') + '/',
93
- (0, path_1.join)(specsDir, 'security', 'threat-model.md'),
94
- (0, path_1.join)(specsDir, 'security', 'security-decisions.md'),
95
- (0, path_1.join)(targetDir, ideDir) + '/',
96
- (0, path_1.join)(targetDir, ideDir, 'settings.json'),
97
- (0, path_1.join)(targetDir, ideDir, 'extensions.json'),
98
- (0, path_1.join)(targetDir, '.github') + '/',
99
- (0, path_1.join)(targetDir, '.github', 'copilot-instructions.md') + ' (or IDE-native equivalent)',
100
- ];
70
+ // No question has been asked yet, so this is what --no-prompts writes: API paradigm unset, VS Code (BL-083).
71
+ const generator = new specGenerator_1.SpecGenerator();
72
+ const apiYaml = `${options.specsName}/architecture/api.yaml`;
73
+ const seen = new Set();
74
+ let files = 0;
75
+ const list = (rels) => {
76
+ const entries = [];
77
+ for (const rel of rels) {
78
+ const parts = rel.split('/');
79
+ for (let i = 1; i < parts.length; i++) {
80
+ const dir = parts.slice(0, i).join('/');
81
+ if (!seen.has(dir)) {
82
+ seen.add(dir);
83
+ entries.push((0, path_1.join)(targetDir, dir) + '/');
84
+ }
85
+ }
86
+ entries.push((0, path_1.join)(targetDir, rel) + (rel === apiYaml ? ' (not written for API paradigm None)' : ''));
87
+ files++;
88
+ }
89
+ return entries.map(e => chalk_1.default.white(' ' + e));
90
+ };
101
91
  const content = [
102
92
  chalk_1.default.blue('🚀 Dry run — no files will be written'),
103
93
  '',
104
94
  chalk_1.default.blue.bold('Files that would be created:'),
105
95
  '',
106
- ...entries.map(e => chalk_1.default.white(' ' + e)),
96
+ chalk_1.default.white(' ' + targetDir + '/'),
97
+ ...list(generator.targetsInSpecs('', options.specsName)),
98
+ '',
99
+ chalk_1.default.gray(' For VS Code; the IDE you choose decides these:'),
100
+ ...list(generator.targetsOutsideSpecs('vscode')),
107
101
  '',
108
- chalk_1.default.gray(`(${entries.filter(e => !e.endsWith('/')).length} files, ${entries.filter(e => e.endsWith('/')).length} directories)`),
102
+ chalk_1.default.gray(`(${files} files, ${seen.size + 1} directories)`),
109
103
  '',
110
104
  chalk_1.default.cyan(`💡 Run without --dry-run to create these files.`),
111
105
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,kCAiSC;AAzTD,+BAAqC;AACrC,2BAAyD;AACzD,4CAAoB;AACpB,kDAA0B;AAC1B,wDAAgC;AAChC,8CAAgC;AAChC,oDAA+D;AAC/D,0DAAmE;AACnE,4CAAyC;AACzC,0EAAsE;AACtE,kEAEoC;AACpC,0DAAqH;AAW9G,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,MA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IAAI,CAAC,CAiJ7G"}
@@ -100,7 +100,7 @@ async function serveCommand(folders, options, command) {
100
100
  const logger = new logger_1.Logger();
101
101
  if (options.stop) {
102
102
  const pollGiven = command ? command.getOptionValueSource('poll') === 'cli' : options.poll !== undefined;
103
- if (folders.length || options.readOnly || options.open || options.mcp || pollGiven) {
103
+ if (folders.length || options.readOnly || options.open || options.mcp !== undefined || pollGiven) {
104
104
  logger.error('--stop takes only --port. Run `specpilot serve --stop` or `specpilot serve --stop --port <n>`.');
105
105
  return process.exit(1);
106
106
  }
@@ -147,8 +147,10 @@ async function serveCommand(folders, options, command) {
147
147
  logger.error(`Invalid --poll "${options.poll}". Use a whole number of milliseconds, ${MIN_POLL_MS} or more.`);
148
148
  return process.exit(1);
149
149
  }
150
+ // MCP is on unless --no-mcp (BL-105, D3); Commander leaves `mcp` undefined without either flag.
151
+ const mcp = options.mcp !== false;
150
152
  // Read here, never written anywhere: with it the IDE's config line survives restarts (BL-PM-007).
151
- const envToken = options.mcp ? process.env.SPECPILOT_MCP_TOKEN : undefined;
153
+ const envToken = mcp ? process.env.SPECPILOT_MCP_TOKEN : undefined;
152
154
  if (envToken !== undefined && !exports.MCP_TOKEN_PATTERN.test(envToken)) {
153
155
  logger.error('SPECPILOT_MCP_TOKEN must be at least 32 characters, with no spaces or other invisible characters. Set a longer one, or unset it to get a new token each run.');
154
156
  return process.exit(1);
@@ -179,7 +181,7 @@ async function serveCommand(folders, options, command) {
179
181
  }
180
182
  let handle;
181
183
  try {
182
- handle = await (0, specServer_1.startSpecServer)(roots, port, packageJson.version, { pollMs, readOnly: !!options.readOnly, named, registry, mcp: !!options.mcp, mcpToken: envToken, log: m => logger.warn(m), onQuit: () => stop() });
184
+ handle = await (0, specServer_1.startSpecServer)(roots, port, packageJson.version, { pollMs, readOnly: !!options.readOnly, named, registry, mcp, mcpToken: envToken, log: m => logger.warn(m), onQuit: () => stop() });
183
185
  }
184
186
  catch (err) {
185
187
  if (err.code === 'EADDRINUSE') {
@@ -209,7 +211,7 @@ async function serveCommand(folders, options, command) {
209
211
  console.log(chalk_1.default.gray(`Folders opened in the page are remembered in ${(0, specServer_1.displayRoot)(registry, home)}.`));
210
212
  if (registryNote)
211
213
  console.log(registryNote);
212
- if (options.mcp) {
214
+ if (mcp) {
213
215
  console.log(`MCP endpoint: ${url}/mcp${options.readOnly ? ' (read tools only)' : ''}`);
214
216
  console.log(`Add to your IDE's MCP settings: ${mcpConfigLine(`127.0.0.1:${port}`, envToken !== undefined ? '${SPECPILOT_MCP_TOKEN}' : handle.mcpToken)}`);
215
217
  }
@@ -1 +1 @@
1
- {"version":3,"file":"serve.js","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":";;;;;;AAiCA,sCAEC;AA2ED,oCA+IC;AA7PD,kDAA0B;AAC1B,iDAAsC;AAEtC,2BAAwD;AACxD,+BAA+B;AAC/B,6BAA8B;AAC9B,+BAAqC;AACrC,oDAA+E;AAC/E,kDAAsE;AACtE,8DAA2G;AAC3G,4CAAyC;AAEzC,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAWlD,MAAM,YAAY,GAAG,IAAI,CAAC;AAC1B,MAAM,eAAe,GAAG,IAAI,CAAC;AAC7B,mFAAmF;AACtE,QAAA,aAAa,GAAG,IAAI,CAAC;AAClC,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,4HAA4H;AAC/G,QAAA,iBAAiB,GAAG,oBAAoB,CAAC;AAEtD,mGAAmG;AACnG,SAAgB,aAAa,CAAC,IAAY,EAAE,KAAa;IACvD,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,IAAI,MAAM,EAAE,OAAO,EAAE,EAAE,mBAAmB,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AACrJ,CAAC;AAED,wFAAwF;AACxF,SAAS,WAAW,CAAC,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IAAI,CAAC,CAAC;YACnE,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,MAAM,CAAC,IAAI,CAAC,4CAA4C,qBAAa,GAAG,IAAI,0CAA0C,CAAC,CAAC;gBACxH,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACzB,CAAC;YACD,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC;QACxB,CAAC,CAAC;aACD,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC;IACF,KAAK,MAAM,MAAM,IAAI,OAAO;QAAE,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACzD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // The chat core (BL-PM-004b, REQ-002.I.7): what init.specpilot.dev's setup chat decides, ported from
3
3
  // SpecPilot.Init/src/components/chat/flow.ts and flowOptions/*.ts (at 2c694db) with the same behaviour,
4
- // plus what only `specpilot serve` needs. It imports nothing at all: the server also sends tsc's output of
5
- // this file to the page as /assets/chat-core.js, so the page and the tests run the same functions.
4
+ // plus what only `specpilot serve` needs. It imports nothing at all (the core's purity rule). Since BL-103
5
+ // the page has no chat; the setup tools of BL-104 read the flow on the server.
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.FIELD_FILES = exports.MAX_LIST_ITEMS = exports.OPTIONAL_FIELD_LIMITS = exports.TODO = exports.CHAT_KEYS = exports.CHAT_STEPS = exports.CICD_OPTIONS = exports.TESTING_OPTIONS = exports.AI_ONLY_SECURITY_IDS = exports.SECURITY_CARDS = exports.AVAILABILITY_OPTIONS = exports.RESPONSE_TIME_OPTIONS = exports.COMPLIANCE_OPTIONS = exports.CONSTRAINT_OPTIONS = exports.INTEGRATION_CATEGORY_IDS = exports.INTEGRATION_CATEGORIES = exports.DATA_SYNC_STRATEGIES = exports.REALTIME_TYPES = exports.AUTH_OPTIONS = exports.DATABASES = exports.SYSTEM_PATTERNS = exports.getAuthBadge = exports.getDatabaseBadge = exports.TEAM_SIZES = exports.APPSTORE_DEPLOY_TARGETS = exports.REGISTRY_DEPLOY_TARGETS = exports.BAAS_DEPLOY_TARGET = exports.DEPLOY_TARGETS = exports.USER_RANGES = exports.TIMELINES = exports.SCALE_TIERS = exports.SPECIAL_OPTIONS = exports.ACCESS_OPTIONS = exports.USER_TYPE_GROUPS = exports.PLATFORM_LANGUAGE = exports.BAAS_BUNDLES = exports.BUNDLES_INCLUDE_FRONTEND = exports.PLATFORM_GROUPS = exports.STARTER_GROUPS = void 0;
8
8
  exports.getCapabilities = getCapabilities;