@robota-sdk/agent-core 3.0.0-beta.6 → 3.0.0-beta.60
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 +81 -0
- package/README.md +34 -11
- package/dist/browser/index.d.ts +646 -324
- package/dist/browser/index.js +10 -4
- package/dist/node/index.cjs +10 -4
- package/dist/node/index.d.cts +646 -324
- package/dist/node/index.d.ts +646 -324
- package/dist/node/index.js +10 -4
- package/package.json +5 -3
- package/dist/abstracts/abstract-agent.d.ts +0 -56
- package/dist/abstracts/abstract-agent.d.ts.map +0 -1
- package/dist/abstracts/abstract-agent.js +0 -55
- package/dist/abstracts/abstract-agent.js.map +0 -1
- package/dist/abstracts/abstract-ai-provider.d.ts +0 -187
- package/dist/abstracts/abstract-ai-provider.d.ts.map +0 -1
- package/dist/abstracts/abstract-ai-provider.js +0 -252
- package/dist/abstracts/abstract-ai-provider.js.map +0 -1
- package/dist/abstracts/abstract-executor.d.ts +0 -110
- package/dist/abstracts/abstract-executor.d.ts.map +0 -1
- package/dist/abstracts/abstract-executor.js +0 -156
- package/dist/abstracts/abstract-executor.js.map +0 -1
- package/dist/abstracts/abstract-manager.d.ts +0 -42
- package/dist/abstracts/abstract-manager.d.ts.map +0 -1
- package/dist/abstracts/abstract-manager.js +0 -49
- package/dist/abstracts/abstract-manager.js.map +0 -1
- package/dist/abstracts/abstract-module.d.ts +0 -365
- package/dist/abstracts/abstract-module.d.ts.map +0 -1
- package/dist/abstracts/abstract-module.js +0 -474
- package/dist/abstracts/abstract-module.js.map +0 -1
- package/dist/abstracts/abstract-plugin.d.ts +0 -369
- package/dist/abstracts/abstract-plugin.d.ts.map +0 -1
- package/dist/abstracts/abstract-plugin.js +0 -258
- package/dist/abstracts/abstract-plugin.js.map +0 -1
- package/dist/abstracts/abstract-tool.d.ts +0 -175
- package/dist/abstracts/abstract-tool.d.ts.map +0 -1
- package/dist/abstracts/abstract-tool.js +0 -140
- package/dist/abstracts/abstract-tool.js.map +0 -1
- package/dist/abstracts/abstract-workflow-converter.d.ts +0 -136
- package/dist/abstracts/abstract-workflow-converter.d.ts.map +0 -1
- package/dist/abstracts/abstract-workflow-converter.js +0 -252
- package/dist/abstracts/abstract-workflow-converter.js.map +0 -1
- package/dist/abstracts/abstract-workflow-validator.d.ts +0 -203
- package/dist/abstracts/abstract-workflow-validator.d.ts.map +0 -1
- package/dist/abstracts/abstract-workflow-validator.js +0 -447
- package/dist/abstracts/abstract-workflow-validator.js.map +0 -1
- package/dist/abstracts/index.d.ts +0 -6
- package/dist/abstracts/index.d.ts.map +0 -1
- package/dist/abstracts/index.js +0 -9
- package/dist/abstracts/index.js.map +0 -1
- package/dist/agents/constants.d.ts +0 -23
- package/dist/agents/constants.d.ts.map +0 -1
- package/dist/agents/constants.js +0 -22
- package/dist/agents/constants.js.map +0 -1
- package/dist/agents/index.d.ts +0 -1
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/index.js +0 -4
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/robota.test.d.ts +0 -2
- package/dist/agents/robota.test.d.ts.map +0 -1
- package/dist/agents/robota.test.js +0 -416
- package/dist/agents/robota.test.js.map +0 -1
- package/dist/core/robota.d.ts +0 -694
- package/dist/core/robota.d.ts.map +0 -1
- package/dist/core/robota.js +0 -1277
- package/dist/core/robota.js.map +0 -1
- package/dist/executors/local-executor.d.ts +0 -96
- package/dist/executors/local-executor.d.ts.map +0 -1
- package/dist/executors/local-executor.js +0 -197
- package/dist/executors/local-executor.js.map +0 -1
- package/dist/executors/local-executor.test.d.ts +0 -2
- package/dist/executors/local-executor.test.d.ts.map +0 -1
- package/dist/executors/local-executor.test.js +0 -192
- package/dist/executors/local-executor.test.js.map +0 -1
- package/dist/index.d.ts +0 -274
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -235
- package/dist/index.js.map +0 -1
- package/dist/interfaces/agent.d.ts +0 -198
- package/dist/interfaces/agent.d.ts.map +0 -1
- package/dist/interfaces/agent.js +0 -2
- package/dist/interfaces/agent.js.map +0 -1
- package/dist/interfaces/event-service.d.ts +0 -79
- package/dist/interfaces/event-service.d.ts.map +0 -1
- package/dist/interfaces/event-service.js +0 -2
- package/dist/interfaces/event-service.js.map +0 -1
- package/dist/interfaces/executor.d.ts +0 -128
- package/dist/interfaces/executor.d.ts.map +0 -1
- package/dist/interfaces/executor.js +0 -2
- package/dist/interfaces/executor.js.map +0 -1
- package/dist/interfaces/history-module.d.ts +0 -19
- package/dist/interfaces/history-module.d.ts.map +0 -1
- package/dist/interfaces/history-module.js +0 -2
- package/dist/interfaces/history-module.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -13
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -4
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/manager.d.ts +0 -142
- package/dist/interfaces/manager.d.ts.map +0 -1
- package/dist/interfaces/manager.js +0 -2
- package/dist/interfaces/manager.js.map +0 -1
- package/dist/interfaces/messages.d.ts +0 -75
- package/dist/interfaces/messages.d.ts.map +0 -1
- package/dist/interfaces/messages.js +0 -29
- package/dist/interfaces/messages.js.map +0 -1
- package/dist/interfaces/progress-reporting.d.ts +0 -86
- package/dist/interfaces/progress-reporting.d.ts.map +0 -1
- package/dist/interfaces/progress-reporting.js +0 -37
- package/dist/interfaces/progress-reporting.js.map +0 -1
- package/dist/interfaces/provider.d.ts +0 -217
- package/dist/interfaces/provider.d.ts.map +0 -1
- package/dist/interfaces/provider.js +0 -2
- package/dist/interfaces/provider.js.map +0 -1
- package/dist/interfaces/service.d.ts +0 -205
- package/dist/interfaces/service.d.ts.map +0 -1
- package/dist/interfaces/service.js +0 -6
- package/dist/interfaces/service.js.map +0 -1
- package/dist/interfaces/tool.d.ts +0 -248
- package/dist/interfaces/tool.d.ts.map +0 -1
- package/dist/interfaces/tool.js +0 -2
- package/dist/interfaces/tool.js.map +0 -1
- package/dist/interfaces/types.d.ts +0 -71
- package/dist/interfaces/types.d.ts.map +0 -1
- package/dist/interfaces/types.js +0 -33
- package/dist/interfaces/types.js.map +0 -1
- package/dist/interfaces/workflow-converter.d.ts +0 -193
- package/dist/interfaces/workflow-converter.d.ts.map +0 -1
- package/dist/interfaces/workflow-converter.js +0 -11
- package/dist/interfaces/workflow-converter.js.map +0 -1
- package/dist/interfaces/workflow-validator.d.ts +0 -209
- package/dist/interfaces/workflow-validator.d.ts.map +0 -1
- package/dist/interfaces/workflow-validator.js +0 -16
- package/dist/interfaces/workflow-validator.js.map +0 -1
- package/dist/managers/agent-factory.d.ts +0 -132
- package/dist/managers/agent-factory.d.ts.map +0 -1
- package/dist/managers/agent-factory.js +0 -284
- package/dist/managers/agent-factory.js.map +0 -1
- package/dist/managers/agent-factory.test.d.ts +0 -2
- package/dist/managers/agent-factory.test.d.ts.map +0 -1
- package/dist/managers/agent-factory.test.js +0 -249
- package/dist/managers/agent-factory.test.js.map +0 -1
- package/dist/managers/agent-templates.d.ts +0 -84
- package/dist/managers/agent-templates.d.ts.map +0 -1
- package/dist/managers/agent-templates.js +0 -159
- package/dist/managers/agent-templates.js.map +0 -1
- package/dist/managers/ai-provider-manager.d.ts +0 -80
- package/dist/managers/ai-provider-manager.d.ts.map +0 -1
- package/dist/managers/ai-provider-manager.js +0 -226
- package/dist/managers/ai-provider-manager.js.map +0 -1
- package/dist/managers/conversation-history-manager.d.ts +0 -455
- package/dist/managers/conversation-history-manager.d.ts.map +0 -1
- package/dist/managers/conversation-history-manager.js +0 -578
- package/dist/managers/conversation-history-manager.js.map +0 -1
- package/dist/managers/conversation-history-manager.test.d.ts +0 -2
- package/dist/managers/conversation-history-manager.test.d.ts.map +0 -1
- package/dist/managers/conversation-history-manager.test.js +0 -374
- package/dist/managers/conversation-history-manager.test.js.map +0 -1
- package/dist/managers/index.d.ts +0 -8
- package/dist/managers/index.d.ts.map +0 -1
- package/dist/managers/index.js +0 -8
- package/dist/managers/index.js.map +0 -1
- package/dist/managers/module-registry.d.ts +0 -161
- package/dist/managers/module-registry.d.ts.map +0 -1
- package/dist/managers/module-registry.js +0 -519
- package/dist/managers/module-registry.js.map +0 -1
- package/dist/managers/module-type-registry.d.ts +0 -113
- package/dist/managers/module-type-registry.d.ts.map +0 -1
- package/dist/managers/module-type-registry.js +0 -439
- package/dist/managers/module-type-registry.js.map +0 -1
- package/dist/managers/plugins.d.ts +0 -166
- package/dist/managers/plugins.d.ts.map +0 -1
- package/dist/managers/plugins.js +0 -339
- package/dist/managers/plugins.js.map +0 -1
- package/dist/managers/tool-manager.d.ts +0 -70
- package/dist/managers/tool-manager.d.ts.map +0 -1
- package/dist/managers/tool-manager.js +0 -138
- package/dist/managers/tool-manager.js.map +0 -1
- package/dist/managers/tool-manager.test.d.ts +0 -2
- package/dist/managers/tool-manager.test.d.ts.map +0 -1
- package/dist/managers/tool-manager.test.js +0 -186
- package/dist/managers/tool-manager.test.js.map +0 -1
- package/dist/plugins/conversation-history/conversation-history-plugin.d.ts +0 -67
- package/dist/plugins/conversation-history/conversation-history-plugin.d.ts.map +0 -1
- package/dist/plugins/conversation-history/conversation-history-plugin.js +0 -270
- package/dist/plugins/conversation-history/conversation-history-plugin.js.map +0 -1
- package/dist/plugins/conversation-history/index.d.ts +0 -3
- package/dist/plugins/conversation-history/index.d.ts.map +0 -1
- package/dist/plugins/conversation-history/index.js +0 -2
- package/dist/plugins/conversation-history/index.js.map +0 -1
- package/dist/plugins/conversation-history/storages/database-storage.d.ts +0 -19
- package/dist/plugins/conversation-history/storages/database-storage.d.ts.map +0 -1
- package/dist/plugins/conversation-history/storages/database-storage.js +0 -94
- package/dist/plugins/conversation-history/storages/database-storage.js.map +0 -1
- package/dist/plugins/conversation-history/storages/file-storage.d.ts +0 -15
- package/dist/plugins/conversation-history/storages/file-storage.d.ts.map +0 -1
- package/dist/plugins/conversation-history/storages/file-storage.js +0 -94
- package/dist/plugins/conversation-history/storages/file-storage.js.map +0 -1
- package/dist/plugins/conversation-history/storages/index.d.ts +0 -4
- package/dist/plugins/conversation-history/storages/index.d.ts.map +0 -1
- package/dist/plugins/conversation-history/storages/index.js +0 -4
- package/dist/plugins/conversation-history/storages/index.js.map +0 -1
- package/dist/plugins/conversation-history/storages/memory-storage.d.ts +0 -15
- package/dist/plugins/conversation-history/storages/memory-storage.d.ts.map +0 -1
- package/dist/plugins/conversation-history/storages/memory-storage.js +0 -33
- package/dist/plugins/conversation-history/storages/memory-storage.js.map +0 -1
- package/dist/plugins/conversation-history/types.d.ts +0 -61
- package/dist/plugins/conversation-history/types.d.ts.map +0 -1
- package/dist/plugins/conversation-history/types.js +0 -2
- package/dist/plugins/conversation-history/types.js.map +0 -1
- package/dist/plugins/error-handling/context-adapter.d.ts +0 -30
- package/dist/plugins/error-handling/context-adapter.d.ts.map +0 -1
- package/dist/plugins/error-handling/context-adapter.js +0 -41
- package/dist/plugins/error-handling/context-adapter.js.map +0 -1
- package/dist/plugins/error-handling/error-handling-plugin.d.ts +0 -49
- package/dist/plugins/error-handling/error-handling-plugin.d.ts.map +0 -1
- package/dist/plugins/error-handling/error-handling-plugin.js +0 -229
- package/dist/plugins/error-handling/error-handling-plugin.js.map +0 -1
- package/dist/plugins/error-handling/index.d.ts +0 -10
- package/dist/plugins/error-handling/index.d.ts.map +0 -1
- package/dist/plugins/error-handling/index.js +0 -10
- package/dist/plugins/error-handling/index.js.map +0 -1
- package/dist/plugins/error-handling/types.d.ts +0 -73
- package/dist/plugins/error-handling/types.d.ts.map +0 -1
- package/dist/plugins/error-handling/types.js +0 -14
- package/dist/plugins/error-handling/types.js.map +0 -1
- package/dist/plugins/event-emitter/metrics.d.ts +0 -17
- package/dist/plugins/event-emitter/metrics.d.ts.map +0 -1
- package/dist/plugins/event-emitter/metrics.js +0 -17
- package/dist/plugins/event-emitter/metrics.js.map +0 -1
- package/dist/plugins/event-emitter/types.d.ts +0 -112
- package/dist/plugins/event-emitter/types.d.ts.map +0 -1
- package/dist/plugins/event-emitter/types.js +0 -65
- package/dist/plugins/event-emitter/types.js.map +0 -1
- package/dist/plugins/event-emitter-plugin.d.ts +0 -222
- package/dist/plugins/event-emitter-plugin.d.ts.map +0 -1
- package/dist/plugins/event-emitter-plugin.js +0 -432
- package/dist/plugins/event-emitter-plugin.js.map +0 -1
- package/dist/plugins/event-emitter-plugin.test.d.ts +0 -2
- package/dist/plugins/event-emitter-plugin.test.d.ts.map +0 -1
- package/dist/plugins/event-emitter-plugin.test.js +0 -94
- package/dist/plugins/event-emitter-plugin.test.js.map +0 -1
- package/dist/plugins/execution/execution-analytics-plugin.d.ts +0 -129
- package/dist/plugins/execution/execution-analytics-plugin.d.ts.map +0 -1
- package/dist/plugins/execution/execution-analytics-plugin.js +0 -517
- package/dist/plugins/execution/execution-analytics-plugin.js.map +0 -1
- package/dist/plugins/execution/index.d.ts +0 -3
- package/dist/plugins/execution/index.d.ts.map +0 -1
- package/dist/plugins/execution/index.js +0 -2
- package/dist/plugins/execution/index.js.map +0 -1
- package/dist/plugins/execution/types.d.ts +0 -90
- package/dist/plugins/execution/types.d.ts.map +0 -1
- package/dist/plugins/execution/types.js +0 -2
- package/dist/plugins/execution/types.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -10
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -11
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/limits/types.d.ts +0 -61
- package/dist/plugins/limits/types.d.ts.map +0 -1
- package/dist/plugins/limits/types.js +0 -2
- package/dist/plugins/limits/types.js.map +0 -1
- package/dist/plugins/limits-plugin.d.ts +0 -113
- package/dist/plugins/limits-plugin.d.ts.map +0 -1
- package/dist/plugins/limits-plugin.js +0 -380
- package/dist/plugins/limits-plugin.js.map +0 -1
- package/dist/plugins/logging/formatters.d.ts +0 -14
- package/dist/plugins/logging/formatters.d.ts.map +0 -1
- package/dist/plugins/logging/formatters.js +0 -24
- package/dist/plugins/logging/formatters.js.map +0 -1
- package/dist/plugins/logging/index.d.ts +0 -3
- package/dist/plugins/logging/index.d.ts.map +0 -1
- package/dist/plugins/logging/index.js +0 -2
- package/dist/plugins/logging/index.js.map +0 -1
- package/dist/plugins/logging/logging-plugin.d.ts +0 -91
- package/dist/plugins/logging/logging-plugin.d.ts.map +0 -1
- package/dist/plugins/logging/logging-plugin.js +0 -335
- package/dist/plugins/logging/logging-plugin.js.map +0 -1
- package/dist/plugins/logging/storages/console-storage.d.ts +0 -14
- package/dist/plugins/logging/storages/console-storage.d.ts.map +0 -1
- package/dist/plugins/logging/storages/console-storage.js +0 -38
- package/dist/plugins/logging/storages/console-storage.js.map +0 -1
- package/dist/plugins/logging/storages/file-storage.d.ts +0 -14
- package/dist/plugins/logging/storages/file-storage.d.ts.map +0 -1
- package/dist/plugins/logging/storages/file-storage.js +0 -41
- package/dist/plugins/logging/storages/file-storage.js.map +0 -1
- package/dist/plugins/logging/storages/index.d.ts +0 -5
- package/dist/plugins/logging/storages/index.d.ts.map +0 -1
- package/dist/plugins/logging/storages/index.js +0 -5
- package/dist/plugins/logging/storages/index.js.map +0 -1
- package/dist/plugins/logging/storages/remote-storage.d.ts +0 -20
- package/dist/plugins/logging/storages/remote-storage.d.ts.map +0 -1
- package/dist/plugins/logging/storages/remote-storage.js +0 -61
- package/dist/plugins/logging/storages/remote-storage.js.map +0 -1
- package/dist/plugins/logging/storages/silent-storage.d.ts +0 -10
- package/dist/plugins/logging/storages/silent-storage.d.ts.map +0 -1
- package/dist/plugins/logging/storages/silent-storage.js +0 -15
- package/dist/plugins/logging/storages/silent-storage.js.map +0 -1
- package/dist/plugins/logging/types.d.ts +0 -84
- package/dist/plugins/logging/types.d.ts.map +0 -1
- package/dist/plugins/logging/types.js +0 -2
- package/dist/plugins/logging/types.js.map +0 -1
- package/dist/plugins/performance/collectors/system-metrics-collector.d.ts +0 -12
- package/dist/plugins/performance/collectors/system-metrics-collector.d.ts.map +0 -1
- package/dist/plugins/performance/collectors/system-metrics-collector.js +0 -65
- package/dist/plugins/performance/collectors/system-metrics-collector.js.map +0 -1
- package/dist/plugins/performance/index.d.ts +0 -5
- package/dist/plugins/performance/index.d.ts.map +0 -1
- package/dist/plugins/performance/index.js +0 -4
- package/dist/plugins/performance/index.js.map +0 -1
- package/dist/plugins/performance/performance-plugin.d.ts +0 -49
- package/dist/plugins/performance/performance-plugin.d.ts.map +0 -1
- package/dist/plugins/performance/performance-plugin.js +0 -293
- package/dist/plugins/performance/performance-plugin.js.map +0 -1
- package/dist/plugins/performance/storages/index.d.ts +0 -2
- package/dist/plugins/performance/storages/index.d.ts.map +0 -1
- package/dist/plugins/performance/storages/index.js +0 -4
- package/dist/plugins/performance/storages/index.js.map +0 -1
- package/dist/plugins/performance/storages/memory-storage.d.ts +0 -19
- package/dist/plugins/performance/storages/memory-storage.d.ts.map +0 -1
- package/dist/plugins/performance/storages/memory-storage.js +0 -69
- package/dist/plugins/performance/storages/memory-storage.js.map +0 -1
- package/dist/plugins/performance/types.d.ts +0 -154
- package/dist/plugins/performance/types.d.ts.map +0 -1
- package/dist/plugins/performance/types.js +0 -2
- package/dist/plugins/performance/types.js.map +0 -1
- package/dist/plugins/usage/aggregate-usage-stats.d.ts +0 -12
- package/dist/plugins/usage/aggregate-usage-stats.d.ts.map +0 -1
- package/dist/plugins/usage/aggregate-usage-stats.js +0 -115
- package/dist/plugins/usage/aggregate-usage-stats.js.map +0 -1
- package/dist/plugins/usage/index.d.ts +0 -5
- package/dist/plugins/usage/index.d.ts.map +0 -1
- package/dist/plugins/usage/index.js +0 -4
- package/dist/plugins/usage/index.js.map +0 -1
- package/dist/plugins/usage/storages/file-storage.d.ts +0 -22
- package/dist/plugins/usage/storages/file-storage.d.ts.map +0 -1
- package/dist/plugins/usage/storages/file-storage.js +0 -111
- package/dist/plugins/usage/storages/file-storage.js.map +0 -1
- package/dist/plugins/usage/storages/index.d.ts +0 -5
- package/dist/plugins/usage/storages/index.d.ts.map +0 -1
- package/dist/plugins/usage/storages/index.js +0 -5
- package/dist/plugins/usage/storages/index.js.map +0 -1
- package/dist/plugins/usage/storages/memory-storage.d.ts +0 -22
- package/dist/plugins/usage/storages/memory-storage.d.ts.map +0 -1
- package/dist/plugins/usage/storages/memory-storage.js +0 -42
- package/dist/plugins/usage/storages/memory-storage.js.map +0 -1
- package/dist/plugins/usage/storages/remote-storage.d.ts +0 -26
- package/dist/plugins/usage/storages/remote-storage.d.ts.map +0 -1
- package/dist/plugins/usage/storages/remote-storage.js +0 -115
- package/dist/plugins/usage/storages/remote-storage.js.map +0 -1
- package/dist/plugins/usage/storages/silent-storage.d.ts +0 -19
- package/dist/plugins/usage/storages/silent-storage.d.ts.map +0 -1
- package/dist/plugins/usage/storages/silent-storage.js +0 -26
- package/dist/plugins/usage/storages/silent-storage.js.map +0 -1
- package/dist/plugins/usage/types.d.ts +0 -127
- package/dist/plugins/usage/types.d.ts.map +0 -1
- package/dist/plugins/usage/types.js +0 -2
- package/dist/plugins/usage/types.js.map +0 -1
- package/dist/plugins/usage/usage-plugin.d.ts +0 -67
- package/dist/plugins/usage/usage-plugin.d.ts.map +0 -1
- package/dist/plugins/usage/usage-plugin.js +0 -309
- package/dist/plugins/usage/usage-plugin.js.map +0 -1
- package/dist/plugins/webhook/http-client.d.ts +0 -30
- package/dist/plugins/webhook/http-client.d.ts.map +0 -1
- package/dist/plugins/webhook/http-client.js +0 -110
- package/dist/plugins/webhook/http-client.js.map +0 -1
- package/dist/plugins/webhook/index.d.ts +0 -9
- package/dist/plugins/webhook/index.d.ts.map +0 -1
- package/dist/plugins/webhook/index.js +0 -9
- package/dist/plugins/webhook/index.js.map +0 -1
- package/dist/plugins/webhook/transformer.d.ts +0 -63
- package/dist/plugins/webhook/transformer.d.ts.map +0 -1
- package/dist/plugins/webhook/transformer.js +0 -157
- package/dist/plugins/webhook/transformer.js.map +0 -1
- package/dist/plugins/webhook/types.d.ts +0 -183
- package/dist/plugins/webhook/types.d.ts.map +0 -1
- package/dist/plugins/webhook/types.js +0 -2
- package/dist/plugins/webhook/types.js.map +0 -1
- package/dist/plugins/webhook/webhook-plugin.d.ts +0 -92
- package/dist/plugins/webhook/webhook-plugin.d.ts.map +0 -1
- package/dist/plugins/webhook/webhook-plugin.js +0 -328
- package/dist/plugins/webhook/webhook-plugin.js.map +0 -1
- package/dist/schemas/agent-template-schema.d.ts +0 -137
- package/dist/schemas/agent-template-schema.d.ts.map +0 -1
- package/dist/schemas/agent-template-schema.js +0 -87
- package/dist/schemas/agent-template-schema.js.map +0 -1
- package/dist/services/conversation-service/index.d.ts +0 -88
- package/dist/services/conversation-service/index.d.ts.map +0 -1
- package/dist/services/conversation-service/index.js +0 -441
- package/dist/services/conversation-service/index.js.map +0 -1
- package/dist/services/conversation-service/types.d.ts +0 -32
- package/dist/services/conversation-service/types.d.ts.map +0 -1
- package/dist/services/conversation-service/types.js +0 -8
- package/dist/services/conversation-service/types.js.map +0 -1
- package/dist/services/event-service.d.ts +0 -61
- package/dist/services/event-service.d.ts.map +0 -1
- package/dist/services/event-service.js +0 -110
- package/dist/services/event-service.js.map +0 -1
- package/dist/services/event-service.test.d.ts +0 -2
- package/dist/services/event-service.test.d.ts.map +0 -1
- package/dist/services/event-service.test.js +0 -86
- package/dist/services/event-service.test.js.map +0 -1
- package/dist/services/execution-service.d.ts +0 -151
- package/dist/services/execution-service.d.ts.map +0 -1
- package/dist/services/execution-service.js +0 -1262
- package/dist/services/execution-service.js.map +0 -1
- package/dist/services/execution-service.test.d.ts +0 -2
- package/dist/services/execution-service.test.d.ts.map +0 -1
- package/dist/services/execution-service.test.js +0 -338
- package/dist/services/execution-service.test.js.map +0 -1
- package/dist/services/history-module.d.ts +0 -15
- package/dist/services/history-module.d.ts.map +0 -1
- package/dist/services/history-module.js +0 -42
- package/dist/services/history-module.js.map +0 -1
- package/dist/services/in-memory-history-store.d.ts +0 -12
- package/dist/services/in-memory-history-store.d.ts.map +0 -1
- package/dist/services/in-memory-history-store.js +0 -41
- package/dist/services/in-memory-history-store.js.map +0 -1
- package/dist/services/index.d.ts +0 -7
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/index.js +0 -13
- package/dist/services/index.js.map +0 -1
- package/dist/services/task-events.d.ts +0 -6
- package/dist/services/task-events.d.ts.map +0 -1
- package/dist/services/task-events.js +0 -6
- package/dist/services/task-events.js.map +0 -1
- package/dist/services/tool-execution-service.d.ts +0 -74
- package/dist/services/tool-execution-service.d.ts.map +0 -1
- package/dist/services/tool-execution-service.js +0 -189
- package/dist/services/tool-execution-service.js.map +0 -1
- package/dist/services/user-events.d.ts +0 -7
- package/dist/services/user-events.d.ts.map +0 -1
- package/dist/services/user-events.js +0 -6
- package/dist/services/user-events.js.map +0 -1
- package/dist/tools/implementations/function-tool/index.d.ts +0 -9
- package/dist/tools/implementations/function-tool/index.d.ts.map +0 -1
- package/dist/tools/implementations/function-tool/index.js +0 -13
- package/dist/tools/implementations/function-tool/index.js.map +0 -1
- package/dist/tools/implementations/function-tool/schema-converter.d.ts +0 -32
- package/dist/tools/implementations/function-tool/schema-converter.d.ts.map +0 -1
- package/dist/tools/implementations/function-tool/schema-converter.js +0 -164
- package/dist/tools/implementations/function-tool/schema-converter.js.map +0 -1
- package/dist/tools/implementations/function-tool/types.d.ts +0 -72
- package/dist/tools/implementations/function-tool/types.d.ts.map +0 -1
- package/dist/tools/implementations/function-tool/types.js +0 -14
- package/dist/tools/implementations/function-tool/types.js.map +0 -1
- package/dist/tools/implementations/function-tool.d.ts +0 -49
- package/dist/tools/implementations/function-tool.d.ts.map +0 -1
- package/dist/tools/implementations/function-tool.js +0 -223
- package/dist/tools/implementations/function-tool.js.map +0 -1
- package/dist/tools/implementations/index.d.ts +0 -4
- package/dist/tools/implementations/index.d.ts.map +0 -1
- package/dist/tools/implementations/index.js +0 -5
- package/dist/tools/implementations/index.js.map +0 -1
- package/dist/tools/implementations/mcp-tool.d.ts +0 -72
- package/dist/tools/implementations/mcp-tool.d.ts.map +0 -1
- package/dist/tools/implementations/mcp-tool.js +0 -246
- package/dist/tools/implementations/mcp-tool.js.map +0 -1
- package/dist/tools/implementations/openapi-tool.d.ts +0 -56
- package/dist/tools/implementations/openapi-tool.d.ts.map +0 -1
- package/dist/tools/implementations/openapi-tool.js +0 -324
- package/dist/tools/implementations/openapi-tool.js.map +0 -1
- package/dist/tools/implementations/relay-mcp-tool.d.ts +0 -38
- package/dist/tools/implementations/relay-mcp-tool.d.ts.map +0 -1
- package/dist/tools/implementations/relay-mcp-tool.js +0 -46
- package/dist/tools/implementations/relay-mcp-tool.js.map +0 -1
- package/dist/tools/index.d.ts +0 -3
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -4
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/registry/index.d.ts +0 -2
- package/dist/tools/registry/index.d.ts.map +0 -1
- package/dist/tools/registry/index.js +0 -3
- package/dist/tools/registry/index.js.map +0 -1
- package/dist/tools/registry/tool-registry.d.ts +0 -54
- package/dist/tools/registry/tool-registry.d.ts.map +0 -1
- package/dist/tools/registry/tool-registry.js +0 -146
- package/dist/tools/registry/tool-registry.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -155
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -203
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/execution-proxy.d.ts +0 -75
- package/dist/utils/execution-proxy.d.ts.map +0 -1
- package/dist/utils/execution-proxy.js +0 -230
- package/dist/utils/execution-proxy.js.map +0 -1
- package/dist/utils/index.d.ts +0 -11
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -7
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -74
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -143
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/message-converter.d.ts +0 -68
- package/dist/utils/message-converter.d.ts.map +0 -1
- package/dist/utils/message-converter.js +0 -87
- package/dist/utils/message-converter.js.map +0 -1
- package/dist/utils/periodic-task.d.ts +0 -14
- package/dist/utils/periodic-task.d.ts.map +0 -1
- package/dist/utils/periodic-task.js +0 -26
- package/dist/utils/periodic-task.js.map +0 -1
- package/dist/utils/validation.d.ts +0 -40
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -162
- package/dist/utils/validation.js.map +0 -1
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { AbstractPlugin, PluginCategory, PluginPriority } from '../../abstracts/abstract-plugin';
|
|
2
|
-
import { createLogger } from '../../utils/logger';
|
|
3
|
-
import { PluginError, ConfigurationError } from '../../utils/errors';
|
|
4
|
-
import { toErrorContext, createPluginErrorContext } from './context-adapter';
|
|
5
|
-
/**
|
|
6
|
-
* Plugin for handling errors with configurable strategies
|
|
7
|
-
* Provides error recovery, retry mechanisms, and circuit breaker patterns
|
|
8
|
-
*/
|
|
9
|
-
export class ErrorHandlingPlugin extends AbstractPlugin {
|
|
10
|
-
name = 'ErrorHandlingPlugin';
|
|
11
|
-
version = '1.0.0';
|
|
12
|
-
pluginOptions;
|
|
13
|
-
logger;
|
|
14
|
-
failureCount = 0;
|
|
15
|
-
circuitBreakerOpen = false;
|
|
16
|
-
lastFailureTime = 0;
|
|
17
|
-
constructor(options) {
|
|
18
|
-
super();
|
|
19
|
-
this.logger = createLogger('ErrorHandlingPlugin');
|
|
20
|
-
// Validate options
|
|
21
|
-
this.validateOptions(options);
|
|
22
|
-
// Set defaults
|
|
23
|
-
this.pluginOptions = {
|
|
24
|
-
enabled: options.enabled ?? true,
|
|
25
|
-
strategy: options.strategy,
|
|
26
|
-
maxRetries: options.maxRetries ?? 3,
|
|
27
|
-
retryDelay: options.retryDelay ?? 1000,
|
|
28
|
-
logErrors: options.logErrors ?? true,
|
|
29
|
-
failureThreshold: options.failureThreshold ?? 5,
|
|
30
|
-
circuitBreakerTimeout: options.circuitBreakerTimeout ?? 60000, // 1 minute
|
|
31
|
-
// Add plugin options defaults
|
|
32
|
-
category: options.category ?? PluginCategory.ERROR_HANDLING,
|
|
33
|
-
priority: options.priority ?? PluginPriority.HIGH,
|
|
34
|
-
moduleEvents: options.moduleEvents ?? [],
|
|
35
|
-
subscribeToAllModuleEvents: options.subscribeToAllModuleEvents ?? false,
|
|
36
|
-
...(options.customErrorHandler && { customErrorHandler: options.customErrorHandler }),
|
|
37
|
-
};
|
|
38
|
-
this.logger.info('ErrorHandlingPlugin initialized', {
|
|
39
|
-
strategy: this.pluginOptions.strategy,
|
|
40
|
-
maxRetries: this.pluginOptions.maxRetries,
|
|
41
|
-
failureThreshold: this.pluginOptions.failureThreshold
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Handle an error with the configured strategy
|
|
46
|
-
*/
|
|
47
|
-
async handleError(error, context = {}) {
|
|
48
|
-
if (this.pluginOptions.logErrors) {
|
|
49
|
-
this.logger.error('Error occurred', {
|
|
50
|
-
error: error.message,
|
|
51
|
-
stack: error.stack,
|
|
52
|
-
context: context
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
// Custom error handler takes precedence
|
|
56
|
-
if (this.pluginOptions.customErrorHandler) {
|
|
57
|
-
try {
|
|
58
|
-
await this.pluginOptions.customErrorHandler(error, context);
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
catch (handlerError) {
|
|
62
|
-
this.logger.error('Custom error handler failed', {
|
|
63
|
-
handlerError: handlerError instanceof Error ? handlerError.message : String(handlerError)
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
// Apply strategy-specific handling
|
|
68
|
-
switch (this.pluginOptions.strategy) {
|
|
69
|
-
case 'circuit-breaker':
|
|
70
|
-
await this.handleCircuitBreaker(error, context);
|
|
71
|
-
break;
|
|
72
|
-
case 'exponential-backoff':
|
|
73
|
-
await this.handleExponentialBackoff(error, context);
|
|
74
|
-
break;
|
|
75
|
-
case 'simple':
|
|
76
|
-
await this.handleSimple(error, context);
|
|
77
|
-
break;
|
|
78
|
-
case 'silent':
|
|
79
|
-
// Silent mode - do nothing
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Execute a function with error handling and retry logic
|
|
85
|
-
*/
|
|
86
|
-
/**
|
|
87
|
-
* Execute a function with error handling and retry logic
|
|
88
|
-
* REASON: PluginError constructor requires ErrorContextData which has different type constraints than IErrorHandlingContextData, causing multiple type compatibility issues
|
|
89
|
-
* ALTERNATIVES_CONSIDERED: Union types (breaks existing error context interfaces), interface definition (creates circular dependencies), generic types (complex type propagation through error handling chain), conditional types (breaks existing plugin interfaces), mapped types (incompatible with error constructor signatures), type guards (runtime only, doesn't solve constructor compatibility), custom declarations (breaks PluginError interface contract), code refactoring (would require redesigning entire error handling system across all plugins), @types packages (none available for this specific use case), external library integration (no standard error context type systems available), utility types (Pick/Omit create new compatibility issues)
|
|
90
|
-
* TODO: Create unified error context type system that bridges IErrorHandlingContextData and ErrorContextData requirements, or redesign PluginError to accept more flexible context types
|
|
91
|
-
*/
|
|
92
|
-
async executeWithRetry(fn, context = {}) {
|
|
93
|
-
let lastError = null;
|
|
94
|
-
let attempt = 0;
|
|
95
|
-
while (attempt <= this.pluginOptions.maxRetries) {
|
|
96
|
-
try {
|
|
97
|
-
// Check circuit breaker
|
|
98
|
-
if (this.pluginOptions.strategy === 'circuit-breaker' && this.isCircuitBreakerOpen()) {
|
|
99
|
-
throw new PluginError('Circuit breaker is open', this.name, toErrorContext(context));
|
|
100
|
-
}
|
|
101
|
-
const result = await fn();
|
|
102
|
-
// Reset failure count on success
|
|
103
|
-
if (attempt > 0) {
|
|
104
|
-
this.failureCount = 0;
|
|
105
|
-
this.circuitBreakerOpen = false;
|
|
106
|
-
this.logger.info('Operation succeeded after retry', {
|
|
107
|
-
attempt: attempt,
|
|
108
|
-
context: context
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
return result;
|
|
112
|
-
}
|
|
113
|
-
catch (error) {
|
|
114
|
-
lastError = error instanceof Error ? error : new Error(String(error));
|
|
115
|
-
attempt++;
|
|
116
|
-
if (attempt <= this.pluginOptions.maxRetries) {
|
|
117
|
-
await this.handleError(lastError, { ...context, attempt });
|
|
118
|
-
// Calculate delay
|
|
119
|
-
const delay = this.pluginOptions.strategy === 'exponential-backoff'
|
|
120
|
-
? this.pluginOptions.retryDelay * Math.pow(2, attempt - 1)
|
|
121
|
-
: this.pluginOptions.retryDelay;
|
|
122
|
-
this.logger.debug('Retrying operation', {
|
|
123
|
-
attempt: attempt,
|
|
124
|
-
delay: delay,
|
|
125
|
-
context: context
|
|
126
|
-
});
|
|
127
|
-
await this.sleep(delay);
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
await this.handleError(lastError, { ...context, finalAttempt: true });
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
throw new PluginError(`Operation failed after ${this.pluginOptions.maxRetries} retries`, this.name, createPluginErrorContext(context, {
|
|
135
|
-
originalError: lastError?.message || 'Unknown error'
|
|
136
|
-
}));
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Reset circuit breaker state
|
|
140
|
-
*/
|
|
141
|
-
resetCircuitBreaker() {
|
|
142
|
-
this.failureCount = 0;
|
|
143
|
-
this.circuitBreakerOpen = false;
|
|
144
|
-
this.lastFailureTime = 0;
|
|
145
|
-
this.logger.info('Circuit breaker reset');
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Get error handling statistics
|
|
149
|
-
*/
|
|
150
|
-
getStats() {
|
|
151
|
-
const base = super.getStats();
|
|
152
|
-
return {
|
|
153
|
-
...base,
|
|
154
|
-
failureCount: this.failureCount,
|
|
155
|
-
circuitBreakerOpen: this.circuitBreakerOpen,
|
|
156
|
-
lastFailureTime: this.lastFailureTime,
|
|
157
|
-
totalRetries: 0, // TODO: Track total retries
|
|
158
|
-
successfulRecoveries: 0 // TODO: Track successful recoveries
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Cleanup resources
|
|
163
|
-
*/
|
|
164
|
-
async destroy() {
|
|
165
|
-
this.logger.info('ErrorHandlingPlugin destroyed');
|
|
166
|
-
}
|
|
167
|
-
async handleSimple(error, context) {
|
|
168
|
-
// Simple logging - no additional logic
|
|
169
|
-
this.logger.debug('Simple error handling applied', {
|
|
170
|
-
error: error.message,
|
|
171
|
-
context: context
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
async handleCircuitBreaker(_error, context) {
|
|
175
|
-
this.failureCount++;
|
|
176
|
-
this.lastFailureTime = Date.now();
|
|
177
|
-
if (this.failureCount >= this.pluginOptions.failureThreshold) {
|
|
178
|
-
this.circuitBreakerOpen = true;
|
|
179
|
-
this.logger.warn('Circuit breaker opened', {
|
|
180
|
-
failureCount: this.failureCount,
|
|
181
|
-
threshold: this.pluginOptions.failureThreshold,
|
|
182
|
-
context: context
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
async handleExponentialBackoff(_error, context) {
|
|
187
|
-
this.failureCount++;
|
|
188
|
-
this.logger.debug('Exponential backoff error handling applied', {
|
|
189
|
-
error: _error.message,
|
|
190
|
-
failureCount: this.failureCount,
|
|
191
|
-
context: context
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
isCircuitBreakerOpen() {
|
|
195
|
-
if (!this.circuitBreakerOpen) {
|
|
196
|
-
return false;
|
|
197
|
-
}
|
|
198
|
-
// Check if timeout period has passed
|
|
199
|
-
const timeoutPassed = Date.now() - this.lastFailureTime > this.pluginOptions.circuitBreakerTimeout;
|
|
200
|
-
if (timeoutPassed) {
|
|
201
|
-
this.circuitBreakerOpen = false;
|
|
202
|
-
this.failureCount = 0;
|
|
203
|
-
this.logger.info('Circuit breaker timeout passed, attempting to close');
|
|
204
|
-
return false;
|
|
205
|
-
}
|
|
206
|
-
return true;
|
|
207
|
-
}
|
|
208
|
-
validateOptions(options) {
|
|
209
|
-
if (!options.strategy) {
|
|
210
|
-
throw new ConfigurationError('Error handling strategy is required');
|
|
211
|
-
}
|
|
212
|
-
if (!['simple', 'circuit-breaker', 'exponential-backoff', 'silent'].includes(options.strategy)) {
|
|
213
|
-
throw new ConfigurationError('Invalid error handling strategy', {
|
|
214
|
-
validStrategies: ['simple', 'circuit-breaker', 'exponential-backoff', 'silent'],
|
|
215
|
-
provided: options.strategy
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
if (options.maxRetries !== undefined && options.maxRetries < 0) {
|
|
219
|
-
throw new ConfigurationError('Max retries must be non-negative');
|
|
220
|
-
}
|
|
221
|
-
if (options.retryDelay !== undefined && options.retryDelay <= 0) {
|
|
222
|
-
throw new ConfigurationError('Retry delay must be positive');
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
sleep(ms) {
|
|
226
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
//# sourceMappingURL=error-handling-plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-handling-plugin.js","sourceRoot":"","sources":["../../../src/plugins/error-handling/error-handling-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjG,OAAO,EAAE,YAAY,EAAgB,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAQrE,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE7E;;;GAGG;AACH,MAAM,OAAO,mBAAoB,SAAQ,cAAsE;IAC3G,IAAI,GAAG,qBAAqB,CAAC;IAC7B,OAAO,GAAG,OAAO,CAAC;IAEV,aAAa,CAAmK;IAChL,MAAM,CAAU;IAChB,YAAY,GAAG,CAAC,CAAC;IACjB,kBAAkB,GAAG,KAAK,CAAC;IAC3B,eAAe,GAAG,CAAC,CAAC;IAE5B,YAAY,OAAoC;QAC5C,KAAK,EAAE,CAAC;QACR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,CAAC;IAC3D,CAAC;CACJ"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ErrorHandling Plugin - Centralized exports for Facade pattern
|
|
3
|
-
*
|
|
4
|
-
* This module provides a clean interface for error handling functionality
|
|
5
|
-
* with proper type safety and context adaptation.
|
|
6
|
-
*/
|
|
7
|
-
export type { TErrorHandlingStrategy, IErrorHandlingContextData, IErrorHandlingPluginOptions, IErrorHandlingPluginStats, IErrorContextAdapter } from './types';
|
|
8
|
-
export { toErrorContext, createPluginErrorContext } from './context-adapter';
|
|
9
|
-
export { ErrorHandlingPlugin } from './error-handling-plugin';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/error-handling/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACR,sBAAsB,EACtB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,oBAAoB,EACvB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACH,cAAc,EACd,wBAAwB,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ErrorHandling Plugin - Centralized exports for Facade pattern
|
|
3
|
-
*
|
|
4
|
-
* This module provides a clean interface for error handling functionality
|
|
5
|
-
* with proper type safety and context adaptation.
|
|
6
|
-
*/
|
|
7
|
-
// Context adapter utilities
|
|
8
|
-
export { toErrorContext, createPluginErrorContext } from './context-adapter';
|
|
9
|
-
export { ErrorHandlingPlugin } from './error-handling-plugin';
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/error-handling/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH,4BAA4B;AAC5B,OAAO,EACH,cAAc,EACd,wBAAwB,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ErrorHandling Plugin - Type definitions for Facade pattern implementation
|
|
3
|
-
*
|
|
4
|
-
* REASON: Complex ErrorContextData compatibility issues require type adapters and unified error handling
|
|
5
|
-
* ALTERNATIVES_CONSIDERED:
|
|
6
|
-
* 1. Modify ErrorContextData type globally (breaks other components)
|
|
7
|
-
* 2. Use type assertions everywhere (reduces type safety)
|
|
8
|
-
* 3. Create complex union types (causes circular dependencies)
|
|
9
|
-
* 4. Redesign PluginError constructor (breaks existing contracts)
|
|
10
|
-
* 5. Remove context from error handling (loses debugging capability)
|
|
11
|
-
* TODO: Consider unified error context system across all plugins
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* Error handling strategy types
|
|
15
|
-
*/
|
|
16
|
-
export type TErrorHandlingStrategy = 'simple' | 'circuit-breaker' | 'exponential-backoff' | 'silent';
|
|
17
|
-
/**
|
|
18
|
-
* Base error context for internal operations
|
|
19
|
-
* REASON: Optional properties and index signature for compatibility with both exactOptionalPropertyTypes and logger constraints
|
|
20
|
-
* ALTERNATIVES_CONSIDERED: Union types (breaks interface compatibility), explicit undefined (still triggers index signature rules), removing optional properties (breaks existing usage), type assertions (loses safety), intersection types (complex propagation)
|
|
21
|
-
* TODO: Consider unified error context type system across all plugins
|
|
22
|
-
*/
|
|
23
|
-
export interface IErrorHandlingContextData {
|
|
24
|
-
executionId?: string;
|
|
25
|
-
sessionId?: string;
|
|
26
|
-
userId?: string;
|
|
27
|
-
attempt?: number;
|
|
28
|
-
finalAttempt?: boolean;
|
|
29
|
-
originalError?: string;
|
|
30
|
-
[key: string]: string | number | boolean | undefined;
|
|
31
|
-
}
|
|
32
|
-
import type { IPluginOptions, IPluginStats } from '../../abstracts/abstract-plugin';
|
|
33
|
-
/**
|
|
34
|
-
* Configuration options for error handling plugin
|
|
35
|
-
*/
|
|
36
|
-
export interface IErrorHandlingPluginOptions extends IPluginOptions {
|
|
37
|
-
/** Error handling strategy to use */
|
|
38
|
-
strategy: TErrorHandlingStrategy;
|
|
39
|
-
/** Maximum number of retry attempts */
|
|
40
|
-
maxRetries?: number;
|
|
41
|
-
/** Initial delay between retries in milliseconds */
|
|
42
|
-
retryDelay?: number;
|
|
43
|
-
/** Whether to log errors */
|
|
44
|
-
logErrors?: boolean;
|
|
45
|
-
/** Circuit breaker failure threshold */
|
|
46
|
-
failureThreshold?: number;
|
|
47
|
-
/** Circuit breaker timeout in milliseconds */
|
|
48
|
-
circuitBreakerTimeout?: number;
|
|
49
|
-
/** Custom error handler function */
|
|
50
|
-
customErrorHandler?: (error: Error, context: IErrorHandlingContextData) => Promise<void>;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Error handling plugin statistics
|
|
54
|
-
*/
|
|
55
|
-
export interface IErrorHandlingPluginStats extends IPluginStats {
|
|
56
|
-
failureCount: number;
|
|
57
|
-
circuitBreakerOpen: boolean;
|
|
58
|
-
lastFailureTime: number;
|
|
59
|
-
totalRetries: number;
|
|
60
|
-
successfulRecoveries: number;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Error context adapter for PluginError compatibility
|
|
64
|
-
*/
|
|
65
|
-
export interface IErrorContextAdapter {
|
|
66
|
-
originalError?: string;
|
|
67
|
-
executionId?: string;
|
|
68
|
-
sessionId?: string;
|
|
69
|
-
userId?: string;
|
|
70
|
-
attempt?: number;
|
|
71
|
-
[key: string]: string | number | boolean | Date | Error | string[] | undefined;
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/plugins/error-handling/types.ts"],"names":[],"mappings":"AAA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MAAM,CAAC;CAChC;AAID;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;CAClF"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ErrorHandling Plugin - Type definitions for Facade pattern implementation
|
|
3
|
-
*
|
|
4
|
-
* REASON: Complex ErrorContextData compatibility issues require type adapters and unified error handling
|
|
5
|
-
* ALTERNATIVES_CONSIDERED:
|
|
6
|
-
* 1. Modify ErrorContextData type globally (breaks other components)
|
|
7
|
-
* 2. Use type assertions everywhere (reduces type safety)
|
|
8
|
-
* 3. Create complex union types (causes circular dependencies)
|
|
9
|
-
* 4. Redesign PluginError constructor (breaks existing contracts)
|
|
10
|
-
* 5. Remove context from error handling (loses debugging capability)
|
|
11
|
-
* TODO: Consider unified error context system across all plugins
|
|
12
|
-
*/
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plugins/error-handling/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface IEventEmitterMetricsSnapshot {
|
|
2
|
-
totalEmitted: number;
|
|
3
|
-
totalErrors: number;
|
|
4
|
-
}
|
|
5
|
-
export interface IEventEmitterMetrics {
|
|
6
|
-
incrementEmitted(): void;
|
|
7
|
-
incrementErrors(): void;
|
|
8
|
-
getSnapshot(): IEventEmitterMetricsSnapshot;
|
|
9
|
-
}
|
|
10
|
-
export declare class InMemoryEventEmitterMetrics implements IEventEmitterMetrics {
|
|
11
|
-
private totalEmitted;
|
|
12
|
-
private totalErrors;
|
|
13
|
-
incrementEmitted(): void;
|
|
14
|
-
incrementErrors(): void;
|
|
15
|
-
getSnapshot(): IEventEmitterMetricsSnapshot;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=metrics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/plugins/event-emitter/metrics.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACjC,gBAAgB,IAAI,IAAI,CAAC;IACzB,eAAe,IAAI,IAAI,CAAC;IACxB,WAAW,IAAI,4BAA4B,CAAC;CAC/C;AAED,qBAAa,2BAA4B,YAAW,oBAAoB;IACpE,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,WAAW,CAAK;IAExB,gBAAgB,IAAI,IAAI;IAIxB,eAAe,IAAI,IAAI;IAIvB,WAAW,IAAI,4BAA4B;CAM9C"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export class InMemoryEventEmitterMetrics {
|
|
2
|
-
totalEmitted = 0;
|
|
3
|
-
totalErrors = 0;
|
|
4
|
-
incrementEmitted() {
|
|
5
|
-
this.totalEmitted += 1;
|
|
6
|
-
}
|
|
7
|
-
incrementErrors() {
|
|
8
|
-
this.totalErrors += 1;
|
|
9
|
-
}
|
|
10
|
-
getSnapshot() {
|
|
11
|
-
return {
|
|
12
|
-
totalEmitted: this.totalEmitted,
|
|
13
|
-
totalErrors: this.totalErrors
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=metrics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../src/plugins/event-emitter/metrics.ts"],"names":[],"mappings":"AAWA,MAAM,OAAO,2BAA2B;IAC5B,YAAY,GAAG,CAAC,CAAC;IACjB,WAAW,GAAG,CAAC,CAAC;IAExB,gBAAgB;QACZ,IAAI,CAAC,YAAY,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,eAAe;QACX,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,WAAW;QACP,OAAO;YACH,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,WAAW,EAAE,IAAI,CAAC,WAAW;SAChC,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
declare const EXECUTION_EVENT_NAMES: {
|
|
2
|
-
readonly START: "execution.start";
|
|
3
|
-
readonly COMPLETE: "execution.complete";
|
|
4
|
-
readonly ERROR: "execution.error";
|
|
5
|
-
};
|
|
6
|
-
declare const TOOL_EVENT_NAMES: {
|
|
7
|
-
readonly CALL_START: "tool.call_start";
|
|
8
|
-
readonly CALL_COMPLETE: "tool.call_complete";
|
|
9
|
-
readonly CALL_ERROR: "tool.call_error";
|
|
10
|
-
};
|
|
11
|
-
declare const AGENT_EVENT_NAMES: {
|
|
12
|
-
readonly EXECUTION_START: "agent.execution_start";
|
|
13
|
-
readonly EXECUTION_COMPLETE: "agent.execution_complete";
|
|
14
|
-
readonly EXECUTION_ERROR: "agent.execution_error";
|
|
15
|
-
readonly CREATED: "agent.created";
|
|
16
|
-
};
|
|
17
|
-
type TExecutionEventName = typeof EXECUTION_EVENT_NAMES[keyof typeof EXECUTION_EVENT_NAMES];
|
|
18
|
-
type TToolEventName = typeof TOOL_EVENT_NAMES[keyof typeof TOOL_EVENT_NAMES];
|
|
19
|
-
type TAgentEventName = typeof AGENT_EVENT_NAMES[keyof typeof AGENT_EVENT_NAMES];
|
|
20
|
-
/**
|
|
21
|
-
* Event types that can be emitted.
|
|
22
|
-
*
|
|
23
|
-
* IMPORTANT:
|
|
24
|
-
* - Do not use string literals for event names outside this module.
|
|
25
|
-
* - Import and use EVENT_EMITTER_EVENTS instead.
|
|
26
|
-
*/
|
|
27
|
-
export declare const EVENT_EMITTER_EVENTS: {
|
|
28
|
-
readonly EXECUTION_START: "execution.start";
|
|
29
|
-
readonly EXECUTION_COMPLETE: "execution.complete";
|
|
30
|
-
readonly EXECUTION_ERROR: "execution.error";
|
|
31
|
-
readonly TOOL_BEFORE_EXECUTE: "tool.beforeExecute";
|
|
32
|
-
readonly TOOL_AFTER_EXECUTE: "tool.afterExecute";
|
|
33
|
-
readonly TOOL_SUCCESS: "tool.success";
|
|
34
|
-
readonly TOOL_ERROR: "tool.call_error";
|
|
35
|
-
readonly CONVERSATION_START: "conversation.start";
|
|
36
|
-
readonly CONVERSATION_COMPLETE: "conversation.complete";
|
|
37
|
-
readonly CONVERSATION_ERROR: "conversation.error";
|
|
38
|
-
readonly AGENT_EXECUTION_START: "agent.execution_start";
|
|
39
|
-
readonly AGENT_EXECUTION_COMPLETE: "agent.execution_complete";
|
|
40
|
-
readonly AGENT_EXECUTION_ERROR: "agent.execution_error";
|
|
41
|
-
readonly AGENT_CREATED: "agent.created";
|
|
42
|
-
readonly AGENT_DESTROYED: "agent.destroyed";
|
|
43
|
-
readonly PLUGIN_LOADED: "plugin.loaded";
|
|
44
|
-
readonly PLUGIN_UNLOADED: "plugin.unloaded";
|
|
45
|
-
readonly PLUGIN_ERROR: "plugin.error";
|
|
46
|
-
readonly ERROR_OCCURRED: "error.occurred";
|
|
47
|
-
readonly WARNING_OCCURRED: "warning.occurred";
|
|
48
|
-
readonly MODULE_INITIALIZE_START: "module.initialize.start";
|
|
49
|
-
readonly MODULE_INITIALIZE_COMPLETE: "module.initialize.complete";
|
|
50
|
-
readonly MODULE_INITIALIZE_ERROR: "module.initialize.error";
|
|
51
|
-
readonly MODULE_EXECUTION_START: "module.execution.start";
|
|
52
|
-
readonly MODULE_EXECUTION_COMPLETE: "module.execution.complete";
|
|
53
|
-
readonly MODULE_EXECUTION_ERROR: "module.execution.error";
|
|
54
|
-
readonly MODULE_DISPOSE_START: "module.dispose.start";
|
|
55
|
-
readonly MODULE_DISPOSE_COMPLETE: "module.dispose.complete";
|
|
56
|
-
readonly MODULE_DISPOSE_ERROR: "module.dispose.error";
|
|
57
|
-
readonly MODULE_REGISTERED: "module.registered";
|
|
58
|
-
readonly MODULE_UNREGISTERED: "module.unregistered";
|
|
59
|
-
readonly EXECUTION_HIERARCHY: "execution.hierarchy";
|
|
60
|
-
readonly EXECUTION_REALTIME: "execution.realtime";
|
|
61
|
-
readonly TOOL_REALTIME: "tool.realtime";
|
|
62
|
-
readonly CUSTOM: "custom";
|
|
63
|
-
};
|
|
64
|
-
export type TEventName = TExecutionEventName | TToolEventName | TAgentEventName | 'tool.beforeExecute' | 'tool.afterExecute' | 'tool.success' | 'conversation.start' | 'conversation.complete' | 'conversation.error' | 'agent.destroyed' | 'plugin.loaded' | 'plugin.unloaded' | 'plugin.error' | 'error.occurred' | 'warning.occurred' | 'module.initialize.start' | 'module.initialize.complete' | 'module.initialize.error' | 'module.execution.start' | 'module.execution.complete' | 'module.execution.error' | 'module.dispose.start' | 'module.dispose.complete' | 'module.dispose.error' | 'module.registered' | 'module.unregistered' | 'execution.hierarchy' | 'execution.realtime' | 'tool.realtime' | 'custom';
|
|
65
|
-
/**
|
|
66
|
-
* Valid event data value types
|
|
67
|
-
*/
|
|
68
|
-
export type TEventDataValue = string | number | boolean | Date | null | undefined | TEventDataValue[] | {
|
|
69
|
-
[key: string]: TEventDataValue;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Event data structure
|
|
73
|
-
*/
|
|
74
|
-
export interface IEventEmitterEventData {
|
|
75
|
-
type: TEventName;
|
|
76
|
-
timestamp: Date;
|
|
77
|
-
executionId?: string;
|
|
78
|
-
sessionId?: string;
|
|
79
|
-
userId?: string;
|
|
80
|
-
data?: Record<string, TEventDataValue>;
|
|
81
|
-
error?: Error;
|
|
82
|
-
metadata?: Record<string, TEventDataValue>;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Event listener function
|
|
86
|
-
*/
|
|
87
|
-
export type TEventEmitterListener = (event: IEventEmitterEventData) => void | Promise<void>;
|
|
88
|
-
/**
|
|
89
|
-
* Console-like interface for the EventEmitterPlugin.
|
|
90
|
-
*
|
|
91
|
-
* Use this interface for typing instead of the concrete EventEmitterPlugin class.
|
|
92
|
-
*/
|
|
93
|
-
export interface IEventEmitterPlugin {
|
|
94
|
-
on(eventType: TEventName, listener: TEventEmitterListener, options?: {
|
|
95
|
-
once?: boolean;
|
|
96
|
-
filter?: (event: IEventEmitterEventData) => boolean;
|
|
97
|
-
}): string;
|
|
98
|
-
once(eventType: TEventName, listener: TEventEmitterListener, filter?: (event: IEventEmitterEventData) => boolean): string;
|
|
99
|
-
off(eventType: TEventName, handlerIdOrListener: string | TEventEmitterListener): boolean;
|
|
100
|
-
emit(eventType: TEventName, eventData?: Partial<IEventEmitterEventData>): Promise<void>;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Event handler with metadata
|
|
104
|
-
*/
|
|
105
|
-
export interface IEventEmitterHandler {
|
|
106
|
-
id: string;
|
|
107
|
-
listener: TEventEmitterListener;
|
|
108
|
-
once: boolean;
|
|
109
|
-
filter?: (event: IEventEmitterEventData) => boolean;
|
|
110
|
-
}
|
|
111
|
-
export {};
|
|
112
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/plugins/event-emitter/types.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,qBAAqB;;;;CAIjB,CAAC;AAEX,QAAA,MAAM,gBAAgB;;;;CAIZ,CAAC;AAEX,QAAA,MAAM,iBAAiB;;;;;CAKb,CAAC;AAEX,KAAK,mBAAmB,GAAG,OAAO,qBAAqB,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AK,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5F;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC,EAAE,CACE,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,CAAC;KACvD,GACF,MAAM,CAAC;IACV,IAAI,CACA,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,qBAAqB,EAC/B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,GACpD,MAAM,CAAC;IACV,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,GAAG,qBAAqB,GAAG,OAAO,CAAC;IACzF,IAAI,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3F;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,qBAAqB,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,OAAO,CAAC;CACvD"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { AGENT_EVENTS, AGENT_EVENT_PREFIX } from '../../agents/constants';
|
|
2
|
-
import { EXECUTION_EVENTS, EXECUTION_EVENT_PREFIX } from '../../services/execution-service';
|
|
3
|
-
import { TOOL_EVENTS, TOOL_EVENT_PREFIX } from '../../services/tool-execution-service';
|
|
4
|
-
const buildEventName = (prefix, localName) => `${prefix}.${localName}`;
|
|
5
|
-
const EXECUTION_EVENT_NAMES = {
|
|
6
|
-
START: buildEventName(EXECUTION_EVENT_PREFIX, EXECUTION_EVENTS.START),
|
|
7
|
-
COMPLETE: buildEventName(EXECUTION_EVENT_PREFIX, EXECUTION_EVENTS.COMPLETE),
|
|
8
|
-
ERROR: buildEventName(EXECUTION_EVENT_PREFIX, EXECUTION_EVENTS.ERROR)
|
|
9
|
-
};
|
|
10
|
-
const TOOL_EVENT_NAMES = {
|
|
11
|
-
CALL_START: buildEventName(TOOL_EVENT_PREFIX, TOOL_EVENTS.CALL_START),
|
|
12
|
-
CALL_COMPLETE: buildEventName(TOOL_EVENT_PREFIX, TOOL_EVENTS.CALL_COMPLETE),
|
|
13
|
-
CALL_ERROR: buildEventName(TOOL_EVENT_PREFIX, TOOL_EVENTS.CALL_ERROR)
|
|
14
|
-
};
|
|
15
|
-
const AGENT_EVENT_NAMES = {
|
|
16
|
-
EXECUTION_START: buildEventName(AGENT_EVENT_PREFIX, AGENT_EVENTS.EXECUTION_START),
|
|
17
|
-
EXECUTION_COMPLETE: buildEventName(AGENT_EVENT_PREFIX, AGENT_EVENTS.EXECUTION_COMPLETE),
|
|
18
|
-
EXECUTION_ERROR: buildEventName(AGENT_EVENT_PREFIX, AGENT_EVENTS.EXECUTION_ERROR),
|
|
19
|
-
CREATED: buildEventName(AGENT_EVENT_PREFIX, AGENT_EVENTS.CREATED)
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Event types that can be emitted.
|
|
23
|
-
*
|
|
24
|
-
* IMPORTANT:
|
|
25
|
-
* - Do not use string literals for event names outside this module.
|
|
26
|
-
* - Import and use EVENT_EMITTER_EVENTS instead.
|
|
27
|
-
*/
|
|
28
|
-
export const EVENT_EMITTER_EVENTS = {
|
|
29
|
-
EXECUTION_START: EXECUTION_EVENT_NAMES.START,
|
|
30
|
-
EXECUTION_COMPLETE: EXECUTION_EVENT_NAMES.COMPLETE,
|
|
31
|
-
EXECUTION_ERROR: EXECUTION_EVENT_NAMES.ERROR,
|
|
32
|
-
TOOL_BEFORE_EXECUTE: 'tool.beforeExecute',
|
|
33
|
-
TOOL_AFTER_EXECUTE: 'tool.afterExecute',
|
|
34
|
-
TOOL_SUCCESS: 'tool.success',
|
|
35
|
-
TOOL_ERROR: TOOL_EVENT_NAMES.CALL_ERROR,
|
|
36
|
-
CONVERSATION_START: 'conversation.start',
|
|
37
|
-
CONVERSATION_COMPLETE: 'conversation.complete',
|
|
38
|
-
CONVERSATION_ERROR: 'conversation.error',
|
|
39
|
-
AGENT_EXECUTION_START: AGENT_EVENT_NAMES.EXECUTION_START,
|
|
40
|
-
AGENT_EXECUTION_COMPLETE: AGENT_EVENT_NAMES.EXECUTION_COMPLETE,
|
|
41
|
-
AGENT_EXECUTION_ERROR: AGENT_EVENT_NAMES.EXECUTION_ERROR,
|
|
42
|
-
AGENT_CREATED: AGENT_EVENT_NAMES.CREATED,
|
|
43
|
-
AGENT_DESTROYED: 'agent.destroyed',
|
|
44
|
-
PLUGIN_LOADED: 'plugin.loaded',
|
|
45
|
-
PLUGIN_UNLOADED: 'plugin.unloaded',
|
|
46
|
-
PLUGIN_ERROR: 'plugin.error',
|
|
47
|
-
ERROR_OCCURRED: 'error.occurred',
|
|
48
|
-
WARNING_OCCURRED: 'warning.occurred',
|
|
49
|
-
MODULE_INITIALIZE_START: 'module.initialize.start',
|
|
50
|
-
MODULE_INITIALIZE_COMPLETE: 'module.initialize.complete',
|
|
51
|
-
MODULE_INITIALIZE_ERROR: 'module.initialize.error',
|
|
52
|
-
MODULE_EXECUTION_START: 'module.execution.start',
|
|
53
|
-
MODULE_EXECUTION_COMPLETE: 'module.execution.complete',
|
|
54
|
-
MODULE_EXECUTION_ERROR: 'module.execution.error',
|
|
55
|
-
MODULE_DISPOSE_START: 'module.dispose.start',
|
|
56
|
-
MODULE_DISPOSE_COMPLETE: 'module.dispose.complete',
|
|
57
|
-
MODULE_DISPOSE_ERROR: 'module.dispose.error',
|
|
58
|
-
MODULE_REGISTERED: 'module.registered',
|
|
59
|
-
MODULE_UNREGISTERED: 'module.unregistered',
|
|
60
|
-
EXECUTION_HIERARCHY: 'execution.hierarchy',
|
|
61
|
-
EXECUTION_REALTIME: 'execution.realtime',
|
|
62
|
-
TOOL_REALTIME: 'tool.realtime',
|
|
63
|
-
CUSTOM: 'custom'
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plugins/event-emitter/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAEvF,MAAM,cAAc,GAAG,CACnB,MAAe,EACf,SAAiB,EACK,EAAE,CAAC,GAAG,MAAM,IAAI,SAAS,EAAE,CAAC;AAEtD,MAAM,qBAAqB,GAAG;IAC1B,KAAK,EAAE,cAAc,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,KAAK,CAAC;IACrE,QAAQ,EAAE,cAAc,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,QAAQ,CAAC;IAC3E,KAAK,EAAE,cAAc,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,KAAK,CAAC;CAC/D,CAAC;AAEX,MAAM,gBAAgB,GAAG;IACrB,UAAU,EAAE,cAAc,CAAC,iBAAiB,EAAE,WAAW,CAAC,UAAU,CAAC;IACrE,aAAa,EAAE,cAAc,CAAC,iBAAiB,EAAE,WAAW,CAAC,aAAa,CAAC;IAC3E,UAAU,EAAE,cAAc,CAAC,iBAAiB,EAAE,WAAW,CAAC,UAAU,CAAC;CAC/D,CAAC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