specpilot 2.9.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/add-specs.d.ts.map +1 -1
- package/dist/commands/add-specs.js +1 -3
- package/dist/commands/add-specs.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +1 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/refine.d.ts.map +1 -1
- package/dist/commands/refine.js +1 -3
- package/dist/commands/refine.js.map +1 -1
- package/dist/core/agentConfig.d.ts +9 -0
- package/dist/core/agentConfig.d.ts.map +1 -0
- package/dist/{utils/agentConfigGenerator.js → core/agentConfig.js} +29 -44
- package/dist/core/agentConfig.js.map +1 -0
- package/dist/core/ideConfig.d.ts +35 -0
- package/dist/core/ideConfig.d.ts.map +1 -0
- package/dist/core/ideConfig.js +287 -0
- package/dist/core/ideConfig.js.map +1 -0
- package/dist/core/index.d.ts +8 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +22 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/render.d.ts +73 -0
- package/dist/core/render.d.ts.map +1 -0
- package/dist/core/render.js +99 -0
- package/dist/core/render.js.map +1 -0
- package/dist/core/slashCommands.d.ts +23 -0
- package/dist/core/slashCommands.d.ts.map +1 -0
- package/dist/core/slashCommands.js +524 -0
- package/dist/core/slashCommands.js.map +1 -0
- package/dist/core/specFiles.d.ts +18 -0
- package/dist/core/specFiles.d.ts.map +1 -0
- package/dist/{utils/specFileGenerator.js → core/specFiles.js} +207 -136
- package/dist/core/specFiles.js.map +1 -0
- package/dist/core/templateEngine.d.ts +69 -0
- package/dist/core/templateEngine.d.ts.map +1 -0
- package/dist/{utils → core}/templateEngine.js +108 -6
- package/dist/core/templateEngine.js.map +1 -0
- package/dist/utils/ideConfigGenerator.d.ts +5 -29
- package/dist/utils/ideConfigGenerator.d.ts.map +1 -1
- package/dist/utils/ideConfigGenerator.js +9 -282
- package/dist/utils/ideConfigGenerator.js.map +1 -1
- package/dist/utils/slashCommandGenerator.d.ts +3 -17
- package/dist/utils/slashCommandGenerator.d.ts.map +1 -1
- package/dist/utils/slashCommandGenerator.js +8 -514
- package/dist/utils/slashCommandGenerator.js.map +1 -1
- package/dist/utils/specGenerator.d.ts +11 -46
- package/dist/utils/specGenerator.d.ts.map +1 -1
- package/dist/utils/specGenerator.js +30 -63
- package/dist/utils/specGenerator.js.map +1 -1
- package/dist/utils/specSetup.d.ts.map +1 -1
- package/dist/utils/specSetup.js +3 -4
- package/dist/utils/specSetup.js.map +1 -1
- package/package.json +1 -1
- package/dist/utils/agentConfigGenerator.d.ts +0 -17
- package/dist/utils/agentConfigGenerator.d.ts.map +0 -1
- package/dist/utils/agentConfigGenerator.js.map +0 -1
- package/dist/utils/specFileGenerator.d.ts +0 -30
- package/dist/utils/specFileGenerator.d.ts.map +0 -1
- package/dist/utils/specFileGenerator.js.map +0 -1
- package/dist/utils/templateEngine.d.ts +0 -35
- package/dist/utils/templateEngine.d.ts.map +0 -1
- package/dist/utils/templateEngine.js.map +0 -1
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
27
|
-
|
|
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
|
-
|
|
56
|
+
const EXISTING_PROJECT_README = `# SpecPilot Specifications
|
|
63
57
|
|
|
64
58
|
This folder contains structured documentation for your codebase.
|
|
65
59
|
|
|
@@ -91,52 +85,56 @@ specpilot add-specs
|
|
|
91
85
|
\\\`\\\`\\\`
|
|
92
86
|
|
|
93
87
|
For AI guidelines and prompt history, see [\`development/prompts.md\`](development/prompts.md).`;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
140
|
project: {{projectName}}
|
|
@@ -153,25 +151,45 @@ 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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
187
|
project: "{{projectName}}"
|
|
170
188
|
version: "1.0.0"
|
|
171
189
|
lastUpdated: "{{currentDate}}"
|
|
172
190
|
`;
|
|
173
|
-
|
|
174
|
-
|
|
191
|
+
const sections = {
|
|
192
|
+
rest: `
|
|
175
193
|
openapi: "3.0.0"
|
|
176
194
|
info:
|
|
177
195
|
title: "{{projectName}} API"
|
|
@@ -190,7 +208,7 @@ paths:
|
|
|
190
208
|
"200":
|
|
191
209
|
description: "Success"
|
|
192
210
|
`,
|
|
193
|
-
|
|
211
|
+
cli: `
|
|
194
212
|
cli:
|
|
195
213
|
name: "{{projectName}}"
|
|
196
214
|
version: "1.0.0"
|
|
@@ -205,7 +223,7 @@ cli:
|
|
|
205
223
|
- flag: "--example <value>"
|
|
206
224
|
description: "[TODO: option description]"
|
|
207
225
|
`,
|
|
208
|
-
|
|
226
|
+
graphql: `
|
|
209
227
|
graphql:
|
|
210
228
|
endpoint: "/graphql"
|
|
211
229
|
queries:
|
|
@@ -215,13 +233,30 @@ graphql:
|
|
|
215
233
|
- name: "[TODO: firstMutation]"
|
|
216
234
|
description: "[TODO: What does this mutation do?]"
|
|
217
235
|
`,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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}}
|
|
@@ -250,11 +285,11 @@ Task ID conventions
|
|
|
250
285
|
## Completed
|
|
251
286
|
|
|
252
287
|
1. [CD-001] Initialise .specs directory ({{currentDate}})`;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
295
|
project: {{projectName}}
|
|
@@ -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,11 +316,11 @@ sourceOfTruth: project/project.yaml
|
|
|
277
316
|
|
|
278
317
|
## Risks and Mitigations
|
|
279
318
|
[TODO]`;
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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
326
|
project: {{projectName}}
|
|
@@ -294,12 +333,16 @@ sourceOfTruth: project/project.yaml
|
|
|
294
333
|
# {{projectName}} Development Context
|
|
295
334
|
|
|
296
335
|
## Project Memory
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
348
|
project: {{projectName}}
|
|
@@ -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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
434
|
-
|
|
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
|
-
|
|
469
|
-
|
|
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: ${
|
|
516
|
+
lastUpdated: ${context.lastUpdated}
|
|
474
517
|
---
|
|
475
518
|
|
|
476
519
|
> **One-time file — delete after use.**
|
|
@@ -479,11 +522,10 @@ lastUpdated: ${new Date().toISOString().split('T')[0]}
|
|
|
479
522
|
---
|
|
480
523
|
|
|
481
524
|
${prompt}`;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
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
531
|
project: {{projectName}}
|
|
@@ -496,12 +538,15 @@ sourceOfTruth: project/project.yaml
|
|
|
496
538
|
# {{projectName}} Test Strategy
|
|
497
539
|
|
|
498
540
|
## Overview
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
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}}
|
|
@@ -516,18 +561,35 @@ 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
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
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}}
|
|
@@ -539,10 +601,19 @@ relatedFiles: [security/threat-model.md, architecture/architecture.md]
|
|
|
539
601
|
# Security Decisions
|
|
540
602
|
|
|
541
603
|
## Decisions [SEC-002.1]
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
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
|
-
|
|
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;AACzF,iGAAiG;AACjG,mHAAmH;AACnH,MAAM,UAAU,GAAG;IACjB,QAAQ,EAAE,CAAC,EAAE,EAAE,WAAW,CAAC;IAC3B,WAAW,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC;IACxC,cAAc,EAAE,CAAC,SAAS,EAAE,iBAAiB,CAAC;IAC9C,cAAc,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;IACnD,OAAO,EAAE,CAAC,cAAc,EAA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,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC;IACzD,MAAM,OAAO,GAAG;4BACQ,KAAK;;WAEtB,OAAO,CAAC,WAAW;eACf,OAAO,CAAC,WAAW;;;;;;;;EAQhC,MAAM,EAAE,CAAC;IAEP,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AAC7B,CAAC;AAEH,SAAS,OAAO,CAAC,MAAsB,EAAE,OAAwB;IAC7D,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;cAgBN,CAAC;IAEX,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3D,OAAO,QAAQ,CAAC;AAClB,CAAC;AAEH,SAAS,aAAa,CAAC,MAAsB,EAAE,OAAwB;IACnE,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCb,CAAC;IAEJ,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3D,OAAO,QAAQ,CAAC;AAClB,CAAC;AAEH,SAAS,mBAAmB,CAAC,MAAsB,EAAE,OAAwB;IACzE,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;cAuBN,CAAC;IAEX,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3D,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export interface ProjectContext {
|
|
2
|
+
whatItDoes: string;
|
|
3
|
+
targetUsers: string;
|
|
4
|
+
expectedScale: string;
|
|
5
|
+
constraints: string;
|
|
6
|
+
}
|
|
7
|
+
/** The optional answers of REQ-002.I.4 (BL-032, phase 2); each is rendered only when present. */
|
|
8
|
+
export interface OptionalFields {
|
|
9
|
+
platforms?: string[];
|
|
10
|
+
accessControl?: string;
|
|
11
|
+
specialConsiderations?: string[];
|
|
12
|
+
accessibilityNotes?: string;
|
|
13
|
+
systemPattern?: string;
|
|
14
|
+
activeUsers?: string;
|
|
15
|
+
teamSize?: string;
|
|
16
|
+
deploymentTargets?: string[];
|
|
17
|
+
localDatabases?: string[];
|
|
18
|
+
dataSyncStrategy?: string;
|
|
19
|
+
integrations?: Record<string, string[]>;
|
|
20
|
+
otherApis?: string;
|
|
21
|
+
apiResponseTime?: string;
|
|
22
|
+
availability?: string;
|
|
23
|
+
databases?: string[];
|
|
24
|
+
authStrategy?: string;
|
|
25
|
+
realtimeTypes?: string[];
|
|
26
|
+
compliance?: string[];
|
|
27
|
+
cicd?: string[];
|
|
28
|
+
securityConcerns?: string[];
|
|
29
|
+
buildTimeline?: string;
|
|
30
|
+
constraintDescription?: string;
|
|
31
|
+
testingStrategy?: string[];
|
|
32
|
+
}
|
|
33
|
+
/** The keys of `OptionalFields`, for `render()`'s present-or-absent rule. */
|
|
34
|
+
export declare const OPTIONAL_FIELDS: (keyof OptionalFields)[];
|
|
35
|
+
export interface TemplateContext extends OptionalFields {
|
|
36
|
+
projectName: string;
|
|
37
|
+
language: string;
|
|
38
|
+
framework?: string;
|
|
39
|
+
author?: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
ide?: string;
|
|
42
|
+
mode?: 'new' | 'existing';
|
|
43
|
+
projectType?: 'greenfield' | 'brownfield';
|
|
44
|
+
apiParadigm?: 'rest' | 'cli' | 'graphql' | 'none';
|
|
45
|
+
projectContext?: ProjectContext;
|
|
46
|
+
/** The date every generated file carries (`YYYY-MM-DD`); set by `render()` (BL-032). */
|
|
47
|
+
lastUpdated?: string;
|
|
48
|
+
architecture?: {
|
|
49
|
+
components: string[];
|
|
50
|
+
directories: string;
|
|
51
|
+
fileTypes: Record<string, number>;
|
|
52
|
+
};
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}
|
|
55
|
+
/** Present means: a string that is not blank, a list with an item, a map with a key (REQ-002.I.4). */
|
|
56
|
+
export declare function present(value: unknown): boolean;
|
|
57
|
+
/** `value` as a YAML scalar: plain when YAML reads it back unchanged, else double-quoted and escaped. */
|
|
58
|
+
export declare function yamlScalar(value: string): string;
|
|
59
|
+
export declare class TemplateEngine {
|
|
60
|
+
constructor();
|
|
61
|
+
private registerHelpers;
|
|
62
|
+
renderFromString(templateString: string, context: TemplateContext): string;
|
|
63
|
+
getBuiltinTemplate(language: string, framework: string | undefined, fileName: string): string;
|
|
64
|
+
private getBuiltinTemplateContent;
|
|
65
|
+
private getProjectYamlTemplate;
|
|
66
|
+
private getDependencySection;
|
|
67
|
+
private getArchitectureTemplate;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=templateEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateEngine.d.ts","sourceRoot":"","sources":["../../src/core/templateEngine.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,iGAAiG;AACjG,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACxC,SAAS,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