@soleri/core 2.12.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.
- package/data/flows/build.flow.yaml +128 -0
- package/data/flows/deliver.flow.yaml +110 -0
- package/data/flows/design.flow.yaml +108 -0
- package/data/flows/enhance.flow.yaml +90 -0
- package/data/flows/explore.flow.yaml +84 -0
- package/data/flows/fix.flow.yaml +90 -0
- package/data/flows/plan.flow.yaml +87 -0
- package/data/flows/review.flow.yaml +90 -0
- package/dist/brain/intelligence.d.ts.map +1 -1
- package/dist/brain/intelligence.js +16 -2
- package/dist/brain/intelligence.js.map +1 -1
- package/dist/capabilities/chain-mapping.d.ts +21 -0
- package/dist/capabilities/chain-mapping.d.ts.map +1 -0
- package/dist/capabilities/chain-mapping.js +86 -0
- package/dist/capabilities/chain-mapping.js.map +1 -0
- package/dist/capabilities/index.d.ts +10 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +8 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/registry.d.ts +95 -0
- package/dist/capabilities/registry.d.ts.map +1 -0
- package/dist/capabilities/registry.js +227 -0
- package/dist/capabilities/registry.js.map +1 -0
- package/dist/capabilities/types.d.ts +106 -0
- package/dist/capabilities/types.d.ts.map +1 -0
- package/dist/capabilities/types.js +12 -0
- package/dist/capabilities/types.js.map +1 -0
- package/dist/control/intent-router.d.ts.map +1 -1
- package/dist/control/intent-router.js +58 -2
- package/dist/control/intent-router.js.map +1 -1
- package/dist/domain-packs/index.d.ts +8 -0
- package/dist/domain-packs/index.d.ts.map +1 -0
- package/dist/domain-packs/index.js +8 -0
- package/dist/domain-packs/index.js.map +1 -0
- package/dist/domain-packs/inject-rules.d.ts +24 -0
- package/dist/domain-packs/inject-rules.d.ts.map +1 -0
- package/dist/domain-packs/inject-rules.js +65 -0
- package/dist/domain-packs/inject-rules.js.map +1 -0
- package/dist/domain-packs/knowledge-installer.d.ts +27 -0
- package/dist/domain-packs/knowledge-installer.d.ts.map +1 -0
- package/dist/domain-packs/knowledge-installer.js +89 -0
- package/dist/domain-packs/knowledge-installer.js.map +1 -0
- package/dist/domain-packs/loader.d.ts +28 -0
- package/dist/domain-packs/loader.d.ts.map +1 -0
- package/dist/domain-packs/loader.js +105 -0
- package/dist/domain-packs/loader.js.map +1 -0
- package/dist/domain-packs/pack-runtime.d.ts +80 -0
- package/dist/domain-packs/pack-runtime.d.ts.map +1 -0
- package/dist/domain-packs/pack-runtime.js +36 -0
- package/dist/domain-packs/pack-runtime.js.map +1 -0
- package/dist/domain-packs/skills-installer.d.ts +21 -0
- package/dist/domain-packs/skills-installer.d.ts.map +1 -0
- package/dist/domain-packs/skills-installer.js +38 -0
- package/dist/domain-packs/skills-installer.js.map +1 -0
- package/dist/domain-packs/token-resolver.d.ts +37 -0
- package/dist/domain-packs/token-resolver.d.ts.map +1 -0
- package/dist/domain-packs/token-resolver.js +109 -0
- package/dist/domain-packs/token-resolver.js.map +1 -0
- package/dist/domain-packs/types.d.ts +91 -0
- package/dist/domain-packs/types.d.ts.map +1 -0
- package/dist/domain-packs/types.js +122 -0
- package/dist/domain-packs/types.js.map +1 -0
- package/dist/engine/bin/soleri-engine.d.ts +12 -0
- package/dist/engine/bin/soleri-engine.d.ts.map +1 -0
- package/dist/engine/bin/soleri-engine.js +183 -0
- package/dist/engine/bin/soleri-engine.js.map +1 -0
- package/dist/engine/core-ops.d.ts +27 -0
- package/dist/engine/core-ops.d.ts.map +1 -0
- package/dist/engine/core-ops.js +159 -0
- package/dist/engine/core-ops.js.map +1 -0
- package/dist/engine/index.d.ts +19 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +17 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/engine/register-engine.d.ts +54 -0
- package/dist/engine/register-engine.d.ts.map +1 -0
- package/dist/engine/register-engine.js +270 -0
- package/dist/engine/register-engine.js.map +1 -0
- package/dist/engine/test-helpers.d.ts +30 -0
- package/dist/engine/test-helpers.d.ts.map +1 -0
- package/dist/engine/test-helpers.js +59 -0
- package/dist/engine/test-helpers.js.map +1 -0
- package/dist/flows/context-router.d.ts +39 -0
- package/dist/flows/context-router.d.ts.map +1 -0
- package/dist/flows/context-router.js +206 -0
- package/dist/flows/context-router.js.map +1 -0
- package/dist/flows/dispatch-registry.d.ts +24 -0
- package/dist/flows/dispatch-registry.d.ts.map +1 -0
- package/dist/flows/dispatch-registry.js +70 -0
- package/dist/flows/dispatch-registry.js.map +1 -0
- package/dist/flows/epilogue.d.ts +24 -0
- package/dist/flows/epilogue.d.ts.map +1 -0
- package/dist/flows/epilogue.js +52 -0
- package/dist/flows/epilogue.js.map +1 -0
- package/dist/flows/executor.d.ts +25 -0
- package/dist/flows/executor.d.ts.map +1 -0
- package/dist/flows/executor.js +153 -0
- package/dist/flows/executor.js.map +1 -0
- package/dist/flows/gate-evaluator.d.ts +26 -0
- package/dist/flows/gate-evaluator.d.ts.map +1 -0
- package/dist/flows/gate-evaluator.js +162 -0
- package/dist/flows/gate-evaluator.js.map +1 -0
- package/dist/flows/index.d.ts +14 -0
- package/dist/flows/index.d.ts.map +1 -0
- package/dist/flows/index.js +20 -0
- package/dist/flows/index.js.map +1 -0
- package/dist/flows/loader.d.ts +17 -0
- package/dist/flows/loader.d.ts.map +1 -0
- package/dist/flows/loader.js +61 -0
- package/dist/flows/loader.js.map +1 -0
- package/dist/flows/plan-builder.d.ts +40 -0
- package/dist/flows/plan-builder.d.ts.map +1 -0
- package/dist/flows/plan-builder.js +213 -0
- package/dist/flows/plan-builder.js.map +1 -0
- package/dist/flows/probes.d.ts +11 -0
- package/dist/flows/probes.d.ts.map +1 -0
- package/dist/flows/probes.js +62 -0
- package/dist/flows/probes.js.map +1 -0
- package/dist/flows/types.d.ts +950 -0
- package/dist/flows/types.d.ts.map +1 -0
- package/dist/flows/types.js +105 -0
- package/dist/flows/types.js.map +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/intelligence/loader.d.ts +19 -0
- package/dist/intelligence/loader.d.ts.map +1 -1
- package/dist/intelligence/loader.js +35 -0
- package/dist/intelligence/loader.js.map +1 -1
- package/dist/intelligence/types.d.ts +1 -0
- package/dist/intelligence/types.d.ts.map +1 -1
- package/dist/packs/types.d.ts +58 -19
- package/dist/packs/types.d.ts.map +1 -1
- package/dist/packs/types.js +14 -0
- package/dist/packs/types.js.map +1 -1
- package/dist/playbooks/generic/onboarding.d.ts +9 -0
- package/dist/playbooks/generic/onboarding.d.ts.map +1 -0
- package/dist/playbooks/generic/onboarding.js +74 -0
- package/dist/playbooks/generic/onboarding.js.map +1 -0
- package/dist/playbooks/playbook-registry.d.ts.map +1 -1
- package/dist/playbooks/playbook-registry.js +2 -0
- package/dist/playbooks/playbook-registry.js.map +1 -1
- package/dist/runtime/admin-extra-ops.d.ts.map +1 -1
- package/dist/runtime/admin-extra-ops.js +15 -9
- package/dist/runtime/admin-extra-ops.js.map +1 -1
- package/dist/runtime/admin-ops.js +4 -4
- package/dist/runtime/admin-ops.js.map +1 -1
- package/dist/runtime/capture-ops.d.ts.map +1 -1
- package/dist/runtime/capture-ops.js +33 -1
- package/dist/runtime/capture-ops.js.map +1 -1
- package/dist/runtime/domain-ops.d.ts +21 -5
- package/dist/runtime/domain-ops.d.ts.map +1 -1
- package/dist/runtime/domain-ops.js +64 -6
- package/dist/runtime/domain-ops.js.map +1 -1
- package/dist/runtime/facades/cognee-facade.d.ts.map +1 -1
- package/dist/runtime/facades/cognee-facade.js +3 -1
- package/dist/runtime/facades/cognee-facade.js.map +1 -1
- package/dist/runtime/facades/index.d.ts.map +1 -1
- package/dist/runtime/facades/index.js +10 -6
- package/dist/runtime/facades/index.js.map +1 -1
- package/dist/runtime/facades/vault-facade.d.ts.map +1 -1
- package/dist/runtime/facades/vault-facade.js +2 -0
- package/dist/runtime/facades/vault-facade.js.map +1 -1
- package/dist/runtime/orchestrate-ops.d.ts +8 -7
- package/dist/runtime/orchestrate-ops.d.ts.map +1 -1
- package/dist/runtime/orchestrate-ops.js +217 -61
- package/dist/runtime/orchestrate-ops.js.map +1 -1
- package/dist/runtime/runtime.d.ts.map +1 -1
- package/dist/runtime/runtime.js +23 -17
- package/dist/runtime/runtime.js.map +1 -1
- package/dist/runtime/types.d.ts +6 -2
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/runtime/vault-linking-ops.d.ts +13 -0
- package/dist/runtime/vault-linking-ops.d.ts.map +1 -0
- package/dist/runtime/vault-linking-ops.js +367 -0
- package/dist/runtime/vault-linking-ops.js.map +1 -0
- package/dist/vault/linking.d.ts +46 -0
- package/dist/vault/linking.d.ts.map +1 -0
- package/dist/vault/linking.js +275 -0
- package/dist/vault/linking.js.map +1 -0
- package/dist/vault/vault-types.d.ts +37 -0
- package/dist/vault/vault-types.d.ts.map +1 -1
- package/dist/vault/vault.d.ts +12 -0
- package/dist/vault/vault.d.ts.map +1 -1
- package/dist/vault/vault.js +85 -6
- package/dist/vault/vault.js.map +1 -1
- package/package.json +4 -1
- package/src/__tests__/admin-extra-ops.test.ts +1 -1
- package/src/__tests__/admin-ops.test.ts +2 -1
- package/src/__tests__/cognee-client-gaps.test.ts +470 -0
- package/src/__tests__/cognee-hybrid-search.test.ts +478 -0
- package/src/__tests__/cognee-sync-manager-deep.test.ts +630 -0
- package/src/__tests__/cognee-sync-manager.test.ts +1 -0
- package/src/__tests__/core-ops.test.ts +9 -61
- package/src/__tests__/domain-packs.test.ts +421 -0
- package/src/__tests__/flows.test.ts +604 -0
- package/src/__tests__/playbook-registry.test.ts +2 -2
- package/src/__tests__/playbook-seeder.test.ts +8 -8
- package/src/__tests__/playbook.test.ts +5 -5
- package/src/__tests__/token-resolver.test.ts +79 -0
- package/src/brain/intelligence.ts +21 -2
- package/src/capabilities/chain-mapping.ts +93 -0
- package/src/capabilities/index.ts +21 -0
- package/src/capabilities/registry.ts +290 -0
- package/src/capabilities/types.ts +143 -0
- package/src/control/intent-router.ts +46 -2
- package/src/domain-packs/index.ts +27 -0
- package/src/domain-packs/inject-rules.ts +74 -0
- package/src/domain-packs/knowledge-installer.ts +116 -0
- package/src/domain-packs/loader.ts +124 -0
- package/src/domain-packs/pack-runtime.ts +99 -0
- package/src/domain-packs/skills-installer.ts +56 -0
- package/src/domain-packs/token-resolver.ts +126 -0
- package/src/domain-packs/types.ts +229 -0
- package/src/engine/__tests__/register-engine.test.ts +104 -0
- package/src/engine/bin/soleri-engine.ts +217 -0
- package/src/engine/core-ops.ts +178 -0
- package/src/engine/index.ts +19 -0
- package/src/engine/register-engine.ts +385 -0
- package/src/engine/test-helpers.ts +83 -0
- package/src/flows/context-router.ts +257 -0
- package/src/flows/dispatch-registry.ts +80 -0
- package/src/flows/epilogue.ts +65 -0
- package/src/flows/executor.ts +182 -0
- package/src/flows/gate-evaluator.ts +171 -0
- package/src/flows/index.ts +52 -0
- package/src/flows/loader.ts +63 -0
- package/src/flows/plan-builder.ts +250 -0
- package/src/flows/probes.ts +70 -0
- package/src/flows/types.ts +217 -0
- package/src/index.ts +68 -1
- package/src/intelligence/loader.ts +38 -0
- package/src/intelligence/types.ts +1 -0
- package/src/packs/types.ts +19 -0
- package/src/playbooks/generic/onboarding.ts +79 -0
- package/src/playbooks/playbook-registry.ts +2 -0
- package/src/runtime/admin-extra-ops.ts +14 -8
- package/src/runtime/admin-ops.ts +4 -4
- package/src/runtime/capture-ops.ts +40 -1
- package/src/runtime/domain-ops.ts +71 -5
- package/src/runtime/facades/cognee-facade.ts +3 -1
- package/src/runtime/facades/index.ts +12 -6
- package/src/runtime/facades/vault-facade.ts +2 -0
- package/src/runtime/orchestrate-ops.ts +261 -65
- package/src/runtime/runtime.ts +27 -18
- package/src/runtime/types.ts +6 -2
- package/src/runtime/vault-linking-ops.ts +454 -0
- package/src/vault/linking.ts +333 -0
- package/src/vault/vault-types.ts +46 -0
- 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
|