@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,187 @@
|
|
|
1
|
+
# Global Remember Command
|
|
2
|
+
|
|
3
|
+
Store knowledge in global memory that persists across all projects.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/global-remember "<knowledge>" [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
| Option | Description | Example |
|
|
14
|
+
|--------|-------------|---------|
|
|
15
|
+
| `--category` | Memory category | `preferences`, `patterns`, `technologies`, `learnings`, `workflows` |
|
|
16
|
+
| `--tech` | Technology tag | `postgresql`, `typescript`, `react` |
|
|
17
|
+
| `--tag` | Additional tags | `error-handling`, `performance` |
|
|
18
|
+
| `--source` | Source project | Current project by default |
|
|
19
|
+
|
|
20
|
+
## Process
|
|
21
|
+
|
|
22
|
+
When you run this command:
|
|
23
|
+
|
|
24
|
+
1. **Parse Knowledge**
|
|
25
|
+
- Extract the key insight
|
|
26
|
+
- Identify category and tags
|
|
27
|
+
|
|
28
|
+
2. **Check for Duplicates**
|
|
29
|
+
- Search existing global memory
|
|
30
|
+
- If similar exists, offer to update or create new
|
|
31
|
+
|
|
32
|
+
3. **Store in Global Memory**
|
|
33
|
+
- Create/update file in `~/.zen/global-memory/`
|
|
34
|
+
- Add metadata (timestamp, source project)
|
|
35
|
+
|
|
36
|
+
4. **Confirm Storage**
|
|
37
|
+
- Display what was stored
|
|
38
|
+
- Show how to recall it
|
|
39
|
+
|
|
40
|
+
## Examples
|
|
41
|
+
|
|
42
|
+
### Store a Preference
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
/global-remember "Always use single quotes in TypeScript" --category=preferences
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Creates/updates `~/.zen/global-memory/preferences.yaml`:
|
|
49
|
+
```yaml
|
|
50
|
+
coding_style:
|
|
51
|
+
quotes: single
|
|
52
|
+
quotes_note: "Always use single quotes in TypeScript"
|
|
53
|
+
added: 2025-01-15
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Store a Pattern
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
/global-remember "Use Result type for error handling in TypeScript" --category=patterns --tag=error-handling
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Creates `~/.zen/global-memory/patterns/result-type.yaml`:
|
|
63
|
+
```yaml
|
|
64
|
+
name: Result Type Pattern
|
|
65
|
+
category: error-handling
|
|
66
|
+
language: typescript
|
|
67
|
+
description: Use Result type for error handling in TypeScript
|
|
68
|
+
added: 2025-01-15
|
|
69
|
+
source_project: current-project
|
|
70
|
+
|
|
71
|
+
pattern: |
|
|
72
|
+
type Result<T, E = Error> =
|
|
73
|
+
| { success: true; value: T }
|
|
74
|
+
| { success: false; error: E };
|
|
75
|
+
|
|
76
|
+
function createUser(data: UserData): Result<User, ValidationError> {
|
|
77
|
+
if (!data.email) {
|
|
78
|
+
return { success: false, error: new ValidationError('Email required') };
|
|
79
|
+
}
|
|
80
|
+
return { success: true, value: new User(data) };
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
usage: |
|
|
84
|
+
Always check success before accessing value:
|
|
85
|
+
const result = createUser(data);
|
|
86
|
+
if (result.success) {
|
|
87
|
+
console.log(result.value);
|
|
88
|
+
} else {
|
|
89
|
+
console.error(result.error);
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Store a Technology Gotcha
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
/global-remember "PostgreSQL JSONB is faster than JSON for queries" --category=technologies --tech=postgresql
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Updates `~/.zen/global-memory/technologies/postgresql.yaml`:
|
|
100
|
+
```yaml
|
|
101
|
+
technology: PostgreSQL
|
|
102
|
+
gotchas:
|
|
103
|
+
- title: JSON vs JSONB Performance
|
|
104
|
+
issue: JSON stores as text, JSONB as binary
|
|
105
|
+
solution: Always use JSONB unless preserving whitespace
|
|
106
|
+
added: 2025-01-15
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Store a Cross-Project Learning
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
/global-remember "API rate limiting should be per-user AND per-endpoint" --category=learnings
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Updates `~/.zen/global-memory/learnings/api-design.yaml`:
|
|
116
|
+
```yaml
|
|
117
|
+
category: API Design
|
|
118
|
+
learnings:
|
|
119
|
+
- id: GL004
|
|
120
|
+
insight: API rate limiting should be per-user AND per-endpoint
|
|
121
|
+
context: Learned from current project
|
|
122
|
+
recommendation: Implement both layers in middleware
|
|
123
|
+
added: 2025-01-15
|
|
124
|
+
source: current-project
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Store a Workflow Optimization
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
/global-remember "Write failing test before fixing bugs" --category=workflows
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Updates `~/.zen/global-memory/workflows/debugging.yaml`:
|
|
134
|
+
```yaml
|
|
135
|
+
workflow: Debugging
|
|
136
|
+
optimizations:
|
|
137
|
+
- name: Test-first bug fixing
|
|
138
|
+
steps:
|
|
139
|
+
- Reproduce the bug
|
|
140
|
+
- Write a failing test that captures the bug
|
|
141
|
+
- Fix the code
|
|
142
|
+
- Verify test passes
|
|
143
|
+
rationale: Prevents regression and documents expected behavior
|
|
144
|
+
added: 2025-01-15
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## Automatic Suggestions
|
|
148
|
+
|
|
149
|
+
The system may suggest promoting project learnings to global memory:
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
153
|
+
Potential Global Learning Detected
|
|
154
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
155
|
+
|
|
156
|
+
This learning from the current project may be useful globally:
|
|
157
|
+
|
|
158
|
+
"Always validate webhook signatures before processing"
|
|
159
|
+
|
|
160
|
+
This applies to: webhooks, security, API integration
|
|
161
|
+
|
|
162
|
+
Would you like to add this to global memory?
|
|
163
|
+
[Y] Yes, add to global [N] Keep project-only [E] Edit first
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## Storage Location
|
|
167
|
+
|
|
168
|
+
All global memory is stored in:
|
|
169
|
+
```
|
|
170
|
+
~/.zen/global-memory/
|
|
171
|
+
├── preferences.yaml
|
|
172
|
+
├── patterns/
|
|
173
|
+
│ └── *.yaml
|
|
174
|
+
├── technologies/
|
|
175
|
+
│ └── *.yaml
|
|
176
|
+
├── learnings/
|
|
177
|
+
│ └── *.yaml
|
|
178
|
+
└── workflows/
|
|
179
|
+
└── *.yaml
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
## Privacy
|
|
183
|
+
|
|
184
|
+
- Global memory is stored locally only
|
|
185
|
+
- No data is sent to external services
|
|
186
|
+
- You control what gets stored
|
|
187
|
+
- Can be backed up or synced manually
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: health
|
|
3
|
+
description: "Display context health status and safety warnings"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /health Command
|
|
7
|
+
|
|
8
|
+
Display current context health status to help Claude and users understand the state of the conversation context.
|
|
9
|
+
|
|
10
|
+
## Purpose
|
|
11
|
+
|
|
12
|
+
This command helps:
|
|
13
|
+
1. Claude understand if context has been compressed
|
|
14
|
+
2. Users see token usage and warnings
|
|
15
|
+
3. Identify when extra verification is needed before operations
|
|
16
|
+
|
|
17
|
+
## What to Do
|
|
18
|
+
|
|
19
|
+
1. Read `koan/health/status.yaml`
|
|
20
|
+
2. Read `koan/anchors/rules.anchor.yaml`
|
|
21
|
+
3. Read `koan/anchors/directory.anchor.yaml`
|
|
22
|
+
4. Display a formatted summary
|
|
23
|
+
|
|
24
|
+
## Output Format
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
Context Health Status
|
|
28
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
29
|
+
|
|
30
|
+
Tokens: {used} / {total} ({percent}%) [{zone}]
|
|
31
|
+
Session: {interactions} interactions, {checkpoints} checkpoints
|
|
32
|
+
Compression: {compression_status}
|
|
33
|
+
|
|
34
|
+
Grounding Status:
|
|
35
|
+
{✓|✗} Directory verified: {working_directory}
|
|
36
|
+
{✓|✗} Rules loaded: {rule_count} rules
|
|
37
|
+
{✓|✗} Safety constraints active
|
|
38
|
+
|
|
39
|
+
Confidence: {confidence_level}
|
|
40
|
+
|
|
41
|
+
{warnings_section}
|
|
42
|
+
|
|
43
|
+
{recommendations_section}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Example Output (Healthy)
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
Context Health Status
|
|
50
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
51
|
+
|
|
52
|
+
Tokens: 45,000 / 200,000 (22.5%) [GREEN]
|
|
53
|
+
Session: 12 interactions, 1 checkpoint
|
|
54
|
+
Compression: None this session
|
|
55
|
+
|
|
56
|
+
Grounding Status:
|
|
57
|
+
✓ Directory verified: /Users/kolb/project
|
|
58
|
+
✓ Rules loaded: 7 rules (4 safety, 3 workflow)
|
|
59
|
+
✓ Safety constraints active
|
|
60
|
+
|
|
61
|
+
Confidence: HIGH
|
|
62
|
+
|
|
63
|
+
Recommendations:
|
|
64
|
+
• Continue normally - context is healthy
|
|
65
|
+
• Consider checkpoint at next workflow milestone
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Example Output (After Compression)
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
Context Health Status
|
|
72
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
73
|
+
|
|
74
|
+
Tokens: 165,000 / 200,000 (82.5%) [RED]
|
|
75
|
+
Session: 87 interactions, 2 checkpoints
|
|
76
|
+
Compression: 1 compression 5 turns ago
|
|
77
|
+
|
|
78
|
+
Grounding Status:
|
|
79
|
+
✓ Directory verified: /Users/kolb/project
|
|
80
|
+
✓ Rules loaded: 7 rules
|
|
81
|
+
✓ Safety constraints active
|
|
82
|
+
|
|
83
|
+
Confidence: MEDIUM
|
|
84
|
+
|
|
85
|
+
⚠️ WARNINGS:
|
|
86
|
+
• Context was compressed. Some details from early conversation may be summarized.
|
|
87
|
+
• High token usage - consider /checkpoint before major operations.
|
|
88
|
+
|
|
89
|
+
Recommendations:
|
|
90
|
+
• Re-read koan/anchors/rules.anchor.yaml before destructive operations
|
|
91
|
+
• Verify assumptions about file paths and previous decisions
|
|
92
|
+
• Create checkpoint before next major change
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## When to Use
|
|
96
|
+
|
|
97
|
+
- Before destructive operations (rm, git reset, etc.)
|
|
98
|
+
- When Claude seems confused about prior context
|
|
99
|
+
- At the start of a new work session
|
|
100
|
+
- After long conversations (50+ interactions)
|
|
101
|
+
- When /compact or auto-compact has run
|
|
102
|
+
|
|
103
|
+
## Related Commands
|
|
104
|
+
|
|
105
|
+
- `/checkpoint` - Create state checkpoint
|
|
106
|
+
- `/trace` - View action provenance
|
|
107
|
+
- `/costs` - View token/cost usage
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
Display context-aware help for Zen WYSIWID workflows and commands.
|
|
2
|
+
|
|
3
|
+
When the user runs this command, you should:
|
|
4
|
+
|
|
5
|
+
1. **Determine Help Context**
|
|
6
|
+
- If no argument: Show overview of all commands
|
|
7
|
+
- If topic provided: Show detailed help for that topic
|
|
8
|
+
- If in workflow: Show current state and available actions
|
|
9
|
+
|
|
10
|
+
2. **Available Topics**
|
|
11
|
+
- `commands` - List all slash commands
|
|
12
|
+
- `concepts` - Explain the 10 concepts
|
|
13
|
+
- `workflow` - How workflows work
|
|
14
|
+
- `sync` - Synchronization rules
|
|
15
|
+
- `state` - Current workflow state
|
|
16
|
+
- `troubleshooting` - Common issues and fixes
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
/help # Overview and quick start
|
|
22
|
+
/help commands # List all commands
|
|
23
|
+
/help concepts # Explain concepts
|
|
24
|
+
/help workflow # How workflows work
|
|
25
|
+
/help state # Current workflow state
|
|
26
|
+
/help troubleshooting # Common issues
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Overview Response (no arguments)
|
|
30
|
+
|
|
31
|
+
When user runs `/help` with no arguments:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Zen WYSIWID Architecture - Quick Reference
|
|
35
|
+
|
|
36
|
+
WHAT YOU SEE IS WHAT IT DOES
|
|
37
|
+
|
|
38
|
+
Core Workflow:
|
|
39
|
+
Story -> Architecture -> Implementation -> Quality -> Version
|
|
40
|
+
|
|
41
|
+
Getting Started:
|
|
42
|
+
/feature "description" Create a new feature
|
|
43
|
+
/workflow "description" Run complete workflow automatically
|
|
44
|
+
/sync Check current sync state
|
|
45
|
+
|
|
46
|
+
Key Commands:
|
|
47
|
+
/costs Show session costs
|
|
48
|
+
/trace <id> Trace workflow history
|
|
49
|
+
/health Check session health
|
|
50
|
+
/checkpoint Save current state
|
|
51
|
+
|
|
52
|
+
Need More Help?
|
|
53
|
+
/help commands All available commands
|
|
54
|
+
/help concepts How concepts work
|
|
55
|
+
/help workflow Workflow details
|
|
56
|
+
/help troubleshooting Common issues
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Commands List Response
|
|
60
|
+
|
|
61
|
+
When user runs `/help commands`:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
Zen Commands Reference
|
|
65
|
+
|
|
66
|
+
WORKFLOW COMMANDS
|
|
67
|
+
/feature <description> Create feature story, evaluate syncs
|
|
68
|
+
/workflow <description> Run complete workflow automatically
|
|
69
|
+
/sync Evaluate synchronization rules
|
|
70
|
+
|
|
71
|
+
STATE & CONTEXT
|
|
72
|
+
/checkpoint Save session state
|
|
73
|
+
/restore Restore from checkpoint
|
|
74
|
+
/health Check context usage
|
|
75
|
+
/trace <id> Trace provenance chain
|
|
76
|
+
|
|
77
|
+
COST & PERFORMANCE
|
|
78
|
+
/costs Show session costs
|
|
79
|
+
/predict-cost <desc> Estimate feature cost
|
|
80
|
+
/slo View SLO metrics
|
|
81
|
+
|
|
82
|
+
MEMORY
|
|
83
|
+
/remember <fact> Store in semantic memory
|
|
84
|
+
/recall <query> Retrieve from memory
|
|
85
|
+
/global-remember Store across projects
|
|
86
|
+
/global-recall Recall cross-project
|
|
87
|
+
|
|
88
|
+
ANALYSIS
|
|
89
|
+
/replay <id> Replay failed workflow
|
|
90
|
+
/explore <question> Explore codebase
|
|
91
|
+
/profile Profile project
|
|
92
|
+
/retrospective Review workflow quality
|
|
93
|
+
|
|
94
|
+
UTILITIES
|
|
95
|
+
/cache Manage concept cache
|
|
96
|
+
/classify <desc> Classify task type
|
|
97
|
+
/estimate <desc> Estimate effort
|
|
98
|
+
/pr-review Review pull request
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Concepts Help Response
|
|
102
|
+
|
|
103
|
+
When user runs `/help concepts`:
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
Zen Concepts (10 Total)
|
|
107
|
+
|
|
108
|
+
CORE WORKFLOW CONCEPTS
|
|
109
|
+
story Captures user requirements (Sonnet)
|
|
110
|
+
Actions: create, update, clarify, cancel
|
|
111
|
+
|
|
112
|
+
architecture Designs technical approach (Opus)
|
|
113
|
+
Actions: design, revise, validate
|
|
114
|
+
|
|
115
|
+
implementation Generates code from specs (Sonnet)
|
|
116
|
+
Actions: generate, refactor, fix
|
|
117
|
+
|
|
118
|
+
quality Reviews code and runs tests (Sonnet)
|
|
119
|
+
Actions: review, test, benchmark
|
|
120
|
+
|
|
121
|
+
version Manages git operations (Sonnet)
|
|
122
|
+
Actions: commit, tag, release
|
|
123
|
+
|
|
124
|
+
context Manages context window (Sonnet)
|
|
125
|
+
Actions: compress, snapshot, restore
|
|
126
|
+
|
|
127
|
+
INTEGRATION CONCEPTS
|
|
128
|
+
code-analysis Gathers codebase context via MCP (Sonnet)
|
|
129
|
+
Actions: context, impact, profile
|
|
130
|
+
|
|
131
|
+
security Validates security at each phase (Sonnet)
|
|
132
|
+
Actions: threat_model, validate, scan
|
|
133
|
+
|
|
134
|
+
verification Multi-pass independent review (Sonnet)
|
|
135
|
+
Actions: verify_architecture, verify_implementation
|
|
136
|
+
|
|
137
|
+
documentation Generates docs at each phase (Sonnet)
|
|
138
|
+
Actions: generate, update, validate
|
|
139
|
+
|
|
140
|
+
KEY PRINCIPLE:
|
|
141
|
+
Concepts NEVER call other concepts directly.
|
|
142
|
+
Synchronization rules orchestrate the workflow.
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## State Help Response
|
|
146
|
+
|
|
147
|
+
When user runs `/help state`:
|
|
148
|
+
|
|
149
|
+
First, check current state by reading koan/ files:
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
Current Workflow State
|
|
153
|
+
|
|
154
|
+
ACTIVE FLOWS
|
|
155
|
+
flow-001: "Add user authentication"
|
|
156
|
+
Status: in_progress
|
|
157
|
+
Phase: implementation
|
|
158
|
+
Story: story-001 (ready)
|
|
159
|
+
Architecture: arch-001 (completed)
|
|
160
|
+
Implementation: impl-001 (in_progress)
|
|
161
|
+
|
|
162
|
+
RECENT ACTIONS
|
|
163
|
+
1. story.create -> completed (2 min ago)
|
|
164
|
+
2. architecture.design -> completed (1 min ago)
|
|
165
|
+
3. implementation.generate -> in_progress
|
|
166
|
+
|
|
167
|
+
NEXT STEPS
|
|
168
|
+
- Implementation completes
|
|
169
|
+
- Sync triggers: impl-to-quality-review
|
|
170
|
+
- Parallel: impl-to-quality-test
|
|
171
|
+
|
|
172
|
+
CONTEXT USAGE
|
|
173
|
+
Current: 35%
|
|
174
|
+
Status: healthy
|
|
175
|
+
Checkpoints: 1
|
|
176
|
+
|
|
177
|
+
ACTIONS YOU CAN TAKE
|
|
178
|
+
/sync --execute Continue workflow
|
|
179
|
+
/trace flow-001 See full history
|
|
180
|
+
/checkpoint Save current state
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Troubleshooting Response
|
|
184
|
+
|
|
185
|
+
When user runs `/help troubleshooting`:
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
Zen Troubleshooting Guide
|
|
189
|
+
|
|
190
|
+
COMMON ISSUES
|
|
191
|
+
|
|
192
|
+
1. "Sync rule not firing"
|
|
193
|
+
Cause: Prerequisites not met
|
|
194
|
+
Fix: Check koan/ state files
|
|
195
|
+
- /trace <id> to see what's missing
|
|
196
|
+
- Ensure previous concept completed successfully
|
|
197
|
+
|
|
198
|
+
2. "Context too high (>90%)"
|
|
199
|
+
Cause: Long workflow without compression
|
|
200
|
+
Fix: Create checkpoint and restore
|
|
201
|
+
- /checkpoint "before continuing"
|
|
202
|
+
- /restore if needed
|
|
203
|
+
|
|
204
|
+
3. "MCP server unavailable"
|
|
205
|
+
Cause: MCP servers not running
|
|
206
|
+
Fix: Workflow continues without code analysis
|
|
207
|
+
- Check: mcp-servers/ for server status
|
|
208
|
+
- MCP is optional - workflow gracefully degrades
|
|
209
|
+
|
|
210
|
+
4. "Architecture has high risk"
|
|
211
|
+
Cause: Design detected risky patterns
|
|
212
|
+
Fix: Review and approve or revise
|
|
213
|
+
- Read koan/architecture/arch-{id}.yaml
|
|
214
|
+
- User decision required
|
|
215
|
+
|
|
216
|
+
5. "Quality review failed"
|
|
217
|
+
Cause: Code issues found
|
|
218
|
+
Fix: Check review findings
|
|
219
|
+
- Read koan/reviews/review-{id}.yaml
|
|
220
|
+
- Fix issues and re-run quality
|
|
221
|
+
|
|
222
|
+
6. "Missing state file"
|
|
223
|
+
Cause: Concept didn't complete
|
|
224
|
+
Fix: Re-run previous step
|
|
225
|
+
- Check koan/ for existing state
|
|
226
|
+
- /replay <id> to restart from failure
|
|
227
|
+
|
|
228
|
+
DIAGNOSTIC COMMANDS
|
|
229
|
+
/health Check overall health
|
|
230
|
+
/trace <id> Trace specific flow
|
|
231
|
+
/costs Check spending
|
|
232
|
+
/sync --dry-run Preview sync evaluation
|
|
233
|
+
|
|
234
|
+
GETTING HELP
|
|
235
|
+
- Read .claude/synchronizations/*.yaml for workflow logic
|
|
236
|
+
- Check koan/provenance/ for action history
|
|
237
|
+
- Review CLAUDE.md for project context
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## Context-Aware Behavior
|
|
241
|
+
|
|
242
|
+
When providing help, check:
|
|
243
|
+
|
|
244
|
+
1. **Active Workflow**: If there's an in-progress flow, offer relevant next steps
|
|
245
|
+
2. **Recent Errors**: If koan/health/ shows issues, suggest fixes
|
|
246
|
+
3. **Context Usage**: If high (>75%), suggest checkpoint
|
|
247
|
+
4. **MCP Status**: If unavailable, note graceful degradation
|
|
248
|
+
|
|
249
|
+
## Related Commands
|
|
250
|
+
|
|
251
|
+
- `/health` - More detailed health status
|
|
252
|
+
- `/trace` - Detailed provenance tracking
|
|
253
|
+
- `/sync` - Manual sync evaluation
|