fraim-framework 2.0.56 → 2.0.58

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 (224) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/bin/fraim-mcp.js +14 -0
  3. package/bin/fraim.js +23 -0
  4. package/dist/src/cli/commands/init-project.js +10 -4
  5. package/dist/src/cli/commands/mcp.js +65 -0
  6. package/dist/src/cli/setup/mcp-config-generator.js +19 -16
  7. package/dist/src/fraim/issue-tracking/ado-provider.js +304 -0
  8. package/dist/src/fraim/issue-tracking/factory.js +63 -0
  9. package/dist/src/fraim/issue-tracking/github-provider.js +200 -0
  10. package/dist/src/fraim/issue-tracking/types.js +7 -0
  11. package/dist/src/fraim/issue-tracking-config.js +83 -0
  12. package/dist/src/local-mcp-server/stdio-server.js +207 -0
  13. package/dist/src/utils/workflow-parser.js +81 -0
  14. package/package.json +17 -12
  15. package/registry/scripts/pdf-styles.css +172 -0
  16. package/registry/scripts/prep-issue.sh +46 -4
  17. package/registry/scripts/profile-server.ts +131 -130
  18. package/registry/stubs/workflows/customer-development/user-survey-dispatch.md +1 -1
  19. package/registry/stubs/workflows/customer-development/users-to-target.md +1 -1
  20. package/registry/stubs/workflows/product-building/design.md +1 -1
  21. package/registry/stubs/workflows/product-building/implement.md +1 -1
  22. package/Claude.md +0 -1
  23. package/dist/registry/ai-manager-rules/customer-development-phases/phase1-customer-profiling.md +0 -101
  24. package/dist/registry/ai-manager-rules/customer-development-phases/phase2-platform-discovery.md +0 -235
  25. package/dist/registry/ai-manager-rules/customer-development-phases/phase3-prospect-qualification.md +0 -243
  26. package/dist/registry/ai-manager-rules/customer-development-phases/phase4-inventory-compilation.md +0 -206
  27. package/dist/registry/ai-manager-rules/design-phases/design-completeness-review.md +0 -73
  28. package/dist/registry/ai-manager-rules/design-phases/design-design.md +0 -145
  29. package/dist/registry/ai-manager-rules/implement-phases/implement-code.md +0 -283
  30. package/dist/registry/ai-manager-rules/implement-phases/implement-completeness-review.md +0 -120
  31. package/dist/registry/ai-manager-rules/implement-phases/implement-regression.md +0 -173
  32. package/dist/registry/ai-manager-rules/implement-phases/implement-repro.md +0 -104
  33. package/dist/registry/ai-manager-rules/implement-phases/implement-scoping.md +0 -100
  34. package/dist/registry/ai-manager-rules/implement-phases/implement-smoke.md +0 -237
  35. package/dist/registry/ai-manager-rules/implement-phases/implement-spike.md +0 -121
  36. package/dist/registry/ai-manager-rules/implement-phases/implement-validate.md +0 -375
  37. package/dist/registry/ai-manager-rules/retrospective.md +0 -116
  38. package/dist/registry/ai-manager-rules/shared-phases/address-pr-feedback.md +0 -188
  39. package/dist/registry/ai-manager-rules/shared-phases/submit-pr.md +0 -202
  40. package/dist/registry/ai-manager-rules/shared-phases/wait-for-pr-review.md +0 -170
  41. package/dist/registry/ai-manager-rules/spec-phases/spec-competitor-analysis.md +0 -105
  42. package/dist/registry/ai-manager-rules/spec-phases/spec-completeness-review.md +0 -66
  43. package/dist/registry/ai-manager-rules/spec-phases/spec-spec.md +0 -139
  44. package/dist/registry/ai-manager-rules/user-survey-phases/phase1-survey-scoping.md +0 -60
  45. package/dist/registry/ai-manager-rules/user-survey-phases/phase2-survey-build-linkedin.md +0 -23
  46. package/dist/registry/ai-manager-rules/user-survey-phases/phase3-survey-build-reddit.md +0 -22
  47. package/dist/registry/ai-manager-rules/user-survey-phases/phase4-survey-build-x.md +0 -21
  48. package/dist/registry/ai-manager-rules/user-survey-phases/phase5-survey-build-facebook.md +0 -19
  49. package/dist/registry/ai-manager-rules/user-survey-phases/phase6-survey-build-custom.md +0 -15
  50. package/dist/registry/ai-manager-rules/user-survey-phases/phase7-survey-dispatch.md +0 -45
  51. package/dist/registry/providers/ado.json +0 -19
  52. package/dist/registry/providers/github.json +0 -19
  53. package/dist/registry/scripts/cleanup-branch.js +0 -287
  54. package/dist/registry/scripts/evaluate-code-quality.js +0 -66
  55. package/dist/registry/scripts/exec-with-timeout.js +0 -142
  56. package/dist/registry/scripts/generate-engagement-emails.js +0 -705
  57. package/dist/registry/scripts/newsletter-helpers.js +0 -671
  58. package/dist/registry/scripts/profile-server.js +0 -388
  59. package/dist/registry/scripts/run-thank-you-workflow.js +0 -92
  60. package/dist/registry/scripts/send-newsletter-simple.js +0 -85
  61. package/dist/registry/scripts/send-thank-you-emails.js +0 -54
  62. package/dist/registry/scripts/validate-openapi-limits.js +0 -311
  63. package/dist/registry/scripts/validate-test-coverage.js +0 -262
  64. package/dist/registry/scripts/verify-test-coverage.js +0 -66
  65. package/dist/registry/templates/bootstrap/ARCHITECTURE-TEMPLATE.md +0 -53
  66. package/dist/registry/templates/bootstrap/CODE-QUALITY-REPORT-TEMPLATE.md +0 -37
  67. package/dist/registry/templates/bootstrap/TEST-COVERAGE-REPORT-TEMPLATE.md +0 -35
  68. package/dist/registry/templates/business-development/IDEATION-REPORT-TEMPLATE.md +0 -29
  69. package/dist/registry/templates/business-development/PRICING-STRATEGY-TEMPLATE.md +0 -126
  70. package/dist/registry/templates/customer-development/customer-interview-template.md +0 -99
  71. package/dist/registry/templates/customer-development/customer-persona-template.md +0 -69
  72. package/dist/registry/templates/customer-development/follow-up-email-templates.md +0 -132
  73. package/dist/registry/templates/customer-development/insight-analysis-template.md +0 -74
  74. package/dist/registry/templates/customer-development/prospect-inventory-template.csv +0 -3
  75. package/dist/registry/templates/customer-development/search-strategy-template.md +0 -123
  76. package/dist/registry/templates/customer-development/strategic-recommendations-template.md +0 -53
  77. package/dist/registry/templates/customer-development/thank-you-email-template.html +0 -124
  78. package/dist/registry/templates/customer-development/thank-you-note-template.md +0 -16
  79. package/dist/registry/templates/customer-development/triage-log-template.md +0 -278
  80. package/dist/registry/templates/customer-development/weekly-newsletter-template.html +0 -204
  81. package/dist/registry/templates/evidence/Design-Evidence.md +0 -30
  82. package/dist/registry/templates/evidence/Implementation-BugEvidence.md +0 -94
  83. package/dist/registry/templates/evidence/Implementation-FeatureEvidence.md +0 -129
  84. package/dist/registry/templates/evidence/Spec-Evidence.md +0 -19
  85. package/dist/registry/templates/help/HelpNeeded.md +0 -14
  86. package/dist/registry/templates/legal/NDA-TEMPLATE.md +0 -170
  87. package/dist/registry/templates/legal/PATENT-TEMPLATE.md +0 -372
  88. package/dist/registry/templates/legal/TRADEMARK-TEMPLATE.md +0 -339
  89. package/dist/registry/templates/legal/contract-review-checklist.md +0 -193
  90. package/dist/registry/templates/legal/review-report-template.md +0 -198
  91. package/dist/registry/templates/legal/saas-terms-template.md +0 -174
  92. package/dist/registry/templates/legal/sow-template.md +0 -117
  93. package/dist/registry/templates/legal/template-variables.md +0 -131
  94. package/dist/registry/templates/marketing/DOMAIN-REGISTRATION-TEMPLATE.md +0 -194
  95. package/dist/registry/templates/marketing/HBR-ARTICLE-TEMPLATE.md +0 -66
  96. package/dist/registry/templates/marketing/STORYTELLING-TEMPLATE.md +0 -130
  97. package/dist/registry/templates/marketing/WEBSITE-TEMPLATE.md +0 -262
  98. package/dist/registry/templates/marketing/github-pages-workflow.yml +0 -64
  99. package/dist/registry/templates/replicate/implementation-checklist.md +0 -39
  100. package/dist/registry/templates/replicate/use-cases-template.md +0 -88
  101. package/dist/registry/templates/retrospective/RETROSPECTIVE-TEMPLATE.md +0 -55
  102. package/dist/registry/templates/specs/BUGSPEC-TEMPLATE.md +0 -37
  103. package/dist/registry/templates/specs/FEATURESPEC-TEMPLATE.md +0 -66
  104. package/dist/registry/templates/specs/TECHSPEC-TEMPLATE.md +0 -39
  105. package/dist/registry/workflows/bootstrap/create-architecture.md +0 -38
  106. package/dist/registry/workflows/bootstrap/detect-broken-windows.md +0 -300
  107. package/dist/registry/workflows/bootstrap/evaluate-code-quality.md +0 -35
  108. package/dist/registry/workflows/bootstrap/verify-test-coverage.md +0 -36
  109. package/dist/registry/workflows/brainstorming/blue-sky-brainstorming.md +0 -211
  110. package/dist/registry/workflows/brainstorming/codebase-brainstorming.md +0 -165
  111. package/dist/registry/workflows/business-development/create-business-plan.md +0 -737
  112. package/dist/registry/workflows/business-development/ideate-business-opportunity.md +0 -55
  113. package/dist/registry/workflows/business-development/price-product.md +0 -325
  114. package/dist/registry/workflows/compliance/detect-compliance-requirements.md +0 -78
  115. package/dist/registry/workflows/compliance/generate-audit-evidence.md +0 -75
  116. package/dist/registry/workflows/compliance/soc2-evidence-generator.md +0 -332
  117. package/dist/registry/workflows/customer-development/insight-analysis.md +0 -156
  118. package/dist/registry/workflows/customer-development/insight-triage.md +0 -938
  119. package/dist/registry/workflows/customer-development/interview-preparation.md +0 -452
  120. package/dist/registry/workflows/customer-development/linkedin-outreach.md +0 -593
  121. package/dist/registry/workflows/customer-development/strategic-brainstorming.md +0 -146
  122. package/dist/registry/workflows/customer-development/thank-customers.md +0 -203
  123. package/dist/registry/workflows/customer-development/user-survey-dispatch.md +0 -60
  124. package/dist/registry/workflows/customer-development/users-to-target.md +0 -112
  125. package/dist/registry/workflows/customer-development/weekly-newsletter.md +0 -366
  126. package/dist/registry/workflows/deploy/cloud-deployment.md +0 -310
  127. package/dist/registry/workflows/improve-fraim/contribute.md +0 -32
  128. package/dist/registry/workflows/improve-fraim/file-issue.md +0 -32
  129. package/dist/registry/workflows/learning/build-skillset.md +0 -212
  130. package/dist/registry/workflows/learning/synthesize-learnings.md +0 -284
  131. package/dist/registry/workflows/legal/contract-review-analysis.md +0 -382
  132. package/dist/registry/workflows/legal/nda.md +0 -69
  133. package/dist/registry/workflows/legal/patent-filing.md +0 -76
  134. package/dist/registry/workflows/legal/saas-contract-development.md +0 -213
  135. package/dist/registry/workflows/legal/trademark-filing.md +0 -77
  136. package/dist/registry/workflows/marketing/content-creation.md +0 -37
  137. package/dist/registry/workflows/marketing/convert-to-pdf.md +0 -235
  138. package/dist/registry/workflows/marketing/create-modern-website.md +0 -456
  139. package/dist/registry/workflows/marketing/domain-registration.md +0 -323
  140. package/dist/registry/workflows/marketing/hbr-article.md +0 -73
  141. package/dist/registry/workflows/marketing/launch-checklist.md +0 -37
  142. package/dist/registry/workflows/marketing/marketing-strategy.md +0 -45
  143. package/dist/registry/workflows/marketing/storytelling.md +0 -65
  144. package/dist/registry/workflows/performance/analyze-performance.md +0 -65
  145. package/dist/registry/workflows/product-building/design.md +0 -103
  146. package/dist/registry/workflows/product-building/implement.md +0 -74
  147. package/dist/registry/workflows/product-building/iterate-on-pr-comments.md +0 -70
  148. package/dist/registry/workflows/product-building/prep-issue.md +0 -41
  149. package/dist/registry/workflows/product-building/prototype.md +0 -65
  150. package/dist/registry/workflows/product-building/resolve.md +0 -168
  151. package/dist/registry/workflows/product-building/retrospect.md +0 -86
  152. package/dist/registry/workflows/product-building/spec.md +0 -181
  153. package/dist/registry/workflows/product-building/test.md +0 -125
  154. package/dist/registry/workflows/productivity-report/productivity-report.md +0 -263
  155. package/dist/registry/workflows/quality-assurance/browser-validation.md +0 -221
  156. package/dist/registry/workflows/quality-assurance/iterative-improvement-cycle.md +0 -562
  157. package/dist/registry/workflows/replicate/replicate-discovery.md +0 -336
  158. package/dist/registry/workflows/replicate/replicate-to-issues.md +0 -324
  159. package/dist/registry/workflows/reviewer/review-implementation-vs-design-spec.md +0 -638
  160. package/dist/registry/workflows/reviewer/review-implementation-vs-feature-spec.md +0 -675
  161. package/dist/registry/workflows/startup-credits/aws-activate-application.md +0 -535
  162. package/dist/registry/workflows/startup-credits/google-cloud-application.md +0 -647
  163. package/dist/registry/workflows/startup-credits/microsoft-azure-application.md +0 -538
  164. package/dist/scripts/build-stub-registry.js +0 -108
  165. package/dist/src/ai-manager/ai-manager.js +0 -480
  166. package/dist/src/ai-manager/phase-flow.js +0 -357
  167. package/dist/src/ai-manager/types.js +0 -5
  168. package/dist/src/fraim-mcp-server.js +0 -1885
  169. package/dist/tests/debug-tools.js +0 -80
  170. package/dist/tests/shared-server-utils.js +0 -57
  171. package/dist/tests/test-add-ide.js +0 -283
  172. package/dist/tests/test-ai-coach-edge-cases.js +0 -420
  173. package/dist/tests/test-ai-coach-mcp-integration.js +0 -450
  174. package/dist/tests/test-ai-coach-performance.js +0 -328
  175. package/dist/tests/test-ai-coach-phase-content.js +0 -264
  176. package/dist/tests/test-ai-coach-workflows.js +0 -514
  177. package/dist/tests/test-cli.js +0 -228
  178. package/dist/tests/test-client-scripts-validation.js +0 -167
  179. package/dist/tests/test-complete-setup-flow.js +0 -110
  180. package/dist/tests/test-config-system.js +0 -279
  181. package/dist/tests/test-debug-session.js +0 -134
  182. package/dist/tests/test-end-to-end-hybrid-validation.js +0 -328
  183. package/dist/tests/test-enhanced-session-init.js +0 -188
  184. package/dist/tests/test-first-run-journey.js +0 -368
  185. package/dist/tests/test-fraim-issues.js +0 -59
  186. package/dist/tests/test-genericization.js +0 -44
  187. package/dist/tests/test-hybrid-script-execution.js +0 -340
  188. package/dist/tests/test-ide-detector.js +0 -46
  189. package/dist/tests/test-improved-setup.js +0 -121
  190. package/dist/tests/test-mcp-config-generator.js +0 -99
  191. package/dist/tests/test-mcp-connection.js +0 -107
  192. package/dist/tests/test-mcp-issue-integration.js +0 -156
  193. package/dist/tests/test-mcp-lifecycle-methods.js +0 -240
  194. package/dist/tests/test-mcp-shared-server.js +0 -308
  195. package/dist/tests/test-mcp-template-processing.js +0 -160
  196. package/dist/tests/test-modular-issue-tracking.js +0 -165
  197. package/dist/tests/test-node-compatibility.js +0 -95
  198. package/dist/tests/test-npm-install.js +0 -68
  199. package/dist/tests/test-package-size.js +0 -108
  200. package/dist/tests/test-pr-review-workflow.js +0 -307
  201. package/dist/tests/test-prep-issue.js +0 -129
  202. package/dist/tests/test-productivity-integration.js +0 -157
  203. package/dist/tests/test-script-location-independence.js +0 -198
  204. package/dist/tests/test-script-sync.js +0 -557
  205. package/dist/tests/test-server-utils.js +0 -32
  206. package/dist/tests/test-session-rehydration.js +0 -148
  207. package/dist/tests/test-setup-integration.js +0 -98
  208. package/dist/tests/test-setup-scenarios.js +0 -322
  209. package/dist/tests/test-standalone.js +0 -143
  210. package/dist/tests/test-stub-registry.js +0 -136
  211. package/dist/tests/test-sync-stubs.js +0 -143
  212. package/dist/tests/test-sync-version-update.js +0 -93
  213. package/dist/tests/test-telemetry.js +0 -193
  214. package/dist/tests/test-token-validator.js +0 -30
  215. package/dist/tests/test-user-journey.js +0 -236
  216. package/dist/tests/test-users-to-target-workflow.js +0 -253
  217. package/dist/tests/test-utils.js +0 -109
  218. package/dist/tests/test-wizard.js +0 -71
  219. package/dist/tests/test-workflow-discovery.js +0 -242
  220. package/labels.json +0 -52
  221. package/registry/agent-guardrails.md +0 -63
  222. package/registry/fraim.md +0 -48
  223. package/setup.js +0 -171
  224. package/tsconfig.json +0 -23
