claude-flow 3.25.6 → 3.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/helpers/.helpers-version +1 -1
- package/.claude/helpers/helpers.manifest.json +5 -4
- package/.claude/helpers/hook-handler.cjs +129 -0
- package/.claude/helpers/intelligence.cjs +10 -0
- package/.claude/helpers/statusline.cjs +300 -123
- package/.claude/proven-config.json +1 -1
- package/.claude/security-scans/scan-all-standard.json +321 -0
- package/.claude/security-scans/scan-code-deep.json +1209 -0
- package/.claude/security-scans/scan-deps-full.json +14 -0
- package/package.json +3 -1
- package/v3/@claude-flow/cli/catalog-manifest.json +12 -0
- package/v3/@claude-flow/cli/dist/src/commands/advisor.d.ts +15 -0
- package/v3/@claude-flow/cli/dist/src/commands/advisor.js +94 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.js +77 -3
- package/v3/@claude-flow/cli/dist/src/commands/funnel.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/commands/funnel.js +103 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js +112 -46
- package/v3/@claude-flow/cli/dist/src/commands/index.js +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.js +44 -0
- package/v3/@claude-flow/cli/dist/src/commands/proxy.d.ts +21 -0
- package/v3/@claude-flow/cli/dist/src/commands/proxy.js +310 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.js +29 -0
- package/v3/@claude-flow/cli/dist/src/commands/settings.d.ts +19 -0
- package/v3/@claude-flow/cli/dist/src/commands/settings.js +180 -0
- package/v3/@claude-flow/cli/dist/src/commands/version.d.ts +42 -0
- package/v3/@claude-flow/cli/dist/src/commands/version.js +106 -0
- package/v3/@claude-flow/cli/dist/src/funnel/advisor-tip.d.ts +58 -0
- package/v3/@claude-flow/cli/dist/src/funnel/advisor-tip.js +92 -0
- package/v3/@claude-flow/cli/dist/src/funnel/attribution.d.ts +37 -0
- package/v3/@claude-flow/cli/dist/src/funnel/attribution.js +101 -0
- package/v3/@claude-flow/cli/dist/src/funnel/consent.d.ts +22 -0
- package/v3/@claude-flow/cli/dist/src/funnel/consent.js +55 -0
- package/v3/@claude-flow/cli/dist/src/funnel/credit-errors.d.ts +31 -0
- package/v3/@claude-flow/cli/dist/src/funnel/credit-errors.js +88 -0
- package/v3/@claude-flow/cli/dist/src/funnel/credit-notifier.d.ts +44 -0
- package/v3/@claude-flow/cli/dist/src/funnel/credit-notifier.js +74 -0
- package/v3/@claude-flow/cli/dist/src/funnel/disclosure.d.ts +46 -0
- package/v3/@claude-flow/cli/dist/src/funnel/disclosure.js +97 -0
- package/v3/@claude-flow/cli/dist/src/funnel/enrollment.d.ts +36 -0
- package/v3/@claude-flow/cli/dist/src/funnel/enrollment.js +64 -0
- package/v3/@claude-flow/cli/dist/src/funnel/environment.d.ts +17 -0
- package/v3/@claude-flow/cli/dist/src/funnel/environment.js +39 -0
- package/v3/@claude-flow/cli/dist/src/funnel/event-transport.d.ts +51 -0
- package/v3/@claude-flow/cli/dist/src/funnel/event-transport.js +199 -0
- package/v3/@claude-flow/cli/dist/src/funnel/events.d.ts +42 -0
- package/v3/@claude-flow/cli/dist/src/funnel/events.js +150 -0
- package/v3/@claude-flow/cli/dist/src/funnel/index.d.ts +20 -0
- package/v3/@claude-flow/cli/dist/src/funnel/index.js +20 -0
- package/v3/@claude-flow/cli/dist/src/funnel/insights.d.ts +49 -0
- package/v3/@claude-flow/cli/dist/src/funnel/insights.js +120 -0
- package/v3/@claude-flow/cli/dist/src/funnel/local-signals.d.ts +15 -0
- package/v3/@claude-flow/cli/dist/src/funnel/local-signals.js +68 -0
- package/v3/@claude-flow/cli/dist/src/funnel/message-transport.d.ts +51 -0
- package/v3/@claude-flow/cli/dist/src/funnel/message-transport.js +149 -0
- package/v3/@claude-flow/cli/dist/src/funnel/messages.d.ts +55 -0
- package/v3/@claude-flow/cli/dist/src/funnel/messages.js +160 -0
- package/v3/@claude-flow/cli/dist/src/funnel/power-saver-notifier.d.ts +44 -0
- package/v3/@claude-flow/cli/dist/src/funnel/power-saver-notifier.js +92 -0
- package/v3/@claude-flow/cli/dist/src/funnel/precedence.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/funnel/precedence.js +85 -0
- package/v3/@claude-flow/cli/dist/src/funnel/promo.d.ts +41 -0
- package/v3/@claude-flow/cli/dist/src/funnel/promo.js +144 -0
- package/v3/@claude-flow/cli/dist/src/funnel/rate-limit-notifier.d.ts +55 -0
- package/v3/@claude-flow/cli/dist/src/funnel/rate-limit-notifier.js +102 -0
- package/v3/@claude-flow/cli/dist/src/funnel/rotation.d.ts +19 -0
- package/v3/@claude-flow/cli/dist/src/funnel/rotation.js +70 -0
- package/v3/@claude-flow/cli/dist/src/funnel/state.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/funnel/state.js +52 -0
- package/v3/@claude-flow/cli/dist/src/funnel/toggle-cooldown.d.ts +17 -0
- package/v3/@claude-flow/cli/dist/src/funnel/toggle-cooldown.js +32 -0
- package/v3/@claude-flow/cli/dist/src/funnel/types.d.ts +86 -0
- package/v3/@claude-flow/cli/dist/src/funnel/types.js +26 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.js +9 -3
- package/v3/@claude-flow/cli/dist/src/init/helper-refresh.d.ts +33 -2
- package/v3/@claude-flow/cli/dist/src/init/helper-refresh.js +102 -12
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js +52 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js +282 -116
- package/v3/@claude-flow/cli/dist/src/services/daemon-autostart.js +28 -5
- package/v3/@claude-flow/cli/dist/src/services/fable-harness.d.ts +39 -0
- package/v3/@claude-flow/cli/dist/src/services/fable-harness.js +41 -0
- package/v3/@claude-flow/cli/package.json +13 -4
- package/.claude/coordinator/config.json +0 -24
- package/.claude/coordinator/state.json +0 -37
- package/.claude/coordinator/tick-log/tick-01.json +0 -17
- package/.claude/coordinator/tick-log/tick-02.json +0 -17
- package/.claude/coordinator/tick-log/tick-03.json +0 -17
- package/.claude/coordinator/tick-log/tick-04.json +0 -14
- package/.claude/coordinator/tick-log/tick-05.json +0 -16
- package/.claude/settings.local.json +0 -11
- package/v3/@claude-flow/cli/dist/src/ruvector/lattice-wasm.d.ts +0 -14
- package/v3/@claude-flow/cli/dist/src/ruvector/lattice-wasm.js +0 -144
- package/v3/@claude-flow/guidance/dist/adversarial.d.ts +0 -284
- package/v3/@claude-flow/guidance/dist/adversarial.js +0 -572
- package/v3/@claude-flow/guidance/dist/analyzer.d.ts +0 -530
- package/v3/@claude-flow/guidance/dist/analyzer.js +0 -2587
- package/v3/@claude-flow/guidance/dist/artifacts.d.ts +0 -283
- package/v3/@claude-flow/guidance/dist/artifacts.js +0 -356
- package/v3/@claude-flow/guidance/dist/authority.d.ts +0 -290
- package/v3/@claude-flow/guidance/dist/authority.js +0 -558
- package/v3/@claude-flow/guidance/dist/capabilities.d.ts +0 -209
- package/v3/@claude-flow/guidance/dist/capabilities.js +0 -485
- package/v3/@claude-flow/guidance/dist/coherence.d.ts +0 -233
- package/v3/@claude-flow/guidance/dist/coherence.js +0 -372
- package/v3/@claude-flow/guidance/dist/compiler.d.ts +0 -87
- package/v3/@claude-flow/guidance/dist/compiler.js +0 -410
- package/v3/@claude-flow/guidance/dist/conformance-kit.d.ts +0 -225
- package/v3/@claude-flow/guidance/dist/conformance-kit.js +0 -629
- package/v3/@claude-flow/guidance/dist/continue-gate.d.ts +0 -214
- package/v3/@claude-flow/guidance/dist/continue-gate.js +0 -353
- package/v3/@claude-flow/guidance/dist/crypto-utils.d.ts +0 -17
- package/v3/@claude-flow/guidance/dist/crypto-utils.js +0 -24
- package/v3/@claude-flow/guidance/dist/evolution.d.ts +0 -282
- package/v3/@claude-flow/guidance/dist/evolution.js +0 -500
- package/v3/@claude-flow/guidance/dist/gates.d.ts +0 -79
- package/v3/@claude-flow/guidance/dist/gates.js +0 -302
- package/v3/@claude-flow/guidance/dist/gateway.d.ts +0 -206
- package/v3/@claude-flow/guidance/dist/gateway.js +0 -452
- package/v3/@claude-flow/guidance/dist/generators.d.ts +0 -153
- package/v3/@claude-flow/guidance/dist/generators.js +0 -682
- package/v3/@claude-flow/guidance/dist/headless.d.ts +0 -177
- package/v3/@claude-flow/guidance/dist/headless.js +0 -342
- package/v3/@claude-flow/guidance/dist/hooks.d.ts +0 -109
- package/v3/@claude-flow/guidance/dist/hooks.js +0 -347
- package/v3/@claude-flow/guidance/dist/index.d.ts +0 -205
- package/v3/@claude-flow/guidance/dist/index.js +0 -321
- package/v3/@claude-flow/guidance/dist/ledger.d.ts +0 -162
- package/v3/@claude-flow/guidance/dist/ledger.js +0 -375
- package/v3/@claude-flow/guidance/dist/manifest-validator.d.ts +0 -289
- package/v3/@claude-flow/guidance/dist/manifest-validator.js +0 -838
- package/v3/@claude-flow/guidance/dist/memory-gate.d.ts +0 -222
- package/v3/@claude-flow/guidance/dist/memory-gate.js +0 -382
- package/v3/@claude-flow/guidance/dist/meta-governance.d.ts +0 -265
- package/v3/@claude-flow/guidance/dist/meta-governance.js +0 -348
- package/v3/@claude-flow/guidance/dist/optimizer.d.ts +0 -104
- package/v3/@claude-flow/guidance/dist/optimizer.js +0 -329
- package/v3/@claude-flow/guidance/dist/persistence.d.ts +0 -189
- package/v3/@claude-flow/guidance/dist/persistence.js +0 -464
- package/v3/@claude-flow/guidance/dist/proof.d.ts +0 -185
- package/v3/@claude-flow/guidance/dist/proof.js +0 -238
- package/v3/@claude-flow/guidance/dist/retriever.d.ts +0 -172
- package/v3/@claude-flow/guidance/dist/retriever.js +0 -596
- package/v3/@claude-flow/guidance/dist/ruvbot-integration.d.ts +0 -370
- package/v3/@claude-flow/guidance/dist/ruvbot-integration.js +0 -738
- package/v3/@claude-flow/guidance/dist/temporal.d.ts +0 -426
- package/v3/@claude-flow/guidance/dist/temporal.js +0 -658
- package/v3/@claude-flow/guidance/dist/trust.d.ts +0 -283
- package/v3/@claude-flow/guidance/dist/trust.js +0 -473
- package/v3/@claude-flow/guidance/dist/truth-anchors.d.ts +0 -276
- package/v3/@claude-flow/guidance/dist/truth-anchors.js +0 -488
- package/v3/@claude-flow/guidance/dist/types.d.ts +0 -378
- package/v3/@claude-flow/guidance/dist/types.js +0 -10
- package/v3/@claude-flow/guidance/dist/uncertainty.d.ts +0 -372
- package/v3/@claude-flow/guidance/dist/uncertainty.js +0 -619
- package/v3/@claude-flow/guidance/dist/wasm-kernel.d.ts +0 -48
- package/v3/@claude-flow/guidance/dist/wasm-kernel.js +0 -158
- package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts +0 -41
- package/v3/@claude-flow/shared/dist/core/config/defaults.js +0 -186
- package/v3/@claude-flow/shared/dist/core/config/index.d.ts +0 -8
- package/v3/@claude-flow/shared/dist/core/config/index.js +0 -12
- package/v3/@claude-flow/shared/dist/core/config/loader.d.ts +0 -45
- package/v3/@claude-flow/shared/dist/core/config/loader.js +0 -238
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +0 -1728
- package/v3/@claude-flow/shared/dist/core/config/schema.js +0 -160
- package/v3/@claude-flow/shared/dist/core/config/validator.d.ts +0 -92
- package/v3/@claude-flow/shared/dist/core/config/validator.js +0 -147
- package/v3/@claude-flow/shared/dist/core/event-bus.d.ts +0 -31
- package/v3/@claude-flow/shared/dist/core/event-bus.js +0 -197
- package/v3/@claude-flow/shared/dist/core/index.d.ts +0 -15
- package/v3/@claude-flow/shared/dist/core/index.js +0 -19
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js +0 -6
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js +0 -7
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +0 -224
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js +0 -46
- package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts +0 -10
- package/v3/@claude-flow/shared/dist/core/interfaces/index.js +0 -15
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js +0 -7
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +0 -185
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js +0 -6
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js +0 -101
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js +0 -166
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts +0 -46
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.js +0 -64
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js +0 -195
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js +0 -193
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js +0 -253
- package/v3/@claude-flow/shared/dist/events/domain-events.d.ts +0 -282
- package/v3/@claude-flow/shared/dist/events/domain-events.js +0 -165
- package/v3/@claude-flow/shared/dist/events/event-store.d.ts +0 -126
- package/v3/@claude-flow/shared/dist/events/event-store.js +0 -427
- package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts +0 -8
- package/v3/@claude-flow/shared/dist/events/event-store.test.js +0 -293
- package/v3/@claude-flow/shared/dist/events/example-usage.d.ts +0 -10
- package/v3/@claude-flow/shared/dist/events/example-usage.js +0 -193
- package/v3/@claude-flow/shared/dist/events/index.d.ts +0 -21
- package/v3/@claude-flow/shared/dist/events/index.js +0 -22
- package/v3/@claude-flow/shared/dist/events/projections.d.ts +0 -177
- package/v3/@claude-flow/shared/dist/events/projections.js +0 -421
- package/v3/@claude-flow/shared/dist/events/rvf-event-log.d.ts +0 -82
- package/v3/@claude-flow/shared/dist/events/rvf-event-log.js +0 -340
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts +0 -101
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.js +0 -263
- package/v3/@claude-flow/shared/dist/events.d.ts +0 -80
- package/v3/@claude-flow/shared/dist/events.js +0 -249
- package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts +0 -42
- package/v3/@claude-flow/shared/dist/hooks/example-usage.js +0 -351
- package/v3/@claude-flow/shared/dist/hooks/executor.d.ts +0 -100
- package/v3/@claude-flow/shared/dist/hooks/executor.js +0 -267
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts +0 -9
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.js +0 -322
- package/v3/@claude-flow/shared/dist/hooks/index.d.ts +0 -52
- package/v3/@claude-flow/shared/dist/hooks/index.js +0 -51
- package/v3/@claude-flow/shared/dist/hooks/registry.d.ts +0 -133
- package/v3/@claude-flow/shared/dist/hooks/registry.js +0 -277
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js +0 -481
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +0 -144
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js +0 -328
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +0 -158
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js +0 -450
- package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts +0 -17
- package/v3/@claude-flow/shared/dist/hooks/safety/index.js +0 -17
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts +0 -234
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.js +0 -334
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts +0 -163
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.js +0 -326
- package/v3/@claude-flow/shared/dist/hooks/types.d.ts +0 -267
- package/v3/@claude-flow/shared/dist/hooks/types.js +0 -62
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +0 -9
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js +0 -93
- package/v3/@claude-flow/shared/dist/index.d.ts +0 -20
- package/v3/@claude-flow/shared/dist/index.js +0 -50
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts +0 -98
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.js +0 -364
- package/v3/@claude-flow/shared/dist/mcp/index.d.ts +0 -69
- package/v3/@claude-flow/shared/dist/mcp/index.js +0 -84
- package/v3/@claude-flow/shared/dist/mcp/server.d.ts +0 -166
- package/v3/@claude-flow/shared/dist/mcp/server.js +0 -590
- package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts +0 -136
- package/v3/@claude-flow/shared/dist/mcp/session-manager.js +0 -335
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts +0 -178
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.js +0 -439
- package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts +0 -104
- package/v3/@claude-flow/shared/dist/mcp/transport/http.js +0 -476
- package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts +0 -102
- package/v3/@claude-flow/shared/dist/mcp/transport/index.js +0 -238
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +0 -104
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js +0 -263
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +0 -133
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js +0 -396
- package/v3/@claude-flow/shared/dist/mcp/types.d.ts +0 -436
- package/v3/@claude-flow/shared/dist/mcp/types.js +0 -54
- package/v3/@claude-flow/shared/dist/plugin-interface.d.ts +0 -544
- package/v3/@claude-flow/shared/dist/plugin-interface.js +0 -23
- package/v3/@claude-flow/shared/dist/plugin-loader.d.ts +0 -139
- package/v3/@claude-flow/shared/dist/plugin-loader.js +0 -434
- package/v3/@claude-flow/shared/dist/plugin-registry.d.ts +0 -183
- package/v3/@claude-flow/shared/dist/plugin-registry.js +0 -457
- package/v3/@claude-flow/shared/dist/plugins/index.d.ts +0 -10
- package/v3/@claude-flow/shared/dist/plugins/index.js +0 -10
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js +0 -241
- package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts +0 -10
- package/v3/@claude-flow/shared/dist/plugins/official/index.js +0 -10
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js +0 -355
- package/v3/@claude-flow/shared/dist/plugins/types.d.ts +0 -93
- package/v3/@claude-flow/shared/dist/plugins/types.js +0 -9
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts +0 -105
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.js +0 -206
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +0 -132
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js +0 -233
- package/v3/@claude-flow/shared/dist/resilience/index.d.ts +0 -19
- package/v3/@claude-flow/shared/dist/resilience/index.js +0 -19
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +0 -168
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js +0 -314
- package/v3/@claude-flow/shared/dist/resilience/retry.d.ts +0 -91
- package/v3/@claude-flow/shared/dist/resilience/retry.js +0 -159
- package/v3/@claude-flow/shared/dist/security/index.d.ts +0 -10
- package/v3/@claude-flow/shared/dist/security/index.js +0 -12
- package/v3/@claude-flow/shared/dist/security/input-validation.d.ts +0 -73
- package/v3/@claude-flow/shared/dist/security/input-validation.js +0 -201
- package/v3/@claude-flow/shared/dist/security/secure-random.d.ts +0 -92
- package/v3/@claude-flow/shared/dist/security/secure-random.js +0 -142
- package/v3/@claude-flow/shared/dist/services/index.d.ts +0 -7
- package/v3/@claude-flow/shared/dist/services/index.js +0 -7
- package/v3/@claude-flow/shared/dist/services/v3-progress.service.d.ts +0 -124
- package/v3/@claude-flow/shared/dist/services/v3-progress.service.js +0 -402
- package/v3/@claude-flow/shared/dist/types/agent.types.d.ts +0 -137
- package/v3/@claude-flow/shared/dist/types/agent.types.js +0 -6
- package/v3/@claude-flow/shared/dist/types/index.d.ts +0 -11
- package/v3/@claude-flow/shared/dist/types/index.js +0 -17
- package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts +0 -266
- package/v3/@claude-flow/shared/dist/types/mcp.types.js +0 -7
- package/v3/@claude-flow/shared/dist/types/memory.types.d.ts +0 -236
- package/v3/@claude-flow/shared/dist/types/memory.types.js +0 -7
- package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts +0 -186
- package/v3/@claude-flow/shared/dist/types/swarm.types.js +0 -65
- package/v3/@claude-flow/shared/dist/types/task.types.d.ts +0 -178
- package/v3/@claude-flow/shared/dist/types/task.types.js +0 -32
- package/v3/@claude-flow/shared/dist/types.d.ts +0 -197
- package/v3/@claude-flow/shared/dist/types.js +0 -21
- package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts +0 -69
- package/v3/@claude-flow/shared/dist/utils/secure-logger.js +0 -208
|
@@ -1,436 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 MCP Types and Interfaces
|
|
3
|
-
*
|
|
4
|
-
* Optimized type definitions for the V3 MCP server with:
|
|
5
|
-
* - Strict typing for performance
|
|
6
|
-
* - Connection pooling types
|
|
7
|
-
* - Transport layer abstractions
|
|
8
|
-
* - Tool registry interfaces
|
|
9
|
-
*
|
|
10
|
-
* Performance Targets:
|
|
11
|
-
* - Server startup: <400ms
|
|
12
|
-
* - Tool registration: <10ms
|
|
13
|
-
* - Tool execution: <50ms overhead
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* JSON-RPC 2.0 Protocol Version
|
|
17
|
-
*/
|
|
18
|
-
export type JsonRpcVersion = '2.0';
|
|
19
|
-
/**
|
|
20
|
-
* MCP Protocol Version. Per the [MCP spec](https://spec.modelcontextprotocol.io/specification/basic/lifecycle/#initialization)
|
|
21
|
-
* this must be a `YYYY-MM-DD` date string (e.g. `'2024-11-05'`, `'2025-06-18'`).
|
|
22
|
-
* Claude Code's Zod validator rejects any other shape (#1874).
|
|
23
|
-
*/
|
|
24
|
-
export type MCPProtocolVersion = string;
|
|
25
|
-
/**
|
|
26
|
-
* MCP Request ID (can be string, number, or null)
|
|
27
|
-
*/
|
|
28
|
-
export type RequestId = string | number | null;
|
|
29
|
-
/**
|
|
30
|
-
* Base MCP Message
|
|
31
|
-
*/
|
|
32
|
-
export interface MCPMessage {
|
|
33
|
-
jsonrpc: JsonRpcVersion;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* MCP Request
|
|
37
|
-
*/
|
|
38
|
-
export interface MCPRequest extends MCPMessage {
|
|
39
|
-
id: RequestId;
|
|
40
|
-
method: string;
|
|
41
|
-
params?: Record<string, unknown>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* MCP Notification (request without id)
|
|
45
|
-
*/
|
|
46
|
-
export interface MCPNotification extends MCPMessage {
|
|
47
|
-
method: string;
|
|
48
|
-
params?: Record<string, unknown>;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* MCP Error
|
|
52
|
-
*/
|
|
53
|
-
export interface MCPError {
|
|
54
|
-
code: number;
|
|
55
|
-
message: string;
|
|
56
|
-
data?: unknown;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* MCP Response
|
|
60
|
-
*/
|
|
61
|
-
export interface MCPResponse extends MCPMessage {
|
|
62
|
-
id: RequestId;
|
|
63
|
-
result?: unknown;
|
|
64
|
-
error?: MCPError;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Transport type options
|
|
68
|
-
*/
|
|
69
|
-
export type TransportType = 'stdio' | 'http' | 'websocket' | 'in-process';
|
|
70
|
-
/**
|
|
71
|
-
* Authentication method
|
|
72
|
-
*/
|
|
73
|
-
export type AuthMethod = 'token' | 'oauth' | 'api-key' | 'none';
|
|
74
|
-
/**
|
|
75
|
-
* Authentication configuration
|
|
76
|
-
*/
|
|
77
|
-
export interface AuthConfig {
|
|
78
|
-
enabled: boolean;
|
|
79
|
-
method: AuthMethod;
|
|
80
|
-
tokens?: string[];
|
|
81
|
-
apiKeys?: string[];
|
|
82
|
-
jwtSecret?: string;
|
|
83
|
-
oauth?: {
|
|
84
|
-
clientId: string;
|
|
85
|
-
clientSecret: string;
|
|
86
|
-
authorizationUrl: string;
|
|
87
|
-
tokenUrl: string;
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Load balancer configuration
|
|
92
|
-
*/
|
|
93
|
-
export interface LoadBalancerConfig {
|
|
94
|
-
enabled: boolean;
|
|
95
|
-
maxConcurrentRequests: number;
|
|
96
|
-
rateLimit?: {
|
|
97
|
-
requestsPerSecond: number;
|
|
98
|
-
burstSize: number;
|
|
99
|
-
};
|
|
100
|
-
circuitBreaker?: {
|
|
101
|
-
failureThreshold: number;
|
|
102
|
-
resetTimeout: number;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Connection pool configuration
|
|
107
|
-
*/
|
|
108
|
-
export interface ConnectionPoolConfig {
|
|
109
|
-
maxConnections: number;
|
|
110
|
-
minConnections: number;
|
|
111
|
-
idleTimeout: number;
|
|
112
|
-
acquireTimeout: number;
|
|
113
|
-
maxWaitingClients: number;
|
|
114
|
-
evictionRunInterval: number;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* MCP Server configuration
|
|
118
|
-
*/
|
|
119
|
-
export interface MCPServerConfig {
|
|
120
|
-
name: string;
|
|
121
|
-
version: string;
|
|
122
|
-
transport: TransportType;
|
|
123
|
-
host?: string;
|
|
124
|
-
port?: number;
|
|
125
|
-
tlsEnabled?: boolean;
|
|
126
|
-
tlsCert?: string;
|
|
127
|
-
tlsKey?: string;
|
|
128
|
-
auth?: AuthConfig;
|
|
129
|
-
loadBalancer?: LoadBalancerConfig;
|
|
130
|
-
connectionPool?: ConnectionPoolConfig;
|
|
131
|
-
corsEnabled?: boolean;
|
|
132
|
-
corsOrigins?: string[];
|
|
133
|
-
maxRequestSize?: number;
|
|
134
|
-
requestTimeout?: number;
|
|
135
|
-
enableMetrics?: boolean;
|
|
136
|
-
enableCaching?: boolean;
|
|
137
|
-
cacheTTL?: number;
|
|
138
|
-
logLevel?: 'debug' | 'info' | 'warn' | 'error';
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* MCP Session state
|
|
142
|
-
*/
|
|
143
|
-
export type SessionState = 'created' | 'initializing' | 'ready' | 'closing' | 'closed' | 'error';
|
|
144
|
-
/**
|
|
145
|
-
* MCP Session
|
|
146
|
-
*/
|
|
147
|
-
export interface MCPSession {
|
|
148
|
-
id: string;
|
|
149
|
-
state: SessionState;
|
|
150
|
-
transport: TransportType;
|
|
151
|
-
createdAt: Date;
|
|
152
|
-
lastActivityAt: Date;
|
|
153
|
-
isInitialized: boolean;
|
|
154
|
-
isAuthenticated: boolean;
|
|
155
|
-
clientInfo?: MCPClientInfo;
|
|
156
|
-
protocolVersion?: MCPProtocolVersion;
|
|
157
|
-
capabilities?: MCPCapabilities;
|
|
158
|
-
metadata?: Record<string, unknown>;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Client information from initialization
|
|
162
|
-
*/
|
|
163
|
-
export interface MCPClientInfo {
|
|
164
|
-
name: string;
|
|
165
|
-
version: string;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* MCP Capabilities
|
|
169
|
-
*/
|
|
170
|
-
export interface MCPCapabilities {
|
|
171
|
-
logging?: {
|
|
172
|
-
level: 'debug' | 'info' | 'warn' | 'error';
|
|
173
|
-
};
|
|
174
|
-
tools?: {
|
|
175
|
-
listChanged: boolean;
|
|
176
|
-
};
|
|
177
|
-
resources?: {
|
|
178
|
-
listChanged: boolean;
|
|
179
|
-
subscribe: boolean;
|
|
180
|
-
};
|
|
181
|
-
prompts?: {
|
|
182
|
-
listChanged: boolean;
|
|
183
|
-
};
|
|
184
|
-
experimental?: Record<string, unknown>;
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Initialize request parameters
|
|
188
|
-
*/
|
|
189
|
-
export interface MCPInitializeParams {
|
|
190
|
-
protocolVersion: MCPProtocolVersion;
|
|
191
|
-
capabilities: MCPCapabilities;
|
|
192
|
-
clientInfo: MCPClientInfo;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Initialize response result
|
|
196
|
-
*/
|
|
197
|
-
export interface MCPInitializeResult {
|
|
198
|
-
protocolVersion: MCPProtocolVersion;
|
|
199
|
-
capabilities: MCPCapabilities;
|
|
200
|
-
serverInfo: {
|
|
201
|
-
name: string;
|
|
202
|
-
version: string;
|
|
203
|
-
};
|
|
204
|
-
instructions?: string;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* JSON Schema type for tool input
|
|
208
|
-
*/
|
|
209
|
-
export interface JSONSchema {
|
|
210
|
-
type: string;
|
|
211
|
-
properties?: Record<string, JSONSchema>;
|
|
212
|
-
required?: string[];
|
|
213
|
-
items?: JSONSchema;
|
|
214
|
-
enum?: string[];
|
|
215
|
-
description?: string;
|
|
216
|
-
default?: unknown;
|
|
217
|
-
minimum?: number;
|
|
218
|
-
maximum?: number;
|
|
219
|
-
minLength?: number;
|
|
220
|
-
maxLength?: number;
|
|
221
|
-
pattern?: string;
|
|
222
|
-
additionalProperties?: boolean | JSONSchema;
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Tool execution context
|
|
226
|
-
*/
|
|
227
|
-
export interface ToolContext {
|
|
228
|
-
sessionId: string;
|
|
229
|
-
requestId?: RequestId;
|
|
230
|
-
orchestrator?: unknown;
|
|
231
|
-
swarmCoordinator?: unknown;
|
|
232
|
-
agentManager?: unknown;
|
|
233
|
-
resourceManager?: unknown;
|
|
234
|
-
messageBus?: unknown;
|
|
235
|
-
monitor?: unknown;
|
|
236
|
-
metadata?: Record<string, unknown>;
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Tool handler function type
|
|
240
|
-
*/
|
|
241
|
-
export type ToolHandler<TInput = unknown, TOutput = unknown> = (input: TInput, context?: ToolContext) => Promise<TOutput>;
|
|
242
|
-
/**
|
|
243
|
-
* MCP Tool definition
|
|
244
|
-
*/
|
|
245
|
-
export interface MCPTool<TInput = unknown, TOutput = unknown> {
|
|
246
|
-
name: string;
|
|
247
|
-
description: string;
|
|
248
|
-
inputSchema: JSONSchema;
|
|
249
|
-
handler: ToolHandler<TInput, TOutput>;
|
|
250
|
-
category?: string;
|
|
251
|
-
tags?: string[];
|
|
252
|
-
version?: string;
|
|
253
|
-
deprecated?: boolean;
|
|
254
|
-
cacheable?: boolean;
|
|
255
|
-
cacheTTL?: number;
|
|
256
|
-
timeout?: number;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Tool call result
|
|
260
|
-
*/
|
|
261
|
-
export interface ToolCallResult {
|
|
262
|
-
content: Array<{
|
|
263
|
-
type: 'text' | 'image' | 'resource';
|
|
264
|
-
text?: string;
|
|
265
|
-
data?: string;
|
|
266
|
-
mimeType?: string;
|
|
267
|
-
}>;
|
|
268
|
-
isError: boolean;
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Tool registration options
|
|
272
|
-
*/
|
|
273
|
-
export interface ToolRegistrationOptions {
|
|
274
|
-
override?: boolean;
|
|
275
|
-
validate?: boolean;
|
|
276
|
-
preload?: boolean;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* Request handler function type
|
|
280
|
-
*/
|
|
281
|
-
export type RequestHandler = (request: MCPRequest) => Promise<MCPResponse>;
|
|
282
|
-
/**
|
|
283
|
-
* Notification handler function type
|
|
284
|
-
*/
|
|
285
|
-
export type NotificationHandler = (notification: MCPNotification) => Promise<void>;
|
|
286
|
-
/**
|
|
287
|
-
* Transport health status
|
|
288
|
-
*/
|
|
289
|
-
export interface TransportHealthStatus {
|
|
290
|
-
healthy: boolean;
|
|
291
|
-
error?: string;
|
|
292
|
-
metrics?: Record<string, number>;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Transport interface
|
|
296
|
-
*/
|
|
297
|
-
export interface ITransport {
|
|
298
|
-
readonly type: TransportType;
|
|
299
|
-
start(): Promise<void>;
|
|
300
|
-
stop(): Promise<void>;
|
|
301
|
-
onRequest(handler: RequestHandler): void;
|
|
302
|
-
onNotification(handler: NotificationHandler): void;
|
|
303
|
-
sendNotification?(notification: MCPNotification): Promise<void>;
|
|
304
|
-
getHealthStatus(): Promise<TransportHealthStatus>;
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Connection state
|
|
308
|
-
*/
|
|
309
|
-
export type ConnectionState = 'idle' | 'busy' | 'closing' | 'closed' | 'error';
|
|
310
|
-
/**
|
|
311
|
-
* Pooled connection
|
|
312
|
-
*/
|
|
313
|
-
export interface PooledConnection {
|
|
314
|
-
id: string;
|
|
315
|
-
state: ConnectionState;
|
|
316
|
-
createdAt: Date;
|
|
317
|
-
lastUsedAt: Date;
|
|
318
|
-
useCount: number;
|
|
319
|
-
transport: TransportType;
|
|
320
|
-
metadata?: Record<string, unknown>;
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* Connection pool statistics
|
|
324
|
-
*/
|
|
325
|
-
export interface ConnectionPoolStats {
|
|
326
|
-
totalConnections: number;
|
|
327
|
-
idleConnections: number;
|
|
328
|
-
busyConnections: number;
|
|
329
|
-
pendingRequests: number;
|
|
330
|
-
totalAcquired: number;
|
|
331
|
-
totalReleased: number;
|
|
332
|
-
totalCreated: number;
|
|
333
|
-
totalDestroyed: number;
|
|
334
|
-
avgAcquireTime: number;
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* Connection pool interface
|
|
338
|
-
*/
|
|
339
|
-
export interface IConnectionPool {
|
|
340
|
-
acquire(): Promise<PooledConnection>;
|
|
341
|
-
release(connection: PooledConnection): void;
|
|
342
|
-
destroy(connection: PooledConnection): void;
|
|
343
|
-
getStats(): ConnectionPoolStats;
|
|
344
|
-
drain(): Promise<void>;
|
|
345
|
-
clear(): Promise<void>;
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* Tool call metrics
|
|
349
|
-
*/
|
|
350
|
-
export interface ToolCallMetrics {
|
|
351
|
-
toolName: string;
|
|
352
|
-
duration: number;
|
|
353
|
-
success: boolean;
|
|
354
|
-
timestamp: number;
|
|
355
|
-
transport: TransportType;
|
|
356
|
-
cached?: boolean;
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* MCP Server metrics
|
|
360
|
-
*/
|
|
361
|
-
export interface MCPServerMetrics {
|
|
362
|
-
totalRequests: number;
|
|
363
|
-
successfulRequests: number;
|
|
364
|
-
failedRequests: number;
|
|
365
|
-
averageResponseTime: number;
|
|
366
|
-
activeSessions: number;
|
|
367
|
-
toolInvocations: Record<string, number>;
|
|
368
|
-
errors: Record<string, number>;
|
|
369
|
-
lastReset: Date;
|
|
370
|
-
startupTime?: number;
|
|
371
|
-
uptime?: number;
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Session metrics
|
|
375
|
-
*/
|
|
376
|
-
export interface SessionMetrics {
|
|
377
|
-
total: number;
|
|
378
|
-
active: number;
|
|
379
|
-
authenticated: number;
|
|
380
|
-
expired: number;
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* MCP Event types
|
|
384
|
-
*/
|
|
385
|
-
export type MCPEventType = 'server:started' | 'server:stopped' | 'server:error' | 'session:created' | 'session:initialized' | 'session:closed' | 'session:error' | 'tool:registered' | 'tool:unregistered' | 'tool:called' | 'tool:completed' | 'tool:error' | 'transport:connected' | 'transport:disconnected' | 'transport:error' | 'pool:connection:acquired' | 'pool:connection:released' | 'pool:connection:created' | 'pool:connection:destroyed';
|
|
386
|
-
/**
|
|
387
|
-
* MCP Event
|
|
388
|
-
*/
|
|
389
|
-
export interface MCPEvent {
|
|
390
|
-
type: MCPEventType;
|
|
391
|
-
timestamp: Date;
|
|
392
|
-
data?: unknown;
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* Event handler function type
|
|
396
|
-
*/
|
|
397
|
-
export type EventHandler = (event: MCPEvent) => void;
|
|
398
|
-
/**
|
|
399
|
-
* Log level
|
|
400
|
-
*/
|
|
401
|
-
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
402
|
-
/**
|
|
403
|
-
* Logger interface
|
|
404
|
-
*/
|
|
405
|
-
export interface ILogger {
|
|
406
|
-
debug(message: string, data?: unknown): void;
|
|
407
|
-
info(message: string, data?: unknown): void;
|
|
408
|
-
warn(message: string, data?: unknown): void;
|
|
409
|
-
error(message: string, data?: unknown): void;
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* Standard JSON-RPC error codes
|
|
413
|
-
*/
|
|
414
|
-
export declare const ErrorCodes: {
|
|
415
|
-
readonly PARSE_ERROR: -32700;
|
|
416
|
-
readonly INVALID_REQUEST: -32600;
|
|
417
|
-
readonly METHOD_NOT_FOUND: -32601;
|
|
418
|
-
readonly INVALID_PARAMS: -32602;
|
|
419
|
-
readonly INTERNAL_ERROR: -32603;
|
|
420
|
-
readonly SERVER_NOT_INITIALIZED: -32002;
|
|
421
|
-
readonly UNKNOWN_ERROR: -32001;
|
|
422
|
-
readonly REQUEST_CANCELLED: -32800;
|
|
423
|
-
readonly RATE_LIMITED: -32000;
|
|
424
|
-
readonly AUTHENTICATION_REQUIRED: -32001;
|
|
425
|
-
readonly AUTHORIZATION_FAILED: -32002;
|
|
426
|
-
};
|
|
427
|
-
/**
|
|
428
|
-
* MCP Error class
|
|
429
|
-
*/
|
|
430
|
-
export declare class MCPServerError extends Error {
|
|
431
|
-
code: number;
|
|
432
|
-
data?: unknown | undefined;
|
|
433
|
-
constructor(message: string, code?: number, data?: unknown | undefined);
|
|
434
|
-
toMCPError(): MCPError;
|
|
435
|
-
}
|
|
436
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 MCP Types and Interfaces
|
|
3
|
-
*
|
|
4
|
-
* Optimized type definitions for the V3 MCP server with:
|
|
5
|
-
* - Strict typing for performance
|
|
6
|
-
* - Connection pooling types
|
|
7
|
-
* - Transport layer abstractions
|
|
8
|
-
* - Tool registry interfaces
|
|
9
|
-
*
|
|
10
|
-
* Performance Targets:
|
|
11
|
-
* - Server startup: <400ms
|
|
12
|
-
* - Tool registration: <10ms
|
|
13
|
-
* - Tool execution: <50ms overhead
|
|
14
|
-
*/
|
|
15
|
-
// ============================================================================
|
|
16
|
-
// Error Codes
|
|
17
|
-
// ============================================================================
|
|
18
|
-
/**
|
|
19
|
-
* Standard JSON-RPC error codes
|
|
20
|
-
*/
|
|
21
|
-
export const ErrorCodes = {
|
|
22
|
-
PARSE_ERROR: -32700,
|
|
23
|
-
INVALID_REQUEST: -32600,
|
|
24
|
-
METHOD_NOT_FOUND: -32601,
|
|
25
|
-
INVALID_PARAMS: -32602,
|
|
26
|
-
INTERNAL_ERROR: -32603,
|
|
27
|
-
SERVER_NOT_INITIALIZED: -32002,
|
|
28
|
-
UNKNOWN_ERROR: -32001,
|
|
29
|
-
REQUEST_CANCELLED: -32800,
|
|
30
|
-
RATE_LIMITED: -32000,
|
|
31
|
-
AUTHENTICATION_REQUIRED: -32001,
|
|
32
|
-
AUTHORIZATION_FAILED: -32002,
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* MCP Error class
|
|
36
|
-
*/
|
|
37
|
-
export class MCPServerError extends Error {
|
|
38
|
-
code;
|
|
39
|
-
data;
|
|
40
|
-
constructor(message, code = ErrorCodes.INTERNAL_ERROR, data) {
|
|
41
|
-
super(message);
|
|
42
|
-
this.code = code;
|
|
43
|
-
this.data = data;
|
|
44
|
-
this.name = 'MCPServerError';
|
|
45
|
-
}
|
|
46
|
-
toMCPError() {
|
|
47
|
-
return {
|
|
48
|
-
code: this.code,
|
|
49
|
-
message: this.message,
|
|
50
|
-
data: this.data,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=types.js.map
|