@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,216 @@
|
|
|
1
|
+
Create a new feature using the Story concept, then automatically evaluate synchronizations.
|
|
2
|
+
|
|
3
|
+
When the user runs this command, you should:
|
|
4
|
+
|
|
5
|
+
1. **Recall Relevant Memories** (automatic, fast)
|
|
6
|
+
- Extract keywords from the feature description
|
|
7
|
+
- Use `memory_recall` to search for relevant memories:
|
|
8
|
+
- Architecture patterns that match keywords
|
|
9
|
+
- Conventions related to the feature area
|
|
10
|
+
- Past patterns from similar features
|
|
11
|
+
- Display relevant memories (if any) before proceeding:
|
|
12
|
+
```
|
|
13
|
+
📚 Relevant memories found:
|
|
14
|
+
- [architecture] "Authentication uses JWT with RS256" (high confidence)
|
|
15
|
+
- [patterns] "API endpoints follow /api/v1/{resource} convention"
|
|
16
|
+
```
|
|
17
|
+
- If no relevant memories, proceed silently
|
|
18
|
+
|
|
19
|
+
2. **Invoke Story Concept**
|
|
20
|
+
- Extract title from user input
|
|
21
|
+
- Use the Task tool with subagent_type matching the story concept
|
|
22
|
+
- Explicitly request model="sonnet" for cost efficiency
|
|
23
|
+
- Include relevant memories as context for the story concept
|
|
24
|
+
- The concept will prompt for additional details if needed
|
|
25
|
+
|
|
26
|
+
3. **Read Story Output**
|
|
27
|
+
- Use `zen_story_get` with the story ID to retrieve the story
|
|
28
|
+
- Check the status field
|
|
29
|
+
|
|
30
|
+
4. **Evaluate Synchronizations Automatically**
|
|
31
|
+
- Read `.claude/synchronizations/feature-development.yaml`
|
|
32
|
+
- Check `story-to-arch` rule:
|
|
33
|
+
- when: story.create completed
|
|
34
|
+
- where: story.status == 'ready' AND criteria.length > 0
|
|
35
|
+
- then: architecture.design
|
|
36
|
+
|
|
37
|
+
5. **Continue Workflow**
|
|
38
|
+
- If rule matches, automatically invoke Architecture concept
|
|
39
|
+
- Show progress to user
|
|
40
|
+
- Offer to continue full workflow
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
/feature "Add dark mode support"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Process Flow
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
User provides feature description
|
|
52
|
+
↓
|
|
53
|
+
Recall relevant memories (fast, ~5ms cached)
|
|
54
|
+
↓
|
|
55
|
+
Display relevant context (if any)
|
|
56
|
+
↓
|
|
57
|
+
Invoke Story concept (Sonnet) with memory context
|
|
58
|
+
↓
|
|
59
|
+
Story saved via zen_story_save
|
|
60
|
+
↓
|
|
61
|
+
Read story output and sync rules
|
|
62
|
+
↓
|
|
63
|
+
Evaluate story-to-arch rule
|
|
64
|
+
↓ (if matched)
|
|
65
|
+
Ask user: Continue with architecture? (y/n)
|
|
66
|
+
↓ (if yes)
|
|
67
|
+
Invoke Architecture concept (Sonnet)
|
|
68
|
+
↓
|
|
69
|
+
Auto-remember architecture decisions
|
|
70
|
+
↓
|
|
71
|
+
Evaluate arch-to-impl rule
|
|
72
|
+
↓
|
|
73
|
+
Continue automatically...
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Example: Automatic Workflow
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
User: /feature "Add user authentication"
|
|
80
|
+
|
|
81
|
+
You: I'll create a new feature story for user authentication.
|
|
82
|
+
|
|
83
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
84
|
+
Recalling Relevant Memories
|
|
85
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
86
|
+
|
|
87
|
+
📚 Found 2 relevant memories:
|
|
88
|
+
- [architecture] "API uses JWT tokens with 24h expiry" (high)
|
|
89
|
+
- [conventions] "Auth middleware at src/middleware/auth.ts" (medium)
|
|
90
|
+
|
|
91
|
+
These will be included as context for story capture.
|
|
92
|
+
|
|
93
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
94
|
+
Phase 1: Story Capture
|
|
95
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
96
|
+
|
|
97
|
+
[Invoke Task tool → story concept → model: sonnet]
|
|
98
|
+
|
|
99
|
+
✓ Story created: story-042
|
|
100
|
+
Status: ready
|
|
101
|
+
Acceptance criteria: 5 defined
|
|
102
|
+
Memory context: 2 items applied
|
|
103
|
+
Cost: $0.000175
|
|
104
|
+
|
|
105
|
+
Evaluating synchronizations...
|
|
106
|
+
|
|
107
|
+
✓ Matched rule: story-to-arch
|
|
108
|
+
Condition: status=='ready' AND criteria.length>0
|
|
109
|
+
Next step: architecture.design (Sonnet, ~$0.015)
|
|
110
|
+
|
|
111
|
+
Continue with architecture design? (y/n)
|
|
112
|
+
|
|
113
|
+
User: y
|
|
114
|
+
|
|
115
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
116
|
+
Phase 2: Architecture Design
|
|
117
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
118
|
+
|
|
119
|
+
[Invoke Task tool → architecture concept → model: sonnet]
|
|
120
|
+
|
|
121
|
+
✓ Architecture created: arch-042
|
|
122
|
+
Approach: OAuth2 with Passport.js
|
|
123
|
+
Decisions: 4 documented
|
|
124
|
+
Risks: 2 (both mitigated)
|
|
125
|
+
Cost: $0.015
|
|
126
|
+
|
|
127
|
+
💾 Auto-remembered 2 architecture decisions:
|
|
128
|
+
- "OAuth2 with Passport.js for authentication"
|
|
129
|
+
- "Session tokens stored in httpOnly cookies"
|
|
130
|
+
|
|
131
|
+
Evaluating synchronizations...
|
|
132
|
+
|
|
133
|
+
✓ Matched rule: arch-to-impl
|
|
134
|
+
Next step: implementation.generate (Sonnet, ~$0.000175)
|
|
135
|
+
|
|
136
|
+
Continue with implementation? (y/n)
|
|
137
|
+
|
|
138
|
+
User: y
|
|
139
|
+
|
|
140
|
+
[Workflow continues...]
|
|
141
|
+
|
|
142
|
+
Total workflow cost: $0.0165
|
|
143
|
+
Use /trace story-042 to see complete flow.
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Example: Story Only (No Auto-Continue)
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
User: /feature "Add dark mode support"
|
|
150
|
+
|
|
151
|
+
You: I'll create a new feature story.
|
|
152
|
+
|
|
153
|
+
[Invoke Task tool → story concept → model: sonnet]
|
|
154
|
+
|
|
155
|
+
✓ Story created: story-001
|
|
156
|
+
Status: ready
|
|
157
|
+
Acceptance criteria: 4 defined
|
|
158
|
+
Cost: $0.000175
|
|
159
|
+
|
|
160
|
+
Evaluating synchronizations...
|
|
161
|
+
|
|
162
|
+
✓ Matched rule: story-to-arch
|
|
163
|
+
Next step: architecture.design (Sonnet, ~$0.015)
|
|
164
|
+
|
|
165
|
+
Continue with architecture design? (y/n)
|
|
166
|
+
|
|
167
|
+
User: n
|
|
168
|
+
|
|
169
|
+
Story created. You can continue later with:
|
|
170
|
+
- /sync --execute (continue workflow)
|
|
171
|
+
- /workflow "story-001" (run full workflow)
|
|
172
|
+
- /trace story-001 (see current state)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## User Control
|
|
176
|
+
|
|
177
|
+
After story creation, you can:
|
|
178
|
+
- **Continue automatically**: Say "yes" when prompted
|
|
179
|
+
- **Stop and review**: Say "no" to pause workflow
|
|
180
|
+
- **Resume later**: Use `/sync --execute`
|
|
181
|
+
- **Full automation**: Use `/workflow` instead of `/feature`
|
|
182
|
+
|
|
183
|
+
## Options
|
|
184
|
+
|
|
185
|
+
The `/feature` command has different modes:
|
|
186
|
+
|
|
187
|
+
**Interactive (default)**:
|
|
188
|
+
```
|
|
189
|
+
/feature "Add OAuth"
|
|
190
|
+
# Prompts after each step
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Automatic**:
|
|
194
|
+
```
|
|
195
|
+
/feature "Add OAuth" --auto
|
|
196
|
+
# Runs complete workflow without prompts
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
**Story only**:
|
|
200
|
+
```
|
|
201
|
+
/feature "Add OAuth" --story-only
|
|
202
|
+
# Creates story, stops (no sync evaluation)
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## Remember
|
|
206
|
+
|
|
207
|
+
- The Story concept captures requirements (the "what" and "why")
|
|
208
|
+
- Story does NOT design or implement (that's Architecture and Implementation)
|
|
209
|
+
- Synchronizations orchestrate the workflow automatically
|
|
210
|
+
- User maintains control with prompts
|
|
211
|
+
|
|
212
|
+
## Related Commands
|
|
213
|
+
|
|
214
|
+
- `/workflow` - Full automatic workflow (no prompts)
|
|
215
|
+
- `/sync` - Manual sync evaluation
|
|
216
|
+
- `/trace` - See workflow progress
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: forget
|
|
3
|
+
description: Remove a memory from semantic storage
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Forget Command
|
|
7
|
+
|
|
8
|
+
Remove memories from semantic storage.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/forget mem-001 # Remove specific memory by ID
|
|
14
|
+
/forget --tag deprecated # Remove all memories with a tag
|
|
15
|
+
/forget --older-than 90d # Remove memories older than 90 days
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Arguments
|
|
19
|
+
|
|
20
|
+
| Argument | Description |
|
|
21
|
+
|----------|-------------|
|
|
22
|
+
| `<memory-id>` | ID of the specific memory to remove |
|
|
23
|
+
| `--tag <tag>` | Remove all memories with this tag |
|
|
24
|
+
| `--older-than <duration>` | Remove memories older than duration (e.g., 30d, 6m, 1y) |
|
|
25
|
+
| `--dry-run` | Show what would be removed without actually removing |
|
|
26
|
+
|
|
27
|
+
## Implementation
|
|
28
|
+
|
|
29
|
+
When invoked, I:
|
|
30
|
+
|
|
31
|
+
1. Parse the arguments to determine what to forget
|
|
32
|
+
2. Find matching memories in `koan/memory/`
|
|
33
|
+
3. If `--dry-run`, show what would be removed
|
|
34
|
+
4. Otherwise, remove the matching memories
|
|
35
|
+
5. Log the removal in provenance
|
|
36
|
+
|
|
37
|
+
## Examples
|
|
38
|
+
|
|
39
|
+
### Remove a specific memory
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
/forget mem-architecture-001
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Output:
|
|
46
|
+
```
|
|
47
|
+
Removed memory: mem-architecture-001
|
|
48
|
+
Content: "Use OAuth2 for authentication"
|
|
49
|
+
Category: architecture
|
|
50
|
+
Created: 2026-01-05T10:30:00Z
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Remove by tag
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
/forget --tag temporary
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Output:
|
|
60
|
+
```
|
|
61
|
+
Removed 3 memories with tag 'temporary':
|
|
62
|
+
- mem-debug-001: "Temporary fix for..."
|
|
63
|
+
- mem-debug-002: "Debug logging for..."
|
|
64
|
+
- mem-experiment-001: "Testing approach..."
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Preview removal
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
/forget --older-than 30d --dry-run
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Output:
|
|
74
|
+
```
|
|
75
|
+
Would remove 5 memories older than 30 days:
|
|
76
|
+
- mem-001: Created 2025-12-01
|
|
77
|
+
- mem-002: Created 2025-12-05
|
|
78
|
+
...
|
|
79
|
+
|
|
80
|
+
Use without --dry-run to actually remove.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Memory Locations
|
|
84
|
+
|
|
85
|
+
Memories are stored in:
|
|
86
|
+
|
|
87
|
+
| Category | Location |
|
|
88
|
+
|----------|----------|
|
|
89
|
+
| Architecture | `koan/memory/semantic/architecture.yaml` |
|
|
90
|
+
| Patterns | `koan/memory/semantic/patterns.yaml` |
|
|
91
|
+
| Preferences | `koan/memory/semantic/preferences.yaml` |
|
|
92
|
+
| Conventions | `koan/memory/semantic/conventions.yaml` |
|
|
93
|
+
|
|
94
|
+
## Safety
|
|
95
|
+
|
|
96
|
+
- **No cascade deletion**: Forgetting a memory doesn't affect related provenance
|
|
97
|
+
- **Provenance preserved**: The forget action is logged in provenance
|
|
98
|
+
- **Recovery possible**: Memories can be restored from git history if needed
|
|
99
|
+
|
|
100
|
+
## Related Commands
|
|
101
|
+
|
|
102
|
+
- `/remember` - Store new memories
|
|
103
|
+
- `/recall` - Retrieve stored memories
|
|
104
|
+
- `/checkpoint` - Save session state
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
# Global Recall Command
|
|
2
|
+
|
|
3
|
+
Retrieve knowledge from global memory across all categories.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/global-recall "<query>" [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
| Option | Description | Example |
|
|
14
|
+
|--------|-------------|---------|
|
|
15
|
+
| `--category` | Filter by category | `preferences`, `patterns`, `technologies`, `learnings`, `workflows` |
|
|
16
|
+
| `--tech` | Filter by technology | `postgresql`, `typescript`, `react` |
|
|
17
|
+
| `--tag` | Filter by tag | `error-handling`, `performance` |
|
|
18
|
+
| `--all` | Show all matches | Default shows top 5 |
|
|
19
|
+
|
|
20
|
+
## Process
|
|
21
|
+
|
|
22
|
+
When you run this command:
|
|
23
|
+
|
|
24
|
+
1. **Search Global Memory**
|
|
25
|
+
- Search all categories (or filtered)
|
|
26
|
+
- Match query against content and metadata
|
|
27
|
+
- Rank by relevance
|
|
28
|
+
|
|
29
|
+
2. **Display Results**
|
|
30
|
+
- Show matching memories with context
|
|
31
|
+
- Include source and date added
|
|
32
|
+
- Highlight relevant portions
|
|
33
|
+
|
|
34
|
+
3. **Apply to Context**
|
|
35
|
+
- Relevant memories are available for current session
|
|
36
|
+
- Can be referenced in subsequent prompts
|
|
37
|
+
|
|
38
|
+
## Examples
|
|
39
|
+
|
|
40
|
+
### Search by Query
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
/global-recall "error handling"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Output:
|
|
47
|
+
```
|
|
48
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
49
|
+
Global Memory: "error handling"
|
|
50
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
51
|
+
|
|
52
|
+
Found 3 matches:
|
|
53
|
+
|
|
54
|
+
1. [Pattern] Result Type Pattern
|
|
55
|
+
Category: patterns/error-handling
|
|
56
|
+
Added: 2025-01-15
|
|
57
|
+
|
|
58
|
+
Use Result type for error handling in TypeScript:
|
|
59
|
+
```typescript
|
|
60
|
+
type Result<T, E = Error> =
|
|
61
|
+
| { success: true; value: T }
|
|
62
|
+
| { success: false; error: E };
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
2. [Learning] GL001 - Error Types in Stories
|
|
66
|
+
Category: learnings/requirements
|
|
67
|
+
Added: 2025-01-10
|
|
68
|
+
Source: project-a
|
|
69
|
+
|
|
70
|
+
Always specify error types explicitly in acceptance criteria
|
|
71
|
+
|
|
72
|
+
3. [Pattern] AppError Class
|
|
73
|
+
Category: patterns/error-handling
|
|
74
|
+
Added: 2025-01-05
|
|
75
|
+
|
|
76
|
+
Consistent error class with code and statusCode properties
|
|
77
|
+
|
|
78
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Filter by Category
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
/global-recall --category=technologies --tech=postgresql
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Output:
|
|
88
|
+
```
|
|
89
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
90
|
+
Global Memory: PostgreSQL Knowledge
|
|
91
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
92
|
+
|
|
93
|
+
Technology: PostgreSQL
|
|
94
|
+
Version: 14+
|
|
95
|
+
|
|
96
|
+
Gotchas:
|
|
97
|
+
• Connection pooling: Default 100 connections
|
|
98
|
+
→ Use PgBouncer for high-traffic
|
|
99
|
+
|
|
100
|
+
• JSON vs JSONB: JSON is text, JSONB is binary
|
|
101
|
+
→ Always use JSONB unless preserving whitespace
|
|
102
|
+
|
|
103
|
+
• Foreign key indexes: Not auto-created
|
|
104
|
+
→ Always create indexes for FK columns
|
|
105
|
+
|
|
106
|
+
Best Practices:
|
|
107
|
+
• Always use parameterized queries
|
|
108
|
+
• Use EXPLAIN ANALYZE for optimization
|
|
109
|
+
• Prefer BIGINT for IDs
|
|
110
|
+
|
|
111
|
+
Common Queries:
|
|
112
|
+
• Upsert pattern available
|
|
113
|
+
• Cursor pagination pattern available
|
|
114
|
+
|
|
115
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Get Preferences
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
/global-recall --category=preferences
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Output:
|
|
125
|
+
```
|
|
126
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
127
|
+
Global Preferences
|
|
128
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
129
|
+
|
|
130
|
+
Coding Style:
|
|
131
|
+
• Indentation: 2 spaces
|
|
132
|
+
• Quotes: single
|
|
133
|
+
• Semicolons: false
|
|
134
|
+
• Trailing commas: ES5
|
|
135
|
+
|
|
136
|
+
Documentation:
|
|
137
|
+
• Style: JSDoc
|
|
138
|
+
• Detail level: moderate
|
|
139
|
+
• Include examples: yes
|
|
140
|
+
|
|
141
|
+
Testing:
|
|
142
|
+
• Framework: Vitest
|
|
143
|
+
• Coverage target: 80%
|
|
144
|
+
• Style: Arrange-Act-Assert
|
|
145
|
+
|
|
146
|
+
Git:
|
|
147
|
+
• Commit style: Conventional
|
|
148
|
+
• Branch naming: feature/issue-description
|
|
149
|
+
• Squash preference: yes
|
|
150
|
+
|
|
151
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
152
|
+
|
|
153
|
+
These preferences will be applied to code generation.
|
|
154
|
+
Override in project with koan/memory/preferences.yaml
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Search Learnings
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
/global-recall "API" --category=learnings
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Output:
|
|
164
|
+
```
|
|
165
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
166
|
+
Global Learnings: API
|
|
167
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
168
|
+
|
|
169
|
+
GL001: Always version APIs from the start
|
|
170
|
+
Source: project-a (2024-06)
|
|
171
|
+
→ Use /v1/ prefix even for initial release
|
|
172
|
+
|
|
173
|
+
GL002: Rate limiting should be per-user AND per-endpoint
|
|
174
|
+
Source: project-b (2024-09)
|
|
175
|
+
→ One user was able to DOS specific endpoints
|
|
176
|
+
|
|
177
|
+
GL003: Use cursor-based pagination, not offset
|
|
178
|
+
Source: project-b (2024-09)
|
|
179
|
+
→ Offset caused performance issues at scale
|
|
180
|
+
|
|
181
|
+
GL004: Validate webhook signatures before processing
|
|
182
|
+
Source: project-c (2025-01)
|
|
183
|
+
→ Security best practice
|
|
184
|
+
|
|
185
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Browse Workflows
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
/global-recall --category=workflows
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Output:
|
|
195
|
+
```
|
|
196
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
197
|
+
Global Workflow Optimizations
|
|
198
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
199
|
+
|
|
200
|
+
Debugging Workflow:
|
|
201
|
+
1. Capture exact input that caused error
|
|
202
|
+
2. Check error logs for stack trace
|
|
203
|
+
3. Write failing test FIRST
|
|
204
|
+
4. Fix and verify test passes
|
|
205
|
+
|
|
206
|
+
Performance Investigation:
|
|
207
|
+
1. Profile in production-like environment
|
|
208
|
+
2. Identify top 3 bottlenecks
|
|
209
|
+
3. Address largest first
|
|
210
|
+
4. Re-profile after each change
|
|
211
|
+
|
|
212
|
+
Code Review Workflow:
|
|
213
|
+
1. Run automated checks first
|
|
214
|
+
2. Review architecture/design choices
|
|
215
|
+
3. Check for security issues
|
|
216
|
+
4. Verify test coverage
|
|
217
|
+
5. Style/formatting last
|
|
218
|
+
|
|
219
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## Automatic Context Loading
|
|
223
|
+
|
|
224
|
+
When starting a new task, relevant global memories may be automatically suggested:
|
|
225
|
+
|
|
226
|
+
```
|
|
227
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
228
|
+
Relevant Global Memories
|
|
229
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
230
|
+
|
|
231
|
+
Based on your task "Add API authentication", these memories may help:
|
|
232
|
+
|
|
233
|
+
• GL001: Always version APIs from the start
|
|
234
|
+
• Pattern: JWT Authentication Pattern
|
|
235
|
+
• Tech: Rate limiting best practices
|
|
236
|
+
|
|
237
|
+
Apply to current context? [Y/n]
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## Storage Location
|
|
241
|
+
|
|
242
|
+
Global memory is read from:
|
|
243
|
+
```
|
|
244
|
+
~/.zen/global-memory/
|
|
245
|
+
├── preferences.yaml
|
|
246
|
+
├── patterns/
|
|
247
|
+
├── technologies/
|
|
248
|
+
├── learnings/
|
|
249
|
+
└── workflows/
|
|
250
|
+
```
|