@@ -1,328 +0,0 @@
1
- "use strict";
2
- /**
3
- * Performance and load tests for AI Coach
4
- * Tests system behavior under various load conditions
5
- */
6
- var __importDefault = (this && this.__importDefault) || function (mod) {
7
- return (mod && mod.__esModule) ? mod : { "default": mod };
8
- };
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- const node_test_1 = require("node:test");
11
- const node_assert_1 = __importDefault(require("node:assert"));
12
- const ai_manager_js_1 = require("../src/ai-manager/ai-manager.js");
13
- const fs_1 = require("fs");
14
- const path_1 = require("path");
15
- (0, node_test_1.describe)('AI Coach Performance Tests', () => {
16
- let coach;
17
- let fileIndex;
18
- (0, node_test_1.before)(() => {
19
- // Create a comprehensive file index
20
- fileIndex = new Map();
21
- const phaseFiles = [
22
- 'ai-manager-rules/shared-phases/submit-pr.md',
23
- 'ai-manager-rules/shared-phases/wait-for-pr-review.md',
24
- 'ai-manager-rules/implement-phases/implement-scoping.md',
25
- 'ai-manager-rules/implement-phases/implement-repro.md',
26
- 'ai-manager-rules/implement-phases/implement-spike.md',
27
- 'ai-manager-rules/implement-phases/implement-code.md',
28
- 'ai-manager-rules/implement-phases/implement-validate.md',
29
- 'ai-manager-rules/implement-phases/implement-smoke.md',
30
- 'ai-manager-rules/implement-phases/implement-regression.md',
31
- 'ai-manager-rules/implement-phases/implement-completeness-review.md',
32
- 'ai-manager-rules/spec-phases/spec-spec.md',
33
- 'ai-manager-rules/spec-phases/spec-completeness-review.md',
34
- 'ai-manager-rules/design-phases/design-design.md',
35
- 'ai-manager-rules/design-phases/design-completeness-review.md'
36
- ];
37
- phaseFiles.forEach(path => {
38
- const fullPath = (0, path_1.join)(process.cwd(), 'registry', path);
39
- if ((0, fs_1.existsSync)(fullPath)) {
40
- fileIndex.set(path, { fullPath });
41
- }
42
- });
43
- coach = new ai_manager_js_1.AICoach(fileIndex);
44
- });
45
- (0, node_test_1.describe)('Response Time Performance', () => {
46
- (0, node_test_1.it)('should respond to phase requests within reasonable time', async () => {
47
- const testCases = [
48
- { workflow: 'spec', phase: 'spec-spec' },
49
- { workflow: 'design', phase: 'design-design' },
50
- { workflow: 'implement', phase: 'implement-scoping' },
51
- { workflow: 'implement', phase: 'implement-code' }
52
- ];
53
- for (const testCase of testCases) {
54
- const startTime = Date.now();
55
- const result = await coach.handleCoachingRequest({
56
- workflowType: testCase.workflow,
57
- currentPhase: testCase.phase,
58
- status: 'starting',
59
- issueNumber: '123',
60
- evidence: { issueType: 'feature' }
61
- });
62
- const duration = Date.now() - startTime;
63
- node_assert_1.default.ok(typeof result === 'string');
64
- node_assert_1.default.ok(result.length > 0);
65
- node_assert_1.default.ok(duration < 1000, `${testCase.workflow}/${testCase.phase} should respond within 1 second (took ${duration}ms)`);
66
- }
67
- });
68
- (0, node_test_1.it)('should handle phase transitions efficiently', async () => {
69
- const startTime = Date.now();
70
- const result = await coach.handleCoachingRequest({
71
- workflowType: 'spec',
72
- currentPhase: 'spec-spec',
73
- status: 'complete',
74
- issueNumber: '123',
75
- evidence: { issueType: 'feature', specComplete: true }
76
- });
77
- const duration = Date.now() - startTime;
78
- node_assert_1.default.ok(result.includes('Next Phase: spec-competitor-analysis'));
79
- node_assert_1.default.ok(duration < 1000, `Phase transition should complete within 1 second (took ${duration}ms)`);
80
- });
81
- (0, node_test_1.it)('should handle completion messages efficiently', async () => {
82
- const startTime = Date.now();
83
- const result = await coach.handleCoachingRequest({
84
- workflowType: 'spec',
85
- currentPhase: 'retrospective',
86
- status: 'complete',
87
- issueNumber: '123',
88
- evidence: { issueType: 'feature', retrospectiveComplete: true }
89
- });
90
- const duration = Date.now() - startTime;
91
- node_assert_1.default.ok(result.includes('Spec Complete!'));
92
- node_assert_1.default.ok(duration < 1000, `Completion message should generate within 1 second (took ${duration}ms)`);
93
- });
94
- });
95
- (0, node_test_1.describe)('Load Testing', () => {
96
- (0, node_test_1.it)('should handle 100 concurrent requests', async () => {
97
- const concurrentRequests = 100;
98
- const startTime = Date.now();
99
- const requests = Array.from({ length: concurrentRequests }, (_, i) => coach.handleCoachingRequest({
100
- workflowType: 'spec',
101
- currentPhase: 'spec-spec',
102
- status: 'starting',
103
- issueNumber: `${i}`,
104
- evidence: { issueType: 'feature' }
105
- }));
106
- const results = await Promise.all(requests);
107
- const duration = Date.now() - startTime;
108
- // All requests should complete successfully
109
- node_assert_1.default.strictEqual(results.length, concurrentRequests);
110
- for (const result of results) {
111
- node_assert_1.default.ok(typeof result === 'string');
112
- node_assert_1.default.ok(result.length > 0);
113
- }
114
- console.log(`${concurrentRequests} concurrent requests completed in ${duration}ms`);
115
- node_assert_1.default.ok(duration < 10000, `${concurrentRequests} concurrent requests should complete within 10 seconds`);
116
- });
117
- (0, node_test_1.it)('should handle mixed workflow types under load', async () => {
118
- const requestsPerWorkflow = 25;
119
- const workflows = ['spec', 'design', 'implement'];
120
- const phases = ['spec-spec', 'design-design', 'implement-scoping'];
121
- const startTime = Date.now();
122
- const allRequests = workflows.flatMap((workflow, workflowIndex) => Array.from({ length: requestsPerWorkflow }, (_, i) => coach.handleCoachingRequest({
123
- workflowType: workflow,
124
- currentPhase: phases[workflowIndex],
125
- status: 'starting',
126
- issueNumber: `${workflowIndex}-${i}`,
127
- evidence: { issueType: 'feature' }
128
- })));
129
- const results = await Promise.all(allRequests);
130
- const duration = Date.now() - startTime;
131
- node_assert_1.default.strictEqual(results.length, requestsPerWorkflow * workflows.length);
132
- for (const result of results) {
133
- node_assert_1.default.ok(typeof result === 'string');
134
- node_assert_1.default.ok(result.length > 0);
135
- }
136
- console.log(`${results.length} mixed workflow requests completed in ${duration}ms`);
137
- node_assert_1.default.ok(duration < 15000, 'Mixed workflow load test should complete within 15 seconds');
138
- });
139
- (0, node_test_1.it)('should handle sequential high-frequency requests', async () => {
140
- const requestCount = 200;
141
- const startTime = Date.now();
142
- for (let i = 0; i < requestCount; i++) {
143
- const result = await coach.handleCoachingRequest({
144
- workflowType: 'spec',
145
- currentPhase: 'spec-spec',
146
- status: 'starting',
147
- issueNumber: `${i}`,
148
- evidence: { issueType: 'feature' }
149
- });
150
- node_assert_1.default.ok(typeof result === 'string');
151
- node_assert_1.default.ok(result.length > 0);
152
- }
153
- const duration = Date.now() - startTime;
154
- const avgResponseTime = duration / requestCount;
155
- console.log(`${requestCount} sequential requests completed in ${duration}ms (avg: ${avgResponseTime.toFixed(2)}ms per request)`);
156
- node_assert_1.default.ok(avgResponseTime < 50, 'Average response time should be under 50ms per request');
157
- });
158
- });
159
- (0, node_test_1.describe)('Memory Usage', () => {
160
- (0, node_test_1.it)('should not leak memory during repeated operations', async () => {
161
- const initialMemory = process.memoryUsage();
162
- // Perform many operations
163
- for (let i = 0; i < 1000; i++) {
164
- await coach.handleCoachingRequest({
165
- workflowType: 'spec',
166
- currentPhase: 'spec-spec',
167
- status: 'starting',
168
- issueNumber: `${i}`,
169
- evidence: { issueType: 'feature' }
170
- });
171
- // Occasionally force garbage collection if available
172
- if (i % 100 === 0 && global.gc) {
173
- global.gc();
174
- }
175
- }
176
- const finalMemory = process.memoryUsage();
177
- const memoryIncrease = finalMemory.heapUsed - initialMemory.heapUsed;
178
- const memoryIncreaseMB = memoryIncrease / (1024 * 1024);
179
- console.log(`Memory increase after 1000 operations: ${memoryIncreaseMB.toFixed(2)}MB`);
180
- // Memory increase should be reasonable (less than 50MB)
181
- node_assert_1.default.ok(memoryIncreaseMB < 50, 'Memory increase should be reasonable');
182
- });
183
- (0, node_test_1.it)('should handle large evidence objects efficiently', async () => {
184
- const largeEvidence = {
185
- issueType: 'feature',
186
- largeArray: Array.from({ length: 10000 }, (_, i) => ({
187
- id: i,
188
- data: `data-${i}`,
189
- metadata: {
190
- timestamp: Date.now(),
191
- tags: [`tag-${i % 10}`, `category-${i % 5}`]
192
- }
193
- }))
194
- };
195
- const startTime = Date.now();
196
- const result = await coach.handleCoachingRequest({
197
- workflowType: 'spec',
198
- currentPhase: 'spec-spec',
199
- status: 'starting',
200
- issueNumber: '123',
201
- evidence: largeEvidence
202
- });
203
- const duration = Date.now() - startTime;
204
- node_assert_1.default.ok(typeof result === 'string');
205
- node_assert_1.default.ok(result.length > 0);
206
- node_assert_1.default.ok(duration < 2000, `Large evidence handling should complete within 2 seconds (took ${duration}ms)`);
207
- });
208
- });
209
- (0, node_test_1.describe)('File System Performance', () => {
210
- (0, node_test_1.it)('should cache file reads efficiently', async () => {
211
- // First request (cold cache)
212
- const startTime1 = Date.now();
213
- const result1 = await coach.handleCoachingRequest({
214
- workflowType: 'spec',
215
- currentPhase: 'spec-spec',
216
- status: 'starting',
217
- issueNumber: '123',
218
- evidence: { issueType: 'feature' }
219
- });
220
- const duration1 = Date.now() - startTime1;
221
- // Second request (warm cache)
222
- const startTime2 = Date.now();
223
- const result2 = await coach.handleCoachingRequest({
224
- workflowType: 'spec',
225
- currentPhase: 'spec-spec',
226
- status: 'starting',
227
- issueNumber: '456',
228
- evidence: { issueType: 'feature' }
229
- });
230
- const duration2 = Date.now() - startTime2;
231
- node_assert_1.default.ok(typeof result1 === 'string');
232
- node_assert_1.default.ok(typeof result2 === 'string');
233
- console.log(`First request: ${duration1}ms, Second request: ${duration2}ms`);
234
- // Second request should be faster or similar (file system caching)
235
- // Allow some variance due to system factors
236
- node_assert_1.default.ok(duration2 <= duration1 * 2, 'Subsequent requests should benefit from caching');
237
- });
238
- (0, node_test_1.it)('should handle multiple different phase files efficiently', async () => {
239
- const phases = [
240
- { workflow: 'spec', phase: 'spec-spec' },
241
- { workflow: 'spec', phase: 'spec-completeness-review' },
242
- { workflow: 'design', phase: 'design-design' },
243
- { workflow: 'design', phase: 'design-completeness-review' },
244
- { workflow: 'implement', phase: 'implement-scoping' },
245
- { workflow: 'implement', phase: 'implement-code' }
246
- ];
247
- const startTime = Date.now();
248
- for (const { workflow, phase } of phases) {
249
- const result = await coach.handleCoachingRequest({
250
- workflowType: workflow,
251
- currentPhase: phase,
252
- status: 'starting',
253
- issueNumber: '123',
254
- evidence: { issueType: 'feature' }
255
- });
256
- node_assert_1.default.ok(typeof result === 'string');
257
- node_assert_1.default.ok(result.length > 0);
258
- }
259
- const duration = Date.now() - startTime;
260
- const avgTimePerFile = duration / phases.length;
261
- console.log(`${phases.length} different phase files loaded in ${duration}ms (avg: ${avgTimePerFile.toFixed(2)}ms per file)`);
262
- node_assert_1.default.ok(avgTimePerFile < 200, 'Average file load time should be under 200ms');
263
- });
264
- });
265
- (0, node_test_1.describe)('Scalability Tests', () => {
266
- (0, node_test_1.it)('should maintain performance with increasing request complexity', async () => {
267
- const complexityLevels = [
268
- { name: 'simple', evidence: { issueType: 'feature' } },
269
- { name: 'medium', evidence: {
270
- issueType: 'feature',
271
- metadata: { tags: ['tag1', 'tag2'], priority: 'high' }
272
- } },
273
- { name: 'complex', evidence: {
274
- issueType: 'feature',
275
- metadata: {
276
- tags: Array.from({ length: 100 }, (_, i) => `tag-${i}`),
277
- priority: 'high',
278
- history: Array.from({ length: 50 }, (_, i) => ({
279
- timestamp: Date.now() - i * 1000,
280
- action: `action-${i}`
281
- }))
282
- }
283
- } }
284
- ];
285
- for (const level of complexityLevels) {
286
- const startTime = Date.now();
287
- const result = await coach.handleCoachingRequest({
288
- workflowType: 'spec',
289
- currentPhase: 'spec-spec',
290
- status: 'starting',
291
- issueNumber: '123',
292
- evidence: level.evidence
293
- });
294
- const duration = Date.now() - startTime;
295
- node_assert_1.default.ok(typeof result === 'string');
296
- node_assert_1.default.ok(result.length > 0);
297
- console.log(`${level.name} complexity request: ${duration}ms`);
298
- node_assert_1.default.ok(duration < 1000, `${level.name} complexity should complete within 1 second`);
299
- }
300
- });
301
- (0, node_test_1.it)('should handle burst traffic patterns', async () => {
302
- // Simulate burst traffic: many requests in short time, then quiet period
303
- const burstSize = 50;
304
- const burstCount = 3;
305
- for (let burst = 0; burst < burstCount; burst++) {
306
- const startTime = Date.now();
307
- const requests = Array.from({ length: burstSize }, (_, i) => coach.handleCoachingRequest({
308
- workflowType: 'spec',
309
- currentPhase: 'spec-spec',
310
- status: 'starting',
311
- issueNumber: `burst-${burst}-${i}`,
312
- evidence: { issueType: 'feature' }
313
- }));
314
- const results = await Promise.all(requests);
315
- const duration = Date.now() - startTime;
316
- node_assert_1.default.strictEqual(results.length, burstSize);
317
- for (const result of results) {
318
- node_assert_1.default.ok(typeof result === 'string');
319
- node_assert_1.default.ok(result.length > 0);
320
- }
321
- console.log(`Burst ${burst + 1}: ${burstSize} requests in ${duration}ms`);
322
- node_assert_1.default.ok(duration < 5000, `Burst ${burst + 1} should complete within 5 seconds`);
323
- // Brief pause between bursts
324
- await new Promise(resolve => setTimeout(resolve, 100));
325
- }
326
- });
327
- });
328
- });
@@ -1,264 +0,0 @@
1
- "use strict";
2
- /**
3
- * Tests for AI Coach phase content validation
4
- * Ensures all phase files have proper structure and required content
5
- */
6
- var __importDefault = (this && this.__importDefault) || function (mod) {
7
- return (mod && mod.__esModule) ? mod : { "default": mod };
8
- };
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- const node_test_1 = require("node:test");
11
- const node_assert_1 = __importDefault(require("node:assert"));
12
- const fs_1 = require("fs");
13
- const path_1 = require("path");
14
- (0, node_test_1.describe)('AI Coach Phase Content Validation', () => {
15
- const registryPath = (0, path_1.join)(process.cwd(), 'registry', 'ai-manager-rules');
16
- (0, node_test_1.describe)('Phase File Structure', () => {
17
- (0, node_test_1.it)('should have all required phase directories', () => {
18
- const requiredDirs = [
19
- 'implement-phases',
20
- 'spec-phases',
21
- 'design-phases',
22
- 'shared-phases'
23
- ];
24
- for (const dir of requiredDirs) {
25
- const dirPath = (0, path_1.join)(registryPath, dir);
26
- node_assert_1.default.ok((0, fs_1.existsSync)(dirPath), `Directory should exist: ${dir}`);
27
- }
28
- });
29
- (0, node_test_1.it)('should have all required implement phase files', () => {
30
- const implementPhasesDir = (0, path_1.join)(registryPath, 'implement-phases');
31
- const requiredFiles = [
32
- 'implement-scoping.md',
33
- 'implement-repro.md',
34
- 'implement-spike.md',
35
- 'implement-code.md',
36
- 'implement-validate.md',
37
- 'implement-smoke.md',
38
- 'implement-regression.md',
39
- 'implement-completeness-review.md'
40
- ];
41
- for (const file of requiredFiles) {
42
- const filePath = (0, path_1.join)(implementPhasesDir, file);
43
- node_assert_1.default.ok((0, fs_1.existsSync)(filePath), `Implement phase file should exist: ${file}`);
44
- }
45
- });
46
- (0, node_test_1.it)('should have all required spec phase files', () => {
47
- const specPhasesDir = (0, path_1.join)(registryPath, 'spec-phases');
48
- const requiredFiles = [
49
- 'spec-spec.md',
50
- 'spec-completeness-review.md'
51
- ];
52
- for (const file of requiredFiles) {
53
- const filePath = (0, path_1.join)(specPhasesDir, file);
54
- node_assert_1.default.ok((0, fs_1.existsSync)(filePath), `Spec phase file should exist: ${file}`);
55
- }
56
- });
57
- (0, node_test_1.it)('should have all required design phase files', () => {
58
- const designPhasesDir = (0, path_1.join)(registryPath, 'design-phases');
59
- const requiredFiles = [
60
- 'design-design.md',
61
- 'design-completeness-review.md'
62
- ];
63
- for (const file of requiredFiles) {
64
- const filePath = (0, path_1.join)(designPhasesDir, file);
65
- node_assert_1.default.ok((0, fs_1.existsSync)(filePath), `Design phase file should exist: ${file}`);
66
- }
67
- });
68
- (0, node_test_1.it)('should have all required shared phase files', () => {
69
- const sharedPhasesDir = (0, path_1.join)(registryPath, 'shared-phases');
70
- const requiredFiles = [
71
- 'submit-pr.md',
72
- 'wait-for-pr-review.md'
73
- ];
74
- for (const file of requiredFiles) {
75
- const filePath = (0, path_1.join)(sharedPhasesDir, file);
76
- node_assert_1.default.ok((0, fs_1.existsSync)(filePath), `Shared phase file should exist: ${file}`);
77
- }
78
- });
79
- });
80
- (0, node_test_1.describe)('Phase File Content Structure', () => {
81
- function validatePhaseFileContent(filePath, expectedPhase) {
82
- const content = (0, fs_1.readFileSync)(filePath, 'utf8');
83
- // Check required sections
84
- node_assert_1.default.ok(content.includes('# Phase:'), `File should have phase header: ${filePath}`);
85
- node_assert_1.default.ok(content.includes('## INTENT'), `File should have INTENT section: ${filePath}`);
86
- node_assert_1.default.ok(content.includes('## OUTCOME'), `File should have OUTCOME section: ${filePath}`);
87
- node_assert_1.default.ok(content.includes('## WORKFLOW') || content.includes('## PRINCIPLES'), `File should have WORKFLOW or PRINCIPLES section: ${filePath}`);
88
- node_assert_1.default.ok(content.includes('## VALIDATION'), `File should have VALIDATION section: ${filePath}`);
89
- // Check validation subsections
90
- node_assert_1.default.ok(content.includes('### Phase Complete When:'), `File should have completion criteria: ${filePath}`);
91
- node_assert_1.default.ok(content.includes('### Report Back:') || content.includes('### Phase Incomplete If:'), `File should have reporting instructions: ${filePath}`);
92
- // Check for seekCoachingOnNextStep call
93
- node_assert_1.default.ok(content.includes('seekCoachingOnNextStep'), `File should include seekCoachingOnNextStep call: ${filePath}`);
94
- // Verify phase name in header matches expected
95
- const headerMatch = content.match(/# Phase: (.+)/);
96
- node_assert_1.default.ok(headerMatch, `File should have proper phase header: ${filePath}`);
97
- const actualPhase = headerMatch[1].trim();
98
- node_assert_1.default.ok(actualPhase.toLowerCase().includes(expectedPhase.toLowerCase()) ||
99
- expectedPhase.toLowerCase().includes(actualPhase.toLowerCase()), `Phase header "${actualPhase}" should match expected "${expectedPhase}" in ${filePath}`);
100
- }
101
- (0, node_test_1.it)('should validate all implement phase files have proper structure', () => {
102
- const implementPhasesDir = (0, path_1.join)(registryPath, 'implement-phases');
103
- const files = (0, fs_1.readdirSync)(implementPhasesDir).filter(f => f.endsWith('.md'));
104
- for (const file of files) {
105
- const filePath = (0, path_1.join)(implementPhasesDir, file);
106
- const expectedPhase = file.replace('.md', '');
107
- validatePhaseFileContent(filePath, expectedPhase);
108
- }
109
- });
110
- (0, node_test_1.it)('should validate all spec phase files have proper structure', () => {
111
- const specPhasesDir = (0, path_1.join)(registryPath, 'spec-phases');
112
- const files = (0, fs_1.readdirSync)(specPhasesDir).filter(f => f.endsWith('.md'));
113
- for (const file of files) {
114
- const filePath = (0, path_1.join)(specPhasesDir, file);
115
- const expectedPhase = file.replace('.md', '');
116
- validatePhaseFileContent(filePath, expectedPhase);
117
- }
118
- });
119
- (0, node_test_1.it)('should validate all design phase files have proper structure', () => {
120
- const designPhasesDir = (0, path_1.join)(registryPath, 'design-phases');
121
- const files = (0, fs_1.readdirSync)(designPhasesDir).filter(f => f.endsWith('.md'));
122
- for (const file of files) {
123
- const filePath = (0, path_1.join)(designPhasesDir, file);
124
- const expectedPhase = file.replace('.md', '');
125
- validatePhaseFileContent(filePath, expectedPhase);
126
- }
127
- });
128
- (0, node_test_1.it)('should validate shared phase files have proper structure', () => {
129
- const sharedFiles = ['submit-pr.md', 'wait-for-pr-review.md'];
130
- for (const file of sharedFiles) {
131
- const filePath = (0, path_1.join)(registryPath, 'shared-phases', file);
132
- const expectedPhase = file.replace('.md', '');
133
- validatePhaseFileContent(filePath, expectedPhase);
134
- }
135
- });
136
- });
137
- (0, node_test_1.describe)('Phase File Naming Consistency', () => {
138
- (0, node_test_1.it)('should have consistent implement phase naming', () => {
139
- const implementPhasesDir = (0, path_1.join)(registryPath, 'implement-phases');
140
- const files = (0, fs_1.readdirSync)(implementPhasesDir).filter(f => f.endsWith('.md'));
141
- for (const file of files) {
142
- node_assert_1.default.ok(file.startsWith('implement-'), `Implement phase file should start with 'implement-': ${file}`);
143
- node_assert_1.default.ok(file.endsWith('.md'), `Implement phase file should end with '.md': ${file}`);
144
- // Check that phase name in file matches filename
145
- const content = (0, fs_1.readFileSync)((0, path_1.join)(implementPhasesDir, file), 'utf8');
146
- const expectedPhase = file.replace('.md', '');
147
- // Allow for some flexibility in header format
148
- const hasCorrectHeader = content.includes(`# Phase: ${expectedPhase}`) ||
149
- content.includes(`# Phase: Implement-`) ||
150
- content.includes(`# Phase: ${expectedPhase.replace('implement-', '').charAt(0).toUpperCase() + expectedPhase.replace('implement-', '').slice(1)}`);
151
- node_assert_1.default.ok(hasCorrectHeader, `Phase file header should match filename for: ${file}`);
152
- }
153
- });
154
- (0, node_test_1.it)('should have consistent spec phase naming', () => {
155
- const specPhasesDir = (0, path_1.join)(registryPath, 'spec-phases');
156
- const files = (0, fs_1.readdirSync)(specPhasesDir).filter(f => f.endsWith('.md'));
157
- for (const file of files) {
158
- node_assert_1.default.ok(file.startsWith('spec-'), `Spec phase file should start with 'spec-': ${file}`);
159
- const content = (0, fs_1.readFileSync)((0, path_1.join)(specPhasesDir, file), 'utf8');
160
- const expectedPhase = file.replace('.md', '');
161
- const hasCorrectHeader = content.includes(`# Phase: ${expectedPhase}`) ||
162
- content.includes(`# Phase: Spec-`) ||
163
- content.includes(`# Phase: Spec `);
164
- node_assert_1.default.ok(hasCorrectHeader, `Phase file header should match filename for: ${file}`);
165
- }
166
- });
167
- (0, node_test_1.it)('should have consistent design phase naming', () => {
168
- const designPhasesDir = (0, path_1.join)(registryPath, 'design-phases');
169
- const files = (0, fs_1.readdirSync)(designPhasesDir).filter(f => f.endsWith('.md'));
170
- for (const file of files) {
171
- node_assert_1.default.ok(file.startsWith('design-'), `Design phase file should start with 'design-': ${file}`);
172
- const content = (0, fs_1.readFileSync)((0, path_1.join)(designPhasesDir, file), 'utf8');
173
- const expectedPhase = file.replace('.md', '');
174
- const hasCorrectHeader = content.includes(`# Phase: ${expectedPhase}`) ||
175
- content.includes(`# Phase: Design-`) ||
176
- content.includes(`# Phase: Design `);
177
- node_assert_1.default.ok(hasCorrectHeader, `Phase file header should match filename for: ${file}`);
178
- }
179
- });
180
- });
181
- (0, node_test_1.describe)('Phase Content Quality', () => {
182
- (0, node_test_1.it)('should have meaningful content in all phase files', () => {
183
- const allDirs = ['implement-phases', 'spec-phases', 'design-phases', 'shared-phases'];
184
- for (const dir of allDirs) {
185
- const dirPath = (0, path_1.join)(registryPath, dir);
186
- const files = (0, fs_1.readdirSync)(dirPath).filter(f => f.endsWith('.md'));
187
- for (const file of files) {
188
- const filePath = (0, path_1.join)(dirPath, file);
189
- const content = (0, fs_1.readFileSync)(filePath, 'utf8');
190
- // Check minimum content length
191
- node_assert_1.default.ok(content.length > 500, `Phase file should have substantial content: ${file}`);
192
- // Check for placeholder text
193
- node_assert_1.default.ok(!content.includes('TODO'), `Phase file should not contain TODO placeholders: ${file}`);
194
- node_assert_1.default.ok(!content.includes('FIXME'), `Phase file should not contain FIXME placeholders: ${file}`);
195
- node_assert_1.default.ok(!content.includes('[PLACEHOLDER]'), `Phase file should not contain placeholder text: ${file}`);
196
- // Check for proper seekCoachingOnNextStep usage
197
- const seekCalls = content.match(/seekCoachingOnNextStep/g);
198
- node_assert_1.default.ok(seekCalls && seekCalls.length >= 1, `Phase file should have at least one seekCoachingOnNextStep call: ${file}`);
199
- // Check that currentPhase parameter matches file
200
- const expectedPhase = file.replace('.md', '');
201
- const phaseParamMatch = content.match(/currentPhase:\s*["']([^"']+)["']/);
202
- if (phaseParamMatch) {
203
- const actualPhase = phaseParamMatch[1];
204
- node_assert_1.default.strictEqual(actualPhase, expectedPhase, `currentPhase parameter should match filename in ${file}`);
205
- }
206
- }
207
- }
208
- });
209
- (0, node_test_1.it)('should have consistent workflow type references', () => {
210
- const workflowDirs = [
211
- { dir: 'implement-phases', expectedWorkflow: 'implement' },
212
- { dir: 'spec-phases', expectedWorkflow: 'spec' },
213
- { dir: 'design-phases', expectedWorkflow: 'design' }
214
- ];
215
- for (const { dir, expectedWorkflow } of workflowDirs) {
216
- const dirPath = (0, path_1.join)(registryPath, dir);
217
- const files = (0, fs_1.readdirSync)(dirPath).filter(f => f.endsWith('.md'));
218
- for (const file of files) {
219
- const filePath = (0, path_1.join)(dirPath, file);
220
- const content = (0, fs_1.readFileSync)(filePath, 'utf8');
221
- // Check workflowType parameter in seekCoachingOnNextStep calls
222
- const workflowMatches = content.match(/workflowType:\s*["']([^"']+)["']/g);
223
- if (workflowMatches) {
224
- for (const match of workflowMatches) {
225
- const workflowType = match.match(/["']([^"']+)["']/)?.[1];
226
- node_assert_1.default.strictEqual(workflowType, expectedWorkflow, `workflowType should be "${expectedWorkflow}" in ${file}`);
227
- }
228
- }
229
- }
230
- }
231
- });
232
- });
233
- (0, node_test_1.describe)('Shared Phase Consistency', () => {
234
- (0, node_test_1.it)('should have only shared phases in shared-phases directory', () => {
235
- // Check that submit-pr and wait-for-pr-review exist in shared-phases
236
- const sharedSubmitPr = (0, path_1.join)(registryPath, 'shared-phases', 'submit-pr.md');
237
- const sharedWaitForReview = (0, path_1.join)(registryPath, 'shared-phases', 'wait-for-pr-review.md');
238
- node_assert_1.default.ok((0, fs_1.existsSync)(sharedSubmitPr), 'Shared submit-pr should exist');
239
- node_assert_1.default.ok((0, fs_1.existsSync)(sharedWaitForReview), 'Shared wait-for-pr-review should exist');
240
- // Check that no other directories have these files
241
- const otherDirs = ['implement-phases', 'spec-phases', 'design-phases'];
242
- for (const dir of otherDirs) {
243
- const dirPath = (0, path_1.join)(registryPath, dir);
244
- const submitPrFile = (0, path_1.join)(dirPath, 'submit-pr.md');
245
- const waitForReviewFile = (0, path_1.join)(dirPath, 'wait-for-pr-review.md');
246
- node_assert_1.default.ok(!(0, fs_1.existsSync)(submitPrFile), `submit-pr should not exist in ${dir} - should only be in shared-phases`);
247
- node_assert_1.default.ok(!(0, fs_1.existsSync)(waitForReviewFile), `wait-for-pr-review should not exist in ${dir} - should only be in shared-phases`);
248
- }
249
- });
250
- (0, node_test_1.it)('should have workflow-agnostic shared phase content', () => {
251
- const sharedFiles = ['submit-pr.md', 'wait-for-pr-review.md'];
252
- for (const file of sharedFiles) {
253
- const filePath = (0, path_1.join)(registryPath, 'shared-phases', file);
254
- const content = (0, fs_1.readFileSync)(filePath, 'utf8');
255
- // Should contain generic workflow references
256
- node_assert_1.default.ok(content.includes('{workflow_type}') || content.includes('workflow'), `${file} should reference workflows generically`);
257
- // Should not contain workflow-specific content
258
- node_assert_1.default.ok(!content.includes('implement-specific'), `${file} should not contain implement-specific content`);
259
- node_assert_1.default.ok(!content.includes('spec-specific'), `${file} should not contain spec-specific content`);
260
- node_assert_1.default.ok(!content.includes('design-specific'), `${file} should not contain design-specific content`);
261
- }
262
- });
263
- });
264
- });