@pcircle/memesh 2.7.0 → 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/README.md +38 -34
- package/README.zh-TW.md +42 -46
- package/dist/cli/setup-wizard.d.ts.map +1 -1
- package/dist/cli/setup-wizard.js +0 -41
- package/dist/cli/setup-wizard.js.map +1 -1
- package/dist/cloud/MeMeshCloudClient.d.ts +88 -0
- package/dist/cloud/MeMeshCloudClient.d.ts.map +1 -0
- package/dist/cloud/MeMeshCloudClient.js +147 -0
- package/dist/cloud/MeMeshCloudClient.js.map +1 -0
- package/dist/cloud/index.d.ts +3 -0
- package/dist/cloud/index.d.ts.map +1 -0
- package/dist/cloud/index.js +2 -0
- package/dist/cloud/index.js.map +1 -0
- package/dist/config/index.d.ts +12 -2
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +10 -0
- package/dist/config/index.js.map +1 -1
- package/dist/core/AgentRegistry.d.ts +1 -2
- package/dist/core/AgentRegistry.d.ts.map +1 -1
- package/dist/core/AgentRegistry.js.map +1 -1
- package/dist/core/HookIntegration.d.ts +2 -5
- package/dist/core/HookIntegration.d.ts.map +1 -1
- package/dist/core/HookIntegration.js +9 -11
- package/dist/core/HookIntegration.js.map +1 -1
- package/dist/core/ServiceLocator.d.ts.map +1 -1
- package/dist/core/ServiceLocator.js +2 -1
- package/dist/core/ServiceLocator.js.map +1 -1
- package/dist/embeddings/EmbeddingService.d.ts +20 -0
- package/dist/embeddings/EmbeddingService.d.ts.map +1 -0
- package/dist/embeddings/EmbeddingService.js +109 -0
- package/dist/embeddings/EmbeddingService.js.map +1 -0
- package/dist/embeddings/ModelManager.d.ts +18 -0
- package/dist/embeddings/ModelManager.d.ts.map +1 -0
- package/dist/embeddings/ModelManager.js +84 -0
- package/dist/embeddings/ModelManager.js.map +1 -0
- package/dist/embeddings/VectorExtension.d.ts +19 -0
- package/dist/embeddings/VectorExtension.d.ts.map +1 -0
- package/dist/embeddings/VectorExtension.js +107 -0
- package/dist/embeddings/VectorExtension.js.map +1 -0
- package/dist/embeddings/index.d.ts +4 -0
- package/dist/embeddings/index.d.ts.map +1 -0
- package/dist/embeddings/index.js +4 -0
- package/dist/embeddings/index.js.map +1 -0
- package/dist/errors/ErrorClassifier.d.ts.map +1 -1
- package/dist/errors/ErrorClassifier.js +0 -27
- package/dist/errors/ErrorClassifier.js.map +1 -1
- package/dist/i18n/locales/en.js +1 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -76
- package/dist/index.js.map +1 -1
- package/dist/integrations/session-memory/SessionContextInjector.d.ts +30 -0
- package/dist/integrations/session-memory/SessionContextInjector.d.ts.map +1 -0
- package/dist/integrations/session-memory/SessionContextInjector.js +192 -0
- package/dist/integrations/session-memory/SessionContextInjector.js.map +1 -0
- package/dist/integrations/session-memory/SessionMemoryIngester.d.ts +15 -0
- package/dist/integrations/session-memory/SessionMemoryIngester.d.ts.map +1 -0
- package/dist/integrations/session-memory/SessionMemoryIngester.js +229 -0
- package/dist/integrations/session-memory/SessionMemoryIngester.js.map +1 -0
- package/dist/integrations/session-memory/SessionMemoryParser.d.ts +16 -0
- package/dist/integrations/session-memory/SessionMemoryParser.d.ts.map +1 -0
- package/dist/integrations/session-memory/SessionMemoryParser.js +271 -0
- package/dist/integrations/session-memory/SessionMemoryParser.js.map +1 -0
- package/dist/integrations/session-memory/SessionMemoryPipeline.d.ts +20 -0
- package/dist/integrations/session-memory/SessionMemoryPipeline.d.ts.map +1 -0
- package/dist/integrations/session-memory/SessionMemoryPipeline.js +60 -0
- package/dist/integrations/session-memory/SessionMemoryPipeline.js.map +1 -0
- package/dist/integrations/session-memory/SessionMemoryWatcher.d.ts +27 -0
- package/dist/integrations/session-memory/SessionMemoryWatcher.d.ts.map +1 -0
- package/dist/integrations/session-memory/SessionMemoryWatcher.js +145 -0
- package/dist/integrations/session-memory/SessionMemoryWatcher.js.map +1 -0
- package/dist/integrations/session-memory/index.d.ts +9 -0
- package/dist/integrations/session-memory/index.d.ts.map +1 -0
- package/dist/integrations/session-memory/index.js +6 -0
- package/dist/integrations/session-memory/index.js.map +1 -0
- package/dist/integrations/session-memory/types.d.ts +74 -0
- package/dist/integrations/session-memory/types.d.ts.map +1 -0
- package/dist/integrations/session-memory/types.js +22 -0
- package/dist/integrations/session-memory/types.js.map +1 -0
- package/dist/knowledge-graph/index.d.ts.map +1 -1
- package/dist/knowledge-graph/index.js.map +1 -1
- package/dist/mcp/BuddyCommands.d.ts +0 -1
- package/dist/mcp/BuddyCommands.d.ts.map +1 -1
- package/dist/mcp/BuddyCommands.js +49 -215
- package/dist/mcp/BuddyCommands.js.map +1 -1
- package/dist/mcp/HumanInLoopUI.d.ts +1 -1
- package/dist/mcp/HumanInLoopUI.d.ts.map +1 -1
- package/dist/mcp/ServerInitializer.d.ts +3 -18
- package/dist/mcp/ServerInitializer.d.ts.map +1 -1
- package/dist/mcp/ServerInitializer.js +8 -41
- package/dist/mcp/ServerInitializer.js.map +1 -1
- package/dist/mcp/SessionBootstrapper.d.ts +3 -1
- package/dist/mcp/SessionBootstrapper.d.ts.map +1 -1
- package/dist/mcp/SessionBootstrapper.js +37 -25
- package/dist/mcp/SessionBootstrapper.js.map +1 -1
- package/dist/mcp/ToolDefinitions.d.ts +1 -0
- package/dist/mcp/ToolDefinitions.d.ts.map +1 -1
- package/dist/mcp/ToolDefinitions.js +67 -243
- package/dist/mcp/ToolDefinitions.js.map +1 -1
- package/dist/mcp/ToolRouter.d.ts +6 -9
- package/dist/mcp/ToolRouter.d.ts.map +1 -1
- package/dist/mcp/ToolRouter.js +44 -74
- package/dist/mcp/ToolRouter.js.map +1 -1
- package/dist/mcp/handlers/BuddyHandlers.d.ts +1 -3
- package/dist/mcp/handlers/BuddyHandlers.d.ts.map +1 -1
- package/dist/mcp/handlers/BuddyHandlers.js +2 -4
- package/dist/mcp/handlers/BuddyHandlers.js.map +1 -1
- package/dist/mcp/handlers/BuddyRecordMistake.d.ts +1 -1
- package/dist/mcp/handlers/BuddyRecordMistake.d.ts.map +1 -1
- package/dist/mcp/handlers/BuddyRecordMistake.js +1 -1
- package/dist/mcp/handlers/BuddyRecordMistake.js.map +1 -1
- package/dist/mcp/handlers/ToolHandlers.d.ts +1 -21
- package/dist/mcp/handlers/ToolHandlers.d.ts.map +1 -1
- package/dist/mcp/handlers/ToolHandlers.js +73 -302
- package/dist/mcp/handlers/ToolHandlers.js.map +1 -1
- package/dist/mcp/handlers/index.d.ts +0 -1
- package/dist/mcp/handlers/index.d.ts.map +1 -1
- package/dist/mcp/handlers/index.js +0 -1
- package/dist/mcp/handlers/index.js.map +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/resources/best-practices.md +1 -1
- package/dist/mcp/resources/ccb-complete-guide.md +25 -70
- package/dist/mcp/resources/examples.md +1 -1
- package/dist/mcp/resources/handlers/TaskLogsHandler.d.ts.map +1 -1
- package/dist/mcp/resources/handlers/TaskLogsHandler.js +3 -4
- package/dist/mcp/resources/handlers/TaskLogsHandler.js.map +1 -1
- package/dist/mcp/resources/quick-reference.md +1 -1
- package/dist/mcp/resources/usage-guide.md +1 -1
- package/dist/mcp/schemas/OutputSchemas.d.ts +34 -372
- package/dist/mcp/schemas/OutputSchemas.d.ts.map +1 -1
- package/dist/mcp/schemas/OutputSchemas.js +17 -206
- package/dist/mcp/schemas/OutputSchemas.js.map +1 -1
- package/dist/mcp/server-bootstrap.js +37 -90
- package/dist/mcp/server-bootstrap.js.map +1 -1
- package/dist/mcp/server.d.ts +0 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +16 -29
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/buddy-do.d.ts +1 -2
- package/dist/mcp/tools/buddy-do.d.ts.map +1 -1
- package/dist/mcp/tools/buddy-do.js +5 -27
- package/dist/mcp/tools/buddy-do.js.map +1 -1
- package/dist/mcp/tools/buddy-remember.d.ts +14 -1
- package/dist/mcp/tools/buddy-remember.d.ts.map +1 -1
- package/dist/mcp/tools/buddy-remember.js +154 -13
- package/dist/mcp/tools/buddy-remember.js.map +1 -1
- package/dist/mcp/tools/memesh-cloud-sync.d.ts +30 -0
- package/dist/mcp/tools/memesh-cloud-sync.d.ts.map +1 -0
- package/dist/mcp/tools/memesh-cloud-sync.js +185 -0
- package/dist/mcp/tools/memesh-cloud-sync.js.map +1 -0
- package/dist/mcp/validation.d.ts +1 -58
- package/dist/mcp/validation.d.ts.map +1 -1
- package/dist/mcp/validation.js +0 -47
- package/dist/mcp/validation.js.map +1 -1
- package/dist/memory/SmartMemoryQuery.d.ts.map +1 -1
- package/dist/memory/SmartMemoryQuery.js +3 -2
- package/dist/memory/SmartMemoryQuery.js.map +1 -1
- package/dist/memory/UnifiedMemoryStore.js +1 -1
- package/dist/memory/UnifiedMemoryStore.js.map +1 -1
- package/dist/memory/types/pattern-types.d.ts +1 -1
- package/dist/memory/types/pattern-types.d.ts.map +1 -1
- package/dist/prompts/templates/PromptTemplates.d.ts +1 -1
- package/dist/prompts/templates/PromptTemplates.d.ts.map +1 -1
- package/dist/prompts/templates/PromptTemplates.js.map +1 -1
- package/dist/telemetry/TelemetryStore.d.ts.map +1 -1
- package/dist/telemetry/TelemetryStore.js.map +1 -1
- package/dist/types/AgentClassification.d.ts +24 -0
- package/dist/types/AgentClassification.d.ts.map +1 -1
- package/dist/types/AgentClassification.js +12 -0
- package/dist/types/AgentClassification.js.map +1 -1
- package/dist/ui/UIEventBus.js +2 -2
- package/dist/ui/UIEventBus.js.map +1 -1
- package/dist/ui/design-tokens.d.ts.map +1 -1
- package/dist/ui/design-tokens.js +6 -7
- package/dist/ui/design-tokens.js.map +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/logger.js.map +1 -1
- package/package.json +7 -5
- package/plugin.json +1 -1
- package/scripts/postinstall.js +10 -67
- package/dist/a2a/client/A2AClient.d.ts +0 -23
- package/dist/a2a/client/A2AClient.d.ts.map +0 -1
- package/dist/a2a/client/A2AClient.js +0 -260
- package/dist/a2a/client/A2AClient.js.map +0 -1
- package/dist/a2a/client/index.d.ts +0 -2
- package/dist/a2a/client/index.d.ts.map +0 -1
- package/dist/a2a/client/index.js +0 -2
- package/dist/a2a/client/index.js.map +0 -1
- package/dist/a2a/constants.d.ts +0 -34
- package/dist/a2a/constants.d.ts.map +0 -1
- package/dist/a2a/constants.js +0 -34
- package/dist/a2a/constants.js.map +0 -1
- package/dist/a2a/delegator/MCPTaskDelegator.d.ts +0 -19
- package/dist/a2a/delegator/MCPTaskDelegator.d.ts.map +0 -1
- package/dist/a2a/delegator/MCPTaskDelegator.js +0 -184
- package/dist/a2a/delegator/MCPTaskDelegator.js.map +0 -1
- package/dist/a2a/delegator/index.d.ts +0 -3
- package/dist/a2a/delegator/index.d.ts.map +0 -1
- package/dist/a2a/delegator/index.js +0 -2
- package/dist/a2a/delegator/index.js.map +0 -1
- package/dist/a2a/delegator/types.d.ts +0 -9
- package/dist/a2a/delegator/types.d.ts.map +0 -1
- package/dist/a2a/delegator/types.js +0 -2
- package/dist/a2a/delegator/types.js.map +0 -1
- package/dist/a2a/errors/ErrorCodes.d.ts +0 -26
- package/dist/a2a/errors/ErrorCodes.d.ts.map +0 -1
- package/dist/a2a/errors/ErrorCodes.js +0 -25
- package/dist/a2a/errors/ErrorCodes.js.map +0 -1
- package/dist/a2a/errors/ErrorMessages.d.ts +0 -28
- package/dist/a2a/errors/ErrorMessages.d.ts.map +0 -1
- package/dist/a2a/errors/ErrorMessages.js +0 -51
- package/dist/a2a/errors/ErrorMessages.js.map +0 -1
- package/dist/a2a/errors/index.d.ts +0 -3
- package/dist/a2a/errors/index.d.ts.map +0 -1
- package/dist/a2a/errors/index.js +0 -3
- package/dist/a2a/errors/index.js.map +0 -1
- package/dist/a2a/executor/TaskExecutor.d.ts +0 -11
- package/dist/a2a/executor/TaskExecutor.d.ts.map +0 -1
- package/dist/a2a/executor/TaskExecutor.js +0 -15
- package/dist/a2a/executor/TaskExecutor.js.map +0 -1
- package/dist/a2a/executor/index.d.ts +0 -2
- package/dist/a2a/executor/index.d.ts.map +0 -1
- package/dist/a2a/executor/index.js +0 -2
- package/dist/a2a/executor/index.js.map +0 -1
- package/dist/a2a/jobs/TimeoutChecker.d.ts +0 -49
- package/dist/a2a/jobs/TimeoutChecker.d.ts.map +0 -1
- package/dist/a2a/jobs/TimeoutChecker.js +0 -176
- package/dist/a2a/jobs/TimeoutChecker.js.map +0 -1
- package/dist/a2a/metrics/A2AMetrics.d.ts +0 -38
- package/dist/a2a/metrics/A2AMetrics.d.ts.map +0 -1
- package/dist/a2a/metrics/A2AMetrics.js +0 -142
- package/dist/a2a/metrics/A2AMetrics.js.map +0 -1
- package/dist/a2a/metrics/index.d.ts +0 -3
- package/dist/a2a/metrics/index.d.ts.map +0 -1
- package/dist/a2a/metrics/index.js +0 -2
- package/dist/a2a/metrics/index.js.map +0 -1
- package/dist/a2a/server/A2AServer.d.ts +0 -34
- package/dist/a2a/server/A2AServer.d.ts.map +0 -1
- package/dist/a2a/server/A2AServer.js +0 -160
- package/dist/a2a/server/A2AServer.js.map +0 -1
- package/dist/a2a/server/index.d.ts +0 -4
- package/dist/a2a/server/index.d.ts.map +0 -1
- package/dist/a2a/server/index.js +0 -4
- package/dist/a2a/server/index.js.map +0 -1
- package/dist/a2a/server/middleware/auth.d.ts +0 -6
- package/dist/a2a/server/middleware/auth.d.ts.map +0 -1
- package/dist/a2a/server/middleware/auth.js +0 -64
- package/dist/a2a/server/middleware/auth.js.map +0 -1
- package/dist/a2a/server/middleware/csrf.d.ts +0 -7
- package/dist/a2a/server/middleware/csrf.d.ts.map +0 -1
- package/dist/a2a/server/middleware/csrf.js +0 -169
- package/dist/a2a/server/middleware/csrf.js.map +0 -1
- package/dist/a2a/server/middleware/rateLimit.d.ts +0 -9
- package/dist/a2a/server/middleware/rateLimit.d.ts.map +0 -1
- package/dist/a2a/server/middleware/rateLimit.js +0 -192
- package/dist/a2a/server/middleware/rateLimit.js.map +0 -1
- package/dist/a2a/server/middleware/resourceProtection.d.ts +0 -17
- package/dist/a2a/server/middleware/resourceProtection.d.ts.map +0 -1
- package/dist/a2a/server/middleware/resourceProtection.js +0 -258
- package/dist/a2a/server/middleware/resourceProtection.js.map +0 -1
- package/dist/a2a/server/middleware/timeout.d.ts +0 -4
- package/dist/a2a/server/middleware/timeout.d.ts.map +0 -1
- package/dist/a2a/server/middleware/timeout.js +0 -56
- package/dist/a2a/server/middleware/timeout.js.map +0 -1
- package/dist/a2a/server/middleware.d.ts +0 -6
- package/dist/a2a/server/middleware.d.ts.map +0 -1
- package/dist/a2a/server/middleware.js +0 -72
- package/dist/a2a/server/middleware.js.map +0 -1
- package/dist/a2a/server/routes.d.ts +0 -18
- package/dist/a2a/server/routes.d.ts.map +0 -1
- package/dist/a2a/server/routes.js +0 -176
- package/dist/a2a/server/routes.js.map +0 -1
- package/dist/a2a/server/validation/index.d.ts +0 -2
- package/dist/a2a/server/validation/index.d.ts.map +0 -1
- package/dist/a2a/server/validation/index.js +0 -2
- package/dist/a2a/server/validation/index.js.map +0 -1
- package/dist/a2a/server/validation/sendMessageSchema.d.ts +0 -112
- package/dist/a2a/server/validation/sendMessageSchema.d.ts.map +0 -1
- package/dist/a2a/server/validation/sendMessageSchema.js +0 -143
- package/dist/a2a/server/validation/sendMessageSchema.js.map +0 -1
- package/dist/a2a/storage/AgentRegistry.d.ts +0 -26
- package/dist/a2a/storage/AgentRegistry.d.ts.map +0 -1
- package/dist/a2a/storage/AgentRegistry.js +0 -197
- package/dist/a2a/storage/AgentRegistry.js.map +0 -1
- package/dist/a2a/storage/TaskQueue.d.ts +0 -27
- package/dist/a2a/storage/TaskQueue.d.ts.map +0 -1
- package/dist/a2a/storage/TaskQueue.js +0 -339
- package/dist/a2a/storage/TaskQueue.js.map +0 -1
- package/dist/a2a/storage/index.d.ts +0 -3
- package/dist/a2a/storage/index.d.ts.map +0 -1
- package/dist/a2a/storage/index.js +0 -3
- package/dist/a2a/storage/index.js.map +0 -1
- package/dist/a2a/storage/inputValidation.d.ts +0 -18
- package/dist/a2a/storage/inputValidation.d.ts.map +0 -1
- package/dist/a2a/storage/inputValidation.js +0 -101
- package/dist/a2a/storage/inputValidation.js.map +0 -1
- package/dist/a2a/storage/registry-schemas.sql +0 -20
- package/dist/a2a/storage/schemas.sql +0 -64
- package/dist/a2a/types/agent-card.d.ts +0 -59
- package/dist/a2a/types/agent-card.d.ts.map +0 -1
- package/dist/a2a/types/agent-card.js +0 -2
- package/dist/a2a/types/agent-card.js.map +0 -1
- package/dist/a2a/types/index.d.ts +0 -6
- package/dist/a2a/types/index.d.ts.map +0 -1
- package/dist/a2a/types/index.js +0 -2
- package/dist/a2a/types/index.js.map +0 -1
- package/dist/a2a/types/message.d.ts +0 -16
- package/dist/a2a/types/message.d.ts.map +0 -1
- package/dist/a2a/types/message.js +0 -2
- package/dist/a2a/types/message.js.map +0 -1
- package/dist/a2a/types/protocol.d.ts +0 -60
- package/dist/a2a/types/protocol.d.ts.map +0 -1
- package/dist/a2a/types/protocol.js +0 -2
- package/dist/a2a/types/protocol.js.map +0 -1
- package/dist/a2a/types/rateLimit.d.ts +0 -26
- package/dist/a2a/types/rateLimit.d.ts.map +0 -1
- package/dist/a2a/types/rateLimit.js +0 -2
- package/dist/a2a/types/rateLimit.js.map +0 -1
- package/dist/a2a/types/task.d.ts +0 -73
- package/dist/a2a/types/task.d.ts.map +0 -1
- package/dist/a2a/types/task.js +0 -2
- package/dist/a2a/types/task.js.map +0 -1
- package/dist/agents/DevelopmentButler.d.ts +0 -89
- package/dist/agents/DevelopmentButler.d.ts.map +0 -1
- package/dist/agents/DevelopmentButler.js +0 -449
- package/dist/agents/DevelopmentButler.js.map +0 -1
- package/dist/agents/E2EHealingAgent.d.ts +0 -29
- package/dist/agents/E2EHealingAgent.d.ts.map +0 -1
- package/dist/agents/E2EHealingAgent.js +0 -148
- package/dist/agents/E2EHealingAgent.js.map +0 -1
- package/dist/agents/TestWriterAgent.d.ts +0 -26
- package/dist/agents/TestWriterAgent.d.ts.map +0 -1
- package/dist/agents/TestWriterAgent.js +0 -139
- package/dist/agents/TestWriterAgent.js.map +0 -1
- package/dist/agents/base/AgentExecutor.d.ts +0 -7
- package/dist/agents/base/AgentExecutor.d.ts.map +0 -1
- package/dist/agents/base/AgentExecutor.js +0 -13
- package/dist/agents/base/AgentExecutor.js.map +0 -1
- package/dist/agents/base/index.d.ts +0 -2
- package/dist/agents/base/index.d.ts.map +0 -1
- package/dist/agents/base/index.js +0 -2
- package/dist/agents/base/index.js.map +0 -1
- package/dist/agents/e2e-healing/analyzers/EvidenceCollector.d.ts +0 -24
- package/dist/agents/e2e-healing/analyzers/EvidenceCollector.d.ts.map +0 -1
- package/dist/agents/e2e-healing/analyzers/EvidenceCollector.js +0 -55
- package/dist/agents/e2e-healing/analyzers/EvidenceCollector.js.map +0 -1
- package/dist/agents/e2e-healing/analyzers/FailureAnalyzer.d.ts +0 -22
- package/dist/agents/e2e-healing/analyzers/FailureAnalyzer.d.ts.map +0 -1
- package/dist/agents/e2e-healing/analyzers/FailureAnalyzer.js +0 -36
- package/dist/agents/e2e-healing/analyzers/FailureAnalyzer.js.map +0 -1
- package/dist/agents/e2e-healing/config.d.ts +0 -4
- package/dist/agents/e2e-healing/config.d.ts.map +0 -1
- package/dist/agents/e2e-healing/config.js +0 -28
- package/dist/agents/e2e-healing/config.js.map +0 -1
- package/dist/agents/e2e-healing/generators/FixGenerator.d.ts +0 -21
- package/dist/agents/e2e-healing/generators/FixGenerator.d.ts.map +0 -1
- package/dist/agents/e2e-healing/generators/FixGenerator.js +0 -33
- package/dist/agents/e2e-healing/generators/FixGenerator.js.map +0 -1
- package/dist/agents/e2e-healing/orchestrator/TestOrchestrator.d.ts +0 -29
- package/dist/agents/e2e-healing/orchestrator/TestOrchestrator.d.ts.map +0 -1
- package/dist/agents/e2e-healing/orchestrator/TestOrchestrator.js +0 -70
- package/dist/agents/e2e-healing/orchestrator/TestOrchestrator.js.map +0 -1
- package/dist/agents/e2e-healing/policy/GraduatedAutonomyPolicy.d.ts +0 -30
- package/dist/agents/e2e-healing/policy/GraduatedAutonomyPolicy.d.ts.map +0 -1
- package/dist/agents/e2e-healing/policy/GraduatedAutonomyPolicy.js +0 -115
- package/dist/agents/e2e-healing/policy/GraduatedAutonomyPolicy.js.map +0 -1
- package/dist/agents/e2e-healing/runners/PlaywrightRunner.d.ts +0 -19
- package/dist/agents/e2e-healing/runners/PlaywrightRunner.d.ts.map +0 -1
- package/dist/agents/e2e-healing/runners/PlaywrightRunner.js +0 -79
- package/dist/agents/e2e-healing/runners/PlaywrightRunner.js.map +0 -1
- package/dist/agents/e2e-healing/safety/CircuitBreaker.d.ts +0 -26
- package/dist/agents/e2e-healing/safety/CircuitBreaker.d.ts.map +0 -1
- package/dist/agents/e2e-healing/safety/CircuitBreaker.js +0 -75
- package/dist/agents/e2e-healing/safety/CircuitBreaker.js.map +0 -1
- package/dist/agents/e2e-healing/safety/RollbackManager.d.ts +0 -31
- package/dist/agents/e2e-healing/safety/RollbackManager.d.ts.map +0 -1
- package/dist/agents/e2e-healing/safety/RollbackManager.js +0 -130
- package/dist/agents/e2e-healing/safety/RollbackManager.js.map +0 -1
- package/dist/agents/e2e-healing/safety/SafetyGate.d.ts +0 -21
- package/dist/agents/e2e-healing/safety/SafetyGate.d.ts.map +0 -1
- package/dist/agents/e2e-healing/safety/SafetyGate.js +0 -62
- package/dist/agents/e2e-healing/safety/SafetyGate.js.map +0 -1
- package/dist/agents/e2e-healing/safety/ScopeLimiter.d.ts +0 -14
- package/dist/agents/e2e-healing/safety/ScopeLimiter.d.ts.map +0 -1
- package/dist/agents/e2e-healing/safety/ScopeLimiter.js +0 -36
- package/dist/agents/e2e-healing/safety/ScopeLimiter.js.map +0 -1
- package/dist/agents/e2e-healing/sdk/AgentSDKAdapter.d.ts +0 -29
- package/dist/agents/e2e-healing/sdk/AgentSDKAdapter.d.ts.map +0 -1
- package/dist/agents/e2e-healing/sdk/AgentSDKAdapter.js +0 -86
- package/dist/agents/e2e-healing/sdk/AgentSDKAdapter.js.map +0 -1
- package/dist/agents/e2e-healing/types.d.ts +0 -46
- package/dist/agents/e2e-healing/types.d.ts.map +0 -1
- package/dist/agents/e2e-healing/types.js +0 -2
- package/dist/agents/e2e-healing/types.js.map +0 -1
- package/dist/agents/knowledge/KnowledgeGraph.d.ts +0 -26
- package/dist/agents/knowledge/KnowledgeGraph.d.ts.map +0 -1
- package/dist/agents/knowledge/KnowledgeGraph.js +0 -106
- package/dist/agents/knowledge/KnowledgeGraph.js.map +0 -1
- package/dist/agents/knowledge/KnowledgeGraphSQLite.d.ts +0 -42
- package/dist/agents/knowledge/KnowledgeGraphSQLite.d.ts.map +0 -1
- package/dist/agents/knowledge/KnowledgeGraphSQLite.js +0 -349
- package/dist/agents/knowledge/KnowledgeGraphSQLite.js.map +0 -1
- package/dist/agents/knowledge/index.d.ts +0 -94
- package/dist/agents/knowledge/index.d.ts.map +0 -1
- package/dist/agents/knowledge/index.js +0 -296
- package/dist/agents/knowledge/index.js.map +0 -1
- package/dist/agents/knowledge/storage/KnowledgeGraphStore.d.ts +0 -25
- package/dist/agents/knowledge/storage/KnowledgeGraphStore.d.ts.map +0 -1
- package/dist/agents/knowledge/storage/KnowledgeGraphStore.js +0 -344
- package/dist/agents/knowledge/storage/KnowledgeGraphStore.js.map +0 -1
- package/dist/agents/knowledge/types.d.ts +0 -21
- package/dist/agents/knowledge/types.d.ts.map +0 -1
- package/dist/agents/knowledge/types.js +0 -2
- package/dist/agents/knowledge/types.js.map +0 -1
- package/dist/agents/templates/ci-templates.d.ts +0 -8
- package/dist/agents/templates/ci-templates.d.ts.map +0 -1
- package/dist/agents/templates/ci-templates.js +0 -119
- package/dist/agents/templates/ci-templates.js.map +0 -1
- package/dist/agents/templates/test-templates.d.ts +0 -18
- package/dist/agents/templates/test-templates.d.ts.map +0 -1
- package/dist/agents/templates/test-templates.js +0 -22
- package/dist/agents/templates/test-templates.js.map +0 -1
- package/dist/core/BackgroundExecutor.d.ts +0 -62
- package/dist/core/BackgroundExecutor.d.ts.map +0 -1
- package/dist/core/BackgroundExecutor.js +0 -600
- package/dist/core/BackgroundExecutor.js.map +0 -1
- package/dist/core/ClaudeMdRuleExtractor.d.ts +0 -16
- package/dist/core/ClaudeMdRuleExtractor.d.ts.map +0 -1
- package/dist/core/ClaudeMdRuleExtractor.js +0 -231
- package/dist/core/ClaudeMdRuleExtractor.js.map +0 -1
- package/dist/core/ExecutionMonitor.d.ts +0 -29
- package/dist/core/ExecutionMonitor.d.ts.map +0 -1
- package/dist/core/ExecutionMonitor.js +0 -124
- package/dist/core/ExecutionMonitor.js.map +0 -1
- package/dist/core/ExecutionQueue.d.ts +0 -21
- package/dist/core/ExecutionQueue.d.ts.map +0 -1
- package/dist/core/ExecutionQueue.js +0 -104
- package/dist/core/ExecutionQueue.js.map +0 -1
- package/dist/core/PromptEnhancer.d.ts +0 -13
- package/dist/core/PromptEnhancer.d.ts.map +0 -1
- package/dist/core/PromptEnhancer.js +0 -112
- package/dist/core/PromptEnhancer.js.map +0 -1
- package/dist/core/ResultHandler.d.ts +0 -9
- package/dist/core/ResultHandler.d.ts.map +0 -1
- package/dist/core/ResultHandler.js +0 -72
- package/dist/core/ResultHandler.js.map +0 -1
- package/dist/core/SessionContextMonitor.d.ts +0 -41
- package/dist/core/SessionContextMonitor.d.ts.map +0 -1
- package/dist/core/SessionContextMonitor.js +0 -159
- package/dist/core/SessionContextMonitor.js.map +0 -1
- package/dist/core/SessionTokenTracker.d.ts +0 -43
- package/dist/core/SessionTokenTracker.d.ts.map +0 -1
- package/dist/core/SessionTokenTracker.js +0 -132
- package/dist/core/SessionTokenTracker.js.map +0 -1
- package/dist/core/SkillsKnowledgeIntegrator.d.ts +0 -28
- package/dist/core/SkillsKnowledgeIntegrator.d.ts.map +0 -1
- package/dist/core/SkillsKnowledgeIntegrator.js +0 -149
- package/dist/core/SkillsKnowledgeIntegrator.js.map +0 -1
- package/dist/core/TaskScheduler.d.ts +0 -19
- package/dist/core/TaskScheduler.d.ts.map +0 -1
- package/dist/core/TaskScheduler.js +0 -59
- package/dist/core/TaskScheduler.js.map +0 -1
- package/dist/core/WorkflowEnforcementEngine.d.ts +0 -46
- package/dist/core/WorkflowEnforcementEngine.d.ts.map +0 -1
- package/dist/core/WorkflowEnforcementEngine.js +0 -277
- package/dist/core/WorkflowEnforcementEngine.js.map +0 -1
- package/dist/core/WorkflowGuidanceEngine.d.ts +0 -42
- package/dist/core/WorkflowGuidanceEngine.d.ts.map +0 -1
- package/dist/core/WorkflowGuidanceEngine.js +0 -141
- package/dist/core/WorkflowGuidanceEngine.js.map +0 -1
- package/dist/evolution/ABTestManager.d.ts +0 -21
- package/dist/evolution/ABTestManager.d.ts.map +0 -1
- package/dist/evolution/ABTestManager.js +0 -262
- package/dist/evolution/ABTestManager.js.map +0 -1
- package/dist/evolution/AgentEvolutionConfig.d.ts +0 -32
- package/dist/evolution/AgentEvolutionConfig.d.ts.map +0 -1
- package/dist/evolution/AgentEvolutionConfig.js +0 -311
- package/dist/evolution/AgentEvolutionConfig.js.map +0 -1
- package/dist/evolution/CloudEvolutionClient.d.ts +0 -39
- package/dist/evolution/CloudEvolutionClient.d.ts.map +0 -1
- package/dist/evolution/CloudEvolutionClient.js +0 -35
- package/dist/evolution/CloudEvolutionClient.js.map +0 -1
- package/dist/evolution/ContextMatcher.d.ts +0 -24
- package/dist/evolution/ContextMatcher.d.ts.map +0 -1
- package/dist/evolution/ContextMatcher.js +0 -85
- package/dist/evolution/ContextMatcher.js.map +0 -1
- package/dist/evolution/EvolutionBootstrap.d.ts +0 -69
- package/dist/evolution/EvolutionBootstrap.d.ts.map +0 -1
- package/dist/evolution/EvolutionBootstrap.js +0 -332
- package/dist/evolution/EvolutionBootstrap.js.map +0 -1
- package/dist/evolution/EvolutionMonitor.d.ts +0 -10
- package/dist/evolution/EvolutionMonitor.d.ts.map +0 -1
- package/dist/evolution/EvolutionMonitor.js +0 -17
- package/dist/evolution/EvolutionMonitor.js.map +0 -1
- package/dist/evolution/FeedbackCollector.d.ts +0 -19
- package/dist/evolution/FeedbackCollector.d.ts.map +0 -1
- package/dist/evolution/FeedbackCollector.js +0 -40
- package/dist/evolution/FeedbackCollector.js.map +0 -1
- package/dist/evolution/KnowledgeTransferManager.d.ts +0 -16
- package/dist/evolution/KnowledgeTransferManager.d.ts.map +0 -1
- package/dist/evolution/KnowledgeTransferManager.js +0 -50
- package/dist/evolution/KnowledgeTransferManager.js.map +0 -1
- package/dist/evolution/LearningManager.d.ts +0 -18
- package/dist/evolution/LearningManager.d.ts.map +0 -1
- package/dist/evolution/LearningManager.js +0 -87
- package/dist/evolution/LearningManager.js.map +0 -1
- package/dist/evolution/LocalMistakeDetector.d.ts +0 -20
- package/dist/evolution/LocalMistakeDetector.d.ts.map +0 -1
- package/dist/evolution/LocalMistakeDetector.js +0 -233
- package/dist/evolution/LocalMistakeDetector.js.map +0 -1
- package/dist/evolution/MultiObjectiveOptimizer.d.ts +0 -9
- package/dist/evolution/MultiObjectiveOptimizer.d.ts.map +0 -1
- package/dist/evolution/MultiObjectiveOptimizer.js +0 -107
- package/dist/evolution/MultiObjectiveOptimizer.js.map +0 -1
- package/dist/evolution/PatternExplainer.d.ts +0 -14
- package/dist/evolution/PatternExplainer.d.ts.map +0 -1
- package/dist/evolution/PatternExplainer.js +0 -113
- package/dist/evolution/PatternExplainer.js.map +0 -1
- package/dist/evolution/PerformanceTracker.d.ts +0 -29
- package/dist/evolution/PerformanceTracker.d.ts.map +0 -1
- package/dist/evolution/PerformanceTracker.js +0 -351
- package/dist/evolution/PerformanceTracker.js.map +0 -1
- package/dist/evolution/StatisticalAnalyzer.d.ts +0 -21
- package/dist/evolution/StatisticalAnalyzer.d.ts.map +0 -1
- package/dist/evolution/StatisticalAnalyzer.js +0 -271
- package/dist/evolution/StatisticalAnalyzer.js.map +0 -1
- package/dist/evolution/TransferabilityChecker.d.ts +0 -11
- package/dist/evolution/TransferabilityChecker.d.ts.map +0 -1
- package/dist/evolution/TransferabilityChecker.js +0 -78
- package/dist/evolution/TransferabilityChecker.js.map +0 -1
- package/dist/evolution/index.d.ts +0 -8
- package/dist/evolution/index.d.ts.map +0 -1
- package/dist/evolution/index.js +0 -6
- package/dist/evolution/index.js.map +0 -1
- package/dist/evolution/instrumentation/SpanTracker.d.ts +0 -64
- package/dist/evolution/instrumentation/SpanTracker.d.ts.map +0 -1
- package/dist/evolution/instrumentation/SpanTracker.js +0 -229
- package/dist/evolution/instrumentation/SpanTracker.js.map +0 -1
- package/dist/evolution/instrumentation/withEvolutionTracking.d.ts +0 -19
- package/dist/evolution/instrumentation/withEvolutionTracking.d.ts.map +0 -1
- package/dist/evolution/instrumentation/withEvolutionTracking.js +0 -253
- package/dist/evolution/instrumentation/withEvolutionTracking.js.map +0 -1
- package/dist/evolution/integration-test-scenarios.d.ts +0 -56
- package/dist/evolution/integration-test-scenarios.d.ts.map +0 -1
- package/dist/evolution/integration-test-scenarios.js +0 -131
- package/dist/evolution/integration-test-scenarios.js.map +0 -1
- package/dist/evolution/links/LinkManager.d.ts +0 -17
- package/dist/evolution/links/LinkManager.d.ts.map +0 -1
- package/dist/evolution/links/LinkManager.js +0 -41
- package/dist/evolution/links/LinkManager.js.map +0 -1
- package/dist/evolution/storage/EvolutionStore.d.ts +0 -87
- package/dist/evolution/storage/EvolutionStore.d.ts.map +0 -1
- package/dist/evolution/storage/EvolutionStore.js +0 -2
- package/dist/evolution/storage/EvolutionStore.js.map +0 -1
- package/dist/evolution/storage/IEvolutionStore.d.ts +0 -87
- package/dist/evolution/storage/IEvolutionStore.d.ts.map +0 -1
- package/dist/evolution/storage/IEvolutionStore.js +0 -2
- package/dist/evolution/storage/IEvolutionStore.js.map +0 -1
- package/dist/evolution/storage/SQLiteStore.d.ts +0 -116
- package/dist/evolution/storage/SQLiteStore.d.ts.map +0 -1
- package/dist/evolution/storage/SQLiteStore.js +0 -965
- package/dist/evolution/storage/SQLiteStore.js.map +0 -1
- package/dist/evolution/storage/deprecated/SQLiteStore.basic.d.ts +0 -109
- package/dist/evolution/storage/deprecated/SQLiteStore.basic.d.ts.map +0 -1
- package/dist/evolution/storage/deprecated/SQLiteStore.basic.js +0 -1033
- package/dist/evolution/storage/deprecated/SQLiteStore.basic.js.map +0 -1
- package/dist/evolution/storage/index.d.ts +0 -6
- package/dist/evolution/storage/index.d.ts.map +0 -1
- package/dist/evolution/storage/index.js +0 -3
- package/dist/evolution/storage/index.js.map +0 -1
- package/dist/evolution/storage/migrations/MigrationManager.d.ts +0 -17
- package/dist/evolution/storage/migrations/MigrationManager.d.ts.map +0 -1
- package/dist/evolution/storage/migrations/MigrationManager.js +0 -242
- package/dist/evolution/storage/migrations/MigrationManager.js.map +0 -1
- package/dist/evolution/storage/repositories/AdaptationRepository.d.ts +0 -17
- package/dist/evolution/storage/repositories/AdaptationRepository.d.ts.map +0 -1
- package/dist/evolution/storage/repositories/AdaptationRepository.js +0 -82
- package/dist/evolution/storage/repositories/AdaptationRepository.js.map +0 -1
- package/dist/evolution/storage/repositories/CostRecordsRepository.d.ts +0 -43
- package/dist/evolution/storage/repositories/CostRecordsRepository.d.ts.map +0 -1
- package/dist/evolution/storage/repositories/CostRecordsRepository.js +0 -157
- package/dist/evolution/storage/repositories/CostRecordsRepository.js.map +0 -1
- package/dist/evolution/storage/repositories/ExecutionRepository.d.ts +0 -12
- package/dist/evolution/storage/repositories/ExecutionRepository.d.ts.map +0 -1
- package/dist/evolution/storage/repositories/ExecutionRepository.js +0 -87
- package/dist/evolution/storage/repositories/ExecutionRepository.js.map +0 -1
- package/dist/evolution/storage/repositories/PatternRepository.d.ts +0 -12
- package/dist/evolution/storage/repositories/PatternRepository.d.ts.map +0 -1
- package/dist/evolution/storage/repositories/PatternRepository.js +0 -150
- package/dist/evolution/storage/repositories/PatternRepository.js.map +0 -1
- package/dist/evolution/storage/repositories/PerformanceMetricsRepository.d.ts +0 -39
- package/dist/evolution/storage/repositories/PerformanceMetricsRepository.d.ts.map +0 -1
- package/dist/evolution/storage/repositories/PerformanceMetricsRepository.js +0 -130
- package/dist/evolution/storage/repositories/PerformanceMetricsRepository.js.map +0 -1
- package/dist/evolution/storage/repositories/RewardRepository.d.ts +0 -17
- package/dist/evolution/storage/repositories/RewardRepository.d.ts.map +0 -1
- package/dist/evolution/storage/repositories/RewardRepository.js +0 -82
- package/dist/evolution/storage/repositories/RewardRepository.js.map +0 -1
- package/dist/evolution/storage/repositories/SpanRepository.d.ts +0 -14
- package/dist/evolution/storage/repositories/SpanRepository.d.ts.map +0 -1
- package/dist/evolution/storage/repositories/SpanRepository.js +0 -191
- package/dist/evolution/storage/repositories/SpanRepository.js.map +0 -1
- package/dist/evolution/storage/repositories/StatsRepository.d.ts +0 -16
- package/dist/evolution/storage/repositories/StatsRepository.d.ts.map +0 -1
- package/dist/evolution/storage/repositories/StatsRepository.js +0 -271
- package/dist/evolution/storage/repositories/StatsRepository.js.map +0 -1
- package/dist/evolution/storage/repositories/TaskRepository.d.ts +0 -16
- package/dist/evolution/storage/repositories/TaskRepository.d.ts.map +0 -1
- package/dist/evolution/storage/repositories/TaskRepository.js +0 -93
- package/dist/evolution/storage/repositories/TaskRepository.js.map +0 -1
- package/dist/evolution/storage/schema.d.ts +0 -81
- package/dist/evolution/storage/schema.d.ts.map +0 -1
- package/dist/evolution/storage/schema.js +0 -241
- package/dist/evolution/storage/schema.js.map +0 -1
- package/dist/evolution/storage/types.d.ts +0 -402
- package/dist/evolution/storage/types.d.ts.map +0 -1
- package/dist/evolution/storage/types.js +0 -2
- package/dist/evolution/storage/types.js.map +0 -1
- package/dist/evolution/storage/validation.d.ts +0 -11
- package/dist/evolution/storage/validation.d.ts.map +0 -1
- package/dist/evolution/storage/validation.js +0 -84
- package/dist/evolution/storage/validation.js.map +0 -1
- package/dist/evolution/types.d.ts +0 -248
- package/dist/evolution/types.d.ts.map +0 -1
- package/dist/evolution/types.js +0 -13
- package/dist/evolution/types.js.map +0 -1
- package/dist/hooks/a2a-collaboration.d.ts +0 -30
- package/dist/hooks/a2a-collaboration.d.ts.map +0 -1
- package/dist/hooks/a2a-collaboration.js +0 -400
- package/dist/hooks/a2a-collaboration.js.map +0 -1
- package/dist/mcp/handlers/A2AToolHandlers.d.ts +0 -17
- package/dist/mcp/handlers/A2AToolHandlers.d.ts.map +0 -1
- package/dist/mcp/handlers/A2AToolHandlers.js +0 -221
- package/dist/mcp/handlers/A2AToolHandlers.js.map +0 -1
- package/dist/mcp/tools/a2a-list-tasks.d.ts +0 -13
- package/dist/mcp/tools/a2a-list-tasks.d.ts.map +0 -1
- package/dist/mcp/tools/a2a-list-tasks.js +0 -24
- package/dist/mcp/tools/a2a-list-tasks.js.map +0 -1
- package/dist/mcp/tools/a2a-report-result.d.ts +0 -35
- package/dist/mcp/tools/a2a-report-result.d.ts.map +0 -1
- package/dist/mcp/tools/a2a-report-result.js +0 -73
- package/dist/mcp/tools/a2a-report-result.js.map +0 -1
- package/dist/orchestrator/AgentRouter.d.ts +0 -20
- package/dist/orchestrator/AgentRouter.d.ts.map +0 -1
- package/dist/orchestrator/AgentRouter.js +0 -275
- package/dist/orchestrator/AgentRouter.js.map +0 -1
- package/dist/orchestrator/CostTracker.d.ts +0 -25
- package/dist/orchestrator/CostTracker.d.ts.map +0 -1
- package/dist/orchestrator/CostTracker.js +0 -199
- package/dist/orchestrator/CostTracker.js.map +0 -1
- package/dist/orchestrator/GlobalResourcePool.d.ts +0 -59
- package/dist/orchestrator/GlobalResourcePool.d.ts.map +0 -1
- package/dist/orchestrator/GlobalResourcePool.js +0 -291
- package/dist/orchestrator/GlobalResourcePool.js.map +0 -1
- package/dist/orchestrator/TaskAnalyzer.d.ts +0 -15
- package/dist/orchestrator/TaskAnalyzer.d.ts.map +0 -1
- package/dist/orchestrator/TaskAnalyzer.js +0 -234
- package/dist/orchestrator/TaskAnalyzer.js.map +0 -1
- package/dist/orchestrator/example.d.ts +0 -2
- package/dist/orchestrator/example.d.ts.map +0 -1
- package/dist/orchestrator/example.js +0 -118
- package/dist/orchestrator/example.js.map +0 -1
- package/dist/orchestrator/index.d.ts +0 -82
- package/dist/orchestrator/index.d.ts.map +0 -1
- package/dist/orchestrator/index.js +0 -370
- package/dist/orchestrator/index.js.map +0 -1
- package/dist/orchestrator/router.d.ts +0 -43
- package/dist/orchestrator/router.d.ts.map +0 -1
- package/dist/orchestrator/router.js +0 -95
- package/dist/orchestrator/router.js.map +0 -1
- package/dist/orchestrator/types.d.ts +0 -60
- package/dist/orchestrator/types.d.ts.map +0 -1
- package/dist/orchestrator/types.js +0 -2
- package/dist/orchestrator/types.js.map +0 -1
- package/dist/planning/TaskDecomposer.d.ts +0 -32
- package/dist/planning/TaskDecomposer.d.ts.map +0 -1
- package/dist/planning/TaskDecomposer.js +0 -152
- package/dist/planning/TaskDecomposer.js.map +0 -1
|
@@ -10,17 +10,11 @@ import { createRelationsTool } from '../tools/create-relations.js';
|
|
|
10
10
|
import { generateTestsTool } from '../tools/generate-tests.js';
|
|
11
11
|
import { handleBuddyRecordMistake } from './BuddyRecordMistake.js';
|
|
12
12
|
import { handleError, logError } from '../../utils/errorHandler.js';
|
|
13
|
-
import { ListSkillsInputSchema, UninstallInputSchema,
|
|
13
|
+
import { ListSkillsInputSchema, UninstallInputSchema, HookToolUseInputSchema, RecallMemoryInputSchema, CreateEntitiesInputSchema, AddObservationsInputSchema, CreateRelationsInputSchema, GenerateTestsInputSchema, formatValidationError, } from '../validation.js';
|
|
14
14
|
export class ToolHandlers {
|
|
15
|
-
router;
|
|
16
15
|
agentRegistry;
|
|
17
|
-
feedbackCollector;
|
|
18
|
-
performanceTracker;
|
|
19
|
-
learningManager;
|
|
20
|
-
evolutionMonitor;
|
|
21
16
|
skillManager;
|
|
22
17
|
uninstallManager;
|
|
23
|
-
developmentButler;
|
|
24
18
|
checkpointDetector;
|
|
25
19
|
hookIntegration;
|
|
26
20
|
projectMemoryManager;
|
|
@@ -31,16 +25,10 @@ export class ToolHandlers {
|
|
|
31
25
|
unifiedMemoryStore;
|
|
32
26
|
mistakePatternEngine;
|
|
33
27
|
userPreferenceEngine;
|
|
34
|
-
constructor(
|
|
35
|
-
this.router = router;
|
|
28
|
+
constructor(agentRegistry, skillManager, uninstallManager, checkpointDetector, hookIntegration, projectMemoryManager, knowledgeGraph, ui, samplingClient, unifiedMemoryStore) {
|
|
36
29
|
this.agentRegistry = agentRegistry;
|
|
37
|
-
this.feedbackCollector = feedbackCollector;
|
|
38
|
-
this.performanceTracker = performanceTracker;
|
|
39
|
-
this.learningManager = learningManager;
|
|
40
|
-
this.evolutionMonitor = evolutionMonitor;
|
|
41
30
|
this.skillManager = skillManager;
|
|
42
31
|
this.uninstallManager = uninstallManager;
|
|
43
|
-
this.developmentButler = developmentButler;
|
|
44
32
|
this.checkpointDetector = checkpointDetector;
|
|
45
33
|
this.hookIntegration = hookIntegration;
|
|
46
34
|
this.projectMemoryManager = projectMemoryManager;
|
|
@@ -75,26 +63,26 @@ export class ToolHandlers {
|
|
|
75
63
|
switch (filter) {
|
|
76
64
|
case 'claude-code-buddy':
|
|
77
65
|
skills = await this.skillManager.listSmartAgentsSkills();
|
|
78
|
-
title = '
|
|
66
|
+
title = 'MeMesh Skills (sa: prefix)';
|
|
79
67
|
break;
|
|
80
68
|
case 'user':
|
|
81
69
|
skills = await this.skillManager.listUserSkills();
|
|
82
|
-
title = '
|
|
70
|
+
title = 'User Skills';
|
|
83
71
|
break;
|
|
84
72
|
case 'all':
|
|
85
73
|
default:
|
|
86
74
|
const allSkillsMetadata = await this.skillManager.listAllSkills();
|
|
87
75
|
skills = allSkillsMetadata.map(s => s.name);
|
|
88
|
-
title = '
|
|
76
|
+
title = 'All Skills';
|
|
89
77
|
break;
|
|
90
78
|
}
|
|
91
79
|
let output = `${title}\n`;
|
|
92
|
-
output += '
|
|
80
|
+
output += '='.repeat(60) + '\n\n';
|
|
93
81
|
if (skills.length === 0) {
|
|
94
82
|
output += ' No skills found.\n\n';
|
|
95
83
|
if (filter === 'claude-code-buddy') {
|
|
96
|
-
output += '
|
|
97
|
-
output += '
|
|
84
|
+
output += 'MeMesh can generate skills automatically.\n';
|
|
85
|
+
output += 'Skills will appear here once generated.\n';
|
|
98
86
|
}
|
|
99
87
|
}
|
|
100
88
|
else {
|
|
@@ -103,37 +91,37 @@ export class ToolHandlers {
|
|
|
103
91
|
const userSkills = skills.filter(s => !s.startsWith('sa:'));
|
|
104
92
|
if (filter === 'all') {
|
|
105
93
|
if (saSkills.length > 0) {
|
|
106
|
-
output += '
|
|
107
|
-
output += '
|
|
94
|
+
output += 'MeMesh Skills:\n';
|
|
95
|
+
output += '-'.repeat(60) + '\n';
|
|
108
96
|
saSkills.forEach(skill => {
|
|
109
|
-
output += `
|
|
97
|
+
output += ` - ${skill}\n`;
|
|
110
98
|
});
|
|
111
99
|
output += '\n';
|
|
112
100
|
}
|
|
113
101
|
if (userSkills.length > 0) {
|
|
114
|
-
output += '
|
|
115
|
-
output += '
|
|
102
|
+
output += 'User Skills:\n';
|
|
103
|
+
output += '-'.repeat(60) + '\n';
|
|
116
104
|
userSkills.forEach(skill => {
|
|
117
|
-
output += `
|
|
105
|
+
output += ` - ${skill}\n`;
|
|
118
106
|
});
|
|
119
107
|
output += '\n';
|
|
120
108
|
}
|
|
121
109
|
}
|
|
122
110
|
else {
|
|
123
111
|
skills.forEach(skill => {
|
|
124
|
-
output += `
|
|
112
|
+
output += ` - ${skill}\n`;
|
|
125
113
|
});
|
|
126
114
|
output += '\n';
|
|
127
115
|
}
|
|
128
116
|
}
|
|
129
|
-
output += '
|
|
130
|
-
output += '\
|
|
131
|
-
output += '
|
|
132
|
-
output += '
|
|
133
|
-
output += '
|
|
134
|
-
output += '\
|
|
135
|
-
output += '
|
|
136
|
-
output += '
|
|
117
|
+
output += '='.repeat(60) + '\n';
|
|
118
|
+
output += '\nUsage:\n';
|
|
119
|
+
output += ' - buddy_skills - List all skills\n';
|
|
120
|
+
output += ' - buddy_skills --filter claude-code-buddy - List only sa: skills\n';
|
|
121
|
+
output += ' - buddy_skills --filter user - List only user skills\n';
|
|
122
|
+
output += '\nSkill Naming Convention:\n';
|
|
123
|
+
output += ' - sa:<name> - MeMesh generated skills\n';
|
|
124
|
+
output += ' - <name> - User-installed skills\n';
|
|
137
125
|
return {
|
|
138
126
|
content: [
|
|
139
127
|
{
|
|
@@ -158,7 +146,7 @@ export class ToolHandlers {
|
|
|
158
146
|
content: [
|
|
159
147
|
{
|
|
160
148
|
type: 'text',
|
|
161
|
-
text:
|
|
149
|
+
text: `List skills failed: ${handled.message}`,
|
|
162
150
|
},
|
|
163
151
|
],
|
|
164
152
|
};
|
|
@@ -207,184 +195,7 @@ export class ToolHandlers {
|
|
|
207
195
|
content: [
|
|
208
196
|
{
|
|
209
197
|
type: 'text',
|
|
210
|
-
text:
|
|
211
|
-
},
|
|
212
|
-
],
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
async handleGetWorkflowGuidance(args) {
|
|
217
|
-
try {
|
|
218
|
-
let validatedInput;
|
|
219
|
-
try {
|
|
220
|
-
validatedInput = WorkflowGuidanceInputSchema.parse(args);
|
|
221
|
-
}
|
|
222
|
-
catch (error) {
|
|
223
|
-
if (error instanceof z.ZodError) {
|
|
224
|
-
throw new ValidationError(formatValidationError(error), {
|
|
225
|
-
component: 'ToolHandlers',
|
|
226
|
-
method: 'handleGetWorkflowGuidance',
|
|
227
|
-
schema: 'WorkflowGuidanceInputSchema',
|
|
228
|
-
providedArgs: args,
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
throw error;
|
|
232
|
-
}
|
|
233
|
-
const normalizedPhase = this.normalizeWorkflowPhase(validatedInput.phase);
|
|
234
|
-
if (!normalizedPhase) {
|
|
235
|
-
throw new ValidationError(`Invalid workflow phase: ${validatedInput.phase}`, {
|
|
236
|
-
component: 'ToolHandlers',
|
|
237
|
-
method: 'handleGetWorkflowGuidance',
|
|
238
|
-
validPhases: ['idle', 'code-written', 'test-complete', 'commit-ready', 'committed'],
|
|
239
|
-
providedPhase: validatedInput.phase,
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
const result = await this.developmentButler.processCheckpoint(normalizedPhase, {
|
|
243
|
-
...validatedInput,
|
|
244
|
-
phase: normalizedPhase,
|
|
245
|
-
});
|
|
246
|
-
return {
|
|
247
|
-
content: [
|
|
248
|
-
{
|
|
249
|
-
type: 'text',
|
|
250
|
-
text: result.formattedRequest,
|
|
251
|
-
},
|
|
252
|
-
],
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
catch (error) {
|
|
256
|
-
logError(error, {
|
|
257
|
-
component: 'ToolHandlers',
|
|
258
|
-
method: 'handleGetWorkflowGuidance',
|
|
259
|
-
operation: 'processing workflow checkpoint',
|
|
260
|
-
data: { phase: args?.phase },
|
|
261
|
-
});
|
|
262
|
-
const handled = handleError(error, {
|
|
263
|
-
component: 'ToolHandlers',
|
|
264
|
-
method: 'handleGetWorkflowGuidance',
|
|
265
|
-
});
|
|
266
|
-
return {
|
|
267
|
-
content: [
|
|
268
|
-
{
|
|
269
|
-
type: 'text',
|
|
270
|
-
text: `❌ Workflow guidance failed: ${handled.message}`,
|
|
271
|
-
},
|
|
272
|
-
],
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
async handleGetSessionHealth() {
|
|
277
|
-
try {
|
|
278
|
-
const health = this.developmentButler.getContextMonitor().checkSessionHealth();
|
|
279
|
-
return {
|
|
280
|
-
content: [
|
|
281
|
-
{
|
|
282
|
-
type: 'text',
|
|
283
|
-
text: JSON.stringify(health, null, 2),
|
|
284
|
-
},
|
|
285
|
-
],
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
catch (error) {
|
|
289
|
-
logError(error, {
|
|
290
|
-
component: 'ToolHandlers',
|
|
291
|
-
method: 'handleGetSessionHealth',
|
|
292
|
-
operation: 'checking session health',
|
|
293
|
-
});
|
|
294
|
-
const handled = handleError(error, {
|
|
295
|
-
component: 'ToolHandlers',
|
|
296
|
-
method: 'handleGetSessionHealth',
|
|
297
|
-
});
|
|
298
|
-
return {
|
|
299
|
-
content: [
|
|
300
|
-
{
|
|
301
|
-
type: 'text',
|
|
302
|
-
text: `❌ Session health check failed: ${handled.message}`,
|
|
303
|
-
},
|
|
304
|
-
],
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
async handleReloadContext(input) {
|
|
309
|
-
try {
|
|
310
|
-
const requestId = `manual_${Date.now()}`;
|
|
311
|
-
const result = await this.developmentButler.executeContextReload(requestId);
|
|
312
|
-
return {
|
|
313
|
-
content: [
|
|
314
|
-
{
|
|
315
|
-
type: 'text',
|
|
316
|
-
text: JSON.stringify(result, null, 2),
|
|
317
|
-
},
|
|
318
|
-
],
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
catch (error) {
|
|
322
|
-
logError(error, {
|
|
323
|
-
component: 'ToolHandlers',
|
|
324
|
-
method: 'handleReloadContext',
|
|
325
|
-
operation: 'reloading context',
|
|
326
|
-
data: { reason: input.reason },
|
|
327
|
-
});
|
|
328
|
-
const handled = handleError(error, {
|
|
329
|
-
component: 'ToolHandlers',
|
|
330
|
-
method: 'handleReloadContext',
|
|
331
|
-
});
|
|
332
|
-
return {
|
|
333
|
-
content: [
|
|
334
|
-
{
|
|
335
|
-
type: 'text',
|
|
336
|
-
text: `❌ Context reload failed: ${handled.message}`,
|
|
337
|
-
},
|
|
338
|
-
],
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
async handleRecordTokenUsage(args) {
|
|
343
|
-
try {
|
|
344
|
-
let validatedInput;
|
|
345
|
-
try {
|
|
346
|
-
validatedInput = RecordTokenUsageInputSchema.parse(args);
|
|
347
|
-
}
|
|
348
|
-
catch (error) {
|
|
349
|
-
if (error instanceof z.ZodError) {
|
|
350
|
-
throw new ValidationError(formatValidationError(error), {
|
|
351
|
-
component: 'ToolHandlers',
|
|
352
|
-
method: 'handleRecordTokenUsage',
|
|
353
|
-
schema: 'RecordTokenUsageInputSchema',
|
|
354
|
-
providedArgs: args,
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
throw error;
|
|
358
|
-
}
|
|
359
|
-
this.developmentButler.getTokenTracker().recordUsage({
|
|
360
|
-
inputTokens: validatedInput.inputTokens,
|
|
361
|
-
outputTokens: validatedInput.outputTokens,
|
|
362
|
-
});
|
|
363
|
-
return {
|
|
364
|
-
content: [
|
|
365
|
-
{
|
|
366
|
-
type: 'text',
|
|
367
|
-
text: JSON.stringify({ success: true }, null, 2),
|
|
368
|
-
},
|
|
369
|
-
],
|
|
370
|
-
};
|
|
371
|
-
}
|
|
372
|
-
catch (error) {
|
|
373
|
-
logError(error, {
|
|
374
|
-
component: 'ToolHandlers',
|
|
375
|
-
method: 'handleRecordTokenUsage',
|
|
376
|
-
operation: 'recording token usage',
|
|
377
|
-
data: { inputTokens: args?.inputTokens, outputTokens: args?.outputTokens },
|
|
378
|
-
});
|
|
379
|
-
const handled = handleError(error, {
|
|
380
|
-
component: 'ToolHandlers',
|
|
381
|
-
method: 'handleRecordTokenUsage',
|
|
382
|
-
});
|
|
383
|
-
return {
|
|
384
|
-
content: [
|
|
385
|
-
{
|
|
386
|
-
type: 'text',
|
|
387
|
-
text: `❌ Token usage recording failed: ${handled.message}`,
|
|
198
|
+
text: `Uninstall failed: ${handled.message}`,
|
|
388
199
|
},
|
|
389
200
|
],
|
|
390
201
|
};
|
|
@@ -439,7 +250,7 @@ export class ToolHandlers {
|
|
|
439
250
|
content: [
|
|
440
251
|
{
|
|
441
252
|
type: 'text',
|
|
442
|
-
text:
|
|
253
|
+
text: `Hook processing failed: ${handled.message}`,
|
|
443
254
|
},
|
|
444
255
|
],
|
|
445
256
|
};
|
|
@@ -470,11 +281,11 @@ export class ToolHandlers {
|
|
|
470
281
|
throw error;
|
|
471
282
|
}
|
|
472
283
|
const result = await recallMemoryTool.handler(validatedInput, this.projectMemoryManager);
|
|
473
|
-
let text = '
|
|
474
|
-
text += '
|
|
284
|
+
let text = 'Project Memory Recall\n';
|
|
285
|
+
text += '='.repeat(60) + '\n\n';
|
|
475
286
|
if (result.memories.length === 0) {
|
|
476
287
|
text += 'No memories found.\n\n';
|
|
477
|
-
text += '
|
|
288
|
+
text += 'Memories will be created as you work on the project.\n';
|
|
478
289
|
}
|
|
479
290
|
else {
|
|
480
291
|
text += `Found ${result.memories.length} recent memories:\n\n`;
|
|
@@ -492,7 +303,7 @@ export class ToolHandlers {
|
|
|
492
303
|
text += '\n';
|
|
493
304
|
});
|
|
494
305
|
}
|
|
495
|
-
text += '
|
|
306
|
+
text += '='.repeat(60) + '\n';
|
|
496
307
|
return {
|
|
497
308
|
content: [
|
|
498
309
|
{
|
|
@@ -517,19 +328,12 @@ export class ToolHandlers {
|
|
|
517
328
|
content: [
|
|
518
329
|
{
|
|
519
330
|
type: 'text',
|
|
520
|
-
text:
|
|
331
|
+
text: `Failed to recall memory: ${handled.message}`,
|
|
521
332
|
},
|
|
522
333
|
],
|
|
523
334
|
};
|
|
524
335
|
}
|
|
525
336
|
}
|
|
526
|
-
describeCapabilities(agentName) {
|
|
527
|
-
const agent = this.agentRegistry.getAgent(agentName);
|
|
528
|
-
if (!agent || !agent.capabilities || agent.capabilities.length === 0) {
|
|
529
|
-
return undefined;
|
|
530
|
-
}
|
|
531
|
-
return agent.capabilities.slice(0, 3).join(', ');
|
|
532
|
-
}
|
|
533
337
|
async handleCreateEntities(args) {
|
|
534
338
|
if (!this.memoryRateLimiter.consume()) {
|
|
535
339
|
throw new OperationError('Memory operation rate limit exceeded. Please try again later.', {
|
|
@@ -555,30 +359,30 @@ export class ToolHandlers {
|
|
|
555
359
|
throw error;
|
|
556
360
|
}
|
|
557
361
|
const result = await createEntitiesTool.handler(validatedInput, this.knowledgeGraph);
|
|
558
|
-
let text = '
|
|
559
|
-
text += '
|
|
362
|
+
let text = 'Knowledge Graph Entity Creation\n';
|
|
363
|
+
text += '='.repeat(60) + '\n\n';
|
|
560
364
|
if (result.count === 0) {
|
|
561
|
-
text += '
|
|
365
|
+
text += 'No entities were created.\n\n';
|
|
562
366
|
if (result.errors && result.errors.length > 0) {
|
|
563
367
|
text += 'Errors encountered:\n';
|
|
564
368
|
result.errors.forEach(error => {
|
|
565
|
-
text += `
|
|
369
|
+
text += ` - ${error.name}: ${error.error}\n`;
|
|
566
370
|
});
|
|
567
371
|
}
|
|
568
372
|
}
|
|
569
373
|
else {
|
|
570
|
-
text +=
|
|
374
|
+
text += `Successfully created ${result.count} ${result.count === 1 ? 'entity' : 'entities'}:\n\n`;
|
|
571
375
|
result.created.forEach((name, index) => {
|
|
572
376
|
text += `${index + 1}. ${name}\n`;
|
|
573
377
|
});
|
|
574
378
|
if (result.errors && result.errors.length > 0) {
|
|
575
|
-
text += '\
|
|
379
|
+
text += '\nSome entities failed:\n';
|
|
576
380
|
result.errors.forEach(error => {
|
|
577
|
-
text += `
|
|
381
|
+
text += ` - ${error.name}: ${error.error}\n`;
|
|
578
382
|
});
|
|
579
383
|
}
|
|
580
384
|
}
|
|
581
|
-
text += '\n' + '
|
|
385
|
+
text += '\n' + '='.repeat(60) + '\n';
|
|
582
386
|
return {
|
|
583
387
|
content: [
|
|
584
388
|
{
|
|
@@ -603,7 +407,7 @@ export class ToolHandlers {
|
|
|
603
407
|
content: [
|
|
604
408
|
{
|
|
605
409
|
type: 'text',
|
|
606
|
-
text:
|
|
410
|
+
text: `Failed to create entities: ${handled.message}`,
|
|
607
411
|
},
|
|
608
412
|
],
|
|
609
413
|
};
|
|
@@ -662,42 +466,42 @@ export class ToolHandlers {
|
|
|
662
466
|
throw error;
|
|
663
467
|
}
|
|
664
468
|
const result = await addObservationsTool.handler(validatedInput, this.knowledgeGraph);
|
|
665
|
-
let text = '
|
|
666
|
-
text += '
|
|
469
|
+
let text = 'Knowledge Graph Observation Update\n';
|
|
470
|
+
text += '='.repeat(60) + '\n\n';
|
|
667
471
|
if (result.count === 0) {
|
|
668
|
-
text += '
|
|
472
|
+
text += 'No observations were added.\n\n';
|
|
669
473
|
if (result.notFound && result.notFound.length > 0) {
|
|
670
474
|
text += 'Entities not found:\n';
|
|
671
475
|
result.notFound.forEach(name => {
|
|
672
|
-
text += `
|
|
476
|
+
text += ` - ${name}\n`;
|
|
673
477
|
});
|
|
674
478
|
}
|
|
675
479
|
if (result.errors && result.errors.length > 0) {
|
|
676
480
|
text += '\nErrors encountered:\n';
|
|
677
481
|
result.errors.forEach(error => {
|
|
678
|
-
text += `
|
|
482
|
+
text += ` - ${error.entityName}: ${error.error}\n`;
|
|
679
483
|
});
|
|
680
484
|
}
|
|
681
485
|
}
|
|
682
486
|
else {
|
|
683
|
-
text +=
|
|
487
|
+
text += `Successfully updated ${result.count} ${result.count === 1 ? 'entity' : 'entities'}:\n\n`;
|
|
684
488
|
result.updated.forEach((name, index) => {
|
|
685
489
|
text += `${index + 1}. ${name}\n`;
|
|
686
490
|
});
|
|
687
491
|
if (result.notFound && result.notFound.length > 0) {
|
|
688
|
-
text += '\
|
|
492
|
+
text += '\nSome entities were not found:\n';
|
|
689
493
|
result.notFound.forEach(name => {
|
|
690
|
-
text += `
|
|
494
|
+
text += ` - ${name}\n`;
|
|
691
495
|
});
|
|
692
496
|
}
|
|
693
497
|
if (result.errors && result.errors.length > 0) {
|
|
694
|
-
text += '\
|
|
498
|
+
text += '\nSome updates failed:\n';
|
|
695
499
|
result.errors.forEach(error => {
|
|
696
|
-
text += `
|
|
500
|
+
text += ` - ${error.entityName}: ${error.error}\n`;
|
|
697
501
|
});
|
|
698
502
|
}
|
|
699
503
|
}
|
|
700
|
-
text += '\n' + '
|
|
504
|
+
text += '\n' + '='.repeat(60) + '\n';
|
|
701
505
|
return {
|
|
702
506
|
content: [
|
|
703
507
|
{
|
|
@@ -722,7 +526,7 @@ export class ToolHandlers {
|
|
|
722
526
|
content: [
|
|
723
527
|
{
|
|
724
528
|
type: 'text',
|
|
725
|
-
text:
|
|
529
|
+
text: `Failed to add observations: ${handled.message}`,
|
|
726
530
|
},
|
|
727
531
|
],
|
|
728
532
|
};
|
|
@@ -753,42 +557,42 @@ export class ToolHandlers {
|
|
|
753
557
|
throw error;
|
|
754
558
|
}
|
|
755
559
|
const result = await createRelationsTool.handler(validatedInput, this.knowledgeGraph);
|
|
756
|
-
let text = '
|
|
757
|
-
text += '
|
|
560
|
+
let text = 'Knowledge Graph Relation Creation\n';
|
|
561
|
+
text += '='.repeat(60) + '\n\n';
|
|
758
562
|
if (result.count === 0) {
|
|
759
|
-
text += '
|
|
563
|
+
text += 'No relations were created.\n\n';
|
|
760
564
|
if (result.missingEntities && result.missingEntities.length > 0) {
|
|
761
565
|
text += 'Entities not found:\n';
|
|
762
566
|
result.missingEntities.forEach(name => {
|
|
763
|
-
text += `
|
|
567
|
+
text += ` - ${name}\n`;
|
|
764
568
|
});
|
|
765
569
|
}
|
|
766
570
|
if (result.errors && result.errors.length > 0) {
|
|
767
571
|
text += '\nErrors encountered:\n';
|
|
768
572
|
result.errors.forEach(error => {
|
|
769
|
-
text += `
|
|
573
|
+
text += ` - ${error.from} -> ${error.to}: ${error.error}\n`;
|
|
770
574
|
});
|
|
771
575
|
}
|
|
772
576
|
}
|
|
773
577
|
else {
|
|
774
|
-
text +=
|
|
578
|
+
text += `Successfully created ${result.count} ${result.count === 1 ? 'relation' : 'relations'}:\n\n`;
|
|
775
579
|
result.created.forEach((rel, index) => {
|
|
776
580
|
text += `${index + 1}. ${rel.from} --[${rel.type}]--> ${rel.to}\n`;
|
|
777
581
|
});
|
|
778
582
|
if (result.missingEntities && result.missingEntities.length > 0) {
|
|
779
|
-
text += '\
|
|
583
|
+
text += '\nSome entities were not found:\n';
|
|
780
584
|
result.missingEntities.forEach(name => {
|
|
781
|
-
text += `
|
|
585
|
+
text += ` - ${name}\n`;
|
|
782
586
|
});
|
|
783
587
|
}
|
|
784
588
|
if (result.errors && result.errors.length > 0) {
|
|
785
|
-
text += '\
|
|
589
|
+
text += '\nSome relations failed:\n';
|
|
786
590
|
result.errors.forEach(error => {
|
|
787
|
-
text += `
|
|
591
|
+
text += ` - ${error.from} -> ${error.to}: ${error.error}\n`;
|
|
788
592
|
});
|
|
789
593
|
}
|
|
790
594
|
}
|
|
791
|
-
text += '\n' + '
|
|
595
|
+
text += '\n' + '='.repeat(60) + '\n';
|
|
792
596
|
return {
|
|
793
597
|
content: [
|
|
794
598
|
{
|
|
@@ -813,7 +617,7 @@ export class ToolHandlers {
|
|
|
813
617
|
content: [
|
|
814
618
|
{
|
|
815
619
|
type: 'text',
|
|
816
|
-
text:
|
|
620
|
+
text: `Failed to create relations: ${handled.message}`,
|
|
817
621
|
},
|
|
818
622
|
],
|
|
819
623
|
};
|
|
@@ -824,18 +628,18 @@ export class ToolHandlers {
|
|
|
824
628
|
const validatedInput = GenerateTestsInputSchema.parse(args);
|
|
825
629
|
const input = validatedInput;
|
|
826
630
|
const result = await generateTestsTool(input, this.samplingClient);
|
|
827
|
-
let text = '
|
|
828
|
-
text += '
|
|
631
|
+
let text = 'Test Generation Result\n';
|
|
632
|
+
text += '='.repeat(60) + '\n\n';
|
|
829
633
|
text += `${result.message}\n\n`;
|
|
830
634
|
text += '```typescript\n';
|
|
831
635
|
text += result.testCode;
|
|
832
636
|
text += '\n```\n\n';
|
|
833
|
-
text += '
|
|
834
|
-
text += '\
|
|
835
|
-
text += '
|
|
836
|
-
text += '
|
|
837
|
-
text += '
|
|
838
|
-
text += '
|
|
637
|
+
text += '='.repeat(60) + '\n';
|
|
638
|
+
text += '\nNext Steps:\n';
|
|
639
|
+
text += ' - Review the generated tests for accuracy\n';
|
|
640
|
+
text += ' - Adjust test cases as needed\n';
|
|
641
|
+
text += ' - Add edge cases if necessary\n';
|
|
642
|
+
text += ' - Run tests to verify they pass\n';
|
|
839
643
|
return {
|
|
840
644
|
content: [
|
|
841
645
|
{
|
|
@@ -860,44 +664,11 @@ export class ToolHandlers {
|
|
|
860
664
|
content: [
|
|
861
665
|
{
|
|
862
666
|
type: 'text',
|
|
863
|
-
text:
|
|
667
|
+
text: `Failed to generate tests: ${handled.message}`,
|
|
864
668
|
},
|
|
865
669
|
],
|
|
866
670
|
};
|
|
867
671
|
}
|
|
868
672
|
}
|
|
869
|
-
normalizeWorkflowPhase(phase) {
|
|
870
|
-
const normalized = phase.trim().toLowerCase();
|
|
871
|
-
if (!normalized) {
|
|
872
|
-
return null;
|
|
873
|
-
}
|
|
874
|
-
const cleaned = normalized.replace(/[_\s]+/g, '-');
|
|
875
|
-
const direct = new Set(['idle', 'code-written', 'test-complete', 'commit-ready', 'committed']);
|
|
876
|
-
if (direct.has(cleaned)) {
|
|
877
|
-
return cleaned;
|
|
878
|
-
}
|
|
879
|
-
const aliases = {
|
|
880
|
-
planning: 'idle',
|
|
881
|
-
analysis: 'idle',
|
|
882
|
-
start: 'idle',
|
|
883
|
-
'code-analysis': 'code-written',
|
|
884
|
-
implementation: 'code-written',
|
|
885
|
-
coding: 'code-written',
|
|
886
|
-
code: 'code-written',
|
|
887
|
-
'test-analysis': 'test-complete',
|
|
888
|
-
testing: 'test-complete',
|
|
889
|
-
tests: 'test-complete',
|
|
890
|
-
test: 'test-complete',
|
|
891
|
-
'tests-complete': 'test-complete',
|
|
892
|
-
'ready-to-commit': 'commit-ready',
|
|
893
|
-
commit: 'commit-ready',
|
|
894
|
-
'pre-commit': 'commit-ready',
|
|
895
|
-
done: 'committed',
|
|
896
|
-
merged: 'committed',
|
|
897
|
-
shipped: 'committed',
|
|
898
|
-
released: 'committed',
|
|
899
|
-
};
|
|
900
|
-
return aliases[cleaned] || null;
|
|
901
|
-
}
|
|
902
673
|
}
|
|
903
674
|
//# sourceMappingURL=ToolHandlers.js.map
|