openloops 0.1.9 → 0.1.10
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/dist/chunk-XRJFNASX.mjs +14 -0
- package/dist/common/clients/index.d.ts +3 -0
- package/dist/common/clients/index.js +26 -0
- package/dist/common/clients/index.mjs +3 -0
- package/dist/common/clients/llm-client.d.ts +30 -0
- package/dist/common/clients/llm-client.js +159 -0
- package/dist/common/clients/llm-client.mjs +126 -0
- package/dist/common/clients/sentry-client.d.ts +10 -0
- package/dist/common/clients/sentry-client.js +87 -0
- package/dist/common/clients/sentry-client.mjs +53 -0
- package/dist/common/clients/serper-client.d.ts +66 -0
- package/dist/common/clients/serper-client.js +74 -0
- package/dist/common/clients/serper-client.mjs +41 -0
- package/dist/common/core/base.app.d.ts +12 -0
- package/dist/common/core/base.app.js +57 -0
- package/dist/common/core/base.app.mjs +34 -0
- package/dist/common/core/base.entity.d.ts +55 -0
- package/dist/common/core/base.entity.js +208 -0
- package/dist/common/core/base.entity.mjs +179 -0
- package/dist/common/core/base.use-case.d.ts +15 -0
- package/dist/common/core/base.use-case.js +30 -0
- package/dist/common/core/base.use-case.mjs +7 -0
- package/dist/common/core/index.d.ts +1 -0
- package/dist/common/core/index.js +1 -0
- package/dist/common/core/index.mjs +0 -0
- package/dist/common/core/utils/delete-empty-fields.d.ts +1 -0
- package/dist/common/core/utils/delete-empty-fields.js +66 -0
- package/dist/common/core/utils/delete-empty-fields.mjs +43 -0
- package/dist/common/core/utils/flatten-object.d.ts +1 -0
- package/dist/common/core/utils/flatten-object.js +45 -0
- package/dist/common/core/utils/flatten-object.mjs +22 -0
- package/dist/common/core/utils/index.d.ts +3 -0
- package/dist/common/core/utils/index.js +26 -0
- package/dist/common/core/utils/index.mjs +3 -0
- package/dist/common/core/utils/is-plain-object.d.ts +1 -0
- package/dist/common/core/utils/is-plain-object.js +32 -0
- package/dist/common/core/utils/is-plain-object.mjs +9 -0
- package/dist/common/decorators/admin-only/admin-only.d.ts +2 -0
- package/dist/common/decorators/admin-only/admin-only.js +52 -0
- package/dist/common/decorators/admin-only/admin-only.mjs +28 -0
- package/dist/common/decorators/admin-only/index.d.ts +1 -0
- package/dist/common/decorators/admin-only/index.js +22 -0
- package/dist/common/decorators/admin-only/index.mjs +1 -0
- package/dist/common/decorators/index.d.ts +3 -0
- package/dist/common/decorators/index.js +26 -0
- package/dist/common/decorators/index.mjs +3 -0
- package/dist/common/decorators/mask-in-logs/index.d.ts +1 -0
- package/dist/common/decorators/mask-in-logs/index.js +22 -0
- package/dist/common/decorators/mask-in-logs/index.mjs +1 -0
- package/dist/common/decorators/mask-in-logs/mask-in-logs.d.ts +2 -0
- package/dist/common/decorators/mask-in-logs/mask-in-logs.js +53 -0
- package/dist/common/decorators/mask-in-logs/mask-in-logs.mjs +29 -0
- package/dist/common/decorators/owner-only/index.d.ts +1 -0
- package/dist/common/decorators/owner-only/index.js +22 -0
- package/dist/common/decorators/owner-only/index.mjs +1 -0
- package/dist/common/decorators/owner-only/owner-only.d.ts +2 -0
- package/dist/common/decorators/owner-only/owner-only.js +52 -0
- package/dist/common/decorators/owner-only/owner-only.mjs +28 -0
- package/dist/common/error/http-error.d.ts +11 -0
- package/dist/common/error/http-error.js +37 -0
- package/dist/common/error/http-error.mjs +14 -0
- package/dist/common/error/index.d.ts +2 -0
- package/dist/common/error/index.js +24 -0
- package/dist/common/error/index.mjs +2 -0
- package/dist/common/error/reportError.d.ts +2 -0
- package/dist/common/error/reportError.js +51 -0
- package/dist/common/error/reportError.mjs +28 -0
- package/dist/common/helpers/extract-json-from-text.d.ts +1 -0
- package/dist/common/helpers/extract-json-from-text.js +63 -0
- package/dist/common/helpers/extract-json-from-text.mjs +40 -0
- package/dist/common/helpers/index.d.ts +2 -0
- package/dist/common/helpers/index.js +24 -0
- package/dist/common/helpers/index.mjs +2 -0
- package/dist/common/helpers/sanitize-string.d.ts +1 -0
- package/dist/common/helpers/sanitize-string.js +45 -0
- package/dist/common/helpers/sanitize-string.mjs +12 -0
- package/dist/common/logger/index.d.ts +1 -0
- package/dist/common/logger/index.js +22 -0
- package/dist/common/logger/index.mjs +1 -0
- package/dist/common/logger/pino.d.ts +12 -0
- package/dist/common/logger/pino.js +70 -0
- package/dist/common/logger/pino.mjs +36 -0
- package/dist/common/repositories/index.d.ts +2 -0
- package/dist/common/repositories/index.js +24 -0
- package/dist/common/repositories/index.mjs +2 -0
- package/dist/common/repositories/mongo-db.client.d.ts +11 -0
- package/dist/common/repositories/mongo-db.client.js +79 -0
- package/dist/common/repositories/mongo-db.client.mjs +57 -0
- package/dist/common/repositories/mongo-db.repository.d.ts +87 -0
- package/dist/common/repositories/mongo-db.repository.js +219 -0
- package/dist/common/repositories/mongo-db.repository.mjs +196 -0
- package/dist/common/utils/secret-manager.d.ts +15 -0
- package/dist/common/utils/secret-manager.js +105 -0
- package/dist/common/utils/secret-manager.mjs +71 -0
- package/dist/index.d.ts +1 -10
- package/dist/index.js +22 -7
- package/dist/index.mjs +1 -1
- package/dist/services/agent/core/agent-loop.d.ts +38 -0
- package/dist/services/agent/core/agent-loop.js +29 -0
- package/dist/services/agent/core/agent-loop.mjs +6 -0
- package/dist/services/agent/core/agent-state.d.ts +42 -0
- package/dist/services/agent/core/agent-state.js +102 -0
- package/dist/services/agent/core/agent-state.mjs +78 -0
- package/dist/services/agent/core/agent.d.ts +70 -0
- package/dist/services/agent/core/agent.js +351 -0
- package/dist/services/agent/core/agent.mjs +327 -0
- package/dist/services/agent/core/index.d.ts +3 -122
- package/dist/services/agent/core/index.js +26 -7
- package/dist/services/agent/core/index.mjs +3 -1
- package/dist/services/agent/loops/index.d.ts +2 -116
- package/dist/services/agent/loops/index.js +24 -10
- package/dist/services/agent/loops/index.mjs +2 -4
- package/dist/services/agent/loops/plan-execute/index.d.ts +1 -0
- package/dist/services/agent/loops/plan-execute/index.js +22 -0
- package/dist/services/agent/loops/plan-execute/index.mjs +1 -0
- package/dist/services/agent/loops/plan-execute/plan-execute-loop.d.ts +27 -0
- package/dist/services/agent/loops/plan-execute/plan-execute-loop.js +242 -0
- package/dist/services/agent/loops/plan-execute/plan-execute-loop.mjs +226 -0
- package/dist/services/agent/loops/shared/index.d.ts +1 -0
- package/dist/services/agent/loops/shared/index.js +22 -0
- package/dist/services/agent/loops/shared/index.mjs +1 -0
- package/dist/services/agent/loops/shared/skills/action-planner.d.ts +35 -0
- package/dist/services/agent/loops/shared/skills/action-planner.js +68 -0
- package/dist/services/agent/loops/shared/skills/action-planner.mjs +45 -0
- package/dist/services/agent/loops/shared/skills/confirmation-gate.d.ts +9 -0
- package/dist/services/agent/loops/shared/skills/confirmation-gate.js +53 -0
- package/dist/services/agent/loops/shared/skills/confirmation-gate.mjs +30 -0
- package/dist/services/agent/loops/shared/skills/fast-responder.d.ts +9 -0
- package/dist/services/agent/loops/shared/skills/fast-responder.js +70 -0
- package/dist/services/agent/loops/shared/skills/fast-responder.mjs +47 -0
- package/dist/services/agent/loops/shared/skills/final-responder.d.ts +7 -0
- package/dist/services/agent/loops/shared/skills/final-responder.js +57 -0
- package/dist/services/agent/loops/shared/skills/final-responder.mjs +34 -0
- package/dist/services/agent/loops/shared/skills/index.d.ts +6 -0
- package/dist/services/agent/loops/shared/skills/index.js +32 -0
- package/dist/services/agent/loops/shared/skills/index.mjs +6 -0
- package/dist/services/agent/loops/shared/skills/state-observer.d.ts +10 -0
- package/dist/services/agent/loops/shared/skills/state-observer.js +57 -0
- package/dist/services/agent/loops/shared/skills/state-observer.mjs +34 -0
- package/dist/services/agent/loops/shared/skills/strategy-engine.d.ts +15 -0
- package/dist/services/agent/loops/shared/skills/strategy-engine.js +60 -0
- package/dist/services/agent/loops/shared/skills/strategy-engine.mjs +37 -0
- package/dist/services/agent/modules/chats/entities/agent-action.entity.d.ts +58 -0
- package/dist/services/agent/modules/chats/entities/agent-action.entity.js +151 -0
- package/dist/services/agent/modules/chats/entities/agent-action.entity.mjs +128 -0
- package/dist/services/agent/modules/chats/entities/agent-task.entity.d.ts +59 -0
- package/dist/services/agent/modules/chats/entities/agent-task.entity.js +231 -0
- package/dist/services/agent/modules/chats/entities/agent-task.entity.mjs +207 -0
- package/dist/services/agent/modules/chats/entities/chat-context.entity.d.ts +39 -0
- package/dist/services/agent/modules/chats/entities/chat-context.entity.js +70 -0
- package/dist/services/agent/modules/chats/entities/chat-context.entity.mjs +47 -0
- package/dist/services/agent/modules/chats/entities/chat-message.entity.d.ts +16 -0
- package/dist/services/agent/modules/chats/entities/chat-message.entity.js +58 -0
- package/dist/services/agent/modules/chats/entities/chat-message.entity.mjs +35 -0
- package/dist/services/agent/modules/chats/entities/chat-settings.entity.d.ts +17 -0
- package/dist/services/agent/modules/chats/entities/chat-settings.entity.js +63 -0
- package/dist/services/agent/modules/chats/entities/chat-settings.entity.mjs +40 -0
- package/dist/services/agent/modules/chats/entities/chat.entity.d.ts +50 -0
- package/dist/services/agent/modules/chats/entities/chat.entity.js +163 -0
- package/dist/services/agent/modules/chats/entities/chat.entity.mjs +140 -0
- package/dist/services/agent/modules/chats/entities/index.d.ts +1 -0
- package/dist/services/agent/modules/chats/entities/index.js +22 -0
- package/dist/services/agent/modules/chats/entities/index.mjs +1 -0
- package/dist/services/agent/modules/chats/lambdas/create-chat/create-chat.use-case.d.ts +14 -0
- package/dist/services/agent/modules/chats/lambdas/create-chat/create-chat.use-case.js +56 -0
- package/dist/services/agent/modules/chats/lambdas/create-chat/create-chat.use-case.mjs +27 -0
- package/dist/services/agent/modules/chats/lambdas/create-chat/index.d.ts +1 -0
- package/dist/services/agent/modules/chats/lambdas/create-chat/index.js +22 -0
- package/dist/services/agent/modules/chats/lambdas/create-chat/index.mjs +1 -0
- package/dist/services/agent/modules/chats/lambdas/delete-chat/delete-chat.use-case.d.ts +15 -0
- package/dist/services/agent/modules/chats/lambdas/delete-chat/delete-chat.use-case.js +61 -0
- package/dist/services/agent/modules/chats/lambdas/delete-chat/delete-chat.use-case.mjs +32 -0
- package/dist/services/agent/modules/chats/lambdas/delete-chat/index.d.ts +1 -0
- package/dist/services/agent/modules/chats/lambdas/delete-chat/index.js +22 -0
- package/dist/services/agent/modules/chats/lambdas/delete-chat/index.mjs +1 -0
- package/dist/services/agent/modules/chats/lambdas/get-chat-by-id/get-chat-by-id.use-case.d.ts +14 -0
- package/dist/services/agent/modules/chats/lambdas/get-chat-by-id/get-chat-by-id.use-case.js +52 -0
- package/dist/services/agent/modules/chats/lambdas/get-chat-by-id/get-chat-by-id.use-case.mjs +23 -0
- package/dist/services/agent/modules/chats/lambdas/get-chat-by-id/index.d.ts +1 -0
- package/dist/services/agent/modules/chats/lambdas/get-chat-by-id/index.js +22 -0
- package/dist/services/agent/modules/chats/lambdas/get-chat-by-id/index.mjs +1 -0
- package/dist/services/agent/modules/chats/lambdas/interrupt-execution/index.d.ts +1 -0
- package/dist/services/agent/modules/chats/lambdas/interrupt-execution/index.js +22 -0
- package/dist/services/agent/modules/chats/lambdas/interrupt-execution/index.mjs +1 -0
- package/dist/services/agent/modules/chats/lambdas/interrupt-execution/interrupt-execution.use-case.d.ts +14 -0
- package/dist/services/agent/modules/chats/lambdas/interrupt-execution/interrupt-execution.use-case.js +64 -0
- package/dist/services/agent/modules/chats/lambdas/interrupt-execution/interrupt-execution.use-case.mjs +35 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-props/index.d.ts +1 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-props/index.js +22 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-props/index.mjs +1 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-props/list-chats-by-props.use-case.d.ts +16 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-props/list-chats-by-props.use-case.js +52 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-props/list-chats-by-props.use-case.mjs +23 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-user/index.d.ts +1 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-user/index.js +22 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-user/index.mjs +1 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-user/list-chats-by-user.use-case.d.ts +16 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-user/list-chats-by-user.use-case.js +59 -0
- package/dist/services/agent/modules/chats/lambdas/list-chats-by-user/list-chats-by-user.use-case.mjs +30 -0
- package/dist/services/agent/modules/chats/lambdas/update-chat/index.d.ts +1 -0
- package/dist/services/agent/modules/chats/lambdas/update-chat/index.js +22 -0
- package/dist/services/agent/modules/chats/lambdas/update-chat/index.mjs +1 -0
- package/dist/services/agent/modules/chats/lambdas/update-chat/update-chat.use-case.d.ts +15 -0
- package/dist/services/agent/modules/chats/lambdas/update-chat/update-chat.use-case.js +64 -0
- package/dist/services/agent/modules/chats/lambdas/update-chat/update-chat.use-case.mjs +35 -0
- package/dist/services/agent/modules/chats/repositories/chat.repository.d.ts +10 -0
- package/dist/services/agent/modules/chats/repositories/chat.repository.js +67 -0
- package/dist/services/agent/modules/chats/repositories/chat.repository.mjs +38 -0
- package/dist/services/agent/modules/chats/repositories/index.d.ts +1 -0
- package/dist/services/agent/modules/chats/repositories/index.js +22 -0
- package/dist/services/agent/modules/chats/repositories/index.mjs +1 -0
- package/dist/services/agent/modules/llmcalls/entities/index.d.ts +1 -0
- package/dist/services/agent/modules/llmcalls/entities/index.js +22 -0
- package/dist/services/agent/modules/llmcalls/entities/index.mjs +1 -0
- package/dist/services/agent/modules/llmcalls/entities/llmcall.entity.d.ts +23 -0
- package/dist/services/agent/modules/llmcalls/entities/llmcall.entity.js +71 -0
- package/dist/services/agent/modules/llmcalls/entities/llmcall.entity.mjs +48 -0
- package/dist/services/agent/modules/llmcalls/lambdas/create-llmcall/create-llmcall.use-case.d.ts +14 -0
- package/dist/services/agent/modules/llmcalls/lambdas/create-llmcall/create-llmcall.use-case.js +56 -0
- package/dist/services/agent/modules/llmcalls/lambdas/create-llmcall/create-llmcall.use-case.mjs +27 -0
- package/dist/services/agent/modules/llmcalls/lambdas/create-llmcall/index.d.ts +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/create-llmcall/index.js +22 -0
- package/dist/services/agent/modules/llmcalls/lambdas/create-llmcall/index.mjs +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/delete-llmcall/delete-llmcall.use-case.d.ts +15 -0
- package/dist/services/agent/modules/llmcalls/lambdas/delete-llmcall/delete-llmcall.use-case.js +61 -0
- package/dist/services/agent/modules/llmcalls/lambdas/delete-llmcall/delete-llmcall.use-case.mjs +32 -0
- package/dist/services/agent/modules/llmcalls/lambdas/delete-llmcall/index.d.ts +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/delete-llmcall/index.js +22 -0
- package/dist/services/agent/modules/llmcalls/lambdas/delete-llmcall/index.mjs +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llm-usage/get-llm-usage.use-case.d.ts +21 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llm-usage/get-llm-usage.use-case.js +123 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llm-usage/get-llm-usage.use-case.mjs +94 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llm-usage/index.d.ts +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llm-usage/index.js +22 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llm-usage/index.mjs +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llmcall-by-id/get-llmcall-by-id.use-case.d.ts +14 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llmcall-by-id/get-llmcall-by-id.use-case.js +52 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llmcall-by-id/get-llmcall-by-id.use-case.mjs +23 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llmcall-by-id/index.d.ts +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llmcall-by-id/index.js +22 -0
- package/dist/services/agent/modules/llmcalls/lambdas/get-llmcall-by-id/index.mjs +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/list-llmcalls-by-props/index.d.ts +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/list-llmcalls-by-props/index.js +22 -0
- package/dist/services/agent/modules/llmcalls/lambdas/list-llmcalls-by-props/index.mjs +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/list-llmcalls-by-props/list-llmcalls-by-props.use-case.d.ts +16 -0
- package/dist/services/agent/modules/llmcalls/lambdas/list-llmcalls-by-props/list-llmcalls-by-props.use-case.js +52 -0
- package/dist/services/agent/modules/llmcalls/lambdas/list-llmcalls-by-props/list-llmcalls-by-props.use-case.mjs +23 -0
- package/dist/services/agent/modules/llmcalls/lambdas/update-llmcall/index.d.ts +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/update-llmcall/index.js +22 -0
- package/dist/services/agent/modules/llmcalls/lambdas/update-llmcall/index.mjs +1 -0
- package/dist/services/agent/modules/llmcalls/lambdas/update-llmcall/update-llmcall.use-case.d.ts +15 -0
- package/dist/services/agent/modules/llmcalls/lambdas/update-llmcall/update-llmcall.use-case.js +62 -0
- package/dist/services/agent/modules/llmcalls/lambdas/update-llmcall/update-llmcall.use-case.mjs +33 -0
- package/dist/services/agent/modules/llmcalls/repositories/index.d.ts +1 -0
- package/dist/services/agent/modules/llmcalls/repositories/index.js +22 -0
- package/dist/services/agent/modules/llmcalls/repositories/index.mjs +1 -0
- package/dist/services/agent/modules/llmcalls/repositories/llmcall.repository.d.ts +10 -0
- package/dist/services/agent/modules/llmcalls/repositories/llmcall.repository.js +67 -0
- package/dist/services/agent/modules/llmcalls/repositories/llmcall.repository.mjs +38 -0
- package/dist/services/agent/modules/mcp-servers/entities/index.d.ts +1 -0
- package/dist/services/agent/modules/mcp-servers/entities/index.js +22 -0
- package/dist/services/agent/modules/mcp-servers/entities/index.mjs +1 -0
- package/dist/services/agent/modules/mcp-servers/entities/mcpserver.entity.d.ts +23 -0
- package/dist/services/agent/modules/mcp-servers/entities/mcpserver.entity.js +79 -0
- package/dist/services/agent/modules/mcp-servers/entities/mcpserver.entity.mjs +56 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/create-mcpserver/create-mcpserver.use-case.d.ts +14 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/create-mcpserver/create-mcpserver.use-case.js +56 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/create-mcpserver/create-mcpserver.use-case.mjs +27 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/create-mcpserver/index.d.ts +1 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/create-mcpserver/index.js +22 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/create-mcpserver/index.mjs +1 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/delete-mcpserver/delete-mcpserver.use-case.d.ts +15 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/delete-mcpserver/delete-mcpserver.use-case.js +61 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/delete-mcpserver/delete-mcpserver.use-case.mjs +32 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/delete-mcpserver/index.d.ts +1 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/delete-mcpserver/index.js +22 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/delete-mcpserver/index.mjs +1 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/get-mcpserver-by-id/get-mcpserver-by-id.use-case.d.ts +14 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/get-mcpserver-by-id/get-mcpserver-by-id.use-case.js +52 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/get-mcpserver-by-id/get-mcpserver-by-id.use-case.mjs +23 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/get-mcpserver-by-id/index.d.ts +1 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/get-mcpserver-by-id/index.js +22 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/get-mcpserver-by-id/index.mjs +1 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/list-mcpservers-by-user/index.d.ts +1 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/list-mcpservers-by-user/index.js +22 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/list-mcpservers-by-user/index.mjs +1 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/list-mcpservers-by-user/list-mcpservers-by-user.use-case.d.ts +16 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/list-mcpservers-by-user/list-mcpservers-by-user.use-case.js +59 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/list-mcpservers-by-user/list-mcpservers-by-user.use-case.mjs +30 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/update-mcpserver/index.d.ts +1 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/update-mcpserver/index.js +22 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/update-mcpserver/index.mjs +1 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/update-mcpserver/update-mcpserver.use-case.d.ts +15 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/update-mcpserver/update-mcpserver.use-case.js +61 -0
- package/dist/services/agent/modules/mcp-servers/lambdas/update-mcpserver/update-mcpserver.use-case.mjs +32 -0
- package/dist/services/agent/modules/mcp-servers/repositories/index.d.ts +1 -0
- package/dist/services/agent/modules/mcp-servers/repositories/index.js +22 -0
- package/dist/services/agent/modules/mcp-servers/repositories/index.mjs +1 -0
- package/dist/services/agent/modules/mcp-servers/repositories/mcpserver.repository.d.ts +10 -0
- package/dist/services/agent/modules/mcp-servers/repositories/mcpserver.repository.js +67 -0
- package/dist/services/agent/modules/mcp-servers/repositories/mcpserver.repository.mjs +38 -0
- package/dist/services/agent/skills/index.d.ts +2 -14
- package/dist/services/agent/skills/index.js +24 -7
- package/dist/services/agent/skills/index.mjs +2 -1
- package/dist/services/agent/skills/shared/index.d.ts +1 -0
- package/dist/services/agent/skills/shared/index.js +22 -0
- package/dist/services/agent/skills/shared/index.mjs +1 -0
- package/dist/services/agent/skills/shared/shared-rules.d.ts +4 -0
- package/dist/services/agent/skills/shared/shared-rules.js +37 -0
- package/dist/services/agent/skills/shared/shared-rules.mjs +11 -0
- package/dist/services/agent/skills/skill-runner.d.ts +31 -0
- package/dist/services/agent/skills/skill-runner.js +121 -0
- package/dist/services/agent/skills/skill-runner.mjs +92 -0
- package/dist/services/agent/skills/skill.d.ts +33 -0
- package/dist/services/agent/skills/skill.js +128 -0
- package/dist/services/agent/skills/skill.mjs +105 -0
- package/dist/services/agent/tools/core/call-ai/call-ai.skill.d.ts +6 -0
- package/dist/services/agent/tools/core/call-ai/call-ai.skill.js +54 -0
- package/dist/services/agent/tools/core/call-ai/call-ai.skill.mjs +31 -0
- package/dist/services/agent/tools/core/call-ai/call-ai.tool.d.ts +2 -0
- package/dist/services/agent/tools/core/call-ai/call-ai.tool.js +68 -0
- package/dist/services/agent/tools/core/call-ai/call-ai.tool.mjs +45 -0
- package/dist/services/agent/tools/core/call-ai/index.d.ts +1 -0
- package/dist/services/agent/tools/core/call-ai/index.js +22 -0
- package/dist/services/agent/tools/core/call-ai/index.mjs +1 -0
- package/dist/services/agent/tools/core/index.d.ts +2 -0
- package/dist/services/agent/tools/core/index.js +24 -0
- package/dist/services/agent/tools/core/index.mjs +2 -0
- package/dist/services/agent/tools/core/web-search/index.d.ts +1 -0
- package/dist/services/agent/tools/core/web-search/index.js +22 -0
- package/dist/services/agent/tools/core/web-search/index.mjs +1 -0
- package/dist/services/agent/tools/core/web-search/web-search.tool.d.ts +2 -0
- package/dist/services/agent/tools/core/web-search/web-search.tool.js +51 -0
- package/dist/services/agent/tools/core/web-search/web-search.tool.mjs +30 -0
- package/dist/services/agent/tools/index.d.ts +2 -12
- package/dist/services/agent/tools/index.js +24 -7
- package/dist/services/agent/tools/index.mjs +2 -1
- package/dist/{tool-DMR_ZdjP.d.ts → services/agent/tools/tool.d.ts} +7 -9
- package/dist/services/agent/tools/tool.js +57 -0
- package/dist/services/agent/tools/tool.mjs +34 -0
- package/dist/services/agent/utils/rank-tools-by-keywords.d.ts +12 -0
- package/dist/services/agent/utils/rank-tools-by-keywords.js +65 -0
- package/dist/services/agent/utils/rank-tools-by-keywords.mjs +42 -0
- package/dist/services/app/core/app.d.ts +14 -0
- package/dist/services/app/core/app.js +60 -0
- package/dist/services/app/core/app.mjs +47 -0
- package/dist/{current-session-DC-SF7rl.d.mts → services/app/core/current-session.d.ts} +4 -5
- package/dist/services/app/core/current-session.js +124 -0
- package/dist/services/app/core/current-session.mjs +104 -0
- package/dist/services/app/core/current-user.d.ts +16 -0
- package/dist/services/app/core/current-user.js +84 -0
- package/dist/services/app/core/current-user.mjs +61 -0
- package/dist/services/app/core/index.d.ts +3 -60
- package/dist/services/app/core/index.js +26 -7
- package/dist/services/app/core/index.mjs +3 -1
- package/dist/services/app/modules/authentication/lambdas/login/index.d.ts +1 -0
- package/dist/services/app/modules/authentication/lambdas/login/index.js +22 -0
- package/dist/services/app/modules/authentication/lambdas/login/index.mjs +1 -0
- package/dist/services/app/modules/authentication/lambdas/login/login.use-case.d.ts +21 -0
- package/dist/services/app/modules/authentication/lambdas/login/login.use-case.js +89 -0
- package/dist/services/app/modules/authentication/lambdas/login/login.use-case.mjs +50 -0
- package/dist/services/app/modules/users/entities/index.d.ts +1 -0
- package/dist/services/app/modules/users/entities/index.js +22 -0
- package/dist/services/app/modules/users/entities/index.mjs +1 -0
- package/dist/services/app/modules/users/entities/user-acquisition.d.ts +12 -0
- package/dist/services/app/modules/users/entities/user-acquisition.js +55 -0
- package/dist/services/app/modules/users/entities/user-acquisition.mjs +26 -0
- package/dist/services/app/modules/users/entities/user-country.d.ts +11 -0
- package/dist/services/app/modules/users/entities/user-country.js +44 -0
- package/dist/services/app/modules/users/entities/user-country.mjs +21 -0
- package/dist/services/app/modules/users/entities/user-currency.d.ts +13 -0
- package/dist/services/app/modules/users/entities/user-currency.js +44 -0
- package/dist/services/app/modules/users/entities/user-currency.mjs +21 -0
- package/dist/services/app/modules/users/entities/user-email.value-object.d.ts +6 -0
- package/dist/services/app/modules/users/entities/user-email.value-object.js +43 -0
- package/dist/services/app/modules/users/entities/user-email.value-object.mjs +20 -0
- package/dist/services/app/modules/users/entities/user-language.d.ts +11 -0
- package/dist/services/app/modules/users/entities/user-language.js +44 -0
- package/dist/services/app/modules/users/entities/user-language.mjs +21 -0
- package/dist/services/app/modules/users/entities/user-marketing.d.ts +9 -0
- package/dist/services/app/modules/users/entities/user-marketing.js +53 -0
- package/dist/services/app/modules/users/entities/user-marketing.mjs +24 -0
- package/dist/services/app/modules/users/entities/user-notification-preferences.d.ts +11 -0
- package/dist/services/app/modules/users/entities/user-notification-preferences.js +41 -0
- package/dist/services/app/modules/users/entities/user-notification-preferences.mjs +18 -0
- package/dist/services/app/modules/users/entities/user-password.value-object.d.ts +8 -0
- package/dist/services/app/modules/users/entities/user-password.value-object.js +69 -0
- package/dist/services/app/modules/users/entities/user-password.value-object.mjs +36 -0
- package/dist/services/app/modules/users/entities/user-permissions.d.ts +21 -0
- package/dist/services/app/modules/users/entities/user-permissions.js +59 -0
- package/dist/services/app/modules/users/entities/user-permissions.mjs +36 -0
- package/dist/services/app/modules/users/entities/user-preferences.d.ts +25 -0
- package/dist/services/app/modules/users/entities/user-preferences.js +69 -0
- package/dist/services/app/modules/users/entities/user-preferences.mjs +46 -0
- package/dist/services/app/modules/users/entities/user-report-preferences.d.ts +16 -0
- package/dist/services/app/modules/users/entities/user-report-preferences.js +56 -0
- package/dist/services/app/modules/users/entities/user-report-preferences.mjs +33 -0
- package/dist/services/app/modules/users/entities/user-report-schedule.d.ts +11 -0
- package/dist/services/app/modules/users/entities/user-report-schedule.js +41 -0
- package/dist/services/app/modules/users/entities/user-report-schedule.mjs +18 -0
- package/dist/services/app/modules/users/entities/user-timezone.d.ts +11 -0
- package/dist/services/app/modules/users/entities/user-timezone.js +44 -0
- package/dist/services/app/modules/users/entities/user-timezone.mjs +21 -0
- package/dist/services/app/modules/users/entities/user.entity.d.ts +41 -0
- package/dist/services/app/modules/users/entities/user.entity.js +133 -0
- package/dist/services/app/modules/users/entities/user.entity.mjs +103 -0
- package/dist/services/app/modules/users/lambdas/create-user/create-user.use-case.d.ts +14 -0
- package/dist/services/app/modules/users/lambdas/create-user/create-user.use-case.js +58 -0
- package/dist/services/app/modules/users/lambdas/create-user/create-user.use-case.mjs +29 -0
- package/dist/services/app/modules/users/lambdas/create-user/index.d.ts +1 -0
- package/dist/services/app/modules/users/lambdas/create-user/index.js +22 -0
- package/dist/services/app/modules/users/lambdas/create-user/index.mjs +1 -0
- package/dist/services/app/modules/users/lambdas/delete-user/delete-user.use-case.d.ts +16 -0
- package/dist/services/app/modules/users/lambdas/delete-user/delete-user.use-case.js +61 -0
- package/dist/services/app/modules/users/lambdas/delete-user/delete-user.use-case.mjs +32 -0
- package/dist/services/app/modules/users/lambdas/delete-user/index.d.ts +1 -0
- package/dist/services/app/modules/users/lambdas/delete-user/index.js +22 -0
- package/dist/services/app/modules/users/lambdas/delete-user/index.mjs +1 -0
- package/dist/services/app/modules/users/lambdas/get-user-by-id/get-user-by-id.use-case.d.ts +14 -0
- package/dist/services/app/modules/users/lambdas/get-user-by-id/get-user-by-id.use-case.js +52 -0
- package/dist/services/app/modules/users/lambdas/get-user-by-id/get-user-by-id.use-case.mjs +23 -0
- package/dist/services/app/modules/users/lambdas/get-user-by-id/index.d.ts +1 -0
- package/dist/services/app/modules/users/lambdas/get-user-by-id/index.js +22 -0
- package/dist/services/app/modules/users/lambdas/get-user-by-id/index.mjs +1 -0
- package/dist/services/app/modules/users/lambdas/list-users-by-props/index.d.ts +1 -0
- package/dist/services/app/modules/users/lambdas/list-users-by-props/index.js +22 -0
- package/dist/services/app/modules/users/lambdas/list-users-by-props/index.mjs +1 -0
- package/dist/services/app/modules/users/lambdas/list-users-by-props/list-users-by-props.use-case.d.ts +16 -0
- package/dist/services/app/modules/users/lambdas/list-users-by-props/list-users-by-props.use-case.js +52 -0
- package/dist/services/app/modules/users/lambdas/list-users-by-props/list-users-by-props.use-case.mjs +23 -0
- package/dist/services/app/modules/users/lambdas/update-user/index.d.ts +1 -0
- package/dist/services/app/modules/users/lambdas/update-user/index.js +22 -0
- package/dist/services/app/modules/users/lambdas/update-user/index.mjs +1 -0
- package/dist/services/app/modules/users/lambdas/update-user/update-user.use-case.d.ts +15 -0
- package/dist/services/app/modules/users/lambdas/update-user/update-user.use-case.js +62 -0
- package/dist/services/app/modules/users/lambdas/update-user/update-user.use-case.mjs +33 -0
- package/dist/services/app/modules/users/repositories/index.d.ts +1 -0
- package/dist/services/app/modules/users/repositories/index.js +22 -0
- package/dist/services/app/modules/users/repositories/index.mjs +1 -0
- package/dist/services/app/modules/users/repositories/user.repository.d.ts +12 -0
- package/dist/services/app/modules/users/repositories/user.repository.js +83 -0
- package/dist/services/app/modules/users/repositories/user.repository.mjs +54 -0
- package/package.json +1 -1
- package/dist/agent-loop-C41Y1CGp.d.mts +0 -60
- package/dist/agent-loop-ZH4GRi4A.d.ts +0 -60
- package/dist/base.use-case-8K6_Ods0.d.mts +0 -14
- package/dist/base.use-case-ChEb3nh6.d.ts +0 -14
- package/dist/chunk-6PCVBY5G.mjs +0 -1
- package/dist/chunk-7WJ3XXSP.mjs +0 -7
- package/dist/chunk-CCRMOWMO.mjs +0 -1
- package/dist/chunk-ISOEJA2L.mjs +0 -1
- package/dist/chunk-XXB52O7H.mjs +0 -1
- package/dist/current-session-DC-SF7rl.d.ts +0 -130
- package/dist/current-user-4BppBUBP.d.mts +0 -264
- package/dist/current-user-4BppBUBP.d.ts +0 -264
- package/dist/index.d.mts +0 -10
- package/dist/services/agent/core/index.d.mts +0 -122
- package/dist/services/agent/loops/index.d.mts +0 -116
- package/dist/services/agent/skills/index.d.mts +0 -14
- package/dist/services/agent/tools/index.d.mts +0 -12
- package/dist/services/app/core/index.d.mts +0 -60
- package/dist/skill-CtYQbG6-.d.ts +0 -308
- package/dist/skill-DXNkK5FG.d.mts +0 -308
- package/dist/tool-BaG2a8Np.d.mts +0 -42
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BaseEntity, BaseEntityProps } from '@common/core/base.entity';
|
|
2
|
+
import { Tool, BaseParams } from '@services/agent/tools/tool';
|
|
3
|
+
export type ActionStatus = 'pending' | 'running' | 'completed' | 'failed';
|
|
4
|
+
export interface ActionErrorProps {
|
|
5
|
+
message: string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export interface AgentActionProps extends BaseEntityProps {
|
|
9
|
+
name?: string;
|
|
10
|
+
stepId?: string;
|
|
11
|
+
args?: Record<string, any>;
|
|
12
|
+
dependsOn?: string[];
|
|
13
|
+
status?: ActionStatus;
|
|
14
|
+
output?: any;
|
|
15
|
+
error?: ActionErrorProps;
|
|
16
|
+
reasoning?: string;
|
|
17
|
+
retries?: number;
|
|
18
|
+
author?: string;
|
|
19
|
+
startedAt?: Date;
|
|
20
|
+
completedAt?: Date;
|
|
21
|
+
}
|
|
22
|
+
export declare class AgentAction extends BaseEntity {
|
|
23
|
+
private readonly props;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
stepId?: string | undefined;
|
|
26
|
+
args?: Record<string, any> | undefined;
|
|
27
|
+
dependsOn?: string[] | undefined;
|
|
28
|
+
status?: ActionStatus | undefined;
|
|
29
|
+
output?: any | undefined;
|
|
30
|
+
error?: ActionErrorProps | undefined;
|
|
31
|
+
reasoning?: string | undefined;
|
|
32
|
+
retries?: number | undefined;
|
|
33
|
+
author?: string | undefined;
|
|
34
|
+
startedAt?: Date | undefined;
|
|
35
|
+
completedAt?: Date | undefined;
|
|
36
|
+
static factory(action: AgentActionProps): AgentAction;
|
|
37
|
+
static fromJSON(props: AgentActionProps): AgentAction;
|
|
38
|
+
constructor(props: AgentActionProps, name?: string | undefined, stepId?: string | undefined, args?: Record<string, any> | undefined, dependsOn?: string[] | undefined, status?: ActionStatus | undefined, output?: any | undefined, error?: ActionErrorProps | undefined, reasoning?: string | undefined, retries?: number | undefined, author?: string | undefined, startedAt?: Date | undefined, completedAt?: Date | undefined);
|
|
39
|
+
toJSON(): AgentActionProps;
|
|
40
|
+
get id(): string;
|
|
41
|
+
get isReady(): boolean;
|
|
42
|
+
get isTerminal(): boolean;
|
|
43
|
+
dependenciesSatisfiedBy(completedRefs: Set<string>): boolean;
|
|
44
|
+
markRunning(): void;
|
|
45
|
+
markCompleted(output: any): void;
|
|
46
|
+
markFailed(error: ActionErrorProps): void;
|
|
47
|
+
incrementRetries(): number;
|
|
48
|
+
resetForRetry(): void;
|
|
49
|
+
runTool(tool: Tool | undefined, args: Record<string, any>, baseParams: BaseParams): Promise<this>;
|
|
50
|
+
}
|
|
51
|
+
export interface ActionDescriptor {
|
|
52
|
+
name: string;
|
|
53
|
+
stepId?: string;
|
|
54
|
+
args?: Record<string, any>;
|
|
55
|
+
dependsOn?: string[];
|
|
56
|
+
reasoning?: string;
|
|
57
|
+
author?: string;
|
|
58
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var agent_action_entity_exports = {};
|
|
20
|
+
__export(agent_action_entity_exports, {
|
|
21
|
+
AgentAction: () => AgentAction
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(agent_action_entity_exports);
|
|
24
|
+
var import_mongodb = require("mongodb");
|
|
25
|
+
var import_base = require("@common/core/base.entity");
|
|
26
|
+
class AgentAction extends import_base.BaseEntity {
|
|
27
|
+
constructor(props, name, stepId, args, dependsOn, status, output, error, reasoning, retries, author, startedAt, completedAt) {
|
|
28
|
+
super(props);
|
|
29
|
+
this.props = props;
|
|
30
|
+
this.name = name;
|
|
31
|
+
this.stepId = stepId;
|
|
32
|
+
this.args = args;
|
|
33
|
+
this.dependsOn = dependsOn;
|
|
34
|
+
this.status = status;
|
|
35
|
+
this.output = output;
|
|
36
|
+
this.error = error;
|
|
37
|
+
this.reasoning = reasoning;
|
|
38
|
+
this.retries = retries;
|
|
39
|
+
this.author = author;
|
|
40
|
+
this.startedAt = startedAt;
|
|
41
|
+
this.completedAt = completedAt;
|
|
42
|
+
}
|
|
43
|
+
props;
|
|
44
|
+
name;
|
|
45
|
+
stepId;
|
|
46
|
+
args;
|
|
47
|
+
dependsOn;
|
|
48
|
+
status;
|
|
49
|
+
output;
|
|
50
|
+
error;
|
|
51
|
+
reasoning;
|
|
52
|
+
retries;
|
|
53
|
+
author;
|
|
54
|
+
startedAt;
|
|
55
|
+
completedAt;
|
|
56
|
+
static factory(action) {
|
|
57
|
+
const actionId = action._id && import_mongodb.ObjectId.isValid(action._id) ? new import_mongodb.ObjectId(action._id) : new import_mongodb.ObjectId();
|
|
58
|
+
return AgentAction.fromJSON({ ...action, _id: actionId, status: action.status ?? "pending" });
|
|
59
|
+
}
|
|
60
|
+
static fromJSON(props) {
|
|
61
|
+
return new AgentAction(
|
|
62
|
+
props,
|
|
63
|
+
props.name,
|
|
64
|
+
props.stepId,
|
|
65
|
+
props.args,
|
|
66
|
+
props.dependsOn,
|
|
67
|
+
props.status,
|
|
68
|
+
props.output,
|
|
69
|
+
props.error,
|
|
70
|
+
props.reasoning,
|
|
71
|
+
props.retries,
|
|
72
|
+
props.author,
|
|
73
|
+
props.startedAt,
|
|
74
|
+
props.completedAt
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
toJSON() {
|
|
78
|
+
return {
|
|
79
|
+
...super.toJSON(),
|
|
80
|
+
name: this.name,
|
|
81
|
+
stepId: this.stepId,
|
|
82
|
+
args: this.args,
|
|
83
|
+
dependsOn: this.dependsOn,
|
|
84
|
+
status: this.status,
|
|
85
|
+
output: this.output,
|
|
86
|
+
error: this.error,
|
|
87
|
+
reasoning: this.reasoning,
|
|
88
|
+
retries: this.retries,
|
|
89
|
+
author: this.author,
|
|
90
|
+
startedAt: this.startedAt,
|
|
91
|
+
completedAt: this.completedAt
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
get id() {
|
|
95
|
+
return this._id.toString();
|
|
96
|
+
}
|
|
97
|
+
get isReady() {
|
|
98
|
+
return this.status === "pending";
|
|
99
|
+
}
|
|
100
|
+
get isTerminal() {
|
|
101
|
+
return this.status === "completed" || this.status === "failed";
|
|
102
|
+
}
|
|
103
|
+
dependenciesSatisfiedBy(completedRefs) {
|
|
104
|
+
if (!this.dependsOn?.length) return true;
|
|
105
|
+
return this.dependsOn.every((ref) => completedRefs.has(ref));
|
|
106
|
+
}
|
|
107
|
+
markRunning() {
|
|
108
|
+
this.status = "running";
|
|
109
|
+
this.startedAt = /* @__PURE__ */ new Date();
|
|
110
|
+
}
|
|
111
|
+
markCompleted(output) {
|
|
112
|
+
this.status = "completed";
|
|
113
|
+
this.output = output;
|
|
114
|
+
this.completedAt = /* @__PURE__ */ new Date();
|
|
115
|
+
}
|
|
116
|
+
markFailed(error) {
|
|
117
|
+
this.status = "failed";
|
|
118
|
+
this.error = error;
|
|
119
|
+
this.completedAt = /* @__PURE__ */ new Date();
|
|
120
|
+
}
|
|
121
|
+
incrementRetries() {
|
|
122
|
+
this.retries = (this.retries ?? 0) + 1;
|
|
123
|
+
return this.retries;
|
|
124
|
+
}
|
|
125
|
+
/** Vuelve a dejar la action en `pending` para un nuevo intento — usar junto a incrementRetries() */
|
|
126
|
+
resetForRetry() {
|
|
127
|
+
this.status = "pending";
|
|
128
|
+
this.error = void 0;
|
|
129
|
+
this.startedAt = void 0;
|
|
130
|
+
this.completedAt = void 0;
|
|
131
|
+
}
|
|
132
|
+
/** Corre una tool con los argumentos ya resueltos y registra el resultado en sí misma */
|
|
133
|
+
async runTool(tool, args, baseParams) {
|
|
134
|
+
if (!tool) {
|
|
135
|
+
this.markFailed({ message: `Tool "${this.name}" not found` });
|
|
136
|
+
return this;
|
|
137
|
+
}
|
|
138
|
+
this.markRunning();
|
|
139
|
+
try {
|
|
140
|
+
const result = await tool.run({ ...args, ...baseParams });
|
|
141
|
+
this.markCompleted(result?.data);
|
|
142
|
+
} catch (error) {
|
|
143
|
+
this.markFailed({ message: error?.message ?? String(error) });
|
|
144
|
+
}
|
|
145
|
+
return this;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
149
|
+
0 && (module.exports = {
|
|
150
|
+
AgentAction
|
|
151
|
+
});
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import "../../../../../chunk-XRJFNASX.mjs";
|
|
2
|
+
import { ObjectId } from "mongodb";
|
|
3
|
+
import { BaseEntity } from "@common/core/base.entity";
|
|
4
|
+
class AgentAction extends BaseEntity {
|
|
5
|
+
constructor(props, name, stepId, args, dependsOn, status, output, error, reasoning, retries, author, startedAt, completedAt) {
|
|
6
|
+
super(props);
|
|
7
|
+
this.props = props;
|
|
8
|
+
this.name = name;
|
|
9
|
+
this.stepId = stepId;
|
|
10
|
+
this.args = args;
|
|
11
|
+
this.dependsOn = dependsOn;
|
|
12
|
+
this.status = status;
|
|
13
|
+
this.output = output;
|
|
14
|
+
this.error = error;
|
|
15
|
+
this.reasoning = reasoning;
|
|
16
|
+
this.retries = retries;
|
|
17
|
+
this.author = author;
|
|
18
|
+
this.startedAt = startedAt;
|
|
19
|
+
this.completedAt = completedAt;
|
|
20
|
+
}
|
|
21
|
+
props;
|
|
22
|
+
name;
|
|
23
|
+
stepId;
|
|
24
|
+
args;
|
|
25
|
+
dependsOn;
|
|
26
|
+
status;
|
|
27
|
+
output;
|
|
28
|
+
error;
|
|
29
|
+
reasoning;
|
|
30
|
+
retries;
|
|
31
|
+
author;
|
|
32
|
+
startedAt;
|
|
33
|
+
completedAt;
|
|
34
|
+
static factory(action) {
|
|
35
|
+
const actionId = action._id && ObjectId.isValid(action._id) ? new ObjectId(action._id) : new ObjectId();
|
|
36
|
+
return AgentAction.fromJSON({ ...action, _id: actionId, status: action.status ?? "pending" });
|
|
37
|
+
}
|
|
38
|
+
static fromJSON(props) {
|
|
39
|
+
return new AgentAction(
|
|
40
|
+
props,
|
|
41
|
+
props.name,
|
|
42
|
+
props.stepId,
|
|
43
|
+
props.args,
|
|
44
|
+
props.dependsOn,
|
|
45
|
+
props.status,
|
|
46
|
+
props.output,
|
|
47
|
+
props.error,
|
|
48
|
+
props.reasoning,
|
|
49
|
+
props.retries,
|
|
50
|
+
props.author,
|
|
51
|
+
props.startedAt,
|
|
52
|
+
props.completedAt
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
toJSON() {
|
|
56
|
+
return {
|
|
57
|
+
...super.toJSON(),
|
|
58
|
+
name: this.name,
|
|
59
|
+
stepId: this.stepId,
|
|
60
|
+
args: this.args,
|
|
61
|
+
dependsOn: this.dependsOn,
|
|
62
|
+
status: this.status,
|
|
63
|
+
output: this.output,
|
|
64
|
+
error: this.error,
|
|
65
|
+
reasoning: this.reasoning,
|
|
66
|
+
retries: this.retries,
|
|
67
|
+
author: this.author,
|
|
68
|
+
startedAt: this.startedAt,
|
|
69
|
+
completedAt: this.completedAt
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
get id() {
|
|
73
|
+
return this._id.toString();
|
|
74
|
+
}
|
|
75
|
+
get isReady() {
|
|
76
|
+
return this.status === "pending";
|
|
77
|
+
}
|
|
78
|
+
get isTerminal() {
|
|
79
|
+
return this.status === "completed" || this.status === "failed";
|
|
80
|
+
}
|
|
81
|
+
dependenciesSatisfiedBy(completedRefs) {
|
|
82
|
+
if (!this.dependsOn?.length) return true;
|
|
83
|
+
return this.dependsOn.every((ref) => completedRefs.has(ref));
|
|
84
|
+
}
|
|
85
|
+
markRunning() {
|
|
86
|
+
this.status = "running";
|
|
87
|
+
this.startedAt = /* @__PURE__ */ new Date();
|
|
88
|
+
}
|
|
89
|
+
markCompleted(output) {
|
|
90
|
+
this.status = "completed";
|
|
91
|
+
this.output = output;
|
|
92
|
+
this.completedAt = /* @__PURE__ */ new Date();
|
|
93
|
+
}
|
|
94
|
+
markFailed(error) {
|
|
95
|
+
this.status = "failed";
|
|
96
|
+
this.error = error;
|
|
97
|
+
this.completedAt = /* @__PURE__ */ new Date();
|
|
98
|
+
}
|
|
99
|
+
incrementRetries() {
|
|
100
|
+
this.retries = (this.retries ?? 0) + 1;
|
|
101
|
+
return this.retries;
|
|
102
|
+
}
|
|
103
|
+
/** Vuelve a dejar la action en `pending` para un nuevo intento — usar junto a incrementRetries() */
|
|
104
|
+
resetForRetry() {
|
|
105
|
+
this.status = "pending";
|
|
106
|
+
this.error = void 0;
|
|
107
|
+
this.startedAt = void 0;
|
|
108
|
+
this.completedAt = void 0;
|
|
109
|
+
}
|
|
110
|
+
/** Corre una tool con los argumentos ya resueltos y registra el resultado en sí misma */
|
|
111
|
+
async runTool(tool, args, baseParams) {
|
|
112
|
+
if (!tool) {
|
|
113
|
+
this.markFailed({ message: `Tool "${this.name}" not found` });
|
|
114
|
+
return this;
|
|
115
|
+
}
|
|
116
|
+
this.markRunning();
|
|
117
|
+
try {
|
|
118
|
+
const result = await tool.run({ ...args, ...baseParams });
|
|
119
|
+
this.markCompleted(result?.data);
|
|
120
|
+
} catch (error) {
|
|
121
|
+
this.markFailed({ message: error?.message ?? String(error) });
|
|
122
|
+
}
|
|
123
|
+
return this;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
AgentAction
|
|
128
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { BaseEntity, BaseEntityProps } from '@common/core/base.entity';
|
|
2
|
+
import { AgentAction, AgentActionProps, ActionDescriptor } from './agent-action.entity';
|
|
3
|
+
import { ChatContext } from './chat-context.entity';
|
|
4
|
+
import { Tool, BaseParams } from '@services/agent/tools/tool';
|
|
5
|
+
export declare enum TaskStatus {
|
|
6
|
+
PENDING = "pending",
|
|
7
|
+
IN_PROGRESS = "in_progress",
|
|
8
|
+
AWAITING_USER = "awaiting_user",
|
|
9
|
+
COMPLETED = "completed",
|
|
10
|
+
PAUSED = "paused",
|
|
11
|
+
ABANDONED = "abandoned",
|
|
12
|
+
CANCELLED = "cancelled",
|
|
13
|
+
FAILED = "failed"
|
|
14
|
+
}
|
|
15
|
+
export interface AgentTaskProps extends BaseEntityProps {
|
|
16
|
+
status?: TaskStatus;
|
|
17
|
+
goal?: string;
|
|
18
|
+
nextNode?: string;
|
|
19
|
+
threadId?: string;
|
|
20
|
+
previousTaskId?: string;
|
|
21
|
+
summary?: string;
|
|
22
|
+
loopName?: string;
|
|
23
|
+
actions?: AgentActionProps[];
|
|
24
|
+
}
|
|
25
|
+
export declare class AgentTask extends BaseEntity {
|
|
26
|
+
private readonly props;
|
|
27
|
+
status?: TaskStatus | undefined;
|
|
28
|
+
goal?: string | undefined;
|
|
29
|
+
nextNode?: string | undefined;
|
|
30
|
+
threadId?: string | undefined;
|
|
31
|
+
previousTaskId?: string | undefined;
|
|
32
|
+
summary?: string | undefined;
|
|
33
|
+
loopName?: string | undefined;
|
|
34
|
+
actions: AgentAction[];
|
|
35
|
+
static factory(task: AgentTaskProps): AgentTask;
|
|
36
|
+
static fromJSON(props: AgentTaskProps): AgentTask;
|
|
37
|
+
constructor(props: AgentTaskProps, status?: TaskStatus | undefined, goal?: string | undefined, nextNode?: string | undefined, threadId?: string | undefined, previousTaskId?: string | undefined, summary?: string | undefined, loopName?: string | undefined, actions?: AgentAction[]);
|
|
38
|
+
toJSON(): AgentTaskProps;
|
|
39
|
+
get id(): string;
|
|
40
|
+
addAction(descriptor: ActionDescriptor): AgentAction;
|
|
41
|
+
getAction(ref: string): AgentAction | undefined;
|
|
42
|
+
findLastByName(name: string): AgentAction | undefined;
|
|
43
|
+
get readyActions(): AgentAction[];
|
|
44
|
+
get failedActions(): AgentAction[];
|
|
45
|
+
get lastExecutedAction(): AgentAction | undefined;
|
|
46
|
+
setNextNode(node?: string): void;
|
|
47
|
+
complete(summary?: string): void;
|
|
48
|
+
fail(): void;
|
|
49
|
+
cancel(): void;
|
|
50
|
+
pause(): void;
|
|
51
|
+
reopen(): void;
|
|
52
|
+
resolveArgs(action: AgentAction, context: ChatContext): any;
|
|
53
|
+
private resolveValue;
|
|
54
|
+
private findActionByRef;
|
|
55
|
+
private readContextValue;
|
|
56
|
+
runTool(descriptor: ActionDescriptor, tool: Tool | undefined, context: ChatContext, baseParams: BaseParams): Promise<AgentAction>;
|
|
57
|
+
runReadyAction(actionRef: string, tool: Tool | undefined, context: ChatContext, baseParams: BaseParams): Promise<AgentAction>;
|
|
58
|
+
private executeToolAction;
|
|
59
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var agent_task_entity_exports = {};
|
|
20
|
+
__export(agent_task_entity_exports, {
|
|
21
|
+
AgentTask: () => AgentTask,
|
|
22
|
+
TaskStatus: () => TaskStatus
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(agent_task_entity_exports);
|
|
25
|
+
var import_mongodb = require("mongodb");
|
|
26
|
+
var import_base = require("@common/core/base.entity");
|
|
27
|
+
var import_agent_action = require("./agent-action.entity");
|
|
28
|
+
var TaskStatus = /* @__PURE__ */ ((TaskStatus2) => {
|
|
29
|
+
TaskStatus2["PENDING"] = "pending";
|
|
30
|
+
TaskStatus2["IN_PROGRESS"] = "in_progress";
|
|
31
|
+
TaskStatus2["AWAITING_USER"] = "awaiting_user";
|
|
32
|
+
TaskStatus2["COMPLETED"] = "completed";
|
|
33
|
+
TaskStatus2["PAUSED"] = "paused";
|
|
34
|
+
TaskStatus2["ABANDONED"] = "abandoned";
|
|
35
|
+
TaskStatus2["CANCELLED"] = "cancelled";
|
|
36
|
+
TaskStatus2["FAILED"] = "failed";
|
|
37
|
+
return TaskStatus2;
|
|
38
|
+
})(TaskStatus || {});
|
|
39
|
+
const STEP_REF = /^\{\{step_([\w-]+)\.output\}\}$/;
|
|
40
|
+
const STEP_REF_GLOBAL = /\{\{step_([\w-]+)\.output\}\}/g;
|
|
41
|
+
const CONTEXT_REF = /^\{\{context\.([\w.-]+)\}\}$/;
|
|
42
|
+
const CONTEXT_REF_GLOBAL = /\{\{context\.([\w.-]+)\}\}/g;
|
|
43
|
+
function stringifyValue(value) {
|
|
44
|
+
return typeof value === "object" ? JSON.stringify(value) : String(value);
|
|
45
|
+
}
|
|
46
|
+
class AgentTask extends import_base.BaseEntity {
|
|
47
|
+
constructor(props, status, goal, nextNode, threadId, previousTaskId, summary, loopName, actions = []) {
|
|
48
|
+
super(props);
|
|
49
|
+
this.props = props;
|
|
50
|
+
this.status = status;
|
|
51
|
+
this.goal = goal;
|
|
52
|
+
this.nextNode = nextNode;
|
|
53
|
+
this.threadId = threadId;
|
|
54
|
+
this.previousTaskId = previousTaskId;
|
|
55
|
+
this.summary = summary;
|
|
56
|
+
this.loopName = loopName;
|
|
57
|
+
this.actions = actions;
|
|
58
|
+
}
|
|
59
|
+
props;
|
|
60
|
+
status;
|
|
61
|
+
goal;
|
|
62
|
+
nextNode;
|
|
63
|
+
threadId;
|
|
64
|
+
previousTaskId;
|
|
65
|
+
summary;
|
|
66
|
+
loopName;
|
|
67
|
+
actions;
|
|
68
|
+
static factory(task) {
|
|
69
|
+
const taskId = task._id && import_mongodb.ObjectId.isValid(task._id) ? new import_mongodb.ObjectId(task._id) : new import_mongodb.ObjectId();
|
|
70
|
+
return AgentTask.fromJSON({
|
|
71
|
+
...task,
|
|
72
|
+
_id: taskId,
|
|
73
|
+
status: task.status ?? "in_progress" /* IN_PROGRESS */
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
static fromJSON(props) {
|
|
77
|
+
return new AgentTask(
|
|
78
|
+
props,
|
|
79
|
+
props.status,
|
|
80
|
+
props.goal,
|
|
81
|
+
props.nextNode,
|
|
82
|
+
props.threadId,
|
|
83
|
+
props.previousTaskId,
|
|
84
|
+
props.summary,
|
|
85
|
+
props.loopName,
|
|
86
|
+
props.actions?.map((a) => import_agent_action.AgentAction.factory(a)) ?? []
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
toJSON() {
|
|
90
|
+
return {
|
|
91
|
+
...super.toJSON(),
|
|
92
|
+
status: this.status,
|
|
93
|
+
goal: this.goal,
|
|
94
|
+
nextNode: this.nextNode,
|
|
95
|
+
threadId: this.threadId,
|
|
96
|
+
previousTaskId: this.previousTaskId,
|
|
97
|
+
summary: this.summary,
|
|
98
|
+
loopName: this.loopName,
|
|
99
|
+
actions: this.actions.map((a) => a.toJSON())
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
get id() {
|
|
103
|
+
return this._id.toString();
|
|
104
|
+
}
|
|
105
|
+
addAction(descriptor) {
|
|
106
|
+
const action = import_agent_action.AgentAction.factory({
|
|
107
|
+
name: descriptor.name,
|
|
108
|
+
stepId: descriptor.stepId,
|
|
109
|
+
args: descriptor.args,
|
|
110
|
+
dependsOn: descriptor.dependsOn,
|
|
111
|
+
reasoning: descriptor.reasoning,
|
|
112
|
+
author: descriptor.author
|
|
113
|
+
});
|
|
114
|
+
this.actions.push(action);
|
|
115
|
+
return action;
|
|
116
|
+
}
|
|
117
|
+
getAction(ref) {
|
|
118
|
+
return this.actions.find((a) => a.id === ref || a.stepId === ref);
|
|
119
|
+
}
|
|
120
|
+
findLastByName(name) {
|
|
121
|
+
return this.actions.slice().reverse().find((a) => a.name === name);
|
|
122
|
+
}
|
|
123
|
+
/** Actions en `pending` cuyas dependencias (por stepId o id) ya están `completed` */
|
|
124
|
+
get readyActions() {
|
|
125
|
+
const completedRefs = new Set(
|
|
126
|
+
this.actions.filter((a) => a.status === "completed").flatMap((a) => [a.id, a.stepId].filter(Boolean))
|
|
127
|
+
);
|
|
128
|
+
return this.actions.filter((a) => a.isReady && a.dependenciesSatisfiedBy(completedRefs));
|
|
129
|
+
}
|
|
130
|
+
get failedActions() {
|
|
131
|
+
return this.actions.filter((a) => a.status === "failed");
|
|
132
|
+
}
|
|
133
|
+
get lastExecutedAction() {
|
|
134
|
+
return this.actions.slice().reverse().find((a) => a.isTerminal);
|
|
135
|
+
}
|
|
136
|
+
setNextNode(node) {
|
|
137
|
+
this.nextNode = node;
|
|
138
|
+
}
|
|
139
|
+
complete(summary) {
|
|
140
|
+
this.status = "completed" /* COMPLETED */;
|
|
141
|
+
if (summary) this.summary = summary;
|
|
142
|
+
this.nextNode = void 0;
|
|
143
|
+
}
|
|
144
|
+
fail() {
|
|
145
|
+
this.status = "failed" /* FAILED */;
|
|
146
|
+
this.nextNode = void 0;
|
|
147
|
+
}
|
|
148
|
+
cancel() {
|
|
149
|
+
this.status = "cancelled" /* CANCELLED */;
|
|
150
|
+
this.nextNode = void 0;
|
|
151
|
+
}
|
|
152
|
+
pause() {
|
|
153
|
+
if (this.status === "in_progress" /* IN_PROGRESS */ || this.status === "awaiting_user" /* AWAITING_USER */) {
|
|
154
|
+
this.status = "paused" /* PAUSED */;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
reopen() {
|
|
158
|
+
this.status = "in_progress" /* IN_PROGRESS */;
|
|
159
|
+
this.nextNode = void 0;
|
|
160
|
+
}
|
|
161
|
+
resolveArgs(action, context) {
|
|
162
|
+
return this.resolveValue(action.args, context);
|
|
163
|
+
}
|
|
164
|
+
resolveValue(value, context) {
|
|
165
|
+
if (typeof value === "string") {
|
|
166
|
+
const stepMatch = value.match(STEP_REF);
|
|
167
|
+
if (stepMatch) {
|
|
168
|
+
const target = this.findActionByRef(stepMatch[1]);
|
|
169
|
+
return target?.output !== void 0 ? target.output : value;
|
|
170
|
+
}
|
|
171
|
+
const contextMatch = value.match(CONTEXT_REF);
|
|
172
|
+
if (contextMatch) {
|
|
173
|
+
const resolved = this.readContextValue(contextMatch[1], context);
|
|
174
|
+
return resolved !== void 0 ? resolved : value;
|
|
175
|
+
}
|
|
176
|
+
return value.replace(STEP_REF_GLOBAL, (_, ref) => {
|
|
177
|
+
const target = this.findActionByRef(ref);
|
|
178
|
+
return target?.output !== void 0 ? stringifyValue(target.output) : "";
|
|
179
|
+
}).replace(CONTEXT_REF_GLOBAL, (_, name) => {
|
|
180
|
+
const resolved = this.readContextValue(name, context);
|
|
181
|
+
return resolved !== void 0 ? stringifyValue(resolved) : "";
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
if (Array.isArray(value)) {
|
|
185
|
+
return value.map((item) => this.resolveValue(item, context));
|
|
186
|
+
}
|
|
187
|
+
if (value !== null && typeof value === "object") {
|
|
188
|
+
const resolved = {};
|
|
189
|
+
for (const key of Object.keys(value)) {
|
|
190
|
+
resolved[key] = this.resolveValue(value[key], context);
|
|
191
|
+
}
|
|
192
|
+
return resolved;
|
|
193
|
+
}
|
|
194
|
+
return value;
|
|
195
|
+
}
|
|
196
|
+
findActionByRef(ref) {
|
|
197
|
+
return this.actions.find((a) => a.stepId === ref || a.id === ref);
|
|
198
|
+
}
|
|
199
|
+
readContextValue(name, context) {
|
|
200
|
+
const matches = context.selectContext({ taskId: this.id, name });
|
|
201
|
+
return matches?.[0]?.content;
|
|
202
|
+
}
|
|
203
|
+
/** Crea una action nueva y la corre de inmediato (estilo reactivo) */
|
|
204
|
+
async runTool(descriptor, tool, context, baseParams) {
|
|
205
|
+
const action = this.addAction(descriptor);
|
|
206
|
+
return this.executeToolAction(action, tool, context, baseParams);
|
|
207
|
+
}
|
|
208
|
+
/** Corre una action ya encolada (estilo por lotes: actionPlanner encola, esto ejecuta cuando está `ready`) */
|
|
209
|
+
async runReadyAction(actionRef, tool, context, baseParams) {
|
|
210
|
+
const action = this.getAction(actionRef);
|
|
211
|
+
if (!action) throw new Error(`[AgentTask] Action "${actionRef}" not found`);
|
|
212
|
+
return this.executeToolAction(action, tool, context, baseParams);
|
|
213
|
+
}
|
|
214
|
+
async executeToolAction(action, tool, context, baseParams) {
|
|
215
|
+
const resolvedArgs = this.resolveArgs(action, context);
|
|
216
|
+
const executed = await action.runTool(tool, resolvedArgs, baseParams);
|
|
217
|
+
if (executed.status === "completed" && executed.name) {
|
|
218
|
+
context.addContext({
|
|
219
|
+
taskId: this.id,
|
|
220
|
+
meta: { name: executed.name, type: "tool_output", shortDescription: `Output of ${executed.name}` },
|
|
221
|
+
content: executed.output
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
return executed;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
228
|
+
0 && (module.exports = {
|
|
229
|
+
AgentTask,
|
|
230
|
+
TaskStatus
|
|
231
|
+
});
|