specsmd 0.0.0-dev.9 → 0.0.0-dev.90

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 (146) hide show
  1. package/README.md +190 -224
  2. package/bin/cli.js +28 -1
  3. package/flows/aidlc/commands/construction-agent.md +5 -1
  4. package/flows/aidlc/commands/inception-agent.md +4 -0
  5. package/flows/aidlc/commands/master-agent.md +4 -0
  6. package/flows/aidlc/commands/operations-agent.md +4 -0
  7. package/flows/aidlc/memory-bank.yaml +2 -1
  8. package/{scripts/artifact-validator.js → flows/aidlc/scripts/artifact-validator.cjs} +3 -3
  9. package/{scripts/bolt-complete.js → flows/aidlc/scripts/bolt-complete.cjs} +36 -5
  10. package/{scripts/status-integrity.js → flows/aidlc/scripts/status-integrity.cjs} +5 -5
  11. package/flows/aidlc/skills/construction/bolt-list.md +1 -1
  12. package/flows/aidlc/skills/construction/bolt-start.md +3 -3
  13. package/flows/aidlc/skills/construction/bolt-status.md +1 -1
  14. package/flows/aidlc/skills/construction/prototype-apply.md +311 -0
  15. package/flows/aidlc/skills/inception/vibe-to-spec.md +410 -0
  16. package/flows/aidlc/skills/master/analyze-context.md +1 -1
  17. package/flows/aidlc/templates/construction/bolt-template.md +2 -2
  18. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +73 -11
  19. package/flows/aidlc/templates/standards/decision-index-template.md +32 -0
  20. package/flows/fire/README.md +19 -0
  21. package/flows/fire/agents/builder/agent.md +260 -0
  22. package/flows/fire/agents/builder/skills/code-review/SKILL.md +257 -0
  23. package/flows/fire/agents/builder/skills/code-review/references/auto-fix-rules.md +218 -0
  24. package/flows/fire/agents/builder/skills/code-review/references/review-categories.md +154 -0
  25. package/flows/fire/agents/builder/skills/code-review/templates/review-report.md.hbs +120 -0
  26. package/flows/fire/agents/builder/skills/run-execute/SKILL.md +714 -0
  27. package/flows/fire/agents/builder/skills/run-execute/scripts/complete-run.cjs +800 -0
  28. package/flows/fire/agents/builder/skills/run-execute/scripts/init-run.cjs +500 -0
  29. package/flows/fire/agents/builder/skills/run-execute/scripts/update-checkpoint.cjs +254 -0
  30. package/flows/fire/agents/builder/skills/run-execute/scripts/update-phase.cjs +250 -0
  31. package/flows/fire/agents/builder/skills/run-execute/templates/plan.md.hbs +61 -0
  32. package/flows/fire/agents/builder/skills/run-execute/templates/test-report.md.hbs +81 -0
  33. package/flows/fire/agents/builder/skills/run-plan/SKILL.md +378 -0
  34. package/flows/fire/agents/builder/skills/run-status/SKILL.md +96 -0
  35. package/flows/fire/agents/builder/skills/walkthrough-generate/SKILL.md +267 -0
  36. package/flows/fire/agents/builder/skills/walkthrough-generate/templates/walkthrough.md.hbs +176 -0
  37. package/flows/fire/agents/orchestrator/agent.md +144 -0
  38. package/flows/fire/agents/orchestrator/skills/project-init/SKILL.md +226 -0
  39. package/flows/fire/agents/orchestrator/skills/project-init/templates/coding-standards.md.hbs +149 -0
  40. package/flows/fire/agents/orchestrator/skills/project-init/templates/constitution.md.hbs +43 -0
  41. package/flows/fire/agents/orchestrator/skills/project-init/templates/system-architecture.md.hbs +101 -0
  42. package/flows/fire/agents/orchestrator/skills/project-init/templates/tech-stack.md.hbs +136 -0
  43. package/flows/fire/agents/orchestrator/skills/project-init/templates/testing-standards.md.hbs +94 -0
  44. package/flows/fire/agents/orchestrator/skills/route/SKILL.md +146 -0
  45. package/flows/fire/agents/orchestrator/skills/status/SKILL.md +696 -0
  46. package/flows/fire/agents/planner/agent.md +143 -0
  47. package/flows/fire/agents/planner/skills/design-doc-generate/SKILL.md +156 -0
  48. package/flows/fire/agents/planner/skills/design-doc-generate/templates/design.md.hbs +124 -0
  49. package/flows/fire/agents/planner/skills/intent-capture/SKILL.md +125 -0
  50. package/flows/fire/agents/planner/skills/intent-capture/templates/brief.md.hbs +40 -0
  51. package/flows/fire/agents/planner/skills/work-item-decompose/SKILL.md +166 -0
  52. package/flows/fire/agents/planner/skills/work-item-decompose/templates/work-item.md.hbs +40 -0
  53. package/flows/fire/commands/fire-builder.md +56 -0
  54. package/flows/fire/commands/fire-planner.md +48 -0
  55. package/flows/fire/commands/fire.md +46 -0
  56. package/flows/fire/memory-bank.yaml +240 -0
  57. package/flows/fire/quick-start.md +146 -0
  58. package/flows/ideation/README.md +35 -0
  59. package/flows/ideation/agents/orchestrator/agent.md +103 -0
  60. package/flows/ideation/agents/orchestrator/skills/flame/SKILL.md +132 -0
  61. package/flows/ideation/agents/orchestrator/skills/flame/references/evaluation-criteria.md +81 -0
  62. package/flows/ideation/agents/orchestrator/skills/flame/references/six-hats-method.md +87 -0
  63. package/flows/ideation/agents/orchestrator/skills/flame/templates/flame-report.md.hbs +81 -0
  64. package/flows/ideation/agents/orchestrator/skills/forge/SKILL.md +153 -0
  65. package/flows/ideation/agents/orchestrator/skills/forge/references/disney-method.md +94 -0
  66. package/flows/ideation/agents/orchestrator/skills/forge/references/pitch-framework.md +87 -0
  67. package/flows/ideation/agents/orchestrator/skills/forge/templates/concept-brief.md.hbs +83 -0
  68. package/flows/ideation/agents/orchestrator/skills/spark/SKILL.md +152 -0
  69. package/flows/ideation/agents/orchestrator/skills/spark/references/anti-bias.md +43 -0
  70. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/analogy.md +60 -0
  71. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/first-principles.md +56 -0
  72. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/index.yaml +76 -0
  73. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/inversion.md +52 -0
  74. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/questorming.md +57 -0
  75. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/random-word.md +35 -0
  76. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/scamper.md +67 -0
  77. package/flows/ideation/agents/orchestrator/skills/spark/references/techniques/what-if.md +55 -0
  78. package/flows/ideation/agents/orchestrator/skills/spark/templates/spark-bank.md.hbs +72 -0
  79. package/flows/ideation/commands/flame.md +43 -0
  80. package/flows/ideation/commands/forge.md +43 -0
  81. package/flows/ideation/commands/ideation.md +51 -0
  82. package/flows/ideation/commands/spark.md +43 -0
  83. package/flows/ideation/memory-bank.yaml +177 -0
  84. package/flows/ideation/quick-start.md +84 -0
  85. package/flows/ideation/shared/protocols/anti-bias.md +79 -0
  86. package/flows/ideation/shared/protocols/deep-thinking.md +92 -0
  87. package/flows/ideation/shared/protocols/diverge-converge.md +72 -0
  88. package/flows/ideation/shared/protocols/interaction-adaptation.md +88 -0
  89. package/flows/simple/README.md +190 -0
  90. package/flows/simple/agents/agent.md +404 -0
  91. package/flows/simple/commands/agent.md +60 -0
  92. package/flows/simple/context-config.yaml +34 -0
  93. package/flows/simple/memory-bank.yaml +66 -0
  94. package/flows/simple/quick-start.md +231 -0
  95. package/flows/simple/skills/design.md +96 -0
  96. package/flows/simple/skills/execute.md +190 -0
  97. package/flows/simple/skills/requirements.md +94 -0
  98. package/flows/simple/skills/tasks.md +136 -0
  99. package/flows/simple/templates/design-template.md +138 -0
  100. package/flows/simple/templates/requirements-template.md +85 -0
  101. package/flows/simple/templates/tasks-template.md +104 -0
  102. package/lib/analytics/tracker.js +6 -2
  103. package/lib/constants.js +25 -8
  104. package/lib/dashboard/aidlc/parser.js +581 -0
  105. package/lib/dashboard/fire/model.js +382 -0
  106. package/lib/dashboard/fire/parser.js +470 -0
  107. package/lib/dashboard/flow-detect.js +86 -0
  108. package/lib/dashboard/git/changes.js +362 -0
  109. package/lib/dashboard/git/worktrees.js +248 -0
  110. package/lib/dashboard/index.js +709 -0
  111. package/lib/dashboard/runtime/watch-runtime.js +122 -0
  112. package/lib/dashboard/simple/parser.js +293 -0
  113. package/lib/dashboard/tui/app.js +1675 -0
  114. package/lib/dashboard/tui/components/error-banner.js +35 -0
  115. package/lib/dashboard/tui/components/header.js +60 -0
  116. package/lib/dashboard/tui/components/help-footer.js +15 -0
  117. package/lib/dashboard/tui/components/stats-strip.js +35 -0
  118. package/lib/dashboard/tui/file-entries.js +383 -0
  119. package/lib/dashboard/tui/flow-builders.js +991 -0
  120. package/lib/dashboard/tui/git-builders.js +218 -0
  121. package/lib/dashboard/tui/helpers.js +236 -0
  122. package/lib/dashboard/tui/overlays.js +242 -0
  123. package/lib/dashboard/tui/preview.js +220 -0
  124. package/lib/dashboard/tui/renderer.js +76 -0
  125. package/lib/dashboard/tui/row-builders.js +797 -0
  126. package/lib/dashboard/tui/sections.js +45 -0
  127. package/lib/dashboard/tui/store.js +44 -0
  128. package/lib/dashboard/tui/views/overview-view.js +61 -0
  129. package/lib/dashboard/tui/views/runs-view.js +93 -0
  130. package/lib/dashboard/tui/worktree-builders.js +229 -0
  131. package/lib/dashboard/web/extension-adapter.js +726 -0
  132. package/lib/dashboard/web/public/app.js +9 -0
  133. package/lib/dashboard/web/public/index.html +14 -0
  134. package/lib/dashboard/web/public/styles.css +36 -0
  135. package/lib/dashboard/web/public/webview-bundle.js +7596 -0
  136. package/lib/dashboard/web/server.js +376 -0
  137. package/lib/dashboard/web/snapshot.js +299 -0
  138. package/lib/installer.js +19 -15
  139. package/lib/installers/CodexInstaller.js +72 -1
  140. package/lib/installers/KiroInstaller.js +55 -0
  141. package/lib/installers/OpenCodeInstaller.js +9 -1
  142. package/lib/installers/ToolInstaller.js +4 -1
  143. package/lib/installers/WindsurfInstaller.js +0 -54
  144. package/package.json +15 -55
  145. package/scripts/check-webview-bundle-sync.cjs +38 -0
  146. package/scripts/sync-webview-bundle.cjs +19 -0
