@soleri/core 2.11.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/data/flows/build.flow.yaml +128 -0
  2. package/data/flows/deliver.flow.yaml +110 -0
  3. package/data/flows/design.flow.yaml +108 -0
  4. package/data/flows/enhance.flow.yaml +90 -0
  5. package/data/flows/explore.flow.yaml +84 -0
  6. package/data/flows/fix.flow.yaml +90 -0
  7. package/data/flows/plan.flow.yaml +87 -0
  8. package/data/flows/review.flow.yaml +90 -0
  9. package/dist/brain/brain.d.ts.map +1 -1
  10. package/dist/brain/brain.js +10 -0
  11. package/dist/brain/brain.js.map +1 -1
  12. package/dist/brain/intelligence.d.ts.map +1 -1
  13. package/dist/brain/intelligence.js +16 -2
  14. package/dist/brain/intelligence.js.map +1 -1
  15. package/dist/capabilities/chain-mapping.d.ts +21 -0
  16. package/dist/capabilities/chain-mapping.d.ts.map +1 -0
  17. package/dist/capabilities/chain-mapping.js +86 -0
  18. package/dist/capabilities/chain-mapping.js.map +1 -0
  19. package/dist/capabilities/index.d.ts +10 -0
  20. package/dist/capabilities/index.d.ts.map +1 -0
  21. package/dist/capabilities/index.js +8 -0
  22. package/dist/capabilities/index.js.map +1 -0
  23. package/dist/capabilities/registry.d.ts +95 -0
  24. package/dist/capabilities/registry.d.ts.map +1 -0
  25. package/dist/capabilities/registry.js +227 -0
  26. package/dist/capabilities/registry.js.map +1 -0
  27. package/dist/capabilities/types.d.ts +106 -0
  28. package/dist/capabilities/types.d.ts.map +1 -0
  29. package/dist/capabilities/types.js +12 -0
  30. package/dist/capabilities/types.js.map +1 -0
  31. package/dist/control/intent-router.d.ts.map +1 -1
  32. package/dist/control/intent-router.js +58 -2
  33. package/dist/control/intent-router.js.map +1 -1
  34. package/dist/domain-packs/index.d.ts +8 -0
  35. package/dist/domain-packs/index.d.ts.map +1 -0
  36. package/dist/domain-packs/index.js +8 -0
  37. package/dist/domain-packs/index.js.map +1 -0
  38. package/dist/domain-packs/inject-rules.d.ts +24 -0
  39. package/dist/domain-packs/inject-rules.d.ts.map +1 -0
  40. package/dist/domain-packs/inject-rules.js +65 -0
  41. package/dist/domain-packs/inject-rules.js.map +1 -0
  42. package/dist/domain-packs/knowledge-installer.d.ts +27 -0
  43. package/dist/domain-packs/knowledge-installer.d.ts.map +1 -0
  44. package/dist/domain-packs/knowledge-installer.js +89 -0
  45. package/dist/domain-packs/knowledge-installer.js.map +1 -0
  46. package/dist/domain-packs/loader.d.ts +28 -0
  47. package/dist/domain-packs/loader.d.ts.map +1 -0
  48. package/dist/domain-packs/loader.js +105 -0
  49. package/dist/domain-packs/loader.js.map +1 -0
  50. package/dist/domain-packs/pack-runtime.d.ts +80 -0
  51. package/dist/domain-packs/pack-runtime.d.ts.map +1 -0
  52. package/dist/domain-packs/pack-runtime.js +36 -0
  53. package/dist/domain-packs/pack-runtime.js.map +1 -0
  54. package/dist/domain-packs/skills-installer.d.ts +21 -0
  55. package/dist/domain-packs/skills-installer.d.ts.map +1 -0
  56. package/dist/domain-packs/skills-installer.js +38 -0
  57. package/dist/domain-packs/skills-installer.js.map +1 -0
  58. package/dist/domain-packs/token-resolver.d.ts +37 -0
  59. package/dist/domain-packs/token-resolver.d.ts.map +1 -0
  60. package/dist/domain-packs/token-resolver.js +109 -0
  61. package/dist/domain-packs/token-resolver.js.map +1 -0
  62. package/dist/domain-packs/types.d.ts +91 -0
  63. package/dist/domain-packs/types.d.ts.map +1 -0
  64. package/dist/domain-packs/types.js +122 -0
  65. package/dist/domain-packs/types.js.map +1 -0
  66. package/dist/engine/bin/soleri-engine.d.ts +12 -0
  67. package/dist/engine/bin/soleri-engine.d.ts.map +1 -0
  68. package/dist/engine/bin/soleri-engine.js +183 -0
  69. package/dist/engine/bin/soleri-engine.js.map +1 -0
  70. package/dist/engine/core-ops.d.ts +27 -0
  71. package/dist/engine/core-ops.d.ts.map +1 -0
  72. package/dist/engine/core-ops.js +159 -0
  73. package/dist/engine/core-ops.js.map +1 -0
  74. package/dist/engine/index.d.ts +19 -0
  75. package/dist/engine/index.d.ts.map +1 -0
  76. package/dist/engine/index.js +17 -0
  77. package/dist/engine/index.js.map +1 -0
  78. package/dist/engine/register-engine.d.ts +54 -0
  79. package/dist/engine/register-engine.d.ts.map +1 -0
  80. package/dist/engine/register-engine.js +270 -0
  81. package/dist/engine/register-engine.js.map +1 -0
  82. package/dist/engine/test-helpers.d.ts +30 -0
  83. package/dist/engine/test-helpers.d.ts.map +1 -0
  84. package/dist/engine/test-helpers.js +59 -0
  85. package/dist/engine/test-helpers.js.map +1 -0
  86. package/dist/flows/context-router.d.ts +39 -0
  87. package/dist/flows/context-router.d.ts.map +1 -0
  88. package/dist/flows/context-router.js +206 -0
  89. package/dist/flows/context-router.js.map +1 -0
  90. package/dist/flows/dispatch-registry.d.ts +24 -0
  91. package/dist/flows/dispatch-registry.d.ts.map +1 -0
  92. package/dist/flows/dispatch-registry.js +70 -0
  93. package/dist/flows/dispatch-registry.js.map +1 -0
  94. package/dist/flows/epilogue.d.ts +24 -0
  95. package/dist/flows/epilogue.d.ts.map +1 -0
  96. package/dist/flows/epilogue.js +52 -0
  97. package/dist/flows/epilogue.js.map +1 -0
  98. package/dist/flows/executor.d.ts +25 -0
  99. package/dist/flows/executor.d.ts.map +1 -0
  100. package/dist/flows/executor.js +153 -0
  101. package/dist/flows/executor.js.map +1 -0
  102. package/dist/flows/gate-evaluator.d.ts +26 -0
  103. package/dist/flows/gate-evaluator.d.ts.map +1 -0
  104. package/dist/flows/gate-evaluator.js +162 -0
  105. package/dist/flows/gate-evaluator.js.map +1 -0
  106. package/dist/flows/index.d.ts +14 -0
  107. package/dist/flows/index.d.ts.map +1 -0
  108. package/dist/flows/index.js +20 -0
  109. package/dist/flows/index.js.map +1 -0
  110. package/dist/flows/loader.d.ts +17 -0
  111. package/dist/flows/loader.d.ts.map +1 -0
  112. package/dist/flows/loader.js +61 -0
  113. package/dist/flows/loader.js.map +1 -0
  114. package/dist/flows/plan-builder.d.ts +40 -0
  115. package/dist/flows/plan-builder.d.ts.map +1 -0
  116. package/dist/flows/plan-builder.js +213 -0
  117. package/dist/flows/plan-builder.js.map +1 -0
  118. package/dist/flows/probes.d.ts +11 -0
  119. package/dist/flows/probes.d.ts.map +1 -0
  120. package/dist/flows/probes.js +62 -0
  121. package/dist/flows/probes.js.map +1 -0
  122. package/dist/flows/types.d.ts +950 -0
  123. package/dist/flows/types.d.ts.map +1 -0
  124. package/dist/flows/types.js +105 -0
  125. package/dist/flows/types.js.map +1 -0
  126. package/dist/index.d.ts +11 -1
  127. package/dist/index.d.ts.map +1 -1
  128. package/dist/index.js +10 -1
  129. package/dist/index.js.map +1 -1
  130. package/dist/intelligence/loader.d.ts +19 -0
  131. package/dist/intelligence/loader.d.ts.map +1 -1
  132. package/dist/intelligence/loader.js +86 -5
  133. package/dist/intelligence/loader.js.map +1 -1
  134. package/dist/intelligence/types.d.ts +1 -0
  135. package/dist/intelligence/types.d.ts.map +1 -1
  136. package/dist/packs/types.d.ts +58 -19
  137. package/dist/packs/types.d.ts.map +1 -1
  138. package/dist/packs/types.js +14 -0
  139. package/dist/packs/types.js.map +1 -1
  140. package/dist/playbooks/generic/onboarding.d.ts +9 -0
  141. package/dist/playbooks/generic/onboarding.d.ts.map +1 -0
  142. package/dist/playbooks/generic/onboarding.js +74 -0
  143. package/dist/playbooks/generic/onboarding.js.map +1 -0
  144. package/dist/playbooks/playbook-registry.d.ts.map +1 -1
  145. package/dist/playbooks/playbook-registry.js +2 -0
  146. package/dist/playbooks/playbook-registry.js.map +1 -1
  147. package/dist/runtime/admin-extra-ops.d.ts.map +1 -1
  148. package/dist/runtime/admin-extra-ops.js +15 -9
  149. package/dist/runtime/admin-extra-ops.js.map +1 -1
  150. package/dist/runtime/admin-ops.js +4 -4
  151. package/dist/runtime/admin-ops.js.map +1 -1
  152. package/dist/runtime/capture-ops.d.ts.map +1 -1
  153. package/dist/runtime/capture-ops.js +33 -1
  154. package/dist/runtime/capture-ops.js.map +1 -1
  155. package/dist/runtime/domain-ops.d.ts +21 -5
  156. package/dist/runtime/domain-ops.d.ts.map +1 -1
  157. package/dist/runtime/domain-ops.js +85 -8
  158. package/dist/runtime/domain-ops.js.map +1 -1
  159. package/dist/runtime/facades/cognee-facade.d.ts.map +1 -1
  160. package/dist/runtime/facades/cognee-facade.js +3 -1
  161. package/dist/runtime/facades/cognee-facade.js.map +1 -1
  162. package/dist/runtime/facades/index.d.ts.map +1 -1
  163. package/dist/runtime/facades/index.js +10 -6
  164. package/dist/runtime/facades/index.js.map +1 -1
  165. package/dist/runtime/facades/vault-facade.d.ts.map +1 -1
  166. package/dist/runtime/facades/vault-facade.js +2 -0
  167. package/dist/runtime/facades/vault-facade.js.map +1 -1
  168. package/dist/runtime/orchestrate-ops.d.ts +8 -7
  169. package/dist/runtime/orchestrate-ops.d.ts.map +1 -1
  170. package/dist/runtime/orchestrate-ops.js +227 -58
  171. package/dist/runtime/orchestrate-ops.js.map +1 -1
  172. package/dist/runtime/runtime.d.ts.map +1 -1
  173. package/dist/runtime/runtime.js +23 -17
  174. package/dist/runtime/runtime.js.map +1 -1
  175. package/dist/runtime/types.d.ts +6 -2
  176. package/dist/runtime/types.d.ts.map +1 -1
  177. package/dist/runtime/vault-linking-ops.d.ts +13 -0
  178. package/dist/runtime/vault-linking-ops.d.ts.map +1 -0
  179. package/dist/runtime/vault-linking-ops.js +367 -0
  180. package/dist/runtime/vault-linking-ops.js.map +1 -0
  181. package/dist/vault/linking.d.ts +46 -0
  182. package/dist/vault/linking.d.ts.map +1 -0
  183. package/dist/vault/linking.js +275 -0
  184. package/dist/vault/linking.js.map +1 -0
  185. package/dist/vault/vault-types.d.ts +37 -0
  186. package/dist/vault/vault-types.d.ts.map +1 -1
  187. package/dist/vault/vault.d.ts +12 -0
  188. package/dist/vault/vault.d.ts.map +1 -1
  189. package/dist/vault/vault.js +85 -6
  190. package/dist/vault/vault.js.map +1 -1
  191. package/package.json +4 -1
  192. package/src/__tests__/admin-extra-ops.test.ts +1 -1
  193. package/src/__tests__/admin-ops.test.ts +2 -1
  194. package/src/__tests__/cognee-client-gaps.test.ts +470 -0
  195. package/src/__tests__/cognee-hybrid-search.test.ts +478 -0
  196. package/src/__tests__/cognee-sync-manager-deep.test.ts +630 -0
  197. package/src/__tests__/cognee-sync-manager.test.ts +1 -0
  198. package/src/__tests__/core-ops.test.ts +9 -61
  199. package/src/__tests__/domain-packs.test.ts +421 -0
  200. package/src/__tests__/flows.test.ts +604 -0
  201. package/src/__tests__/playbook-registry.test.ts +2 -2
  202. package/src/__tests__/playbook-seeder.test.ts +8 -8
  203. package/src/__tests__/playbook.test.ts +5 -5
  204. package/src/__tests__/token-resolver.test.ts +79 -0
  205. package/src/brain/brain.ts +12 -0
  206. package/src/brain/intelligence.ts +21 -2
  207. package/src/capabilities/chain-mapping.ts +93 -0
  208. package/src/capabilities/index.ts +21 -0
  209. package/src/capabilities/registry.ts +290 -0
  210. package/src/capabilities/types.ts +143 -0
  211. package/src/control/intent-router.ts +46 -2
  212. package/src/domain-packs/index.ts +27 -0
  213. package/src/domain-packs/inject-rules.ts +74 -0
  214. package/src/domain-packs/knowledge-installer.ts +116 -0
  215. package/src/domain-packs/loader.ts +124 -0
  216. package/src/domain-packs/pack-runtime.ts +99 -0
  217. package/src/domain-packs/skills-installer.ts +56 -0
  218. package/src/domain-packs/token-resolver.ts +126 -0
  219. package/src/domain-packs/types.ts +229 -0
  220. package/src/engine/__tests__/register-engine.test.ts +104 -0
  221. package/src/engine/bin/soleri-engine.ts +217 -0
  222. package/src/engine/core-ops.ts +178 -0
  223. package/src/engine/index.ts +19 -0
  224. package/src/engine/register-engine.ts +385 -0
  225. package/src/engine/test-helpers.ts +83 -0
  226. package/src/flows/context-router.ts +257 -0
  227. package/src/flows/dispatch-registry.ts +80 -0
  228. package/src/flows/epilogue.ts +65 -0
  229. package/src/flows/executor.ts +182 -0
  230. package/src/flows/gate-evaluator.ts +171 -0
  231. package/src/flows/index.ts +52 -0
  232. package/src/flows/loader.ts +63 -0
  233. package/src/flows/plan-builder.ts +250 -0
  234. package/src/flows/probes.ts +70 -0
  235. package/src/flows/types.ts +217 -0
  236. package/src/index.ts +68 -1
  237. package/src/intelligence/loader.ts +96 -5
  238. package/src/intelligence/types.ts +1 -0
  239. package/src/packs/types.ts +19 -0
  240. package/src/playbooks/generic/onboarding.ts +79 -0
  241. package/src/playbooks/playbook-registry.ts +2 -0
  242. package/src/runtime/admin-extra-ops.ts +14 -8
  243. package/src/runtime/admin-ops.ts +4 -4
  244. package/src/runtime/capture-ops.ts +40 -1
  245. package/src/runtime/domain-ops.ts +92 -7
  246. package/src/runtime/facades/cognee-facade.ts +3 -1
  247. package/src/runtime/facades/index.ts +12 -6
  248. package/src/runtime/facades/vault-facade.ts +2 -0
  249. package/src/runtime/orchestrate-ops.ts +271 -62
  250. package/src/runtime/runtime.ts +27 -18
  251. package/src/runtime/types.ts +6 -2
  252. package/src/runtime/vault-linking-ops.ts +454 -0
  253. package/src/vault/linking.ts +333 -0
  254. package/src/vault/vault-types.ts +46 -0
  255. package/src/vault/vault.ts +94 -7
