specpilot 2.10.0 → 2.12.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 (52) hide show
  1. package/README.md +11 -8
  2. package/dist/__tests__/fixtures/allFields.d.ts +3 -0
  3. package/dist/__tests__/fixtures/allFields.d.ts.map +1 -0
  4. package/dist/__tests__/fixtures/allFields.js +31 -0
  5. package/dist/__tests__/fixtures/allFields.js.map +1 -0
  6. package/dist/commands/serve.js +2 -2
  7. package/dist/commands/serve.js.map +1 -1
  8. package/dist/core/chatFlow.d.ts +420 -0
  9. package/dist/core/chatFlow.d.ts.map +1 -0
  10. package/dist/core/chatFlow.js +1107 -0
  11. package/dist/core/chatFlow.js.map +1 -0
  12. package/dist/core/specFiles.js +21 -21
  13. package/dist/core/templateEngine.d.ts.map +1 -1
  14. package/dist/core/templateEngine.js +15 -4
  15. package/dist/core/templateEngine.js.map +1 -1
  16. package/dist/utils/addSpecsQuestions.d.ts +2 -1
  17. package/dist/utils/addSpecsQuestions.d.ts.map +1 -1
  18. package/dist/utils/addSpecsQuestions.js +2 -1
  19. package/dist/utils/addSpecsQuestions.js.map +1 -1
  20. package/dist/utils/initQuestions.d.ts +2 -1
  21. package/dist/utils/initQuestions.d.ts.map +1 -1
  22. package/dist/utils/initQuestions.js +2 -1
  23. package/dist/utils/initQuestions.js.map +1 -1
  24. package/dist/utils/slashCommandGenerator.d.ts +7 -1
  25. package/dist/utils/slashCommandGenerator.d.ts.map +1 -1
  26. package/dist/utils/slashCommandGenerator.js +95 -28
  27. package/dist/utils/slashCommandGenerator.js.map +1 -1
  28. package/dist/utils/specBackfiller.d.ts +1 -1
  29. package/dist/utils/specBackfiller.d.ts.map +1 -1
  30. package/dist/utils/specBackfiller.js.map +1 -1
  31. package/dist/utils/specReader.d.ts +4 -0
  32. package/dist/utils/specReader.d.ts.map +1 -1
  33. package/dist/utils/specReader.js +4 -4
  34. package/dist/utils/specReader.js.map +1 -1
  35. package/dist/utils/specServer.d.ts +31 -4
  36. package/dist/utils/specServer.d.ts.map +1 -1
  37. package/dist/utils/specServer.js +148 -16
  38. package/dist/utils/specServer.js.map +1 -1
  39. package/dist/utils/specSetup.d.ts +21 -4
  40. package/dist/utils/specSetup.d.ts.map +1 -1
  41. package/dist/utils/specSetup.js +113 -20
  42. package/dist/utils/specSetup.js.map +1 -1
  43. package/dist/utils/taskMover.d.ts +42 -0
  44. package/dist/utils/taskMover.d.ts.map +1 -1
  45. package/dist/utils/taskMover.js +177 -25
  46. package/dist/utils/taskMover.js.map +1 -1
  47. package/package.json +1 -1
  48. package/ui/OFL-Sixtyfour.txt +93 -0
  49. package/ui/app.css +59 -3
  50. package/ui/app.js +280 -59
  51. package/ui/index.html +33 -6
  52. package/ui/route.js +71 -8
package/README.md CHANGED
@@ -76,7 +76,7 @@ This AI-assisted approach ensures comprehensive, high-quality specifications tai
76
76
  | `list` | Show available templates |
77
77
  | `migrate` | Convert legacy `.project-spec` folder (rarely needed) |
78
78
  | `refine [desc]` | Refine project specifications |
