moflo 4.8.30 → 4.8.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/guidance/shipped/moflo.md +13 -35
- package/bin/generate-code-map.mjs +1 -1
- package/bin/index-guidance.mjs +1 -1
- package/bin/index-tests.mjs +1 -1
- package/bin/setup-project.mjs +1 -1
- package/package.json +6 -7
- package/src/@claude-flow/cli/dist/src/commands/doctor.js +1107 -1244
- package/src/@claude-flow/cli/package.json +1 -1
- package/.claude/agents/browser/browser-agent.yaml +0 -182
- package/.claude/agents/database-specialist.yaml +0 -21
- package/.claude/agents/index.yaml +0 -17
- package/.claude/agents/project-coordinator.yaml +0 -15
- package/.claude/agents/python-specialist.yaml +0 -21
- package/.claude/agents/security-auditor.yaml +0 -20
- package/.claude/agents/typescript-specialist.yaml +0 -21
- package/.claude/checkpoints/1767754460.json +0 -8
- package/.claude/config/v3-dependency-optimization.json +0 -266
- package/.claude/config/v3-performance-targets.json +0 -251
- package/.claude/guidance/moflo-bootstrap.md +0 -129
- package/.claude/mcp.json +0 -13
- package/.claude/settings.json +0 -351
- package/.claude/settings.local.json +0 -18
- package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
- package/.claude/skills/agentdb-learning/SKILL.md +0 -545
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
- package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
- package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
- package/.claude/skills/browser/SKILL.md +0 -204
- package/.claude/skills/fl/SKILL.md +0 -583
- package/.claude/skills/flo/SKILL.md +0 -583
- package/.claude/skills/github-code-review/SKILL.md +0 -1140
- package/.claude/skills/github-multi-repo/SKILL.md +0 -874
- package/.claude/skills/github-project-management/SKILL.md +0 -1277
- package/.claude/skills/github-release-management/SKILL.md +0 -1081
- package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
- package/.claude/skills/hooks-automation/SKILL.md +0 -1201
- package/.claude/skills/pair-programming/SKILL.md +0 -1202
- package/.claude/skills/performance-analysis/SKILL.md +0 -563
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
- package/.claude/skills/skill-builder/SKILL.md +0 -910
- package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
- package/.claude/skills/stream-chain/SKILL.md +0 -563
- package/.claude/skills/swarm-advanced/SKILL.md +0 -973
- package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
- package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
- package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
- package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
- package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
- package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
- package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
- package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
- package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
- package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
- package/.claude/skills/verification-quality/SKILL.md +0 -649
- package/.claude/skills/worker-benchmarks/skill.md +0 -135
- package/.claude/skills/worker-integration/skill.md +0 -154
- package/.claude/workflow-state.json +0 -9
- package/src/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts +0 -91
- package/src/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts +0 -102
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts +0 -44
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts +0 -97
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts +0 -111
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts +0 -69
- package/src/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts +0 -123
- package/src/@claude-flow/cli/dist/src/benchmarks/pretrain/index.d.ts +0 -58
- package/src/@claude-flow/cli/dist/src/commands/agent.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/analyze.d.ts +0 -19
- package/src/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts +0 -9
- package/src/@claude-flow/cli/dist/src/commands/appliance.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/benchmark.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/claims.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/completions.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/config.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/daemon.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/deployment.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/diagnose.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/commands/doctor.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/embeddings.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/commands/gate.d.ts +0 -23
- package/src/@claude-flow/cli/dist/src/commands/github.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/commands/guidance.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/hive-mind.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/hooks.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/index.d.ts +0 -115
- package/src/@claude-flow/cli/dist/src/commands/init.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/issues.d.ts +0 -21
- package/src/@claude-flow/cli/dist/src/commands/mcp.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/memory.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/migrate.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/neural.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/orc.d.ts +0 -21
- package/src/@claude-flow/cli/dist/src/commands/performance.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/plugins.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/process.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/progress.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/providers.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/route.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/commands/ruvector/backup.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/benchmark.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/import.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/commands/ruvector/index.d.ts +0 -29
- package/src/@claude-flow/cli/dist/src/commands/ruvector/init.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/migrate.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/optimize.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/ruvector/setup.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/commands/ruvector/status.d.ts +0 -11
- package/src/@claude-flow/cli/dist/src/commands/security.d.ts +0 -10
- package/src/@claude-flow/cli/dist/src/commands/session.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/start.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/status.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/swarm.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/task.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/transfer-store.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/commands/update.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/commands/workflow.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/config/moflo-config.d.ts +0 -93
- package/src/@claude-flow/cli/dist/src/config-adapter.d.ts +0 -15
- package/src/@claude-flow/cli/dist/src/index.d.ts +0 -81
- package/src/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
- package/src/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +0 -30
- package/src/@claude-flow/cli/dist/src/init/executor.d.ts +0 -41
- package/src/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +0 -51
- package/src/@claude-flow/cli/dist/src/init/index.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +0 -29
- package/src/@claude-flow/cli/dist/src/init/moflo-init.d.ts +0 -31
- package/src/@claude-flow/cli/dist/src/init/settings-generator.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +0 -28
- package/src/@claude-flow/cli/dist/src/init/types.d.ts +0 -285
- package/src/@claude-flow/cli/dist/src/mcp-client.d.ts +0 -92
- package/src/@claude-flow/cli/dist/src/mcp-server.d.ts +0 -161
- package/src/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +0 -9
- package/src/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts +0 -30
- package/src/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +0 -38
- package/src/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts +0 -83
- package/src/@claude-flow/cli/dist/src/mcp-tools/browser-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts +0 -9
- package/src/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +0 -44
- package/src/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +0 -23
- package/src/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts +0 -16
- package/src/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts +0 -18
- package/src/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts +0 -14
- package/src/@claude-flow/cli/dist/src/mcp-tools/types.d.ts +0 -31
- package/src/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
- package/src/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts +0 -271
- package/src/@claude-flow/cli/dist/src/memory/intelligence.d.ts +0 -285
- package/src/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +0 -413
- package/src/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +0 -405
- package/src/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts +0 -227
- package/src/@claude-flow/cli/dist/src/output.d.ts +0 -133
- package/src/@claude-flow/cli/dist/src/parser.d.ts +0 -51
- package/src/@claude-flow/cli/dist/src/plugins/manager.d.ts +0 -133
- package/src/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts +0 -88
- package/src/@claude-flow/cli/dist/src/plugins/store/index.d.ts +0 -76
- package/src/@claude-flow/cli/dist/src/plugins/store/search.d.ts +0 -46
- package/src/@claude-flow/cli/dist/src/plugins/store/types.d.ts +0 -274
- package/src/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +0 -7
- package/src/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts +0 -7
- package/src/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts +0 -101
- package/src/@claude-flow/cli/dist/src/production/error-handler.d.ts +0 -92
- package/src/@claude-flow/cli/dist/src/production/index.d.ts +0 -23
- package/src/@claude-flow/cli/dist/src/production/monitoring.d.ts +0 -161
- package/src/@claude-flow/cli/dist/src/production/rate-limiter.d.ts +0 -80
- package/src/@claude-flow/cli/dist/src/production/retry.d.ts +0 -48
- package/src/@claude-flow/cli/dist/src/prompt.d.ts +0 -44
- package/src/@claude-flow/cli/dist/src/runtime/headless.d.ts +0 -60
- package/src/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +0 -67
- package/src/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +0 -160
- package/src/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +0 -33
- package/src/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +0 -175
- package/src/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
- package/src/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts +0 -195
- package/src/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +0 -187
- package/src/@claude-flow/cli/dist/src/ruvector/index.d.ts +0 -34
- package/src/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts +0 -218
- package/src/@claude-flow/cli/dist/src/ruvector/model-router.d.ts +0 -220
- package/src/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts +0 -206
- package/src/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +0 -211
- package/src/@claude-flow/cli/dist/src/ruvector/semantic-router.d.ts +0 -77
- package/src/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +0 -69
- package/src/@claude-flow/cli/dist/src/services/agent-router.d.ts +0 -63
- package/src/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts +0 -50
- package/src/@claude-flow/cli/dist/src/services/claim-service.d.ts +0 -204
- package/src/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts +0 -197
- package/src/@claude-flow/cli/dist/src/services/daemon-lock.d.ts +0 -60
- package/src/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts +0 -304
- package/src/@claude-flow/cli/dist/src/services/index.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/services/learning-service.d.ts +0 -161
- package/src/@claude-flow/cli/dist/src/services/moflo-require.d.ts +0 -34
- package/src/@claude-flow/cli/dist/src/services/registry-api.d.ts +0 -58
- package/src/@claude-flow/cli/dist/src/services/ruvector-training.d.ts +0 -214
- package/src/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +0 -225
- package/src/@claude-flow/cli/dist/src/services/worker-queue.d.ts +0 -194
- package/src/@claude-flow/cli/dist/src/services/workflow-gate.d.ts +0 -88
- package/src/@claude-flow/cli/dist/src/suggest.d.ts +0 -53
- package/src/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts +0 -25
- package/src/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts +0 -13
- package/src/@claude-flow/cli/dist/src/transfer/export.d.ts +0 -25
- package/src/@claude-flow/cli/dist/src/transfer/index.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts +0 -109
- package/src/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts +0 -95
- package/src/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts +0 -72
- package/src/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts +0 -49
- package/src/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts +0 -82
- package/src/@claude-flow/cli/dist/src/transfer/storage/index.d.ts +0 -6
- package/src/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts +0 -84
- package/src/@claude-flow/cli/dist/src/transfer/store/download.d.ts +0 -70
- package/src/@claude-flow/cli/dist/src/transfer/store/index.d.ts +0 -84
- package/src/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +0 -76
- package/src/@claude-flow/cli/dist/src/transfer/store/registry.d.ts +0 -58
- package/src/@claude-flow/cli/dist/src/transfer/store/search.d.ts +0 -54
- package/src/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts +0 -12
- package/src/@claude-flow/cli/dist/src/transfer/store/types.d.ts +0 -193
- package/src/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts +0 -6
- package/src/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts +0 -7
- package/src/@claude-flow/cli/dist/src/transfer/types.d.ts +0 -245
- package/src/@claude-flow/cli/dist/src/types.d.ts +0 -198
- package/src/@claude-flow/cli/dist/src/update/checker.d.ts +0 -34
- package/src/@claude-flow/cli/dist/src/update/executor.d.ts +0 -32
- package/src/@claude-flow/cli/dist/src/update/index.d.ts +0 -33
- package/src/@claude-flow/cli/dist/src/update/rate-limiter.d.ts +0 -20
- package/src/@claude-flow/cli/dist/src/update/validator.d.ts +0 -17
- package/src/@claude-flow/guidance/dist/adversarial.d.ts +0 -284
- package/src/@claude-flow/guidance/dist/analyzer.d.ts +0 -530
- package/src/@claude-flow/guidance/dist/artifacts.d.ts +0 -283
- package/src/@claude-flow/guidance/dist/authority.d.ts +0 -290
- package/src/@claude-flow/guidance/dist/capabilities.d.ts +0 -209
- package/src/@claude-flow/guidance/dist/coherence.d.ts +0 -233
- package/src/@claude-flow/guidance/dist/compiler.d.ts +0 -87
- package/src/@claude-flow/guidance/dist/conformance-kit.d.ts +0 -225
- package/src/@claude-flow/guidance/dist/continue-gate.d.ts +0 -214
- package/src/@claude-flow/guidance/dist/crypto-utils.d.ts +0 -17
- package/src/@claude-flow/guidance/dist/evolution.d.ts +0 -282
- package/src/@claude-flow/guidance/dist/gates.d.ts +0 -79
- package/src/@claude-flow/guidance/dist/gateway.d.ts +0 -206
- package/src/@claude-flow/guidance/dist/generators.d.ts +0 -153
- package/src/@claude-flow/guidance/dist/headless.d.ts +0 -177
- package/src/@claude-flow/guidance/dist/hooks.d.ts +0 -109
- package/src/@claude-flow/guidance/dist/index.d.ts +0 -205
- package/src/@claude-flow/guidance/dist/ledger.d.ts +0 -162
- package/src/@claude-flow/guidance/dist/manifest-validator.d.ts +0 -289
- package/src/@claude-flow/guidance/dist/memory-gate.d.ts +0 -222
- package/src/@claude-flow/guidance/dist/meta-governance.d.ts +0 -265
- package/src/@claude-flow/guidance/dist/optimizer.d.ts +0 -104
- package/src/@claude-flow/guidance/dist/persistence.d.ts +0 -189
- package/src/@claude-flow/guidance/dist/proof.d.ts +0 -185
- package/src/@claude-flow/guidance/dist/retriever.d.ts +0 -116
- package/src/@claude-flow/guidance/dist/ruvbot-integration.d.ts +0 -370
- package/src/@claude-flow/guidance/dist/temporal.d.ts +0 -426
- package/src/@claude-flow/guidance/dist/trust.d.ts +0 -283
- package/src/@claude-flow/guidance/dist/truth-anchors.d.ts +0 -276
- package/src/@claude-flow/guidance/dist/types.d.ts +0 -378
- package/src/@claude-flow/guidance/dist/uncertainty.d.ts +0 -372
- package/src/@claude-flow/guidance/dist/wasm-kernel.d.ts +0 -48
- package/src/@claude-flow/memory/dist/agent-memory-scope.d.ts +0 -131
- package/src/@claude-flow/memory/dist/agent-memory-scope.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/agentdb-adapter.d.ts +0 -165
- package/src/@claude-flow/memory/dist/agentdb-backend.d.ts +0 -212
- package/src/@claude-flow/memory/dist/agentdb-backend.test.d.ts +0 -7
- package/src/@claude-flow/memory/dist/application/commands/delete-memory.command.d.ts +0 -65
- package/src/@claude-flow/memory/dist/application/commands/store-memory.command.d.ts +0 -48
- package/src/@claude-flow/memory/dist/application/index.d.ts +0 -12
- package/src/@claude-flow/memory/dist/application/queries/search-memory.query.d.ts +0 -72
- package/src/@claude-flow/memory/dist/application/services/memory-application-service.d.ts +0 -121
- package/src/@claude-flow/memory/dist/auto-memory-bridge.d.ts +0 -226
- package/src/@claude-flow/memory/dist/auto-memory-bridge.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/benchmark.test.d.ts +0 -2
- package/src/@claude-flow/memory/dist/cache-manager.d.ts +0 -134
- package/src/@claude-flow/memory/dist/controller-registry.d.ts +0 -216
- package/src/@claude-flow/memory/dist/controller-registry.test.d.ts +0 -14
- package/src/@claude-flow/memory/dist/database-provider.d.ts +0 -87
- package/src/@claude-flow/memory/dist/database-provider.test.d.ts +0 -7
- package/src/@claude-flow/memory/dist/domain/entities/memory-entry.d.ts +0 -143
- package/src/@claude-flow/memory/dist/domain/index.d.ts +0 -11
- package/src/@claude-flow/memory/dist/domain/repositories/memory-repository.interface.d.ts +0 -102
- package/src/@claude-flow/memory/dist/domain/services/memory-domain-service.d.ts +0 -105
- package/src/@claude-flow/memory/dist/hnsw-index.d.ts +0 -111
- package/src/@claude-flow/memory/dist/hnsw-lite.d.ts +0 -23
- package/src/@claude-flow/memory/dist/hybrid-backend.d.ts +0 -245
- package/src/@claude-flow/memory/dist/hybrid-backend.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/index.d.ts +0 -204
- package/src/@claude-flow/memory/dist/infrastructure/index.d.ts +0 -17
- package/src/@claude-flow/memory/dist/infrastructure/repositories/hybrid-memory-repository.d.ts +0 -66
- package/src/@claude-flow/memory/dist/learning-bridge.d.ts +0 -137
- package/src/@claude-flow/memory/dist/learning-bridge.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/memory-graph.d.ts +0 -100
- package/src/@claude-flow/memory/dist/memory-graph.test.d.ts +0 -8
- package/src/@claude-flow/memory/dist/migration.d.ts +0 -68
- package/src/@claude-flow/memory/dist/persistent-sona.d.ts +0 -144
- package/src/@claude-flow/memory/dist/query-builder.d.ts +0 -211
- package/src/@claude-flow/memory/dist/rvf-backend.d.ts +0 -51
- package/src/@claude-flow/memory/dist/rvf-learning-store.d.ts +0 -139
- package/src/@claude-flow/memory/dist/rvf-migration.d.ts +0 -45
- package/src/@claude-flow/memory/dist/sqlite-backend.d.ts +0 -121
- package/src/@claude-flow/memory/dist/sqljs-backend.d.ts +0 -127
- package/src/@claude-flow/memory/dist/types.d.ts +0 -484
- package/src/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
- package/src/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
- package/src/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
- package/src/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1134
- package/src/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
- package/src/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
- package/src/@claude-flow/shared/dist/core/index.d.ts +0 -15
- package/src/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
- package/src/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
- package/src/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
- package/src/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
- package/src/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
- package/src/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
- package/src/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
- package/src/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
- package/src/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
- package/src/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
- package/src/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
- package/src/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
- package/src/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
- package/src/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
- package/src/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
- package/src/@claude-flow/shared/dist/events/index.d.ts +0 -21
- package/src/@claude-flow/shared/dist/events/projections.d.ts +0 -177
- package/src/@claude-flow/shared/dist/events/rvf-event-log.d.ts +0 -82
- package/src/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
- package/src/@claude-flow/shared/dist/events.d.ts +0 -80
- package/src/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
- package/src/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
- package/src/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
- package/src/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
- package/src/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
- package/src/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
- package/src/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
- package/src/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
- package/src/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
- package/src/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
- package/src/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
- package/src/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
- package/src/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
- package/src/@claude-flow/shared/dist/index.d.ts +0 -20
- package/src/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
- package/src/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
- package/src/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
- package/src/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
- package/src/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
- package/src/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
- package/src/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
- package/src/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
- package/src/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
- package/src/@claude-flow/shared/dist/mcp/types.d.ts +0 -438
- package/src/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
- package/src/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
- package/src/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
- package/src/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
- package/src/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
- package/src/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
- package/src/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
- package/src/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
- package/src/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
- package/src/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
- package/src/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
- package/src/@claude-flow/shared/dist/security/index.d.ts +0 -10
- package/src/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
- package/src/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
- package/src/@claude-flow/shared/dist/services/index.d.ts +0 -7
- package/src/@claude-flow/shared/dist/services/v3-progress.service.d.ts +0 -124
- package/src/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
- package/src/@claude-flow/shared/dist/types/index.d.ts +0 -11
- package/src/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
- package/src/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
- package/src/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
- package/src/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
- package/src/@claude-flow/shared/dist/types.d.ts +0 -197
- package/src/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 Safety Hooks - Index
|
|
3
|
-
*
|
|
4
|
-
* TypeScript conversions of V2 shell hooks for:
|
|
5
|
-
* - Bash command safety
|
|
6
|
-
* - File organization enforcement
|
|
7
|
-
* - Git commit formatting
|
|
8
|
-
*
|
|
9
|
-
* @module v3/shared/hooks/safety
|
|
10
|
-
*/
|
|
11
|
-
export { BashSafetyHook, createBashSafetyHook, } from './bash-safety.js';
|
|
12
|
-
export type { BashSafetyResult, CommandRisk, } from './bash-safety.js';
|
|
13
|
-
export { FileOrganizationHook, createFileOrganizationHook, } from './file-organization.js';
|
|
14
|
-
export type { FileOrganizationResult, FormatterRecommendation, LinterRecommendation, OrganizationIssue, } from './file-organization.js';
|
|
15
|
-
export { GitCommitHook, createGitCommitHook, } from './git-commit.js';
|
|
16
|
-
export type { GitCommitResult, CommitType, CommitValidationIssue, } from './git-commit.js';
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 Session Management Hooks
|
|
3
|
-
*
|
|
4
|
-
* Provides session-end and session-restore hooks for state persistence.
|
|
5
|
-
* Enables cross-session memory and state recovery.
|
|
6
|
-
*
|
|
7
|
-
* @module v3/shared/hooks/session-hooks
|
|
8
|
-
*/
|
|
9
|
-
import { HookContext, HookResult } from './types.js';
|
|
10
|
-
import { HookRegistry } from './registry.js';
|
|
11
|
-
/**
|
|
12
|
-
* Session state to persist
|
|
13
|
-
*/
|
|
14
|
-
export interface SessionState {
|
|
15
|
-
/** Session ID */
|
|
16
|
-
sessionId: string;
|
|
17
|
-
/** Session start time */
|
|
18
|
-
startTime: Date;
|
|
19
|
-
/** Session end time */
|
|
20
|
-
endTime?: Date;
|
|
21
|
-
/** Working directory */
|
|
22
|
-
workingDirectory?: string;
|
|
23
|
-
/** Active tasks */
|
|
24
|
-
activeTasks?: Array<{
|
|
25
|
-
id: string;
|
|
26
|
-
description: string;
|
|
27
|
-
status: 'pending' | 'in_progress' | 'completed' | 'failed';
|
|
28
|
-
}>;
|
|
29
|
-
/** Spawned agents */
|
|
30
|
-
spawnedAgents?: Array<{
|
|
31
|
-
id: string;
|
|
32
|
-
type: string;
|
|
33
|
-
status: 'active' | 'idle' | 'terminated';
|
|
34
|
-
}>;
|
|
35
|
-
/** Memory entries */
|
|
36
|
-
memoryEntries?: Array<{
|
|
37
|
-
key: string;
|
|
38
|
-
namespace: string;
|
|
39
|
-
type: string;
|
|
40
|
-
}>;
|
|
41
|
-
/** Git state */
|
|
42
|
-
gitState?: {
|
|
43
|
-
branch: string;
|
|
44
|
-
uncommittedChanges: number;
|
|
45
|
-
lastCommit?: string;
|
|
46
|
-
};
|
|
47
|
-
/** Learning metrics */
|
|
48
|
-
learningMetrics?: {
|
|
49
|
-
patternsLearned: number;
|
|
50
|
-
trajectoryCount: number;
|
|
51
|
-
avgConfidence: number;
|
|
52
|
-
};
|
|
53
|
-
/** Custom metadata */
|
|
54
|
-
metadata?: Record<string, unknown>;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Session-end hook result
|
|
58
|
-
*/
|
|
59
|
-
export interface SessionEndHookResult extends HookResult {
|
|
60
|
-
/** Session state that was persisted */
|
|
61
|
-
persistedState?: SessionState;
|
|
62
|
-
/** File path where state was saved */
|
|
63
|
-
statePath?: string;
|
|
64
|
-
/** Duration of the session in ms */
|
|
65
|
-
duration?: number;
|
|
66
|
-
/** Summary of session activity */
|
|
67
|
-
summary?: SessionSummary;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Session-restore hook result
|
|
71
|
-
*/
|
|
72
|
-
export interface SessionRestoreHookResult extends HookResult {
|
|
73
|
-
/** Restored session state */
|
|
74
|
-
restoredState?: SessionState;
|
|
75
|
-
/** Number of tasks restored */
|
|
76
|
-
tasksRestored?: number;
|
|
77
|
-
/** Number of agents restored */
|
|
78
|
-
agentsRestored?: number;
|
|
79
|
-
/** Memory entries restored */
|
|
80
|
-
memoryRestored?: number;
|
|
81
|
-
/** Warnings during restoration */
|
|
82
|
-
warnings?: string[];
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Session summary
|
|
86
|
-
*/
|
|
87
|
-
export interface SessionSummary {
|
|
88
|
-
/** Total tasks executed */
|
|
89
|
-
tasksExecuted: number;
|
|
90
|
-
/** Successful tasks */
|
|
91
|
-
tasksSucceeded: number;
|
|
92
|
-
/** Failed tasks */
|
|
93
|
-
tasksFailed: number;
|
|
94
|
-
/** Commands executed */
|
|
95
|
-
commandsExecuted: number;
|
|
96
|
-
/** Files modified */
|
|
97
|
-
filesModified: number;
|
|
98
|
-
/** Agents spawned */
|
|
99
|
-
agentsSpawned: number;
|
|
100
|
-
/** Duration in ms */
|
|
101
|
-
duration: number;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Session storage interface
|
|
105
|
-
*/
|
|
106
|
-
export interface SessionStorage {
|
|
107
|
-
/** Save session state */
|
|
108
|
-
save(sessionId: string, state: SessionState): Promise<void>;
|
|
109
|
-
/** Load session state */
|
|
110
|
-
load(sessionId: string): Promise<SessionState | null>;
|
|
111
|
-
/** List available sessions */
|
|
112
|
-
list(): Promise<Array<{
|
|
113
|
-
id: string;
|
|
114
|
-
startTime: Date;
|
|
115
|
-
summary?: SessionSummary;
|
|
116
|
-
}>>;
|
|
117
|
-
/** Delete session */
|
|
118
|
-
delete(sessionId: string): Promise<boolean>;
|
|
119
|
-
/** Get latest session ID */
|
|
120
|
-
getLatest(): Promise<string | null>;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* In-memory session storage (for testing and fallback)
|
|
124
|
-
*/
|
|
125
|
-
export declare class InMemorySessionStorage implements SessionStorage {
|
|
126
|
-
private sessions;
|
|
127
|
-
save(sessionId: string, state: SessionState): Promise<void>;
|
|
128
|
-
load(sessionId: string): Promise<SessionState | null>;
|
|
129
|
-
list(): Promise<Array<{
|
|
130
|
-
id: string;
|
|
131
|
-
startTime: Date;
|
|
132
|
-
summary?: SessionSummary;
|
|
133
|
-
}>>;
|
|
134
|
-
delete(sessionId: string): Promise<boolean>;
|
|
135
|
-
getLatest(): Promise<string | null>;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Session activity tracker
|
|
139
|
-
*/
|
|
140
|
-
interface SessionActivity {
|
|
141
|
-
tasksExecuted: number;
|
|
142
|
-
tasksSucceeded: number;
|
|
143
|
-
tasksFailed: number;
|
|
144
|
-
commandsExecuted: number;
|
|
145
|
-
filesModified: Set<string>;
|
|
146
|
-
agentsSpawned: Set<string>;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Session Hooks Manager
|
|
150
|
-
*
|
|
151
|
-
* Manages session lifecycle hooks with state persistence.
|
|
152
|
-
*/
|
|
153
|
-
export declare class SessionHooksManager {
|
|
154
|
-
private registry;
|
|
155
|
-
private storage;
|
|
156
|
-
private currentSessionId;
|
|
157
|
-
private sessionStartTime;
|
|
158
|
-
private activity;
|
|
159
|
-
constructor(registry: HookRegistry, storage?: SessionStorage);
|
|
160
|
-
/**
|
|
161
|
-
* Register default session hooks
|
|
162
|
-
*/
|
|
163
|
-
private registerDefaultHooks;
|
|
164
|
-
/**
|
|
165
|
-
* Handle session start
|
|
166
|
-
*/
|
|
167
|
-
handleSessionStart(context: HookContext): Promise<HookResult>;
|
|
168
|
-
/**
|
|
169
|
-
* Handle session end
|
|
170
|
-
*/
|
|
171
|
-
handleSessionEnd(context: HookContext): Promise<SessionEndHookResult>;
|
|
172
|
-
/**
|
|
173
|
-
* Handle session resume (restoration)
|
|
174
|
-
*/
|
|
175
|
-
handleSessionResume(context: HookContext): Promise<SessionRestoreHookResult>;
|
|
176
|
-
/**
|
|
177
|
-
* Track task execution
|
|
178
|
-
*/
|
|
179
|
-
private trackTaskExecution;
|
|
180
|
-
/**
|
|
181
|
-
* Track command execution
|
|
182
|
-
*/
|
|
183
|
-
private trackCommandExecution;
|
|
184
|
-
/**
|
|
185
|
-
* Track file modification
|
|
186
|
-
*/
|
|
187
|
-
private trackFileModification;
|
|
188
|
-
/**
|
|
189
|
-
* Track agent spawn
|
|
190
|
-
*/
|
|
191
|
-
private trackAgentSpawn;
|
|
192
|
-
/**
|
|
193
|
-
* Reset activity tracking
|
|
194
|
-
*/
|
|
195
|
-
private resetActivity;
|
|
196
|
-
/**
|
|
197
|
-
* Execute session-end hook manually
|
|
198
|
-
*/
|
|
199
|
-
executeSessionEnd(metadata?: Record<string, unknown>): Promise<SessionEndHookResult>;
|
|
200
|
-
/**
|
|
201
|
-
* Execute session-restore hook manually
|
|
202
|
-
*/
|
|
203
|
-
executeSessionRestore(sessionId?: string, metadata?: Record<string, unknown>): Promise<SessionRestoreHookResult>;
|
|
204
|
-
/**
|
|
205
|
-
* List available sessions
|
|
206
|
-
*/
|
|
207
|
-
listSessions(): Promise<Array<{
|
|
208
|
-
id: string;
|
|
209
|
-
startTime: Date;
|
|
210
|
-
summary?: SessionSummary;
|
|
211
|
-
}>>;
|
|
212
|
-
/**
|
|
213
|
-
* Delete a session
|
|
214
|
-
*/
|
|
215
|
-
deleteSession(sessionId: string): Promise<boolean>;
|
|
216
|
-
/**
|
|
217
|
-
* Get current session ID
|
|
218
|
-
*/
|
|
219
|
-
getCurrentSessionId(): string | null;
|
|
220
|
-
/**
|
|
221
|
-
* Get current session activity
|
|
222
|
-
*/
|
|
223
|
-
getCurrentActivity(): SessionActivity;
|
|
224
|
-
/**
|
|
225
|
-
* Set storage backend
|
|
226
|
-
*/
|
|
227
|
-
setStorage(storage: SessionStorage): void;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Create session hooks manager
|
|
231
|
-
*/
|
|
232
|
-
export declare function createSessionHooksManager(registry: HookRegistry, storage?: SessionStorage): SessionHooksManager;
|
|
233
|
-
export {};
|
|
234
|
-
//# sourceMappingURL=session-hooks.d.ts.map
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 Task Lifecycle Hooks
|
|
3
|
-
*
|
|
4
|
-
* Provides pre-task and post-task hooks for task execution lifecycle.
|
|
5
|
-
* Integrates with ReasoningBank for learning and pattern recognition.
|
|
6
|
-
*
|
|
7
|
-
* @module v3/shared/hooks/task-hooks
|
|
8
|
-
*/
|
|
9
|
-
import { HookContext, HookResult } from './types.js';
|
|
10
|
-
import { HookRegistry } from './registry.js';
|
|
11
|
-
/**
|
|
12
|
-
* Pre-task hook result with agent suggestions
|
|
13
|
-
*/
|
|
14
|
-
export interface PreTaskHookResult extends HookResult {
|
|
15
|
-
/** Suggested agents for the task */
|
|
16
|
-
suggestedAgents?: AgentSuggestion[];
|
|
17
|
-
/** Task complexity estimation */
|
|
18
|
-
complexity?: 'low' | 'medium' | 'high';
|
|
19
|
-
/** Estimated duration in milliseconds */
|
|
20
|
-
estimatedDuration?: number;
|
|
21
|
-
/** Related patterns from ReasoningBank */
|
|
22
|
-
patterns?: TaskPattern[];
|
|
23
|
-
/** Potential risks */
|
|
24
|
-
risks?: string[];
|
|
25
|
-
/** Recommendations */
|
|
26
|
-
recommendations?: string[];
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Post-task hook result with learning data
|
|
30
|
-
*/
|
|
31
|
-
export interface PostTaskHookResult extends HookResult {
|
|
32
|
-
/** Task outcome */
|
|
33
|
-
outcome?: TaskOutcome;
|
|
34
|
-
/** Learning updates applied */
|
|
35
|
-
learningUpdates?: LearningUpdate;
|
|
36
|
-
/** Pattern ID if a new pattern was created */
|
|
37
|
-
patternId?: string;
|
|
38
|
-
/** Trajectory ID for ReasoningBank */
|
|
39
|
-
trajectoryId?: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Agent suggestion for task routing
|
|
43
|
-
*/
|
|
44
|
-
export interface AgentSuggestion {
|
|
45
|
-
/** Agent type */
|
|
46
|
-
type: string;
|
|
47
|
-
/** Confidence score (0-1) */
|
|
48
|
-
confidence: number;
|
|
49
|
-
/** Reason for suggestion */
|
|
50
|
-
reason: string;
|
|
51
|
-
/** Capabilities relevant to this task */
|
|
52
|
-
capabilities?: string[];
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Task pattern from ReasoningBank
|
|
56
|
-
*/
|
|
57
|
-
export interface TaskPattern {
|
|
58
|
-
/** Pattern identifier */
|
|
59
|
-
id: string;
|
|
60
|
-
/** Pattern description */
|
|
61
|
-
description: string;
|
|
62
|
-
/** Match score (0-1) */
|
|
63
|
-
matchScore: number;
|
|
64
|
-
/** Historical success rate */
|
|
65
|
-
successRate: number;
|
|
66
|
-
/** Average duration in ms */
|
|
67
|
-
avgDuration: number;
|
|
68
|
-
/** Recommended strategies */
|
|
69
|
-
strategies?: string[];
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Task outcome for learning
|
|
73
|
-
*/
|
|
74
|
-
export interface TaskOutcome {
|
|
75
|
-
/** Whether the task succeeded */
|
|
76
|
-
success: boolean;
|
|
77
|
-
/** Duration in milliseconds */
|
|
78
|
-
duration: number;
|
|
79
|
-
/** Quality score (0-1) */
|
|
80
|
-
quality?: number;
|
|
81
|
-
/** Error details if failed */
|
|
82
|
-
error?: string;
|
|
83
|
-
/** Output artifacts */
|
|
84
|
-
artifacts?: string[];
|
|
85
|
-
/** Agent that executed the task */
|
|
86
|
-
agent?: string;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Learning update result
|
|
90
|
-
*/
|
|
91
|
-
export interface LearningUpdate {
|
|
92
|
-
/** Number of patterns updated */
|
|
93
|
-
patternsUpdated: number;
|
|
94
|
-
/** Number of new patterns created */
|
|
95
|
-
newPatterns: number;
|
|
96
|
-
/** Confidence adjustments made */
|
|
97
|
-
confidenceAdjusted: number;
|
|
98
|
-
/** Trajectories recorded */
|
|
99
|
-
trajectoriesRecorded: number;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Task store for tracking active tasks
|
|
103
|
-
*/
|
|
104
|
-
interface TaskStore {
|
|
105
|
-
taskId: string;
|
|
106
|
-
description: string;
|
|
107
|
-
startTime: number;
|
|
108
|
-
metadata?: Record<string, unknown>;
|
|
109
|
-
suggestedAgents?: AgentSuggestion[];
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Task Hooks Manager
|
|
113
|
-
*
|
|
114
|
-
* Manages pre-task and post-task hooks with ReasoningBank integration.
|
|
115
|
-
*/
|
|
116
|
-
export declare class TaskHooksManager {
|
|
117
|
-
private registry;
|
|
118
|
-
private activeTasks;
|
|
119
|
-
private taskPatterns;
|
|
120
|
-
constructor(registry: HookRegistry);
|
|
121
|
-
/**
|
|
122
|
-
* Register default task hooks
|
|
123
|
-
*/
|
|
124
|
-
private registerDefaultHooks;
|
|
125
|
-
/**
|
|
126
|
-
* Handle pre-task execution
|
|
127
|
-
*/
|
|
128
|
-
handlePreTask(context: HookContext): Promise<PreTaskHookResult>;
|
|
129
|
-
/**
|
|
130
|
-
* Handle post-task execution
|
|
131
|
-
*/
|
|
132
|
-
handlePostTask(context: HookContext): Promise<PostTaskHookResult>;
|
|
133
|
-
/**
|
|
134
|
-
* Analyze task for agent suggestions and patterns
|
|
135
|
-
*/
|
|
136
|
-
private analyzeTask;
|
|
137
|
-
/**
|
|
138
|
-
* Record learning trajectory
|
|
139
|
-
*/
|
|
140
|
-
private recordLearning;
|
|
141
|
-
/**
|
|
142
|
-
* Execute pre-task hook manually
|
|
143
|
-
*/
|
|
144
|
-
executePreTask(taskId: string, description: string, metadata?: Record<string, unknown>): Promise<PreTaskHookResult>;
|
|
145
|
-
/**
|
|
146
|
-
* Execute post-task hook manually
|
|
147
|
-
*/
|
|
148
|
-
executePostTask(taskId: string, success: boolean, metadata?: Record<string, unknown>): Promise<PostTaskHookResult>;
|
|
149
|
-
/**
|
|
150
|
-
* Get active tasks
|
|
151
|
-
*/
|
|
152
|
-
getActiveTasks(): Map<string, TaskStore>;
|
|
153
|
-
/**
|
|
154
|
-
* Clear all active tasks
|
|
155
|
-
*/
|
|
156
|
-
clearActiveTasks(): void;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Create task hooks manager
|
|
160
|
-
*/
|
|
161
|
-
export declare function createTaskHooksManager(registry: HookRegistry): TaskHooksManager;
|
|
162
|
-
export {};
|
|
163
|
-
//# sourceMappingURL=task-hooks.d.ts.map
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 Hooks System - Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* Provides extensible hook points for tool execution, file operations,
|
|
5
|
-
* and session lifecycle events. Integrates with event bus for coordination.
|
|
6
|
-
*
|
|
7
|
-
* @module v3/shared/hooks/types
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Hook event types
|
|
11
|
-
*/
|
|
12
|
-
export declare enum HookEvent {
|
|
13
|
-
PreToolUse = "hook:pre-tool-use",
|
|
14
|
-
PostToolUse = "hook:post-tool-use",
|
|
15
|
-
PreEdit = "hook:pre-edit",
|
|
16
|
-
PostEdit = "hook:post-edit",
|
|
17
|
-
PreRead = "hook:pre-read",
|
|
18
|
-
PostRead = "hook:post-read",
|
|
19
|
-
PreWrite = "hook:pre-write",
|
|
20
|
-
PostWrite = "hook:post-write",
|
|
21
|
-
PreCommand = "hook:pre-command",
|
|
22
|
-
PostCommand = "hook:post-command",
|
|
23
|
-
SessionStart = "hook:session-start",
|
|
24
|
-
SessionEnd = "hook:session-end",
|
|
25
|
-
SessionPause = "hook:session-pause",
|
|
26
|
-
SessionResume = "hook:session-resume",
|
|
27
|
-
PreAgentSpawn = "hook:pre-agent-spawn",
|
|
28
|
-
PostAgentSpawn = "hook:post-agent-spawn",
|
|
29
|
-
PreAgentTerminate = "hook:pre-agent-terminate",
|
|
30
|
-
PostAgentTerminate = "hook:post-agent-terminate",
|
|
31
|
-
PreTaskExecute = "hook:pre-task-execute",
|
|
32
|
-
PostTaskExecute = "hook:post-task-execute",
|
|
33
|
-
PreTaskComplete = "hook:pre-task-complete",
|
|
34
|
-
PostTaskComplete = "hook:post-task-complete",
|
|
35
|
-
PreMemoryStore = "hook:pre-memory-store",
|
|
36
|
-
PostMemoryStore = "hook:post-memory-store",
|
|
37
|
-
PreMemoryRetrieve = "hook:pre-memory-retrieve",
|
|
38
|
-
PostMemoryRetrieve = "hook:post-memory-retrieve",
|
|
39
|
-
OnError = "hook:on-error",
|
|
40
|
-
OnWarning = "hook:on-warning"
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Hook priority levels (higher = earlier execution)
|
|
44
|
-
*/
|
|
45
|
-
export declare enum HookPriority {
|
|
46
|
-
Critical = 1000,
|
|
47
|
-
High = 500,
|
|
48
|
-
Normal = 0,
|
|
49
|
-
Low = -500,
|
|
50
|
-
Lowest = -1000
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Tool information for tool-related hooks
|
|
54
|
-
*/
|
|
55
|
-
export interface ToolInfo {
|
|
56
|
-
/** Tool name (e.g., 'Read', 'Write', 'Bash') */
|
|
57
|
-
name: string;
|
|
58
|
-
/** Tool parameters */
|
|
59
|
-
parameters: Record<string, unknown>;
|
|
60
|
-
/** Estimated execution time in ms */
|
|
61
|
-
estimatedDuration?: number;
|
|
62
|
-
/** Tool category */
|
|
63
|
-
category?: 'file' | 'bash' | 'search' | 'edit' | 'git' | 'other';
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Command information for command-related hooks
|
|
67
|
-
*/
|
|
68
|
-
export interface CommandInfo {
|
|
69
|
-
/** Command string */
|
|
70
|
-
command: string;
|
|
71
|
-
/** Working directory */
|
|
72
|
-
cwd?: string;
|
|
73
|
-
/** Environment variables */
|
|
74
|
-
env?: Record<string, string>;
|
|
75
|
-
/** Command timeout in ms */
|
|
76
|
-
timeout?: number;
|
|
77
|
-
/** Whether command is destructive */
|
|
78
|
-
isDestructive?: boolean;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* File operation information
|
|
82
|
-
*/
|
|
83
|
-
export interface FileOperationInfo {
|
|
84
|
-
/** File path */
|
|
85
|
-
path: string;
|
|
86
|
-
/** Operation type */
|
|
87
|
-
operation: 'read' | 'write' | 'edit' | 'delete';
|
|
88
|
-
/** File content (for write/edit operations) */
|
|
89
|
-
content?: string;
|
|
90
|
-
/** Previous content (for edit operations) */
|
|
91
|
-
previousContent?: string;
|
|
92
|
-
/** File size in bytes */
|
|
93
|
-
size?: number;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Session information
|
|
97
|
-
*/
|
|
98
|
-
export interface SessionInfo {
|
|
99
|
-
/** Session ID */
|
|
100
|
-
id: string;
|
|
101
|
-
/** Session start time */
|
|
102
|
-
startTime: Date;
|
|
103
|
-
/** Session end time */
|
|
104
|
-
endTime?: Date;
|
|
105
|
-
/** Session metadata */
|
|
106
|
-
metadata?: Record<string, unknown>;
|
|
107
|
-
/** User ID (if available) */
|
|
108
|
-
userId?: string;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Agent information
|
|
112
|
-
*/
|
|
113
|
-
export interface AgentInfo {
|
|
114
|
-
/** Agent ID */
|
|
115
|
-
id: string;
|
|
116
|
-
/** Agent type/role */
|
|
117
|
-
type: string;
|
|
118
|
-
/** Agent configuration */
|
|
119
|
-
config?: Record<string, unknown>;
|
|
120
|
-
/** Parent agent ID */
|
|
121
|
-
parentId?: string;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Task information
|
|
125
|
-
*/
|
|
126
|
-
export interface TaskInfo {
|
|
127
|
-
/** Task ID */
|
|
128
|
-
id: string;
|
|
129
|
-
/** Task description */
|
|
130
|
-
description: string;
|
|
131
|
-
/** Task priority */
|
|
132
|
-
priority?: number;
|
|
133
|
-
/** Assigned agent ID */
|
|
134
|
-
agentId?: string;
|
|
135
|
-
/** Task metadata */
|
|
136
|
-
metadata?: Record<string, unknown>;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Memory operation information
|
|
140
|
-
*/
|
|
141
|
-
export interface MemoryInfo {
|
|
142
|
-
/** Memory key */
|
|
143
|
-
key: string;
|
|
144
|
-
/** Memory value */
|
|
145
|
-
value?: unknown;
|
|
146
|
-
/** Memory namespace */
|
|
147
|
-
namespace?: string;
|
|
148
|
-
/** TTL in seconds */
|
|
149
|
-
ttl?: number;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Error information
|
|
153
|
-
*/
|
|
154
|
-
export interface ErrorInfo {
|
|
155
|
-
/** Error object */
|
|
156
|
-
error: Error;
|
|
157
|
-
/** Error context */
|
|
158
|
-
context?: string;
|
|
159
|
-
/** Error severity */
|
|
160
|
-
severity: 'warning' | 'error' | 'fatal';
|
|
161
|
-
/** Recoverable flag */
|
|
162
|
-
recoverable: boolean;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Hook context - contains information about the event being hooked
|
|
166
|
-
*/
|
|
167
|
-
export interface HookContext {
|
|
168
|
-
/** Event type */
|
|
169
|
-
event: HookEvent;
|
|
170
|
-
/** Timestamp when hook was triggered */
|
|
171
|
-
timestamp: Date;
|
|
172
|
-
/** Correlation ID for tracking related events */
|
|
173
|
-
correlationId?: string;
|
|
174
|
-
/** Tool information (for tool hooks) */
|
|
175
|
-
tool?: ToolInfo;
|
|
176
|
-
/** Command information (for command hooks) */
|
|
177
|
-
command?: CommandInfo;
|
|
178
|
-
/** File operation information (for file hooks) */
|
|
179
|
-
file?: FileOperationInfo;
|
|
180
|
-
/** Session information (for session hooks) */
|
|
181
|
-
session?: SessionInfo;
|
|
182
|
-
/** Agent information (for agent hooks) */
|
|
183
|
-
agent?: AgentInfo;
|
|
184
|
-
/** Task information (for task hooks) */
|
|
185
|
-
task?: TaskInfo;
|
|
186
|
-
/** Memory information (for memory hooks) */
|
|
187
|
-
memory?: MemoryInfo;
|
|
188
|
-
/** Error information (for error hooks) */
|
|
189
|
-
error?: ErrorInfo;
|
|
190
|
-
/** Additional metadata */
|
|
191
|
-
metadata?: Record<string, unknown>;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Hook result - returned by hook handlers
|
|
195
|
-
*/
|
|
196
|
-
export interface HookResult {
|
|
197
|
-
/** Whether the hook succeeded */
|
|
198
|
-
success: boolean;
|
|
199
|
-
/** Result data (can modify context) */
|
|
200
|
-
data?: Partial<HookContext>;
|
|
201
|
-
/** Error if hook failed */
|
|
202
|
-
error?: Error;
|
|
203
|
-
/** Whether to continue executing other hooks */
|
|
204
|
-
continueChain?: boolean;
|
|
205
|
-
/** Whether to abort the operation */
|
|
206
|
-
abort?: boolean;
|
|
207
|
-
/** Hook execution time in ms */
|
|
208
|
-
executionTime?: number;
|
|
209
|
-
/** Additional metadata */
|
|
210
|
-
metadata?: Record<string, unknown>;
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Hook handler function type
|
|
214
|
-
*/
|
|
215
|
-
export type HookHandler = (context: HookContext) => Promise<HookResult> | HookResult;
|
|
216
|
-
/**
|
|
217
|
-
* Hook definition with metadata
|
|
218
|
-
*/
|
|
219
|
-
export interface HookDefinition {
|
|
220
|
-
/** Unique hook ID */
|
|
221
|
-
id: string;
|
|
222
|
-
/** Hook event type */
|
|
223
|
-
event: HookEvent;
|
|
224
|
-
/** Hook handler function */
|
|
225
|
-
handler: HookHandler;
|
|
226
|
-
/** Hook priority */
|
|
227
|
-
priority: HookPriority;
|
|
228
|
-
/** Hook name/description */
|
|
229
|
-
name?: string;
|
|
230
|
-
/** Whether hook is enabled */
|
|
231
|
-
enabled: boolean;
|
|
232
|
-
/** Hook timeout in ms */
|
|
233
|
-
timeout?: number;
|
|
234
|
-
/** Hook metadata */
|
|
235
|
-
metadata?: Record<string, unknown>;
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Hook statistics
|
|
239
|
-
*/
|
|
240
|
-
export interface HookStats {
|
|
241
|
-
/** Total hooks registered */
|
|
242
|
-
totalHooks: number;
|
|
243
|
-
/** Hooks by event type */
|
|
244
|
-
byEvent: Record<HookEvent, number>;
|
|
245
|
-
/** Total executions */
|
|
246
|
-
totalExecutions: number;
|
|
247
|
-
/** Total failures */
|
|
248
|
-
totalFailures: number;
|
|
249
|
-
/** Average execution time in ms */
|
|
250
|
-
avgExecutionTime: number;
|
|
251
|
-
/** Total execution time in ms */
|
|
252
|
-
totalExecutionTime: number;
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Hook execution options
|
|
256
|
-
*/
|
|
257
|
-
export interface HookExecutionOptions {
|
|
258
|
-
/** Timeout in ms (overrides hook-specific timeout) */
|
|
259
|
-
timeout?: number;
|
|
260
|
-
/** Whether to continue on error */
|
|
261
|
-
continueOnError?: boolean;
|
|
262
|
-
/** Maximum parallel executions */
|
|
263
|
-
maxParallel?: number;
|
|
264
|
-
/** Whether to collect results from all hooks */
|
|
265
|
-
collectResults?: boolean;
|
|
266
|
-
}
|
|
267
|
-
//# sourceMappingURL=types.d.ts.map
|