@lbruton/specflow 3.5.3 → 3.5.5
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/core/__tests__/template-generator.test.js +36 -1
- package/dist/core/__tests__/template-generator.test.js.map +1 -1
- package/dist/core/archive-service.d.ts.map +1 -1
- package/dist/core/archive-service.js +29 -12
- package/dist/core/archive-service.js.map +1 -1
- package/dist/core/template-generator.d.ts.map +1 -1
- package/dist/core/template-generator.js +116 -44
- package/dist/core/template-generator.js.map +1 -1
- package/dist/dashboard/approval-storage.d.ts.map +1 -1
- package/dist/dashboard/approval-storage.js +4 -2
- package/dist/dashboard/approval-storage.js.map +1 -1
- package/dist/dashboard/job-scheduler.js +2 -2
- package/dist/dashboard/job-scheduler.js.map +1 -1
- package/dist/dashboard/multi-server.d.ts.map +1 -1
- package/dist/dashboard/multi-server.js +23 -18
- package/dist/dashboard/multi-server.js.map +1 -1
- package/dist/dashboard/parser.d.ts.map +1 -1
- package/dist/dashboard/parser.js +8 -7
- package/dist/dashboard/parser.js.map +1 -1
- package/dist/dashboard/project-manager.d.ts.map +1 -1
- package/dist/dashboard/project-manager.js +12 -1
- package/dist/dashboard/project-manager.js.map +1 -1
- package/dist/dashboard/watcher.d.ts.map +1 -1
- package/dist/dashboard/watcher.js +5 -4
- package/dist/dashboard/watcher.js.map +1 -1
- package/dist/markdown/templates/code-quality-reviewer-template.md +2 -0
- package/dist/markdown/templates/implementer-prompt-template.md +11 -0
- package/dist/markdown/templates/spec-reviewer-template.md +32 -0
- package/dist/markdown/templates/tasks-template.md +124 -138
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +94 -40
- package/dist/server.js.map +1 -1
- package/dist/tools/approvals.js +24 -3
- package/dist/tools/approvals.js.map +1 -1
- package/dist/tools/spec-workflow-guide.d.ts.map +1 -1
- package/dist/tools/spec-workflow-guide.js +64 -62
- package/dist/tools/spec-workflow-guide.js.map +1 -1
- package/dist/tools/steering-guide.d.ts.map +1 -1
- package/dist/tools/steering-guide.js +28 -26
- package/dist/tools/steering-guide.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-workflow-guide.js","sourceRoot":"","sources":["../../src/tools/spec-workflow-guide.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spec-workflow-guide.js","sourceRoot":"","sources":["../../src/tools/spec-workflow-guide.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,CAAC,MAAM,qBAAqB,GAAS;IACzC,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE;;;kXAGmW;IAChX,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,oBAAoB,EAAE,KAAK;KAC5B;IACD,WAAW,EAAE;QACX,KAAK,EAAE,qBAAqB;QAC5B,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,IAAS,EAAE,OAAoB;IAC5E,wDAAwD;IACxD,MAAM,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;QAC7C,kCAAkC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;QAC1D,gEAAgE,CAAC;IAEnE,OAAO;QACL,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,oEAAoE;QAC7E,IAAI,EAAE;YACJ,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC3E,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY;SAC3C;QACD,SAAS,EAAE;YACT,iEAAiE;YACjE,gDAAgD;YAChD,sCAAsC;YACtC,oBAAoB;YACpB,gBAAgB;SACjB;KACF,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,YAAo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;;;;;;;;;;;;;;;;;;;;;;;;;4DA2D6C,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B5D,EAAE;;;;;;;;;;;;;;;;;;;;OAoBG,CAAC;AACR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steering-guide.d.ts","sourceRoot":"","sources":["../../src/tools/steering-guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"steering-guide.d.ts","sourceRoot":"","sources":["../../src/tools/steering-guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGxD,eAAO,MAAM,iBAAiB,EAAE,IAe/B,CAAC;AAEF,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAgBjG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PathUtils } from '../core/path-utils.js';
|
|
1
2
|
export const steeringGuideTool = {
|
|
2
3
|
name: 'steering-guide',
|
|
3
4
|
description: `Load guide for creating project steering documents.
|
|
@@ -19,7 +20,7 @@ export async function steeringGuideHandler(args, context) {
|
|
|
19
20
|
success: true,
|
|
20
21
|
message: 'Steering workflow guide loaded - follow this workflow exactly to avoid errors',
|
|
21
22
|
data: {
|
|
22
|
-
guide: getSteeringGuide(),
|
|
23
|
+
guide: getSteeringGuide(PathUtils.getWorkflowRoot(context.projectPath)),
|
|
23
24
|
dashboardUrl: context.dashboardUrl
|
|
24
25
|
},
|
|
25
26
|
nextSteps: [
|
|
@@ -31,7 +32,8 @@ export async function steeringGuideHandler(args, context) {
|
|
|
31
32
|
]
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
function getSteeringGuide() {
|
|
35
|
+
function getSteeringGuide(workflowRoot) {
|
|
36
|
+
const wr = workflowRoot;
|
|
35
37
|
return `# Steering Workflow
|
|
36
38
|
|
|
37
39
|
## Overview
|
|
@@ -47,7 +49,7 @@ flowchart TD
|
|
|
47
49
|
%% Phase 1: Product
|
|
48
50
|
Guide --> P1_Template[Check user-templates first,<br/>then read template:<br/>product-template.md]
|
|
49
51
|
P1_Template --> P1_Generate[Generate vision & goals]
|
|
50
|
-
P1_Generate --> P1_Create[Create file:<br
|
|
52
|
+
P1_Generate --> P1_Create[Create file:<br/>${wr}/steering/<br/>product.md]
|
|
51
53
|
P1_Create --> P1_Approve[approvals<br/>action: request<br/>filePath only]
|
|
52
54
|
P1_Approve --> P1_Status[approvals<br/>action: status<br/>poll status]
|
|
53
55
|
P1_Status --> P1_Check{Status?}
|
|
@@ -59,7 +61,7 @@ flowchart TD
|
|
|
59
61
|
%% Phase 2: Tech
|
|
60
62
|
P1_Clean -->|success| P2_Template[Check user-templates first,<br/>then read template:<br/>tech-template.md]
|
|
61
63
|
P2_Template --> P2_Analyze[Analyze tech stack]
|
|
62
|
-
P2_Analyze --> P2_Create[Create file:<br
|
|
64
|
+
P2_Analyze --> P2_Create[Create file:<br/>${wr}/steering/<br/>tech.md]
|
|
63
65
|
P2_Create --> P2_Approve[approvals<br/>action: request<br/>filePath only]
|
|
64
66
|
P2_Approve --> P2_Status[approvals<br/>action: status<br/>poll status]
|
|
65
67
|
P2_Status --> P2_Check{Status?}
|
|
@@ -71,7 +73,7 @@ flowchart TD
|
|
|
71
73
|
%% Phase 3: Structure
|
|
72
74
|
P2_Clean -->|success| P3_Template[Check user-templates first,<br/>then read template:<br/>structure-template.md]
|
|
73
75
|
P3_Template --> P3_Analyze[Analyze codebase structure]
|
|
74
|
-
P3_Analyze --> P3_Create[Create file:<br
|
|
76
|
+
P3_Analyze --> P3_Create[Create file:<br/>${wr}/steering/<br/>structure.md]
|
|
75
77
|
P3_Create --> P3_Approve[approvals<br/>action: request<br/>filePath only]
|
|
76
78
|
P3_Approve --> P3_Status[approvals<br/>action: status<br/>poll status]
|
|
77
79
|
P3_Status --> P3_Check{Status?}
|
|
@@ -95,9 +97,9 @@ flowchart TD
|
|
|
95
97
|
**Purpose**: Define vision, goals, and user outcomes.
|
|
96
98
|
|
|
97
99
|
**File Operations**:
|
|
98
|
-
- Check for custom template:
|
|
99
|
-
- Read template:
|
|
100
|
-
- Create document:
|
|
100
|
+
- Check for custom template: \`${wr}/user-templates/product-template.md\`
|
|
101
|
+
- Read template: \`${wr}/templates/product-template.md\` (if no custom template)
|
|
102
|
+
- Create document: \`${wr}/steering/product.md\`
|
|
101
103
|
|
|
102
104
|
**Tools**:
|
|
103
105
|
- steering-guide: Load workflow instructions
|
|
@@ -105,10 +107,10 @@ flowchart TD
|
|
|
105
107
|
|
|
106
108
|
**Process**:
|
|
107
109
|
1. Load steering guide for workflow overview
|
|
108
|
-
2. Check for custom template at
|
|
109
|
-
3. If no custom template, read from
|
|
110
|
+
2. Check for custom template at \`${wr}/user-templates/product-template.md\`
|
|
111
|
+
3. If no custom template, read from \`${wr}/templates/product-template.md\`
|
|
110
112
|
4. Generate product vision and goals
|
|
111
|
-
5. Create \`product.md\` at
|
|
113
|
+
5. Create \`product.md\` at \`${wr}/steering/product.md\`
|
|
112
114
|
6. Request approval using approvals tool with action:'request' (filePath only)
|
|
113
115
|
7. Poll status using approvals with action:'status' until approved/needs-revision (NEVER accept verbal approval)
|
|
114
116
|
8. If needs-revision: update document using comments, create NEW approval, do NOT proceed
|
|
@@ -119,19 +121,19 @@ flowchart TD
|
|
|
119
121
|
**Purpose**: Document technology decisions and architecture.
|
|
120
122
|
|
|
121
123
|
**File Operations**:
|
|
122
|
-
- Check for custom template:
|
|
123
|
-
- Read template:
|
|
124
|
-
- Create document:
|
|
124
|
+
- Check for custom template: \`${wr}/user-templates/tech-template.md\`
|
|
125
|
+
- Read template: \`${wr}/templates/tech-template.md\` (if no custom template)
|
|
126
|
+
- Create document: \`${wr}/steering/tech.md\`
|
|
125
127
|
|
|
126
128
|
**Tools**:
|
|
127
129
|
- approvals: Manage approval workflow (actions: request, status, delete)
|
|
128
130
|
|
|
129
131
|
**Process**:
|
|
130
|
-
1. Check for custom template at
|
|
131
|
-
2. If no custom template, read from
|
|
132
|
+
1. Check for custom template at \`${wr}/user-templates/tech-template.md\`
|
|
133
|
+
2. If no custom template, read from \`${wr}/templates/tech-template.md\`
|
|
132
134
|
3. Analyze existing technology stack
|
|
133
135
|
4. Document architectural decisions and patterns
|
|
134
|
-
5. Create \`tech.md\` at
|
|
136
|
+
5. Create \`tech.md\` at \`${wr}/steering/tech.md\`
|
|
135
137
|
6. Request approval using approvals tool with action:'request'
|
|
136
138
|
7. Poll status using approvals with action:'status' until approved/needs-revision
|
|
137
139
|
8. If needs-revision: update document using comments, create NEW approval, do NOT proceed
|
|
@@ -142,19 +144,19 @@ flowchart TD
|
|
|
142
144
|
**Purpose**: Map codebase organization and patterns.
|
|
143
145
|
|
|
144
146
|
**File Operations**:
|
|
145
|
-
- Check for custom template:
|
|
146
|
-
- Read template:
|
|
147
|
-
- Create document:
|
|
147
|
+
- Check for custom template: \`${wr}/user-templates/structure-template.md\`
|
|
148
|
+
- Read template: \`${wr}/templates/structure-template.md\` (if no custom template)
|
|
149
|
+
- Create document: \`${wr}/steering/structure.md\`
|
|
148
150
|
|
|
149
151
|
**Tools**:
|
|
150
152
|
- approvals: Manage approval workflow (actions: request, status, delete)
|
|
151
153
|
|
|
152
154
|
**Process**:
|
|
153
|
-
1. Check for custom template at
|
|
154
|
-
2. If no custom template, read from
|
|
155
|
+
1. Check for custom template at \`${wr}/user-templates/structure-template.md\`
|
|
156
|
+
2. If no custom template, read from \`${wr}/templates/structure-template.md\`
|
|
155
157
|
3. Analyze directory structure and file organization
|
|
156
158
|
4. Document coding patterns and conventions
|
|
157
|
-
5. Create \`structure.md\` at
|
|
159
|
+
5. Create \`structure.md\` at \`${wr}/steering/structure.md\`
|
|
158
160
|
6. Request approval using approvals tool with action:'request'
|
|
159
161
|
7. Poll status using approvals with action:'status' until approved/needs-revision
|
|
160
162
|
8. If needs-revision: update document using comments, create NEW approval, do NOT proceed
|
|
@@ -165,8 +167,8 @@ flowchart TD
|
|
|
165
167
|
## Workflow Rules
|
|
166
168
|
|
|
167
169
|
- Create documents directly at specified file paths
|
|
168
|
-
- Check for custom templates in
|
|
169
|
-
- Read templates from
|
|
170
|
+
- Check for custom templates in \`${wr}/user-templates/\` first
|
|
171
|
+
- Read templates from \`${wr}/templates/\` directory if no custom template exists
|
|
170
172
|
- Follow exact template structures
|
|
171
173
|
- Get explicit user approval between phases (using approvals tool with action:'request')
|
|
172
174
|
- Complete phases in sequence (no skipping)
|
|
@@ -178,7 +180,7 @@ flowchart TD
|
|
|
178
180
|
|
|
179
181
|
## File Structure
|
|
180
182
|
\`\`\`
|
|
181
|
-
|
|
183
|
+
${wr}/
|
|
182
184
|
├── templates/ # Auto-populated on server start
|
|
183
185
|
│ ├── product-template.md
|
|
184
186
|
│ ├── tech-template.md
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steering-guide.js","sourceRoot":"","sources":["../../src/tools/steering-guide.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"steering-guide.js","sourceRoot":"","sources":["../../src/tools/steering-guide.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,CAAC,MAAM,iBAAiB,GAAS;IACrC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE;;;ySAG0R;IACvS,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,oBAAoB,EAAE,KAAK;KAC5B;IACD,WAAW,EAAE;QACX,KAAK,EAAE,gBAAgB;QACvB,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU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