specpilot 2.9.0 → 2.11.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 (87) hide show
  1. package/dist/__tests__/fixtures/allFields.d.ts +3 -0
  2. package/dist/__tests__/fixtures/allFields.d.ts.map +1 -0
  3. package/dist/__tests__/fixtures/allFields.js +31 -0
  4. package/dist/__tests__/fixtures/allFields.js.map +1 -0
  5. package/dist/commands/add-specs.d.ts.map +1 -1
  6. package/dist/commands/add-specs.js +1 -3
  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 +1 -3
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/refine.d.ts.map +1 -1
  12. package/dist/commands/refine.js +1 -3
  13. package/dist/commands/refine.js.map +1 -1
  14. package/dist/core/agentConfig.d.ts +9 -0
  15. package/dist/core/agentConfig.d.ts.map +1 -0
  16. package/dist/{utils/agentConfigGenerator.js → core/agentConfig.js} +29 -44
  17. package/dist/core/agentConfig.js.map +1 -0
  18. package/dist/core/chatFlow.d.ts +420 -0
  19. package/dist/core/chatFlow.d.ts.map +1 -0
  20. package/dist/core/chatFlow.js +1107 -0
  21. package/dist/core/chatFlow.js.map +1 -0
  22. package/dist/core/ideConfig.d.ts +35 -0
  23. package/dist/core/ideConfig.d.ts.map +1 -0
  24. package/dist/core/ideConfig.js +287 -0
  25. package/dist/core/ideConfig.js.map +1 -0
  26. package/dist/core/index.d.ts +8 -0
  27. package/dist/core/index.d.ts.map +1 -0
  28. package/dist/core/index.js +22 -0
  29. package/dist/core/index.js.map +1 -0
  30. package/dist/core/render.d.ts +73 -0
  31. package/dist/core/render.d.ts.map +1 -0
  32. package/dist/core/render.js +99 -0
  33. package/dist/core/render.js.map +1 -0
  34. package/dist/core/slashCommands.d.ts +23 -0
  35. package/dist/core/slashCommands.d.ts.map +1 -0
  36. package/dist/core/slashCommands.js +524 -0
  37. package/dist/core/slashCommands.js.map +1 -0
  38. package/dist/core/specFiles.d.ts +18 -0
  39. package/dist/core/specFiles.d.ts.map +1 -0
  40. package/dist/{utils/specFileGenerator.js → core/specFiles.js} +228 -157
  41. package/dist/core/specFiles.js.map +1 -0
  42. package/dist/core/templateEngine.d.ts +69 -0
  43. package/dist/core/templateEngine.d.ts.map +1 -0
  44. package/dist/{utils → core}/templateEngine.js +123 -10
  45. package/dist/core/templateEngine.js.map +1 -0
  46. package/dist/utils/addSpecsQuestions.d.ts +2 -1
  47. package/dist/utils/addSpecsQuestions.d.ts.map +1 -1
  48. package/dist/utils/addSpecsQuestions.js +2 -1
  49. package/dist/utils/addSpecsQuestions.js.map +1 -1
  50. package/dist/utils/ideConfigGenerator.d.ts +5 -29
  51. package/dist/utils/ideConfigGenerator.d.ts.map +1 -1
  52. package/dist/utils/ideConfigGenerator.js +9 -282
  53. package/dist/utils/ideConfigGenerator.js.map +1 -1
  54. package/dist/utils/initQuestions.d.ts +2 -1
  55. package/dist/utils/initQuestions.d.ts.map +1 -1
  56. package/dist/utils/initQuestions.js +2 -1
  57. package/dist/utils/initQuestions.js.map +1 -1
  58. package/dist/utils/slashCommandGenerator.d.ts +3 -17
  59. package/dist/utils/slashCommandGenerator.d.ts.map +1 -1
  60. package/dist/utils/slashCommandGenerator.js +8 -514
  61. package/dist/utils/slashCommandGenerator.js.map +1 -1
  62. package/dist/utils/specGenerator.d.ts +11 -46
  63. package/dist/utils/specGenerator.d.ts.map +1 -1
  64. package/dist/utils/specGenerator.js +30 -63
  65. package/dist/utils/specGenerator.js.map +1 -1
  66. package/dist/utils/specServer.d.ts +5 -1
  67. package/dist/utils/specServer.d.ts.map +1 -1
  68. package/dist/utils/specServer.js +46 -11
  69. package/dist/utils/specServer.js.map +1 -1
  70. package/dist/utils/specSetup.d.ts +21 -4
  71. package/dist/utils/specSetup.d.ts.map +1 -1
  72. package/dist/utils/specSetup.js +116 -24
  73. package/dist/utils/specSetup.js.map +1 -1
  74. package/package.json +1 -1
  75. package/ui/app.css +43 -2
  76. package/ui/app.js +201 -45
  77. package/ui/index.html +11 -2
  78. package/ui/route.js +54 -5
  79. package/dist/utils/agentConfigGenerator.d.ts +0 -17
  80. package/dist/utils/agentConfigGenerator.d.ts.map +0 -1
  81. package/dist/utils/agentConfigGenerator.js.map +0 -1
  82. package/dist/utils/specFileGenerator.d.ts +0 -30
  83. package/dist/utils/specFileGenerator.d.ts.map +0 -1
  84. package/dist/utils/specFileGenerator.js.map +0 -1
  85. package/dist/utils/templateEngine.d.ts +0 -35
  86. package/dist/utils/templateEngine.d.ts.map +0 -1
  87. package/dist/utils/templateEngine.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slashCommands.js","sourceRoot":"","sources":["../../src/core/slashCommands.ts"],"names":[],"mappings":";AAAA,kGAAkG;AAClG,mGAAmG;;;AAyenG,oCAMC;AAED,sCAgBG;AAvfH;;;GAGG;AACU,QAAA,cAAc,GAAmB;IAC5C;QACE,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,2DAA2D;QACxE,IAAI,EAAE;;;;;;;;8FAQoF;KAC3F;IACD;QACE,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,0DAA0D;QACvE,IAAI,EAAE;;;;;;wIAM8H;KACrI;IACD;QACE,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6GAA6G;QAC1H,IAAI,EAAE;;;;;;;;;sOAS4N;KACnO;IACD;QACE,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,0EAA0E;QACvF,IAAI,EAAE;;;;;;;;+HAQqH;KAC5H;IACD;QACE,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,oGAAoG;QACjH,YAAY,EAAE,eAAe;QAC7B,IAAI,EAAE;;;;;;;;;;4IAUkI;KACzI;IACD;QACE,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,qGAAqG;QAClH,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;QAC9B,IAAI,EAAE;;;;;;;;;;;;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C,gBAAgB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IACtD,IAAI,OAAO,CAAC,YAAY;QAAE,KAAK,CAAC,IAAI,CAAC,kBAAkB,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAC/E,IAAI,OAAO,CAAC,YAAY;QAAE,KAAK,CAAC,IAAI,CAAC,kBAAkB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1F,OAAO,QAAQ,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;AAC7C,CAAC;AAEH,SAAS,iBAAiB,CAAC,OAAqB;IAC5C,OAAO,qBAAqB,OAAO,CAAC,WAAW,WAAW,CAAC;AAC7D,CAAC;AAEH,SAAS,kBAAkB,CAAC,OAAqB;IAC7C,OAAO,kCAAkC,OAAO,CAAC,WAAW,WAAW,CAAC;AAC1E,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { TemplateEngine, TemplateContext } from './templateEngine';