79
- | `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, guided setup of a folder without `.specs/`, unless `--read-only`) |
79
+ | `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`) |
80
80
 
81
81
  > **Tip — command aliases:** All commands have a short alias you can use instead of the full name.
82
82
  > `init` → `i`  ·  `validate` → `v`  ·  `migrate` → `m`  ·  `list` → `ls`  ·  `refine` → `ref`  ·  `archive` → `ar`  ·  `add-specs` → `add`  ·  `backfill` → `bf`
@@ -116,7 +116,7 @@ specpilot validate --fix
116
116
 
117
117
  ## specpilot serve
118
118
 
119
- Serve a local web UI over a project's `.specs/`, where you can also move tasks between Backlog and Current Sprint, set up `.specs/` in a folder that has none yet, and open more projects. With no folders it serves the project you run it from (the folder that contains `.specs/`); name one or more folders to serve those instead, all from one server, or open them later from the page. Press Ctrl+C to stop.
119
+ Serve a local web UI over a project's `.specs/`, where you can also move tasks between Backlog and Current Sprint, add new ones, bring SpecPilot's command files up to date, set up `.specs/` in a folder that has none yet, and open more projects. With no folders it serves the project you run it from (the folder that contains `.specs/`); name one or more folders to serve those instead, all from one server, or open them later from the page. Press Ctrl+C to stop.
120
120
 
121
121
  ```bash
122
122
  specpilot serve # this project, at http://127.0.0.1:4321
@@ -129,21 +129,24 @@ specpilot serve ../new-project # no .specs/ there yet: the page sets it up (or
129
129
  | ------------- | ------- | ---------------------------------------------------------------------------------------- |
130
130
  | `--port <n>` | `4321` | Port to listen on (127.0.0.1 only) |
131
131
  | `--poll <ms>` | `1000` | Change-detection interval in ms (minimum 250); polling runs only while a page is open |
