dino-spec 13.6.1 → 14.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/README.md +63 -3
- package/dist/agents/context-distributor.d.ts +1 -1
- package/dist/agents/context-distributor.d.ts.map +1 -1
- package/dist/agents/context-distributor.js +16 -15
- package/dist/agents/context-distributor.js.map +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +378 -370
- package/dist/agents/index.js.map +1 -1
- package/dist/cli/index.js +14 -14
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/tui/index.d.ts +1 -1
- package/dist/cli/tui/index.d.ts.map +1 -1
- package/dist/cli/tui/index.js.map +1 -1
- package/dist/cli/tui/setup-wizard.d.ts.map +1 -1
- package/dist/cli/tui/setup-wizard.js +27 -24
- package/dist/cli/tui/setup-wizard.js.map +1 -1
- package/dist/commands/compact.d.ts.map +1 -1
- package/dist/commands/compact.js +2 -2
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/hooks/index.d.ts +3 -3
- package/dist/commands/hooks/index.d.ts.map +1 -1
- package/dist/commands/hooks/index.js +6 -6
- package/dist/commands/hooks/index.js.map +1 -1
- package/dist/commands/hooks/registry.d.ts +1 -1
- package/dist/commands/hooks/registry.d.ts.map +1 -1
- package/dist/commands/hooks/registry.js +6 -6
- package/dist/commands/hooks/registry.js.map +1 -1
- package/dist/commands/hooks/types.d.ts.map +1 -1
- package/dist/commands/hooks/utils.d.ts +1 -1
- package/dist/commands/hooks/utils.d.ts.map +1 -1
- package/dist/commands/hooks/utils.js +2 -2
- package/dist/commands/hooks/utils.js.map +1 -1
- package/dist/commands/hud.d.ts +1 -8
- package/dist/commands/hud.d.ts.map +1 -1
- package/dist/commands/hud.js +25 -42
- package/dist/commands/hud.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +21 -20
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/mcp-serve.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +10 -4
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/memory/consolidate.d.ts.map +1 -1
- package/dist/commands/memory/consolidate.js +1 -1
- package/dist/commands/memory/consolidate.js.map +1 -1
- package/dist/commands/memory/decay.d.ts.map +1 -1
- package/dist/commands/memory/decay.js +1 -1
- package/dist/commands/memory/decay.js.map +1 -1
- package/dist/commands/memory/index.d.ts +8 -8
- package/dist/commands/memory/index.d.ts.map +1 -1
- package/dist/commands/memory/index.js +4 -4
- package/dist/commands/memory/index.js.map +1 -1
- package/dist/commands/memory/list.d.ts.map +1 -1
- package/dist/commands/memory/list.js +5 -5
- package/dist/commands/memory/list.js.map +1 -1
- package/dist/commands/memory/prune.d.ts.map +1 -1
- package/dist/commands/memory/prune.js +1 -1
- package/dist/commands/memory/prune.js.map +1 -1
- package/dist/commands/memory/recall.d.ts.map +1 -1
- package/dist/commands/memory/recall.js +2 -2
- package/dist/commands/memory/recall.js.map +1 -1
- package/dist/commands/memory/reflect.d.ts.map +1 -1
- package/dist/commands/memory/reflect.js +5 -5
- package/dist/commands/memory/reflect.js.map +1 -1
- package/dist/commands/memory/search.d.ts.map +1 -1
- package/dist/commands/memory/search.js +16 -16
- package/dist/commands/memory/search.js.map +1 -1
- package/dist/commands/memory/stats.d.ts.map +1 -1
- package/dist/commands/memory/stats.js +15 -10
- package/dist/commands/memory/stats.js.map +1 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +3 -3
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/refresh.d.ts.map +1 -1
- package/dist/commands/refresh.js +4 -6
- package/dist/commands/refresh.js.map +1 -1
- package/dist/commands/session-sync.d.ts.map +1 -1
- package/dist/commands/session-sync.js +2 -2
- package/dist/commands/session-sync.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +9 -9
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +7 -5
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +19 -13
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/store/index.d.ts +4 -4
- package/dist/commands/store/index.d.ts.map +1 -1
- package/dist/commands/store/index.js +2 -2
- package/dist/commands/store/index.js.map +1 -1
- package/dist/commands/store/install.d.ts.map +1 -1
- package/dist/commands/store/install.js +1 -1
- package/dist/commands/store/install.js.map +1 -1
- package/dist/commands/store/list.d.ts.map +1 -1
- package/dist/commands/store/list.js +5 -5
- package/dist/commands/store/list.js.map +1 -1
- package/dist/commands/store/remove.d.ts.map +1 -1
- package/dist/commands/store/remove.js.map +1 -1
- package/dist/commands/store/search.d.ts.map +1 -1
- package/dist/commands/store/search.js +4 -6
- package/dist/commands/store/search.js.map +1 -1
- package/dist/commands/store/sync.js.map +1 -1
- package/dist/commands/update.d.ts +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +5 -8
- package/dist/commands/update.js.map +1 -1
- package/dist/core/agents/__tests__/action-mask.test.js +12 -8
- package/dist/core/agents/__tests__/action-mask.test.js.map +1 -1
- package/dist/core/agents/__tests__/budgets.test.js +17 -7
- package/dist/core/agents/__tests__/budgets.test.js.map +1 -1
- package/dist/core/agents/__tests__/communication.test.js +3 -3
- package/dist/core/agents/__tests__/communication.test.js.map +1 -1
- package/dist/core/agents/__tests__/orchestrator.test.js +36 -23
- package/dist/core/agents/__tests__/orchestrator.test.js.map +1 -1
- package/dist/core/agents/action-mask.d.ts +2 -2
- package/dist/core/agents/action-mask.d.ts.map +1 -1
- package/dist/core/agents/action-mask.js.map +1 -1
- package/dist/core/agents/blackboard.d.ts.map +1 -1
- package/dist/core/agents/blackboard.js +2 -2
- package/dist/core/agents/blackboard.js.map +1 -1
- package/dist/core/agents/budgets.d.ts +1 -1
- package/dist/core/agents/budgets.d.ts.map +1 -1
- package/dist/core/agents/budgets.js +3 -2
- package/dist/core/agents/budgets.js.map +1 -1
- package/dist/core/agents/circuit-breaker.d.ts.map +1 -1
- package/dist/core/agents/circuit-breaker.js.map +1 -1
- package/dist/core/agents/circuit-registry.d.ts +1 -1
- package/dist/core/agents/circuit-registry.d.ts.map +1 -1
- package/dist/core/agents/circuit-registry.js.map +1 -1
- package/dist/core/agents/context-isolation.d.ts.map +1 -1
- package/dist/core/agents/context-isolation.js +39 -43
- package/dist/core/agents/context-isolation.js.map +1 -1
- package/dist/core/agents/index.d.ts +11 -11
- package/dist/core/agents/index.d.ts.map +1 -1
- package/dist/core/agents/index.js +37 -37
- package/dist/core/agents/index.js.map +1 -1
- package/dist/core/agents/initializer.d.ts.map +1 -1
- package/dist/core/agents/initializer.js +12 -12
- package/dist/core/agents/initializer.js.map +1 -1
- package/dist/core/agents/message-protocol.d.ts.map +1 -1
- package/dist/core/agents/message-protocol.js.map +1 -1
- package/dist/core/agents/orchestrator.d.ts +3 -3
- package/dist/core/agents/orchestrator.d.ts.map +1 -1
- package/dist/core/agents/orchestrator.js +7 -10
- package/dist/core/agents/orchestrator.js.map +1 -1
- package/dist/core/agents/programmatic/context-delegate.d.ts.map +1 -1
- package/dist/core/agents/programmatic/context-delegate.js +10 -10
- package/dist/core/agents/programmatic/context-delegate.js.map +1 -1
- package/dist/core/agents/programmatic/index.d.ts +3 -3
- package/dist/core/agents/programmatic/index.d.ts.map +1 -1
- package/dist/core/agents/programmatic/index.js +4 -4
- package/dist/core/agents/programmatic/index.js.map +1 -1
- package/dist/core/agents/programmatic/result-collector.d.ts +2 -2
- package/dist/core/agents/programmatic/result-collector.d.ts.map +1 -1
- package/dist/core/agents/programmatic/result-collector.js +16 -16
- package/dist/core/agents/programmatic/result-collector.js.map +1 -1
- package/dist/core/agents/programmatic/script-executor.d.ts.map +1 -1
- package/dist/core/agents/programmatic/script-executor.js +152 -149
- package/dist/core/agents/programmatic/script-executor.js.map +1 -1
- package/dist/core/agents/recursive/aggregator.d.ts +1 -1
- package/dist/core/agents/recursive/aggregator.d.ts.map +1 -1
- package/dist/core/agents/recursive/aggregator.js +12 -17
- package/dist/core/agents/recursive/aggregator.js.map +1 -1
- package/dist/core/agents/recursive/budget-allocator.d.ts +1 -1
- package/dist/core/agents/recursive/budget-allocator.d.ts.map +1 -1
- package/dist/core/agents/recursive/budget-allocator.js +7 -9
- package/dist/core/agents/recursive/budget-allocator.js.map +1 -1
- package/dist/core/agents/recursive/checkpoint-chain.d.ts +4 -4
- package/dist/core/agents/recursive/checkpoint-chain.d.ts.map +1 -1
- package/dist/core/agents/recursive/checkpoint-chain.js +12 -15
- package/dist/core/agents/recursive/checkpoint-chain.js.map +1 -1
- package/dist/core/agents/recursive/complexity-analyzer.d.ts.map +1 -1
- package/dist/core/agents/recursive/complexity-analyzer.js +52 -20
- package/dist/core/agents/recursive/complexity-analyzer.js.map +1 -1
- package/dist/core/agents/recursive/index.d.ts +6 -6
- package/dist/core/agents/recursive/index.d.ts.map +1 -1
- package/dist/core/agents/recursive/index.js +11 -11
- package/dist/core/agents/recursive/index.js.map +1 -1
- package/dist/core/agents/recursive/orchestrator.d.ts +2 -2
- package/dist/core/agents/recursive/orchestrator.d.ts.map +1 -1
- package/dist/core/agents/recursive/orchestrator.js +60 -20
- package/dist/core/agents/recursive/orchestrator.js.map +1 -1
- package/dist/core/agents/recursive/spawn-controller.d.ts +3 -3
- package/dist/core/agents/recursive/spawn-controller.d.ts.map +1 -1
- package/dist/core/agents/recursive/spawn-controller.js +10 -10
- package/dist/core/agents/recursive/spawn-controller.js.map +1 -1
- package/dist/core/agents/recursive/types.d.ts +2 -2
- package/dist/core/agents/recursive/types.d.ts.map +1 -1
- package/dist/core/agents/recursive/types.js +2 -2
- package/dist/core/agents/recursive/types.js.map +1 -1
- package/dist/core/agents/types.d.ts +1 -1
- package/dist/core/agents/types.d.ts.map +1 -1
- package/dist/core/analyzer/change-intent.d.ts +1 -1
- package/dist/core/analyzer/change-intent.d.ts.map +1 -1
- package/dist/core/analyzer/change-intent.js +6 -5
- package/dist/core/analyzer/change-intent.js.map +1 -1
- package/dist/core/analyzer/command-extractor.d.ts.map +1 -1
- package/dist/core/analyzer/command-extractor.js +1 -3
- package/dist/core/analyzer/command-extractor.js.map +1 -1
- package/dist/core/analyzer/dependency-graph.d.ts.map +1 -1
- package/dist/core/analyzer/dependency-graph.js +364 -74
- package/dist/core/analyzer/dependency-graph.js.map +1 -1
- package/dist/core/analyzer/focus-detector.d.ts.map +1 -1
- package/dist/core/analyzer/focus-detector.js +21 -24
- package/dist/core/analyzer/focus-detector.js.map +1 -1
- package/dist/core/analyzer/index.d.ts +8 -8
- package/dist/core/analyzer/index.d.ts.map +1 -1
- package/dist/core/analyzer/index.js +17 -17
- package/dist/core/analyzer/index.js.map +1 -1
- package/dist/core/analyzer/multi-lang/index.d.ts +2 -2
- package/dist/core/analyzer/multi-lang/index.d.ts.map +1 -1
- package/dist/core/analyzer/multi-lang/index.js +36 -38
- package/dist/core/analyzer/multi-lang/index.js.map +1 -1
- package/dist/core/analyzer/multi-lang/language-detector.d.ts +1 -1
- package/dist/core/analyzer/multi-lang/language-detector.d.ts.map +1 -1
- package/dist/core/analyzer/multi-lang/language-detector.js +24 -13
- package/dist/core/analyzer/multi-lang/language-detector.js.map +1 -1
- package/dist/core/analyzer/multi-lang/pattern-extractor.d.ts +1 -1
- package/dist/core/analyzer/multi-lang/pattern-extractor.d.ts.map +1 -1
- package/dist/core/analyzer/multi-lang/pattern-extractor.js +20 -7
- package/dist/core/analyzer/multi-lang/pattern-extractor.js.map +1 -1
- package/dist/core/analyzer/multi-lang/types.d.ts.map +1 -1
- package/dist/core/analyzer/pattern-detector.d.ts.map +1 -1
- package/dist/core/analyzer/pattern-detector.js.map +1 -1
- package/dist/core/analyzer/project-detector.d.ts.map +1 -1
- package/dist/core/analyzer/project-detector.js +11 -8
- package/dist/core/analyzer/project-detector.js.map +1 -1
- package/dist/core/analyzer/semantic-diff.d.ts.map +1 -1
- package/dist/core/analyzer/semantic-diff.js +17 -8
- package/dist/core/analyzer/semantic-diff.js.map +1 -1
- package/dist/core/analyzer/structure-mapper.d.ts +2 -2
- package/dist/core/analyzer/structure-mapper.d.ts.map +1 -1
- package/dist/core/analyzer/structure-mapper.js +2 -2
- package/dist/core/analyzer/structure-mapper.js.map +1 -1
- package/dist/core/analyzer/types.d.ts.map +1 -1
- package/dist/core/budget/cross-section-dedup.d.ts.map +1 -1
- package/dist/core/budget/cross-section-dedup.js +20 -17
- package/dist/core/budget/cross-section-dedup.js.map +1 -1
- package/dist/core/budget/entropy-budget.d.ts.map +1 -1
- package/dist/core/budget/entropy-budget.js +16 -22
- package/dist/core/budget/entropy-budget.js.map +1 -1
- package/dist/core/budget/index.d.ts +2 -2
- package/dist/core/budget/index.d.ts.map +1 -1
- package/dist/core/budget/index.js +3 -3
- package/dist/core/budget/index.js.map +1 -1
- package/dist/core/budget/language-entropy-profiles.d.ts.map +1 -1
- package/dist/core/budget/language-entropy-profiles.js +60 -7
- package/dist/core/budget/language-entropy-profiles.js.map +1 -1
- package/dist/core/budget/token-estimator.d.ts.map +1 -1
- package/dist/core/budget/token-estimator.js.map +1 -1
- package/dist/core/cache/cache-analyzer.d.ts.map +1 -1
- package/dist/core/cache/cache-analyzer.js +21 -24
- package/dist/core/cache/cache-analyzer.js.map +1 -1
- package/dist/core/cache/cache-metrics.d.ts +1 -1
- package/dist/core/cache/cache-metrics.d.ts.map +1 -1
- package/dist/core/cache/cache-metrics.js +6 -11
- package/dist/core/cache/cache-metrics.js.map +1 -1
- package/dist/core/cache/file-cache.d.ts.map +1 -1
- package/dist/core/cache/file-cache.js +3 -4
- package/dist/core/cache/file-cache.js.map +1 -1
- package/dist/core/cache/index.d.ts +3 -3
- package/dist/core/cache/index.d.ts.map +1 -1
- package/dist/core/cache/index.js +3 -3
- package/dist/core/cache/index.js.map +1 -1
- package/dist/core/checkpoints/category-compressor.d.ts +1 -1
- package/dist/core/checkpoints/category-compressor.d.ts.map +1 -1
- package/dist/core/checkpoints/category-compressor.js +4 -5
- package/dist/core/checkpoints/category-compressor.js.map +1 -1
- package/dist/core/checkpoints/checkpoint-store.d.ts.map +1 -1
- package/dist/core/checkpoints/checkpoint-store.js +1 -1
- package/dist/core/checkpoints/checkpoint-store.js.map +1 -1
- package/dist/core/checkpoints/checkpoint.d.ts +2 -2
- package/dist/core/checkpoints/checkpoint.d.ts.map +1 -1
- package/dist/core/checkpoints/checkpoint.js +17 -14
- package/dist/core/checkpoints/checkpoint.js.map +1 -1
- package/dist/core/checkpoints/compression-templates.d.ts +1 -1
- package/dist/core/checkpoints/compression-templates.d.ts.map +1 -1
- package/dist/core/checkpoints/compression-templates.js +2 -4
- package/dist/core/checkpoints/compression-templates.js.map +1 -1
- package/dist/core/checkpoints/compression-verifier.d.ts.map +1 -1
- package/dist/core/checkpoints/compression-verifier.js.map +1 -1
- package/dist/core/checkpoints/context-serializer.d.ts.map +1 -1
- package/dist/core/checkpoints/context-serializer.js +4 -10
- package/dist/core/checkpoints/context-serializer.js.map +1 -1
- package/dist/core/checkpoints/git-recovery.d.ts.map +1 -1
- package/dist/core/checkpoints/git-recovery.js +1 -2
- package/dist/core/checkpoints/git-recovery.js.map +1 -1
- package/dist/core/checkpoints/handoff-schema.d.ts.map +1 -1
- package/dist/core/checkpoints/handoff-schema.js +24 -16
- package/dist/core/checkpoints/handoff-schema.js.map +1 -1
- package/dist/core/checkpoints/handoff.d.ts +1 -1
- package/dist/core/checkpoints/handoff.d.ts.map +1 -1
- package/dist/core/checkpoints/handoff.js +3 -3
- package/dist/core/checkpoints/handoff.js.map +1 -1
- package/dist/core/checkpoints/index.d.ts +4 -4
- package/dist/core/checkpoints/index.d.ts.map +1 -1
- package/dist/core/checkpoints/index.js +4 -4
- package/dist/core/checkpoints/index.js.map +1 -1
- package/dist/core/chunking/index.d.ts +2 -2
- package/dist/core/chunking/index.d.ts.map +1 -1
- package/dist/core/chunking/index.js +8 -10
- package/dist/core/chunking/index.js.map +1 -1
- package/dist/core/chunking/types.d.ts.map +1 -1
- package/dist/core/chunking/types.js.map +1 -1
- package/dist/core/chunking/typescript-chunker.d.ts +1 -1
- package/dist/core/chunking/typescript-chunker.d.ts.map +1 -1
- package/dist/core/chunking/typescript-chunker.js +15 -10
- package/dist/core/chunking/typescript-chunker.js.map +1 -1
- package/dist/core/chunking/utils.d.ts.map +1 -1
- package/dist/core/chunking/utils.js +13 -13
- package/dist/core/chunking/utils.js.map +1 -1
- package/dist/core/config/constants.js.map +1 -1
- package/dist/core/config/feature-flags.d.ts +15 -0
- package/dist/core/config/feature-flags.d.ts.map +1 -1
- package/dist/core/config/feature-flags.js +3 -0
- package/dist/core/config/feature-flags.js.map +1 -1
- package/dist/core/config/generated-files.d.ts.map +1 -1
- package/dist/core/config/generated-files.js.map +1 -1
- package/dist/core/config/index.d.ts +2 -2
- package/dist/core/config/index.d.ts.map +1 -1
- package/dist/core/config/index.js +2 -2
- package/dist/core/config/index.js.map +1 -1
- package/dist/core/config/markers.js.map +1 -1
- package/dist/core/config/optional-commands.d.ts.map +1 -1
- package/dist/core/config/optional-commands.js.map +1 -1
- package/dist/core/config/paths.js.map +1 -1
- package/dist/core/context/access-tracker.d.ts.map +1 -1
- package/dist/core/context/access-tracker.js +10 -11
- package/dist/core/context/access-tracker.js.map +1 -1
- package/dist/core/context/auto-injection-engine.d.ts.map +1 -1
- package/dist/core/context/auto-injection-engine.js +12 -9
- package/dist/core/context/auto-injection-engine.js.map +1 -1
- package/dist/core/context/auto-unload-engine.d.ts.map +1 -1
- package/dist/core/context/auto-unload-engine.js +5 -5
- package/dist/core/context/auto-unload-engine.js.map +1 -1
- package/dist/core/context/context-auditor.d.ts.map +1 -1
- package/dist/core/context/context-auditor.js +19 -22
- package/dist/core/context/context-auditor.js.map +1 -1
- package/dist/core/context/context-health.d.ts +28 -3
- package/dist/core/context/context-health.d.ts.map +1 -1
- package/dist/core/context/context-health.js +105 -22
- package/dist/core/context/context-health.js.map +1 -1
- package/dist/core/context/context-manifest.d.ts.map +1 -1
- package/dist/core/context/context-manifest.js +8 -12
- package/dist/core/context/context-manifest.js.map +1 -1
- package/dist/core/context/demand-detector.d.ts +3 -3
- package/dist/core/context/demand-detector.d.ts.map +1 -1
- package/dist/core/context/demand-detector.js +13 -16
- package/dist/core/context/demand-detector.js.map +1 -1
- package/dist/core/context/focus-resource-loader.d.ts +143 -0
- package/dist/core/context/focus-resource-loader.d.ts.map +1 -0
- package/dist/core/context/focus-resource-loader.js +311 -0
- package/dist/core/context/focus-resource-loader.js.map +1 -0
- package/dist/core/context/index.d.ts +15 -15
- package/dist/core/context/index.d.ts.map +1 -1
- package/dist/core/context/index.js +122 -109
- package/dist/core/context/index.js.map +1 -1
- package/dist/core/context/lazy-loader.d.ts +45 -2
- package/dist/core/context/lazy-loader.d.ts.map +1 -1
- package/dist/core/context/lazy-loader.js +75 -13
- package/dist/core/context/lazy-loader.js.map +1 -1
- package/dist/core/context/positional-optimizer.d.ts.map +1 -1
- package/dist/core/context/positional-optimizer.js +15 -16
- package/dist/core/context/positional-optimizer.js.map +1 -1
- package/dist/core/context/prefetch-optimizer.d.ts.map +1 -1
- package/dist/core/context/prefetch-optimizer.js +8 -8
- package/dist/core/context/prefetch-optimizer.js.map +1 -1
- package/dist/core/context/token-tracker.d.ts.map +1 -1
- package/dist/core/context/token-tracker.js +30 -22
- package/dist/core/context/token-tracker.js.map +1 -1
- package/dist/core/context/tool-clearing.d.ts +1 -1
- package/dist/core/context/tool-clearing.d.ts.map +1 -1
- package/dist/core/context/tool-clearing.js +21 -18
- package/dist/core/context/tool-clearing.js.map +1 -1
- package/dist/core/context/tool-protection.d.ts.map +1 -1
- package/dist/core/context/tool-protection.js +1 -3
- package/dist/core/context/tool-protection.js.map +1 -1
- package/dist/core/context/tool-summarization.d.ts.map +1 -1
- package/dist/core/context/tool-summarization.js +24 -19
- package/dist/core/context/tool-summarization.js.map +1 -1
- package/dist/core/context-repl/__tests__/condensation.test.js +3 -3
- package/dist/core/context-repl/__tests__/condensation.test.js.map +1 -1
- package/dist/core/context-repl/__tests__/query-executor.test.js +16 -6
- package/dist/core/context-repl/__tests__/query-executor.test.js.map +1 -1
- package/dist/core/context-repl/__tests__/query-parser.test.js +5 -5
- package/dist/core/context-repl/__tests__/query-parser.test.js.map +1 -1
- package/dist/core/context-repl/condensation.d.ts +1 -1
- package/dist/core/context-repl/condensation.d.ts.map +1 -1
- package/dist/core/context-repl/condensation.js +15 -9
- package/dist/core/context-repl/condensation.js.map +1 -1
- package/dist/core/context-repl/index.d.ts +11 -11
- package/dist/core/context-repl/index.d.ts.map +1 -1
- package/dist/core/context-repl/index.js +15 -15
- package/dist/core/context-repl/index.js.map +1 -1
- package/dist/core/context-repl/partitioning/__tests__/by-dependency.test.js +7 -20
- package/dist/core/context-repl/partitioning/__tests__/by-dependency.test.js.map +1 -1
- package/dist/core/context-repl/partitioning/__tests__/by-directory.test.js +10 -18
- package/dist/core/context-repl/partitioning/__tests__/by-directory.test.js.map +1 -1
- package/dist/core/context-repl/partitioning/__tests__/by-feature.test.js +22 -31
- package/dist/core/context-repl/partitioning/__tests__/by-feature.test.js.map +1 -1
- package/dist/core/context-repl/partitioning/__tests__/by-time.test.js +14 -19
- package/dist/core/context-repl/partitioning/__tests__/by-time.test.js.map +1 -1
- package/dist/core/context-repl/partitioning/__tests__/index.test.js +4 -12
- package/dist/core/context-repl/partitioning/__tests__/index.test.js.map +1 -1
- package/dist/core/context-repl/partitioning/index.d.ts +5 -5
- package/dist/core/context-repl/partitioning/index.d.ts.map +1 -1
- package/dist/core/context-repl/partitioning/index.js +17 -18
- package/dist/core/context-repl/partitioning/index.js.map +1 -1
- package/dist/core/context-repl/partitioning/partition-cache.d.ts +1 -1
- package/dist/core/context-repl/partitioning/partition-cache.d.ts.map +1 -1
- package/dist/core/context-repl/partitioning/partition-cache.js +1 -1
- package/dist/core/context-repl/partitioning/partition-cache.js.map +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-dependency.d.ts +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-dependency.d.ts.map +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-dependency.js +20 -17
- package/dist/core/context-repl/partitioning/strategies/by-dependency.js.map +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-directory.d.ts +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-directory.d.ts.map +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-directory.js +5 -5
- package/dist/core/context-repl/partitioning/strategies/by-directory.js.map +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-feature.d.ts +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-feature.d.ts.map +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-feature.js +18 -38
- package/dist/core/context-repl/partitioning/strategies/by-feature.js.map +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-time.d.ts +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-time.d.ts.map +1 -1
- package/dist/core/context-repl/partitioning/strategies/by-time.js +8 -8
- package/dist/core/context-repl/partitioning/strategies/by-time.js.map +1 -1
- package/dist/core/context-repl/partitioning/strategies/index.d.ts +4 -4
- package/dist/core/context-repl/partitioning/strategies/index.d.ts.map +1 -1
- package/dist/core/context-repl/partitioning/strategies/index.js +8 -8
- package/dist/core/context-repl/partitioning/strategies/index.js.map +1 -1
- package/dist/core/context-repl/partitioning/types.d.ts.map +1 -1
- package/dist/core/context-repl/partitioning/types.js.map +1 -1
- package/dist/core/context-repl/query-executor.d.ts +1 -1
- package/dist/core/context-repl/query-executor.d.ts.map +1 -1
- package/dist/core/context-repl/query-executor.js +42 -20
- package/dist/core/context-repl/query-executor.js.map +1 -1
- package/dist/core/context-repl/query-parser.d.ts +1 -1
- package/dist/core/context-repl/query-parser.d.ts.map +1 -1
- package/dist/core/context-repl/query-parser.js +36 -38
- package/dist/core/context-repl/query-parser.js.map +1 -1
- package/dist/core/context-repl/recursive/__tests__/budget.test.js +4 -4
- package/dist/core/context-repl/recursive/__tests__/budget.test.js.map +1 -1
- package/dist/core/context-repl/recursive/__tests__/decomposer.test.js +6 -6
- package/dist/core/context-repl/recursive/__tests__/decomposer.test.js.map +1 -1
- package/dist/core/context-repl/recursive/__tests__/integration.test.js +9 -6
- package/dist/core/context-repl/recursive/__tests__/integration.test.js.map +1 -1
- package/dist/core/context-repl/recursive/__tests__/quality.test.js +9 -29
- package/dist/core/context-repl/recursive/__tests__/quality.test.js.map +1 -1
- package/dist/core/context-repl/recursive/__tests__/synthesizer.test.js +26 -10
- package/dist/core/context-repl/recursive/__tests__/synthesizer.test.js.map +1 -1
- package/dist/core/context-repl/recursive/budget.d.ts +1 -1
- package/dist/core/context-repl/recursive/budget.d.ts.map +1 -1
- package/dist/core/context-repl/recursive/budget.js +2 -2
- package/dist/core/context-repl/recursive/budget.js.map +1 -1
- package/dist/core/context-repl/recursive/decomposer.d.ts +4 -4
- package/dist/core/context-repl/recursive/decomposer.d.ts.map +1 -1
- package/dist/core/context-repl/recursive/decomposer.js +52 -35
- package/dist/core/context-repl/recursive/decomposer.js.map +1 -1
- package/dist/core/context-repl/recursive/index.d.ts +7 -7
- package/dist/core/context-repl/recursive/index.d.ts.map +1 -1
- package/dist/core/context-repl/recursive/index.js +31 -27
- package/dist/core/context-repl/recursive/index.js.map +1 -1
- package/dist/core/context-repl/recursive/quality.d.ts +1 -1
- package/dist/core/context-repl/recursive/quality.d.ts.map +1 -1
- package/dist/core/context-repl/recursive/quality.js +15 -5
- package/dist/core/context-repl/recursive/quality.js.map +1 -1
- package/dist/core/context-repl/recursive/synthesizer.d.ts +2 -2
- package/dist/core/context-repl/recursive/synthesizer.d.ts.map +1 -1
- package/dist/core/context-repl/recursive/synthesizer.js +11 -11
- package/dist/core/context-repl/recursive/synthesizer.js.map +1 -1
- package/dist/core/context-repl/recursive/trajectory.d.ts +1 -1
- package/dist/core/context-repl/recursive/trajectory.d.ts.map +1 -1
- package/dist/core/context-repl/recursive/trajectory.js +18 -16
- package/dist/core/context-repl/recursive/trajectory.js.map +1 -1
- package/dist/core/context-repl/recursive/types.d.ts.map +1 -1
- package/dist/core/context-repl/recursive/types.js.map +1 -1
- package/dist/core/context-repl/types.d.ts +2 -2
- package/dist/core/context-repl/types.d.ts.map +1 -1
- package/dist/core/context-repl/types.js +16 -5
- package/dist/core/context-repl/types.js.map +1 -1
- package/dist/core/context-repl/variable-loader.d.ts +1 -1
- package/dist/core/context-repl/variable-loader.d.ts.map +1 -1
- package/dist/core/context-repl/variable-loader.js +7 -9
- package/dist/core/context-repl/variable-loader.js.map +1 -1
- package/dist/core/conversations/conversation-manager.d.ts.map +1 -1
- package/dist/core/conversations/conversation-manager.js.map +1 -1
- package/dist/core/embeddings/adapters/index.d.ts +4 -4
- package/dist/core/embeddings/adapters/index.d.ts.map +1 -1
- package/dist/core/embeddings/adapters/index.js +3 -3
- package/dist/core/embeddings/adapters/index.js.map +1 -1
- package/dist/core/embeddings/adapters/local.d.ts +2 -2
- package/dist/core/embeddings/adapters/local.d.ts.map +1 -1
- package/dist/core/embeddings/adapters/local.js +4 -4
- package/dist/core/embeddings/adapters/local.js.map +1 -1
- package/dist/core/embeddings/adapters/qdrant.d.ts +1 -1
- package/dist/core/embeddings/adapters/qdrant.d.ts.map +1 -1
- package/dist/core/embeddings/adapters/qdrant.js +2 -2
- package/dist/core/embeddings/adapters/qdrant.js.map +1 -1
- package/dist/core/embeddings/adapters/types.d.ts +1 -1
- package/dist/core/embeddings/adapters/types.d.ts.map +1 -1
- package/dist/core/embeddings/adapters/types.js.map +1 -1
- package/dist/core/embeddings/backends/index.d.ts.map +1 -1
- package/dist/core/embeddings/backends/index.js.map +1 -1
- package/dist/core/embeddings/backends/local.d.ts.map +1 -1
- package/dist/core/embeddings/backends/local.js +41 -13
- package/dist/core/embeddings/backends/local.js.map +1 -1
- package/dist/core/embeddings/index.d.ts +9 -9
- package/dist/core/embeddings/index.d.ts.map +1 -1
- package/dist/core/embeddings/index.js +9 -6
- package/dist/core/embeddings/index.js.map +1 -1
- package/dist/core/embeddings/query-cache.d.ts.map +1 -1
- package/dist/core/embeddings/query-cache.js.map +1 -1
- package/dist/core/embeddings/types.d.ts.map +1 -1
- package/dist/core/embeddings/types.js.map +1 -1
- package/dist/core/embeddings/vector-store.d.ts.map +1 -1
- package/dist/core/embeddings/vector-store.js +17 -16
- package/dist/core/embeddings/vector-store.js.map +1 -1
- package/dist/core/embeddings/vector-utils.d.ts.map +1 -1
- package/dist/core/embeddings/vector-utils.js +4 -4
- package/dist/core/embeddings/vector-utils.js.map +1 -1
- package/dist/core/errors/index.d.ts.map +1 -1
- package/dist/core/errors/index.js.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js.map +1 -1
- package/dist/core/examples/index.d.ts +1 -1
- package/dist/core/examples/index.d.ts.map +1 -1
- package/dist/core/examples/index.js +1 -1
- package/dist/core/examples/index.js.map +1 -1
- package/dist/core/examples/tool-examples.d.ts.map +1 -1
- package/dist/core/examples/tool-examples.js +6 -15
- package/dist/core/examples/tool-examples.js.map +1 -1
- package/dist/core/features/index.d.ts +1 -1
- package/dist/core/features/index.d.ts.map +1 -1
- package/dist/core/features/index.js +2 -6
- package/dist/core/features/index.js.map +1 -1
- package/dist/core/features/types.d.ts.map +1 -1
- package/dist/core/generator/claude-md.d.ts.map +1 -1
- package/dist/core/generator/claude-md.js +36 -41
- package/dist/core/generator/claude-md.js.map +1 -1
- package/dist/core/generator/index.d.ts +2 -2
- package/dist/core/generator/index.d.ts.map +1 -1
- package/dist/core/generator/index.js +2 -2
- package/dist/core/generator/index.js.map +1 -1
- package/dist/core/generator/session-md.d.ts +1 -1
- package/dist/core/generator/session-md.d.ts.map +1 -1
- package/dist/core/generator/session-md.js +35 -28
- package/dist/core/generator/session-md.js.map +1 -1
- package/dist/core/handoff/index.d.ts +2 -2
- package/dist/core/handoff/index.d.ts.map +1 -1
- package/dist/core/handoff/index.js +1 -1
- package/dist/core/handoff/index.js.map +1 -1
- package/dist/core/handoff/writer.d.ts.map +1 -1
- package/dist/core/handoff/writer.js.map +1 -1
- package/dist/core/intelligence/adaptive-compaction.d.ts.map +1 -1
- package/dist/core/intelligence/adaptive-compaction.js +25 -23
- package/dist/core/intelligence/adaptive-compaction.js.map +1 -1
- package/dist/core/intelligence/budget-forecast.d.ts +1 -1
- package/dist/core/intelligence/budget-forecast.d.ts.map +1 -1
- package/dist/core/intelligence/budget-forecast.js +8 -9
- package/dist/core/intelligence/budget-forecast.js.map +1 -1
- package/dist/core/intelligence/context-budget.d.ts +1 -1
- package/dist/core/intelligence/context-budget.d.ts.map +1 -1
- package/dist/core/intelligence/context-budget.js +30 -30
- package/dist/core/intelligence/context-budget.js.map +1 -1
- package/dist/core/intelligence/effort-advisor.d.ts.map +1 -1
- package/dist/core/intelligence/effort-advisor.js +5 -7
- package/dist/core/intelligence/effort-advisor.js.map +1 -1
- package/dist/core/intelligence/index.d.ts +8 -8
- package/dist/core/intelligence/index.d.ts.map +1 -1
- package/dist/core/intelligence/index.js +46 -46
- package/dist/core/intelligence/index.js.map +1 -1
- package/dist/core/intelligence/playbook/evolution-engine.d.ts +1 -1
- package/dist/core/intelligence/playbook/evolution-engine.d.ts.map +1 -1
- package/dist/core/intelligence/playbook/evolution-engine.js +29 -27
- package/dist/core/intelligence/playbook/evolution-engine.js.map +1 -1
- package/dist/core/intelligence/playbook/feedback-collector.d.ts +2 -2
- package/dist/core/intelligence/playbook/feedback-collector.d.ts.map +1 -1
- package/dist/core/intelligence/playbook/feedback-collector.js +20 -19
- package/dist/core/intelligence/playbook/feedback-collector.js.map +1 -1
- package/dist/core/intelligence/playbook/index.d.ts +7 -7
- package/dist/core/intelligence/playbook/index.d.ts.map +1 -1
- package/dist/core/intelligence/playbook/index.js +20 -22
- package/dist/core/intelligence/playbook/index.js.map +1 -1
- package/dist/core/intelligence/playbook/playbook-store.d.ts +1 -1
- package/dist/core/intelligence/playbook/playbook-store.d.ts.map +1 -1
- package/dist/core/intelligence/playbook/playbook-store.js +16 -14
- package/dist/core/intelligence/playbook/playbook-store.js.map +1 -1
- package/dist/core/intelligence/playbook/strategy-extractor.d.ts +2 -2
- package/dist/core/intelligence/playbook/strategy-extractor.d.ts.map +1 -1
- package/dist/core/intelligence/playbook/strategy-extractor.js +41 -43
- package/dist/core/intelligence/playbook/strategy-extractor.js.map +1 -1
- package/dist/core/intelligence/playbook/tool-sequence.d.ts.map +1 -1
- package/dist/core/intelligence/playbook/tool-sequence.js +1 -2
- package/dist/core/intelligence/playbook/tool-sequence.js.map +1 -1
- package/dist/core/intelligence/playbook/types.d.ts.map +1 -1
- package/dist/core/intelligence/progress-tracker.d.ts +1 -1
- package/dist/core/intelligence/progress-tracker.d.ts.map +1 -1
- package/dist/core/intelligence/progress-tracker.js.map +1 -1
- package/dist/core/intelligence/session-compactor.d.ts.map +1 -1
- package/dist/core/intelligence/session-compactor.js +23 -27
- package/dist/core/intelligence/session-compactor.js.map +1 -1
- package/dist/core/intelligence/trajectory.d.ts.map +1 -1
- package/dist/core/intelligence/trajectory.js +37 -26
- package/dist/core/intelligence/trajectory.js.map +1 -1
- package/dist/core/knowledge-graph/entity-extractor.d.ts +1 -1
- package/dist/core/knowledge-graph/entity-extractor.d.ts.map +1 -1
- package/dist/core/knowledge-graph/entity-extractor.js +13 -13
- package/dist/core/knowledge-graph/entity-extractor.js.map +1 -1
- package/dist/core/knowledge-graph/graph.d.ts +1 -1
- package/dist/core/knowledge-graph/graph.d.ts.map +1 -1
- package/dist/core/knowledge-graph/graph.js +59 -64
- package/dist/core/knowledge-graph/graph.js.map +1 -1
- package/dist/core/knowledge-graph/index.d.ts +3 -3
- package/dist/core/knowledge-graph/index.d.ts.map +1 -1
- package/dist/core/knowledge-graph/index.js +13 -13
- package/dist/core/knowledge-graph/index.js.map +1 -1
- package/dist/core/knowledge-graph/types.d.ts.map +1 -1
- package/dist/core/knowledge-graph/types.js.map +1 -1
- package/dist/core/memory/access-heatmap.d.ts.map +1 -1
- package/dist/core/memory/access-heatmap.js +5 -7
- package/dist/core/memory/access-heatmap.js.map +1 -1
- package/dist/core/memory/adaptive-strategy.d.ts +1 -1
- package/dist/core/memory/adaptive-strategy.d.ts.map +1 -1
- package/dist/core/memory/adaptive-strategy.js +11 -15
- package/dist/core/memory/adaptive-strategy.js.map +1 -1
- package/dist/core/memory/consolidation.d.ts +2 -2
- package/dist/core/memory/consolidation.d.ts.map +1 -1
- package/dist/core/memory/consolidation.js +49 -54
- package/dist/core/memory/consolidation.js.map +1 -1
- package/dist/core/memory/cross-linker.d.ts +1 -1
- package/dist/core/memory/cross-linker.d.ts.map +1 -1
- package/dist/core/memory/cross-linker.js +10 -12
- package/dist/core/memory/cross-linker.js.map +1 -1
- package/dist/core/memory/distillation.d.ts +1 -1
- package/dist/core/memory/distillation.d.ts.map +1 -1
- package/dist/core/memory/distillation.js +82 -22
- package/dist/core/memory/distillation.js.map +1 -1
- package/dist/core/memory/failure-registry.d.ts.map +1 -1
- package/dist/core/memory/failure-registry.js +9 -8
- package/dist/core/memory/failure-registry.js.map +1 -1
- package/dist/core/memory/formatters.d.ts +1 -1
- package/dist/core/memory/formatters.d.ts.map +1 -1
- package/dist/core/memory/formatters.js +3 -3
- package/dist/core/memory/formatters.js.map +1 -1
- package/dist/core/memory/global-memory.d.ts +1 -1
- package/dist/core/memory/global-memory.d.ts.map +1 -1
- package/dist/core/memory/global-memory.js +21 -16
- package/dist/core/memory/global-memory.js.map +1 -1
- package/dist/core/memory/graph.d.ts.map +1 -1
- package/dist/core/memory/graph.js +34 -22
- package/dist/core/memory/graph.js.map +1 -1
- package/dist/core/memory/hybrid-retrieval.d.ts +1 -1
- package/dist/core/memory/hybrid-retrieval.d.ts.map +1 -1
- package/dist/core/memory/hybrid-retrieval.js +12 -10
- package/dist/core/memory/hybrid-retrieval.js.map +1 -1
- package/dist/core/memory/index.d.ts +29 -35
- package/dist/core/memory/index.d.ts.map +1 -1
- package/dist/core/memory/index.js +219 -223
- package/dist/core/memory/index.js.map +1 -1
- package/dist/core/memory/memory-capture-agent.d.ts +1 -1
- package/dist/core/memory/memory-capture-agent.d.ts.map +1 -1
- package/dist/core/memory/memory-capture-agent.js +108 -17
- package/dist/core/memory/memory-capture-agent.js.map +1 -1
- package/dist/core/memory/memory-decay.d.ts +1 -1
- package/dist/core/memory/memory-decay.d.ts.map +1 -1
- package/dist/core/memory/memory-decay.js +7 -9
- package/dist/core/memory/memory-decay.js.map +1 -1
- package/dist/core/memory/memory-rehearsal-agent.d.ts +2 -2
- package/dist/core/memory/memory-rehearsal-agent.d.ts.map +1 -1
- package/dist/core/memory/memory-rehearsal-agent.js +9 -11
- package/dist/core/memory/memory-rehearsal-agent.js.map +1 -1
- package/dist/core/memory/memory-retrieval-agent.d.ts +1 -1
- package/dist/core/memory/memory-retrieval-agent.d.ts.map +1 -1
- package/dist/core/memory/memory-retrieval-agent.js +11 -11
- package/dist/core/memory/memory-retrieval-agent.js.map +1 -1
- package/dist/core/memory/memory-staging.d.ts +1 -1
- package/dist/core/memory/memory-staging.d.ts.map +1 -1
- package/dist/core/memory/memory-staging.js +7 -7
- package/dist/core/memory/memory-staging.js.map +1 -1
- package/dist/core/memory/memory-store.d.ts +2 -2
- package/dist/core/memory/memory-store.d.ts.map +1 -1
- package/dist/core/memory/memory-store.js +13 -13
- package/dist/core/memory/memory-store.js.map +1 -1
- package/dist/core/memory/pattern-feedback.d.ts +1 -1
- package/dist/core/memory/pattern-feedback.d.ts.map +1 -1
- package/dist/core/memory/pattern-feedback.js +3 -5
- package/dist/core/memory/pattern-feedback.js.map +1 -1
- package/dist/core/memory/pattern-learner.d.ts.map +1 -1
- package/dist/core/memory/pattern-learner.js +13 -13
- package/dist/core/memory/pattern-learner.js.map +1 -1
- package/dist/core/memory/proactive-extractor.d.ts.map +1 -1
- package/dist/core/memory/proactive-extractor.js +3 -5
- package/dist/core/memory/proactive-extractor.js.map +1 -1
- package/dist/core/memory/recitation.d.ts.map +1 -1
- package/dist/core/memory/recitation.js +5 -9
- package/dist/core/memory/recitation.js.map +1 -1
- package/dist/core/memory/retrieval-optimizer.d.ts.map +1 -1
- package/dist/core/memory/retrieval-optimizer.js +13 -16
- package/dist/core/memory/retrieval-optimizer.js.map +1 -1
- package/dist/core/memory/retrieval.d.ts +1 -1
- package/dist/core/memory/retrieval.d.ts.map +1 -1
- package/dist/core/memory/retrieval.js +4 -5
- package/dist/core/memory/retrieval.js.map +1 -1
- package/dist/core/memory/semantic-recall.d.ts +2 -2
- package/dist/core/memory/semantic-recall.d.ts.map +1 -1
- package/dist/core/memory/semantic-recall.js +6 -8
- package/dist/core/memory/semantic-recall.js.map +1 -1
- package/dist/core/memory/semantic-validation.d.ts.map +1 -1
- package/dist/core/memory/semantic-validation.js +22 -21
- package/dist/core/memory/semantic-validation.js.map +1 -1
- package/dist/core/memory/similarity-utils.d.ts +1 -1
- package/dist/core/memory/similarity-utils.d.ts.map +1 -1
- package/dist/core/memory/similarity-utils.js +2 -3
- package/dist/core/memory/similarity-utils.js.map +1 -1
- package/dist/core/memory/spaced-repetition.d.ts.map +1 -1
- package/dist/core/memory/spaced-repetition.js +9 -8
- package/dist/core/memory/spaced-repetition.js.map +1 -1
- package/dist/core/memory/store.d.ts +1 -1
- package/dist/core/memory/store.d.ts.map +1 -1
- package/dist/core/memory/store.js +3 -3
- package/dist/core/memory/store.js.map +1 -1
- package/dist/core/memory/types.d.ts.map +1 -1
- package/dist/core/memory/types.js +4 -4
- package/dist/core/memory/types.js.map +1 -1
- package/dist/core/memory/virtual-memory.d.ts +1 -1
- package/dist/core/memory/virtual-memory.d.ts.map +1 -1
- package/dist/core/memory/virtual-memory.js +23 -35
- package/dist/core/memory/virtual-memory.js.map +1 -1
- package/dist/core/memory/xml-utils.d.ts +1 -1
- package/dist/core/memory/xml-utils.d.ts.map +1 -1
- package/dist/core/memory/xml-utils.js +5 -6
- package/dist/core/memory/xml-utils.js.map +1 -1
- package/dist/core/plans/plan-manager.d.ts.map +1 -1
- package/dist/core/plans/plan-manager.js +15 -7
- package/dist/core/plans/plan-manager.js.map +1 -1
- package/dist/core/provider/storage.d.ts.map +1 -1
- package/dist/core/provider/storage.js +14 -15
- package/dist/core/provider/storage.js.map +1 -1
- package/dist/core/ralph/git-integration.d.ts.map +1 -1
- package/dist/core/ralph/git-integration.js +2 -4
- package/dist/core/ralph/git-integration.js.map +1 -1
- package/dist/core/ralph/index.d.ts +13 -13
- package/dist/core/ralph/index.d.ts.map +1 -1
- package/dist/core/ralph/index.js +11 -11
- package/dist/core/ralph/index.js.map +1 -1
- package/dist/core/ralph/learning-consolidator.d.ts +1 -1
- package/dist/core/ralph/learning-consolidator.d.ts.map +1 -1
- package/dist/core/ralph/learning-consolidator.js +141 -33
- package/dist/core/ralph/learning-consolidator.js.map +1 -1
- package/dist/core/ralph/metrics.d.ts +1 -1
- package/dist/core/ralph/metrics.d.ts.map +1 -1
- package/dist/core/ralph/metrics.js +14 -22
- package/dist/core/ralph/metrics.js.map +1 -1
- package/dist/core/ralph/prd-generator.d.ts +1 -1
- package/dist/core/ralph/prd-generator.d.ts.map +1 -1
- package/dist/core/ralph/prd-generator.js +20 -20
- package/dist/core/ralph/prd-generator.js.map +1 -1
- package/dist/core/ralph/progress-tracker.d.ts +1 -1
- package/dist/core/ralph/progress-tracker.d.ts.map +1 -1
- package/dist/core/ralph/progress-tracker.js +26 -27
- package/dist/core/ralph/progress-tracker.js.map +1 -1
- package/dist/core/ralph/sub-agent-spawner.d.ts +1 -1
- package/dist/core/ralph/sub-agent-spawner.d.ts.map +1 -1
- package/dist/core/ralph/sub-agent-spawner.js +14 -16
- package/dist/core/ralph/sub-agent-spawner.js.map +1 -1
- package/dist/core/ralph/task-integration.d.ts +1 -1
- package/dist/core/ralph/task-integration.d.ts.map +1 -1
- package/dist/core/ralph/task-integration.js +13 -16
- package/dist/core/ralph/task-integration.js.map +1 -1
- package/dist/core/ralph/types.d.ts.map +1 -1
- package/dist/core/ralph/types.js.map +1 -1
- package/dist/core/retrieval/hybrid.d.ts +2 -2
- package/dist/core/retrieval/hybrid.d.ts.map +1 -1
- package/dist/core/retrieval/hybrid.js +3 -3
- package/dist/core/retrieval/hybrid.js.map +1 -1
- package/dist/core/retrieval/index.d.ts +5 -5
- package/dist/core/retrieval/index.d.ts.map +1 -1
- package/dist/core/retrieval/index.js +3 -3
- package/dist/core/retrieval/index.js.map +1 -1
- package/dist/core/retrieval/ranker.d.ts.map +1 -1
- package/dist/core/retrieval/ranker.js +17 -15
- package/dist/core/retrieval/ranker.js.map +1 -1
- package/dist/core/retrieval/stages.d.ts +5 -5
- package/dist/core/retrieval/stages.d.ts.map +1 -1
- package/dist/core/retrieval/stages.js +14 -15
- package/dist/core/retrieval/stages.js.map +1 -1
- package/dist/core/retrieval/types.d.ts.map +1 -1
- package/dist/core/retrieval/types.js.map +1 -1
- package/dist/core/session/index.d.ts +1 -1
- package/dist/core/session/index.d.ts.map +1 -1
- package/dist/core/session/index.js +1 -1
- package/dist/core/session/index.js.map +1 -1
- package/dist/core/session/roadmap-sync.d.ts.map +1 -1
- package/dist/core/session/roadmap-sync.js +10 -10
- package/dist/core/session/roadmap-sync.js.map +1 -1
- package/dist/core/spec-analyzer/feedback.d.ts +1 -1
- package/dist/core/spec-analyzer/feedback.d.ts.map +1 -1
- package/dist/core/spec-analyzer/feedback.js +8 -4
- package/dist/core/spec-analyzer/feedback.js.map +1 -1
- package/dist/core/spec-analyzer/index.d.ts +3 -3
- package/dist/core/spec-analyzer/index.d.ts.map +1 -1
- package/dist/core/spec-analyzer/index.js +4 -4
- package/dist/core/spec-analyzer/index.js.map +1 -1
- package/dist/core/spec-analyzer/learning-engine.d.ts +1 -1
- package/dist/core/spec-analyzer/learning-engine.d.ts.map +1 -1
- package/dist/core/spec-analyzer/learning-engine.js +6 -4
- package/dist/core/spec-analyzer/learning-engine.js.map +1 -1
- package/dist/core/spec-analyzer/outcome-store.d.ts +1 -1
- package/dist/core/spec-analyzer/outcome-store.d.ts.map +1 -1
- package/dist/core/spec-analyzer/outcome-store.js +11 -17
- package/dist/core/spec-analyzer/outcome-store.js.map +1 -1
- package/dist/core/spec-analyzer/question-context.d.ts.map +1 -1
- package/dist/core/spec-analyzer/question-context.js +6 -13
- package/dist/core/spec-analyzer/question-context.js.map +1 -1
- package/dist/core/spec-analyzer/question-generator.d.ts.map +1 -1
- package/dist/core/spec-analyzer/question-generator.js +7 -8
- package/dist/core/spec-analyzer/question-generator.js.map +1 -1
- package/dist/core/spec-analyzer/question-templates.d.ts.map +1 -1
- package/dist/core/spec-analyzer/question-templates.js +6 -12
- package/dist/core/spec-analyzer/question-templates.js.map +1 -1
- package/dist/core/spec-analyzer/question-types.d.ts.map +1 -1
- package/dist/core/spec-analyzer/question-types.js.map +1 -1
- package/dist/core/spec-analyzer/types.d.ts.map +1 -1
- package/dist/core/spec-analyzer/types.js.map +1 -1
- package/dist/core/tasks/index.d.ts +2 -2
- package/dist/core/tasks/index.d.ts.map +1 -1
- package/dist/core/tasks/index.js +7 -7
- package/dist/core/tasks/index.js.map +1 -1
- package/dist/core/tasks/registry.d.ts +1 -1
- package/dist/core/tasks/registry.d.ts.map +1 -1
- package/dist/core/tasks/registry.js.map +1 -1
- package/dist/core/tasks/todo-sync.d.ts +1 -1
- package/dist/core/tasks/todo-sync.d.ts.map +1 -1
- package/dist/core/tasks/todo-sync.js +2 -2
- package/dist/core/tasks/todo-sync.js.map +1 -1
- package/dist/core/tasks/types.d.ts.map +1 -1
- package/dist/core/tasks/types.js.map +1 -1
- package/dist/core/test-optimization/file-test-mapper.d.ts +1 -1
- package/dist/core/test-optimization/file-test-mapper.d.ts.map +1 -1
- package/dist/core/test-optimization/file-test-mapper.js +2 -2
- package/dist/core/test-optimization/file-test-mapper.js.map +1 -1
- package/dist/core/test-optimization/impact-analyzer.d.ts.map +1 -1
- package/dist/core/test-optimization/impact-analyzer.js +4 -4
- package/dist/core/test-optimization/impact-analyzer.js.map +1 -1
- package/dist/core/test-optimization/index.d.ts +6 -6
- package/dist/core/test-optimization/index.d.ts.map +1 -1
- package/dist/core/test-optimization/index.js +6 -6
- package/dist/core/test-optimization/index.js.map +1 -1
- package/dist/core/test-optimization/scope-analyzer.d.ts +1 -1
- package/dist/core/test-optimization/scope-analyzer.d.ts.map +1 -1
- package/dist/core/test-optimization/scope-analyzer.js +14 -14
- package/dist/core/test-optimization/scope-analyzer.js.map +1 -1
- package/dist/core/test-optimization/test-state-manager.d.ts +1 -1
- package/dist/core/test-optimization/test-state-manager.d.ts.map +1 -1
- package/dist/core/test-optimization/test-state-manager.js.map +1 -1
- package/dist/core/test-optimization/types.d.ts.map +1 -1
- package/dist/core/traces/context-transitions.d.ts +1 -1
- package/dist/core/traces/context-transitions.d.ts.map +1 -1
- package/dist/core/traces/context-transitions.js +5 -7
- package/dist/core/traces/context-transitions.js.map +1 -1
- package/dist/core/traces/execution-tree.d.ts +1 -1
- package/dist/core/traces/execution-tree.d.ts.map +1 -1
- package/dist/core/traces/execution-tree.js +16 -10
- package/dist/core/traces/execution-tree.js.map +1 -1
- package/dist/core/traces/index.d.ts +6 -6
- package/dist/core/traces/index.d.ts.map +1 -1
- package/dist/core/traces/index.js +16 -16
- package/dist/core/traces/index.js.map +1 -1
- package/dist/core/traces/memory-access-log.d.ts +1 -1
- package/dist/core/traces/memory-access-log.d.ts.map +1 -1
- package/dist/core/traces/memory-access-log.js +21 -15
- package/dist/core/traces/memory-access-log.js.map +1 -1
- package/dist/core/traces/trace-exporter.d.ts +1 -1
- package/dist/core/traces/trace-exporter.d.ts.map +1 -1
- package/dist/core/traces/trace-exporter.js +533 -522
- package/dist/core/traces/trace-exporter.js.map +1 -1
- package/dist/core/traces/types.d.ts.map +1 -1
- package/dist/core/traces/types.js.map +1 -1
- package/dist/core/updater/index.d.ts +3 -3
- package/dist/core/updater/index.d.ts.map +1 -1
- package/dist/core/updater/index.js +3 -3
- package/dist/core/updater/index.js.map +1 -1
- package/dist/core/updater/types.d.ts.map +1 -1
- package/dist/core/updater/types.js.map +1 -1
- package/dist/core/updater/update-executor.d.ts +1 -1
- package/dist/core/updater/update-executor.d.ts.map +1 -1
- package/dist/core/updater/update-executor.js +5 -5
- package/dist/core/updater/update-executor.js.map +1 -1
- package/dist/core/updater/version-checker.d.ts +1 -1
- package/dist/core/updater/version-checker.d.ts.map +1 -1
- package/dist/core/updater/version-checker.js +2 -2
- package/dist/core/updater/version-checker.js.map +1 -1
- package/dist/core/validation/ambiguity-detector.d.ts +1 -1
- package/dist/core/validation/ambiguity-detector.d.ts.map +1 -1
- package/dist/core/validation/ambiguity-detector.js +1 -1
- package/dist/core/validation/ambiguity-detector.js.map +1 -1
- package/dist/core/validation/confidence-display.d.ts.map +1 -1
- package/dist/core/validation/confidence-display.js +1 -1
- package/dist/core/validation/confidence-display.js.map +1 -1
- package/dist/core/validation/confidence-scorer.d.ts +1 -1
- package/dist/core/validation/confidence-scorer.d.ts.map +1 -1
- package/dist/core/validation/confidence-scorer.js +2 -3
- package/dist/core/validation/confidence-scorer.js.map +1 -1
- package/dist/core/validation/edge-case-analyzer.d.ts +1 -1
- package/dist/core/validation/edge-case-analyzer.d.ts.map +1 -1
- package/dist/core/validation/edge-case-analyzer.js +1 -1
- package/dist/core/validation/edge-case-analyzer.js.map +1 -1
- package/dist/core/validation/engine.d.ts +2 -2
- package/dist/core/validation/engine.d.ts.map +1 -1
- package/dist/core/validation/engine.js +4 -4
- package/dist/core/validation/engine.js.map +1 -1
- package/dist/core/validation/impact-assessor.d.ts +1 -1
- package/dist/core/validation/impact-assessor.d.ts.map +1 -1
- package/dist/core/validation/impact-assessor.js +5 -1
- package/dist/core/validation/impact-assessor.js.map +1 -1
- package/dist/core/validation/index.d.ts +11 -11
- package/dist/core/validation/index.d.ts.map +1 -1
- package/dist/core/validation/index.js +11 -11
- package/dist/core/validation/index.js.map +1 -1
- package/dist/core/validation/pattern-trust.d.ts.map +1 -1
- package/dist/core/validation/pattern-trust.js +2 -2
- package/dist/core/validation/pattern-trust.js.map +1 -1
- package/dist/core/validation/question-generator.d.ts +1 -1
- package/dist/core/validation/question-generator.d.ts.map +1 -1
- package/dist/core/validation/question-generator.js +10 -6
- package/dist/core/validation/question-generator.js.map +1 -1
- package/dist/core/validation/rules.d.ts +1 -1
- package/dist/core/validation/rules.d.ts.map +1 -1
- package/dist/core/validation/rules.js +2 -2
- package/dist/core/validation/rules.js.map +1 -1
- package/dist/core/validation/types.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -5
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +3 -6
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/post-edit.js +692 -619
- package/dist/hooks/post-edit.js.map +1 -1
- package/dist/hooks/post-execution.js +615 -615
- package/dist/hooks/post-execution.js.map +1 -1
- package/dist/hooks/pre-compact.js +331 -331
- package/dist/hooks/pre-compact.js.map +1 -1
- package/dist/hooks/pre-tool-use.js +309 -309
- package/dist/hooks/pre-tool-use.js.map +1 -1
- package/dist/hooks/pre-validate.js +542 -542
- package/dist/hooks/pre-validate.js.map +1 -1
- package/dist/hooks/session-end.js +157 -157
- package/dist/hooks/session-end.js.map +1 -1
- package/dist/hooks/session-start-verify.d.ts.map +1 -1
- package/dist/hooks/session-start-verify.js +6 -7
- package/dist/hooks/session-start-verify.js.map +1 -1
- package/dist/hooks/session-start.js +494 -379
- package/dist/hooks/session-start.js.map +1 -1
- package/dist/hooks/shared/index.d.ts +1 -1
- package/dist/hooks/shared/index.d.ts.map +1 -1
- package/dist/hooks/shared/index.js +39 -46
- package/dist/hooks/shared/index.js.map +1 -1
- package/dist/hooks/shared/paths.js +27 -27
- package/dist/hooks/shared/paths.js.map +1 -1
- package/dist/hooks/shared/session.d.ts.map +1 -1
- package/dist/hooks/shared/session.js +59 -59
- package/dist/hooks/shared/session.js.map +1 -1
- package/dist/hooks/shared/utils.d.ts +1 -1
- package/dist/hooks/shared/utils.d.ts.map +1 -1
- package/dist/hooks/shared/utils.js +43 -43
- package/dist/hooks/shared/utils.js.map +1 -1
- package/dist/hooks/subagent-start.js.map +1 -1
- package/dist/hooks/subagent-stop.js +222 -222
- package/dist/hooks/subagent-stop.js.map +1 -1
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/hooks/types.js +1 -1
- package/dist/hooks/types.js.map +1 -1
- package/dist/hooks/user-prompt-submit.js +951 -851
- package/dist/hooks/user-prompt-submit.js.map +1 -1
- package/dist/hud/config-counter.js +2 -5
- package/dist/hud/config-counter.js.map +1 -1
- package/dist/hud/config.d.ts +3 -28
- package/dist/hud/config.d.ts.map +1 -1
- package/dist/hud/config.js +9 -61
- package/dist/hud/config.js.map +1 -1
- package/dist/hud/context-tracker.d.ts.map +1 -1
- package/dist/hud/context-tracker.js +1 -1
- package/dist/hud/context-tracker.js.map +1 -1
- package/dist/hud/index.d.ts +10 -10
- package/dist/hud/index.d.ts.map +1 -1
- package/dist/hud/index.js +21 -20
- package/dist/hud/index.js.map +1 -1
- package/dist/hud/mcp-status.js +1 -1
- package/dist/hud/mcp-status.js.map +1 -1
- package/dist/hud/plan-detector.js +1 -1
- package/dist/hud/plan-detector.js.map +1 -1
- package/dist/hud/render/agent-status.d.ts.map +1 -1
- package/dist/hud/render/agent-status.js +4 -8
- package/dist/hud/render/agent-status.js.map +1 -1
- package/dist/hud/render/blockers-badge.d.ts +1 -1
- package/dist/hud/render/blockers-badge.d.ts.map +1 -1
- package/dist/hud/render/blockers-badge.js.map +1 -1
- package/dist/hud/render/budget-bar.d.ts +1 -3
- package/dist/hud/render/budget-bar.d.ts.map +1 -1
- package/dist/hud/render/budget-bar.js +5 -9
- package/dist/hud/render/budget-bar.js.map +1 -1
- package/dist/hud/render/budget-pressure.d.ts +1 -1
- package/dist/hud/render/budget-pressure.d.ts.map +1 -1
- package/dist/hud/render/budget-pressure.js.map +1 -1
- package/dist/hud/render/cache-stats.d.ts +1 -1
- package/dist/hud/render/cache-stats.d.ts.map +1 -1
- package/dist/hud/render/cache-stats.js.map +1 -1
- package/dist/hud/render/circuit.d.ts +1 -1
- package/dist/hud/render/circuit.d.ts.map +1 -1
- package/dist/hud/render/circuit.js +2 -6
- package/dist/hud/render/circuit.js.map +1 -1
- package/dist/hud/render/config-counts.js.map +1 -1
- package/dist/hud/render/context-health.d.ts +1 -1
- package/dist/hud/render/context-health.d.ts.map +1 -1
- package/dist/hud/render/context-health.js.map +1 -1
- package/dist/hud/render/cost-display.d.ts +1 -1
- package/dist/hud/render/cost-display.d.ts.map +1 -1
- package/dist/hud/render/cost-display.js.map +1 -1
- package/dist/hud/render/deferred-status.d.ts +1 -1
- package/dist/hud/render/deferred-status.d.ts.map +1 -1
- package/dist/hud/render/deferred-status.js.map +1 -1
- package/dist/hud/render/focus-display.d.ts +1 -1
- package/dist/hud/render/focus-display.d.ts.map +1 -1
- package/dist/hud/render/focus-display.js +2 -2
- package/dist/hud/render/focus-display.js.map +1 -1
- package/dist/hud/render/git-status.d.ts +1 -1
- package/dist/hud/render/git-status.d.ts.map +1 -1
- package/dist/hud/render/git-status.js +1 -1
- package/dist/hud/render/git-status.js.map +1 -1
- package/dist/hud/render/index.d.ts +19 -19
- package/dist/hud/render/index.d.ts.map +1 -1
- package/dist/hud/render/index.js +29 -29
- package/dist/hud/render/index.js.map +1 -1
- package/dist/hud/render/layouts.d.ts +1 -1
- package/dist/hud/render/layouts.d.ts.map +1 -1
- package/dist/hud/render/layouts.js +20 -18
- package/dist/hud/render/layouts.js.map +1 -1
- package/dist/hud/render/model-plan.d.ts.map +1 -1
- package/dist/hud/render/model-plan.js.map +1 -1
- package/dist/hud/render/phase-indicator.d.ts.map +1 -1
- package/dist/hud/render/phase-indicator.js.map +1 -1
- package/dist/hud/render/session-limit.d.ts +1 -1
- package/dist/hud/render/session-limit.d.ts.map +1 -1
- package/dist/hud/render/session-limit.js +0 -1
- package/dist/hud/render/session-limit.js.map +1 -1
- package/dist/hud/render/session-timer.js.map +1 -1
- package/dist/hud/render/status-icons.d.ts +1 -1
- package/dist/hud/render/status-icons.d.ts.map +1 -1
- package/dist/hud/render/status-icons.js +1 -3
- package/dist/hud/render/status-icons.js.map +1 -1
- package/dist/hud/render/todo-progress.d.ts +1 -1
- package/dist/hud/render/todo-progress.d.ts.map +1 -1
- package/dist/hud/render/todo-progress.js +10 -14
- package/dist/hud/render/todo-progress.js.map +1 -1
- package/dist/hud/render/tool-usage.d.ts +1 -1
- package/dist/hud/render/tool-usage.d.ts.map +1 -1
- package/dist/hud/render/tool-usage.js +4 -8
- package/dist/hud/render/tool-usage.js.map +1 -1
- package/dist/hud/render/tools.d.ts.map +1 -1
- package/dist/hud/render/tools.js +3 -7
- package/dist/hud/render/tools.js.map +1 -1
- package/dist/hud/render/weekly-usage.d.ts +1 -1
- package/dist/hud/render/weekly-usage.d.ts.map +1 -1
- package/dist/hud/render/weekly-usage.js +0 -1
- package/dist/hud/render/weekly-usage.js.map +1 -1
- package/dist/hud/session-reader.js +4 -4
- package/dist/hud/session-reader.js.map +1 -1
- package/dist/hud/stdin.d.ts +0 -3
- package/dist/hud/stdin.d.ts.map +1 -1
- package/dist/hud/stdin.js +10 -35
- package/dist/hud/stdin.js.map +1 -1
- package/dist/hud/transcript-reader.d.ts +1 -1
- package/dist/hud/transcript-reader.d.ts.map +1 -1
- package/dist/hud/transcript-reader.js +10 -16
- package/dist/hud/transcript-reader.js.map +1 -1
- package/dist/hud/types.d.ts +1 -3
- package/dist/hud/types.d.ts.map +1 -1
- package/dist/hud/usage-api.d.ts.map +1 -1
- package/dist/hud/usage-api.js +4 -4
- package/dist/hud/usage-api.js.map +1 -1
- package/dist/hud/usage-rotation.d.ts.map +1 -1
- package/dist/hud/usage-rotation.js +2 -2
- package/dist/hud/usage-rotation.js.map +1 -1
- package/dist/hud/usage-tracker.d.ts +1 -1
- package/dist/hud/usage-tracker.d.ts.map +1 -1
- package/dist/hud/usage-tracker.js +7 -7
- package/dist/hud/usage-tracker.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/cache.d.ts.map +1 -1
- package/dist/mcp/cache.js.map +1 -1
- package/dist/mcp/focus-filter.d.ts +74 -0
- package/dist/mcp/focus-filter.d.ts.map +1 -0
- package/dist/mcp/focus-filter.js +229 -0
- package/dist/mcp/focus-filter.js.map +1 -0
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +9 -9
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/registry.d.ts.map +1 -1
- package/dist/mcp/registry.js +9 -9
- package/dist/mcp/registry.js.map +1 -1
- package/dist/mcp/resources/index.d.ts.map +1 -1
- package/dist/mcp/resources/index.js +20 -13
- package/dist/mcp/resources/index.js.map +1 -1
- package/dist/mcp/server.d.ts +3 -2
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +28 -13
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/setup.d.ts.map +1 -1
- package/dist/mcp/setup.js +5 -2
- package/dist/mcp/setup.js.map +1 -1
- package/dist/mcp/tool-catalog.d.ts.map +1 -1
- package/dist/mcp/tool-catalog.js +43 -15
- package/dist/mcp/tool-catalog.js.map +1 -1
- package/dist/mcp/tool-loader.d.ts +2 -2
- package/dist/mcp/tool-loader.d.ts.map +1 -1
- package/dist/mcp/tool-loader.js +1 -1
- package/dist/mcp/tool-loader.js.map +1 -1
- package/dist/mcp/tool-recommender.d.ts +1 -1
- package/dist/mcp/tool-recommender.d.ts.map +1 -1
- package/dist/mcp/tool-recommender.js +101 -26
- package/dist/mcp/tool-recommender.js.map +1 -1
- package/dist/mcp/tool-tiers.d.ts.map +1 -1
- package/dist/mcp/tool-tiers.js.map +1 -1
- package/dist/mcp/tools/agents.d.ts.map +1 -1
- package/dist/mcp/tools/agents.js +93 -59
- package/dist/mcp/tools/agents.js.map +1 -1
- package/dist/mcp/tools/auto-inject.d.ts +36 -0
- package/dist/mcp/tools/auto-inject.d.ts.map +1 -0
- package/dist/mcp/tools/auto-inject.js +143 -0
- package/dist/mcp/tools/auto-inject.js.map +1 -0
- package/dist/mcp/tools/auto-unload.d.ts +29 -0
- package/dist/mcp/tools/auto-unload.d.ts.map +1 -0
- package/dist/mcp/tools/auto-unload.js +148 -0
- package/dist/mcp/tools/auto-unload.js.map +1 -0
- package/dist/mcp/tools/chunking.d.ts.map +1 -1
- package/dist/mcp/tools/chunking.js +8 -12
- package/dist/mcp/tools/chunking.js.map +1 -1
- package/dist/mcp/tools/effort.d.ts.map +1 -1
- package/dist/mcp/tools/effort.js +8 -7
- package/dist/mcp/tools/effort.js.map +1 -1
- package/dist/mcp/tools/embeddings.d.ts.map +1 -1
- package/dist/mcp/tools/embeddings.js +3 -3
- package/dist/mcp/tools/embeddings.js.map +1 -1
- package/dist/mcp/tools/health.d.ts +29 -0
- package/dist/mcp/tools/health.d.ts.map +1 -0
- package/dist/mcp/tools/health.js +168 -0
- package/dist/mcp/tools/health.js.map +1 -0
- package/dist/mcp/tools/index.d.ts +20 -16
- package/dist/mcp/tools/index.d.ts.map +1 -1
- package/dist/mcp/tools/index.js +33 -18
- package/dist/mcp/tools/index.js.map +1 -1
- package/dist/mcp/tools/knowledge-graph.d.ts +1 -1
- package/dist/mcp/tools/knowledge-graph.d.ts.map +1 -1
- package/dist/mcp/tools/knowledge-graph.js +31 -16
- package/dist/mcp/tools/knowledge-graph.js.map +1 -1
- package/dist/mcp/tools/lazy-context.d.ts +1 -1
- package/dist/mcp/tools/lazy-context.d.ts.map +1 -1
- package/dist/mcp/tools/lazy-context.js +15 -13
- package/dist/mcp/tools/lazy-context.js.map +1 -1
- package/dist/mcp/tools/memory.d.ts.map +1 -1
- package/dist/mcp/tools/memory.js +4 -4
- package/dist/mcp/tools/memory.js.map +1 -1
- package/dist/mcp/tools/observability.d.ts.map +1 -1
- package/dist/mcp/tools/observability.js +47 -43
- package/dist/mcp/tools/observability.js.map +1 -1
- package/dist/mcp/tools/plans.d.ts.map +1 -1
- package/dist/mcp/tools/plans.js +3 -7
- package/dist/mcp/tools/plans.js.map +1 -1
- package/dist/mcp/tools/ralph.d.ts +1 -1
- package/dist/mcp/tools/ralph.d.ts.map +1 -1
- package/dist/mcp/tools/ralph.js +36 -33
- package/dist/mcp/tools/ralph.js.map +1 -1
- package/dist/mcp/tools/retrieval.d.ts.map +1 -1
- package/dist/mcp/tools/retrieval.js +10 -14
- package/dist/mcp/tools/retrieval.js.map +1 -1
- package/dist/mcp/tools/scripts.d.ts.map +1 -1
- package/dist/mcp/tools/scripts.js +42 -42
- package/dist/mcp/tools/scripts.js.map +1 -1
- package/dist/mcp/tools/session.d.ts.map +1 -1
- package/dist/mcp/tools/session.js +74 -75
- package/dist/mcp/tools/session.js.map +1 -1
- package/dist/mcp/tools/spec-feedback.d.ts.map +1 -1
- package/dist/mcp/tools/spec-feedback.js +9 -10
- package/dist/mcp/tools/spec-feedback.js.map +1 -1
- package/dist/mcp/tools/tasks.d.ts.map +1 -1
- package/dist/mcp/tools/tasks.js +11 -7
- package/dist/mcp/tools/tasks.js.map +1 -1
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/mcp/types.js.map +1 -1
- package/dist/mcp/utils/format-helpers.d.ts.map +1 -1
- package/dist/mcp/utils/format-helpers.js +10 -8
- package/dist/mcp/utils/format-helpers.js.map +1 -1
- package/dist/mcp/utils/index.d.ts +4 -4
- package/dist/mcp/utils/index.d.ts.map +1 -1
- package/dist/mcp/utils/index.js +14 -14
- package/dist/mcp/utils/index.js.map +1 -1
- package/dist/mcp/utils/response-builder.d.ts +1 -1
- package/dist/mcp/utils/response-builder.d.ts.map +1 -1
- package/dist/mcp/utils/response-builder.js +2 -6
- package/dist/mcp/utils/response-builder.js.map +1 -1
- package/dist/mcp/utils/response-helpers.d.ts.map +1 -1
- package/dist/mcp/utils/response-helpers.js.map +1 -1
- package/dist/mcp/utils/session-helpers.d.ts.map +1 -1
- package/dist/mcp/utils/session-helpers.js +6 -10
- package/dist/mcp/utils/session-helpers.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +14 -10
- package/dist/mcp-server.js.map +1 -1
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +6 -16
- package/dist/plugin/index.js.map +1 -1
- package/dist/plugin/loader.d.ts +1 -1
- package/dist/plugin/loader.d.ts.map +1 -1
- package/dist/plugin/loader.js +1 -1
- package/dist/plugin/loader.js.map +1 -1
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/index.js +799 -799
- package/dist/rules/index.js.map +1 -1
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +926 -896
- package/dist/skills/index.js.map +1 -1
- package/dist/statusline/index.d.ts.map +1 -1
- package/dist/statusline/index.js +55 -55
- package/dist/statusline/index.js.map +1 -1
- package/dist/store/index.d.ts +4 -4
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +5 -5
- package/dist/store/index.js.map +1 -1
- package/dist/store/installer.d.ts +1 -1
- package/dist/store/installer.d.ts.map +1 -1
- package/dist/store/installer.js +19 -13
- package/dist/store/installer.js.map +1 -1
- package/dist/store/registry.d.ts +1 -1
- package/dist/store/registry.d.ts.map +1 -1
- package/dist/store/registry.js +2 -2
- package/dist/store/registry.js.map +1 -1
- package/dist/store/remote.d.ts +1 -1
- package/dist/store/remote.d.ts.map +1 -1
- package/dist/store/remote.js +9 -6
- package/dist/store/remote.js.map +1 -1
- package/dist/store/types.d.ts.map +1 -1
- package/dist/store/types.js.map +1 -1
- package/dist/utils/ascii-art.js +11 -11
- package/dist/utils/ascii-art.js.map +1 -1
- package/dist/utils/exec.d.ts.map +1 -1
- package/dist/utils/exec.js.map +1 -1
- package/dist/utils/file-system.d.ts.map +1 -1
- package/dist/utils/file-system.js +13 -14
- package/dist/utils/file-system.js.map +1 -1
- package/dist/utils/gitignore.d.ts.map +1 -1
- package/dist/utils/gitignore.js +39 -34
- package/dist/utils/gitignore.js.map +1 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +1 -1
- package/dist/utils/validation.js.map +1 -1
- package/package.json +6 -3
- package/dist/hud/config-tui.d.ts +0 -25
- package/dist/hud/config-tui.d.ts.map +0 -1
- package/dist/hud/config-tui.js +0 -199
- package/dist/hud/config-tui.js.map +0 -1
- package/dist/hud/models.d.ts +0 -58
- package/dist/hud/models.d.ts.map +0 -1
- package/dist/hud/models.js +0 -124
- package/dist/hud/models.js.map +0 -1
- package/dist/hud/token-estimator.d.ts +0 -79
- package/dist/hud/token-estimator.d.ts.map +0 -1
- package/dist/hud/token-estimator.js +0 -126
- package/dist/hud/token-estimator.js.map +0 -1
package/dist/rules/index.js
CHANGED
|
@@ -5,864 +5,864 @@
|
|
|
5
5
|
* that Claude Code reads for contextual guidance.
|
|
6
6
|
*/
|
|
7
7
|
import { join } from 'path';
|
|
8
|
-
import { FileSystem } from '../utils/file-system.js';
|
|
9
8
|
import { VERSION } from '../core/config.js';
|
|
9
|
+
import { FileSystem } from '../utils/file-system.js';
|
|
10
10
|
/**
|
|
11
11
|
* Generate session context rule content (merged with workflow-phases in v12.2.0)
|
|
12
12
|
*/
|
|
13
13
|
function generateSessionContextRule() {
|
|
14
|
-
return `# Session Context Interpretation (dino-spec v${VERSION})
|
|
15
|
-
|
|
16
|
-
## Reading session.md
|
|
17
|
-
|
|
18
|
-
The \`.dino/session.md\` file contains live session state:
|
|
19
|
-
|
|
20
|
-
### Focus Section
|
|
21
|
-
\`\`\`markdown
|
|
22
|
-
## Focus
|
|
23
|
-
**src/commands/** (high confidence, directory-cluster)
|
|
24
|
-
\`\`\`
|
|
25
|
-
- Indicates current working area
|
|
26
|
-
- Confidence: high/medium/low
|
|
27
|
-
- Source: directory-cluster, feature-pair, entry-point, manual
|
|
28
|
-
|
|
29
|
-
### Recent Changes
|
|
30
|
-
\`\`\`markdown
|
|
31
|
-
## Recent Changes
|
|
32
|
-
- 10:30 [dependency] package.json
|
|
33
|
-
- 10:25 [code] src/core/analyzer.ts
|
|
34
|
-
\`\`\`
|
|
35
|
-
- Categories: dependency, structural, config, test, code, documentation
|
|
36
|
-
- Ordered by recency (newest first)
|
|
37
|
-
- Last 10 changes shown
|
|
38
|
-
|
|
39
|
-
### Test/Build/Lint Status
|
|
40
|
-
\`\`\`markdown
|
|
41
|
-
## Test Status
|
|
42
|
-
**Status:** failing (2025-01-17 10:45)
|
|
43
|
-
**Counts:** 23 passed, 2 failed, 1 skipped
|
|
44
|
-
\`\`\`
|
|
45
|
-
- Statuses: passing, failing, partial, unknown
|
|
46
|
-
- Tracked automatically by hooks
|
|
47
|
-
|
|
48
|
-
### Progress Signals
|
|
49
|
-
\`\`\`markdown
|
|
50
|
-
## Progress
|
|
51
|
-
- 2025-01-17 10:45: build-fixed - Build now passing
|
|
52
|
-
\`\`\`
|
|
53
|
-
- Auto-detected state transitions
|
|
54
|
-
- Types: tests-fixed, tests-broken, build-fixed, build-broken, lint-fixed
|
|
55
|
-
|
|
56
|
-
### Blockers
|
|
57
|
-
\`\`\`markdown
|
|
58
|
-
## Blockers
|
|
59
|
-
- Fix failing test: handle edge case
|
|
60
|
-
\`\`\`
|
|
61
|
-
- Active issues preventing completion
|
|
62
|
-
- Auto-resolved when tests/build pass
|
|
63
|
-
|
|
64
|
-
### Pending Actions
|
|
65
|
-
\`\`\`markdown
|
|
66
|
-
## Pending Actions
|
|
67
|
-
- Run
|
|
68
|
-
\`\`\`
|
|
69
|
-
- Auto-generated from change categories
|
|
70
|
-
- dependency changes →
|
|
71
|
-
- structural changes → verify imports
|
|
72
|
-
|
|
73
|
-
## Using Context
|
|
74
|
-
|
|
75
|
-
1. **Check focus first** - Work within focus area when possible
|
|
76
|
-
2. **Review blockers** - Address blockers before new work
|
|
77
|
-
3. **Track pending actions** - Execute before testing
|
|
78
|
-
4. **Note progress** - Build on recent progress signals
|
|
79
|
-
|
|
80
|
-
## Phase Progression
|
|
81
|
-
|
|
82
|
-
When working with dino-spec session context, follow these phase patterns:
|
|
83
|
-
|
|
84
|
-
### Discovery Phase
|
|
85
|
-
- Capture requirements from user prompts
|
|
86
|
-
- Record in session.md under Notes
|
|
87
|
-
- Ask clarifying questions before planning
|
|
88
|
-
|
|
89
|
-
### Research Phase
|
|
90
|
-
- Explore codebase for existing patterns
|
|
91
|
-
- Document findings in session context
|
|
92
|
-
- Identify reusable components
|
|
93
|
-
|
|
94
|
-
### Clarification Phase
|
|
95
|
-
- Use AskUserQuestion for ambiguities
|
|
96
|
-
- Validate assumptions with user
|
|
97
|
-
- Update session.md with decisions
|
|
98
|
-
|
|
99
|
-
### Planning Phase
|
|
100
|
-
- Enter plan mode for non-trivial tasks
|
|
101
|
-
- Create structured implementation plan
|
|
102
|
-
- Get user approval before proceeding
|
|
103
|
-
|
|
104
|
-
### Breakdown Phase
|
|
105
|
-
- Break plan into TodoWrite items
|
|
106
|
-
- Create atomic, verifiable tasks
|
|
107
|
-
- Mark dependencies between tasks
|
|
108
|
-
|
|
109
|
-
### Implementation Phase
|
|
110
|
-
- Execute todos sequentially
|
|
111
|
-
- Update session.md focus area
|
|
112
|
-
- Track progress signals
|
|
113
|
-
|
|
114
|
-
### Verification Phase
|
|
115
|
-
- Run tests after implementation
|
|
116
|
-
- Verify build passes
|
|
117
|
-
- Check lint status
|
|
118
|
-
|
|
119
|
-
### Completion Phase
|
|
120
|
-
- Archive completed work
|
|
121
|
-
- Update session notes
|
|
122
|
-
- Clear blockers
|
|
123
|
-
|
|
124
|
-
## Auto-Detection
|
|
125
|
-
|
|
126
|
-
The hook system automatically detects phase transitions:
|
|
127
|
-
- File edits → Implementation phase
|
|
128
|
-
- Test runs → Verification phase
|
|
129
|
-
- Build runs → Verification phase
|
|
130
|
-
- Session start → Discovery/Resume phase
|
|
131
|
-
|
|
132
|
-
## Focus Management
|
|
133
|
-
|
|
134
|
-
Focus is auto-detected from edit clustering:
|
|
135
|
-
- \`high\` confidence: 70%+ edits in same directory
|
|
136
|
-
- \`medium\` confidence: 50-70% clustering
|
|
137
|
-
- \`low\` confidence: < 50% clustering
|
|
14
|
+
return `# Session Context Interpretation (dino-spec v${VERSION})
|
|
15
|
+
|
|
16
|
+
## Reading session.md
|
|
17
|
+
|
|
18
|
+
The \`.dino/session.md\` file contains live session state:
|
|
19
|
+
|
|
20
|
+
### Focus Section
|
|
21
|
+
\`\`\`markdown
|
|
22
|
+
## Focus
|
|
23
|
+
**src/commands/** (high confidence, directory-cluster)
|
|
24
|
+
\`\`\`
|
|
25
|
+
- Indicates current working area
|
|
26
|
+
- Confidence: high/medium/low
|
|
27
|
+
- Source: directory-cluster, feature-pair, entry-point, manual
|
|
28
|
+
|
|
29
|
+
### Recent Changes
|
|
30
|
+
\`\`\`markdown
|
|
31
|
+
## Recent Changes
|
|
32
|
+
- 10:30 [dependency] package.json
|
|
33
|
+
- 10:25 [code] src/core/analyzer.ts
|
|
34
|
+
\`\`\`
|
|
35
|
+
- Categories: dependency, structural, config, test, code, documentation
|
|
36
|
+
- Ordered by recency (newest first)
|
|
37
|
+
- Last 10 changes shown
|
|
38
|
+
|
|
39
|
+
### Test/Build/Lint Status
|
|
40
|
+
\`\`\`markdown
|
|
41
|
+
## Test Status
|
|
42
|
+
**Status:** failing (2025-01-17 10:45)
|
|
43
|
+
**Counts:** 23 passed, 2 failed, 1 skipped
|
|
44
|
+
\`\`\`
|
|
45
|
+
- Statuses: passing, failing, partial, unknown
|
|
46
|
+
- Tracked automatically by hooks
|
|
47
|
+
|
|
48
|
+
### Progress Signals
|
|
49
|
+
\`\`\`markdown
|
|
50
|
+
## Progress
|
|
51
|
+
- 2025-01-17 10:45: build-fixed - Build now passing
|
|
52
|
+
\`\`\`
|
|
53
|
+
- Auto-detected state transitions
|
|
54
|
+
- Types: tests-fixed, tests-broken, build-fixed, build-broken, lint-fixed
|
|
55
|
+
|
|
56
|
+
### Blockers
|
|
57
|
+
\`\`\`markdown
|
|
58
|
+
## Blockers
|
|
59
|
+
- Fix failing test: handle edge case
|
|
60
|
+
\`\`\`
|
|
61
|
+
- Active issues preventing completion
|
|
62
|
+
- Auto-resolved when tests/build pass
|
|
63
|
+
|
|
64
|
+
### Pending Actions
|
|
65
|
+
\`\`\`markdown
|
|
66
|
+
## Pending Actions
|
|
67
|
+
- Run bun install after dependency changes
|
|
68
|
+
\`\`\`
|
|
69
|
+
- Auto-generated from change categories
|
|
70
|
+
- dependency changes → bun install
|
|
71
|
+
- structural changes → verify imports
|
|
72
|
+
|
|
73
|
+
## Using Context
|
|
74
|
+
|
|
75
|
+
1. **Check focus first** - Work within focus area when possible
|
|
76
|
+
2. **Review blockers** - Address blockers before new work
|
|
77
|
+
3. **Track pending actions** - Execute before testing
|
|
78
|
+
4. **Note progress** - Build on recent progress signals
|
|
79
|
+
|
|
80
|
+
## Phase Progression
|
|
81
|
+
|
|
82
|
+
When working with dino-spec session context, follow these phase patterns:
|
|
83
|
+
|
|
84
|
+
### Discovery Phase
|
|
85
|
+
- Capture requirements from user prompts
|
|
86
|
+
- Record in session.md under Notes
|
|
87
|
+
- Ask clarifying questions before planning
|
|
88
|
+
|
|
89
|
+
### Research Phase
|
|
90
|
+
- Explore codebase for existing patterns
|
|
91
|
+
- Document findings in session context
|
|
92
|
+
- Identify reusable components
|
|
93
|
+
|
|
94
|
+
### Clarification Phase
|
|
95
|
+
- Use AskUserQuestion for ambiguities
|
|
96
|
+
- Validate assumptions with user
|
|
97
|
+
- Update session.md with decisions
|
|
98
|
+
|
|
99
|
+
### Planning Phase
|
|
100
|
+
- Enter plan mode for non-trivial tasks
|
|
101
|
+
- Create structured implementation plan
|
|
102
|
+
- Get user approval before proceeding
|
|
103
|
+
|
|
104
|
+
### Breakdown Phase
|
|
105
|
+
- Break plan into TodoWrite items
|
|
106
|
+
- Create atomic, verifiable tasks
|
|
107
|
+
- Mark dependencies between tasks
|
|
108
|
+
|
|
109
|
+
### Implementation Phase
|
|
110
|
+
- Execute todos sequentially
|
|
111
|
+
- Update session.md focus area
|
|
112
|
+
- Track progress signals
|
|
113
|
+
|
|
114
|
+
### Verification Phase
|
|
115
|
+
- Run tests after implementation
|
|
116
|
+
- Verify build passes
|
|
117
|
+
- Check lint status
|
|
118
|
+
|
|
119
|
+
### Completion Phase
|
|
120
|
+
- Archive completed work
|
|
121
|
+
- Update session notes
|
|
122
|
+
- Clear blockers
|
|
123
|
+
|
|
124
|
+
## Auto-Detection
|
|
125
|
+
|
|
126
|
+
The hook system automatically detects phase transitions:
|
|
127
|
+
- File edits → Implementation phase
|
|
128
|
+
- Test runs → Verification phase
|
|
129
|
+
- Build runs → Verification phase
|
|
130
|
+
- Session start → Discovery/Resume phase
|
|
131
|
+
|
|
132
|
+
## Focus Management
|
|
133
|
+
|
|
134
|
+
Focus is auto-detected from edit clustering:
|
|
135
|
+
- \`high\` confidence: 70%+ edits in same directory
|
|
136
|
+
- \`medium\` confidence: 50-70% clustering
|
|
137
|
+
- \`low\` confidence: < 50% clustering
|
|
138
138
|
`;
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
141
|
* Generate auto-context engineering rule content
|
|
142
142
|
*/
|
|
143
143
|
function generateAutoContextEngineeringRule() {
|
|
144
|
-
return `# Auto Context Engineering (dino-spec v${VERSION})
|
|
145
|
-
|
|
146
|
-
## Automatic Features
|
|
147
|
-
|
|
148
|
-
All context engineering features are enabled by default:
|
|
149
|
-
|
|
150
|
-
1. **MCP Tool Filtering** - Only phase-relevant tools loaded (~50-70% context savings)
|
|
151
|
-
2. **Lazy Context Loading** - Resources deferred until needed
|
|
152
|
-
3. **Session State Tracking** - Focus, blockers, progress auto-tracked
|
|
153
|
-
|
|
154
|
-
## No Configuration Required
|
|
155
|
-
|
|
156
|
-
Users do NOT need to:
|
|
157
|
-
- Set environment variables
|
|
158
|
-
- Pass special flags
|
|
159
|
-
- Configure anything manually
|
|
160
|
-
|
|
161
|
-
These features auto-apply via \`dino init\` and \`dino update\`.
|
|
162
|
-
|
|
163
|
-
## Opt-Out (Not Recommended)
|
|
164
|
-
|
|
165
|
-
To disable MCP tool filtering:
|
|
166
|
-
\`\`\`bash
|
|
167
|
-
DINO_AGGRESSIVE_FILTERING=false
|
|
168
|
-
\`\`\`
|
|
169
|
-
|
|
170
|
-
This is NOT recommended as it increases context overhead significantly.
|
|
171
|
-
|
|
172
|
-
## Token Savings by Phase
|
|
173
|
-
|
|
174
|
-
| Phase | Tools Loaded | Savings |
|
|
175
|
-
|-------|-------------|---------|
|
|
176
|
-
| Discovery | ~17 | ~60% |
|
|
177
|
-
| Planning | ~22 | ~53% |
|
|
178
|
-
| Implementation | ~23 | ~51% |
|
|
179
|
-
| Completing | ~12 | ~74% |
|
|
180
|
-
|
|
181
|
-
## Phase Auto-Detection
|
|
182
|
-
|
|
183
|
-
Phase is auto-detected from:
|
|
184
|
-
1. \`## Phase\` section in session.md
|
|
185
|
-
2. Default: \`discovery\` if not set
|
|
186
|
-
|
|
187
|
-
The MCP server parses session.md on each \`tools/list\` request to get the current phase.
|
|
144
|
+
return `# Auto Context Engineering (dino-spec v${VERSION})
|
|
145
|
+
|
|
146
|
+
## Automatic Features
|
|
147
|
+
|
|
148
|
+
All context engineering features are enabled by default:
|
|
149
|
+
|
|
150
|
+
1. **MCP Tool Filtering** - Only phase-relevant tools loaded (~50-70% context savings)
|
|
151
|
+
2. **Lazy Context Loading** - Resources deferred until needed
|
|
152
|
+
3. **Session State Tracking** - Focus, blockers, progress auto-tracked
|
|
153
|
+
|
|
154
|
+
## No Configuration Required
|
|
155
|
+
|
|
156
|
+
Users do NOT need to:
|
|
157
|
+
- Set environment variables
|
|
158
|
+
- Pass special flags
|
|
159
|
+
- Configure anything manually
|
|
160
|
+
|
|
161
|
+
These features auto-apply via \`dino init\` and \`dino update\`.
|
|
162
|
+
|
|
163
|
+
## Opt-Out (Not Recommended)
|
|
164
|
+
|
|
165
|
+
To disable MCP tool filtering:
|
|
166
|
+
\`\`\`bash
|
|
167
|
+
DINO_AGGRESSIVE_FILTERING=false
|
|
168
|
+
\`\`\`
|
|
169
|
+
|
|
170
|
+
This is NOT recommended as it increases context overhead significantly.
|
|
171
|
+
|
|
172
|
+
## Token Savings by Phase
|
|
173
|
+
|
|
174
|
+
| Phase | Tools Loaded | Savings |
|
|
175
|
+
|-------|-------------|---------|
|
|
176
|
+
| Discovery | ~17 | ~60% |
|
|
177
|
+
| Planning | ~22 | ~53% |
|
|
178
|
+
| Implementation | ~23 | ~51% |
|
|
179
|
+
| Completing | ~12 | ~74% |
|
|
180
|
+
|
|
181
|
+
## Phase Auto-Detection
|
|
182
|
+
|
|
183
|
+
Phase is auto-detected from:
|
|
184
|
+
1. \`## Phase\` section in session.md
|
|
185
|
+
2. Default: \`discovery\` if not set
|
|
186
|
+
|
|
187
|
+
The MCP server parses session.md on each \`tools/list\` request to get the current phase.
|
|
188
188
|
`;
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
191
|
* Generate effort guidance rule content
|
|
192
192
|
*/
|
|
193
193
|
function generateEffortGuidanceRule() {
|
|
194
|
-
return `# Effort Parameter Guidance (dino-spec v${VERSION})
|
|
195
|
-
|
|
196
|
-
## Overview
|
|
197
|
-
|
|
198
|
-
The \`effort\` parameter guides Claude Code on how much thinking/reasoning to apply to a task. This maps to model selection and extended thinking token allocation.
|
|
199
|
-
|
|
200
|
-
## Effort Levels
|
|
201
|
-
|
|
202
|
-
| Level | Model | Thinking Tokens | Use Cases |
|
|
203
|
-
|-------|-------|-----------------|-----------|
|
|
204
|
-
| **low** | haiku | <2K tokens | Status checks, simple lookups, archival |
|
|
205
|
-
| **medium** | sonnet | 2-5K tokens | Research, implementation, testing |
|
|
206
|
-
| **high** | opus | 5K+ tokens | Planning, architecture, complex analysis |
|
|
207
|
-
|
|
208
|
-
## When to Use Each Level
|
|
209
|
-
|
|
210
|
-
### Low Effort
|
|
211
|
-
- Quick status checks (\`/dino.status\`)
|
|
212
|
-
- Simple lookups and reads
|
|
213
|
-
- Archival tasks (\`/dino.fossil\`)
|
|
214
|
-
- Focus changes (\`/dino.status --focus\`)
|
|
215
|
-
- Clarification questions (\`/dino.sniff\`)
|
|
216
|
-
- Loading handoff context (\`/dino.handoff\`)
|
|
217
|
-
- Next step suggestions (\`/dino.status --next\`)
|
|
218
|
-
- Context optimization guidance (\`/dino.status --tips\`)
|
|
219
|
-
|
|
220
|
-
**Characteristics:**
|
|
221
|
-
- Single-step operations
|
|
222
|
-
- Minimal reasoning required
|
|
223
|
-
- Speed is more important than depth
|
|
224
|
-
- Read-heavy, write-light
|
|
225
|
-
|
|
226
|
-
### Medium Effort
|
|
227
|
-
- Research tasks (\`/dino.scout\`, \`/research\`)
|
|
228
|
-
- Implementation execution (\`/dino.hunt\`)
|
|
229
|
-
- Test verification (\`/dino.aging\`)
|
|
230
|
-
- Task breakdown (\`/dino.hatch\`)
|
|
231
|
-
- Release workflows (\`/dino.release\`)
|
|
232
|
-
|
|
233
|
-
**Characteristics:**
|
|
234
|
-
- Multi-step operations
|
|
235
|
-
- Moderate reasoning required
|
|
236
|
-
- Balance of speed and quality
|
|
237
|
-
- Mix of reading and writing
|
|
238
|
-
|
|
239
|
-
### High Effort
|
|
240
|
-
- Architecture planning (\`/dino.nest\`)
|
|
241
|
-
- Complex analysis
|
|
242
|
-
- Design decisions
|
|
243
|
-
- Multi-component changes
|
|
244
|
-
|
|
245
|
-
**Characteristics:**
|
|
246
|
-
- Deep reasoning required
|
|
247
|
-
- Many interdependent decisions
|
|
248
|
-
- Quality is more important than speed
|
|
249
|
-
- Significant impact on codebase
|
|
250
|
-
|
|
251
|
-
## Opus 4.5 Extended Thinking
|
|
252
|
-
|
|
253
|
-
For high-effort tasks, Opus 4.5's extended thinking capabilities can be leveraged:
|
|
254
|
-
|
|
255
|
-
\`\`\`yaml
|
|
256
|
-
# In SKILL.md frontmatter
|
|
257
|
-
effort: high # Signals to use extended thinking
|
|
258
|
-
\`\`\`
|
|
259
|
-
|
|
260
|
-
**Extended thinking is useful for:**
|
|
261
|
-
- Understanding complex requirements
|
|
262
|
-
- Exploring multiple approaches
|
|
263
|
-
- Identifying edge cases
|
|
264
|
-
- Planning multi-file changes
|
|
265
|
-
- Architectural decisions
|
|
266
|
-
|
|
267
|
-
## Mapping to SKILL.md
|
|
268
|
-
|
|
269
|
-
Each skill specifies its effort level in frontmatter:
|
|
270
|
-
|
|
271
|
-
\`\`\`yaml
|
|
272
|
-
---
|
|
273
|
-
description: Plan implementation with structured approach
|
|
274
|
-
model: opus
|
|
275
|
-
effort: high
|
|
276
|
-
context: fork
|
|
277
|
-
---
|
|
278
|
-
\`\`\`
|
|
279
|
-
|
|
280
|
-
## Budget Considerations
|
|
281
|
-
|
|
282
|
-
Effort level affects token budget:
|
|
283
|
-
|
|
284
|
-
| Level | Typical Budget Impact | Cost Factor |
|
|
285
|
-
|-------|----------------------|-------------|
|
|
286
|
-
| low | ~1K tokens | 1x (cheapest) |
|
|
287
|
-
| medium | ~5K tokens | 3x |
|
|
288
|
-
| high | ~15K+ tokens | 10x |
|
|
289
|
-
|
|
290
|
-
Use the lowest effort level that produces good results for the task.
|
|
291
|
-
|
|
292
|
-
## Dynamic Effort Adjustment
|
|
293
|
-
|
|
294
|
-
Consider increasing effort when:
|
|
295
|
-
- Initial attempt fails or produces poor results
|
|
296
|
-
- Task complexity is higher than expected
|
|
297
|
-
- User feedback indicates need for deeper analysis
|
|
298
|
-
|
|
299
|
-
Consider decreasing effort when:
|
|
300
|
-
- Task is simpler than expected
|
|
301
|
-
- Budget constraints are tight
|
|
302
|
-
- Speed is prioritized over depth
|
|
194
|
+
return `# Effort Parameter Guidance (dino-spec v${VERSION})
|
|
195
|
+
|
|
196
|
+
## Overview
|
|
197
|
+
|
|
198
|
+
The \`effort\` parameter guides Claude Code on how much thinking/reasoning to apply to a task. This maps to model selection and extended thinking token allocation.
|
|
199
|
+
|
|
200
|
+
## Effort Levels
|
|
201
|
+
|
|
202
|
+
| Level | Model | Thinking Tokens | Use Cases |
|
|
203
|
+
|-------|-------|-----------------|-----------|
|
|
204
|
+
| **low** | haiku | <2K tokens | Status checks, simple lookups, archival |
|
|
205
|
+
| **medium** | sonnet | 2-5K tokens | Research, implementation, testing |
|
|
206
|
+
| **high** | opus | 5K+ tokens | Planning, architecture, complex analysis |
|
|
207
|
+
|
|
208
|
+
## When to Use Each Level
|
|
209
|
+
|
|
210
|
+
### Low Effort
|
|
211
|
+
- Quick status checks (\`/dino.status\`)
|
|
212
|
+
- Simple lookups and reads
|
|
213
|
+
- Archival tasks (\`/dino.fossil\`)
|
|
214
|
+
- Focus changes (\`/dino.status --focus\`)
|
|
215
|
+
- Clarification questions (\`/dino.sniff\`)
|
|
216
|
+
- Loading handoff context (\`/dino.handoff\`)
|
|
217
|
+
- Next step suggestions (\`/dino.status --next\`)
|
|
218
|
+
- Context optimization guidance (\`/dino.status --tips\`)
|
|
219
|
+
|
|
220
|
+
**Characteristics:**
|
|
221
|
+
- Single-step operations
|
|
222
|
+
- Minimal reasoning required
|
|
223
|
+
- Speed is more important than depth
|
|
224
|
+
- Read-heavy, write-light
|
|
225
|
+
|
|
226
|
+
### Medium Effort
|
|
227
|
+
- Research tasks (\`/dino.scout\`, \`/research\`)
|
|
228
|
+
- Implementation execution (\`/dino.hunt\`)
|
|
229
|
+
- Test verification (\`/dino.aging\`)
|
|
230
|
+
- Task breakdown (\`/dino.hatch\`)
|
|
231
|
+
- Release workflows (\`/dino.release\`)
|
|
232
|
+
|
|
233
|
+
**Characteristics:**
|
|
234
|
+
- Multi-step operations
|
|
235
|
+
- Moderate reasoning required
|
|
236
|
+
- Balance of speed and quality
|
|
237
|
+
- Mix of reading and writing
|
|
238
|
+
|
|
239
|
+
### High Effort
|
|
240
|
+
- Architecture planning (\`/dino.nest\`)
|
|
241
|
+
- Complex analysis
|
|
242
|
+
- Design decisions
|
|
243
|
+
- Multi-component changes
|
|
244
|
+
|
|
245
|
+
**Characteristics:**
|
|
246
|
+
- Deep reasoning required
|
|
247
|
+
- Many interdependent decisions
|
|
248
|
+
- Quality is more important than speed
|
|
249
|
+
- Significant impact on codebase
|
|
250
|
+
|
|
251
|
+
## Opus 4.5 Extended Thinking
|
|
252
|
+
|
|
253
|
+
For high-effort tasks, Opus 4.5's extended thinking capabilities can be leveraged:
|
|
254
|
+
|
|
255
|
+
\`\`\`yaml
|
|
256
|
+
# In SKILL.md frontmatter
|
|
257
|
+
effort: high # Signals to use extended thinking
|
|
258
|
+
\`\`\`
|
|
259
|
+
|
|
260
|
+
**Extended thinking is useful for:**
|
|
261
|
+
- Understanding complex requirements
|
|
262
|
+
- Exploring multiple approaches
|
|
263
|
+
- Identifying edge cases
|
|
264
|
+
- Planning multi-file changes
|
|
265
|
+
- Architectural decisions
|
|
266
|
+
|
|
267
|
+
## Mapping to SKILL.md
|
|
268
|
+
|
|
269
|
+
Each skill specifies its effort level in frontmatter:
|
|
270
|
+
|
|
271
|
+
\`\`\`yaml
|
|
272
|
+
---
|
|
273
|
+
description: Plan implementation with structured approach
|
|
274
|
+
model: opus
|
|
275
|
+
effort: high
|
|
276
|
+
context: fork
|
|
277
|
+
---
|
|
278
|
+
\`\`\`
|
|
279
|
+
|
|
280
|
+
## Budget Considerations
|
|
281
|
+
|
|
282
|
+
Effort level affects token budget:
|
|
283
|
+
|
|
284
|
+
| Level | Typical Budget Impact | Cost Factor |
|
|
285
|
+
|-------|----------------------|-------------|
|
|
286
|
+
| low | ~1K tokens | 1x (cheapest) |
|
|
287
|
+
| medium | ~5K tokens | 3x |
|
|
288
|
+
| high | ~15K+ tokens | 10x |
|
|
289
|
+
|
|
290
|
+
Use the lowest effort level that produces good results for the task.
|
|
291
|
+
|
|
292
|
+
## Dynamic Effort Adjustment
|
|
293
|
+
|
|
294
|
+
Consider increasing effort when:
|
|
295
|
+
- Initial attempt fails or produces poor results
|
|
296
|
+
- Task complexity is higher than expected
|
|
297
|
+
- User feedback indicates need for deeper analysis
|
|
298
|
+
|
|
299
|
+
Consider decreasing effort when:
|
|
300
|
+
- Task is simpler than expected
|
|
301
|
+
- Budget constraints are tight
|
|
302
|
+
- Speed is prioritized over depth
|
|
303
303
|
`;
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
306
|
* Generate ralph loop rule content
|
|
307
307
|
*/
|
|
308
308
|
function generateRalphLoopRule() {
|
|
309
|
-
return `# Ralph Loop Guidelines (dino-spec v${VERSION})
|
|
310
|
-
|
|
311
|
-
## When to Use Ralph Loop
|
|
312
|
-
|
|
313
|
-
Use \`/dino.ralph\` when:
|
|
314
|
-
- Complexity score > 70
|
|
315
|
-
- Task involves 10+ files
|
|
316
|
-
- Multi-story feature work
|
|
317
|
-
- Major refactoring
|
|
318
|
-
- System-wide changes
|
|
319
|
-
|
|
320
|
-
## Prerequisites
|
|
321
|
-
|
|
322
|
-
Before starting ralph loop:
|
|
323
|
-
1. Run \`/dino.spec\` to achieve 90%+ confidence
|
|
324
|
-
2. Have clear PRD with stories
|
|
325
|
-
3. Each story must have acceptance criteria
|
|
326
|
-
4. Estimated scope should fit in one iteration
|
|
327
|
-
|
|
328
|
-
## Iteration Guidelines
|
|
329
|
-
|
|
330
|
-
Each iteration:
|
|
331
|
-
1. Starts with FRESH context (no history accumulation)
|
|
332
|
-
2. Creates git checkpoint before changes
|
|
333
|
-
3. Focuses on ONE story only
|
|
334
|
-
4. Runs tests after completion
|
|
335
|
-
5. Records learnings for future iterations
|
|
336
|
-
|
|
337
|
-
## Git as Memory
|
|
338
|
-
|
|
339
|
-
Ralph uses git for persistence:
|
|
340
|
-
- \`ralph-cp-{n}\`: Checkpoint commits
|
|
341
|
-
- \`ralph: complete story {id}\`: Story completion commits
|
|
342
|
-
- \`.dino/ralph-progress.md\`: Persistent state file
|
|
343
|
-
|
|
344
|
-
## Maximum Iterations
|
|
345
|
-
|
|
346
|
-
Hard limit: 10 iterations per ralph loop
|
|
347
|
-
- If not complete after 10: Manual review required
|
|
348
|
-
- Each story should ideally complete in 1-2 iterations
|
|
349
|
-
|
|
350
|
-
## Backpressure Signals
|
|
351
|
-
|
|
352
|
-
Tests/types/lints provide guidance:
|
|
353
|
-
- Failing tests → Story not complete
|
|
354
|
-
- Type errors → Implementation incomplete
|
|
355
|
-
- Lint errors → Code quality issues
|
|
356
|
-
|
|
357
|
-
Address these before marking story complete.
|
|
358
|
-
|
|
359
|
-
## PRD Story Format
|
|
360
|
-
|
|
361
|
-
Each story must have:
|
|
362
|
-
\`\`\`markdown
|
|
363
|
-
### Story: {title}
|
|
364
|
-
**ID:** {unique_id}
|
|
365
|
-
**Files:** {list of files to modify}
|
|
366
|
-
**Acceptance Criteria:**
|
|
367
|
-
- [ ] Criterion 1
|
|
368
|
-
- [ ] Criterion 2
|
|
369
|
-
**Test Command:** {command to verify}
|
|
370
|
-
\`\`\`
|
|
371
|
-
|
|
372
|
-
## Sub-Agent Context
|
|
373
|
-
|
|
374
|
-
Each sub-agent receives ONLY:
|
|
375
|
-
- Story requirements
|
|
376
|
-
- Acceptance criteria
|
|
377
|
-
- Relevant files (scoped)
|
|
378
|
-
- Previous learnings
|
|
379
|
-
- Test command
|
|
380
|
-
|
|
381
|
-
NO conversation history, NO unrelated context.
|
|
309
|
+
return `# Ralph Loop Guidelines (dino-spec v${VERSION})
|
|
310
|
+
|
|
311
|
+
## When to Use Ralph Loop
|
|
312
|
+
|
|
313
|
+
Use \`/dino.ralph\` when:
|
|
314
|
+
- Complexity score > 70
|
|
315
|
+
- Task involves 10+ files
|
|
316
|
+
- Multi-story feature work
|
|
317
|
+
- Major refactoring
|
|
318
|
+
- System-wide changes
|
|
319
|
+
|
|
320
|
+
## Prerequisites
|
|
321
|
+
|
|
322
|
+
Before starting ralph loop:
|
|
323
|
+
1. Run \`/dino.spec\` to achieve 90%+ confidence
|
|
324
|
+
2. Have clear PRD with stories
|
|
325
|
+
3. Each story must have acceptance criteria
|
|
326
|
+
4. Estimated scope should fit in one iteration
|
|
327
|
+
|
|
328
|
+
## Iteration Guidelines
|
|
329
|
+
|
|
330
|
+
Each iteration:
|
|
331
|
+
1. Starts with FRESH context (no history accumulation)
|
|
332
|
+
2. Creates git checkpoint before changes
|
|
333
|
+
3. Focuses on ONE story only
|
|
334
|
+
4. Runs tests after completion
|
|
335
|
+
5. Records learnings for future iterations
|
|
336
|
+
|
|
337
|
+
## Git as Memory
|
|
338
|
+
|
|
339
|
+
Ralph uses git for persistence:
|
|
340
|
+
- \`ralph-cp-{n}\`: Checkpoint commits
|
|
341
|
+
- \`ralph: complete story {id}\`: Story completion commits
|
|
342
|
+
- \`.dino/ralph-progress.md\`: Persistent state file
|
|
343
|
+
|
|
344
|
+
## Maximum Iterations
|
|
345
|
+
|
|
346
|
+
Hard limit: 10 iterations per ralph loop
|
|
347
|
+
- If not complete after 10: Manual review required
|
|
348
|
+
- Each story should ideally complete in 1-2 iterations
|
|
349
|
+
|
|
350
|
+
## Backpressure Signals
|
|
351
|
+
|
|
352
|
+
Tests/types/lints provide guidance:
|
|
353
|
+
- Failing tests → Story not complete
|
|
354
|
+
- Type errors → Implementation incomplete
|
|
355
|
+
- Lint errors → Code quality issues
|
|
356
|
+
|
|
357
|
+
Address these before marking story complete.
|
|
358
|
+
|
|
359
|
+
## PRD Story Format
|
|
360
|
+
|
|
361
|
+
Each story must have:
|
|
362
|
+
\`\`\`markdown
|
|
363
|
+
### Story: {title}
|
|
364
|
+
**ID:** {unique_id}
|
|
365
|
+
**Files:** {list of files to modify}
|
|
366
|
+
**Acceptance Criteria:**
|
|
367
|
+
- [ ] Criterion 1
|
|
368
|
+
- [ ] Criterion 2
|
|
369
|
+
**Test Command:** {command to verify}
|
|
370
|
+
\`\`\`
|
|
371
|
+
|
|
372
|
+
## Sub-Agent Context
|
|
373
|
+
|
|
374
|
+
Each sub-agent receives ONLY:
|
|
375
|
+
- Story requirements
|
|
376
|
+
- Acceptance criteria
|
|
377
|
+
- Relevant files (scoped)
|
|
378
|
+
- Previous learnings
|
|
379
|
+
- Test command
|
|
380
|
+
|
|
381
|
+
NO conversation history, NO unrelated context.
|
|
382
382
|
`;
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
385
385
|
* Generate ralph enforcement rule content (v13.1.0)
|
|
386
386
|
*/
|
|
387
387
|
function generateRalphEnforcementRule() {
|
|
388
|
-
return `# Ralph Loop Enforcement (dino-spec v${VERSION})
|
|
389
|
-
|
|
390
|
-
## CRITICAL: Mandatory Ralph Gate
|
|
391
|
-
|
|
392
|
-
When a user requests Ralph Loop or any complex multi-story task, you MUST use the \`/dino.ralph-gate\` skill. This is NOT optional.
|
|
393
|
-
|
|
394
|
-
## Trigger Keywords (Case Insensitive)
|
|
395
|
-
|
|
396
|
-
IMMEDIATELY invoke \`/dino.ralph-gate\` when user message contains:
|
|
397
|
-
|
|
398
|
-
| Keyword | Example |
|
|
399
|
-
|---------|---------|
|
|
400
|
-
| "ralph loop" | "Start ralph loop for this feature" |
|
|
401
|
-
| "ralph" | "Use ralph for this" |
|
|
402
|
-
| "/dino.ralph" | "/dino.ralph" |
|
|
403
|
-
| "fresh context" + "iteration" | "Use fresh context iterations" |
|
|
404
|
-
| "multi-story" | "This is multi-story work" |
|
|
405
|
-
| "three agent" | "Use three agent system" |
|
|
406
|
-
| "gated implementation" | "I want gated implementation" |
|
|
407
|
-
|
|
408
|
-
## Complexity Auto-Trigger
|
|
409
|
-
|
|
410
|
-
ALSO invoke \`/dino.ralph-gate\` when task analysis shows:
|
|
411
|
-
- Complexity score > 70
|
|
412
|
-
- File count > 10
|
|
413
|
-
- Distinct parts >= 3
|
|
414
|
-
- Breaking changes + scope >= 15
|
|
415
|
-
|
|
416
|
-
## Forbidden Bypass
|
|
417
|
-
|
|
418
|
-
You MUST NOT:
|
|
419
|
-
- Skip directly to \`/dino.ralph\` without gating
|
|
420
|
-
- Start implementation without auditor approval
|
|
421
|
-
- Proceed with ambiguity score > 0
|
|
422
|
-
- Accept confidence < 95% for Ralph-eligible tasks
|
|
423
|
-
|
|
424
|
-
## Three-Agent Requirement
|
|
425
|
-
|
|
426
|
-
ALL THREE agents must execute in sequence:
|
|
427
|
-
|
|
428
|
-
\`\`\`
|
|
429
|
-
1. SCOUT (Research) -> Deep exploration, pattern mining
|
|
430
|
-
|
|
|
431
|
-
2. AUDITOR (Gatekeeper) -> 95% score, zero ambiguity required
|
|
432
|
-
|
|
|
433
|
-
3. RALPH (Executor) -> Only after GATE: APPROVED
|
|
434
|
-
\`\`\`
|
|
435
|
-
|
|
436
|
-
If auditor rejects, loop back to scout/clarification. Max 3 cycles.
|
|
437
|
-
|
|
438
|
-
## Skill Invocation
|
|
439
|
-
|
|
440
|
-
When trigger detected, use Skill tool:
|
|
441
|
-
|
|
442
|
-
\`\`\`
|
|
443
|
-
Skill: dino.ralph-gate
|
|
444
|
-
\`\`\`
|
|
445
|
-
|
|
446
|
-
Do NOT use regular \`/dino.ralph\` for complex tasks - always use \`/dino.ralph-gate\`.
|
|
447
|
-
|
|
448
|
-
## Exception: Simple Ralph
|
|
449
|
-
|
|
450
|
-
For tasks that:
|
|
451
|
-
- Already have complete PRD with stories
|
|
452
|
-
- Already went through spec with 90%+ confidence
|
|
453
|
-
- User explicitly says "skip gate" or "already specified"
|
|
454
|
-
|
|
455
|
-
You MAY use \`/dino.ralph\` directly, but MUST confirm with user first.
|
|
456
|
-
|
|
457
|
-
## Audit Trail
|
|
458
|
-
|
|
459
|
-
All Ralph Gate executions produce:
|
|
460
|
-
- \`.dino/ralph-gate/research-report.md\`
|
|
461
|
-
- \`.dino/ralph-gate/audit-report.md\`
|
|
462
|
-
- \`.dino/ralph-gate/validated-prd.md\`
|
|
463
|
-
|
|
464
|
-
These files provide accountability and can be reviewed.
|
|
388
|
+
return `# Ralph Loop Enforcement (dino-spec v${VERSION})
|
|
389
|
+
|
|
390
|
+
## CRITICAL: Mandatory Ralph Gate
|
|
391
|
+
|
|
392
|
+
When a user requests Ralph Loop or any complex multi-story task, you MUST use the \`/dino.ralph-gate\` skill. This is NOT optional.
|
|
393
|
+
|
|
394
|
+
## Trigger Keywords (Case Insensitive)
|
|
395
|
+
|
|
396
|
+
IMMEDIATELY invoke \`/dino.ralph-gate\` when user message contains:
|
|
397
|
+
|
|
398
|
+
| Keyword | Example |
|
|
399
|
+
|---------|---------|
|
|
400
|
+
| "ralph loop" | "Start ralph loop for this feature" |
|
|
401
|
+
| "ralph" | "Use ralph for this" |
|
|
402
|
+
| "/dino.ralph" | "/dino.ralph" |
|
|
403
|
+
| "fresh context" + "iteration" | "Use fresh context iterations" |
|
|
404
|
+
| "multi-story" | "This is multi-story work" |
|
|
405
|
+
| "three agent" | "Use three agent system" |
|
|
406
|
+
| "gated implementation" | "I want gated implementation" |
|
|
407
|
+
|
|
408
|
+
## Complexity Auto-Trigger
|
|
409
|
+
|
|
410
|
+
ALSO invoke \`/dino.ralph-gate\` when task analysis shows:
|
|
411
|
+
- Complexity score > 70
|
|
412
|
+
- File count > 10
|
|
413
|
+
- Distinct parts >= 3
|
|
414
|
+
- Breaking changes + scope >= 15
|
|
415
|
+
|
|
416
|
+
## Forbidden Bypass
|
|
417
|
+
|
|
418
|
+
You MUST NOT:
|
|
419
|
+
- Skip directly to \`/dino.ralph\` without gating
|
|
420
|
+
- Start implementation without auditor approval
|
|
421
|
+
- Proceed with ambiguity score > 0
|
|
422
|
+
- Accept confidence < 95% for Ralph-eligible tasks
|
|
423
|
+
|
|
424
|
+
## Three-Agent Requirement
|
|
425
|
+
|
|
426
|
+
ALL THREE agents must execute in sequence:
|
|
427
|
+
|
|
428
|
+
\`\`\`
|
|
429
|
+
1. SCOUT (Research) -> Deep exploration, pattern mining
|
|
430
|
+
|
|
|
431
|
+
2. AUDITOR (Gatekeeper) -> 95% score, zero ambiguity required
|
|
432
|
+
|
|
|
433
|
+
3. RALPH (Executor) -> Only after GATE: APPROVED
|
|
434
|
+
\`\`\`
|
|
435
|
+
|
|
436
|
+
If auditor rejects, loop back to scout/clarification. Max 3 cycles.
|
|
437
|
+
|
|
438
|
+
## Skill Invocation
|
|
439
|
+
|
|
440
|
+
When trigger detected, use Skill tool:
|
|
441
|
+
|
|
442
|
+
\`\`\`
|
|
443
|
+
Skill: dino.ralph-gate
|
|
444
|
+
\`\`\`
|
|
445
|
+
|
|
446
|
+
Do NOT use regular \`/dino.ralph\` for complex tasks - always use \`/dino.ralph-gate\`.
|
|
447
|
+
|
|
448
|
+
## Exception: Simple Ralph
|
|
449
|
+
|
|
450
|
+
For tasks that:
|
|
451
|
+
- Already have complete PRD with stories
|
|
452
|
+
- Already went through spec with 90%+ confidence
|
|
453
|
+
- User explicitly says "skip gate" or "already specified"
|
|
454
|
+
|
|
455
|
+
You MAY use \`/dino.ralph\` directly, but MUST confirm with user first.
|
|
456
|
+
|
|
457
|
+
## Audit Trail
|
|
458
|
+
|
|
459
|
+
All Ralph Gate executions produce:
|
|
460
|
+
- \`.dino/ralph-gate/research-report.md\`
|
|
461
|
+
- \`.dino/ralph-gate/audit-report.md\`
|
|
462
|
+
- \`.dino/ralph-gate/validated-prd.md\`
|
|
463
|
+
|
|
464
|
+
These files provide accountability and can be reviewed.
|
|
465
465
|
`;
|
|
466
466
|
}
|
|
467
467
|
/**
|
|
468
468
|
* Generate smart tests rule content (v12.3.0)
|
|
469
469
|
*/
|
|
470
470
|
function generateSmartTestsRule() {
|
|
471
|
-
return `# Smart Test Optimization (dino-spec v${VERSION})
|
|
472
|
-
|
|
473
|
-
## Overview
|
|
474
|
-
|
|
475
|
-
Smart test optimization reduces test run times by 60-80% during typical development workflows. The system tracks test state, maps files to related tests, and makes intelligent decisions about when to skip, run targeted, or run full test suites.
|
|
476
|
-
|
|
477
|
-
## Test Scope Levels
|
|
478
|
-
|
|
479
|
-
| Scope | When Used | Duration |
|
|
480
|
-
|-------|-----------|----------|
|
|
481
|
-
| **SKIP** | No changes since passing tests | 0s |
|
|
482
|
-
| **TARGETED** | Changes isolated to single feature | 10-30s |
|
|
483
|
-
| **FULL** | Cross-cutting or high-impact changes | < 3 min |
|
|
484
|
-
|
|
485
|
-
## Decision Tree
|
|
486
|
-
|
|
487
|
-
\`\`\`
|
|
488
|
-
File Changed?
|
|
489
|
-
|
|
|
490
|
-
+- No changes since last passing tests -> SKIP
|
|
491
|
-
|
|
|
492
|
-
+- dependency/structural/config changes -> FULL
|
|
493
|
-
| (package.json, tsconfig.json, index.ts, etc.)
|
|
494
|
-
|
|
|
495
|
-
+- src/utils/ or src/core/ shared code -> FULL
|
|
496
|
-
|
|
|
497
|
-
+- Only code/test changes in single feature -> TARGETED
|
|
498
|
-
|
|
|
499
|
-
+- Only documentation -> SKIP
|
|
500
|
-
\`\`\`
|
|
501
|
-
|
|
502
|
-
## Files That Always Trigger FULL Tests
|
|
503
|
-
|
|
504
|
-
- \`package.json\`, \`package-lock.json\`, lock files
|
|
505
|
-
- \`tsconfig.json\`, \`vitest.config.ts\`, config files
|
|
506
|
-
- \`index.ts\`, \`main.ts\`, entry points
|
|
507
|
-
- Files in \`src/utils/\`, \`src/core/\`, \`src/lib/\`, \`src/shared/\`
|
|
508
|
-
|
|
509
|
-
## Targeted Test Patterns
|
|
510
|
-
|
|
511
|
-
Extract from focus area or changed files:
|
|
512
|
-
|
|
513
|
-
| Focus/Changes | Pattern |
|
|
514
|
-
|---------------|---------|
|
|
515
|
-
| \`src/hooks/\` | \`hooks\` |
|
|
516
|
-
| \`src/core/test-optimization/\` | \`test-optimization\` |
|
|
517
|
-
| \`src/commands/provider.ts\` | \`provider\` |
|
|
518
|
-
| Multiple features | FULL (no pattern) |
|
|
519
|
-
|
|
520
|
-
## Usage in Skills
|
|
521
|
-
|
|
522
|
-
### \`/dino.aging\`
|
|
523
|
-
Uses smart test workflow to analyze scope before running tests.
|
|
524
|
-
|
|
525
|
-
### \`/dino.release\`
|
|
526
|
-
Uses smart test detection to optimize release verification.
|
|
527
|
-
|
|
528
|
-
### \`/dino.hunt\`
|
|
529
|
-
Uses incremental testing during implementation.
|
|
530
|
-
|
|
531
|
-
## Performance Targets
|
|
532
|
-
|
|
533
|
-
| Scenario | Target Duration |
|
|
534
|
-
|----------|-----------------|
|
|
535
|
-
| SKIP (no changes) | 0s |
|
|
536
|
-
| TARGETED (single feature) | 10-30s |
|
|
537
|
-
| FULL (must run all) | < 3 min |
|
|
471
|
+
return `# Smart Test Optimization (dino-spec v${VERSION})
|
|
472
|
+
|
|
473
|
+
## Overview
|
|
474
|
+
|
|
475
|
+
Smart test optimization reduces test run times by 60-80% during typical development workflows. The system tracks test state, maps files to related tests, and makes intelligent decisions about when to skip, run targeted, or run full test suites.
|
|
476
|
+
|
|
477
|
+
## Test Scope Levels
|
|
478
|
+
|
|
479
|
+
| Scope | When Used | Duration |
|
|
480
|
+
|-------|-----------|----------|
|
|
481
|
+
| **SKIP** | No changes since passing tests | 0s |
|
|
482
|
+
| **TARGETED** | Changes isolated to single feature | 10-30s |
|
|
483
|
+
| **FULL** | Cross-cutting or high-impact changes | < 3 min |
|
|
484
|
+
|
|
485
|
+
## Decision Tree
|
|
486
|
+
|
|
487
|
+
\`\`\`
|
|
488
|
+
File Changed?
|
|
489
|
+
|
|
|
490
|
+
+- No changes since last passing tests -> SKIP
|
|
491
|
+
|
|
|
492
|
+
+- dependency/structural/config changes -> FULL
|
|
493
|
+
| (package.json, tsconfig.json, index.ts, etc.)
|
|
494
|
+
|
|
|
495
|
+
+- src/utils/ or src/core/ shared code -> FULL
|
|
496
|
+
|
|
|
497
|
+
+- Only code/test changes in single feature -> TARGETED
|
|
498
|
+
|
|
|
499
|
+
+- Only documentation -> SKIP
|
|
500
|
+
\`\`\`
|
|
501
|
+
|
|
502
|
+
## Files That Always Trigger FULL Tests
|
|
503
|
+
|
|
504
|
+
- \`package.json\`, \`package-lock.json\`, lock files
|
|
505
|
+
- \`tsconfig.json\`, \`vitest.config.ts\`, config files
|
|
506
|
+
- \`index.ts\`, \`main.ts\`, entry points
|
|
507
|
+
- Files in \`src/utils/\`, \`src/core/\`, \`src/lib/\`, \`src/shared/\`
|
|
508
|
+
|
|
509
|
+
## Targeted Test Patterns
|
|
510
|
+
|
|
511
|
+
Extract from focus area or changed files:
|
|
512
|
+
|
|
513
|
+
| Focus/Changes | Pattern |
|
|
514
|
+
|---------------|---------|
|
|
515
|
+
| \`src/hooks/\` | \`hooks\` |
|
|
516
|
+
| \`src/core/test-optimization/\` | \`test-optimization\` |
|
|
517
|
+
| \`src/commands/provider.ts\` | \`provider\` |
|
|
518
|
+
| Multiple features | FULL (no pattern) |
|
|
519
|
+
|
|
520
|
+
## Usage in Skills
|
|
521
|
+
|
|
522
|
+
### \`/dino.aging\`
|
|
523
|
+
Uses smart test workflow to analyze scope before running tests.
|
|
524
|
+
|
|
525
|
+
### \`/dino.release\`
|
|
526
|
+
Uses smart test detection to optimize release verification.
|
|
527
|
+
|
|
528
|
+
### \`/dino.hunt\`
|
|
529
|
+
Uses incremental testing during implementation.
|
|
530
|
+
|
|
531
|
+
## Performance Targets
|
|
532
|
+
|
|
533
|
+
| Scenario | Target Duration |
|
|
534
|
+
|----------|-----------------|
|
|
535
|
+
| SKIP (no changes) | 0s |
|
|
536
|
+
| TARGETED (single feature) | 10-30s |
|
|
537
|
+
| FULL (must run all) | < 3 min |
|
|
538
538
|
`;
|
|
539
539
|
}
|
|
540
540
|
/**
|
|
541
541
|
* Generate skill patterns rule content
|
|
542
542
|
*/
|
|
543
543
|
function generateSkillPatternsRule() {
|
|
544
|
-
return `# Skill Patterns (dino-spec v${VERSION})
|
|
545
|
-
|
|
546
|
-
## v13.1.0 Three-Agent Ralph Gate System
|
|
547
|
-
|
|
548
|
-
New enforced Ralph Loop workflow with strict gating:
|
|
549
|
-
|
|
550
|
-
| Skill | Agent Role | Description |
|
|
551
|
-
|-------|------------|-------------|
|
|
552
|
-
| \`/dino.ralph-gate\` | Orchestrator | Coordinates all three agents |
|
|
553
|
-
| \`/dino.audit\` | Gatekeeper | Blocks until 95% score, zero ambiguity |
|
|
554
|
-
| \`/dino.ralph\` | Executor | Only runs after gate approval |
|
|
555
|
-
|
|
556
|
-
**Flow:** Scout -> Auditor -> Ralph (enforced sequence)
|
|
557
|
-
|
|
558
|
-
See \`ralph-enforcement.md\` for trigger keywords.
|
|
559
|
-
|
|
560
|
-
## v12.0.0 Skill Consolidation
|
|
561
|
-
|
|
562
|
-
Several skills have been merged to reduce context overhead:
|
|
563
|
-
|
|
564
|
-
| Old Skill | New Location | Usage |
|
|
565
|
-
|-----------|-------------|-------|
|
|
566
|
-
| \`/dino.next\` | \`/dino.status --next\` | Get next step suggestions |
|
|
567
|
-
| \`/context-optimize\` | \`/dino.status --tips\` | Context optimization tips |
|
|
568
|
-
| \`/dino.focus\` | \`/dino.status --focus\` | Set focus area |
|
|
569
|
-
| \`/dino-statusline\` | HUD plugin | Use \`dino hud install\` |
|
|
570
|
-
|
|
571
|
-
## Argument Shorthand
|
|
572
|
-
|
|
573
|
-
Skills can accept positional arguments using shorthand:
|
|
574
|
-
- \`$0\` - First argument
|
|
575
|
-
- \`$1\` - Second argument
|
|
576
|
-
- \`$ARGUMENTS[N]\` - Bracket syntax (equivalent)
|
|
577
|
-
|
|
578
|
-
**Example:** \`/dino.status --focus src/core/\` passes focus to status
|
|
579
|
-
|
|
580
|
-
## Frontmatter Fields
|
|
581
|
-
|
|
582
|
-
| Field | Required | Values | Description |
|
|
583
|
-
|-------|----------|--------|-------------|
|
|
584
|
-
| description | Yes | string | One-line description |
|
|
585
|
-
| model | Yes | haiku, sonnet, opus | Model to use |
|
|
586
|
-
| effort | Yes | low, medium, high | Thinking budget |
|
|
587
|
-
| context | Yes | inherit, fork | Context handling |
|
|
588
|
-
| allowed-tools | Yes | Tool list | Permitted tools |
|
|
589
|
-
| auto-approve | No | true | Skip permission prompts |
|
|
590
|
-
|
|
591
|
-
## Context Handling
|
|
592
|
-
|
|
593
|
-
| Value | Behavior |
|
|
594
|
-
|-------|----------|
|
|
595
|
-
| inherit | Continues in current context |
|
|
596
|
-
| fork | Creates isolated sub-context |
|
|
597
|
-
|
|
598
|
-
Use \`fork\` for:
|
|
599
|
-
- Research tasks that accumulate context
|
|
600
|
-
- Long-running operations
|
|
601
|
-
- Tasks that might pollute main context
|
|
602
|
-
|
|
603
|
-
## Model Selection by Effort
|
|
604
|
-
|
|
605
|
-
| Effort | Model | Typical Use |
|
|
606
|
-
|--------|-------|-------------|
|
|
607
|
-
| low | haiku | Status checks, lookups |
|
|
608
|
-
| medium | sonnet | Implementation, testing |
|
|
609
|
-
| high | opus | Planning, architecture |
|
|
610
|
-
|
|
611
|
-
## Example Skill Frontmatter
|
|
612
|
-
|
|
613
|
-
\`\`\`yaml
|
|
614
|
-
---
|
|
615
|
-
description: Quick reference for context optimization
|
|
616
|
-
model: haiku
|
|
617
|
-
effort: low
|
|
618
|
-
context: inherit
|
|
619
|
-
allowed-tools:
|
|
620
|
-
- Read
|
|
621
|
-
auto-approve: true
|
|
622
|
-
---
|
|
623
|
-
\`\`\`
|
|
624
|
-
|
|
625
|
-
## Auto-Approval
|
|
626
|
-
|
|
627
|
-
Skills marked with \`auto-approve: true\` run without permission prompts. This improves UX for read-only operations.
|
|
628
|
-
|
|
629
|
-
### Qualifying Skills
|
|
630
|
-
|
|
631
|
-
| Skill | Tools Used | Status |
|
|
632
|
-
|-------|------------|--------|
|
|
633
|
-
| \`/dino.sniff\` | Read, AskUserQuestion | Auto-approved |
|
|
634
|
-
|
|
635
|
-
### Non-Qualifying Skills
|
|
636
|
-
|
|
637
|
-
| Skill | Disqualifying Tool | Reason |
|
|
638
|
-
|-------|-------------------|--------|
|
|
639
|
-
| \`/dino.status\` | Bash | Git commands |
|
|
640
|
-
| \`/dino.handoff\` | Bash | Git/file operations |
|
|
641
|
-
| \`/dino.hunt\` | Edit, Write, Bash | Implementation |
|
|
642
|
-
| \`/dino.fossil\` | Write | Archive updates |
|
|
643
|
-
| \`/dino.ralph-gate\` | Write, Task | Orchestration, file writes |
|
|
644
|
-
| \`/dino.ralph\` | Edit, Write, Bash | Implementation |
|
|
645
|
-
|
|
646
|
-
### Qualifying Skills (Read-Only)
|
|
647
|
-
|
|
648
|
-
| Skill | Tools Used | Status |
|
|
649
|
-
|-------|------------|--------|
|
|
650
|
-
| \`/dino.sniff\` | Read, AskUserQuestion | Auto-approved |
|
|
651
|
-
| \`/dino.audit\` | Read, Grep, Glob, AskUserQuestion | Auto-approved |
|
|
652
|
-
|
|
653
|
-
### Requirements for Auto-Approval
|
|
654
|
-
|
|
655
|
-
A skill qualifies for \`auto-approve: true\` when:
|
|
656
|
-
|
|
657
|
-
1. **No Bash tool** - Shell commands could have side effects
|
|
658
|
-
2. **No Edit tool** - Modifying files requires approval
|
|
659
|
-
3. **No Write tool** - Creating files requires approval
|
|
660
|
-
4. **No NotebookEdit** - Notebook changes require approval
|
|
661
|
-
|
|
662
|
-
### Allowed Tools for Auto-Approval
|
|
663
|
-
|
|
664
|
-
- \`Read\` - Reading files
|
|
665
|
-
- \`Glob\` - Finding files
|
|
666
|
-
- \`Grep\` - Searching file contents
|
|
667
|
-
- \`WebFetch\` - Fetching web content
|
|
668
|
-
- \`WebSearch\` - Searching the web
|
|
669
|
-
- \`Task\` (read-only subagents)
|
|
670
|
-
- MCP tools (read-only)
|
|
671
|
-
|
|
672
|
-
### Security Considerations
|
|
673
|
-
|
|
674
|
-
Auto-approval is safe because:
|
|
675
|
-
- Read-only operations cannot modify system state
|
|
676
|
-
- No shell execution means no command injection risk
|
|
677
|
-
- File system remains unchanged
|
|
678
|
-
- Network operations are read-only (fetch, search)
|
|
679
|
-
|
|
680
|
-
Users can still configure hooks to intercept any skill invocation regardless of auto-approval status.
|
|
544
|
+
return `# Skill Patterns (dino-spec v${VERSION})
|
|
545
|
+
|
|
546
|
+
## v13.1.0 Three-Agent Ralph Gate System
|
|
547
|
+
|
|
548
|
+
New enforced Ralph Loop workflow with strict gating:
|
|
549
|
+
|
|
550
|
+
| Skill | Agent Role | Description |
|
|
551
|
+
|-------|------------|-------------|
|
|
552
|
+
| \`/dino.ralph-gate\` | Orchestrator | Coordinates all three agents |
|
|
553
|
+
| \`/dino.audit\` | Gatekeeper | Blocks until 95% score, zero ambiguity |
|
|
554
|
+
| \`/dino.ralph\` | Executor | Only runs after gate approval |
|
|
555
|
+
|
|
556
|
+
**Flow:** Scout -> Auditor -> Ralph (enforced sequence)
|
|
557
|
+
|
|
558
|
+
See \`ralph-enforcement.md\` for trigger keywords.
|
|
559
|
+
|
|
560
|
+
## v12.0.0 Skill Consolidation
|
|
561
|
+
|
|
562
|
+
Several skills have been merged to reduce context overhead:
|
|
563
|
+
|
|
564
|
+
| Old Skill | New Location | Usage |
|
|
565
|
+
|-----------|-------------|-------|
|
|
566
|
+
| \`/dino.next\` | \`/dino.status --next\` | Get next step suggestions |
|
|
567
|
+
| \`/context-optimize\` | \`/dino.status --tips\` | Context optimization tips |
|
|
568
|
+
| \`/dino.focus\` | \`/dino.status --focus\` | Set focus area |
|
|
569
|
+
| \`/dino-statusline\` | HUD plugin | Use \`dino hud install\` |
|
|
570
|
+
|
|
571
|
+
## Argument Shorthand
|
|
572
|
+
|
|
573
|
+
Skills can accept positional arguments using shorthand:
|
|
574
|
+
- \`$0\` - First argument
|
|
575
|
+
- \`$1\` - Second argument
|
|
576
|
+
- \`$ARGUMENTS[N]\` - Bracket syntax (equivalent)
|
|
577
|
+
|
|
578
|
+
**Example:** \`/dino.status --focus src/core/\` passes focus to status
|
|
579
|
+
|
|
580
|
+
## Frontmatter Fields
|
|
581
|
+
|
|
582
|
+
| Field | Required | Values | Description |
|
|
583
|
+
|-------|----------|--------|-------------|
|
|
584
|
+
| description | Yes | string | One-line description |
|
|
585
|
+
| model | Yes | haiku, sonnet, opus | Model to use |
|
|
586
|
+
| effort | Yes | low, medium, high | Thinking budget |
|
|
587
|
+
| context | Yes | inherit, fork | Context handling |
|
|
588
|
+
| allowed-tools | Yes | Tool list | Permitted tools |
|
|
589
|
+
| auto-approve | No | true | Skip permission prompts |
|
|
590
|
+
|
|
591
|
+
## Context Handling
|
|
592
|
+
|
|
593
|
+
| Value | Behavior |
|
|
594
|
+
|-------|----------|
|
|
595
|
+
| inherit | Continues in current context |
|
|
596
|
+
| fork | Creates isolated sub-context |
|
|
597
|
+
|
|
598
|
+
Use \`fork\` for:
|
|
599
|
+
- Research tasks that accumulate context
|
|
600
|
+
- Long-running operations
|
|
601
|
+
- Tasks that might pollute main context
|
|
602
|
+
|
|
603
|
+
## Model Selection by Effort
|
|
604
|
+
|
|
605
|
+
| Effort | Model | Typical Use |
|
|
606
|
+
|--------|-------|-------------|
|
|
607
|
+
| low | haiku | Status checks, lookups |
|
|
608
|
+
| medium | sonnet | Implementation, testing |
|
|
609
|
+
| high | opus | Planning, architecture |
|
|
610
|
+
|
|
611
|
+
## Example Skill Frontmatter
|
|
612
|
+
|
|
613
|
+
\`\`\`yaml
|
|
614
|
+
---
|
|
615
|
+
description: Quick reference for context optimization
|
|
616
|
+
model: haiku
|
|
617
|
+
effort: low
|
|
618
|
+
context: inherit
|
|
619
|
+
allowed-tools:
|
|
620
|
+
- Read
|
|
621
|
+
auto-approve: true
|
|
622
|
+
---
|
|
623
|
+
\`\`\`
|
|
624
|
+
|
|
625
|
+
## Auto-Approval
|
|
626
|
+
|
|
627
|
+
Skills marked with \`auto-approve: true\` run without permission prompts. This improves UX for read-only operations.
|
|
628
|
+
|
|
629
|
+
### Qualifying Skills
|
|
630
|
+
|
|
631
|
+
| Skill | Tools Used | Status |
|
|
632
|
+
|-------|------------|--------|
|
|
633
|
+
| \`/dino.sniff\` | Read, AskUserQuestion | Auto-approved |
|
|
634
|
+
|
|
635
|
+
### Non-Qualifying Skills
|
|
636
|
+
|
|
637
|
+
| Skill | Disqualifying Tool | Reason |
|
|
638
|
+
|-------|-------------------|--------|
|
|
639
|
+
| \`/dino.status\` | Bash | Git commands |
|
|
640
|
+
| \`/dino.handoff\` | Bash | Git/file operations |
|
|
641
|
+
| \`/dino.hunt\` | Edit, Write, Bash | Implementation |
|
|
642
|
+
| \`/dino.fossil\` | Write | Archive updates |
|
|
643
|
+
| \`/dino.ralph-gate\` | Write, Task | Orchestration, file writes |
|
|
644
|
+
| \`/dino.ralph\` | Edit, Write, Bash | Implementation |
|
|
645
|
+
|
|
646
|
+
### Qualifying Skills (Read-Only)
|
|
647
|
+
|
|
648
|
+
| Skill | Tools Used | Status |
|
|
649
|
+
|-------|------------|--------|
|
|
650
|
+
| \`/dino.sniff\` | Read, AskUserQuestion | Auto-approved |
|
|
651
|
+
| \`/dino.audit\` | Read, Grep, Glob, AskUserQuestion | Auto-approved |
|
|
652
|
+
|
|
653
|
+
### Requirements for Auto-Approval
|
|
654
|
+
|
|
655
|
+
A skill qualifies for \`auto-approve: true\` when:
|
|
656
|
+
|
|
657
|
+
1. **No Bash tool** - Shell commands could have side effects
|
|
658
|
+
2. **No Edit tool** - Modifying files requires approval
|
|
659
|
+
3. **No Write tool** - Creating files requires approval
|
|
660
|
+
4. **No NotebookEdit** - Notebook changes require approval
|
|
661
|
+
|
|
662
|
+
### Allowed Tools for Auto-Approval
|
|
663
|
+
|
|
664
|
+
- \`Read\` - Reading files
|
|
665
|
+
- \`Glob\` - Finding files
|
|
666
|
+
- \`Grep\` - Searching file contents
|
|
667
|
+
- \`WebFetch\` - Fetching web content
|
|
668
|
+
- \`WebSearch\` - Searching the web
|
|
669
|
+
- \`Task\` (read-only subagents)
|
|
670
|
+
- MCP tools (read-only)
|
|
671
|
+
|
|
672
|
+
### Security Considerations
|
|
673
|
+
|
|
674
|
+
Auto-approval is safe because:
|
|
675
|
+
- Read-only operations cannot modify system state
|
|
676
|
+
- No shell execution means no command injection risk
|
|
677
|
+
- File system remains unchanged
|
|
678
|
+
- Network operations are read-only (fetch, search)
|
|
679
|
+
|
|
680
|
+
Users can still configure hooks to intercept any skill invocation regardless of auto-approval status.
|
|
681
681
|
`;
|
|
682
682
|
}
|
|
683
683
|
/**
|
|
684
684
|
* Generate spec-kit rule content
|
|
685
685
|
*/
|
|
686
686
|
function generateSpecKitRule() {
|
|
687
|
-
return `# Spec-Kit Auto-Specification (dino-spec v${VERSION})
|
|
688
|
-
|
|
689
|
-
## Overview
|
|
690
|
-
|
|
691
|
-
The \`/dino.spec\` skill provides intelligent prompt analysis and requirement clarification before implementation begins.
|
|
692
|
-
|
|
693
|
-
## Auto-Trigger Conditions
|
|
694
|
-
|
|
695
|
-
Spec-kit auto-triggers when:
|
|
696
|
-
- Ambiguity score > 40 (vague verbs, missing details, unclear success)
|
|
697
|
-
- User request involves implementation ("add", "create", "implement", "build", "fix")
|
|
698
|
-
|
|
699
|
-
Spec-kit does NOT trigger for:
|
|
700
|
-
- Status checks (\`/dino.status\`)
|
|
701
|
-
- Simple queries ("what does X do?")
|
|
702
|
-
- Explicit skip (\`--skip-spec\` or complexity < 30 with ambiguity < 20)
|
|
703
|
-
|
|
704
|
-
## Modes
|
|
705
|
-
|
|
706
|
-
| Mode | When | Behavior |
|
|
707
|
-
|------|------|----------|
|
|
708
|
-
| **Skip** | complexity < 30, ambiguity < 20 | Proceed directly to implementation |
|
|
709
|
-
| **Lightweight** | complexity < 30, ambiguity >= 20 | Quick validation, one confirmation |
|
|
710
|
-
| **Full** | complexity >= 30 | Thorough analysis with research/questions |
|
|
711
|
-
|
|
712
|
-
## Confidence Gate
|
|
713
|
-
|
|
714
|
-
Implementation is BLOCKED until:
|
|
715
|
-
- Confidence reaches 80%
|
|
716
|
-
- OR user explicitly validates assumptions after 5 question rounds
|
|
717
|
-
|
|
718
|
-
## Multi-Part Request Handling
|
|
719
|
-
|
|
720
|
-
When multiple requests detected ("add X and also Y"):
|
|
721
|
-
1. Split into discrete tasks
|
|
722
|
-
2. Present recommended order (quick wins first, foundational second)
|
|
723
|
-
3. Analyze first task only
|
|
724
|
-
4. Queue remaining tasks
|
|
725
|
-
|
|
726
|
-
## Context Awareness
|
|
727
|
-
|
|
728
|
-
Spec-kit checks existing session context:
|
|
729
|
-
- If active focus exists: "Is this related to [focus]?"
|
|
730
|
-
- If related: Build on context, skip redundant questions
|
|
731
|
-
- If unrelated: Fresh analysis
|
|
732
|
-
|
|
733
|
-
## Output Location
|
|
734
|
-
|
|
735
|
-
Results written to \`.dino/session.md\` under \`## Spec-Kit Analysis\`
|
|
736
|
-
|
|
737
|
-
## Recommended Flow
|
|
738
|
-
|
|
739
|
-
\`\`\`
|
|
740
|
-
User Request
|
|
741
|
-
↓
|
|
742
|
-
[ambiguity > 40?] ──no──→ Proceed to /dino.hunt
|
|
743
|
-
↓ yes
|
|
744
|
-
/dino.spec (auto)
|
|
745
|
-
↓
|
|
746
|
-
[confidence >= 80%?] ──no──→ More questions (max 5 rounds)
|
|
747
|
-
↓ yes
|
|
748
|
-
[complexity > 60?]
|
|
749
|
-
↓ yes ↓ no
|
|
750
|
-
/dino.nest /dino.hunt
|
|
751
|
-
\`\`\`
|
|
752
|
-
|
|
753
|
-
## Manual Invocation
|
|
754
|
-
|
|
755
|
-
Always available via \`/dino.spec\` for:
|
|
756
|
-
- Explicit thorough analysis
|
|
757
|
-
- Complex features that need planning
|
|
758
|
-
- When unsure about requirements
|
|
687
|
+
return `# Spec-Kit Auto-Specification (dino-spec v${VERSION})
|
|
688
|
+
|
|
689
|
+
## Overview
|
|
690
|
+
|
|
691
|
+
The \`/dino.spec\` skill provides intelligent prompt analysis and requirement clarification before implementation begins.
|
|
692
|
+
|
|
693
|
+
## Auto-Trigger Conditions
|
|
694
|
+
|
|
695
|
+
Spec-kit auto-triggers when:
|
|
696
|
+
- Ambiguity score > 40 (vague verbs, missing details, unclear success)
|
|
697
|
+
- User request involves implementation ("add", "create", "implement", "build", "fix")
|
|
698
|
+
|
|
699
|
+
Spec-kit does NOT trigger for:
|
|
700
|
+
- Status checks (\`/dino.status\`)
|
|
701
|
+
- Simple queries ("what does X do?")
|
|
702
|
+
- Explicit skip (\`--skip-spec\` or complexity < 30 with ambiguity < 20)
|
|
703
|
+
|
|
704
|
+
## Modes
|
|
705
|
+
|
|
706
|
+
| Mode | When | Behavior |
|
|
707
|
+
|------|------|----------|
|
|
708
|
+
| **Skip** | complexity < 30, ambiguity < 20 | Proceed directly to implementation |
|
|
709
|
+
| **Lightweight** | complexity < 30, ambiguity >= 20 | Quick validation, one confirmation |
|
|
710
|
+
| **Full** | complexity >= 30 | Thorough analysis with research/questions |
|
|
711
|
+
|
|
712
|
+
## Confidence Gate
|
|
713
|
+
|
|
714
|
+
Implementation is BLOCKED until:
|
|
715
|
+
- Confidence reaches 80%
|
|
716
|
+
- OR user explicitly validates assumptions after 5 question rounds
|
|
717
|
+
|
|
718
|
+
## Multi-Part Request Handling
|
|
719
|
+
|
|
720
|
+
When multiple requests detected ("add X and also Y"):
|
|
721
|
+
1. Split into discrete tasks
|
|
722
|
+
2. Present recommended order (quick wins first, foundational second)
|
|
723
|
+
3. Analyze first task only
|
|
724
|
+
4. Queue remaining tasks
|
|
725
|
+
|
|
726
|
+
## Context Awareness
|
|
727
|
+
|
|
728
|
+
Spec-kit checks existing session context:
|
|
729
|
+
- If active focus exists: "Is this related to [focus]?"
|
|
730
|
+
- If related: Build on context, skip redundant questions
|
|
731
|
+
- If unrelated: Fresh analysis
|
|
732
|
+
|
|
733
|
+
## Output Location
|
|
734
|
+
|
|
735
|
+
Results written to \`.dino/session.md\` under \`## Spec-Kit Analysis\`
|
|
736
|
+
|
|
737
|
+
## Recommended Flow
|
|
738
|
+
|
|
739
|
+
\`\`\`
|
|
740
|
+
User Request
|
|
741
|
+
↓
|
|
742
|
+
[ambiguity > 40?] ──no──→ Proceed to /dino.hunt
|
|
743
|
+
↓ yes
|
|
744
|
+
/dino.spec (auto)
|
|
745
|
+
↓
|
|
746
|
+
[confidence >= 80%?] ──no──→ More questions (max 5 rounds)
|
|
747
|
+
↓ yes
|
|
748
|
+
[complexity > 60?]
|
|
749
|
+
↓ yes ↓ no
|
|
750
|
+
/dino.nest /dino.hunt
|
|
751
|
+
\`\`\`
|
|
752
|
+
|
|
753
|
+
## Manual Invocation
|
|
754
|
+
|
|
755
|
+
Always available via \`/dino.spec\` for:
|
|
756
|
+
- Explicit thorough analysis
|
|
757
|
+
- Complex features that need planning
|
|
758
|
+
- When unsure about requirements
|
|
759
759
|
`;
|
|
760
760
|
}
|
|
761
761
|
/**
|
|
762
762
|
* Generate standard paths rule content
|
|
763
763
|
*/
|
|
764
764
|
function generateStandardPathsRule() {
|
|
765
|
-
return `# Standard Paths (dino-spec v${VERSION})
|
|
766
|
-
|
|
767
|
-
## CRITICAL: Always Use These Paths
|
|
768
|
-
|
|
769
|
-
When creating or reading dino-spec files, you MUST use these standard paths:
|
|
770
|
-
|
|
771
|
-
### Session State
|
|
772
|
-
| Purpose | Path | Notes |
|
|
773
|
-
|---------|------|-------|
|
|
774
|
-
| Session state | \`.dino/session.md\` | Live session, auto-updated |
|
|
775
|
-
| Config | \`.dino/config.json\` | Settings and features |
|
|
776
|
-
| Structure | \`.dino/structure.json\` | Cached project analysis |
|
|
777
|
-
|
|
778
|
-
### Working Files
|
|
779
|
-
| Purpose | Path | Notes |
|
|
780
|
-
|---------|------|-------|
|
|
781
|
-
| Research | \`.dino/research/<topic-slug>.md\` | Research findings |
|
|
782
|
-
| Handoffs | \`.dino/handoff/latest.md\` | Session handoff notes |
|
|
783
|
-
| Plans | \`.dino/plans/active.json\` | Active implementation plan |
|
|
784
|
-
| Tasks | \`.dino/tasks/\` | Task registry |
|
|
785
|
-
| Checkpoints | \`.dino/checkpoints/\` | Git checkpoints |
|
|
786
|
-
|
|
787
|
-
### Archive (Historical)
|
|
788
|
-
| Purpose | Path | Notes |
|
|
789
|
-
|---------|------|-------|
|
|
790
|
-
| Old handoffs | \`.dino/archive/handoffs/\` | Completed handoffs |
|
|
791
|
-
| Old sessions | \`.dino/archive/\` | Archived sessions |
|
|
792
|
-
|
|
793
|
-
## Rules
|
|
794
|
-
|
|
795
|
-
1. **NEVER create new top-level directories in \`.dino/\`** - Use existing paths
|
|
796
|
-
2. **ALWAYS check if file exists** before creating a new one
|
|
797
|
-
3. **Research files go in \`.dino/research/\`** - not root, not \`.claude/docs/\`
|
|
798
|
-
4. **Handoff context goes in \`.dino/handoff/\`** - singular, not handoffs
|
|
799
|
-
5. **Plans go in \`.dino/plans/\`** - with \`active.json\` for current plan
|
|
765
|
+
return `# Standard Paths (dino-spec v${VERSION})
|
|
766
|
+
|
|
767
|
+
## CRITICAL: Always Use These Paths
|
|
768
|
+
|
|
769
|
+
When creating or reading dino-spec files, you MUST use these standard paths:
|
|
770
|
+
|
|
771
|
+
### Session State
|
|
772
|
+
| Purpose | Path | Notes |
|
|
773
|
+
|---------|------|-------|
|
|
774
|
+
| Session state | \`.dino/session.md\` | Live session, auto-updated |
|
|
775
|
+
| Config | \`.dino/config.json\` | Settings and features |
|
|
776
|
+
| Structure | \`.dino/structure.json\` | Cached project analysis |
|
|
777
|
+
|
|
778
|
+
### Working Files
|
|
779
|
+
| Purpose | Path | Notes |
|
|
780
|
+
|---------|------|-------|
|
|
781
|
+
| Research | \`.dino/research/<topic-slug>.md\` | Research findings |
|
|
782
|
+
| Handoffs | \`.dino/handoff/latest.md\` | Session handoff notes |
|
|
783
|
+
| Plans | \`.dino/plans/active.json\` | Active implementation plan |
|
|
784
|
+
| Tasks | \`.dino/tasks/\` | Task registry |
|
|
785
|
+
| Checkpoints | \`.dino/checkpoints/\` | Git checkpoints |
|
|
786
|
+
|
|
787
|
+
### Archive (Historical)
|
|
788
|
+
| Purpose | Path | Notes |
|
|
789
|
+
|---------|------|-------|
|
|
790
|
+
| Old handoffs | \`.dino/archive/handoffs/\` | Completed handoffs |
|
|
791
|
+
| Old sessions | \`.dino/archive/\` | Archived sessions |
|
|
792
|
+
|
|
793
|
+
## Rules
|
|
794
|
+
|
|
795
|
+
1. **NEVER create new top-level directories in \`.dino/\`** - Use existing paths
|
|
796
|
+
2. **ALWAYS check if file exists** before creating a new one
|
|
797
|
+
3. **Research files go in \`.dino/research/\`** - not root, not \`.claude/docs/\`
|
|
798
|
+
4. **Handoff context goes in \`.dino/handoff/\`** - singular, not handoffs
|
|
799
|
+
5. **Plans go in \`.dino/plans/\`** - with \`active.json\` for current plan
|
|
800
800
|
`;
|
|
801
801
|
}
|
|
802
802
|
/**
|
|
803
803
|
* Generate change categories rule content
|
|
804
804
|
*/
|
|
805
805
|
function generateChangeCategoriesRule() {
|
|
806
|
-
return `# Change Categories (dino-spec v${VERSION})
|
|
807
|
-
|
|
808
|
-
## File Classification
|
|
809
|
-
|
|
810
|
-
Files are classified into categories based on path and name:
|
|
811
|
-
|
|
812
|
-
### dependency (High Significance)
|
|
813
|
-
Files that affect project dependencies:
|
|
814
|
-
- \`package.json\`, \`package-lock.json\`, \`yarn.lock\`, \`pnpm-lock.yaml\`
|
|
815
|
-
- \`requirements.txt\`, \`Pipfile\`, \`pyproject.toml\`
|
|
816
|
-
- \`Cargo.toml\`, \`Cargo.lock\`
|
|
817
|
-
- \`go.mod\`, \`go.sum\`
|
|
818
|
-
- \`Gemfile\`, \`Gemfile.lock\`
|
|
819
|
-
|
|
820
|
-
**Pending Action:** Run package manager install command
|
|
821
|
-
|
|
822
|
-
### structural (High Significance)
|
|
823
|
-
Files that affect project structure:
|
|
824
|
-
- Entry points: \`index.ts\`, \`main.ts\`, \`app.ts\`
|
|
825
|
-
- Configuration: \`tsconfig.json\`, \`webpack.config.js\`
|
|
826
|
-
- Build configs: \`build.js\`, \`vite.config.ts\`
|
|
827
|
-
- Directory additions/removals
|
|
828
|
-
|
|
829
|
-
**Pending Action:** Verify import paths
|
|
830
|
-
|
|
831
|
-
### config (Medium Significance)
|
|
832
|
-
Configuration files:
|
|
833
|
-
- \`.env\`, \`.env.*\`
|
|
834
|
-
- \`*.config.js\`, \`*.config.ts\`
|
|
835
|
-
- \`.eslintrc\`, \`.prettierrc\`
|
|
836
|
-
- CI/CD files: \`.github/\`, \`.gitlab-ci.yml\`
|
|
837
|
-
|
|
838
|
-
### test (Medium Significance)
|
|
839
|
-
Test files:
|
|
840
|
-
- \`*.test.ts\`, \`*.test.js\`
|
|
841
|
-
- \`*.spec.ts\`, \`*.spec.js\`
|
|
842
|
-
- \`test/\`, \`tests/\`, \`__tests__/\` directories
|
|
843
|
-
|
|
844
|
-
### code (Low Significance)
|
|
845
|
-
Source code files:
|
|
846
|
-
- \`src/\`, \`lib/\` directories
|
|
847
|
-
- Main programming language files
|
|
848
|
-
- Utility and helper files
|
|
849
|
-
|
|
850
|
-
### documentation (Low Significance)
|
|
851
|
-
Documentation files:
|
|
852
|
-
- \`*.md\`, \`README*\`
|
|
853
|
-
- \`docs/\` directory
|
|
854
|
-
- Code comments (when detected)
|
|
855
|
-
|
|
856
|
-
## Impact on Workflow
|
|
857
|
-
|
|
858
|
-
| Category | Run Tests | Run Build | Review |
|
|
859
|
-
|----------|-----------|-----------|--------|
|
|
860
|
-
| dependency | After install | Yes | Changelog |
|
|
861
|
-
| structural | Yes | Yes | Imports |
|
|
862
|
-
| config | Maybe | Maybe | Side effects |
|
|
863
|
-
| test | Yes | No | Coverage |
|
|
864
|
-
| code | Yes | Yes | Normal |
|
|
865
|
-
| documentation | No | No | Spelling |
|
|
806
|
+
return `# Change Categories (dino-spec v${VERSION})
|
|
807
|
+
|
|
808
|
+
## File Classification
|
|
809
|
+
|
|
810
|
+
Files are classified into categories based on path and name:
|
|
811
|
+
|
|
812
|
+
### dependency (High Significance)
|
|
813
|
+
Files that affect project dependencies:
|
|
814
|
+
- \`package.json\`, \`package-lock.json\`, \`yarn.lock\`, \`pnpm-lock.yaml\`
|
|
815
|
+
- \`requirements.txt\`, \`Pipfile\`, \`pyproject.toml\`
|
|
816
|
+
- \`Cargo.toml\`, \`Cargo.lock\`
|
|
817
|
+
- \`go.mod\`, \`go.sum\`
|
|
818
|
+
- \`Gemfile\`, \`Gemfile.lock\`
|
|
819
|
+
|
|
820
|
+
**Pending Action:** Run package manager install command
|
|
821
|
+
|
|
822
|
+
### structural (High Significance)
|
|
823
|
+
Files that affect project structure:
|
|
824
|
+
- Entry points: \`index.ts\`, \`main.ts\`, \`app.ts\`
|
|
825
|
+
- Configuration: \`tsconfig.json\`, \`webpack.config.js\`
|
|
826
|
+
- Build configs: \`build.js\`, \`vite.config.ts\`
|
|
827
|
+
- Directory additions/removals
|
|
828
|
+
|
|
829
|
+
**Pending Action:** Verify import paths
|
|
830
|
+
|
|
831
|
+
### config (Medium Significance)
|
|
832
|
+
Configuration files:
|
|
833
|
+
- \`.env\`, \`.env.*\`
|
|
834
|
+
- \`*.config.js\`, \`*.config.ts\`
|
|
835
|
+
- \`.eslintrc\`, \`.prettierrc\`
|
|
836
|
+
- CI/CD files: \`.github/\`, \`.gitlab-ci.yml\`
|
|
837
|
+
|
|
838
|
+
### test (Medium Significance)
|
|
839
|
+
Test files:
|
|
840
|
+
- \`*.test.ts\`, \`*.test.js\`
|
|
841
|
+
- \`*.spec.ts\`, \`*.spec.js\`
|
|
842
|
+
- \`test/\`, \`tests/\`, \`__tests__/\` directories
|
|
843
|
+
|
|
844
|
+
### code (Low Significance)
|
|
845
|
+
Source code files:
|
|
846
|
+
- \`src/\`, \`lib/\` directories
|
|
847
|
+
- Main programming language files
|
|
848
|
+
- Utility and helper files
|
|
849
|
+
|
|
850
|
+
### documentation (Low Significance)
|
|
851
|
+
Documentation files:
|
|
852
|
+
- \`*.md\`, \`README*\`
|
|
853
|
+
- \`docs/\` directory
|
|
854
|
+
- Code comments (when detected)
|
|
855
|
+
|
|
856
|
+
## Impact on Workflow
|
|
857
|
+
|
|
858
|
+
| Category | Run Tests | Run Build | Review |
|
|
859
|
+
|----------|-----------|-----------|--------|
|
|
860
|
+
| dependency | After install | Yes | Changelog |
|
|
861
|
+
| structural | Yes | Yes | Imports |
|
|
862
|
+
| config | Maybe | Maybe | Side effects |
|
|
863
|
+
| test | Yes | No | Coverage |
|
|
864
|
+
| code | Yes | Yes | Normal |
|
|
865
|
+
| documentation | No | No | Spelling |
|
|
866
866
|
`;
|
|
867
867
|
}
|
|
868
868
|
/**
|