2
+ /**
3
+ * The files `generateAll()` wrote until BL-032, in that order, now returned as `{ path, content }`
4
+ * (paths relative to the project, `specsName` first) with the onboarding prompt kept aside.
5
+ */
6
+ export declare function renderSpecFiles(engine: TemplateEngine, context: TemplateContext, specsName: string): {
7
+ files: {
8
+ path: string;
9
+ content: string;
10
+ }[];
11
+ onboardingPrompt: string;
12
+ };
13
+ /**
14
+ * The files `renderSpecFiles()` returns for an API paradigm, relative to the specs folder, in order
15
+ * (BL-PM-004): read from the table the renders use, and pinned to the output by a test.
16
+ */
17
+ export declare function specTargets(apiParadigm: string): string[];
18
+ //# sourceMappingURL=specFiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"specFiles.d.ts","sourceRoot":"","sources":["../../src/core/specFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AA0FnE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,CAkB7K;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAIzD"}
@@ -1,12 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SpecFileGenerator = void 0;
4
- const path_1 = require("path");
5
- const fs_1 = require("fs");
6
- /**
7
- * Generates all `.specs/` markdown and YAML files.
8
- * Responsible only for content inside the specs directory.
9
- */
3
+ exports.renderSpecFiles = renderSpecFiles;
4
+ exports.specTargets = specTargets;
5
+ // The `.specs/` files: their names, write order and content (BL-032, phase 1: moved from
6
+ // src/utils/specFileGenerator.ts as functions that return content; the writer is SpecGenerator).
10
7
  /** Every file the generator writes: its subfolder of the specs folder and its name, in write order (BL-PM-004). */
