@dragonflymcp/plugin 1.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/.claude-plugin/plugin.json +26 -0
- package/LICENSE +21 -0
- package/README.md +126 -0
- package/dist/core/annotations.d.ts +71 -0
- package/dist/core/annotations.d.ts.map +1 -0
- package/dist/core/annotations.js +61 -0
- package/dist/core/annotations.js.map +1 -0
- package/dist/core/config.d.ts +66 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +131 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/dispatcher.d.ts +77 -0
- package/dist/core/dispatcher.d.ts.map +1 -0
- package/dist/core/dispatcher.js +132 -0
- package/dist/core/dispatcher.js.map +1 -0
- package/dist/core/server.d.ts +24 -0
- package/dist/core/server.d.ts.map +1 -0
- package/dist/core/server.js +41 -0
- package/dist/core/server.js.map +1 -0
- package/dist/core/store.d.ts +91 -0
- package/dist/core/store.d.ts.map +1 -0
- package/dist/core/store.js +157 -0
- package/dist/core/store.js.map +1 -0
- package/dist/core/types.d.ts +128 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +5 -0
- package/dist/core/types.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -0
- package/dist/test-utils/store-harness.d.ts +41 -0
- package/dist/test-utils/store-harness.d.ts.map +1 -0
- package/dist/test-utils/store-harness.js +61 -0
- package/dist/test-utils/store-harness.js.map +1 -0
- package/dist/tools/analytics/aggregators.d.ts +18 -0
- package/dist/tools/analytics/aggregators.d.ts.map +1 -0
- package/dist/tools/analytics/aggregators.js +260 -0
- package/dist/tools/analytics/aggregators.js.map +1 -0
- package/dist/tools/analytics/aggregators.test.d.ts +2 -0
- package/dist/tools/analytics/aggregators.test.d.ts.map +1 -0
- package/dist/tools/analytics/aggregators.test.js +177 -0
- package/dist/tools/analytics/aggregators.test.js.map +1 -0
- package/dist/tools/analytics/drift.d.ts +15 -0
- package/dist/tools/analytics/drift.d.ts.map +1 -0
- package/dist/tools/analytics/drift.js +135 -0
- package/dist/tools/analytics/drift.js.map +1 -0
- package/dist/tools/analytics/drift.test.d.ts +2 -0
- package/dist/tools/analytics/drift.test.d.ts.map +1 -0
- package/dist/tools/analytics/drift.test.js +99 -0
- package/dist/tools/analytics/drift.test.js.map +1 -0
- package/dist/tools/analytics/index.d.ts +10 -0
- package/dist/tools/analytics/index.d.ts.map +1 -0
- package/dist/tools/analytics/index.js +192 -0
- package/dist/tools/analytics/index.js.map +1 -0
- package/dist/tools/analytics/learner.d.ts +29 -0
- package/dist/tools/analytics/learner.d.ts.map +1 -0
- package/dist/tools/analytics/learner.js +135 -0
- package/dist/tools/analytics/learner.js.map +1 -0
- package/dist/tools/analytics/learner.test.d.ts +2 -0
- package/dist/tools/analytics/learner.test.d.ts.map +1 -0
- package/dist/tools/analytics/learner.test.js +118 -0
- package/dist/tools/analytics/learner.test.js.map +1 -0
- package/dist/tools/analytics/observe.d.ts +22 -0
- package/dist/tools/analytics/observe.d.ts.map +1 -0
- package/dist/tools/analytics/observe.js +143 -0
- package/dist/tools/analytics/observe.js.map +1 -0
- package/dist/tools/analytics/observe.test.d.ts +2 -0
- package/dist/tools/analytics/observe.test.d.ts.map +1 -0
- package/dist/tools/analytics/observe.test.js +95 -0
- package/dist/tools/analytics/observe.test.js.map +1 -0
- package/dist/tools/analytics/store.d.ts +29 -0
- package/dist/tools/analytics/store.d.ts.map +1 -0
- package/dist/tools/analytics/store.js +192 -0
- package/dist/tools/analytics/store.js.map +1 -0
- package/dist/tools/analytics/types.d.ts +290 -0
- package/dist/tools/analytics/types.d.ts.map +1 -0
- package/dist/tools/analytics/types.js +7 -0
- package/dist/tools/analytics/types.js.map +1 -0
- package/dist/tools/ast/index.d.ts +8 -0
- package/dist/tools/ast/index.d.ts.map +1 -0
- package/dist/tools/ast/index.js +242 -0
- package/dist/tools/ast/index.js.map +1 -0
- package/dist/tools/ast/indexer.d.ts +41 -0
- package/dist/tools/ast/indexer.d.ts.map +1 -0
- package/dist/tools/ast/indexer.js +617 -0
- package/dist/tools/ast/indexer.js.map +1 -0
- package/dist/tools/ast/store.d.ts +87 -0
- package/dist/tools/ast/store.d.ts.map +1 -0
- package/dist/tools/ast/store.js +280 -0
- package/dist/tools/ast/store.js.map +1 -0
- package/dist/tools/ast/store.test.d.ts +6 -0
- package/dist/tools/ast/store.test.d.ts.map +1 -0
- package/dist/tools/ast/store.test.js +257 -0
- package/dist/tools/ast/store.test.js.map +1 -0
- package/dist/tools/bridge/bridge.d.ts +37 -0
- package/dist/tools/bridge/bridge.d.ts.map +1 -0
- package/dist/tools/bridge/bridge.js +82 -0
- package/dist/tools/bridge/bridge.js.map +1 -0
- package/dist/tools/bridge/bridge.test.d.ts +2 -0
- package/dist/tools/bridge/bridge.test.d.ts.map +1 -0
- package/dist/tools/bridge/bridge.test.js +119 -0
- package/dist/tools/bridge/bridge.test.js.map +1 -0
- package/dist/tools/bridge/index.d.ts +8 -0
- package/dist/tools/bridge/index.d.ts.map +1 -0
- package/dist/tools/bridge/index.js +153 -0
- package/dist/tools/bridge/index.js.map +1 -0
- package/dist/tools/bridge/store.d.ts +45 -0
- package/dist/tools/bridge/store.d.ts.map +1 -0
- package/dist/tools/bridge/store.js +307 -0
- package/dist/tools/bridge/store.js.map +1 -0
- package/dist/tools/bridge/store.test.d.ts +2 -0
- package/dist/tools/bridge/store.test.d.ts.map +1 -0
- package/dist/tools/bridge/store.test.js +180 -0
- package/dist/tools/bridge/store.test.js.map +1 -0
- package/dist/tools/bridge/types.d.ts +44 -0
- package/dist/tools/bridge/types.d.ts.map +1 -0
- package/dist/tools/bridge/types.js +6 -0
- package/dist/tools/bridge/types.js.map +1 -0
- package/dist/tools/evolve/algorithm.d.ts +33 -0
- package/dist/tools/evolve/algorithm.d.ts.map +1 -0
- package/dist/tools/evolve/algorithm.js +64 -0
- package/dist/tools/evolve/algorithm.js.map +1 -0
- package/dist/tools/evolve/algorithm.test.d.ts +6 -0
- package/dist/tools/evolve/algorithm.test.d.ts.map +1 -0
- package/dist/tools/evolve/algorithm.test.js +138 -0
- package/dist/tools/evolve/algorithm.test.js.map +1 -0
- package/dist/tools/evolve/index.d.ts +11 -0
- package/dist/tools/evolve/index.d.ts.map +1 -0
- package/dist/tools/evolve/index.js +300 -0
- package/dist/tools/evolve/index.js.map +1 -0
- package/dist/tools/evolve/store.d.ts +27 -0
- package/dist/tools/evolve/store.d.ts.map +1 -0
- package/dist/tools/evolve/store.js +147 -0
- package/dist/tools/evolve/store.js.map +1 -0
- package/dist/tools/evolve/store.test.d.ts +6 -0
- package/dist/tools/evolve/store.test.d.ts.map +1 -0
- package/dist/tools/evolve/store.test.js +162 -0
- package/dist/tools/evolve/store.test.js.map +1 -0
- package/dist/tools/evolve/types.d.ts +38 -0
- package/dist/tools/evolve/types.d.ts.map +1 -0
- package/dist/tools/evolve/types.js +6 -0
- package/dist/tools/evolve/types.js.map +1 -0
- package/dist/tools/framework/content-loader.d.ts +45 -0
- package/dist/tools/framework/content-loader.d.ts.map +1 -0
- package/dist/tools/framework/content-loader.js +258 -0
- package/dist/tools/framework/content-loader.js.map +1 -0
- package/dist/tools/framework/content-loader.test.d.ts +5 -0
- package/dist/tools/framework/content-loader.test.d.ts.map +1 -0
- package/dist/tools/framework/content-loader.test.js +262 -0
- package/dist/tools/framework/content-loader.test.js.map +1 -0
- package/dist/tools/framework/index.d.ts +30 -0
- package/dist/tools/framework/index.d.ts.map +1 -0
- package/dist/tools/framework/index.js +517 -0
- package/dist/tools/framework/index.js.map +1 -0
- package/dist/tools/framework/session.d.ts +85 -0
- package/dist/tools/framework/session.d.ts.map +1 -0
- package/dist/tools/framework/session.js +311 -0
- package/dist/tools/framework/session.js.map +1 -0
- package/dist/tools/framework/session.test.d.ts +5 -0
- package/dist/tools/framework/session.test.d.ts.map +1 -0
- package/dist/tools/framework/session.test.js +291 -0
- package/dist/tools/framework/session.test.js.map +1 -0
- package/dist/tools/framework/sync-evaluator.d.ts +41 -0
- package/dist/tools/framework/sync-evaluator.d.ts.map +1 -0
- package/dist/tools/framework/sync-evaluator.js +298 -0
- package/dist/tools/framework/sync-evaluator.js.map +1 -0
- package/dist/tools/framework/sync-evaluator.test.d.ts +5 -0
- package/dist/tools/framework/sync-evaluator.test.d.ts.map +1 -0
- package/dist/tools/framework/sync-evaluator.test.js +288 -0
- package/dist/tools/framework/sync-evaluator.test.js.map +1 -0
- package/dist/tools/framework/types.d.ts +279 -0
- package/dist/tools/framework/types.d.ts.map +1 -0
- package/dist/tools/framework/types.js +6 -0
- package/dist/tools/framework/types.js.map +1 -0
- package/dist/tools/framework/workflow-intelligence.d.ts +55 -0
- package/dist/tools/framework/workflow-intelligence.d.ts.map +1 -0
- package/dist/tools/framework/workflow-intelligence.js +199 -0
- package/dist/tools/framework/workflow-intelligence.js.map +1 -0
- package/dist/tools/framework/workflow-intelligence.test.d.ts +6 -0
- package/dist/tools/framework/workflow-intelligence.test.d.ts.map +1 -0
- package/dist/tools/framework/workflow-intelligence.test.js +257 -0
- package/dist/tools/framework/workflow-intelligence.test.js.map +1 -0
- package/dist/tools/framework/workflow-planner.d.ts +10 -0
- package/dist/tools/framework/workflow-planner.d.ts.map +1 -0
- package/dist/tools/framework/workflow-planner.js +214 -0
- package/dist/tools/framework/workflow-planner.js.map +1 -0
- package/dist/tools/framework/workflow-planner.test.d.ts +5 -0
- package/dist/tools/framework/workflow-planner.test.d.ts.map +1 -0
- package/dist/tools/framework/workflow-planner.test.js +137 -0
- package/dist/tools/framework/workflow-planner.test.js.map +1 -0
- package/dist/tools/knowledge/bridge.d.ts +34 -0
- package/dist/tools/knowledge/bridge.d.ts.map +1 -0
- package/dist/tools/knowledge/bridge.js +249 -0
- package/dist/tools/knowledge/bridge.js.map +1 -0
- package/dist/tools/knowledge/bridge.test.d.ts +5 -0
- package/dist/tools/knowledge/bridge.test.d.ts.map +1 -0
- package/dist/tools/knowledge/bridge.test.js +221 -0
- package/dist/tools/knowledge/bridge.test.js.map +1 -0
- package/dist/tools/knowledge/extractor.d.ts +22 -0
- package/dist/tools/knowledge/extractor.d.ts.map +1 -0
- package/dist/tools/knowledge/extractor.js +154 -0
- package/dist/tools/knowledge/extractor.js.map +1 -0
- package/dist/tools/knowledge/index.d.ts +12 -0
- package/dist/tools/knowledge/index.d.ts.map +1 -0
- package/dist/tools/knowledge/index.js +505 -0
- package/dist/tools/knowledge/index.js.map +1 -0
- package/dist/tools/knowledge/retrieval.d.ts +28 -0
- package/dist/tools/knowledge/retrieval.d.ts.map +1 -0
- package/dist/tools/knowledge/retrieval.js +164 -0
- package/dist/tools/knowledge/retrieval.js.map +1 -0
- package/dist/tools/knowledge/store.d.ts +96 -0
- package/dist/tools/knowledge/store.d.ts.map +1 -0
- package/dist/tools/knowledge/store.js +562 -0
- package/dist/tools/knowledge/store.js.map +1 -0
- package/dist/tools/knowledge/store.test.d.ts +6 -0
- package/dist/tools/knowledge/store.test.d.ts.map +1 -0
- package/dist/tools/knowledge/store.test.js +385 -0
- package/dist/tools/knowledge/store.test.js.map +1 -0
- package/dist/tools/knowledge/types.d.ts +168 -0
- package/dist/tools/knowledge/types.d.ts.map +1 -0
- package/dist/tools/knowledge/types.js +6 -0
- package/dist/tools/knowledge/types.js.map +1 -0
- package/dist/tools/memory/evolution.d.ts +31 -0
- package/dist/tools/memory/evolution.d.ts.map +1 -0
- package/dist/tools/memory/evolution.js +130 -0
- package/dist/tools/memory/evolution.js.map +1 -0
- package/dist/tools/memory/index.d.ts +11 -0
- package/dist/tools/memory/index.d.ts.map +1 -0
- package/dist/tools/memory/index.js +239 -0
- package/dist/tools/memory/index.js.map +1 -0
- package/dist/tools/memory/store.d.ts +75 -0
- package/dist/tools/memory/store.d.ts.map +1 -0
- package/dist/tools/memory/store.js +398 -0
- package/dist/tools/memory/store.js.map +1 -0
- package/dist/tools/memory/store.test.d.ts +6 -0
- package/dist/tools/memory/store.test.d.ts.map +1 -0
- package/dist/tools/memory/store.test.js +429 -0
- package/dist/tools/memory/store.test.js.map +1 -0
- package/dist/tools/memory/types.d.ts +171 -0
- package/dist/tools/memory/types.d.ts.map +1 -0
- package/dist/tools/memory/types.js +6 -0
- package/dist/tools/memory/types.js.map +1 -0
- package/dist/tools/pipeline/composer.d.ts +29 -0
- package/dist/tools/pipeline/composer.d.ts.map +1 -0
- package/dist/tools/pipeline/composer.js +225 -0
- package/dist/tools/pipeline/composer.js.map +1 -0
- package/dist/tools/pipeline/composer.test.d.ts +2 -0
- package/dist/tools/pipeline/composer.test.d.ts.map +1 -0
- package/dist/tools/pipeline/composer.test.js +162 -0
- package/dist/tools/pipeline/composer.test.js.map +1 -0
- package/dist/tools/pipeline/index.d.ts +8 -0
- package/dist/tools/pipeline/index.d.ts.map +1 -0
- package/dist/tools/pipeline/index.js +102 -0
- package/dist/tools/pipeline/index.js.map +1 -0
- package/dist/tools/pipeline/planner.d.ts +10 -0
- package/dist/tools/pipeline/planner.d.ts.map +1 -0
- package/dist/tools/pipeline/planner.js +147 -0
- package/dist/tools/pipeline/planner.js.map +1 -0
- package/dist/tools/pipeline/planner.test.d.ts +2 -0
- package/dist/tools/pipeline/planner.test.d.ts.map +1 -0
- package/dist/tools/pipeline/planner.test.js +96 -0
- package/dist/tools/pipeline/planner.test.js.map +1 -0
- package/dist/tools/pipeline/preconditions.d.ts +14 -0
- package/dist/tools/pipeline/preconditions.d.ts.map +1 -0
- package/dist/tools/pipeline/preconditions.js +65 -0
- package/dist/tools/pipeline/preconditions.js.map +1 -0
- package/dist/tools/pipeline/preconditions.test.d.ts +2 -0
- package/dist/tools/pipeline/preconditions.test.d.ts.map +1 -0
- package/dist/tools/pipeline/preconditions.test.js +74 -0
- package/dist/tools/pipeline/preconditions.test.js.map +1 -0
- package/dist/tools/pipeline/types.d.ts +105 -0
- package/dist/tools/pipeline/types.d.ts.map +1 -0
- package/dist/tools/pipeline/types.js +6 -0
- package/dist/tools/pipeline/types.js.map +1 -0
- package/dist/tools/repair/index.d.ts +8 -0
- package/dist/tools/repair/index.d.ts.map +1 -0
- package/dist/tools/repair/index.js +384 -0
- package/dist/tools/repair/index.js.map +1 -0
- package/dist/tools/repair/repairer.d.ts +67 -0
- package/dist/tools/repair/repairer.d.ts.map +1 -0
- package/dist/tools/repair/repairer.js +257 -0
- package/dist/tools/repair/repairer.js.map +1 -0
- package/dist/tools/repair/repairer.test.d.ts +6 -0
- package/dist/tools/repair/repairer.test.d.ts.map +1 -0
- package/dist/tools/repair/repairer.test.js +159 -0
- package/dist/tools/repair/repairer.test.js.map +1 -0
- package/dist/tools/semantic/chunker.d.ts +23 -0
- package/dist/tools/semantic/chunker.d.ts.map +1 -0
- package/dist/tools/semantic/chunker.js +244 -0
- package/dist/tools/semantic/chunker.js.map +1 -0
- package/dist/tools/semantic/embedder.d.ts +16 -0
- package/dist/tools/semantic/embedder.d.ts.map +1 -0
- package/dist/tools/semantic/embedder.js +88 -0
- package/dist/tools/semantic/embedder.js.map +1 -0
- package/dist/tools/semantic/index.d.ts +8 -0
- package/dist/tools/semantic/index.d.ts.map +1 -0
- package/dist/tools/semantic/index.js +144 -0
- package/dist/tools/semantic/index.js.map +1 -0
- package/dist/tools/semantic/store.d.ts +31 -0
- package/dist/tools/semantic/store.d.ts.map +1 -0
- package/dist/tools/semantic/store.js +168 -0
- package/dist/tools/semantic/store.js.map +1 -0
- package/dist/tools/semantic/store.test.d.ts +6 -0
- package/dist/tools/semantic/store.test.d.ts.map +1 -0
- package/dist/tools/semantic/store.test.js +240 -0
- package/dist/tools/semantic/store.test.js.map +1 -0
- package/dist/tools/spec/generator.d.ts +32 -0
- package/dist/tools/spec/generator.d.ts.map +1 -0
- package/dist/tools/spec/generator.js +278 -0
- package/dist/tools/spec/generator.js.map +1 -0
- package/dist/tools/spec/generator.test.d.ts +6 -0
- package/dist/tools/spec/generator.test.d.ts.map +1 -0
- package/dist/tools/spec/generator.test.js +208 -0
- package/dist/tools/spec/generator.test.js.map +1 -0
- package/dist/tools/spec/index.d.ts +11 -0
- package/dist/tools/spec/index.d.ts.map +1 -0
- package/dist/tools/spec/index.js +426 -0
- package/dist/tools/spec/index.js.map +1 -0
- package/dist/tools/spec/store.d.ts +24 -0
- package/dist/tools/spec/store.d.ts.map +1 -0
- package/dist/tools/spec/store.js +104 -0
- package/dist/tools/spec/store.js.map +1 -0
- package/dist/tools/spec/store.test.d.ts +6 -0
- package/dist/tools/spec/store.test.d.ts.map +1 -0
- package/dist/tools/spec/store.test.js +173 -0
- package/dist/tools/spec/store.test.js.map +1 -0
- package/dist/tools/spec/types.d.ts +61 -0
- package/dist/tools/spec/types.d.ts.map +1 -0
- package/dist/tools/spec/types.js +6 -0
- package/dist/tools/spec/types.js.map +1 -0
- package/dist/tools/state/index.d.ts +11 -0
- package/dist/tools/state/index.d.ts.map +1 -0
- package/dist/tools/state/index.js +386 -0
- package/dist/tools/state/index.js.map +1 -0
- package/dist/tools/state/migrate.d.ts +39 -0
- package/dist/tools/state/migrate.d.ts.map +1 -0
- package/dist/tools/state/migrate.js +242 -0
- package/dist/tools/state/migrate.js.map +1 -0
- package/dist/tools/state/migrate.test.d.ts +2 -0
- package/dist/tools/state/migrate.test.d.ts.map +1 -0
- package/dist/tools/state/migrate.test.js +265 -0
- package/dist/tools/state/migrate.test.js.map +1 -0
- package/dist/tools/state/store.d.ts +107 -0
- package/dist/tools/state/store.d.ts.map +1 -0
- package/dist/tools/state/store.js +365 -0
- package/dist/tools/state/store.js.map +1 -0
- package/dist/tools/state/store.test.d.ts +5 -0
- package/dist/tools/state/store.test.d.ts.map +1 -0
- package/dist/tools/state/store.test.js +293 -0
- package/dist/tools/state/store.test.js.map +1 -0
- package/dist/tools/state/types.d.ts +90 -0
- package/dist/tools/state/types.d.ts.map +1 -0
- package/dist/tools/state/types.js +6 -0
- package/dist/tools/state/types.js.map +1 -0
- package/dist/tools/testing/analyzer.d.ts +44 -0
- package/dist/tools/testing/analyzer.d.ts.map +1 -0
- package/dist/tools/testing/analyzer.js +280 -0
- package/dist/tools/testing/analyzer.js.map +1 -0
- package/dist/tools/testing/generator.d.ts +57 -0
- package/dist/tools/testing/generator.d.ts.map +1 -0
- package/dist/tools/testing/generator.js +478 -0
- package/dist/tools/testing/generator.js.map +1 -0
- package/dist/tools/testing/generator.test.d.ts +6 -0
- package/dist/tools/testing/generator.test.d.ts.map +1 -0
- package/dist/tools/testing/generator.test.js +285 -0
- package/dist/tools/testing/generator.test.js.map +1 -0
- package/dist/tools/testing/index.d.ts +8 -0
- package/dist/tools/testing/index.d.ts.map +1 -0
- package/dist/tools/testing/index.js +373 -0
- package/dist/tools/testing/index.js.map +1 -0
- package/dist/utils/embedder.d.ts +7 -0
- package/dist/utils/embedder.d.ts.map +1 -0
- package/dist/utils/embedder.js +13 -0
- package/dist/utils/embedder.js.map +1 -0
- package/dist/utils/execution.d.ts +68 -0
- package/dist/utils/execution.d.ts.map +1 -0
- package/dist/utils/execution.js +467 -0
- package/dist/utils/execution.js.map +1 -0
- package/dist/utils/graph.d.ts +26 -0
- package/dist/utils/graph.d.ts.map +1 -0
- package/dist/utils/graph.js +32 -0
- package/dist/utils/graph.js.map +1 -0
- package/dist/utils/guards.d.ts +32 -0
- package/dist/utils/guards.d.ts.map +1 -0
- package/dist/utils/guards.js +40 -0
- package/dist/utils/guards.js.map +1 -0
- package/dist/utils/ids.d.ts +5 -0
- package/dist/utils/ids.d.ts.map +1 -0
- package/dist/utils/ids.js +7 -0
- package/dist/utils/ids.js.map +1 -0
- package/dist/utils/languages.d.ts +34 -0
- package/dist/utils/languages.d.ts.map +1 -0
- package/dist/utils/languages.js +153 -0
- package/dist/utils/languages.js.map +1 -0
- package/dist/utils/lazy.d.ts +17 -0
- package/dist/utils/lazy.d.ts.map +1 -0
- package/dist/utils/lazy.js +35 -0
- package/dist/utils/lazy.js.map +1 -0
- package/dist/utils/project.d.ts +41 -0
- package/dist/utils/project.d.ts.map +1 -0
- package/dist/utils/project.js +82 -0
- package/dist/utils/project.js.map +1 -0
- package/dist/utils/responses.d.ts +27 -0
- package/dist/utils/responses.d.ts.map +1 -0
- package/dist/utils/responses.js +72 -0
- package/dist/utils/responses.js.map +1 -0
- package/dist/utils/vectors.d.ts +33 -0
- package/dist/utils/vectors.d.ts.map +1 -0
- package/dist/utils/vectors.js +80 -0
- package/dist/utils/vectors.js.map +1 -0
- package/dist/utils/vectors.test.d.ts +6 -0
- package/dist/utils/vectors.test.d.ts.map +1 -0
- package/dist/utils/vectors.test.js +96 -0
- package/dist/utils/vectors.test.js.map +1 -0
- package/package.json +69 -0
- package/scripts/init.js +142 -0
- package/templates/CLAUDE.md.template +96 -0
- package/templates/agents/architecture-concept.md +237 -0
- package/templates/agents/checkpoint-concept.md +218 -0
- package/templates/agents/code-analysis-concept.md +171 -0
- package/templates/agents/compete-control.md +44 -0
- package/templates/agents/compete-evaluator.md +87 -0
- package/templates/agents/compete-treatment.md +55 -0
- package/templates/agents/context-concept.md +254 -0
- package/templates/agents/debate-advocate.md +127 -0
- package/templates/agents/debate-critic.md +119 -0
- package/templates/agents/debate-synthesis.md +160 -0
- package/templates/agents/documentation-concept.md +294 -0
- package/templates/agents/implementation-concept.md +165 -0
- package/templates/agents/quality-concept.md +299 -0
- package/templates/agents/research-concept.md +169 -0
- package/templates/agents/security-concept.md +255 -0
- package/templates/agents/story-concept.md +207 -0
- package/templates/agents/verification-concept.md +456 -0
- package/templates/agents/version-concept.md +163 -0
- package/templates/anchors/directory.anchor.yaml.template +53 -0
- package/templates/anchors/rules.anchor.yaml.template +70 -0
- package/templates/anchors/safety.anchor.yaml.template +96 -0
- package/templates/claude-md-managed.template +105 -0
- package/templates/commands/cache.md.template +439 -0
- package/templates/commands/checkpoint.md.template +121 -0
- package/templates/commands/classify.md.template +138 -0
- package/templates/commands/compete.md.template +90 -0
- package/templates/commands/costs.md.template +111 -0
- package/templates/commands/estimate.md.template +196 -0
- package/templates/commands/explore.md.template +186 -0
- package/templates/commands/feature.md.template +216 -0
- package/templates/commands/forget.md.template +104 -0
- package/templates/commands/global-recall.md.template +250 -0
- package/templates/commands/global-remember.md.template +187 -0
- package/templates/commands/health.md.template +107 -0
- package/templates/commands/help.md.template +253 -0
- package/templates/commands/observe.md.template +211 -0
- package/templates/commands/pr-review.md.template +164 -0
- package/templates/commands/predict-cost.md.template +251 -0
- package/templates/commands/profile.md.template +142 -0
- package/templates/commands/reasoning.md.template +228 -0
- package/templates/commands/recall.md.template +197 -0
- package/templates/commands/remember.md.template +148 -0
- package/templates/commands/replay.md.template +449 -0
- package/templates/commands/restore.md.template +87 -0
- package/templates/commands/retrospective.md.template +47 -0
- package/templates/commands/slo.md.template +286 -0
- package/templates/commands/spec.md.template +164 -0
- package/templates/commands/status.md.template +53 -0
- package/templates/commands/sync.md.template +321 -0
- package/templates/commands/task.md.template +86 -0
- package/templates/commands/trace.md.template +86 -0
- package/templates/commands/visualize.md.template +216 -0
- package/templates/commands/workflow.md.template +375 -0
- package/templates/concepts/README.md +329 -0
- package/templates/concepts/architecture.md.template +74 -0
- package/templates/concepts/code-analysis.md.template +186 -0
- package/templates/concepts/context-compactor.md.template +393 -0
- package/templates/concepts/context.md.template +62 -0
- package/templates/concepts/documentation.md.template +452 -0
- package/templates/concepts/estimator.md.template +214 -0
- package/templates/concepts/exploration.md.template +257 -0
- package/templates/concepts/global-memory.md.template +222 -0
- package/templates/concepts/implementation.md.template +62 -0
- package/templates/concepts/pr-review.md.template +277 -0
- package/templates/concepts/project-profile.md.template +358 -0
- package/templates/concepts/quality.md.template +63 -0
- package/templates/concepts/react-fallback.md.template +286 -0
- package/templates/concepts/research.md.template +221 -0
- package/templates/concepts/retrospective.md.template +93 -0
- package/templates/concepts/security.md.template +442 -0
- package/templates/concepts/slo.md.template +274 -0
- package/templates/concepts/spec.md.template +71 -0
- package/templates/concepts/story.md.template +50 -0
- package/templates/concepts/tool-router.md.template +289 -0
- package/templates/concepts/verification-synthesizer.md.template +279 -0
- package/templates/concepts/version.md.template +61 -0
- package/templates/config.yaml.template +347 -0
- package/templates/examples/README.md +77 -0
- package/templates/examples/architecture/api-design.yaml.template +286 -0
- package/templates/examples/architecture/oauth-authentication.yaml.template +305 -0
- package/templates/health/status.yaml.template +120 -0
- package/templates/hooks/concept-complete.sh.template +45 -0
- package/templates/hooks/lib/common.sh.template +160 -0
- package/templates/hooks/post-commit.sh.template +37 -0
- package/templates/hooks/post-concept-action.template +39 -0
- package/templates/hooks/post-tool-structure-check.sh.template +138 -0
- package/templates/hooks/post-tool-use.sh.template +51 -0
- package/templates/hooks/pre-compact.sh.template +48 -0
- package/templates/hooks/pre-tool-grounding.template +148 -0
- package/templates/hooks/session-exit-checkpoint.sh.template +35 -0
- package/templates/hooks/session-start.sh.template +67 -0
- package/templates/hooks/statusline.sh.template +148 -0
- package/templates/hooks/stop.sh.template +45 -0
- package/templates/hooks/subagent-stop.sh.template +40 -0
- package/templates/hooks/sync-blocked.sh.template +45 -0
- package/templates/hooks/timeout.sh.template +48 -0
- package/templates/hooks/user-prompt-submit.sh.template +68 -0
- package/templates/koan/README.md +58 -0
- package/templates/memory/index.yaml.template +48 -0
- package/templates/memory/procedural/debugging.yaml.template +24 -0
- package/templates/memory/procedural/workflows.yaml.template +22 -0
- package/templates/memory/semantic/architecture.yaml.template +21 -0
- package/templates/memory/semantic/conventions.yaml.template +18 -0
- package/templates/memory/semantic/patterns.yaml.template +21 -0
- package/templates/memory/semantic/preferences.yaml.template +18 -0
- package/templates/prompts/architecture.yaml.template +349 -0
- package/templates/prompts/context.yaml.template +384 -0
- package/templates/prompts/implementation.yaml.template +365 -0
- package/templates/prompts/planning.yaml.template +303 -0
- package/templates/prompts/quality.yaml.template +345 -0
- package/templates/prompts/retrospective.yaml.template +231 -0
- package/templates/prompts/slo.yaml.template +360 -0
- package/templates/prompts/story.yaml.template +236 -0
- package/templates/prompts/tree-of-thoughts.yaml.template +299 -0
- package/templates/prompts/verification.yaml.template +286 -0
- package/templates/prompts/version.yaml.template +279 -0
- package/templates/schemas/agent-schema.json +98 -0
- package/templates/schemas/architecture.schema.json +69 -0
- package/templates/schemas/config-schema.json +165 -0
- package/templates/schemas/implementation.schema.json +75 -0
- package/templates/schemas/planning.schema.json +243 -0
- package/templates/schemas/provenance.schema.json +111 -0
- package/templates/schemas/retrospective.schema.json +174 -0
- package/templates/schemas/review.schema.json +284 -0
- package/templates/schemas/slo.schema.json +443 -0
- package/templates/schemas/story.schema.json +68 -0
- package/templates/schemas/sync-schema.json +196 -0
- package/templates/schemas/task.schema.json +127 -0
- package/templates/schemas/tree-of-thoughts.schema.json +175 -0
- package/templates/schemas/verification.schema.json +106 -0
- package/templates/settings.full.json.template +135 -0
- package/templates/settings.minimal.json.template +68 -0
- package/templates/settings.standard.json.template +135 -0
- package/templates/skills/acceptance-criteria-generation.md.template +330 -0
- package/templates/skills/accessibility-checking.md.template +341 -0
- package/templates/skills/api-design-patterns.md.template +395 -0
- package/templates/skills/batch-processing.md.template +605 -0
- package/templates/skills/branch-strategy.md.template +362 -0
- package/templates/skills/changelog-generation.md.template +403 -0
- package/templates/skills/code-coverage-analysis.md.template +362 -0
- package/templates/skills/code-style-enforcement.md.template +294 -0
- package/templates/skills/code-template-patterns.md.template +419 -0
- package/templates/skills/concept-development.md.template +159 -0
- package/templates/skills/context-prioritization.md.template +306 -0
- package/templates/skills/cost-optimization.md.template +482 -0
- package/templates/skills/cross-project-knowledge.md.template +316 -0
- package/templates/skills/dependency-impact-analysis.md.template +263 -0
- package/templates/skills/documentation-generation.md.template +409 -0
- package/templates/skills/effort-estimation.md.template +350 -0
- package/templates/skills/error-classification.md.template +709 -0
- package/templates/skills/error-messages.md.template +339 -0
- package/templates/skills/ide-diagnostics.md.template +480 -0
- package/templates/skills/incremental-loading.md.template +574 -0
- package/templates/skills/output-caching.md.template +524 -0
- package/templates/skills/performance-estimation.md.template +325 -0
- package/templates/skills/performance-testing-patterns.md.template +341 -0
- package/templates/skills/phase2-optimizations-summary.md.template +458 -0
- package/templates/skills/progressive-disclosure-pattern.md.template +190 -0
- package/templates/skills/project-structure.md.template +372 -0
- package/templates/skills/provenance-analysis.md.template +609 -0
- package/templates/skills/react-executor.md.template +366 -0
- package/templates/skills/refactoring-patterns.md.template +422 -0
- package/templates/skills/release-management.md.template +373 -0
- package/templates/skills/requirement-prioritization.md.template +357 -0
- package/templates/skills/schema-validation.md.template +321 -0
- package/templates/skills/security-design-patterns.md.template +692 -0
- package/templates/skills/security-vulnerability-scanning.md.template +663 -0
- package/templates/skills/semantic-memory.md.template +266 -0
- package/templates/skills/semantic-versioning.md.template +371 -0
- package/templates/skills/smart-retry.md.template +676 -0
- package/templates/skills/smart-summarization.md.template +358 -0
- package/templates/skills/story-decomposition.md.template +278 -0
- package/templates/skills/synchronization-patterns.md.template +303 -0
- package/templates/skills/test-generation-strategy.md.template +247 -0
- package/templates/skills/workflow-replay.md.template +478 -0
- package/templates/skills/wysiwid-principles.md.template +364 -0
- package/templates/skills-manifest.yaml.template +526 -0
- package/templates/stubs/agents/architecture-concept.md +20 -0
- package/templates/stubs/agents/checkpoint-concept.md +19 -0
- package/templates/stubs/agents/code-analysis-concept.md +36 -0
- package/templates/stubs/agents/context-concept.md +37 -0
- package/templates/stubs/agents/debate-advocate.md +12 -0
- package/templates/stubs/agents/debate-critic.md +12 -0
- package/templates/stubs/agents/debate-synthesis.md +12 -0
- package/templates/stubs/agents/documentation-concept.md +39 -0
- package/templates/stubs/agents/implementation-concept.md +41 -0
- package/templates/stubs/agents/quality-concept.md +41 -0
- package/templates/stubs/agents/research-concept.md +35 -0
- package/templates/stubs/agents/security-concept.md +40 -0
- package/templates/stubs/agents/spec-concept.md +35 -0
- package/templates/stubs/agents/story-concept.md +36 -0
- package/templates/stubs/agents/verification-concept.md +39 -0
- package/templates/stubs/agents/version-concept.md +37 -0
- package/templates/stubs/commands/cache.md.template +2 -0
- package/templates/stubs/commands/checkpoint.md.template +2 -0
- package/templates/stubs/commands/classify.md.template +2 -0
- package/templates/stubs/commands/compete.md.template +2 -0
- package/templates/stubs/commands/costs.md.template +2 -0
- package/templates/stubs/commands/estimate.md.template +2 -0
- package/templates/stubs/commands/explore.md.template +2 -0
- package/templates/stubs/commands/feature.md.template +2 -0
- package/templates/stubs/commands/forget.md.template +2 -0
- package/templates/stubs/commands/global-recall.md.template +2 -0
- package/templates/stubs/commands/global-remember.md.template +2 -0
- package/templates/stubs/commands/health.md.template +2 -0
- package/templates/stubs/commands/help.md.template +2 -0
- package/templates/stubs/commands/observe.md.template +2 -0
- package/templates/stubs/commands/pr-review.md.template +2 -0
- package/templates/stubs/commands/predict-cost.md.template +2 -0
- package/templates/stubs/commands/profile.md.template +2 -0
- package/templates/stubs/commands/reasoning.md.template +2 -0
- package/templates/stubs/commands/recall.md.template +2 -0
- package/templates/stubs/commands/remember.md.template +2 -0
- package/templates/stubs/commands/replay.md.template +2 -0
- package/templates/stubs/commands/restore.md.template +2 -0
- package/templates/stubs/commands/retrospective.md.template +2 -0
- package/templates/stubs/commands/slo.md.template +2 -0
- package/templates/stubs/commands/spec.md.template +2 -0
- package/templates/stubs/commands/sync.md.template +2 -0
- package/templates/stubs/commands/task.md.template +2 -0
- package/templates/stubs/commands/trace.md.template +2 -0
- package/templates/stubs/commands/visualize.md.template +2 -0
- package/templates/stubs/commands/workflow.md.template +2 -0
- package/templates/synchronizations/archive/adaptive-learning.yaml.template +595 -0
- package/templates/synchronizations/archive/code-understanding-flow.yaml.template +533 -0
- package/templates/synchronizations/archive/collaboration-flow.yaml.template +521 -0
- package/templates/synchronizations/archive/context-folding.yaml.template +353 -0
- package/templates/synchronizations/archive/dead-letter-queue.yaml.template +530 -0
- package/templates/synchronizations/archive/documentation-flow.yaml.template +560 -0
- package/templates/synchronizations/archive/error-recovery-flow.yaml.template +1031 -0
- package/templates/synchronizations/archive/execution-loop.yaml.template +336 -0
- package/templates/synchronizations/archive/exploration-flow.yaml.template +369 -0
- package/templates/synchronizations/archive/feature-development.yaml.template +2145 -0
- package/templates/synchronizations/archive/learning-loop.yaml.template +657 -0
- package/templates/synchronizations/archive/multi-verify.yaml.template +346 -0
- package/templates/synchronizations/archive/planning-flow.yaml.template +312 -0
- package/templates/synchronizations/archive/retrospective-flow.yaml.template +277 -0
- package/templates/synchronizations/archive/security-flow.yaml.template +477 -0
- package/templates/synchronizations/archive/slo-monitoring.yaml.template +209 -0
- package/templates/synchronizations/archive/task-routing.yaml.template +489 -0
- package/templates/synchronizations/archive/test-driven.yaml.template +291 -0
- package/templates/synchronizations/archive/tool-routing.yaml.template +326 -0
- package/templates/synchronizations/archive/verification-flow.yaml.template +407 -0
- package/templates/synchronizations/error-policy.yaml.template +188 -0
- package/templates/synchronizations/main.sync.template +319 -0
- package/templates/synchronizations/slo-registry.yaml.template +229 -0
- package/templates/tasks/task.yaml.template +67 -0
- package/templates/zen-profile.yaml.template +14 -0
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
# Documentation Flow Synchronizations
|
|
2
|
+
# Triggers documentation generation at every workflow phase
|
|
3
|
+
#
|
|
4
|
+
# WYSIWID Principle: This YAML IS the documentation workflow logic
|
|
5
|
+
# Read this file to understand exactly when documentation is generated
|
|
6
|
+
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
|
|
9
|
+
# Global SLO defaults for documentation generation
|
|
10
|
+
slo_defaults:
|
|
11
|
+
expected_duration_ms: 3000
|
|
12
|
+
max_duration_ms: 15000
|
|
13
|
+
expected_cost_usd: 0.0003
|
|
14
|
+
max_cost_usd: 0.001
|
|
15
|
+
expected_context_tokens: 1500
|
|
16
|
+
success_rate_target: 0.95
|
|
17
|
+
on_timeout:
|
|
18
|
+
action: "skip"
|
|
19
|
+
message: "Documentation generation timed out - can be regenerated manually"
|
|
20
|
+
on_cost_exceeded:
|
|
21
|
+
action: "alert"
|
|
22
|
+
continue: true
|
|
23
|
+
|
|
24
|
+
synchronizations:
|
|
25
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
26
|
+
# Phase 1: Story → Requirements Documentation
|
|
27
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
28
|
+
#
|
|
29
|
+
# Generates user-facing requirements docs immediately after
|
|
30
|
+
# story is captured, ensuring requirements are documented
|
|
31
|
+
# before any technical work begins.
|
|
32
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
33
|
+
|
|
34
|
+
- id: "story-to-requirements-docs"
|
|
35
|
+
description: "Generate requirements documentation when story is ready"
|
|
36
|
+
when:
|
|
37
|
+
concept: "story"
|
|
38
|
+
action: "create"
|
|
39
|
+
status: "completed"
|
|
40
|
+
where:
|
|
41
|
+
query: "story.status == 'ready' AND story.acceptance_criteria.length > 0"
|
|
42
|
+
then:
|
|
43
|
+
- concept: "documentation"
|
|
44
|
+
action: "generate_requirements"
|
|
45
|
+
model: "sonnet"
|
|
46
|
+
parallel: true # Runs in parallel with architecture
|
|
47
|
+
inputs:
|
|
48
|
+
story_id: "${story.id}"
|
|
49
|
+
title: "${story.title}"
|
|
50
|
+
description: "${story.description}"
|
|
51
|
+
acceptance_criteria: "${story.acceptance_criteria}"
|
|
52
|
+
context: "${story.context}"
|
|
53
|
+
|
|
54
|
+
slo_expectations:
|
|
55
|
+
expected_duration_ms: 3000
|
|
56
|
+
max_duration_ms: 15000
|
|
57
|
+
expected_cost_usd: 0.0003
|
|
58
|
+
max_cost_usd: 0.001
|
|
59
|
+
success_rate_target: 0.95
|
|
60
|
+
|
|
61
|
+
on_timeout:
|
|
62
|
+
action: "skip" # Don't block workflow for docs
|
|
63
|
+
fallback: "Generate docs manually later"
|
|
64
|
+
|
|
65
|
+
provenance:
|
|
66
|
+
flow_id: "${flow.id}"
|
|
67
|
+
reason: "Story ready - generating requirements documentation"
|
|
68
|
+
category: "core"
|
|
69
|
+
|
|
70
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
71
|
+
# Phase 2: Architecture → ADRs and Diagrams
|
|
72
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
73
|
+
#
|
|
74
|
+
# Generates Architecture Decision Records (ADRs) and
|
|
75
|
+
# technical diagrams (component, sequence, data flow)
|
|
76
|
+
# capturing the reasoning behind technical decisions.
|
|
77
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
78
|
+
|
|
79
|
+
- id: "arch-to-architecture-docs"
|
|
80
|
+
description: "Generate ADRs and diagrams when architecture is complete"
|
|
81
|
+
when:
|
|
82
|
+
concept: "architecture"
|
|
83
|
+
action: "design"
|
|
84
|
+
status: "completed"
|
|
85
|
+
where:
|
|
86
|
+
query: "architecture.status == 'completed' AND architecture.decisions.length > 0"
|
|
87
|
+
then:
|
|
88
|
+
- concept: "documentation"
|
|
89
|
+
action: "generate_architecture"
|
|
90
|
+
model: "sonnet"
|
|
91
|
+
parallel: true # Runs in parallel with implementation
|
|
92
|
+
inputs:
|
|
93
|
+
arch_id: "${architecture.id}"
|
|
94
|
+
story_id: "${story.id}"
|
|
95
|
+
approaches_evaluated: "${architecture.approaches_evaluated}"
|
|
96
|
+
selected_approach: "${architecture.selected_approach}"
|
|
97
|
+
technical_design: "${architecture.technical_design}"
|
|
98
|
+
risks: "${architecture.risks}"
|
|
99
|
+
security_considerations: "${architecture.security_considerations}"
|
|
100
|
+
|
|
101
|
+
slo_expectations:
|
|
102
|
+
expected_duration_ms: 5000
|
|
103
|
+
max_duration_ms: 20000
|
|
104
|
+
expected_cost_usd: 0.0005
|
|
105
|
+
max_cost_usd: 0.002
|
|
106
|
+
success_rate_target: 0.95
|
|
107
|
+
|
|
108
|
+
on_timeout:
|
|
109
|
+
action: "skip"
|
|
110
|
+
fallback: "Generate ADRs manually later"
|
|
111
|
+
|
|
112
|
+
provenance:
|
|
113
|
+
flow_id: "${flow.id}"
|
|
114
|
+
reason: "Architecture complete - generating ADRs and diagrams"
|
|
115
|
+
category: "core"
|
|
116
|
+
|
|
117
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
118
|
+
# Phase 3: Implementation → API Documentation
|
|
119
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
120
|
+
#
|
|
121
|
+
# Generates API reference documentation, inline code
|
|
122
|
+
# comments (JSDoc/TSDoc), usage examples, and updates
|
|
123
|
+
# README with new feature information.
|
|
124
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
125
|
+
|
|
126
|
+
- id: "impl-to-api-docs"
|
|
127
|
+
description: "Generate API documentation when implementation is complete"
|
|
128
|
+
when:
|
|
129
|
+
concept: "implementation"
|
|
130
|
+
action: "generate"
|
|
131
|
+
status: "completed"
|
|
132
|
+
where:
|
|
133
|
+
query: "implementation.status == 'completed' AND implementation.files_created.length > 0"
|
|
134
|
+
then:
|
|
135
|
+
- concept: "documentation"
|
|
136
|
+
action: "generate_api"
|
|
137
|
+
model: "sonnet"
|
|
138
|
+
parallel: true # Runs in parallel with quality review/test
|
|
139
|
+
inputs:
|
|
140
|
+
impl_id: "${implementation.id}"
|
|
141
|
+
arch_id: "${architecture.id}"
|
|
142
|
+
story_id: "${story.id}"
|
|
143
|
+
files_created: "${implementation.files_created}"
|
|
144
|
+
files_modified: "${implementation.files_modified}"
|
|
145
|
+
technical_spec: "${architecture.technical_spec}"
|
|
146
|
+
|
|
147
|
+
slo_expectations:
|
|
148
|
+
expected_duration_ms: 5000
|
|
149
|
+
max_duration_ms: 20000
|
|
150
|
+
expected_cost_usd: 0.0005
|
|
151
|
+
max_cost_usd: 0.002
|
|
152
|
+
success_rate_target: 0.95
|
|
153
|
+
|
|
154
|
+
on_timeout:
|
|
155
|
+
action: "skip"
|
|
156
|
+
fallback: "Generate API docs manually later"
|
|
157
|
+
|
|
158
|
+
provenance:
|
|
159
|
+
flow_id: "${flow.id}"
|
|
160
|
+
reason: "Implementation complete - generating API documentation"
|
|
161
|
+
category: "core"
|
|
162
|
+
|
|
163
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
164
|
+
# Phase 4: Quality → Test Documentation
|
|
165
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
166
|
+
#
|
|
167
|
+
# Generates test documentation including test summaries,
|
|
168
|
+
# coverage reports, and test case descriptions.
|
|
169
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
170
|
+
|
|
171
|
+
- id: "quality-to-test-docs"
|
|
172
|
+
description: "Generate test documentation when tests complete"
|
|
173
|
+
when:
|
|
174
|
+
concept: "quality"
|
|
175
|
+
action: "test"
|
|
176
|
+
status: "completed"
|
|
177
|
+
where:
|
|
178
|
+
query: "test.status == 'passed' AND test.coverage > 0"
|
|
179
|
+
then:
|
|
180
|
+
- concept: "documentation"
|
|
181
|
+
action: "generate_tests"
|
|
182
|
+
model: "sonnet"
|
|
183
|
+
inputs:
|
|
184
|
+
test_id: "${test.id}"
|
|
185
|
+
impl_id: "${implementation.id}"
|
|
186
|
+
story_id: "${story.id}"
|
|
187
|
+
test_results: "${test.results}"
|
|
188
|
+
coverage: "${test.coverage}"
|
|
189
|
+
test_suites: "${test.test_suites}"
|
|
190
|
+
|
|
191
|
+
slo_expectations:
|
|
192
|
+
expected_duration_ms: 3000
|
|
193
|
+
max_duration_ms: 15000
|
|
194
|
+
expected_cost_usd: 0.0003
|
|
195
|
+
max_cost_usd: 0.001
|
|
196
|
+
success_rate_target: 0.95
|
|
197
|
+
|
|
198
|
+
on_timeout:
|
|
199
|
+
action: "skip"
|
|
200
|
+
fallback: "Generate test docs manually later"
|
|
201
|
+
|
|
202
|
+
provenance:
|
|
203
|
+
flow_id: "${flow.id}"
|
|
204
|
+
reason: "Tests complete - generating test documentation"
|
|
205
|
+
category: "core"
|
|
206
|
+
|
|
207
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
208
|
+
# Phase 5: Pre-Commit → Documentation Validation
|
|
209
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
210
|
+
#
|
|
211
|
+
# Validates all documentation is complete before
|
|
212
|
+
# allowing version commit. Ensures no feature ships
|
|
213
|
+
# without complete documentation.
|
|
214
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
215
|
+
|
|
216
|
+
- id: "pre-commit-doc-validation"
|
|
217
|
+
description: "Validate documentation completeness before commit"
|
|
218
|
+
when:
|
|
219
|
+
concept: "quality"
|
|
220
|
+
action: "review"
|
|
221
|
+
status: "completed"
|
|
222
|
+
where:
|
|
223
|
+
# RACE CONDITION FIX: Ensure ALL parallel docs are ready before validation
|
|
224
|
+
# Review may complete before parallel doc generation finishes
|
|
225
|
+
query: "review.status == 'approved'"
|
|
226
|
+
|
|
227
|
+
# Dependency tracking to prevent race condition
|
|
228
|
+
# Validation must wait for all documentation to be generated
|
|
229
|
+
depends_on:
|
|
230
|
+
required:
|
|
231
|
+
- id: "story-to-requirements-docs"
|
|
232
|
+
status: "completed|skipped"
|
|
233
|
+
timeout_ms: 15000
|
|
234
|
+
- id: "arch-to-architecture-docs"
|
|
235
|
+
status: "completed|skipped"
|
|
236
|
+
timeout_ms: 20000
|
|
237
|
+
- id: "impl-to-api-docs"
|
|
238
|
+
status: "completed|skipped"
|
|
239
|
+
timeout_ms: 20000
|
|
240
|
+
optional:
|
|
241
|
+
- id: "quality-to-test-docs"
|
|
242
|
+
status: "completed|skipped"
|
|
243
|
+
timeout_ms: 15000
|
|
244
|
+
note: "May not exist if tests not run yet"
|
|
245
|
+
|
|
246
|
+
on_dependency_timeout:
|
|
247
|
+
action: "proceed_with_available"
|
|
248
|
+
log_missing: true
|
|
249
|
+
message: "Some documentation may be incomplete - validation will flag missing docs"
|
|
250
|
+
|
|
251
|
+
then:
|
|
252
|
+
- concept: "documentation"
|
|
253
|
+
action: "validate"
|
|
254
|
+
model: "sonnet"
|
|
255
|
+
inputs:
|
|
256
|
+
flow_id: "${flow.id}"
|
|
257
|
+
story_id: "${story.id}"
|
|
258
|
+
arch_id: "${architecture.id}"
|
|
259
|
+
impl_id: "${implementation.id}"
|
|
260
|
+
test_id: "${test.id}"
|
|
261
|
+
# Pass dependency status for accurate validation
|
|
262
|
+
doc_status:
|
|
263
|
+
requirements: "${depends_on.story-to-requirements-docs.status}"
|
|
264
|
+
architecture: "${depends_on.arch-to-architecture-docs.status}"
|
|
265
|
+
api: "${depends_on.impl-to-api-docs.status}"
|
|
266
|
+
tests: "${depends_on.quality-to-test-docs.status || 'pending'}"
|
|
267
|
+
|
|
268
|
+
slo_expectations:
|
|
269
|
+
expected_duration_ms: 2000
|
|
270
|
+
max_duration_ms: 10000
|
|
271
|
+
expected_cost_usd: 0.0002
|
|
272
|
+
max_cost_usd: 0.0005
|
|
273
|
+
success_rate_target: 0.99
|
|
274
|
+
|
|
275
|
+
provenance:
|
|
276
|
+
flow_id: "${flow.id}"
|
|
277
|
+
reason: "Quality approved - validating documentation completeness (with dependency wait)"
|
|
278
|
+
dependencies_checked: true
|
|
279
|
+
category: "validation"
|
|
280
|
+
|
|
281
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
282
|
+
# Post-Commit: Update Documentation Index
|
|
283
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
284
|
+
#
|
|
285
|
+
# Updates the documentation index and navigation after
|
|
286
|
+
# all documentation is generated and validated.
|
|
287
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
288
|
+
|
|
289
|
+
- id: "post-commit-doc-index"
|
|
290
|
+
description: "Update documentation index after commit"
|
|
291
|
+
when:
|
|
292
|
+
concept: "version"
|
|
293
|
+
action: "commit"
|
|
294
|
+
status: "completed"
|
|
295
|
+
then:
|
|
296
|
+
- concept: "documentation"
|
|
297
|
+
action: "update_index"
|
|
298
|
+
model: "sonnet"
|
|
299
|
+
inputs:
|
|
300
|
+
flow_id: "${flow.id}"
|
|
301
|
+
docs_generated:
|
|
302
|
+
- "${req_doc.path}"
|
|
303
|
+
- "${arch_doc.path}"
|
|
304
|
+
- "${api_doc.path}"
|
|
305
|
+
- "${test_doc.path}"
|
|
306
|
+
|
|
307
|
+
slo_expectations:
|
|
308
|
+
expected_duration_ms: 2000
|
|
309
|
+
max_duration_ms: 10000
|
|
310
|
+
expected_cost_usd: 0.0002
|
|
311
|
+
max_cost_usd: 0.0005
|
|
312
|
+
success_rate_target: 0.99
|
|
313
|
+
|
|
314
|
+
provenance:
|
|
315
|
+
flow_id: "${flow.id}"
|
|
316
|
+
reason: "Commit complete - updating documentation index"
|
|
317
|
+
category: "maintenance"
|
|
318
|
+
|
|
319
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
320
|
+
# Post-Commit: Auto-Generate Changelog Entry
|
|
321
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
322
|
+
#
|
|
323
|
+
# Automatically generates a structured changelog entry
|
|
324
|
+
# from the completed feature workflow, capturing:
|
|
325
|
+
# - Story summary and type
|
|
326
|
+
# - Files changed with categories
|
|
327
|
+
# - Breaking changes if any
|
|
328
|
+
# - Links to related docs
|
|
329
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
330
|
+
|
|
331
|
+
- id: "commit-to-changelog"
|
|
332
|
+
description: "Auto-generate changelog entry after successful commit"
|
|
333
|
+
when:
|
|
334
|
+
concept: "version"
|
|
335
|
+
action: "commit"
|
|
336
|
+
status: "completed"
|
|
337
|
+
where:
|
|
338
|
+
query: "commit.status == 'success' AND story.id != null"
|
|
339
|
+
then:
|
|
340
|
+
- concept: "documentation"
|
|
341
|
+
action: "generate_changelog_entry"
|
|
342
|
+
model: "sonnet"
|
|
343
|
+
inputs:
|
|
344
|
+
commit_sha: "${commit.sha}"
|
|
345
|
+
commit_message: "${commit.message}"
|
|
346
|
+
story_id: "${story.id}"
|
|
347
|
+
story_title: "${story.title}"
|
|
348
|
+
story_type: "${story.type}" # feature, fix, refactor, docs, etc.
|
|
349
|
+
files_created: "${implementation.files_created}"
|
|
350
|
+
files_modified: "${implementation.files_modified}"
|
|
351
|
+
breaking_changes: "${architecture.breaking_changes || []}"
|
|
352
|
+
deprecations: "${architecture.deprecations || []}"
|
|
353
|
+
security_implications: "${architecture.security_considerations}"
|
|
354
|
+
flow_id: "${flow.id}"
|
|
355
|
+
total_cost: "${flow.total_cost}"
|
|
356
|
+
|
|
357
|
+
slo_expectations:
|
|
358
|
+
expected_duration_ms: 2000
|
|
359
|
+
max_duration_ms: 10000
|
|
360
|
+
expected_cost_usd: 0.0002
|
|
361
|
+
max_cost_usd: 0.0005
|
|
362
|
+
success_rate_target: 0.99
|
|
363
|
+
|
|
364
|
+
on_timeout:
|
|
365
|
+
action: "skip"
|
|
366
|
+
fallback: "Changelog entry can be added manually"
|
|
367
|
+
|
|
368
|
+
provenance:
|
|
369
|
+
flow_id: "${flow.id}"
|
|
370
|
+
reason: "Commit successful - auto-generating changelog entry"
|
|
371
|
+
category: "core"
|
|
372
|
+
|
|
373
|
+
# Append to CHANGELOG.md if entry was generated
|
|
374
|
+
- id: "changelog-entry-to-file"
|
|
375
|
+
description: "Append generated changelog entry to CHANGELOG.md"
|
|
376
|
+
when:
|
|
377
|
+
concept: "documentation"
|
|
378
|
+
action: "generate_changelog_entry"
|
|
379
|
+
status: "completed"
|
|
380
|
+
where:
|
|
381
|
+
query: "changelog_entry.content != null"
|
|
382
|
+
then:
|
|
383
|
+
- concept: "documentation"
|
|
384
|
+
action: "append_changelog"
|
|
385
|
+
model: "sonnet"
|
|
386
|
+
inputs:
|
|
387
|
+
entry: "${changelog_entry.content}"
|
|
388
|
+
version: "${project.version}"
|
|
389
|
+
date: "${commit.date}"
|
|
390
|
+
changelog_path: "CHANGELOG.md"
|
|
391
|
+
format: "keep-a-changelog" # https://keepachangelog.com
|
|
392
|
+
sections:
|
|
393
|
+
- "Added"
|
|
394
|
+
- "Changed"
|
|
395
|
+
- "Deprecated"
|
|
396
|
+
- "Removed"
|
|
397
|
+
- "Fixed"
|
|
398
|
+
- "Security"
|
|
399
|
+
|
|
400
|
+
slo_expectations:
|
|
401
|
+
expected_duration_ms: 1000
|
|
402
|
+
max_duration_ms: 5000
|
|
403
|
+
expected_cost_usd: 0.0001
|
|
404
|
+
max_cost_usd: 0.0003
|
|
405
|
+
success_rate_target: 0.99
|
|
406
|
+
|
|
407
|
+
provenance:
|
|
408
|
+
flow_id: "${flow.id}"
|
|
409
|
+
reason: "Changelog entry generated - appending to CHANGELOG.md"
|
|
410
|
+
category: "core"
|
|
411
|
+
|
|
412
|
+
# Changelog consolidation (event-driven)
|
|
413
|
+
# Triggers when changelog entries accumulate past threshold, not on a fixed schedule
|
|
414
|
+
- id: "changelog-consolidation"
|
|
415
|
+
description: "Consolidate changelog entries when threshold reached"
|
|
416
|
+
when:
|
|
417
|
+
concept: "documentation"
|
|
418
|
+
action: "append_changelog"
|
|
419
|
+
status: "completed"
|
|
420
|
+
where:
|
|
421
|
+
# Event-driven: trigger when entry count >= 5 OR any high-priority entry
|
|
422
|
+
query: "changelog.pending_entries.count >= 5 OR changelog.pending_entries.any(e => e.priority == 'high')"
|
|
423
|
+
then:
|
|
424
|
+
- concept: "documentation"
|
|
425
|
+
action: "consolidate_changelog"
|
|
426
|
+
model: "sonnet"
|
|
427
|
+
inputs:
|
|
428
|
+
pending_entries: "${changelog.pending_entries}"
|
|
429
|
+
consolidation_strategy: "group_by_type"
|
|
430
|
+
remove_duplicates: true
|
|
431
|
+
format: "keep-a-changelog"
|
|
432
|
+
trigger_reason: "${changelog.pending_entries.count >= 5 ? 'entry_threshold' : 'high_priority_entry'}"
|
|
433
|
+
|
|
434
|
+
slo_expectations:
|
|
435
|
+
expected_duration_ms: 5000
|
|
436
|
+
max_duration_ms: 20000
|
|
437
|
+
expected_cost_usd: 0.001
|
|
438
|
+
max_cost_usd: 0.003
|
|
439
|
+
expected_context_tokens: 3000
|
|
440
|
+
on_timeout:
|
|
441
|
+
action: "skip"
|
|
442
|
+
fallback: "Skip consolidation - will trigger again on next entry"
|
|
443
|
+
|
|
444
|
+
provenance:
|
|
445
|
+
flow_id: "${flow.id}"
|
|
446
|
+
reason: "Changelog threshold reached - consolidating entries"
|
|
447
|
+
category: "maintenance"
|
|
448
|
+
|
|
449
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
450
|
+
# Error Recovery: Documentation Validation Failed
|
|
451
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
452
|
+
|
|
453
|
+
- id: "doc-validation-failed"
|
|
454
|
+
description: "When documentation validation fails, ask user how to proceed"
|
|
455
|
+
when:
|
|
456
|
+
concept: "documentation"
|
|
457
|
+
action: "validate"
|
|
458
|
+
status: "completed"
|
|
459
|
+
where:
|
|
460
|
+
query: "validation.status == 'failed' AND validation.missing.length > 0"
|
|
461
|
+
then:
|
|
462
|
+
- action: "ask_user"
|
|
463
|
+
questions:
|
|
464
|
+
- question: "Documentation validation failed. Missing: ${validation.missing}. How should we proceed?"
|
|
465
|
+
header: "Missing Docs"
|
|
466
|
+
multiSelect: false
|
|
467
|
+
options:
|
|
468
|
+
- label: "Generate missing docs"
|
|
469
|
+
description: "Automatically generate the missing documentation"
|
|
470
|
+
- label: "Skip and commit anyway"
|
|
471
|
+
description: "Proceed without complete documentation (not recommended)"
|
|
472
|
+
- label: "Cancel commit"
|
|
473
|
+
description: "Stop and review what's missing"
|
|
474
|
+
|
|
475
|
+
on_answer:
|
|
476
|
+
"Generate missing docs":
|
|
477
|
+
- concept: "documentation"
|
|
478
|
+
action: "generate_missing"
|
|
479
|
+
model: "sonnet"
|
|
480
|
+
inputs:
|
|
481
|
+
missing: "${validation.missing}"
|
|
482
|
+
flow_id: "${flow.id}"
|
|
483
|
+
|
|
484
|
+
"Skip and commit anyway":
|
|
485
|
+
- action: "set_flag"
|
|
486
|
+
flag: "documentation.skip_validation"
|
|
487
|
+
value: true
|
|
488
|
+
- concept: "version"
|
|
489
|
+
action: "commit"
|
|
490
|
+
model: "sonnet"
|
|
491
|
+
inputs:
|
|
492
|
+
skip_doc_validation: true
|
|
493
|
+
|
|
494
|
+
"Cancel commit":
|
|
495
|
+
- action: "notify"
|
|
496
|
+
message: "Commit cancelled. Review missing documentation: ${validation.missing}"
|
|
497
|
+
|
|
498
|
+
slo_expectations:
|
|
499
|
+
expected_duration_ms: 30000
|
|
500
|
+
max_duration_ms: 120000
|
|
501
|
+
expected_cost_usd: 0.001
|
|
502
|
+
max_cost_usd: 0.005
|
|
503
|
+
expected_context_tokens: 2000
|
|
504
|
+
on_timeout:
|
|
505
|
+
action: "escalate"
|
|
506
|
+
message: "User decision timed out"
|
|
507
|
+
|
|
508
|
+
provenance:
|
|
509
|
+
flow_id: "${flow.id}"
|
|
510
|
+
reason: "Documentation validation failed - user decision required"
|
|
511
|
+
decision_point: true
|
|
512
|
+
user_interaction: "ask_user_question"
|
|
513
|
+
category: "recovery"
|
|
514
|
+
|
|
515
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
516
|
+
# Documentation Flow Summary
|
|
517
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
518
|
+
#
|
|
519
|
+
# Complete documentation flow:
|
|
520
|
+
#
|
|
521
|
+
# Story ──────────────────┬──> Requirements Docs
|
|
522
|
+
# │
|
|
523
|
+
# Architecture ───────────┼──> ADRs + Diagrams
|
|
524
|
+
# │
|
|
525
|
+
# Implementation ─────────┼──> API Docs + Examples
|
|
526
|
+
# │
|
|
527
|
+
# Quality (Tests) ────────┼──> Test Documentation
|
|
528
|
+
# │
|
|
529
|
+
# Quality (Review) ───────┴──> Validation
|
|
530
|
+
# │
|
|
531
|
+
# v
|
|
532
|
+
# Version ──────────────────> Update Index
|
|
533
|
+
# │
|
|
534
|
+
# └──> Changelog Entry ──> CHANGELOG.md
|
|
535
|
+
#
|
|
536
|
+
# Documentation Types Generated:
|
|
537
|
+
# - Feature specifications (docs/features/)
|
|
538
|
+
# - Requirements summaries (docs/requirements/)
|
|
539
|
+
# - ADRs (docs/adr/)
|
|
540
|
+
# - Component diagrams (docs/architecture/components/)
|
|
541
|
+
# - Sequence diagrams (docs/architecture/sequences/)
|
|
542
|
+
# - Data flow docs (docs/architecture/data-flow/)
|
|
543
|
+
# - API reference (docs/api/)
|
|
544
|
+
# - Usage examples (docs/examples/)
|
|
545
|
+
# - Test documentation (docs/testing/)
|
|
546
|
+
# - Coverage badges (docs/badges/)
|
|
547
|
+
# - README updates
|
|
548
|
+
# - CHANGELOG.md entries (auto-generated)
|
|
549
|
+
#
|
|
550
|
+
# Cost per Feature:
|
|
551
|
+
# - Requirements: $0.0003
|
|
552
|
+
# - Architecture: $0.0005
|
|
553
|
+
# - API: $0.0005
|
|
554
|
+
# - Tests: $0.0003
|
|
555
|
+
# - Validation: $0.0002
|
|
556
|
+
# - Index: $0.0002
|
|
557
|
+
# - Changelog: $0.0003
|
|
558
|
+
# - Total: ~$0.0023
|
|
559
|
+
#
|
|
560
|
+
# Files Generated per Feature: 8-12 documents + changelog entry
|