agentic-qe 2.7.4 → 2.8.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/CHANGELOG.md +104 -0
- package/README.md +67 -2
- package/dist/cli/commands/agent/spawn.d.ts +12 -1
- package/dist/cli/commands/agent/spawn.d.ts.map +1 -1
- package/dist/cli/commands/agent/spawn.js +95 -8
- package/dist/cli/commands/agent/spawn.js.map +1 -1
- package/dist/cli/index.js +91 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/core/memory/HNSWVectorMemory.js +1 -1
- package/dist/edge/adapters/BrowserHNSWAdapter.d.ts +134 -0
- package/dist/edge/adapters/BrowserHNSWAdapter.d.ts.map +1 -0
- package/dist/edge/adapters/BrowserHNSWAdapter.js +484 -0
- package/dist/edge/adapters/BrowserHNSWAdapter.js.map +1 -0
- package/dist/edge/adapters/IndexedDBStorage.d.ts +114 -0
- package/dist/edge/adapters/IndexedDBStorage.d.ts.map +1 -0
- package/dist/edge/adapters/IndexedDBStorage.js +478 -0
- package/dist/edge/adapters/IndexedDBStorage.js.map +1 -0
- package/dist/edge/adapters/index.d.ts +12 -0
- package/dist/edge/adapters/index.d.ts.map +1 -0
- package/dist/edge/adapters/index.js +22 -0
- package/dist/edge/adapters/index.js.map +1 -0
- package/dist/edge/browser/BrowserAgent.d.ts +241 -0
- package/dist/edge/browser/BrowserAgent.d.ts.map +1 -0
- package/dist/edge/browser/BrowserAgent.js +743 -0
- package/dist/edge/browser/BrowserAgent.js.map +1 -0
- package/dist/edge/index.d.ts +34 -0
- package/dist/edge/index.d.ts.map +1 -0
- package/dist/edge/index.js +114 -0
- package/dist/edge/index.js.map +1 -0
- package/dist/edge/p2p/coordination/CoordinationManager.d.ts +181 -0
- package/dist/edge/p2p/coordination/CoordinationManager.d.ts.map +1 -0
- package/dist/edge/p2p/coordination/CoordinationManager.js +851 -0
- package/dist/edge/p2p/coordination/CoordinationManager.js.map +1 -0
- package/dist/edge/p2p/coordination/HealthMonitor.d.ts +143 -0
- package/dist/edge/p2p/coordination/HealthMonitor.d.ts.map +1 -0
- package/dist/edge/p2p/coordination/HealthMonitor.js +432 -0
- package/dist/edge/p2p/coordination/HealthMonitor.js.map +1 -0
- package/dist/edge/p2p/coordination/SyncOrchestrator.d.ts +146 -0
- package/dist/edge/p2p/coordination/SyncOrchestrator.d.ts.map +1 -0
- package/dist/edge/p2p/coordination/SyncOrchestrator.js +783 -0
- package/dist/edge/p2p/coordination/SyncOrchestrator.js.map +1 -0
- package/dist/edge/p2p/coordination/index.d.ts +70 -0
- package/dist/edge/p2p/coordination/index.d.ts.map +1 -0
- package/dist/edge/p2p/coordination/index.js +107 -0
- package/dist/edge/p2p/coordination/index.js.map +1 -0
- package/dist/edge/p2p/coordination/types.d.ts +572 -0
- package/dist/edge/p2p/coordination/types.d.ts.map +1 -0
- package/dist/edge/p2p/coordination/types.js +366 -0
- package/dist/edge/p2p/coordination/types.js.map +1 -0
- package/dist/edge/p2p/crdt/CRDTStore.d.ts +324 -0
- package/dist/edge/p2p/crdt/CRDTStore.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/CRDTStore.js +839 -0
- package/dist/edge/p2p/crdt/CRDTStore.js.map +1 -0
- package/dist/edge/p2p/crdt/GCounter.d.ts +173 -0
- package/dist/edge/p2p/crdt/GCounter.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/GCounter.js +394 -0
- package/dist/edge/p2p/crdt/GCounter.js.map +1 -0
- package/dist/edge/p2p/crdt/LWWRegister.d.ts +200 -0
- package/dist/edge/p2p/crdt/LWWRegister.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/LWWRegister.js +456 -0
- package/dist/edge/p2p/crdt/LWWRegister.js.map +1 -0
- package/dist/edge/p2p/crdt/ORSet.d.ts +232 -0
- package/dist/edge/p2p/crdt/ORSet.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/ORSet.js +723 -0
- package/dist/edge/p2p/crdt/ORSet.js.map +1 -0
- package/dist/edge/p2p/crdt/PatternCRDT.d.ts +366 -0
- package/dist/edge/p2p/crdt/PatternCRDT.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/PatternCRDT.js +838 -0
- package/dist/edge/p2p/crdt/PatternCRDT.js.map +1 -0
- package/dist/edge/p2p/crdt/VectorClock.d.ts +274 -0
- package/dist/edge/p2p/crdt/VectorClock.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/VectorClock.js +499 -0
- package/dist/edge/p2p/crdt/VectorClock.js.map +1 -0
- package/dist/edge/p2p/crdt/index.d.ts +87 -0
- package/dist/edge/p2p/crdt/index.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/index.js +120 -0
- package/dist/edge/p2p/crdt/index.js.map +1 -0
- package/dist/edge/p2p/crdt/types.d.ts +667 -0
- package/dist/edge/p2p/crdt/types.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/types.js +208 -0
- package/dist/edge/p2p/crdt/types.js.map +1 -0
- package/dist/edge/p2p/crypto/Identity.d.ts +139 -0
- package/dist/edge/p2p/crypto/Identity.d.ts.map +1 -0
- package/dist/edge/p2p/crypto/Identity.js +449 -0
- package/dist/edge/p2p/crypto/Identity.js.map +1 -0
- package/dist/edge/p2p/crypto/KeyManager.d.ts +196 -0
- package/dist/edge/p2p/crypto/KeyManager.d.ts.map +1 -0
- package/dist/edge/p2p/crypto/KeyManager.js +576 -0
- package/dist/edge/p2p/crypto/KeyManager.js.map +1 -0
- package/dist/edge/p2p/crypto/Signer.d.ts +164 -0
- package/dist/edge/p2p/crypto/Signer.d.ts.map +1 -0
- package/dist/edge/p2p/crypto/Signer.js +357 -0
- package/dist/edge/p2p/crypto/Signer.js.map +1 -0
- package/dist/edge/p2p/crypto/index.d.ts +90 -0
- package/dist/edge/p2p/crypto/index.d.ts.map +1 -0
- package/dist/edge/p2p/crypto/index.js +158 -0
- package/dist/edge/p2p/crypto/index.js.map +1 -0
- package/dist/edge/p2p/crypto/types.d.ts +217 -0
- package/dist/edge/p2p/crypto/types.d.ts.map +1 -0
- package/dist/edge/p2p/crypto/types.js +42 -0
- package/dist/edge/p2p/crypto/types.js.map +1 -0
- package/dist/edge/p2p/federated/FederatedCoordinator.d.ts +270 -0
- package/dist/edge/p2p/federated/FederatedCoordinator.d.ts.map +1 -0
- package/dist/edge/p2p/federated/FederatedCoordinator.js +824 -0
- package/dist/edge/p2p/federated/FederatedCoordinator.js.map +1 -0
- package/dist/edge/p2p/federated/FederatedRound.d.ts +295 -0
- package/dist/edge/p2p/federated/FederatedRound.d.ts.map +1 -0
- package/dist/edge/p2p/federated/FederatedRound.js +819 -0
- package/dist/edge/p2p/federated/FederatedRound.js.map +1 -0
- package/dist/edge/p2p/federated/GradientAggregator.d.ts +226 -0
- package/dist/edge/p2p/federated/GradientAggregator.d.ts.map +1 -0
- package/dist/edge/p2p/federated/GradientAggregator.js +826 -0
- package/dist/edge/p2p/federated/GradientAggregator.js.map +1 -0
- package/dist/edge/p2p/federated/ModelManager.d.ts +248 -0
- package/dist/edge/p2p/federated/ModelManager.d.ts.map +1 -0
- package/dist/edge/p2p/federated/ModelManager.js +724 -0
- package/dist/edge/p2p/federated/ModelManager.js.map +1 -0
- package/dist/edge/p2p/federated/index.d.ts +65 -0
- package/dist/edge/p2p/federated/index.d.ts.map +1 -0
- package/dist/edge/p2p/federated/index.js +110 -0
- package/dist/edge/p2p/federated/index.js.map +1 -0
- package/dist/edge/p2p/federated/types.d.ts +905 -0
- package/dist/edge/p2p/federated/types.d.ts.map +1 -0
- package/dist/edge/p2p/federated/types.js +339 -0
- package/dist/edge/p2p/federated/types.js.map +1 -0
- package/dist/edge/p2p/index.d.ts +156 -0
- package/dist/edge/p2p/index.d.ts.map +1 -0
- package/dist/edge/p2p/index.js +242 -0
- package/dist/edge/p2p/index.js.map +1 -0
- package/dist/edge/p2p/nat/ConnectivityTester.d.ts +128 -0
- package/dist/edge/p2p/nat/ConnectivityTester.d.ts.map +1 -0
- package/dist/edge/p2p/nat/ConnectivityTester.js +560 -0
- package/dist/edge/p2p/nat/ConnectivityTester.js.map +1 -0
- package/dist/edge/p2p/nat/HolePuncher.d.ts +159 -0
- package/dist/edge/p2p/nat/HolePuncher.d.ts.map +1 -0
- package/dist/edge/p2p/nat/HolePuncher.js +569 -0
- package/dist/edge/p2p/nat/HolePuncher.js.map +1 -0
- package/dist/edge/p2p/nat/NATDetector.d.ts +109 -0
- package/dist/edge/p2p/nat/NATDetector.d.ts.map +1 -0
- package/dist/edge/p2p/nat/NATDetector.js +472 -0
- package/dist/edge/p2p/nat/NATDetector.js.map +1 -0
- package/dist/edge/p2p/nat/TURNManager.d.ts +158 -0
- package/dist/edge/p2p/nat/TURNManager.d.ts.map +1 -0
- package/dist/edge/p2p/nat/TURNManager.js +547 -0
- package/dist/edge/p2p/nat/TURNManager.js.map +1 -0
- package/dist/edge/p2p/nat/index.d.ts +74 -0
- package/dist/edge/p2p/nat/index.d.ts.map +1 -0
- package/dist/edge/p2p/nat/index.js +104 -0
- package/dist/edge/p2p/nat/index.js.map +1 -0
- package/dist/edge/p2p/nat/types.d.ts +583 -0
- package/dist/edge/p2p/nat/types.d.ts.map +1 -0
- package/dist/edge/p2p/nat/types.js +267 -0
- package/dist/edge/p2p/nat/types.js.map +1 -0
- package/dist/edge/p2p/protocol/AgentChannel.d.ts +333 -0
- package/dist/edge/p2p/protocol/AgentChannel.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/AgentChannel.js +914 -0
- package/dist/edge/p2p/protocol/AgentChannel.js.map +1 -0
- package/dist/edge/p2p/protocol/MessageEncoder.d.ts +147 -0
- package/dist/edge/p2p/protocol/MessageEncoder.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/MessageEncoder.js +738 -0
- package/dist/edge/p2p/protocol/MessageEncoder.js.map +1 -0
- package/dist/edge/p2p/protocol/MessageRouter.d.ts +266 -0
- package/dist/edge/p2p/protocol/MessageRouter.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/MessageRouter.js +808 -0
- package/dist/edge/p2p/protocol/MessageRouter.js.map +1 -0
- package/dist/edge/p2p/protocol/ProtocolHandler.d.ts +309 -0
- package/dist/edge/p2p/protocol/ProtocolHandler.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/ProtocolHandler.js +930 -0
- package/dist/edge/p2p/protocol/ProtocolHandler.js.map +1 -0
- package/dist/edge/p2p/protocol/index.d.ts +114 -0
- package/dist/edge/p2p/protocol/index.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/index.js +206 -0
- package/dist/edge/p2p/protocol/index.js.map +1 -0
- package/dist/edge/p2p/protocol/types.d.ts +737 -0
- package/dist/edge/p2p/protocol/types.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/types.js +490 -0
- package/dist/edge/p2p/protocol/types.js.map +1 -0
- package/dist/edge/p2p/sharing/PatternBroadcaster.d.ts +284 -0
- package/dist/edge/p2p/sharing/PatternBroadcaster.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/PatternBroadcaster.js +644 -0
- package/dist/edge/p2p/sharing/PatternBroadcaster.js.map +1 -0
- package/dist/edge/p2p/sharing/PatternIndex.d.ts +168 -0
- package/dist/edge/p2p/sharing/PatternIndex.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/PatternIndex.js +781 -0
- package/dist/edge/p2p/sharing/PatternIndex.js.map +1 -0
- package/dist/edge/p2p/sharing/PatternSerializer.d.ts +163 -0
- package/dist/edge/p2p/sharing/PatternSerializer.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/PatternSerializer.js +696 -0
- package/dist/edge/p2p/sharing/PatternSerializer.js.map +1 -0
- package/dist/edge/p2p/sharing/PatternSyncManager.d.ts +242 -0
- package/dist/edge/p2p/sharing/PatternSyncManager.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/PatternSyncManager.js +859 -0
- package/dist/edge/p2p/sharing/PatternSyncManager.js.map +1 -0
- package/dist/edge/p2p/sharing/index.d.ts +90 -0
- package/dist/edge/p2p/sharing/index.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/index.js +152 -0
- package/dist/edge/p2p/sharing/index.js.map +1 -0
- package/dist/edge/p2p/sharing/types.d.ts +796 -0
- package/dist/edge/p2p/sharing/types.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/types.js +264 -0
- package/dist/edge/p2p/sharing/types.js.map +1 -0
- package/dist/edge/p2p/webrtc/ConnectionPool.d.ts +218 -0
- package/dist/edge/p2p/webrtc/ConnectionPool.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/ConnectionPool.js +562 -0
- package/dist/edge/p2p/webrtc/ConnectionPool.js.map +1 -0
- package/dist/edge/p2p/webrtc/ICEManager.d.ts +171 -0
- package/dist/edge/p2p/webrtc/ICEManager.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/ICEManager.js +490 -0
- package/dist/edge/p2p/webrtc/ICEManager.js.map +1 -0
- package/dist/edge/p2p/webrtc/PeerConnectionManager.d.ts +159 -0
- package/dist/edge/p2p/webrtc/PeerConnectionManager.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/PeerConnectionManager.js +735 -0
- package/dist/edge/p2p/webrtc/PeerConnectionManager.js.map +1 -0
- package/dist/edge/p2p/webrtc/SignalingClient.d.ts +191 -0
- package/dist/edge/p2p/webrtc/SignalingClient.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/SignalingClient.js +608 -0
- package/dist/edge/p2p/webrtc/SignalingClient.js.map +1 -0
- package/dist/edge/p2p/webrtc/index.d.ts +158 -0
- package/dist/edge/p2p/webrtc/index.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/index.js +164 -0
- package/dist/edge/p2p/webrtc/index.js.map +1 -0
- package/dist/edge/p2p/webrtc/types.d.ts +665 -0
- package/dist/edge/p2p/webrtc/types.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/types.js +245 -0
- package/dist/edge/p2p/webrtc/types.js.map +1 -0
- package/dist/edge/server/AgentSpawnAPI.d.ts +98 -0
- package/dist/edge/server/AgentSpawnAPI.d.ts.map +1 -0
- package/dist/edge/server/AgentSpawnAPI.js +264 -0
- package/dist/edge/server/AgentSpawnAPI.js.map +1 -0
- package/dist/edge/server/SignalingServer.d.ts +71 -0
- package/dist/edge/server/SignalingServer.d.ts.map +1 -0
- package/dist/edge/server/SignalingServer.js +429 -0
- package/dist/edge/server/SignalingServer.js.map +1 -0
- package/dist/edge/server/index.d.ts +64 -0
- package/dist/edge/server/index.d.ts.map +1 -0
- package/dist/edge/server/index.js +318 -0
- package/dist/edge/server/index.js.map +1 -0
- package/dist/edge/types/browser-agent.types.d.ts +455 -0
- package/dist/edge/types/browser-agent.types.d.ts.map +1 -0
- package/dist/edge/types/browser-agent.types.js +116 -0
- package/dist/edge/types/browser-agent.types.js.map +1 -0
- package/dist/edge/types/index.d.ts +11 -0
- package/dist/edge/types/index.d.ts.map +1 -0
- package/dist/edge/types/index.js +17 -0
- package/dist/edge/types/index.js.map +1 -0
- package/dist/edge/types/storage.types.d.ts +207 -0
- package/dist/edge/types/storage.types.d.ts.map +1 -0
- package/dist/edge/types/storage.types.js +47 -0
- package/dist/edge/types/storage.types.js.map +1 -0
- package/dist/edge/wasm/shims.d.ts +224 -0
- package/dist/edge/wasm/shims.d.ts.map +1 -0
- package/dist/edge/wasm/shims.js +667 -0
- package/dist/edge/wasm/shims.js.map +1 -0
- package/dist/mcp/handlers/NewDomainToolsHandler.d.ts +33 -0
- package/dist/mcp/handlers/NewDomainToolsHandler.d.ts.map +1 -0
- package/dist/mcp/handlers/NewDomainToolsHandler.js +305 -0
- package/dist/mcp/handlers/NewDomainToolsHandler.js.map +1 -0
- package/dist/mcp/handlers/filtered/index.d.ts +15 -19
- package/dist/mcp/handlers/filtered/index.d.ts.map +1 -1
- package/dist/mcp/handlers/filtered/index.js +16 -27
- package/dist/mcp/handlers/filtered/index.js.map +1 -1
- package/dist/mcp/handlers/integration/index.d.ts +5 -4
- package/dist/mcp/handlers/integration/index.d.ts.map +1 -1
- package/dist/mcp/handlers/integration/index.js +7 -7
- package/dist/mcp/handlers/integration/index.js.map +1 -1
- package/dist/mcp/server-instructions.d.ts +1 -1
- package/dist/mcp/server-instructions.js +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +14 -0
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools.d.ts +8 -0
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +412 -1
- package/dist/mcp/tools.js.map +1 -1
- package/dist/planning/GOAPPlanner.d.ts +1 -0
- package/dist/planning/GOAPPlanner.d.ts.map +1 -1
- package/dist/planning/GOAPPlanner.js +12 -0
- package/dist/planning/GOAPPlanner.js.map +1 -1
- package/package.json +29 -8
- package/dist/alerting/AlertManager.d.ts +0 -120
- package/dist/alerting/AlertManager.d.ts.map +0 -1
- package/dist/alerting/AlertManager.js +0 -345
- package/dist/alerting/AlertManager.js.map +0 -1
- package/dist/alerting/FeedbackRouter.d.ts +0 -98
- package/dist/alerting/FeedbackRouter.d.ts.map +0 -1
- package/dist/alerting/FeedbackRouter.js +0 -331
- package/dist/alerting/FeedbackRouter.js.map +0 -1
- package/dist/alerting/StrategyApplicator.d.ts +0 -120
- package/dist/alerting/StrategyApplicator.d.ts.map +0 -1
- package/dist/alerting/StrategyApplicator.js +0 -299
- package/dist/alerting/StrategyApplicator.js.map +0 -1
- package/dist/alerting/index.d.ts +0 -68
- package/dist/alerting/index.d.ts.map +0 -1
- package/dist/alerting/index.js +0 -112
- package/dist/alerting/index.js.map +0 -1
- package/dist/alerting/types.d.ts +0 -118
- package/dist/alerting/types.d.ts.map +0 -1
- package/dist/alerting/types.js +0 -11
- package/dist/alerting/types.js.map +0 -1
- package/dist/cli/commands/fleet/backup.d.ts +0 -49
- package/dist/cli/commands/fleet/backup.d.ts.map +0 -1
- package/dist/cli/commands/fleet/backup.js +0 -88
- package/dist/cli/commands/fleet/backup.js.map +0 -1
- package/dist/cli/commands/fleet/health.d.ts +0 -154
- package/dist/cli/commands/fleet/health.d.ts.map +0 -1
- package/dist/cli/commands/fleet/health.js +0 -483
- package/dist/cli/commands/fleet/health.js.map +0 -1
- package/dist/cli/commands/fleet/init.d.ts +0 -11
- package/dist/cli/commands/fleet/init.d.ts.map +0 -1
- package/dist/cli/commands/fleet/init.js +0 -91
- package/dist/cli/commands/fleet/init.js.map +0 -1
- package/dist/cli/commands/fleet/logs.d.ts +0 -21
- package/dist/cli/commands/fleet/logs.d.ts.map +0 -1
- package/dist/cli/commands/fleet/logs.js +0 -267
- package/dist/cli/commands/fleet/logs.js.map +0 -1
- package/dist/cli/commands/fleet/metrics.d.ts +0 -27
- package/dist/cli/commands/fleet/metrics.d.ts.map +0 -1
- package/dist/cli/commands/fleet/metrics.js +0 -369
- package/dist/cli/commands/fleet/metrics.js.map +0 -1
- package/dist/cli/commands/fleet/monitor.d.ts +0 -18
- package/dist/cli/commands/fleet/monitor.d.ts.map +0 -1
- package/dist/cli/commands/fleet/monitor.js +0 -237
- package/dist/cli/commands/fleet/monitor.js.map +0 -1
- package/dist/cli/commands/fleet/optimize.d.ts +0 -42
- package/dist/cli/commands/fleet/optimize.d.ts.map +0 -1
- package/dist/cli/commands/fleet/optimize.js +0 -135
- package/dist/cli/commands/fleet/optimize.js.map +0 -1
- package/dist/cli/commands/fleet/recover.d.ts +0 -22
- package/dist/cli/commands/fleet/recover.d.ts.map +0 -1
- package/dist/cli/commands/fleet/recover.js +0 -99
- package/dist/cli/commands/fleet/recover.js.map +0 -1
- package/dist/cli/commands/fleet/restart.d.ts +0 -18
- package/dist/cli/commands/fleet/restart.d.ts.map +0 -1
- package/dist/cli/commands/fleet/restart.js +0 -290
- package/dist/cli/commands/fleet/restart.js.map +0 -1
- package/dist/cli/commands/fleet/scale.d.ts +0 -9
- package/dist/cli/commands/fleet/scale.d.ts.map +0 -1
- package/dist/cli/commands/fleet/scale.js +0 -77
- package/dist/cli/commands/fleet/scale.js.map +0 -1
- package/dist/cli/commands/fleet/shutdown.d.ts +0 -19
- package/dist/cli/commands/fleet/shutdown.d.ts.map +0 -1
- package/dist/cli/commands/fleet/shutdown.js +0 -307
- package/dist/cli/commands/fleet/shutdown.js.map +0 -1
- package/dist/cli/commands/fleet/status.d.ts +0 -10
- package/dist/cli/commands/fleet/status.d.ts.map +0 -1
- package/dist/cli/commands/fleet/status.js +0 -97
- package/dist/cli/commands/fleet/status.js.map +0 -1
- package/dist/cli/commands/fleet/topology.d.ts +0 -23
- package/dist/cli/commands/fleet/topology.d.ts.map +0 -1
- package/dist/cli/commands/fleet/topology.js +0 -376
- package/dist/cli/commands/fleet/topology.js.map +0 -1
- package/dist/cli/commands/monitor/alerts.d.ts +0 -45
- package/dist/cli/commands/monitor/alerts.d.ts.map +0 -1
- package/dist/cli/commands/monitor/alerts.js +0 -168
- package/dist/cli/commands/monitor/alerts.js.map +0 -1
- package/dist/cli/commands/monitor/analyze.d.ts +0 -49
- package/dist/cli/commands/monitor/analyze.d.ts.map +0 -1
- package/dist/cli/commands/monitor/analyze.js +0 -209
- package/dist/cli/commands/monitor/analyze.js.map +0 -1
- package/dist/cli/commands/monitor/compare.d.ts +0 -38
- package/dist/cli/commands/monitor/compare.d.ts.map +0 -1
- package/dist/cli/commands/monitor/compare.js +0 -177
- package/dist/cli/commands/monitor/compare.js.map +0 -1
- package/dist/cli/commands/monitor/dashboard.d.ts +0 -34
- package/dist/cli/commands/monitor/dashboard.d.ts.map +0 -1
- package/dist/cli/commands/monitor/dashboard.js +0 -157
- package/dist/cli/commands/monitor/dashboard.js.map +0 -1
- package/dist/cli/commands/monitor/export.d.ts +0 -36
- package/dist/cli/commands/monitor/export.d.ts.map +0 -1
- package/dist/cli/commands/monitor/export.js +0 -157
- package/dist/cli/commands/monitor/export.js.map +0 -1
- package/dist/cli/commands/monitor/index.d.ts +0 -11
- package/dist/cli/commands/monitor/index.d.ts.map +0 -1
- package/dist/cli/commands/monitor/index.js +0 -14
- package/dist/cli/commands/monitor/index.js.map +0 -1
- package/dist/cli/commands/quality/baseline.d.ts +0 -27
- package/dist/cli/commands/quality/baseline.d.ts.map +0 -1
- package/dist/cli/commands/quality/baseline.js +0 -124
- package/dist/cli/commands/quality/baseline.js.map +0 -1
- package/dist/cli/commands/quality/compare.d.ts +0 -36
- package/dist/cli/commands/quality/compare.d.ts.map +0 -1
- package/dist/cli/commands/quality/compare.js +0 -136
- package/dist/cli/commands/quality/compare.js.map +0 -1
- package/dist/cli/commands/quality/decision.d.ts +0 -81
- package/dist/cli/commands/quality/decision.d.ts.map +0 -1
- package/dist/cli/commands/quality/decision.js +0 -319
- package/dist/cli/commands/quality/decision.js.map +0 -1
- package/dist/cli/commands/quality/gate.d.ts +0 -47
- package/dist/cli/commands/quality/gate.d.ts.map +0 -1
- package/dist/cli/commands/quality/gate.js +0 -205
- package/dist/cli/commands/quality/gate.js.map +0 -1
- package/dist/cli/commands/quality/index.d.ts +0 -17
- package/dist/cli/commands/quality/index.d.ts.map +0 -1
- package/dist/cli/commands/quality/index.js +0 -41
- package/dist/cli/commands/quality/index.js.map +0 -1
- package/dist/cli/commands/quality/policy.d.ts +0 -57
- package/dist/cli/commands/quality/policy.d.ts.map +0 -1
- package/dist/cli/commands/quality/policy.js +0 -359
- package/dist/cli/commands/quality/policy.js.map +0 -1
- package/dist/cli/commands/quality/risk.d.ts +0 -41
- package/dist/cli/commands/quality/risk.d.ts.map +0 -1
- package/dist/cli/commands/quality/risk.js +0 -255
- package/dist/cli/commands/quality/risk.js.map +0 -1
- package/dist/cli/commands/quality/trends.d.ts +0 -40
- package/dist/cli/commands/quality/trends.d.ts.map +0 -1
- package/dist/cli/commands/quality/trends.js +0 -122
- package/dist/cli/commands/quality/trends.js.map +0 -1
- package/dist/cli/commands/quality/validate.d.ts +0 -44
- package/dist/cli/commands/quality/validate.d.ts.map +0 -1
- package/dist/cli/commands/quality/validate.js +0 -234
- package/dist/cli/commands/quality/validate.js.map +0 -1
- package/dist/cli/commands/test/analyze-failures.d.ts +0 -39
- package/dist/cli/commands/test/analyze-failures.d.ts.map +0 -1
- package/dist/cli/commands/test/analyze-failures.js +0 -113
- package/dist/cli/commands/test/analyze-failures.js.map +0 -1
- package/dist/cli/commands/test/clean.d.ts +0 -3
- package/dist/cli/commands/test/clean.d.ts.map +0 -1
- package/dist/cli/commands/test/clean.js +0 -148
- package/dist/cli/commands/test/clean.js.map +0 -1
- package/dist/cli/commands/test/debug.d.ts +0 -3
- package/dist/cli/commands/test/debug.d.ts.map +0 -1
- package/dist/cli/commands/test/debug.js +0 -167
- package/dist/cli/commands/test/debug.js.map +0 -1
- package/dist/cli/commands/test/diff.d.ts +0 -3
- package/dist/cli/commands/test/diff.d.ts.map +0 -1
- package/dist/cli/commands/test/diff.js +0 -195
- package/dist/cli/commands/test/diff.js.map +0 -1
- package/dist/cli/commands/test/flakiness.d.ts +0 -32
- package/dist/cli/commands/test/flakiness.d.ts.map +0 -1
- package/dist/cli/commands/test/flakiness.js +0 -121
- package/dist/cli/commands/test/flakiness.js.map +0 -1
- package/dist/cli/commands/test/index.d.ts +0 -17
- package/dist/cli/commands/test/index.d.ts.map +0 -1
- package/dist/cli/commands/test/index.js +0 -45
- package/dist/cli/commands/test/index.js.map +0 -1
- package/dist/cli/commands/test/mutate.d.ts +0 -29
- package/dist/cli/commands/test/mutate.d.ts.map +0 -1
- package/dist/cli/commands/test/mutate.js +0 -163
- package/dist/cli/commands/test/mutate.js.map +0 -1
- package/dist/cli/commands/test/parallel.d.ts +0 -3
- package/dist/cli/commands/test/parallel.d.ts.map +0 -1
- package/dist/cli/commands/test/parallel.js +0 -117
- package/dist/cli/commands/test/parallel.js.map +0 -1
- package/dist/cli/commands/test/profile.d.ts +0 -3
- package/dist/cli/commands/test/profile.d.ts.map +0 -1
- package/dist/cli/commands/test/profile.js +0 -156
- package/dist/cli/commands/test/profile.js.map +0 -1
- package/dist/cli/commands/test/queue.d.ts +0 -3
- package/dist/cli/commands/test/queue.d.ts.map +0 -1
- package/dist/cli/commands/test/queue.js +0 -140
- package/dist/cli/commands/test/queue.js.map +0 -1
- package/dist/cli/commands/test/retry.d.ts +0 -3
- package/dist/cli/commands/test/retry.d.ts.map +0 -1
- package/dist/cli/commands/test/retry.js +0 -105
- package/dist/cli/commands/test/retry.js.map +0 -1
- package/dist/cli/commands/test/snapshot.d.ts +0 -3
- package/dist/cli/commands/test/snapshot.d.ts.map +0 -1
- package/dist/cli/commands/test/snapshot.js +0 -176
- package/dist/cli/commands/test/snapshot.js.map +0 -1
- package/dist/cli/commands/test/trace.d.ts +0 -3
- package/dist/cli/commands/test/trace.d.ts.map +0 -1
- package/dist/cli/commands/test/trace.js +0 -137
- package/dist/cli/commands/test/trace.js.map +0 -1
- package/dist/cli/commands/test/watch.d.ts +0 -3
- package/dist/cli/commands/test/watch.d.ts.map +0 -1
- package/dist/cli/commands/test/watch.js +0 -130
- package/dist/cli/commands/test/watch.js.map +0 -1
- package/dist/cli/index-spec.d.ts +0 -3
- package/dist/cli/index-spec.d.ts.map +0 -1
- package/dist/cli/index-spec.js +0 -154
- package/dist/cli/index-spec.js.map +0 -1
- package/dist/cli/index-working.d.ts +0 -7
- package/dist/cli/index-working.d.ts.map +0 -1
- package/dist/cli/index-working.js +0 -617
- package/dist/cli/index-working.js.map +0 -1
- package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.d.ts +0 -83
- package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.d.ts.map +0 -1
- package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.js +0 -130
- package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.js.map +0 -1
- package/dist/mcp/handlers/filtered/flaky-detector-filtered.d.ts +0 -58
- package/dist/mcp/handlers/filtered/flaky-detector-filtered.d.ts.map +0 -1
- package/dist/mcp/handlers/filtered/flaky-detector-filtered.js +0 -84
- package/dist/mcp/handlers/filtered/flaky-detector-filtered.js.map +0 -1
- package/dist/mcp/handlers/filtered/security-scanner-filtered.d.ts +0 -54
- package/dist/mcp/handlers/filtered/security-scanner-filtered.d.ts.map +0 -1
- package/dist/mcp/handlers/filtered/security-scanner-filtered.js +0 -73
- package/dist/mcp/handlers/filtered/security-scanner-filtered.js.map +0 -1
- package/dist/mcp/handlers/integration/contract-validate.d.ts +0 -10
- package/dist/mcp/handlers/integration/contract-validate.d.ts.map +0 -1
- package/dist/mcp/handlers/integration/contract-validate.js +0 -348
- package/dist/mcp/handlers/integration/contract-validate.js.map +0 -1
- package/dist/reporting/ResultAggregator.d.ts +0 -107
- package/dist/reporting/ResultAggregator.d.ts.map +0 -1
- package/dist/reporting/ResultAggregator.js +0 -435
- package/dist/reporting/ResultAggregator.js.map +0 -1
- package/dist/reporting/index.d.ts +0 -48
- package/dist/reporting/index.d.ts.map +0 -1
- package/dist/reporting/index.js +0 -154
- package/dist/reporting/index.js.map +0 -1
- package/dist/reporting/reporters/ControlLoopReporter.d.ts +0 -128
- package/dist/reporting/reporters/ControlLoopReporter.d.ts.map +0 -1
- package/dist/reporting/reporters/ControlLoopReporter.js +0 -417
- package/dist/reporting/reporters/ControlLoopReporter.js.map +0 -1
- package/dist/reporting/reporters/HumanReadableReporter.d.ts +0 -140
- package/dist/reporting/reporters/HumanReadableReporter.d.ts.map +0 -1
- package/dist/reporting/reporters/HumanReadableReporter.js +0 -524
- package/dist/reporting/reporters/HumanReadableReporter.js.map +0 -1
- package/dist/reporting/reporters/JSONReporter.d.ts +0 -251
- package/dist/reporting/reporters/JSONReporter.d.ts.map +0 -1
- package/dist/reporting/reporters/JSONReporter.js +0 -325
- package/dist/reporting/reporters/JSONReporter.js.map +0 -1
- package/dist/reporting/reporters/index.d.ts +0 -14
- package/dist/reporting/reporters/index.d.ts.map +0 -1
- package/dist/reporting/reporters/index.js +0 -19
- package/dist/reporting/reporters/index.js.map +0 -1
- package/dist/reporting/types.d.ts +0 -427
- package/dist/reporting/types.d.ts.map +0 -1
- package/dist/reporting/types.js +0 -12
- package/dist/reporting/types.js.map +0 -1
|
@@ -0,0 +1,737 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent-to-Agent Communication Protocol Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the protocol layer that enables secure agent-to-agent
|
|
5
|
+
* communication over WebRTC data channels. Includes message types, envelopes,
|
|
6
|
+
* routing information, and protocol errors.
|
|
7
|
+
*
|
|
8
|
+
* @module edge/p2p/protocol/types
|
|
9
|
+
* @version 1.0.0
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Current protocol version
|
|
13
|
+
*/
|
|
14
|
+
export declare const PROTOCOL_VERSION = "1.0.0";
|
|
15
|
+
/**
|
|
16
|
+
* Minimum supported protocol version
|
|
17
|
+
*/
|
|
18
|
+
export declare const MIN_PROTOCOL_VERSION = "1.0.0";
|
|
19
|
+
/**
|
|
20
|
+
* Maximum message size in bytes (64KB)
|
|
21
|
+
*/
|
|
22
|
+
export declare const MAX_MESSAGE_SIZE = 65536;
|
|
23
|
+
/**
|
|
24
|
+
* Compression threshold in bytes (1KB)
|
|
25
|
+
*/
|
|
26
|
+
export declare const COMPRESSION_THRESHOLD = 1024;
|
|
27
|
+
/**
|
|
28
|
+
* Default message TTL in milliseconds (30 seconds)
|
|
29
|
+
*/
|
|
30
|
+
export declare const DEFAULT_MESSAGE_TTL = 30000;
|
|
31
|
+
/**
|
|
32
|
+
* Default heartbeat interval in milliseconds (15 seconds)
|
|
33
|
+
*/
|
|
34
|
+
export declare const DEFAULT_HEARTBEAT_INTERVAL = 15000;
|
|
35
|
+
/**
|
|
36
|
+
* Default request timeout in milliseconds (10 seconds)
|
|
37
|
+
*/
|
|
38
|
+
export declare const DEFAULT_REQUEST_TIMEOUT = 10000;
|
|
39
|
+
/**
|
|
40
|
+
* Maximum retry attempts for reliable delivery
|
|
41
|
+
*/
|
|
42
|
+
export declare const MAX_RETRY_ATTEMPTS = 3;
|
|
43
|
+
/**
|
|
44
|
+
* Retry delay multiplier for exponential backoff
|
|
45
|
+
*/
|
|
46
|
+
export declare const RETRY_DELAY_MULTIPLIER = 2;
|
|
47
|
+
/**
|
|
48
|
+
* Initial retry delay in milliseconds
|
|
49
|
+
*/
|
|
50
|
+
export declare const INITIAL_RETRY_DELAY = 1000;
|
|
51
|
+
/**
|
|
52
|
+
* Message type enumeration
|
|
53
|
+
*/
|
|
54
|
+
export declare enum MessageType {
|
|
55
|
+
/** Request expecting a response */
|
|
56
|
+
REQUEST = "request",
|
|
57
|
+
/** Response to a request */
|
|
58
|
+
RESPONSE = "response",
|
|
59
|
+
/** Event notification (fire-and-forget) */
|
|
60
|
+
EVENT = "event",
|
|
61
|
+
/** Heartbeat/keepalive message */
|
|
62
|
+
HEARTBEAT = "heartbeat",
|
|
63
|
+
/** Error notification */
|
|
64
|
+
ERROR = "error",
|
|
65
|
+
/** Acknowledgment for reliable delivery */
|
|
66
|
+
ACK = "ack",
|
|
67
|
+
/** Negative acknowledgment */
|
|
68
|
+
NACK = "nack",
|
|
69
|
+
/** Handshake message */
|
|
70
|
+
HANDSHAKE = "handshake",
|
|
71
|
+
/** Handshake acknowledgment */
|
|
72
|
+
HANDSHAKE_ACK = "handshake_ack",
|
|
73
|
+
/** Protocol close message */
|
|
74
|
+
CLOSE = "close"
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Message priority levels
|
|
78
|
+
*/
|
|
79
|
+
export declare enum MessagePriority {
|
|
80
|
+
/** Critical priority - immediate processing */
|
|
81
|
+
CRITICAL = 0,
|
|
82
|
+
/** High priority - processed before normal */
|
|
83
|
+
HIGH = 1,
|
|
84
|
+
/** Normal priority - standard processing */
|
|
85
|
+
NORMAL = 2,
|
|
86
|
+
/** Low priority - processed when idle */
|
|
87
|
+
LOW = 3
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Delivery semantics for messages
|
|
91
|
+
*/
|
|
92
|
+
export declare enum DeliverySemantics {
|
|
93
|
+
/** At most once delivery (fire-and-forget) */
|
|
94
|
+
AT_MOST_ONCE = "at_most_once",
|
|
95
|
+
/** At least once delivery (may duplicate) */
|
|
96
|
+
AT_LEAST_ONCE = "at_least_once",
|
|
97
|
+
/** Exactly once delivery (requires deduplication) */
|
|
98
|
+
EXACTLY_ONCE = "exactly_once"
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Routing mode for messages
|
|
102
|
+
*/
|
|
103
|
+
export declare enum RoutingMode {
|
|
104
|
+
/** Single recipient */
|
|
105
|
+
UNICAST = "unicast",
|
|
106
|
+
/** All recipients */
|
|
107
|
+
BROADCAST = "broadcast",
|
|
108
|
+
/** Selected group of recipients */
|
|
109
|
+
MULTICAST = "multicast",
|
|
110
|
+
/** Relay through intermediate nodes */
|
|
111
|
+
RELAY = "relay"
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Protocol envelope header containing metadata
|
|
115
|
+
*/
|
|
116
|
+
export interface ProtocolHeader {
|
|
117
|
+
/** Protocol version */
|
|
118
|
+
version: string;
|
|
119
|
+
/** Unique message identifier */
|
|
120
|
+
messageId: string;
|
|
121
|
+
/** Correlation ID for request/response pairs */
|
|
122
|
+
correlationId?: string;
|
|
123
|
+
/** Message type */
|
|
124
|
+
type: MessageType;
|
|
125
|
+
/** Message priority */
|
|
126
|
+
priority: MessagePriority;
|
|
127
|
+
/** Sender agent ID */
|
|
128
|
+
senderId: string;
|
|
129
|
+
/** Recipient agent ID (or '*' for broadcast) */
|
|
130
|
+
recipientId: string;
|
|
131
|
+
/** Timestamp when message was created */
|
|
132
|
+
timestamp: number;
|
|
133
|
+
/** Time-to-live in milliseconds */
|
|
134
|
+
ttl: number;
|
|
135
|
+
/** Number of hops remaining (for relay) */
|
|
136
|
+
hopCount: number;
|
|
137
|
+
/** Maximum hops allowed */
|
|
138
|
+
maxHops: number;
|
|
139
|
+
/** Whether payload is compressed */
|
|
140
|
+
compressed: boolean;
|
|
141
|
+
/** Delivery semantics */
|
|
142
|
+
delivery: DeliverySemantics;
|
|
143
|
+
/** Routing mode */
|
|
144
|
+
routing: RoutingMode;
|
|
145
|
+
/** Schema version for payload */
|
|
146
|
+
schemaVersion: number;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Message metadata for tracking and analytics
|
|
150
|
+
*/
|
|
151
|
+
export interface MessageMetadata {
|
|
152
|
+
/** Original message size before compression */
|
|
153
|
+
originalSize?: number;
|
|
154
|
+
/** Compressed size */
|
|
155
|
+
compressedSize?: number;
|
|
156
|
+
/** Source channel name */
|
|
157
|
+
channel?: string;
|
|
158
|
+
/** Trace ID for distributed tracing */
|
|
159
|
+
traceId?: string;
|
|
160
|
+
/** Span ID for distributed tracing */
|
|
161
|
+
spanId?: string;
|
|
162
|
+
/** Parent span ID */
|
|
163
|
+
parentSpanId?: string;
|
|
164
|
+
/** Custom tags */
|
|
165
|
+
tags?: Record<string, string>;
|
|
166
|
+
/** Retry count */
|
|
167
|
+
retryCount?: number;
|
|
168
|
+
/** Time spent in queue (ms) */
|
|
169
|
+
queueTime?: number;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Routing information for message delivery
|
|
173
|
+
*/
|
|
174
|
+
export interface RoutingInfo {
|
|
175
|
+
/** Routing mode */
|
|
176
|
+
mode: RoutingMode;
|
|
177
|
+
/** Target peer IDs for multicast */
|
|
178
|
+
targets?: string[];
|
|
179
|
+
/** Room/group ID for multicast */
|
|
180
|
+
roomId?: string;
|
|
181
|
+
/** Path taken by message (for debugging) */
|
|
182
|
+
path?: string[];
|
|
183
|
+
/** Relay nodes used */
|
|
184
|
+
relayNodes?: string[];
|
|
185
|
+
/** Whether to exclude sender from broadcast */
|
|
186
|
+
excludeSender?: boolean;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Complete protocol envelope
|
|
190
|
+
*/
|
|
191
|
+
export interface ProtocolEnvelope<T = unknown> {
|
|
192
|
+
/** Protocol header */
|
|
193
|
+
header: ProtocolHeader;
|
|
194
|
+
/** Message payload */
|
|
195
|
+
payload: T;
|
|
196
|
+
/** Base64-encoded signature of header + payload */
|
|
197
|
+
signature: string;
|
|
198
|
+
/** Signer's public key (Base64) */
|
|
199
|
+
signerPublicKey: string;
|
|
200
|
+
/** Optional routing information */
|
|
201
|
+
routing?: RoutingInfo;
|
|
202
|
+
/** Optional metadata */
|
|
203
|
+
metadata?: MessageMetadata;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Request message payload
|
|
207
|
+
*/
|
|
208
|
+
export interface RequestPayload<T = unknown> {
|
|
209
|
+
/** Method/action to invoke */
|
|
210
|
+
method: string;
|
|
211
|
+
/** Request parameters */
|
|
212
|
+
params: T;
|
|
213
|
+
/** Expected response timeout (ms) */
|
|
214
|
+
timeout?: number;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Response message payload
|
|
218
|
+
*/
|
|
219
|
+
export interface ResponsePayload<T = unknown> {
|
|
220
|
+
/** Whether request succeeded */
|
|
221
|
+
success: boolean;
|
|
222
|
+
/** Response data (if success) */
|
|
223
|
+
result?: T;
|
|
224
|
+
/** Error information (if failure) */
|
|
225
|
+
error?: ProtocolErrorInfo;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Event message payload
|
|
229
|
+
*/
|
|
230
|
+
export interface EventPayload<T = unknown> {
|
|
231
|
+
/** Event name/type */
|
|
232
|
+
event: string;
|
|
233
|
+
/** Event data */
|
|
234
|
+
data: T;
|
|
235
|
+
/** Whether event requires acknowledgment */
|
|
236
|
+
requiresAck?: boolean;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Heartbeat message payload
|
|
240
|
+
*/
|
|
241
|
+
export interface HeartbeatPayload {
|
|
242
|
+
/** Sequence number for tracking */
|
|
243
|
+
sequence: number;
|
|
244
|
+
/** Sender's timestamp */
|
|
245
|
+
timestamp: number;
|
|
246
|
+
/** Whether this is a request or response */
|
|
247
|
+
isResponse: boolean;
|
|
248
|
+
/** Original timestamp (in response) */
|
|
249
|
+
originalTimestamp?: number;
|
|
250
|
+
/** Local stats snapshot */
|
|
251
|
+
stats?: HeartbeatStats;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Heartbeat statistics
|
|
255
|
+
*/
|
|
256
|
+
export interface HeartbeatStats {
|
|
257
|
+
/** Messages sent since last heartbeat */
|
|
258
|
+
messagesSent: number;
|
|
259
|
+
/** Messages received since last heartbeat */
|
|
260
|
+
messagesReceived: number;
|
|
261
|
+
/** Current message queue size */
|
|
262
|
+
queueSize: number;
|
|
263
|
+
/** Memory usage (bytes) */
|
|
264
|
+
memoryUsage?: number;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Handshake message payload
|
|
268
|
+
*/
|
|
269
|
+
export interface HandshakePayload {
|
|
270
|
+
/** Agent identity proof */
|
|
271
|
+
identityProof: {
|
|
272
|
+
agentId: string;
|
|
273
|
+
publicKey: string;
|
|
274
|
+
challenge: string;
|
|
275
|
+
signature: string;
|
|
276
|
+
timestamp: string;
|
|
277
|
+
expiresIn: number;
|
|
278
|
+
};
|
|
279
|
+
/** Supported protocol versions */
|
|
280
|
+
supportedVersions: string[];
|
|
281
|
+
/** Preferred protocol version */
|
|
282
|
+
preferredVersion: string;
|
|
283
|
+
/** Supported features */
|
|
284
|
+
features: ProtocolFeature[];
|
|
285
|
+
/** Custom metadata */
|
|
286
|
+
metadata?: Record<string, unknown>;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Handshake acknowledgment payload
|
|
290
|
+
*/
|
|
291
|
+
export interface HandshakeAckPayload {
|
|
292
|
+
/** Agreed protocol version */
|
|
293
|
+
agreedVersion: string;
|
|
294
|
+
/** Agreed features */
|
|
295
|
+
agreedFeatures: ProtocolFeature[];
|
|
296
|
+
/** Session ID for this connection */
|
|
297
|
+
sessionId: string;
|
|
298
|
+
/** Server timestamp */
|
|
299
|
+
timestamp: number;
|
|
300
|
+
/** Server public key */
|
|
301
|
+
publicKey: string;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Close message payload
|
|
305
|
+
*/
|
|
306
|
+
export interface ClosePayload {
|
|
307
|
+
/** Close code */
|
|
308
|
+
code: CloseCode;
|
|
309
|
+
/** Human-readable reason */
|
|
310
|
+
reason: string;
|
|
311
|
+
/** Whether to attempt reconnection */
|
|
312
|
+
reconnect: boolean;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Acknowledgment payload
|
|
316
|
+
*/
|
|
317
|
+
export interface AckPayload {
|
|
318
|
+
/** Message ID being acknowledged */
|
|
319
|
+
messageId: string;
|
|
320
|
+
/** Acknowledgment timestamp */
|
|
321
|
+
timestamp: number;
|
|
322
|
+
/** Processing time (ms) */
|
|
323
|
+
processingTime?: number;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Negative acknowledgment payload
|
|
327
|
+
*/
|
|
328
|
+
export interface NackPayload {
|
|
329
|
+
/** Message ID being rejected */
|
|
330
|
+
messageId: string;
|
|
331
|
+
/** Rejection reason */
|
|
332
|
+
reason: string;
|
|
333
|
+
/** Error code */
|
|
334
|
+
code: ProtocolErrorCode;
|
|
335
|
+
/** Whether message should be retried */
|
|
336
|
+
retryable: boolean;
|
|
337
|
+
/** Suggested retry delay (ms) */
|
|
338
|
+
retryAfter?: number;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Protocol feature flags
|
|
342
|
+
*/
|
|
343
|
+
export declare enum ProtocolFeature {
|
|
344
|
+
/** Support for message compression */
|
|
345
|
+
COMPRESSION = "compression",
|
|
346
|
+
/** Support for message encryption (beyond transport) */
|
|
347
|
+
ENCRYPTION = "encryption",
|
|
348
|
+
/** Support for request/response pattern */
|
|
349
|
+
REQUEST_RESPONSE = "request_response",
|
|
350
|
+
/** Support for pub/sub pattern */
|
|
351
|
+
PUB_SUB = "pub_sub",
|
|
352
|
+
/** Support for message streaming */
|
|
353
|
+
STREAMING = "streaming",
|
|
354
|
+
/** Support for binary payloads */
|
|
355
|
+
BINARY = "binary",
|
|
356
|
+
/** Support for message batching */
|
|
357
|
+
BATCHING = "batching",
|
|
358
|
+
/** Support for message prioritization */
|
|
359
|
+
PRIORITIZATION = "prioritization",
|
|
360
|
+
/** Support for reliable delivery */
|
|
361
|
+
RELIABLE_DELIVERY = "reliable_delivery",
|
|
362
|
+
/** Support for exactly-once semantics */
|
|
363
|
+
EXACTLY_ONCE = "exactly_once",
|
|
364
|
+
/** Support for distributed tracing */
|
|
365
|
+
TRACING = "tracing",
|
|
366
|
+
/** Support for backpressure */
|
|
367
|
+
BACKPRESSURE = "backpressure"
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Default supported features
|
|
371
|
+
*/
|
|
372
|
+
export declare const DEFAULT_FEATURES: ProtocolFeature[];
|
|
373
|
+
/**
|
|
374
|
+
* Protocol error codes
|
|
375
|
+
*/
|
|
376
|
+
export declare enum ProtocolErrorCode {
|
|
377
|
+
UNKNOWN_ERROR = 1000,
|
|
378
|
+
INVALID_MESSAGE = 1001,
|
|
379
|
+
MESSAGE_TOO_LARGE = 1002,
|
|
380
|
+
UNSUPPORTED_VERSION = 1003,
|
|
381
|
+
UNSUPPORTED_FEATURE = 1004,
|
|
382
|
+
SERIALIZATION_ERROR = 1005,
|
|
383
|
+
DESERIALIZATION_ERROR = 1006,
|
|
384
|
+
COMPRESSION_ERROR = 1007,
|
|
385
|
+
DECOMPRESSION_ERROR = 1008,
|
|
386
|
+
AUTHENTICATION_FAILED = 2000,
|
|
387
|
+
INVALID_SIGNATURE = 2001,
|
|
388
|
+
EXPIRED_SIGNATURE = 2002,
|
|
389
|
+
UNKNOWN_SENDER = 2003,
|
|
390
|
+
UNAUTHORIZED = 2004,
|
|
391
|
+
IDENTITY_MISMATCH = 2005,
|
|
392
|
+
ROUTING_FAILED = 3000,
|
|
393
|
+
PEER_NOT_FOUND = 3001,
|
|
394
|
+
PEER_UNREACHABLE = 3002,
|
|
395
|
+
TTL_EXPIRED = 3003,
|
|
396
|
+
MAX_HOPS_EXCEEDED = 3004,
|
|
397
|
+
NO_ROUTE = 3005,
|
|
398
|
+
DELIVERY_FAILED = 4000,
|
|
399
|
+
TIMEOUT = 4001,
|
|
400
|
+
REJECTED = 4002,
|
|
401
|
+
DUPLICATE = 4003,
|
|
402
|
+
OUT_OF_ORDER = 4004,
|
|
403
|
+
QUEUE_FULL = 4005,
|
|
404
|
+
PROTOCOL_ERROR = 5000,
|
|
405
|
+
INVALID_STATE = 5001,
|
|
406
|
+
HANDSHAKE_FAILED = 5002,
|
|
407
|
+
CONNECTION_CLOSED = 5003,
|
|
408
|
+
RATE_LIMITED = 5004,
|
|
409
|
+
BACKPRESSURE = 5005,
|
|
410
|
+
RESOURCE_EXHAUSTED = 6000,
|
|
411
|
+
MEMORY_LIMIT = 6001,
|
|
412
|
+
QUEUE_LIMIT = 6002,
|
|
413
|
+
CONNECTION_LIMIT = 6003
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Protocol error information
|
|
417
|
+
*/
|
|
418
|
+
export interface ProtocolErrorInfo {
|
|
419
|
+
/** Error code */
|
|
420
|
+
code: ProtocolErrorCode;
|
|
421
|
+
/** Human-readable message */
|
|
422
|
+
message: string;
|
|
423
|
+
/** Additional details */
|
|
424
|
+
details?: unknown;
|
|
425
|
+
/** Timestamp when error occurred */
|
|
426
|
+
timestamp: number;
|
|
427
|
+
/** Whether the operation can be retried */
|
|
428
|
+
retryable: boolean;
|
|
429
|
+
/** Suggested retry delay (ms) */
|
|
430
|
+
retryAfter?: number;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Close codes for protocol close messages
|
|
434
|
+
*/
|
|
435
|
+
export declare enum CloseCode {
|
|
436
|
+
/** Normal closure */
|
|
437
|
+
NORMAL = 1000,
|
|
438
|
+
/** Going away (e.g., server shutdown) */
|
|
439
|
+
GOING_AWAY = 1001,
|
|
440
|
+
/** Protocol error */
|
|
441
|
+
PROTOCOL_ERROR = 1002,
|
|
442
|
+
/** Unsupported data */
|
|
443
|
+
UNSUPPORTED_DATA = 1003,
|
|
444
|
+
/** No status received */
|
|
445
|
+
NO_STATUS = 1005,
|
|
446
|
+
/** Abnormal closure */
|
|
447
|
+
ABNORMAL = 1006,
|
|
448
|
+
/** Invalid payload */
|
|
449
|
+
INVALID_PAYLOAD = 1007,
|
|
450
|
+
/** Policy violation */
|
|
451
|
+
POLICY_VIOLATION = 1008,
|
|
452
|
+
/** Message too big */
|
|
453
|
+
MESSAGE_TOO_BIG = 1009,
|
|
454
|
+
/** Missing extension */
|
|
455
|
+
MISSING_EXTENSION = 1010,
|
|
456
|
+
/** Internal error */
|
|
457
|
+
INTERNAL_ERROR = 1011,
|
|
458
|
+
/** Service restart */
|
|
459
|
+
SERVICE_RESTART = 1012,
|
|
460
|
+
/** Try again later */
|
|
461
|
+
TRY_AGAIN_LATER = 1013
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Protocol error class
|
|
465
|
+
*/
|
|
466
|
+
export declare class ProtocolError extends Error {
|
|
467
|
+
readonly code: ProtocolErrorCode;
|
|
468
|
+
readonly retryable: boolean;
|
|
469
|
+
readonly details?: unknown | undefined;
|
|
470
|
+
constructor(message: string, code: ProtocolErrorCode, retryable?: boolean, details?: unknown | undefined);
|
|
471
|
+
/**
|
|
472
|
+
* Convert to error info
|
|
473
|
+
*/
|
|
474
|
+
toInfo(): ProtocolErrorInfo;
|
|
475
|
+
/**
|
|
476
|
+
* Create from error info
|
|
477
|
+
*/
|
|
478
|
+
static fromInfo(info: ProtocolErrorInfo): ProtocolError;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Protocol state enumeration
|
|
482
|
+
*/
|
|
483
|
+
export declare enum ProtocolState {
|
|
484
|
+
/** Initial state, not connected */
|
|
485
|
+
IDLE = "idle",
|
|
486
|
+
/** Connecting, handshake in progress */
|
|
487
|
+
CONNECTING = "connecting",
|
|
488
|
+
/** Handshake complete, ready for messages */
|
|
489
|
+
ACTIVE = "active",
|
|
490
|
+
/** Closing gracefully */
|
|
491
|
+
CLOSING = "closing",
|
|
492
|
+
/** Closed permanently */
|
|
493
|
+
CLOSED = "closed",
|
|
494
|
+
/** Error state */
|
|
495
|
+
ERROR = "error"
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Protocol state transition
|
|
499
|
+
*/
|
|
500
|
+
export interface ProtocolStateTransition {
|
|
501
|
+
/** Previous state */
|
|
502
|
+
from: ProtocolState;
|
|
503
|
+
/** New state */
|
|
504
|
+
to: ProtocolState;
|
|
505
|
+
/** Reason for transition */
|
|
506
|
+
reason: string;
|
|
507
|
+
/** Timestamp of transition */
|
|
508
|
+
timestamp: number;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Rate limit configuration
|
|
512
|
+
*/
|
|
513
|
+
export interface RateLimitConfig {
|
|
514
|
+
/** Maximum messages per second */
|
|
515
|
+
messagesPerSecond: number;
|
|
516
|
+
/** Maximum bytes per second */
|
|
517
|
+
bytesPerSecond: number;
|
|
518
|
+
/** Maximum burst size (messages) */
|
|
519
|
+
burstSize: number;
|
|
520
|
+
/** Window size for rate limiting (ms) */
|
|
521
|
+
windowSize: number;
|
|
522
|
+
/** Whether to enable backpressure */
|
|
523
|
+
enableBackpressure: boolean;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Default rate limit configuration
|
|
527
|
+
*/
|
|
528
|
+
export declare const DEFAULT_RATE_LIMIT: RateLimitConfig;
|
|
529
|
+
/**
|
|
530
|
+
* Rate limit status
|
|
531
|
+
*/
|
|
532
|
+
export interface RateLimitStatus {
|
|
533
|
+
/** Whether rate limited */
|
|
534
|
+
limited: boolean;
|
|
535
|
+
/** Current messages per second */
|
|
536
|
+
currentRate: number;
|
|
537
|
+
/** Remaining messages in window */
|
|
538
|
+
remaining: number;
|
|
539
|
+
/** Time until reset (ms) */
|
|
540
|
+
resetIn: number;
|
|
541
|
+
/** Suggested delay before retry (ms) */
|
|
542
|
+
retryAfter?: number;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Message queue configuration
|
|
546
|
+
*/
|
|
547
|
+
export interface QueueConfig {
|
|
548
|
+
/** Maximum queue size */
|
|
549
|
+
maxSize: number;
|
|
550
|
+
/** Maximum memory usage (bytes) */
|
|
551
|
+
maxMemory: number;
|
|
552
|
+
/** Enable priority queuing */
|
|
553
|
+
enablePriority: boolean;
|
|
554
|
+
/** Flush interval (ms) */
|
|
555
|
+
flushInterval: number;
|
|
556
|
+
/** Maximum batch size for processing */
|
|
557
|
+
batchSize: number;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Default queue configuration
|
|
561
|
+
*/
|
|
562
|
+
export declare const DEFAULT_QUEUE_CONFIG: QueueConfig;
|
|
563
|
+
/**
|
|
564
|
+
* Queue statistics
|
|
565
|
+
*/
|
|
566
|
+
export interface QueueStats {
|
|
567
|
+
/** Current queue size */
|
|
568
|
+
size: number;
|
|
569
|
+
/** Current memory usage (bytes) */
|
|
570
|
+
memory: number;
|
|
571
|
+
/** Total messages enqueued */
|
|
572
|
+
totalEnqueued: number;
|
|
573
|
+
/** Total messages dequeued */
|
|
574
|
+
totalDequeued: number;
|
|
575
|
+
/** Total messages dropped */
|
|
576
|
+
totalDropped: number;
|
|
577
|
+
/** Average wait time (ms) */
|
|
578
|
+
averageWaitTime: number;
|
|
579
|
+
/** Messages by priority */
|
|
580
|
+
byPriority: Record<MessagePriority, number>;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Delivery status enumeration
|
|
584
|
+
*/
|
|
585
|
+
export declare enum DeliveryStatus {
|
|
586
|
+
/** Message pending delivery */
|
|
587
|
+
PENDING = "pending",
|
|
588
|
+
/** Message sent, awaiting acknowledgment */
|
|
589
|
+
SENT = "sent",
|
|
590
|
+
/** Message delivered (acknowledged) */
|
|
591
|
+
DELIVERED = "delivered",
|
|
592
|
+
/** Delivery failed */
|
|
593
|
+
FAILED = "failed",
|
|
594
|
+
/** Message expired (TTL) */
|
|
595
|
+
EXPIRED = "expired",
|
|
596
|
+
/** Delivery cancelled */
|
|
597
|
+
CANCELLED = "cancelled"
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Delivery tracking information
|
|
601
|
+
*/
|
|
602
|
+
export interface DeliveryInfo {
|
|
603
|
+
/** Message ID */
|
|
604
|
+
messageId: string;
|
|
605
|
+
/** Current status */
|
|
606
|
+
status: DeliveryStatus;
|
|
607
|
+
/** Number of delivery attempts */
|
|
608
|
+
attempts: number;
|
|
609
|
+
/** Timestamp of first attempt */
|
|
610
|
+
firstAttemptAt: number;
|
|
611
|
+
/** Timestamp of last attempt */
|
|
612
|
+
lastAttemptAt: number;
|
|
613
|
+
/** Timestamp of delivery (if delivered) */
|
|
614
|
+
deliveredAt?: number;
|
|
615
|
+
/** Error info (if failed) */
|
|
616
|
+
error?: ProtocolErrorInfo;
|
|
617
|
+
/** Next retry timestamp */
|
|
618
|
+
nextRetryAt?: number;
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Dead letter information
|
|
622
|
+
*/
|
|
623
|
+
export interface DeadLetter {
|
|
624
|
+
/** Original envelope */
|
|
625
|
+
envelope: ProtocolEnvelope;
|
|
626
|
+
/** Delivery info */
|
|
627
|
+
deliveryInfo: DeliveryInfo;
|
|
628
|
+
/** Timestamp when moved to dead letter */
|
|
629
|
+
deadLetteredAt: number;
|
|
630
|
+
/** Reason for dead lettering */
|
|
631
|
+
reason: string;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Agent channel configuration
|
|
635
|
+
*/
|
|
636
|
+
export interface ChannelConfig {
|
|
637
|
+
/** Local agent ID */
|
|
638
|
+
localAgentId: string;
|
|
639
|
+
/** Remote agent ID */
|
|
640
|
+
remoteAgentId: string;
|
|
641
|
+
/** Protocol version to use */
|
|
642
|
+
protocolVersion?: string;
|
|
643
|
+
/** Requested features */
|
|
644
|
+
features?: ProtocolFeature[];
|
|
645
|
+
/** Rate limit configuration */
|
|
646
|
+
rateLimit?: Partial<RateLimitConfig>;
|
|
647
|
+
/** Queue configuration */
|
|
648
|
+
queue?: Partial<QueueConfig>;
|
|
649
|
+
/** Request timeout (ms) */
|
|
650
|
+
requestTimeout?: number;
|
|
651
|
+
/** Heartbeat interval (ms) */
|
|
652
|
+
heartbeatInterval?: number;
|
|
653
|
+
/** Enable automatic reconnection */
|
|
654
|
+
autoReconnect?: boolean;
|
|
655
|
+
/** Maximum reconnection attempts */
|
|
656
|
+
maxReconnectAttempts?: number;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Channel statistics
|
|
660
|
+
*/
|
|
661
|
+
export interface ChannelStats {
|
|
662
|
+
/** Total messages sent */
|
|
663
|
+
messagesSent: number;
|
|
664
|
+
/** Total messages received */
|
|
665
|
+
messagesReceived: number;
|
|
666
|
+
/** Total bytes sent */
|
|
667
|
+
bytesSent: number;
|
|
668
|
+
/** Total bytes received */
|
|
669
|
+
bytesReceived: number;
|
|
670
|
+
/** Total requests sent */
|
|
671
|
+
requestsSent: number;
|
|
672
|
+
/** Total responses received */
|
|
673
|
+
responsesReceived: number;
|
|
674
|
+
/** Total events published */
|
|
675
|
+
eventsPublished: number;
|
|
676
|
+
/** Total events received */
|
|
677
|
+
eventsReceived: number;
|
|
678
|
+
/** Average request latency (ms) */
|
|
679
|
+
averageLatency: number;
|
|
680
|
+
/** Current connection state */
|
|
681
|
+
state: ProtocolState;
|
|
682
|
+
/** Last activity timestamp */
|
|
683
|
+
lastActivityAt: number;
|
|
684
|
+
/** Channel opened timestamp */
|
|
685
|
+
openedAt: number;
|
|
686
|
+
/** Reconnection count */
|
|
687
|
+
reconnectionCount: number;
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Message handler function type
|
|
691
|
+
*/
|
|
692
|
+
export type MessageHandler<T = unknown, R = unknown> = (payload: T, envelope: ProtocolEnvelope<T>) => Promise<R> | R;
|
|
693
|
+
/**
|
|
694
|
+
* Event handler function type
|
|
695
|
+
*/
|
|
696
|
+
export type EventHandler<T = unknown> = (data: T, envelope: ProtocolEnvelope<EventPayload<T>>) => void | Promise<void>;
|
|
697
|
+
/**
|
|
698
|
+
* Error handler function type
|
|
699
|
+
*/
|
|
700
|
+
export type ErrorHandler = (error: ProtocolError, envelope?: ProtocolEnvelope) => void;
|
|
701
|
+
/**
|
|
702
|
+
* State change handler function type
|
|
703
|
+
*/
|
|
704
|
+
export type StateChangeHandler = (transition: ProtocolStateTransition) => void;
|
|
705
|
+
/**
|
|
706
|
+
* Generate unique message ID
|
|
707
|
+
*/
|
|
708
|
+
export declare function generateMessageId(): string;
|
|
709
|
+
/**
|
|
710
|
+
* Generate session ID using cryptographically secure random values
|
|
711
|
+
*/
|
|
712
|
+
export declare function generateSessionId(): string;
|
|
713
|
+
/**
|
|
714
|
+
* Generate trace ID
|
|
715
|
+
*/
|
|
716
|
+
export declare function generateTraceId(): string;
|
|
717
|
+
/**
|
|
718
|
+
* Generate span ID
|
|
719
|
+
*/
|
|
720
|
+
export declare function generateSpanId(): string;
|
|
721
|
+
/**
|
|
722
|
+
* Check if protocol version is supported
|
|
723
|
+
*/
|
|
724
|
+
export declare function isVersionSupported(version: string): boolean;
|
|
725
|
+
/**
|
|
726
|
+
* Get error message for error code
|
|
727
|
+
*/
|
|
728
|
+
export declare function getErrorMessage(code: ProtocolErrorCode): string;
|
|
729
|
+
/**
|
|
730
|
+
* Check if error is retryable
|
|
731
|
+
*/
|
|
732
|
+
export declare function isRetryableError(code: ProtocolErrorCode): boolean;
|
|
733
|
+
/**
|
|
734
|
+
* Create default protocol header
|
|
735
|
+
*/
|
|
736
|
+
export declare function createDefaultHeader(type: MessageType, senderId: string, recipientId: string): ProtocolHeader;
|
|
737
|
+
//# sourceMappingURL=types.d.ts.map
|