11
8
  const SPEC_FILES = {
12
9
  ReadmeMd: ['', 'README.md'],
@@ -23,11 +20,8 @@ const SPEC_FILES = {
23
20
  ThreatModelMd: ['security', 'threat-model.md'],
24
21
  SecurityDecisionsMd: ['security', 'security-decisions.md'],
25
22
  };
26
- class SpecFileGenerator {
27
- constructor(templateEngine) {
28
- this.templateEngine = templateEngine;
29
- // ── README templates ────────────────────────────────────────────
30
- this.NEW_PROJECT_README = `# SpecPilot Specifications
23
+ // ── README templates ────────────────────────────────────────────
24
+ const NEW_PROJECT_README = `# SpecPilot Specifications
31
25
 
32
26
  This folder contains structured documentation for your project.
33
27
 
@@ -59,7 +53,7 @@ specpilot add-specs
59
53
  \\\`\\\`\\\`
60
54
 
61
55
  For AI guidelines and prompt history, see [\`development/prompts.md\`](development/prompts.md).`;
62
- this.EXISTING_PROJECT_README = `# SpecPilot Specifications
56
+ const EXISTING_PROJECT_README = `# SpecPilot Specifications
63
57
 
64
58
  This folder contains structured documentation for your codebase.
65
59
 
@@ -91,57 +85,61 @@ specpilot add-specs
91
85
  \\\`\\\`\\\`
92
86
 
93
87
  For AI guidelines and prompt history, see [\`development/prompts.md\`](development/prompts.md).`;
94
- }
95
- /** Generate all spec files into the pre-created specs directory. */
96
- async generateAll(specsDir, context) {
97
- const dir = (key) => (0, path_1.join)(specsDir, SPEC_FILES[key][0]);
98
- await this.generateReadmeMd(dir('ReadmeMd'), context);
99
- await this.generateProjectYaml(dir('ProjectYaml'), context);
100
- await this.generateRequirementsMd(dir('RequirementsMd'), context);
101
- await this.generateArchitectureMd(dir('ArchitectureMd'), context);
102
- await this.generateApiYaml(dir('ApiYaml'), context);
103
- await this.generateTasksMd(dir('TasksMd'), context);
104
- await this.generateRoadmapMd(dir('RoadmapMd'), context);
105
- await this.generateContextMd(dir('ContextMd'), context);
106
- await this.generatePromptsMd(dir('PromptsMd'), context);
107
- const onboardingPrompt = await this.generateOnboardingMd(dir('OnboardingMd'), context);
108
- await this.generateTestsMd(dir('TestsMd'), context);
109
- (0, fs_1.mkdirSync)(dir('ThreatModelMd'), { recursive: true });
110
- await this.generateThreatModelMd(dir('ThreatModelMd'), context);
111
- await this.generateSecurityDecisionsMd(dir('SecurityDecisionsMd'), context);
112
- return { onboardingPrompt };
113
- }
114
- /**
115
- * The files `generateAll()` writes for an API paradigm, relative to the specs folder, in the order
116
- * it writes them (BL-PM-004): read from the table the writes use, and pinned to the output by a test.
117
- */
118
- targets(apiParadigm) {
119
- return Object.keys(SPEC_FILES)
120
- .filter(key => key !== 'ApiYaml' || apiParadigm !== 'none')
121
- .map(key => SPEC_FILES[key].filter(Boolean).join('/'));
122
- }
123
- async generateReadmeMd(specsDir, context) {
124
- const template = context.mode === 'existing' ? this.EXISTING_PROJECT_README : this.NEW_PROJECT_README;
125
- const rendered = this.templateEngine.renderFromString(template, context);
126
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.ReadmeMd[1]), rendered);
127
- }
128
- async generateProjectYaml(specsDir, context) {
129
- const template = this.templateEngine.getBuiltinTemplate(context.language, context.framework, 'project.yaml');
130
- const content = this.templateEngine.renderFromString(template, context);
131
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.ProjectYaml[1]), content);
132
- }
133
- async generateArchitectureMd(specsDir, context) {
134
- const template = this.templateEngine.getBuiltinTemplate(context.language, context.framework, 'architecture.md');
135
- const content = this.templateEngine.renderFromString(template, context);
136
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.ArchitectureMd[1]), content);
137
- }
138
- async generateRequirementsMd(specsDir, context) {
139
- const content = `---
88
+ /**
89
+ * The files `generateAll()` wrote until BL-032, in that order, now returned as `{ path, content }`
90
+ * (paths relative to the project, `specsName` first) with the onboarding prompt kept aside.
91
+ */
92
+ function renderSpecFiles(engine, context, specsName) {
93
+ const files = [];
94
+ const add = (key, content) => files.push({ path: `${specsName}/${SPEC_FILES[key].filter(Boolean).join('/')}`, content });
95
+ add('ReadmeMd', readmeMd(engine, context));
96
+ add('ProjectYaml', projectYaml(engine, context));
97
+ add('RequirementsMd', requirementsMd(engine, context));
98
+ add('ArchitectureMd', architectureMd(engine, context));
99
+ if ((context.apiParadigm ?? 'rest') !== 'none')
100
+ add('ApiYaml', apiYaml(engine, context));
101
+ add('TasksMd', tasksMd(engine, context));
102
+ add('RoadmapMd', roadmapMd(engine, context));
103
+ add('ContextMd', contextMd(engine, context));
104
+ add('PromptsMd', promptsMd(engine, context));
105
+ const onboarding = onboardingMd(context);
106
+ add('OnboardingMd', onboarding.content);
107
+ add('TestsMd', testsMd(engine, context));
108
+ add('ThreatModelMd', threatModelMd(engine, context));
109
+ add('SecurityDecisionsMd', securityDecisionsMd(engine, context));
110
+ return { files, onboardingPrompt: onboarding.prompt };
111
+ }
112
+ /**
113
+ * The files `renderSpecFiles()` returns for an API paradigm, relative to the specs folder, in order
114
+ * (BL-PM-004): read from the table the renders use, and pinned to the output by a test.
115
+ */
116
+ function specTargets(apiParadigm) {
117
+ return Object.keys(SPEC_FILES)
118
+ .filter(key => key !== 'ApiYaml' || apiParadigm !== 'none')
119
+ .map(key => SPEC_FILES[key].filter(Boolean).join('/'));
120
+ }
121
+ function readmeMd(engine, context) {
122
+ const template = context.mode === 'existing' ? EXISTING_PROJECT_README : NEW_PROJECT_README;
123
+ const rendered = engine.renderFromString(template, context);
124
+ return rendered;
125
+ }
126
+ function projectYaml(engine, context) {
127
+ const template = engine.getBuiltinTemplate(context.language, context.framework, 'project.yaml');
128
+ const content = engine.renderFromString(template, context);
129
+ return content;
130
+ }
131
+ function architectureMd(engine, context) {
132
+ const template = engine.getBuiltinTemplate(context.language, context.framework, 'architecture.md');
133
+ const content = engine.renderFromString(template, context);
134
+ return content;
135
+ }
136
+ function requirementsMd(engine, context) {
137
+ const content = `---
140
138
  title: Requirements
141
139
  description: Functional and non-functional requirements for the project
142
- project: {{projectName}}
143
- language: {{language}}
144
- framework: {{framework}}
140
+ project: {{fm projectName}}
141
+ language: {{fm language}}
142
+ framework: {{fm framework}}
145
143
  lastUpdated: {{currentDate}}
146
144
  sourceOfTruth: project/project.yaml
147
145
  ---
@@ -153,28 +151,48 @@ sourceOfTruth: project/project.yaml
153
151
 
154
152
  ## Functional Requirements
155
153
  [TODO]
154
+ {{#if accessControl}}
155
+
156
+ ### Access control
157
+ {{accessControl}}
158
+ {{/if}}
159
+ {{#if specialConsiderations}}
160
+
161
+ ### Special considerations
162
+ {{#each specialConsiderations}}
163
+ - {{this}}
164
+ {{/each}}
165
+ {{/if}}
166
+ {{#if accessibilityNotes}}
167
+ {{#unless specialConsiderations}}
168
+
169
+ ### Special considerations
170
+ {{/unless}}
171
+
172
+ {{accessibilityNotes}}
173
+ {{/if}}
156
174
 
157
175
  ## Assumptions
158
176
  [TODO]`;
159
- const rendered = this.templateEngine.renderFromString(content, context);
160
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.RequirementsMd[1]), rendered);
161
- }
162
- async generateApiYaml(specsDir, context) {
163
- const paradigm = context.apiParadigm ?? 'rest';
164
- if (paradigm === 'none')
165
- return;
166
- const header = `# .specs/architecture/api.yaml
177
+ const rendered = engine.renderFromString(content, context);
178
+ return rendered;
179
+ }
180
+ function apiYaml(engine, context) {
181
+ const paradigm = context.apiParadigm ?? 'rest';
182
+ if (paradigm === 'none')
183
+ return '';
184
+ const header = `# .specs/architecture/api.yaml
167
185
  # meta: project={{projectName}} language={{language}} framework={{framework}} updated={{currentDate}}
168
186
 
169
- project: "{{projectName}}"
187
+ project: "{{dq projectName}}"
170
188
  version: "1.0.0"
171
189
  lastUpdated: "{{currentDate}}"
172
190
  `;
173
- const sections = {
174
- rest: `
191
+ const sections = {
192
+ rest: `
175
193
  openapi: "3.0.0"
176
194
  info:
177
- title: "{{projectName}} API"
195
+ title: "{{dq projectName}} API"
178
196
  version: "1.0.0"
179
197
  description: "[TODO: Describe your API]"
180
198
 
@@ -190,9 +208,9 @@ paths:
190
208
  "200":
191
209
  description: "Success"
192
210
  `,
193
- cli: `
211
+ cli: `
194
212
  cli:
195
- name: "{{projectName}}"
213
+ name: "{{dq projectName}}"
196
214
  version: "1.0.0"
197
215
  commands:
198
216
  - name: "[TODO: first-command]"
@@ -205,7 +223,7 @@ cli:
205
223
  - flag: "--example <value>"
206
224
  description: "[TODO: option description]"
207
225
  `,
208
- graphql: `
226
+ graphql: `
209
227
  graphql:
210
228
  endpoint: "/graphql"
211
229
  queries:
@@ -215,18 +233,35 @@ graphql:
215
233
  - name: "[TODO: firstMutation]"
216
234
  description: "[TODO: What does this mutation do?]"
217
235
  `,
218
- };
219
- const content = header + sections[paradigm];
220
- const rendered = this.templateEngine.renderFromString(content, context);
221
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.ApiYaml[1]), rendered);
222
- }
223
- async generateTasksMd(specsDir, context) {
224
- const content = `---
236
+ };
237
+ // The optional data-layer keys (REQ-002.I.4): after a rest or graphql section, never after cli.
238
+ const extras = `{{#if (any databases authStrategy realtimeTypes)}}
239
+
240
+ {{#if databases}}
241
+ databases:
242
+ {{yamlList databases}}
243
+ {{/if}}
244
+ {{#if authStrategy}}
245
+ auth_strategy: {{yaml authStrategy}}
246
+ {{/if}}
247
+ {{#if realtimeTypes}}
248
+ realtime:
249
+ enabled: true
250
+ transports:
251
+ {{yamlList realtimeTypes}}
252
+ {{/if}}
253
+ {{/if}}`;
254
+ const content = header + sections[paradigm] + (paradigm === 'cli' ? '' : extras);
255
+ const rendered = engine.renderFromString(content, context);
256
+ return rendered;
257
+ }
258
+ function tasksMd(engine, context) {
259
+ const content = `---
225
260
  fileID: TASKS-001
226
261
  description: Sprint tracker with backlog, current sprint, and completed work
227
262
  lastUpdated: {{currentDate}}
228
263
  version: 1.0
229
- contributors: [{{author}}]
264
+ contributors: [{{fm author}}]
230
265
  relatedFiles: [roadmap.md, project.yaml, requirements.md]
231
266
  ---
232
267
 
@@ -250,16 +285,16 @@ Task ID conventions
250
285
  ## Completed
251
286
 
252
287
  1. [CD-001] Initialise .specs directory ({{currentDate}})`;
253
- const rendered = this.templateEngine.renderFromString(content, context);
254
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.TasksMd[1]), rendered);
255
- }
256
- async generateRoadmapMd(specsDir, context) {
257
- const content = `---
288
+ const rendered = engine.renderFromString(content, context);
289
+ return rendered;
290
+ }
291
+ function roadmapMd(engine, context) {
292
+ const content = `---
258
293
  title: Roadmap
259
294
  description: Release milestones, objectives, and delivery timeline
260
- project: {{projectName}}
261
- language: {{language}}
262
- framework: {{framework}}
295
+ project: {{fm projectName}}
296
+ language: {{fm language}}
297
+ framework: {{fm framework}}
263
298
  lastUpdated: {{currentDate}}
264
299
  sourceOfTruth: project/project.yaml
265
300
  ---
@@ -267,6 +302,10 @@ sourceOfTruth: project/project.yaml
267
302
  # {{projectName}} — Development Roadmap
268
303
 
269
304
  ## Milestones
305
+ {{#if buildTimeline}}
306
+ Build timeline: {{buildTimeline}}
307
+
308
+ {{/if}}
270
309
  [TODO]
271
310
 
272
311
  ## Objectives
@@ -277,16 +316,16 @@ sourceOfTruth: project/project.yaml
277
316
 
278
317
  ## Risks and Mitigations
279
318
  [TODO]`;
280
- const rendered = this.templateEngine.renderFromString(content, context);
281
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.RoadmapMd[1]), rendered);
282
- }
283
- async generateContextMd(specsDir, context) {
284
- const content = `---
319
+ const rendered = engine.renderFromString(content, context);
320
+ return rendered;
321
+ }
322
+ function contextMd(engine, context) {
323
+ const content = `---
285
324
  title: Development Context
286
325
  description: Project memory, decisions, and implementation notes
287
- project: {{projectName}}
288
- language: {{language}}
289
- framework: {{framework}}
326
+ project: {{fm projectName}}
327
+ language: {{fm language}}
328
+ framework: {{fm framework}}
290
329
  lastUpdated: {{currentDate}}
291
330
  sourceOfTruth: project/project.yaml
292
331
  ---
@@ -294,17 +333,21 @@ sourceOfTruth: project/project.yaml
294
333
  # {{projectName}} Development Context
295
334
 
296
335
  ## Project Memory
297
- [TODO]`;
298
- const rendered = this.templateEngine.renderFromString(content, context);
299
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.ContextMd[1]), rendered);
300
- }
301
- async generatePromptsMd(specsDir, context) {
302
- const content = `---
336
+ {{#if constraintDescription}}
337
+ ### Constraints
338
+ {{constraintDescription}}
339
+ {{else}}
340
+ [TODO]{{/if}}`;
341
+ const rendered = engine.renderFromString(content, context);
342
+ return rendered;
343
+ }
344
+ function promptsMd(engine, context) {
345
+ const content = `---
303
346
  title: Prompts Log
304
347
  description: AI interaction log for {{projectName}}
305
- project: {{projectName}}
306
- language: {{language}}
307
- framework: {{framework}}
348
+ project: {{fm projectName}}
349
+ language: {{fm language}}
350
+ framework: {{fm framework}}
308
351
  lastUpdated: {{currentDate}}
309
352
  sourceOfTruth: project/project.yaml
310
353
  ---
@@ -352,13 +395,13 @@ For full project context, read .specs/project/project.yaml.
352
395
  | Date | User | Prompt Summary | Context |
353
396
  |------|------|----------------|---------|
354
397
  | YYYY-MM-DD | @username | Example prompt | Brief context or outcome |`;
355
- const rendered = this.templateEngine.renderFromString(content, context);
356
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.PromptsMd[1]), rendered);
357
- }
358
- async generateOnboardingMd(specsDir, context) {
359
- const isGreenfield = context.projectType !== 'brownfield';
360
- const pc = context.projectContext;
361
- const conventions = `**Conventions & Rules:**
398
+ const rendered = engine.renderFromString(content, context);
399
+ return rendered;
400
+ }
401
+ function onboardingMd(context) {
402
+ const isGreenfield = context.projectType !== 'brownfield';
403
+ const pc = context.projectContext;
404
+ const conventions = `**Conventions & Rules:**
362
405
  1. **IDs**: Use semantic prefixes with zero-padded numbers (e.g., REQ-001, CD-${context.author || '{{author}}'}-001)
363
406
  2. **Status values**: Must be one of: not-started, in-progress, completed, blocked, deprecated
364
407
  3. **Priority values**: Must be: critical, high, medium, low
@@ -377,20 +420,20 @@ For full project context, read .specs/project/project.yaml.
377
420
  - \`planning/roadmap.md\`: ## Milestones with versions, dates, features, status
378
421
  - \`quality/tests.md\`: ## Test Strategy, Test Cases (TEST-XXX), Coverage Goals
379
422
  - \`development/context.md\`: ## Project Context, Key Decisions, Known Issues`;
380
- let prompt;
381
- if (isGreenfield) {
382
- const projectContextBlock = pc
383
- ? `**Project context (provided by the developer):**
423
+ let prompt;
424
+ if (isGreenfield) {
425
+ const projectContextBlock = pc
426
+ ? `**Project context (provided by the developer):**
384
427
  - **What it does:** ${pc.whatItDoes}
385
428
  - **Target users:** ${pc.targetUsers}
386
429
  - **Expected scale:** ${pc.expectedScale}
387
430
  - **Key constraints:** ${pc.constraints}`
388
- : `**Project context:**
431
+ : `**Project context:**
389
432
  - **What it does:** [DESCRIBE YOUR PROJECT HERE]
390
433
  - **Target users:** Not specified — use your judgment and mark as [ASSUMPTION]
391
434
  - **Expected scale:** Not specified — use your judgment and mark as [ASSUMPTION]
392
435
  - **Key constraints:** Not specified — use your judgment and mark as [ASSUMPTION]`;
393
- prompt = `You are the specification co-pilot for a new project called "${context.projectName}".
436
+ prompt = `You are the specification co-pilot for a new project called "${context.projectName}".
394
437
  Tech stack: ${context.language}${context.framework ? ` / ${context.framework}` : ''}
395
438
 
396
439
  ${projectContextBlock}
@@ -429,9 +472,9 @@ After populating all files, provide a summary of: what you understood, assumptio
429
472
  **Final step: delete \`.specs/development/onboarding.md\` — it is a one-time bootstrap file.**
430
473
 
431
474
  Begin drafting now.`;
432
- }
433
- else {
434
- prompt = `You are onboarding as the specification co-pilot for this repository. We just initialized the .specs directory using SpecPilot SDD. Your task is to inspect the codebase and populate all .specs files following these strict conventions:
475
+ }
476
+ else {
477
+ prompt = `You are onboarding as the specification co-pilot for this repository. We just initialized the .specs directory using SpecPilot SDD. Your task is to inspect the codebase and populate all .specs files following these strict conventions:
435
478
 
436
479
  ${conventions}
437
480
 
@@ -464,13 +507,13 @@ After populating all files, provide a summary of: what was discovered, what's do
464
507
  **Final step: delete \`.specs/development/onboarding.md\` — it is a one-time bootstrap file.**
465
508
 
466
509
  Begin your analysis now.`;
467
- }
468
- const label = isGreenfield ? 'Greenfield' : 'Brownfield';
469
- const content = `---
510
+ }
511
+ const label = isGreenfield ? 'Greenfield' : 'Brownfield';
512
+ const content = `---
470
513
  title: Onboarding Prompt (${label})
471
514
  description: One-time AI prompt to bootstrap .specs/ files — delete after use
472
515
  project: ${context.projectName}
473
- lastUpdated: ${new Date().toISOString().split('T')[0]}
516
+ lastUpdated: ${context.lastUpdated}
474
517
  ---
475
518
 
476
519
  > **One-time file — delete after use.**
@@ -479,16 +522,15 @@ lastUpdated: ${new Date().toISOString().split('T')[0]}
479
522
  ---
480
523
 
481
524
  ${prompt}`;
482
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.OnboardingMd[1]), content);
483
- return prompt;
484
- }
485
- async generateTestsMd(specsDir, context) {
486
- const content = `---
525
+ return { content, prompt };
526
+ }
527
+ function testsMd(engine, context) {
528
+ const content = `---
487
529
  title: Test Strategy
488
530
  description: Test strategy, coverage goals, and quality approach
489
- project: {{projectName}}
490
- language: {{language}}
491
- framework: {{framework}}
531
+ project: {{fm projectName}}
532
+ language: {{fm language}}
533
+ framework: {{fm framework}}
492
534
  lastUpdated: {{currentDate}}
493
535
  sourceOfTruth: project/project.yaml
494
536
  ---
@@ -496,17 +538,20 @@ sourceOfTruth: project/project.yaml
496
538
  # {{projectName}} Test Strategy
497
539
 
498
540
  ## Overview
499
- [TODO]`;
500
- const rendered = this.templateEngine.renderFromString(content, context);
501
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.TestsMd[1]), rendered);
502
- }
503
- async generateThreatModelMd(specsDir, context) {
504
- const content = `---
541
+ {{#if testingStrategy}}
542
+ Strategy: {{join testingStrategy ", "}}
543
+ {{else}}
544
+ [TODO]{{/if}}`;
545
+ const rendered = engine.renderFromString(content, context);
546
+ return rendered;
547
+ }
548
+ function threatModelMd(engine, context) {
549
+ const content = `---
505
550
  fileID: SEC-001
506
551
  description: Threat model and attack surface analysis
507
552
  lastUpdated: {{currentDate}}
508
553
  version: 1.0
509
- contributors: [{{author}}]
554
+ contributors: [{{fm author}}]
510
555
  relatedFiles: [security/security-decisions.md, architecture/architecture.md, project/requirements.md]
511
556
  ---
512
557
 
@@ -516,33 +561,59 @@ relatedFiles: [security/security-decisions.md, architecture/architecture.md, pro
516
561
  [TODO]
517
562
 
518
563
  ## Threat Model [SEC-002]
564
+ {{#if (any securityConcerns integrations)}}
565
+ {{#if securityConcerns}}
566
+
567
+ ### Security concerns
568
+ {{#each securityConcerns}}
569
+ - {{this}}
570
+ {{/each}}
571
+ {{/if}}
572
+ {{#if integrations}}
573
+
574
+ ### Integration-derived threat entries
575
+ {{#each integrations}}
576
+ - {{@key}}: {{join this ", "}} — review vendor data-handling and auth scopes
577
+ {{/each}}
578
+ {{/if}}
579
+ {{else}}
519
580
  [TODO]
581
+ {{/if}}
520
582
 
521
583
  ## Attack Surface Summary [SEC-003]
522
584
  [TODO]
523
585
 
524
586
  ## Out of Scope [SEC-004]
525
587
  [TODO]`;
526
- const rendered = this.templateEngine.renderFromString(content, context);
527
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.ThreatModelMd[1]), rendered);
528
- }
529
- async generateSecurityDecisionsMd(specsDir, context) {
530
- const content = `---
588
+ const rendered = engine.renderFromString(content, context);
589
+ return rendered;
590
+ }
591
+ function securityDecisionsMd(engine, context) {
592
+ const content = `---
531
593
  fileID: SEC-002
532
594
  description: Security ADR log with decisions, rationale, and trade-offs
533
595
  lastUpdated: {{currentDate}}
534
596
  version: 1.0
535
- contributors: [{{author}}]
597
+ contributors: [{{fm author}}]
536
598
  relatedFiles: [security/threat-model.md, architecture/architecture.md]
537
599
  ---
538
600
 
539
601
  # Security Decisions
540
602
 
541
603
  ## Decisions [SEC-002.1]
542
- [TODO]`;
543
- const rendered = this.templateEngine.renderFromString(content, context);
544
- (0, fs_1.writeFileSync)((0, path_1.join)(specsDir, SPEC_FILES.SecurityDecisionsMd[1]), rendered);
545
- }
604
+ {{#if (any authStrategy compliance cicd)}}
605
+ {{#if authStrategy}}
606
+ Auth strategy: {{authStrategy}}
607
+ {{/if}}
608
+ {{#if compliance}}
609
+ Compliance: {{join compliance ", "}}
610
+ {{/if}}
611
+ {{#if cicd}}
612
+ CI/CD: {{join cicd ", "}}
613
+ {{/if}}
614
+ {{else}}
615
+ [TODO]{{/if}}`;
616
+ const rendered = engine.renderFromString(content, context);
617
+ return rendered;
546
618
  }
547
- exports.SpecFileGenerator = SpecFileGenerator;
548
- //# sourceMappingURL=specFileGenerator.js.map
619
+ //# sourceMappingURL=specFiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"specFiles.js","sourceRoot":"","sources":["../../src/core/specFiles.ts"],"names":[],"mappings":";;AA8FA,0CAkBC;AAMD,kCAIC;AAxHD,yFAAyF;AAC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