132
- | `--read-only` | | No task moves, no guided setup, no opening folders and no registry: the UI only reads, with no drag handles and no write routes |
132
+ | `--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 |
133
133
  | `--open` | | Open the UI in the default browser |
134
134
 
135
135
  - **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.
136
136
  - **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.
137
+ - **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; 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/`). Edited files, links, files under a linked folder, your own commands, 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.
138
+ - **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`.
137
139
  - **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. Tap any 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).
138
- - **Home**: the logo at the top of the left rail (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. `specpilot serve` still starts on the first project's Tasks view, and `--read-only` has no Home.
139
- - **Open a project from the page**: the `+` tile in the left rail opens a sheet; type a folder path (`/Users/you/project` or `~/project`) 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. 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.
140
+ - **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.
141
+ - **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`) 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. 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.
140
142
  - **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`.
141
143
  - **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 a moving bar and the elapsed time (no percentage yet). 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.
142
- - **Nothing else is written**: in a project with `.specs/`, its `.specs/planning/tasks.md` is the only file 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.
144
+ - **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.
145
+ - **Nothing else is written**: in a project with `.specs/`, its `.specs/planning/tasks.md` and, through Regenerate All, its `specpilot-*` command files 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.
143
146
  - **Loopback only**: binds 127.0.0.1 only; rejects any Host header other than `127.0.0.1:<port>` or `localhost:<port>` (403).
144
147
  - **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.
145
148
  - **What it shows**: `.specs/`, `CLAUDE.md`, `AGENTS.md`, `.github/copilot-instructions.md`, `.claude/commands/`, `.claude/skills/` and `.github/prompts/`, as the files' own text.
146
- - **Limits**: paths through symlinked folders, hidden files and `node_modules` are not shown. Task moves 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.
149
+ - **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.
147
150
 
148
151
  ## Supported Languages & Frameworks
149
152
 
@@ -254,7 +257,7 @@ For desktop IDEs: `.vscode/settings.json` (or `.cursor/`, `.windsurf/`, etc.)
254
257
 
255
258
  ### Generated Slash Commands
256
259
 
257
- Each IDE/Agent selection also generates 8 `specpilot-*` slash/workflow commands (`status`, `reanchor`, `report`, `sync`, `refine`, `validate`, `archive`, `backfill`) that mirror key CLI operations as in-editor commands — e.g. `.claude/commands/specpilot-status.md` for Claude Code, `.cursor/commands/` for Cursor, `.github/prompts/` for GitHub Copilot. Running `backfill` on an existing project fills in any commands missing for your already-configured IDE(s) and updates the ones you have not edited to the current version; edited files are kept and listed. Each command file is reported as added, updated (to the current version), or kept with its reason: `kept: modified` (you changed it; delete it and re-run `specpilot backfill` to get the latest version), `kept: CRLF line endings` (a known version saved with Windows line endings) or `kept: symbolic link` (links are never written through). See the [Full Guide](docs/GUIDE.md#generated-slash-commands) for the complete list and per-IDE paths.
260
+ Each IDE/Agent selection also generates 8 `specpilot-*` slash/workflow commands (`status`, `reanchor`, `report`, `sync`, `refine`, `validate`, `archive`, `backfill`) that mirror key CLI operations as in-editor commands — e.g. `.claude/commands/specpilot-status.md` for Claude Code, `.cursor/commands/` for Cursor, `.github/prompts/` for GitHub Copilot. Running `backfill` on an existing project fills in any commands missing for your already-configured IDE(s) and updates the ones you have not edited to the current version; edited files are kept and listed. Each command file is reported as added, updated (to the current version), or kept with its reason: `kept: modified` (you changed it; delete it and re-run `specpilot backfill` to get the latest version), `kept: CRLF line endings` (a known version saved with Windows line endings) `kept: symbolic link` (links are never written through), `kept: folder is a symbolic link or not a folder` (nothing is written through a linked `.claude/` or similar) or `kept: could not be written: <code>` (the write failed; the rest still run). The `specpilot serve` page's Regenerate All runs the same step. See the [Full Guide](docs/GUIDE.md#generated-slash-commands) for the complete list and per-IDE paths.
258
261
 
259
262
  The generated settings/instructions automatically configure your AI agent to:
260
263
 
@@ -0,0 +1,3 @@
1
+ import { OptionalFields } from '../../core/templateEngine';
2
+ export declare const ALL_FIELDS: Required<OptionalFields>;
3
+ //# sourceMappingURL=allFields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allFields.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/allFields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAI3D,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,cAAc,CAwB/C,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ALL_FIELDS = void 0;
4
+ // Every optional template field set (REQ-002.I.4): the input of BL-032's phase 2 recording (specCore.test.ts),
5
+ // and of the route test that pins a setup with these answers to it (BL-PM-004b).
6
+ exports.ALL_FIELDS = {
7
+ platforms: ['iOS Native', 'Node.js / Express'],
8
+ accessControl: 'Role-based (admin, agent, customer)',
9
+ specialConsiderations: ['Accessibility (WCAG)', 'i18n'],
10
+ accessibilityNotes: 'Screen reader support and right-to-left layout.',
11
+ systemPattern: 'Modular monolith',
12
+ activeUsers: '1,000 - 10,000',
13
+ teamSize: '2-5 devs',
14
+ deploymentTargets: ['AWS', 'Vercel'],
15
+ localDatabases: ['SQLite'],
16
+ dataSyncStrategy: 'Last write wins',
17
+ integrations: { payments: ['Stripe'], ai: ['OpenAI', 'Anthropic'] },
18
+ otherApis: 'Twilio for SMS',
19
+ apiResponseTime: '< 200 ms (p95)',
20
+ availability: '99.9%',
21
+ databases: ['PostgreSQL', 'Redis'],
22
+ authStrategy: 'Clerk',
23
+ realtimeTypes: ['WebSockets'],
24
+ compliance: ['GDPR', 'SOC 2'],
25
+ cicd: ['GitHub Actions'],
26
+ securityConcerns: ['Rate limiting', 'Audit logging'],
27
+ buildTimeline: '3 months',
28
+ constraintDescription: 'Must run on the existing Postgres cluster.',
29
+ testingStrategy: ['Unit', 'E2E'],
30
+ };
31
+ //# sourceMappingURL=allFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allFields.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/allFields.ts"],"names":[],"mappings":";;;AAEA,+GAA+G;AAC/G,iFAAiF;AACpE,QAAA,UAAU,GAA6B;IAClD,SAAS,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC9C,aAAa,EAAE,qCAAqC;IACpD,qBAAqB,EAAE,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACvD,kBAAkB,EAAE,iDAAiD;IACrE,aAAa,EAAE,kBAAkB;IACjC,WAAW,EAAE,gBAAgB;IAC7B,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;IACpC,cAAc,EAAE,CAAC,QAAQ,CAAC;IAC1B,gBAAgB,EAAE,iBAAiB;IACnC,YAAY,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE;IACnE,SAAS,EAAE,gBAAgB;IAC3B,eAAe,EAAE,gBAAgB;IACjC,YAAY,EAAE,OAAO;IACrB,SAAS,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC;IAClC,YAAY,EAAE,OAAO;IACrB,aAAa,EAAE,CAAC,YAAY,CAAC;IAC7B,UAAU,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IAC7B,IAAI,EAAE,CAAC,gBAAgB,CAAC;IACxB,gBAAgB,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;IACpD,aAAa,EAAE,UAAU;IACzB,qBAAqB,EAAE,4CAA4C;IACnE,eAAe,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;CACjC,CAAC"}
@@ -121,8 +121,8 @@ async function serveCommand(folders, options) {
121
121
  console.log(chalk_1.default.gray(options.readOnly
122
122
  ? 'Read-only: nothing will be written. Open pages update when a spec file changes. Press Ctrl+C to stop.'
123
123
  : empty.length
124
- ? 'Tasks can be moved in the page (only .specs/planning/tasks.md is written), and a folder without .specs/ can be set up there (new files only). Open pages update when a spec file changes. Press Ctrl+C to stop.'
125
- : 'Tasks can be moved in the page (only .specs/planning/tasks.md is written). Open pages update when a spec file changes. Press Ctrl+C to stop.'));
124
+ ? 'Tasks can be moved in the page (only .specs/planning/tasks.md and specpilot-* command files are written), and a folder without .specs/ can be set up there (new files only). Open pages update when a spec file changes. Press Ctrl+C to stop.'
125
+ : 'Tasks can be moved in the page (only .specs/planning/tasks.md and specpilot-* command files are written). Open pages update when a spec file changes. Press Ctrl+C to stop.'));
126
126
  if (registry)
127
127
  console.log(chalk_1.default.gray(`Folders opened in the page are remembered in ${(0, specServer_1.displayRoot)(registry, home)}.`));
128
128
  if (registryNote)
@@ -1 +1 @@
1
- {"version":3,"file":"serve.js","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":";;;;;;AAwCA,oCAsHC;AA9JD,kDAA0B;AAC1B,iDAAsC;AACtC,2BAAwD;AACxD,+BAAqC;AACrC,oDAA+E;AAC/E,kDAAsE;AACtE,8DAA2G;AAC3G,4CAAyC;AAEzC,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AASlD,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,wFAAwF;AACxF,SAAS,WAAW,CAAC,GAAW,EAAE,MAAc;IAC9C,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,GACf,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;QAC/C,CAAC,CAAC,OAAO,CAAC,QAAQ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Answers values (option ids, label lists, the
2
+ * integration map) under the web's field names, and the CLI's answers under the CLI's keys. */
3
+ export type Answers = Record<string, unknown>;
4
+ export type ProjectCategory = 'saas' | 'api' | 'mobile' | 'cli' | 'pipeline' | 'ml' | 'static' | 'docs' | 'extension' | 'library' | 'other';
5
+ export interface ProjectCapabilities {
6
+ hasServer: boolean;
7
+ hasWebUI: boolean;
8
+ hasMobileUI: boolean;
9
+ hasGraphicalUI: boolean;
10
+ distribution: 'hosting' | 'registry' | 'appstore';
11
+ audienceIsDevelopers: boolean;
12
+ }
13
+ /** No category (free text, or guided setup) falls back to 'other': show and allow everything. */
14
+ export declare function getCapabilities(category: ProjectCategory | null | undefined): ProjectCapabilities;
15
+ export declare const STARTER_GROUPS: {
16
+ group: string;
17
+ items: {
18
+ emoji: string;
19
+ label: string;
20
+ }[];
21
+ }[];
22
+ /** Keyed on the exact starter-chip label; free text stays uncategorized (null). */
23
+ export declare function inferProjectCategory(description: string): ProjectCategory | null;
24
+ export type PlatformItem = {
25
+ id: string;
26
+ label: string;
27
+ lang: string;
28
+ emoji?: string;
29
+ };
30
+ export declare const PLATFORM_GROUPS: {
31
+ group: string;
32
+ emoji: string;
33
+ items: PlatformItem[];
34
+ }[];
35
+ /** Bundles that include their own frontend (T3 = Next.js, MERN = React). */
36
+ export declare const BUNDLES_INCLUDE_FRONTEND: string[];
37
+ /** Backend-as-a-service bundles: they bring hosting, a database and auth. */
38
+ export declare const BAAS_BUNDLES: string[];
39
+ export declare function hasMobilePlatform(platforms: string[]): boolean;
40
+ export declare function hasBaasPlatform(platforms: string[]): boolean;
41
+ /** The platform groups a category shows. */
42
+ export declare function visiblePlatformGroups(category: ProjectCategory | null): string[];
43
+ /** One pick per group; a bundle replaces a backend pick (and a web pick when it bundles a frontend), and back. */
44
+ export declare function togglePlatform(platforms: string[], id: string): string[];
45
+ /** The groups the grid shows now: a bundle hides Backend, a frontend bundle hides Web frontend too. */
46
+ export declare function platformGridGroups(category: ProjectCategory | null, platforms: string[]): string[];
47
+ /** The line under the grid when a bundle is picked, or ''. */
48
+ export declare function bundleLine(platforms: string[]): string;
49
+ /** The note after the platforms answer, or null. */
50
+ export declare function getPlatformNote(platforms: string[]): {
51
+ tone: 'info' | 'warn' | 'success';
52
+ text: string;
53
+ } | null;
54
+ /** Platform id → [CLI language, CLI framework or null]; absent = no CLI language (Dart, C#, PHP, Go, Rust, Bash, MDX). */
55
+ export declare const PLATFORM_LANGUAGE: Record<string, [string, string | null]>;
56
+ /** What the platforms say about the CLI's language and framework questions. */
57
+ export declare function languageHints(platforms: string[], language?: string): {
58
+ languages: string[];
59
+ language: string | undefined;
60
+ frameworks: string[];
61
+ framework: string | undefined;
62
+ note: string;
63
+ };
64
+ export declare const USER_TYPE_GROUPS: {
65
+ group: string;
66
+ items: {
67
+ emoji: string;
68
+ label: string;
69
+ }[];
70
+ }[];
71
+ export declare function visibleUserTypeGroups(category: ProjectCategory | null): typeof USER_TYPE_GROUPS;
72
+ export declare const ACCESS_OPTIONS: ({
73
+ id: string;
74
+ emoji: string;
75
+ label: string;
76
+ isTodo?: undefined;
77
+ } | {
78
+ id: string;
79
+ emoji: string;
80
+ label: string;
81
+ isTodo: boolean;
82
+ })[];
83
+ export declare const SPECIAL_OPTIONS: {
84
+ id: string;
85
+ emoji: string;
86
+ label: string;
87
+ }[];
88
+ export declare const SCALE_TIERS: ({
89
+ id: string;
90
+ emoji: string;
91
+ title: string;
92
+ description: string;
93
+ badge?: undefined;
94
+ } | {
95
+ id: string;
96
+ emoji: string;
97
+ title: string;
98
+ description: string;
99
+ badge: "recommended";
100
+ })[];
101
+ export declare const TIMELINES: ({
102
+ id: string;
103
+ emoji: string;
104
+ label: string;
105
+ isTodo?: undefined;
106
+ } | {
107
+ id: string;
108
+ emoji: string;
109
+ label: string;
110
+ isTodo: boolean;
111
+ })[];
112
+ export declare const USER_RANGES: ({
113
+ id: string;
114
+ emoji: string;
115
+ label: string;
116
+ isTodo?: undefined;
117
+ } | {
118
+ id: string;
119
+ emoji: string;
120
+ label: string;
121
+ isTodo: boolean;
122
+ })[];
123
+ export declare const DEPLOY_TARGETS: {
124
+ label: string;
125
+ emoji?: string;
126
+ description?: string;
127
+ group?: string;
128
+ }[];
129
+ /** BaaS platform → the deploy target it implies (badge and seed). */
130
+ export declare const BAAS_DEPLOY_TARGET: Record<string, string>;
131
+ export declare const REGISTRY_DEPLOY_TARGETS: ({
132
+ label: string;
133
+ emoji?: undefined;
134
+ } | {
135
+ label: string;
136
+ emoji: string;
137
+ })[];
138
+ export declare const APPSTORE_DEPLOY_TARGETS: ({
139
+ label: string;
140
+ emoji?: undefined;
141
+ } | {
142
+ label: string;
143
+ emoji: string;
144
+ })[];
145
+ export declare const TEAM_SIZES: {
146
+ id: string;
147
+ emoji: string;
148
+ label: string;
149
+ }[];
150
+ /** The deploy targets for a category and its platforms (registry, store, or hosting without the tabs the platforms rule out). */
151
+ export declare function deployTargetOptions(category: ProjectCategory | null, platforms: string[]): {
152
+ label: string;
153
+ emoji?: string;
154
+ description?: string;
155
+ group?: string;
156
+ }[];
157
+ export type Badges = Record<string, 'recommended' | 'flagged' | undefined>;
158
+ export type Warnings = Record<string, string | undefined>;
159
+ export declare function getArchBadge(scaleTier: string, teamSize: string): Badges;
160
+ /** The web's API style badge; its `rest` and `graphql` are the CLI paradigm values of the same name. */
161
+ export declare function getApiBadge(scaleTier: string, projectDescription?: string): Badges;
162
+ export declare const getDatabaseBadge: (platforms: string[]) => Badges;
163
+ export declare const getAuthBadge: (platforms: string[]) => Badges;
164
+ export declare function getDatabaseMismatch(a: Answers): Warnings;
165
+ export declare const SYSTEM_PATTERNS: {
166
+ id: string;
167
+ emoji: string;
168
+ title: string;
169
+ description: string;
170
+ }[];
171
+ export declare const DATABASES: {
172
+ label: string;
173
+ emoji?: string;
174
+ description?: string;
175
+ isTodo?: boolean;
176
+ group?: string;
177
+ }[];
178
+ export declare const AUTH_OPTIONS: {
179
+ label: string;
180
+ emoji?: string;
181
+ description?: string;
182
+ isTodo?: boolean;
183
+ group?: string;
184
+ }[];
185
+ export declare const REALTIME_TYPES: {
186
+ label: string;
187
+ emoji: string;
188
+ description: string;
189
+ }[];
190
+ type LocalDatabaseOption = {
191
+ label: string;
192
+ emoji?: string;
193
+ description?: string;
194
+ };
195
+ export declare function getLocalDatabaseOptions(platforms: string[]): LocalDatabaseOption[];
196
+ export declare const DATA_SYNC_STRATEGIES: {
197
+ id: string;
198
+ label: string;
199
+ emoji: string;
200
+ description: string;
201
+ }[];
202
+ export declare function getDeployTargetMismatch(a: Answers): Warnings;
203
+ export declare function getRealtimeMismatch(a: Answers): Warnings;
204
+ export declare function getActiveUsersMismatch(a: Answers): Warnings;
205
+ export declare function getTeamSizeMismatch(a: Answers): Warnings;
206
+ export type IntegrationCategory = {
207
+ id: string;
208
+ emoji: string;
209
+ label: string;
210
+ options: string[];
211
+ mobileOnly?: boolean;
212
+ };
213
+ export declare const INTEGRATION_CATEGORIES: IntegrationCategory[];
214
+ /** The integration map's keys a request may send. */
215
+ export declare const INTEGRATION_CATEGORY_IDS: string[];
216
+ export declare function visibleCategories(category: ProjectCategory | null, mobile?: boolean): IntegrationCategory[];
217
+ /** `None` is exclusive within a category. */
218
+ export declare function toggleIntegration(current: Record<string, string[]>, categoryId: string, option: string): Record<string, string[]>;
219
+ /** "None of these apply": `None` in every visible category that has no pick yet. */
220
+ export declare function noneOfThese(current: Record<string, string[]>, visible: IntegrationCategory[]): Record<string, string[]>;
221
+ export declare const CONSTRAINT_OPTIONS: {
222
+ emoji: string;
223
+ label: string;
224
+ }[];
225
+ export declare const COMPLIANCE_OPTIONS: ({
226
+ id: string;
227
+ emoji: string;
228
+ label: string;
229
+ description: string;
230
+ isTodo?: undefined;
231
+ } | {
232
+ id: string;
233
+ emoji: string;
234
+ label: string;
235
+ description?: undefined;
236
+ isTodo?: undefined;
237
+ } | {
238
+ id: string;
239
+ emoji: string;
240
+ label: string;
241
+ isTodo: boolean;
242
+ description?: undefined;
243
+ })[];
244
+ export declare function getComplianceBadge(userTypes: string[], specialConsiderations: string[], integrations: Record<string, string[]>): Badges;
245
+ export declare const RESPONSE_TIME_OPTIONS: ({
246
+ id: string;
247
+ emoji: string;
248
+ label: string;
249
+ isTodo?: undefined;
250
+ } | {
251
+ id: string;
252
+ emoji: string;
253
+ label: string;
254
+ isTodo: boolean;
255
+ })[];
256
+ export declare const AVAILABILITY_OPTIONS: ({
257
+ id: string;
258
+ emoji: string;
259
+ label: string;
260
+ description: string;
261
+ isTodo?: undefined;
262
+ } | {
263
+ id: string;
264
+ emoji: string;
265
+ label: string;
266
+ isTodo: boolean;
267
+ description?: undefined;
268
+ })[];
269
+ export declare const SECURITY_CARDS: {
270
+ id: string;
271
+ emoji: string;
272
+ label: string;
273
+ description: string;
274
+ }[];
275
+ export declare const AI_ONLY_SECURITY_IDS: string[];
276
+ export declare const TESTING_OPTIONS: ({
277
+ id: string;
278
+ label: string;
279
+ description: string;
280
+ isTodo?: undefined;
281
+ } | {
282
+ id: string;
283
+ label: string;
284
+ description?: undefined;
285
+ isTodo?: undefined;
286
+ } | {
287
+ id: string;
288
+ label: string;
289
+ isTodo: boolean;
290
+ description?: undefined;
291
+ })[];
292
+ export declare const CICD_OPTIONS: ({
293
+ id: string;
294
+ label: string;
295
+ emoji?: undefined;
296
+ isTodo?: undefined;
297
+ } | {
298
+ id: string;
299
+ label: string;
300
+ emoji: string;
301
+ isTodo?: undefined;
302
+ } | {
303
+ id: string;
304
+ label: string;
305
+ emoji: string;
306
+ isTodo: boolean;
307
+ })[];
308
+ export declare function getCicdBadge(deploymentTargets: string[]): Badges;
309
+ export type QuestionType = 'text' | 'choice' | 'multi' | 'cards' | 'tabbed-chips' | 'grouped-multi' | 'platform-grid' | 'categorized';
310
+ export interface ChatOption {
311
+ id: string;
312
+ label: string;
313
+ emoji?: string;
314
+ description?: string;
315
+ group?: string;
316
+ todo?: boolean;
317
+ badge?: 'recommended' | 'flagged';
318
+ warning?: string;
319
+ }
320
+ /** A question as the page shows it: one of the core's, or one of the server's (the CLI's) with what the core adds. */
321
+ export interface ChatQuestion {
322
+ key: string;
323
+ step: string;
324
+ core: boolean;
325
+ type: QuestionType;
326
+ chat: string;
327
+ /** The CLI's question under the bot line ('' when the CLI does not ask it). */
328
+ message: string;
329
+ label: string;
330
+ required: boolean;
331
+ placeholder?: string;
332
+ options?: ChatOption[];
333
+ /** `Other: ___` free entry. */
334
+ custom?: boolean;
335
+ /** A text question's TODO answer (non-goals). */
336
+ todo?: string;
337
+ /** Shown above the choices. */
338
+ note?: string;
339
+ /** The composer's first selection when unanswered. */
340
+ seed?: unknown;
341
+ /** Skip notes of the questions skipped just before this one, and a note after its answer. */
342
+ notesBefore: string[];
343
+ noteAfter?: string;
344
+ /** Integration categories (categorized questions). */
345
+ categories?: {
346
+ id: string;
347
+ label: string;
348
+ emoji: string;
349
+ options: string[];
350
+ }[];
351
+ /** Tabs of a platform grid, in order. */
352
+ tabs?: string[];
353
+ answered: boolean;
354
+ /** The answer as a bubble and a recap row show it. */
355
+ text: string;
356
+ /** The files the answer changes (spec-relative inside .specs/; the IDE's project-relative), and the caption made of them. */
357
+ files: string[];
358
+ caption: string;
359
+ /** Everything else the server sent for a CLI question. */
360
+ [extra: string]: unknown;
361
+ }
362
+ /** A server question as GET /api/setup and GET /api/projects/new send it (after `route.flowQuestions()`). */
363
+ export interface CliQuestion {
364
+ key: string;
365
+ message: string;
366
+ chat?: string;
367
+ label?: string;
368
+ required?: boolean;
369
+ placeholder?: string;
370
+ choices?: {
371
+ name: string;
372
+ value: string;
373
+ }[];
374
+ [extra: string]: unknown;
375
+ }
376
+ export declare const CHAT_STEPS: string[];
377
+ /** Every question key in the chat's order, with its step (index into CHAT_STEPS). The parent folder is the page's own. */
378
+ export declare const CHAT_KEYS: [string, number][];
379
+ /** The TODO answer of the non-goals question. */
380
+ export declare const TODO = "__todo__";
381
+ /** Each key the page sends: the 23 optional fields of REQ-002.I.4, their kind and longest text. */
382
+ export declare const OPTIONAL_FIELD_LIMITS: Record<string, {
383
+ kind: 'text' | 'list' | 'map';
384
+ max: number;
385
+ }>;
386
+ /** Most items in one list (and in one integration category). */
387
+ export declare const MAX_LIST_ITEMS = 25;
388
+ /**
389
+ * The files each answer changes, spec-relative inside `.specs/` (checked against `render()` by a test).
390
+ * The context answers fill `development/onboarding.md` for Greenfield only.
391
+ */
392
+ export declare const FIELD_FILES: Record<string, string[]>;
393
+ /** The caption: `For a & b & c`, `For <n> files`, or '' for none. */
394
+ export declare function captionText(files: string[]): string;
395
+ /** Who is set up: a new project (`init`) or a folder without `.specs/` (`add-specs`). */
396
+ export type ChatMode = 'new' | 'setup';
397
+ /**
398
+ * The questions to ask now, in the chat's order: the core's, and the server's CLI questions (`cli`, as
399
+ * `route.flowQuestions()` leaves them) in their places with their badges, seeds and notes. `all` is every
400
+ * question the server sent (the context questions lend their message to the folded ones and are not asked
401
+ * themselves); `parent` is the page's own first question of a new project.
402
+ */
403
+ export declare function chatQuestions(all: CliQuestion[], cli: CliQuestion[], a: Answers, mode: ChatMode, outside?: Record<string, string[]>): ChatQuestion[];
404
+ /** What storing `value` for a question changes: the value, and for the description the category (the web's toPatch). */
405
+ export declare function answerPatch(key: string, value: unknown, a: Answers): Answers;
406
+ /**
407
+ * Replace stale seeds: an answer that still equals the seed it was given (`seeded`, which the page records
408
+ * when the user continues with the seed unchanged) is replaced by the question's seed now, when that differs.
409
+ */
410
+ export declare function reseed(questions: ChatQuestion[], a: Answers, seeded: Record<string, unknown>): {
411
+ answers: Answers;
412
+ seeded: Record<string, unknown>;
413
+ };
414
+ /**
415
+ * The optional fields and the folded context answers to send, from the asked questions (REQ-002.H.28): labels,
416
+ * no TODO choices, no `None` inside an integration category; the four folds for a Greenfield new project only.
417
+ */
418
+ export declare function requestFields(questions: ChatQuestion[], a: Answers, mode: ChatMode): Record<string, unknown>;
419
+ export {};
420
+ //# sourceMappingURL=chatFlow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatFlow.d.ts","sourceRo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