@@ -0,0 +1,128 @@
1
+ # Build Component Flow
2
+ # Orchestrates component creation with vault-first knowledge and validation gates.
3
+
4
+ id: BUILD-flow
5
+ name: Build Component
6
+ description: >
7
+ Full component build workflow: search vault for patterns, check for duplicates,
8
+ gather architecture guidance, get component workflow, then validate the result.
9
+ version: "1.0.0"
10
+
11
+ on-missing-capability:
12
+ default: skip-with-warning
13
+ blocking: [vault.search]
14
+
15
+ triggers:
16
+ modes:
17
+ - BUILD
18
+ - component-build
19
+ contexts:
20
+ - component
21
+ - feature
22
+ - ui
23
+ min-confidence: MEDIUM
24
+
25
+ steps:
26
+ - id: search-vault
27
+ name: Search Vault Patterns
28
+ description: Search vault for existing patterns, anti-patterns, and prior art related to the build target.
29
+ needs: [vault.search, memory.search]
30
+ chains:
31
+ - vault-search
32
+ - memory-search
33
+ output:
34
+ - vault-patterns
35
+ - memory-hits
36
+
37
+ - id: check-duplicates
38
+ name: Check for Duplicates
39
+ description: Verify that a similar component does not already exist before building.
40
+ needs: [component.search]
41
+ chains:
42
+ - component-search
43
+ output:
44
+ - duplicate-check-result
45
+ gate:
46
+ type: GATE
47
+ condition: "count == 0"
48
+ on-false:
49
+ action: STOP
50
+ message: "Duplicate component detected. Review existing component before building a new one."
51
+
52
+ - id: get-design-recommendation
53
+ name: Get Design Recommendation
54
+ description: Query design intelligence for style, palette, and typography guidance before building.
55
+ needs: [design.recommend]
56
+ chains:
57
+ - recommend-design-system
58
+ output:
59
+ - design-recommendation
60
+
61
+ - id: get-architecture
62
+ name: Get Architecture Guidance
63
+ description: Fetch architecture patterns and brain recommendations in parallel.
64
+ needs: [architecture.search, brain.recommend]
65
+ chains:
66
+ - architecture-search
67
+ - brain-recommend
68
+ parallel: true
69
+ output:
70
+ - architecture-patterns
71
+ - brain-recommendations
72
+
73
+ - id: get-workflow
74
+ name: Get Component Workflow
75
+ description: Retrieve the component build workflow from the design system.
76
+ needs: [component.workflow]
77
+ chains:
78
+ - component-workflow
79
+ output:
80
+ - workflow-steps
81
+
82
+ - id: validate
83
+ name: Validate Component
84
+ description: Run design system validation and score the output quality.
85
+ needs: [component.validate, token.check]
86
+ chains:
87
+ - validate-component
88
+ - validate-tokens
89
+ output:
90
+ - validation-score
91
+ gate:
92
+ type: SCORE
93
+ min: 80
94
+ grade-thresholds:
95
+ A: 95
96
+ B: 85
97
+ C: 75
98
+ on-false:
99
+ action: BRANCH
100
+ goto: get-workflow
101
+ message: "Validation score below threshold. Re-run workflow."
102
+
103
+ scoring:
104
+ weights:
105
+ vault-search: 0.15
106
+ duplicate-check: 0.10
107
+ architecture: 0.15
108
+ workflow: 0.20
109
+ validation: 0.40
110
+ formula: "weighted-sum"
111
+
112
+ on-error:
113
+ default:
114
+ action: STOP
115
+ message: "Build flow encountered an error."
116
+ recovery: "Retry from the failed step."
117
+ max-retries: 2
118
+ escalation:
119
+ action: STOP
120
+ message: "Build flow failed after retries. Escalate to user."
121
+
122
+ metadata:
123
+ author: soleri
124
+ domain: component-build
125
+ tags:
126
+ - build
127
+ - component
128
+ - vault-first
@@ -0,0 +1,110 @@
1
+ # Deliver Feature Flow
2
+ # Orchestrates delivery with validation, testing, performance, and delivery workflow.
3
+
4
+ id: DELIVER-flow
5
+ name: Deliver Feature
6
+ description: >
7
+ Feature delivery workflow: validate code quality, check test coverage,
8
+ assess performance, then execute the delivery workflow.
9
+ version: "1.0.0"
10
+
11
+ on-missing-capability:
12
+ default: skip-with-warning
13
+ blocking: [vault.search]
14
+
15
+ triggers:
16
+ modes:
17
+ - DELIVER
18
+ - ship
19
+ contexts:
20
+ - deploy
21
+ - release
22
+ - ship
23
+ min-confidence: HIGH
24
+
25
+ steps:
26
+ - id: validate-code
27
+ name: Validate Code Quality
28
+ description: Run full code validation against design system rules and token usage.
29
+ needs: [component.validate, token.check, design.rules]
30
+ chains:
31
+ - validate-component
32
+ - validate-tokens
33
+ - design-rules-check
34
+ output:
35
+ - code-validation-result
36
+ gate:
37
+ type: GATE
38
+ condition: "pass == true"
39
+ on-false:
40
+ action: STOP
41
+ message: "Code validation failed. Fix issues before delivery."
42
+
43
+ - id: check-testing
44
+ name: Check Test Coverage
45
+ description: Verify that adequate tests exist and pass.
46
+ needs: [test.coverage]
47
+ chains:
48
+ - test-coverage-check
49
+ output:
50
+ - test-results
51
+ gate:
52
+ type: GATE
53
+ condition: "coverage >= 80"
54
+ on-false:
55
+ action: STOP
56
+ message: "Test coverage below threshold. Add tests before delivery."
57
+
58
+ - id: check-performance
59
+ name: Check Performance
60
+ description: Assess performance metrics against established baselines.
61
+ needs: [perf.audit]
62
+ chains:
63
+ - performance-audit
64
+ output:
65
+ - performance-results
66
+
67
+ - id: delivery-workflow
68
+ name: Execute Delivery Workflow
69
+ description: Run the delivery checklist and finalize for release.
70
+ needs: [deliver.checklist]
71
+ chains:
72
+ - delivery-checklist
73
+ output:
74
+ - delivery-status
75
+ - delivery-grade
76
+ gate:
77
+ type: SCORE
78
+ min: 85
79
+ grade-thresholds:
80
+ A: 95
81
+ B: 85
82
+ C: 75
83
+ on-false:
84
+ action: STOP
85
+ message: "Delivery score below threshold. Address issues before shipping."
86
+
87
+ scoring:
88
+ weights:
89
+ code-validation: 0.30
90
+ testing: 0.25
91
+ performance: 0.20
92
+ delivery: 0.25
93
+ formula: "weighted-sum"
94
+
95
+ on-error:
96
+ default:
97
+ action: STOP
98
+ message: "Delivery flow encountered an error. Do not proceed."
99
+ max-retries: 1
100
+ escalation:
101
+ action: STOP
102
+ message: "Delivery flow failed. Manual review required."
103
+
104
+ metadata:
105
+ author: soleri
106
+ domain: delivery
107
+ tags:
108
+ - deliver
109
+ - ship
110
+ - release
@@ -0,0 +1,108 @@
1
+ # Design System Recommendation Flow
2
+ # Orchestrates design knowledge queries: style, palette, typography, and stack guidelines.
3
+
4
+ id: DESIGN-flow
5
+ name: Design System Recommendation
6
+ description: >
7
+ Design workflow: search vault for existing design patterns, query Cognee knowledge graph
8
+ for curated design intelligence, then provide a full design system recommendation
9
+ (style + palette + typography + landing pattern + anti-patterns).
10
+ version: "1.0.0"
11
+
12
+ on-missing-capability:
13
+ default: skip-with-warning
14
+ blocking: [vault.search]
15
+
16
+ triggers:
17
+ modes:
18
+ - DESIGN
19
+ - design-system
20
+ contexts:
21
+ - design
22
+ - style
23
+ - color
24
+ - typography
25
+ - theme
26
+ min-confidence: MEDIUM
27
+
28
+ steps:
29
+ - id: search-vault-design
30
+ name: Search Vault Design Patterns
31
+ description: Search vault for existing design patterns, decisions, and anti-patterns related to the request.
32
+ needs: [vault.search, memory.search]
33
+ chains:
34
+ - vault-search
35
+ - memory-search
36
+ output:
37
+ - vault-patterns
38
+ - memory-hits
39
+
40
+ - id: search-cognee-design
41
+ name: Search Cognee Design Knowledge
42
+ description: Query the Cognee knowledge graph for curated design intelligence.
43
+ needs: [cognee.search]
44
+ chains:
45
+ - cognee-design-search
46
+ output:
47
+ - cognee-design-results
48
+
49
+ - id: recommend-design-system
50
+ name: Recommend Design System
51
+ description: >
52
+ Generate a full design system recommendation: UI style, color palette,
53
+ font pairing, landing page pattern, and anti-patterns to avoid.
54
+ needs: [design.recommend, design.style, design.palette, design.typography]
55
+ chains:
56
+ - recommend-design-system
57
+ - recommend-style
58
+ - recommend-palette
59
+ - recommend-typography
60
+ parallel: true
61
+ output:
62
+ - design-system-recommendation
63
+ - style-recommendation
64
+ - palette-recommendation
65
+ - typography-recommendation
66
+
67
+ - id: get-stack-guidelines
68
+ name: Get Stack Guidelines
69
+ description: Retrieve implementation guidelines for the target tech stack.
70
+ needs: [stack.guidelines]
71
+ chains:
72
+ - get-stack-guidelines
73
+ output:
74
+ - stack-guidelines
75
+
76
+ - id: brain-recommend
77
+ name: Brain Recommendations
78
+ description: Check brain for proven design patterns from previous sessions.
79
+ needs: [brain.recommend]
80
+ chains:
81
+ - brain-recommend
82
+ output:
83
+ - brain-recommendations
84
+
85
+ scoring:
86
+ weights:
87
+ vault-search: 0.15
88
+ cognee-search: 0.10
89
+ design-system: 0.40
90
+ stack-guidelines: 0.15
91
+ brain-recommend: 0.20
92
+ formula: "weighted-sum"
93
+
94
+ on-error:
95
+ default:
96
+ action: CONTINUE
97
+ message: "Design recommendation step encountered an error. Continuing with available data."
98
+ max-retries: 1
99
+
100
+ metadata:
101
+ author: soleri
102
+ domain: design-system
103
+ tags:
104
+ - design
105
+ - style
106
+ - color
107
+ - typography
108
+ - vault-first
@@ -0,0 +1,90 @@
1
+ # Enhance Feature Flow
2
+ # Orchestrates feature improvement with vault knowledge and validation.
3
+
4
+ id: ENHANCE-flow
5
+ name: Enhance Feature
6
+ description: >
7
+ Feature enhancement workflow: search vault for improvement patterns,
8
+ gather architecture guidance, then validate the enhancement.
9
+ version: "1.0.0"
10
+
11
+ on-missing-capability:
12
+ default: skip-with-warning
13
+ blocking: [vault.search]
14
+
15
+ triggers:
16
+ modes:
17
+ - IMPROVE
18
+ - enhance
19
+ contexts:
20
+ - performance
21
+ - refactor
22
+ - improvement
23
+ min-confidence: MEDIUM
24
+
25
+ steps:
26
+ - id: search-vault
27
+ name: Search Vault Patterns
28
+ description: Search vault for enhancement patterns, best practices, and previous improvements.
29
+ needs: [vault.search, memory.search]
30
+ chains:
31
+ - vault-search
32
+ - memory-search
33
+ output:
34
+ - vault-patterns
35
+ - memory-hits
36
+
37
+ - id: get-architecture
38
+ name: Get Architecture Guidance
39
+ description: Fetch architecture guidance and brain recommendations for the enhancement.
40
+ needs: [architecture.search, brain.recommend]
41
+ chains:
42
+ - architecture-search
43
+ - brain-recommend
44
+ parallel: true
45
+ output:
46
+ - architecture-patterns
47
+ - brain-recommendations
48
+
49
+ - id: validate
50
+ name: Validate Enhancement
51
+ description: Validate the enhanced code against design rules and quality standards.
52
+ needs: [component.validate, token.check]
53
+ chains:
54
+ - validate-component
55
+ - validate-tokens
56
+ output:
57
+ - validation-score
58
+ gate:
59
+ type: SCORE
60
+ min: 75
61
+ grade-thresholds:
62
+ A: 95
63
+ B: 85
64
+ C: 75
65
+ on-false:
66
+ action: BRANCH
67
+ goto: get-architecture
68
+ message: "Enhancement validation below threshold. Revisit architecture guidance."
69
+
70
+ scoring:
71
+ weights:
72
+ vault-search: 0.20
73
+ architecture: 0.30
74
+ validation: 0.50
75
+ formula: "weighted-sum"
76
+
77
+ on-error:
78
+ default:
79
+ action: STOP
80
+ message: "Enhancement flow encountered an error."
81
+ recovery: "Retry from the failed step."
82
+ max-retries: 2
83
+
84
+ metadata:
85
+ author: soleri
86
+ domain: enhancement
87
+ tags:
88
+ - enhance
89
+ - improve
90
+ - refactor
@@ -0,0 +1,84 @@
1
+ # Explore Knowledge Flow
2
+ # Orchestrates knowledge exploration across vault, memory, brain, and playbooks.
3
+
4
+ id: EXPLORE-flow
5
+ name: Explore Knowledge
6
+ description: >
7
+ Knowledge exploration workflow: search vault patterns, cross-project memory,
8
+ brain pattern strengths, and playbooks to surface all relevant knowledge.
9
+ version: "1.0.0"
10
+
11
+ on-missing-capability:
12
+ default: skip-with-warning
13
+ blocking: [vault.search]
14
+
15
+ triggers:
16
+ modes:
17
+ - EXPLORE
18
+ - research
19
+ contexts:
20
+ - knowledge
21
+ - learning
22
+ - discovery
23
+ min-confidence: LOW
24
+
25
+ steps:
26
+ - id: search-vault
27
+ name: Search Vault Patterns
28
+ description: Search vault for patterns, anti-patterns, and domain knowledge.
29
+ needs: [vault.search]
30
+ chains:
31
+ - vault-search
32
+ output:
33
+ - vault-patterns
34
+
35
+ - id: search-memory
36
+ name: Search Cross-Project Memory
37
+ description: Search memory for cross-project knowledge and historical context.
38
+ needs: [memory.search]
39
+ chains:
40
+ - memory-search
41
+ output:
42
+ - memory-hits
43
+
44
+ - id: check-brain
45
+ name: Check Brain Patterns
46
+ description: Query brain for pattern strengths and recommendations.
47
+ needs: [brain.strengths, brain.recommend]
48
+ chains:
49
+ - brain-strengths
50
+ - brain-recommend
51
+ output:
52
+ - brain-patterns
53
+ - brain-recommendations
54
+
55
+ - id: check-playbooks
56
+ name: Check Playbooks
57
+ description: Search playbooks for operational runbooks and guides.
58
+ needs: [vault.playbook]
59
+ chains:
60
+ - playbook-search
61
+ output:
62
+ - playbook-results
63
+
64
+ scoring:
65
+ weights:
66
+ vault-search: 0.30
67
+ memory-search: 0.25
68
+ brain-check: 0.25
69
+ playbook-check: 0.20
70
+ formula: "weighted-sum"
71
+
72
+ on-error:
73
+ default:
74
+ action: CONTINUE
75
+ message: "Exploration step failed; continuing with remaining sources."
76
+ max-retries: 1
77
+
78
+ metadata:
79
+ author: soleri
80
+ domain: knowledge
81
+ tags:
82
+ - explore
83
+ - knowledge
84
+ - research
@@ -0,0 +1,90 @@
1
+ # Fix Issue Flow
2
+ # Orchestrates bug fixing with anti-pattern awareness and validation.
3
+
4
+ id: FIX-flow
5
+ name: Fix Issue
6
+ description: >
7
+ Issue fix workflow: search for known anti-patterns, gather error patterns
8
+ in parallel, then validate the fix.
9
+ version: "1.0.0"
10
+
11
+ on-missing-capability:
12
+ default: skip-with-warning
13
+ blocking: [vault.search]
14
+
15
+ triggers:
16
+ modes:
17
+ - FIX
18
+ - bug-fix
19
+ contexts:
20
+ - bug
21
+ - error
22
+ - regression
23
+ min-confidence: MEDIUM
24
+
25
+ steps:
26
+ - id: search-anti-patterns
27
+ name: Search Anti-Patterns
28
+ description: Search vault for known anti-patterns related to the reported issue.
29
+ needs: [vault.search, memory.search]
30
+ chains:
31
+ - vault-search-antipatterns
32
+ - memory-search
33
+ output:
34
+ - anti-patterns
35
+ - memory-hits
36
+
37
+ - id: get-error-patterns
38
+ name: Get Error Patterns
39
+ description: Gather error patterns and brain insights in parallel.
40
+ needs: [debug.patterns, brain.recommend]
41
+ chains:
42
+ - error-pattern-search
43
+ - brain-recommend
44
+ parallel: true
45
+ output:
46
+ - error-patterns
47
+ - brain-recommendations
48
+
49
+ - id: validate
50
+ name: Validate Fix
51
+ description: Validate the fix against design rules and run relevant checks.
52
+ needs: [component.validate, token.check]
53
+ chains:
54
+ - validate-component
55
+ - validate-tokens
56
+ output:
57
+ - validation-score
58
+ gate:
59
+ type: SCORE
60
+ min: 70
61
+ grade-thresholds:
62
+ A: 95
63
+ B: 80
64
+ C: 70
65
+ on-false:
66
+ action: BRANCH
67
+ goto: search-anti-patterns
68
+ message: "Fix validation below threshold. Re-examine anti-patterns."
69
+
70
+ scoring:
71
+ weights:
72
+ anti-pattern-search: 0.25
73
+ error-patterns: 0.25
74
+ validation: 0.50
75
+ formula: "weighted-sum"
76
+
77
+ on-error:
78
+ default:
79
+ action: STOP
80
+ message: "Fix flow encountered an error."
81
+ recovery: "Retry from the failed step."
82
+ max-retries: 2
83
+
84
+ metadata:
85
+ author: soleri
86
+ domain: bug-fix
87
+ tags:
88
+ - fix
89
+ - bug
90
+ - anti-pattern
@@ -0,0 +1,87 @@
1
+ # Plan Feature Flow
2
+ # Orchestrates feature planning with vault-first knowledge and checkpoint gate.
3
+
4
+ id: PLAN-flow
5
+ name: Plan Feature
6
+ description: >
7
+ Feature planning workflow: search vault for prior art, brainstorm design
8
+ approaches, then create a structured plan with a checkpoint gate for approval.
9
+ version: "1.0.0"
10
+
11
+ on-missing-capability:
12
+ default: skip-with-warning
13
+ blocking: [vault.search]
14
+
15
+ triggers:
16
+ modes:
17
+ - PLAN
18
+ - plan-iteration
19
+ contexts:
20
+ - feature
21
+ - architecture
22
+ - design
23
+ min-confidence: MEDIUM
24
+
25
+ steps:
26
+ - id: search-vault
27
+ name: Search Vault Knowledge
28
+ description: Search vault for patterns, anti-patterns, and previous plans related to the feature.
29
+ needs: [vault.search, memory.search]
30
+ chains:
31
+ - vault-search
32
+ - memory-search
33
+ output:
34
+ - vault-patterns
35
+ - memory-hits
36
+
37
+ - id: brainstorm
38
+ name: Brainstorm Approaches
39
+ description: Generate design approaches informed by vault knowledge and brain recommendations.
40
+ needs: [brain.recommend, architecture.search]
41
+ chains:
42
+ - brain-recommend
43
+ - architecture-search
44
+ output:
45
+ - brainstorm-options
46
+ - architecture-guidance
47
+
48
+ - id: create-plan
49
+ name: Create Plan
50
+ description: Produce a structured implementation plan and present it for approval.
51
+ needs: [plan.create]
52
+ chains:
53
+ - plan-create
54
+ output:
55
+ - plan-document
56
+ - plan-grade
57
+ gate:
58
+ type: CHECKPOINT
59
+ condition: "grade >= 'B'"
60
+ save:
61
+ - plan-document
62
+ - vault-patterns
63
+ on-false:
64
+ action: BRANCH
65
+ goto: brainstorm
66
+ message: "Plan did not meet quality threshold. Re-brainstorm."
67
+
68
+ scoring:
69
+ weights:
70
+ vault-search: 0.20
71
+ brainstorm: 0.30
72
+ plan-creation: 0.50
73
+ formula: "weighted-sum"
74
+
75
+ on-error:
76
+ default:
77
+ action: STOP
78
+ message: "Planning flow encountered an error."
79
+ max-retries: 1
80
+
81
+ metadata:
82
+ author: soleri
83
+ domain: planning
84
+ tags:
85
+ - plan
86
+ - architecture
87
+ - vault-first