@@ -0,0 +1,94 @@
1
+ # Testing Standards
2
+
3
+ ## Overview
4
+
5
+ {{overview}}
6
+
7
+ ## Testing Framework
8
+
9
+ **Framework**: {{framework}}
10
+ **Runner**: {{runner}}
11
+
12
+ ## Test Types
13
+
14
+ | Type | Tool | Location | When to Use |
15
+ |------|------|----------|-------------|
16
+ {{#each test_types}}
17
+ | {{this.type}} | {{this.tool}} | `{{this.location}}` | {{this.when}} |
18
+ {{/each}}
19
+
20
+ ## Coverage Requirements
21
+
22
+ **Target**: {{coverage_target}}%
23
+ **Enforcement**: {{coverage_enforcement}}
24
+
25
+ **Critical paths that MUST have coverage:**
26
+ {{#each critical_paths}}
27
+ - {{this}}
28
+ {{/each}}
29
+
30
+ ## Test Naming
31
+
32
+ **Pattern**: `{{naming_pattern}}`
33
+
34
+ **Examples**:
35
+ {{#each naming_examples}}
36
+ - `{{this.name}}` — {{this.description}}
37
+ {{/each}}
38
+
39
+ ## Test Structure
40
+
41
+ ```{{language}}
42
+ {{test_structure}}
43
+ ```
44
+
45
+ ## Mock Strategy
46
+
47
+ **Approach**: {{mock_approach}}
48
+
49
+ **Guidelines**:
50
+ {{#each mock_guidelines}}
51
+ - {{this}}
52
+ {{/each}}
53
+
54
+ ## Test Data
55
+
56
+ **Strategy**: {{test_data_strategy}}
57
+
58
+ **Guidelines**:
59
+ {{#each test_data_guidelines}}
60
+ - {{this}}
61
+ {{/each}}
62
+
63
+ ## Running Tests
64
+
65
+ ```bash
66
+ # Run all tests
67
+ {{run_all_command}}
68
+
69
+ # Run with coverage
70
+ {{run_coverage_command}}
71
+
72
+ # Run specific test file
73
+ {{run_single_command}}
74
+
75
+ # Run in watch mode
76
+ {{run_watch_command}}
77
+ ```
78
+
79
+ ## CI/CD Integration
80
+
81
+ {{#if ci_enabled}}
82
+ **Pipeline**: {{ci_pipeline}}
83
+ **Trigger**: {{ci_trigger}}
84
+
85
+ **Required gates**:
86
+ {{#each ci_gates}}
87
+ - {{this}}
88
+ {{/each}}
89
+ {{else}}
90
+ CI/CD integration not configured.
91
+ {{/if}}
92
+
93
+ ---
94
+ *Generated by specs.md - fabriqa.ai FIRE Flow*
@@ -0,0 +1,146 @@
1
+ ---
2
+ name: route
3
+ description: Analyze project state and route user to the appropriate agent based on current context.
4
+ version: 1.0.0
5
+ ---
6
+
7
+ <objective>
8
+ Analyze project state and route user to the appropriate agent.
9
+ </objective>
10
+
11
+ <triggers>
12
+ - User runs `/specsmd-fire` on initialized project
13
+ - After any agent completes its task
14
+ </triggers>
15
+
16
+ <llm critical="true">
17
+ <mandate>ALWAYS scan file system for intents/work-items not in state.yaml</mandate>
18
+ <mandate>FILE SYSTEM is source of truth — state.yaml may be incomplete</mandate>
19
+ <mandate>Route based on VERIFIED state, not assumptions</mandate>
20
+ </llm>
21
+
22
+ <flow>
23
+ <step n="1" title="Discover and Read State">
24
+ <action>Read .specs-fire/state.yaml</action>
25
+
26
+ <file_system_scan critical="true">
27
+ Use these EXACT glob patterns:
28
+
29
+ <pattern purpose="Find intent briefs">
30
+ .specs-fire/intents/*/brief.md
31
+ </pattern>
32
+
33
+ <pattern purpose="Find work items">
34
+ .specs-fire/intents/*/work-items/*.md
35
+ </pattern>
36
+
37
+ Work items are {work-item-id}.md files directly in work-items/ folder.
38
+ </file_system_scan>
39
+
40
+ <action>Reconcile: add discovered items to state as pending</action>
41
+ <action>Parse current project state</action>
42
+ </step>
43
+
44
+ <step n="2" title="Check Active Run">
45
+ <check if="runs.active is not empty">
46
+ <output>
47
+ Resuming active run: {runs.active[0].id}
48
+ Scope: {runs.active[0].scope}
49
+ Current item: {runs.active[0].current_item}
50
+ Progress: {completed_count}/{total_count} items
51
+ </output>
52
+ <route_to>builder-agent (run-execute)</route_to>
53
+ <stop/>
54
+ </check>
55
+ </step>
56
+
57
+ <step n="3" title="Check Pending Work Items">
58
+ <action>Find work items with status == pending across all intents</action>
59
+ <check if="pending work items exist">
60
+ <output>
61
+ **{pending_count} pending work items** found across {intent_count} intent(s).
62
+
63
+ Plan run scope and start execution? [Y/n]
64
+ </output>
65
+ <check if="response == y">
66
+ <route_to>builder-agent (run-plan)</route_to>
67
+ </check>
68
+ <stop/>
69
+ </check>
70
+ </step>
71
+
72
+ <step n="4" title="Check Active Intent">
73
+ <action>Find intents with status == in_progress</action>
74
+ <check if="active intent has no work items">
75
+ <output>
76
+ Intent "{intent.title}" needs decomposition.
77
+ Routing to Planner to create work items.
78
+ </output>
79
+ <route_to>planner-agent (work-item-decompose)</route_to>
80
+ <stop/>
81
+ </check>
82
+ <check if="all work items completed">
83
+ <action>Mark intent as completed</action>
84
+ <output>
85
+ Intent "{intent.title}" completed!
86
+
87
+ Work items delivered:
88
+ {list completed work items}
89
+
90
+ Ready for next intent? [Y/n]
91
+ </output>
92
+ </check>
93
+ </step>
94
+
95
+ <step n="5" title="No Active Work">
96
+ <output>
97
+ No active work. Ready for a new intent.
98
+
99
+ What do you want to build?
100
+ </output>
101
+ <route_to>planner-agent (intent-capture)</route_to>
102
+ </step>
103
+ </flow>
104
+
105
+ <routing_decision_tree>
106
+
107
+ ```
108
+ state.yaml + file system scan
109
+
110
+ ├── runs.active? ─────────────> Builder (run-execute, resume)
111
+
112
+ ├── pending work items? ──────> Builder (run-plan, then execute)
113
+
114
+ ├── intent without work items? > Planner (work-item-decompose)
115
+
116
+ └── no active intents ────────> Planner (intent-capture)
117
+ ```
118
+
119
+ </routing_decision_tree>
120
+
121
+ <context_passed_to_agents>
122
+ **To Planner:**
123
+
124
+ ```yaml
125
+ context:
126
+ action: intent-capture | work-item-decompose
127
+ intent_id: {if decomposing}
128
+ ```
129
+
130
+ **To Builder:**
131
+
132
+ ```yaml
133
+ context:
134
+ action: run-plan | run-execute | resume
135
+ pending_items: [{list of pending work items}] # for run-plan
136
+ run_id: {if resuming}
137
+ ```
138
+
139
+ </context_passed_to_agents>
140
+
141
+ <success_criteria>
142
+ <criterion>File system scanned for untracked intents/work-items</criterion>
143
+ <criterion>State reconciled with file system</criterion>
144
+ <criterion>Correct agent selected based on state</criterion>
145
+ <criterion>Context passed to target agent</criterion>
146
+ </success_criteria>