n8n 2.23.2 → 2.25.1
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/active-workflow-manager.d.ts +8 -4
- package/dist/active-workflow-manager.js +26 -9
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/auth/auth.service.d.ts +1 -1
- package/dist/auth/auth.service.js +2 -1
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/controllers/ai.controller.js +1 -1
- package/dist/controllers/ai.controller.js.map +1 -1
- package/dist/controllers/api-keys.controller.d.ts +20 -15
- package/dist/controllers/api-keys.controller.js +7 -4
- package/dist/controllers/api-keys.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.d.ts +4 -2
- package/dist/controllers/oauth/oauth1-credential.controller.js +15 -5
- package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.d.ts +4 -2
- package/dist/controllers/oauth/oauth2-credential.controller.js +15 -6
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/project.controller.d.ts +8 -0
- package/dist/controllers/project.controller.js +2 -1
- package/dist/controllers/project.controller.js.map +1 -1
- package/dist/controllers/security-settings.controller.js +18 -1
- package/dist/controllers/security-settings.controller.js.map +1 -1
- package/dist/controllers/telemetry.controller.js +4 -1
- package/dist/controllers/telemetry.controller.js.map +1 -1
- package/dist/credentials/credential-connection-status-provider.interface.d.ts +3 -0
- package/dist/credentials/credential-connection-status-proxy.d.ts +3 -0
- package/dist/credentials/credential-connection-status-proxy.js +10 -0
- package/dist/credentials/credential-connection-status-proxy.js.map +1 -1
- package/dist/credentials/credentials.controller.d.ts +6 -0
- package/dist/credentials/credentials.controller.js +39 -2
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +29 -13
- package/dist/credentials/credentials.service.ee.d.ts +2 -0
- package/dist/credentials/credentials.service.ee.js +3 -0
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +27 -6
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials-helper.d.ts +1 -0
- package/dist/credentials-helper.js +14 -4
- package/dist/credentials-helper.js.map +1 -1
- package/dist/errors/credential-missing-id.error.d.ts +4 -0
- package/dist/errors/credential-missing-id.error.js +14 -0
- package/dist/errors/credential-missing-id.error.js.map +1 -0
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +3 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +54 -2
- package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
- package/dist/events/relays/log-streaming.event-relay.js +39 -1
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +6 -0
- package/dist/events/relays/telemetry.event-relay.js +74 -3
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +6 -5
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution-data/db-store.d.ts +1 -0
- package/dist/executions/execution-data/db-store.js +26 -0
- package/dist/executions/execution-data/db-store.js.map +1 -1
- package/dist/executions/execution-data/fs-store.d.ts +2 -0
- package/dist/executions/execution-data/fs-store.js +27 -0
- package/dist/executions/execution-data/fs-store.js.map +1 -1
- package/dist/executions/execution-data/types.d.ts +1 -0
- package/dist/executions/execution-persistence.d.ts +38 -4
- package/dist/executions/execution-persistence.js +127 -2
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/expression-observability/expression-observability.provider.d.ts +3 -1
- package/dist/expression-observability/expression-observability.provider.js +48 -46
- package/dist/expression-observability/expression-observability.provider.js.map +1 -1
- package/dist/interfaces.d.ts +3 -1
- package/dist/modules/agents/agent-execution.service.d.ts +4 -2
- package/dist/modules/agents/agent-execution.service.js +3 -3
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-command.service.d.ts +40 -0
- package/dist/modules/agents/agent-knowledge-command.service.js +221 -0
- package/dist/modules/agents/agent-knowledge-command.service.js.map +1 -0
- package/dist/modules/agents/agent-knowledge.service.d.ts +42 -0
- package/dist/modules/agents/agent-knowledge.service.js +300 -0
- package/dist/modules/agents/agent-knowledge.service.js.map +1 -0
- package/dist/modules/agents/agent-task.service.d.ts +52 -0
- package/dist/modules/agents/agent-task.service.js +487 -0
- package/dist/modules/agents/agent-task.service.js.map +1 -0
- package/dist/modules/agents/agent-upload.middleware.d.ts +7 -0
- package/dist/modules/agents/agent-upload.middleware.js +62 -0
- package/dist/modules/agents/agent-upload.middleware.js.map +1 -0
- package/dist/modules/agents/agents-tools.service.d.ts +1 -1
- package/dist/modules/agents/agents-tools.service.js +12 -3
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +138 -45
- package/dist/modules/agents/agents.controller.js +176 -48
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +2 -2
- package/dist/modules/agents/agents.module.js +13 -5
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +43 -7
- package/dist/modules/agents/agents.service.js +341 -57
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +6 -5
- package/dist/modules/agents/builder/agents-builder-prompts.js +92 -18
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +11 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +164 -26
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +3 -1
- package/dist/modules/agents/builder/agents-builder.service.js +8 -3
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-tool-names.d.ts +3 -0
- package/dist/modules/agents/builder/builder-tool-names.js +3 -0
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +1 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +25 -4
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-question.tool.js +6 -5
- package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +20 -5
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +23 -4
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +18 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.js +5 -3
- package/dist/modules/agents/builder/prompts/memory.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.js +11 -2
- package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -1
- package/dist/modules/agents/builder/search-mcp-servers.tool.d.ts +6 -0
- package/dist/modules/agents/builder/search-mcp-servers.tool.js +85 -0
- package/dist/modules/agents/builder/search-mcp-servers.tool.js.map +1 -0
- package/dist/modules/agents/builder/skill-body-template.d.ts +4 -0
- package/dist/modules/agents/builder/skill-body-template.js +31 -0
- package/dist/modules/agents/builder/skill-body-template.js.map +1 -0
- package/dist/modules/agents/builder/skills/index.js +6 -1
- package/dist/modules/agents/builder/skills/index.js.map +1 -1
- package/dist/modules/agents/builder/skills/integrations.skill.js +39 -18
- package/dist/modules/agents/builder/skills/integrations.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/mcp.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/mcp.skill.js +110 -0
- package/dist/modules/agents/builder/skills/mcp.skill.js.map +1 -0
- package/dist/modules/agents/builder/skills/research.skill.js +8 -5
- package/dist/modules/agents/builder/skills/research.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +41 -13
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +82 -0
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -0
- package/dist/modules/agents/builder/task-objective-template.d.ts +3 -0
- package/dist/modules/agents/builder/task-objective-template.js +27 -0
- package/dist/modules/agents/builder/task-objective-template.js.map +1 -0
- package/dist/modules/agents/builder/verify-mcp-server.tool.d.ts +8 -0
- package/dist/modules/agents/builder/verify-mcp-server.tool.js +79 -0
- package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.d.ts +4 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js +26 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-file.entity.d.ts +11 -0
- package/dist/modules/agents/entities/agent-file.entity.js +48 -0
- package/dist/modules/agents/entities/agent-file.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-task-run-lock.entity.d.ts +10 -0
- package/dist/modules/agents/entities/agent-task-run-lock.entity.js +54 -0
- package/dist/modules/agents/entities/agent-task-run-lock.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.d.ts +12 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.js +70 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-task.entity.d.ts +11 -0
- package/dist/modules/agents/entities/agent-task.entity.js +64 -0
- package/dist/modules/agents/entities/agent-task.entity.js.map +1 -0
- package/dist/modules/agents/execution-recorder.d.ts +1 -0
- package/dist/modules/agents/execution-recorder.js +9 -5
- package/dist/modules/agents/execution-recorder.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +16 -4
- package/dist/modules/agents/integrations/agent-chat-bridge.js +372 -116
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +27 -2
- package/dist/modules/agents/integrations/agent-chat-integration.js +5 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +15 -6
- package/dist/modules/agents/integrations/chat-integration.service.js +9 -10
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/component-mapper.d.ts +14 -0
- package/dist/modules/agents/integrations/component-mapper.js +9 -1
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +22 -0
- package/dist/modules/agents/integrations/integration-action-executor.js +171 -0
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -0
- package/dist/modules/agents/integrations/integration-context-query-executor.d.ts +18 -0
- package/dist/modules/agents/integrations/integration-context-query-executor.js +58 -0
- package/dist/modules/agents/integrations/integration-context-query-executor.js.map +1 -0
- package/dist/modules/agents/integrations/integration-error-codes.d.ts +13 -0
- package/dist/modules/agents/integrations/integration-error-codes.js +16 -0
- package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -0
- package/dist/modules/agents/integrations/integration-helpers.d.ts +21 -0
- package/dist/modules/agents/integrations/integration-helpers.js +72 -0
- package/dist/modules/agents/integrations/integration-helpers.js.map +1 -0
- package/dist/modules/agents/integrations/integration-message-context.service.d.ts +13 -0
- package/dist/modules/agents/integrations/integration-message-context.service.js +129 -0
- package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -0
- package/dist/modules/agents/integrations/integration-tools.d.ts +205 -0
- package/dist/modules/agents/integrations/integration-tools.js +955 -0
- package/dist/modules/agents/integrations/integration-tools.js.map +1 -0
- package/dist/modules/agents/integrations/integrations-sync.d.ts +1 -1
- package/dist/modules/agents/integrations/integrations-sync.js +1 -29
- package/dist/modules/agents/integrations/integrations-sync.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-memory.d.ts +2 -0
- package/dist/modules/agents/integrations/n8n-memory.js +18 -11
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +13 -2
- package/dist/modules/agents/integrations/platforms/linear-integration.js +70 -15
- package/dist/modules/agents/integrations/platforms/linear-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/linear-operations.d.ts +18 -0
- package/dist/modules/agents/integrations/platforms/linear-operations.js +679 -0
- package/dist/modules/agents/integrations/platforms/linear-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +11 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js +53 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-operations.d.ts +17 -0
- package/dist/modules/agents/integrations/platforms/slack-operations.js +288 -0
- package/dist/modules/agents/integrations/platforms/slack-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +9 -2
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +17 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.js +7 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.d.ts +4 -2
- package/dist/modules/agents/json-config/from-json-config.js +88 -11
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.d.ts +16 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js +155 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -0
- package/dist/modules/agents/json-config/native-web-search-provider-tools.d.ts +8 -0
- package/dist/modules/agents/json-config/native-web-search-provider-tools.js +59 -0
- package/dist/modules/agents/json-config/native-web-search-provider-tools.js.map +1 -0
- package/dist/modules/agents/json-config/schema-text-serializer.js +12 -2
- package/dist/modules/agents/json-config/schema-text-serializer.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +5 -3
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-file.repository.d.ts +7 -0
- package/dist/modules/agents/repositories/agent-file.repository.js +35 -0
- package/dist/modules/agents/repositories/agent-file.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +2 -0
- package/dist/modules/agents/repositories/agent-history.repository.js +18 -0
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-task-run-lock.repository.d.ts +12 -0
- package/dist/modules/agents/repositories/agent-task-run-lock.repository.js +72 -0
- package/dist/modules/agents/repositories/agent-task-run-lock.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.d.ts +11 -0
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.js +45 -0
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-task.repository.d.ts +7 -0
- package/dist/modules/agents/repositories/agent-task.repository.js +32 -0
- package/dist/modules/agents/repositories/agent-task.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent.repository.js +1 -2
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/tools/knowledge/csv-helpers.d.ts +73 -0
- package/dist/modules/agents/tools/knowledge/csv-helpers.js +341 -0
- package/dist/modules/agents/tools/knowledge/csv-helpers.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/csv.operation.d.ts +61 -0
- package/dist/modules/agents/tools/knowledge/csv.operation.js +207 -0
- package/dist/modules/agents/tools/knowledge/csv.operation.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/file-references.d.ts +16 -0
- package/dist/modules/agents/tools/knowledge/file-references.js +35 -0
- package/dist/modules/agents/tools/knowledge/file-references.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/read.operation.d.ts +8 -0
- package/dist/modules/agents/tools/knowledge/read.operation.js +38 -0
- package/dist/modules/agents/tools/knowledge/read.operation.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/schemas.d.ts +1505 -0
- package/dist/modules/agents/tools/knowledge/schemas.js +441 -0
- package/dist/modules/agents/tools/knowledge/schemas.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/search.operation.d.ts +9 -0
- package/dist/modules/agents/tools/knowledge/search.operation.js +332 -0
- package/dist/modules/agents/tools/knowledge/search.operation.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/tool.d.ts +8 -0
- package/dist/modules/agents/tools/knowledge/tool.js +121 -0
- package/dist/modules/agents/tools/knowledge/tool.js.map +1 -0
- package/dist/modules/agents/utils/agent-memory-scope.d.ts +1 -1
- package/dist/modules/agents/utils/agent-memory-scope.js +4 -4
- package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
- package/dist/modules/agents/utils/agent-resource-id.d.ts +1 -1
- package/dist/modules/chat-hub/chat-hub.module.d.ts +2 -2
- package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +4 -4
- package/dist/modules/chat-hub/chat-hub.types.d.ts +5 -5
- package/dist/modules/chat-hub/dto/chat-models-request.dto.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/constants.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/constants.js +2 -1
- package/dist/modules/dynamic-credentials.ee/constants.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.d.ts +9 -2
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +45 -14
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.d.ts +4 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js +16 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +6 -2
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.d.ts +1 -0
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js +21 -2
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +4 -1
- package/dist/modules/instance-ai/eval/execution.service.js +118 -24
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/llm-wire-server.d.ts +8 -3
- package/dist/modules/instance-ai/eval/llm-wire-server.js +147 -50
- package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +45 -8
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-quirks.d.ts +4 -2
- package/dist/modules/instance-ai/eval/mock-quirks.js +83 -4
- package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -1
- package/dist/modules/instance-ai/eval/openai-envelope.d.ts +8 -0
- package/dist/modules/instance-ai/eval/openai-envelope.js +121 -8
- package/dist/modules/instance-ai/eval/openai-envelope.js.map +1 -1
- package/dist/modules/instance-ai/eval/openai-responses-envelope.d.ts +11 -0
- package/dist/modules/instance-ai/eval/openai-responses-envelope.js +238 -0
- package/dist/modules/instance-ai/eval/openai-responses-envelope.js.map +1 -0
- package/dist/modules/instance-ai/eval/request-binary-redactor.d.ts +1 -0
- package/dist/modules/instance-ai/eval/request-binary-redactor.js +74 -0
- package/dist/modules/instance-ai/eval/request-binary-redactor.js.map +1 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +19 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +159 -76
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/extract-resolved-node-parameters.d.ts +7 -0
- package/dist/modules/instance-ai/extract-resolved-node-parameters.js +221 -0
- package/dist/modules/instance-ai/extract-resolved-node-parameters.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +7 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.js +80 -3
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.js +1 -16
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +67 -7
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +24 -1
- package/dist/modules/instance-ai/instance-ai.service.js +400 -26
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +1 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +1 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
- package/dist/modules/instance-ai/message-parser.d.ts +2 -0
- package/dist/modules/instance-ai/message-parser.js +165 -36
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.d.ts +2 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js +13 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.d.ts +12 -0
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js +80 -0
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js.map +1 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.d.ts +1 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js +23 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.d.ts +10 -4
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js +49 -37
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -1
- package/dist/modules/instance-ai/web-research/index.d.ts +0 -2
- package/dist/modules/instance-ai/web-research/index.js +1 -5
- package/dist/modules/instance-ai/web-research/index.js.map +1 -1
- package/dist/modules/ldap.ee/helpers.ee.js +6 -2
- package/dist/modules/ldap.ee/helpers.ee.js.map +1 -1
- package/dist/modules/mcp/mcp.controller.js +13 -6
- package/dist/modules/mcp/mcp.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +10 -2
- package/dist/modules/mcp/mcp.service.js +39 -6
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.settings.controller.d.ts +2 -0
- package/dist/modules/mcp/mcp.settings.service.d.ts +2 -0
- package/dist/modules/mcp/mcp.settings.service.js +6 -5
- package/dist/modules/mcp/mcp.settings.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +6 -0
- package/dist/modules/mcp/mcp.types.js +9 -0
- package/dist/modules/mcp/mcp.types.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +6 -6
- package/dist/modules/mcp/tools/search-workflows.tool.d.ts +2 -1
- package/dist/modules/mcp/tools/search-workflows.tool.js +12 -4
- package/dist/modules/mcp/tools/search-workflows.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/constants.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/constants.js +2 -1
- package/dist/modules/mcp/tools/workflow-builder/constants.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +6 -4
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +67 -6
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.d.ts +30 -0
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js +161 -0
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +67 -6
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +51 -0
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -1
- package/dist/modules/mcp-registry/synthesize-type-def.d.ts +2 -0
- package/dist/modules/mcp-registry/synthesize-type-def.js +35 -0
- package/dist/modules/mcp-registry/synthesize-type-def.js.map +1 -0
- package/dist/modules/n8n-packages/engine/import-pipeline.d.ts +24 -0
- package/dist/modules/n8n-packages/engine/import-pipeline.js +206 -0
- package/dist/modules/n8n-packages/engine/import-pipeline.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js +33 -0
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +23 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +68 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +25 -0
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.js +3 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/requirements-extractor.d.ts +4 -0
- package/dist/modules/n8n-packages/entities/requirements-extractor.js +3 -0
- package/dist/modules/n8n-packages/entities/requirements-extractor.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +12 -3
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +11 -20
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +10 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/io/package-reader.d.ts +6 -0
- package/dist/modules/n8n-packages/io/package-reader.js +3 -0
- package/dist/modules/n8n-packages/io/package-reader.js.map +1 -0
- package/dist/modules/n8n-packages/io/slug.utils.d.ts +1 -1
- package/dist/modules/n8n-packages/io/slug.utils.js +3 -3
- package/dist/modules/n8n-packages/io/slug.utils.js.map +1 -1
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.d.ts +13 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.js +84 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.js.map +1 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.d.ts +7 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.js +27 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +7 -2
- package/dist/modules/n8n-packages/n8n-packages.service.js +21 -3
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +22 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +121 -4
- package/dist/modules/n8n-packages/spec/manifest.schema.js +22 -3
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +51 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.js +14 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +15 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +12 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +4 -4
- package/dist/modules/n8n-packages/utils/import-package-upload.d.ts +13 -0
- package/dist/modules/n8n-packages/utils/import-package-upload.js +59 -0
- package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -0
- package/dist/modules/otel/execution-level-tracer.js +15 -6
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +3 -0
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/otel/otel-lifecycle-handler.d.ts +4 -2
- package/dist/modules/otel/otel-lifecycle-handler.js +69 -4
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/otel/otel.config.d.ts +1 -0
- package/dist/modules/otel/otel.config.js +5 -0
- package/dist/modules/otel/otel.config.js.map +1 -1
- package/dist/modules/otel/otel.constants.d.ts +2 -0
- package/dist/modules/otel/otel.constants.js +2 -0
- package/dist/modules/otel/otel.constants.js.map +1 -1
- package/dist/modules/redaction/instance-redaction-enforcement.service.d.ts +4 -0
- package/dist/modules/redaction/instance-redaction-enforcement.service.js +8 -0
- package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -1
- package/dist/modules/redaction/redaction-context-hook.d.ts +9 -0
- package/dist/modules/redaction/redaction-context-hook.js +57 -0
- package/dist/modules/redaction/redaction-context-hook.js.map +1 -0
- package/dist/modules/redaction/redaction.module.js +1 -0
- package/dist/modules/redaction/redaction.module.js.map +1 -1
- package/dist/modules/source-control.ee/constants.d.ts +1 -0
- package/dist/modules/source-control.ee/constants.js +2 -1
- package/dist/modules/source-control.ee/constants.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js +5 -0
- package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -2
- package/dist/modules/source-control.ee/source-control.controller.ee.js +32 -5
- package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js +2 -0
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js +2 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +1 -1
- package/dist/node-catalog/node-catalog.service.d.ts +2 -0
- package/dist/node-catalog/node-catalog.service.js +38 -2
- package/dist/node-catalog/node-catalog.service.js.map +1 -1
- package/dist/oauth/oauth-browser-binding.service.d.ts +18 -0
- package/dist/oauth/oauth-browser-binding.service.js +68 -0
- package/dist/oauth/oauth-browser-binding.service.js.map +1 -0
- package/dist/oauth/oauth.service.d.ts +10 -4
- package/dist/oauth/oauth.service.js +87 -4
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/oauth/types.d.ts +1 -0
- package/dist/oauth/types.js.map +1 -1
- package/dist/public-api/index.js +5 -1
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/types.d.ts +6 -0
- package/dist/public-api/v1/handlers/credentials/credentials.service.js +1 -0
- package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +5 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +22 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +207 -59
- package/dist/requests.d.ts +4 -0
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +5 -2
- package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
- package/dist/services/ai-workflow-builder.service.d.ts +6 -3
- package/dist/services/ai-workflow-builder.service.js +13 -5
- package/dist/services/ai-workflow-builder.service.js.map +1 -1
- package/dist/services/api-key-auth.strategy.d.ts +4 -1
- package/dist/services/api-key-auth.strategy.js +18 -2
- package/dist/services/api-key-auth.strategy.js.map +1 -1
- package/dist/services/ownership.service.d.ts +1 -0
- package/dist/services/ownership.service.js +7 -0
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +6 -2
- package/dist/services/project.service.ee.js +30 -8
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/public-api-key.service.d.ts +21 -14
- package/dist/services/public-api-key.service.js +14 -9
- package/dist/services/public-api-key.service.js.map +1 -1
- package/dist/telemetry/index.d.ts +6 -9
- package/dist/telemetry/index.js +23 -9
- package/dist/telemetry/index.js.map +1 -1
- package/dist/webhooks/constants.js +5 -1
- package/dist/webhooks/constants.js.map +1 -1
- package/dist/webhooks/live-webhooks.d.ts +8 -1
- package/dist/webhooks/live-webhooks.js +37 -22
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/waiting-forms.js +8 -1
- package/dist/webhooks/waiting-forms.js.map +1 -1
- package/dist/webhooks/webhook-helpers.d.ts +1 -1
- package/dist/webhooks/webhook-helpers.js +20 -10
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-request-handler.js +1 -1
- package/dist/webhooks/webhook-request-handler.js.map +1 -1
- package/dist/workflow-helpers.d.ts +6 -1
- package/dist/workflow-helpers.js +9 -1
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflows/workflow-creation.service.d.ts +4 -1
- package/dist/workflows/workflow-creation.service.js +12 -3
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-execution.service.js +2 -0
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +1 -0
- package/dist/workflows/workflow-published-data.service.d.ts +11 -0
- package/dist/workflows/workflow-published-data.service.js +39 -0
- package/dist/workflows/workflow-published-data.service.js.map +1 -0
- package/dist/workflows/workflow-validation.service.d.ts +5 -1
- package/dist/workflows/workflow-validation.service.js +55 -2
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.js +4 -0
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +8 -0
- package/package.json +45 -37
- package/templates/form-trigger-completion.handlebars +12 -1
- package/dist/modules/agents/integrations/agent-schedule.service.d.ts +0 -30
- package/dist/modules/agents/integrations/agent-schedule.service.js +0 -331
- package/dist/modules/agents/integrations/agent-schedule.service.js.map +0 -1
- package/dist/modules/instance-ai/web-research/brave-search.d.ts +0 -10
- package/dist/modules/instance-ai/web-research/brave-search.js +0 -44
- package/dist/modules/instance-ai/web-research/brave-search.js.map +0 -1
- package/dist/modules/instance-ai/web-research/searxng-search.d.ts +0 -6
- package/dist/modules/instance-ai/web-research/searxng-search.js +0 -39
- package/dist/modules/instance-ai/web-research/searxng-search.js.map +0 -1
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchKnowledgeOutputSchema = exports.searchKnowledgeInputSchema = exports.searchKnowledgeParsingSchema = exports.csvQueryInputSchema = exports.csvFilterSchema = exports.KNOWLEDGE_OPERATIONS = exports.DEFAULT_SEARCH_HEAD_LIMIT = void 0;
|
|
4
|
+
exports.parseSearchKnowledgeInput = parseSearchKnowledgeInput;
|
|
5
|
+
exports.getSearchKnowledgeOperation = getSearchKnowledgeOperation;
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
exports.DEFAULT_SEARCH_HEAD_LIMIT = 250;
|
|
8
|
+
exports.KNOWLEDGE_OPERATIONS = [
|
|
9
|
+
'list',
|
|
10
|
+
'search',
|
|
11
|
+
'read',
|
|
12
|
+
'csv_query',
|
|
13
|
+
'csv_profile',
|
|
14
|
+
'csv_distinct',
|
|
15
|
+
'csv_aggregate',
|
|
16
|
+
];
|
|
17
|
+
const lineRangeSchema = zod_1.z.object({
|
|
18
|
+
start: zod_1.z.number().int().min(1),
|
|
19
|
+
end: zod_1.z.number().int().min(1),
|
|
20
|
+
});
|
|
21
|
+
const searchOutputModeSchema = zod_1.z.enum(['files_with_matches', 'content', 'count']);
|
|
22
|
+
const searchMatchModeSchema = zod_1.z.enum(['any', 'all_on_same_line', 'all_within_lines']);
|
|
23
|
+
const csvAggregateFunctionSchema = zod_1.z.enum(['count', 'min', 'max', 'sum', 'avg']);
|
|
24
|
+
exports.csvFilterSchema = zod_1.z.discriminatedUnion('op', [
|
|
25
|
+
zod_1.z.object({
|
|
26
|
+
column: zod_1.z.string().min(1),
|
|
27
|
+
op: zod_1.z.literal('eq'),
|
|
28
|
+
value: zod_1.z.string(),
|
|
29
|
+
}),
|
|
30
|
+
zod_1.z.object({
|
|
31
|
+
column: zod_1.z.string().min(1),
|
|
32
|
+
op: zod_1.z.literal('in'),
|
|
33
|
+
value: zod_1.z.array(zod_1.z.string()).min(1).max(50),
|
|
34
|
+
}),
|
|
35
|
+
zod_1.z.object({
|
|
36
|
+
column: zod_1.z.string().min(1),
|
|
37
|
+
op: zod_1.z.literal('contains'),
|
|
38
|
+
value: zod_1.z.string(),
|
|
39
|
+
}),
|
|
40
|
+
]);
|
|
41
|
+
const listInputSchema = zod_1.z.object({ operation: zod_1.z.literal('list') }).strict();
|
|
42
|
+
const searchInputSchema = zod_1.z
|
|
43
|
+
.object({
|
|
44
|
+
operation: zod_1.z.literal('search'),
|
|
45
|
+
query: zod_1.z.string().min(1).optional(),
|
|
46
|
+
queries: zod_1.z.array(zod_1.z.string().min(1)).min(1).max(5).optional(),
|
|
47
|
+
match_mode: searchMatchModeSchema.default('any'),
|
|
48
|
+
output_mode: searchOutputModeSchema.default('files_with_matches'),
|
|
49
|
+
caseInsensitive: zod_1.z.boolean().optional(),
|
|
50
|
+
fixedStrings: zod_1.z.boolean().optional(),
|
|
51
|
+
context: zod_1.z.number().int().min(0).max(5).optional(),
|
|
52
|
+
file: zod_1.z.string().min(1).optional(),
|
|
53
|
+
files: zod_1.z.array(zod_1.z.string()).max(10).optional(),
|
|
54
|
+
offset: zod_1.z.number().int().min(0).default(0),
|
|
55
|
+
head_limit: zod_1.z.number().int().min(0).default(exports.DEFAULT_SEARCH_HEAD_LIMIT),
|
|
56
|
+
})
|
|
57
|
+
.strict();
|
|
58
|
+
const readInputSchema = zod_1.z
|
|
59
|
+
.object({
|
|
60
|
+
operation: zod_1.z.literal('read'),
|
|
61
|
+
file: zod_1.z.string().min(1),
|
|
62
|
+
lineRange: lineRangeSchema.optional(),
|
|
63
|
+
})
|
|
64
|
+
.strict();
|
|
65
|
+
exports.csvQueryInputSchema = zod_1.z
|
|
66
|
+
.object({
|
|
67
|
+
operation: zod_1.z.literal('csv_query'),
|
|
68
|
+
file: zod_1.z.string().min(1),
|
|
69
|
+
select: zod_1.z.array(zod_1.z.string().min(1)).min(1).max(50).optional(),
|
|
70
|
+
where: zod_1.z.array(exports.csvFilterSchema).max(10).optional(),
|
|
71
|
+
rowNumber: zod_1.z.number().int().min(2).optional(),
|
|
72
|
+
limit: zod_1.z.number().int().min(1).max(100).default(20),
|
|
73
|
+
})
|
|
74
|
+
.strict();
|
|
75
|
+
const csvProfileInputSchema = zod_1.z
|
|
76
|
+
.object({
|
|
77
|
+
operation: zod_1.z.literal('csv_profile'),
|
|
78
|
+
file: zod_1.z.string().min(1),
|
|
79
|
+
sampleSize: zod_1.z.number().int().min(1).max(20).default(5),
|
|
80
|
+
distinctLimit: zod_1.z.number().int().min(10).max(500).default(100),
|
|
81
|
+
})
|
|
82
|
+
.strict();
|
|
83
|
+
const csvDistinctInputSchema = zod_1.z
|
|
84
|
+
.object({
|
|
85
|
+
operation: zod_1.z.literal('csv_distinct'),
|
|
86
|
+
file: zod_1.z.string().min(1),
|
|
87
|
+
column: zod_1.z.string().min(1),
|
|
88
|
+
where: zod_1.z.array(exports.csvFilterSchema).max(10).optional(),
|
|
89
|
+
limit: zod_1.z.number().int().min(1).max(200).default(50),
|
|
90
|
+
})
|
|
91
|
+
.strict();
|
|
92
|
+
const csvAggregateInputSchema = zod_1.z
|
|
93
|
+
.object({
|
|
94
|
+
operation: zod_1.z.literal('csv_aggregate'),
|
|
95
|
+
file: zod_1.z.string().min(1),
|
|
96
|
+
metric: zod_1.z.string().min(1).optional(),
|
|
97
|
+
metrics: zod_1.z.array(zod_1.z.string().min(1)).min(1).max(10).optional(),
|
|
98
|
+
functions: zod_1.z.array(csvAggregateFunctionSchema).min(1).max(5).default(['count']),
|
|
99
|
+
where: zod_1.z.array(exports.csvFilterSchema).max(10).optional(),
|
|
100
|
+
groupBy: zod_1.z.array(zod_1.z.string().min(1)).min(1).max(5).optional(),
|
|
101
|
+
orderBy: zod_1.z
|
|
102
|
+
.object({
|
|
103
|
+
column: zod_1.z.string().min(1),
|
|
104
|
+
direction: zod_1.z.enum(['asc', 'desc']).default('asc'),
|
|
105
|
+
})
|
|
106
|
+
.strict()
|
|
107
|
+
.optional(),
|
|
108
|
+
limit: zod_1.z.number().int().min(1).max(200).default(50),
|
|
109
|
+
})
|
|
110
|
+
.strict();
|
|
111
|
+
exports.searchKnowledgeParsingSchema = zod_1.z.discriminatedUnion('operation', [
|
|
112
|
+
listInputSchema,
|
|
113
|
+
searchInputSchema,
|
|
114
|
+
readInputSchema,
|
|
115
|
+
exports.csvQueryInputSchema,
|
|
116
|
+
csvProfileInputSchema,
|
|
117
|
+
csvDistinctInputSchema,
|
|
118
|
+
csvAggregateInputSchema,
|
|
119
|
+
]);
|
|
120
|
+
exports.searchKnowledgeInputSchema = {
|
|
121
|
+
type: 'object',
|
|
122
|
+
description: 'Use exactly one operation shape. Do not include fields from other operations. ' +
|
|
123
|
+
'Use csv_profile for unfamiliar CSVs, csv_query for rows, csv_distinct for values, and csv_aggregate for computed CSV answers.',
|
|
124
|
+
additionalProperties: false,
|
|
125
|
+
required: ['operation'],
|
|
126
|
+
properties: {
|
|
127
|
+
operation: {
|
|
128
|
+
type: 'string',
|
|
129
|
+
description: 'Operation to perform. Allowed values: list, search, read, csv_query, csv_profile, csv_distinct, csv_aggregate.',
|
|
130
|
+
},
|
|
131
|
+
query: {
|
|
132
|
+
type: 'string',
|
|
133
|
+
minLength: 1,
|
|
134
|
+
description: 'For operation=search only: search pattern. For conceptual multi-term lookup, prefer queries with match_mode instead of writing regex by hand.',
|
|
135
|
+
},
|
|
136
|
+
queries: {
|
|
137
|
+
type: 'array',
|
|
138
|
+
minItems: 1,
|
|
139
|
+
maxItems: 5,
|
|
140
|
+
items: { type: 'string', minLength: 1 },
|
|
141
|
+
description: 'For operation=search only: multiple literal search terms for conceptual lookup without hand-written regex.',
|
|
142
|
+
},
|
|
143
|
+
match_mode: {
|
|
144
|
+
type: 'string',
|
|
145
|
+
default: 'any',
|
|
146
|
+
description: 'For operation=search with queries only: any, all_on_same_line, or all_within_lines. Use all_within_lines to find concepts near each other without regex.',
|
|
147
|
+
},
|
|
148
|
+
output_mode: {
|
|
149
|
+
type: 'string',
|
|
150
|
+
description: 'For operation=search only: content shows matching lines, files_with_matches shows only matching files (default), count shows match counts. Use content only after narrowing to a file or exact phrase.',
|
|
151
|
+
default: 'files_with_matches',
|
|
152
|
+
},
|
|
153
|
+
caseInsensitive: {
|
|
154
|
+
type: 'boolean',
|
|
155
|
+
description: 'For operation=search only: run case-insensitive search.',
|
|
156
|
+
},
|
|
157
|
+
fixedStrings: {
|
|
158
|
+
type: 'boolean',
|
|
159
|
+
description: 'For operation=search only: treat query as a fixed string instead of a regex. Defaults to true.',
|
|
160
|
+
},
|
|
161
|
+
context: {
|
|
162
|
+
type: 'integer',
|
|
163
|
+
minimum: 0,
|
|
164
|
+
maximum: 5,
|
|
165
|
+
description: 'For operation=search only: number of surrounding context lines. Requires output_mode=content.',
|
|
166
|
+
},
|
|
167
|
+
files: {
|
|
168
|
+
type: 'array',
|
|
169
|
+
maxItems: 10,
|
|
170
|
+
items: { type: 'string' },
|
|
171
|
+
description: 'For operation=search only: optional file ids, relative paths, or exact file names to search. These are tool handles only; do not cite them to users.',
|
|
172
|
+
},
|
|
173
|
+
offset: {
|
|
174
|
+
type: 'integer',
|
|
175
|
+
minimum: 0,
|
|
176
|
+
default: 0,
|
|
177
|
+
description: 'For operation=search only: number of files, counts, or matches to skip.',
|
|
178
|
+
},
|
|
179
|
+
head_limit: {
|
|
180
|
+
type: 'integer',
|
|
181
|
+
minimum: 0,
|
|
182
|
+
default: exports.DEFAULT_SEARCH_HEAD_LIMIT,
|
|
183
|
+
description: 'For operation=search only: limit output to first N files/counts/lines. Defaults to 250. Pass 0 for unlimited.',
|
|
184
|
+
},
|
|
185
|
+
file: {
|
|
186
|
+
type: 'string',
|
|
187
|
+
minLength: 1,
|
|
188
|
+
description: 'For operation=read or CSV operations: file id, relative path, or exact file name. For operation=search: alias for a single files entry. This is a tool handle only; cite the returned fileName and lineRange instead.',
|
|
189
|
+
},
|
|
190
|
+
lineRange: {
|
|
191
|
+
type: 'object',
|
|
192
|
+
additionalProperties: false,
|
|
193
|
+
description: 'For operation=read only: optional line range to read.',
|
|
194
|
+
properties: {
|
|
195
|
+
start: { type: 'integer', minimum: 1 },
|
|
196
|
+
end: { type: 'integer', minimum: 1 },
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
where: {
|
|
200
|
+
type: 'array',
|
|
201
|
+
maxItems: 10,
|
|
202
|
+
description: 'For CSV operations only: row filters ANDed together. Each filter has column, op, and value. Allowed op values: eq, in, contains. For op=in, value must be an array of strings.',
|
|
203
|
+
items: {
|
|
204
|
+
type: 'object',
|
|
205
|
+
additionalProperties: true,
|
|
206
|
+
required: ['column', 'op', 'value'],
|
|
207
|
+
properties: {
|
|
208
|
+
column: { type: 'string', minLength: 1 },
|
|
209
|
+
op: {
|
|
210
|
+
type: 'string',
|
|
211
|
+
description: 'Allowed values: eq, in, contains.',
|
|
212
|
+
},
|
|
213
|
+
value: {
|
|
214
|
+
description: 'String value for eq/contains, or array of strings for in. Local validation enforces the exact shape.',
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
select: {
|
|
220
|
+
type: 'array',
|
|
221
|
+
minItems: 1,
|
|
222
|
+
maxItems: 50,
|
|
223
|
+
items: { type: 'string', minLength: 1 },
|
|
224
|
+
description: 'For operation=csv_query only: columns to return. Omit with rowNumber to return all columns for that row.',
|
|
225
|
+
},
|
|
226
|
+
rowNumber: {
|
|
227
|
+
type: 'integer',
|
|
228
|
+
minimum: 2,
|
|
229
|
+
description: 'For operation=csv_query only: exact CSV file line number to fetch. Header is line 1, so data rows usually start at line 2.',
|
|
230
|
+
},
|
|
231
|
+
column: {
|
|
232
|
+
type: 'string',
|
|
233
|
+
minLength: 1,
|
|
234
|
+
description: 'For operation=csv_distinct only: column whose values should be returned.',
|
|
235
|
+
},
|
|
236
|
+
metric: {
|
|
237
|
+
type: 'string',
|
|
238
|
+
minLength: 1,
|
|
239
|
+
description: 'For operation=csv_aggregate only: numeric metric column for min, max, sum, or avg.',
|
|
240
|
+
},
|
|
241
|
+
metrics: {
|
|
242
|
+
type: 'array',
|
|
243
|
+
minItems: 1,
|
|
244
|
+
maxItems: 10,
|
|
245
|
+
items: { type: 'string', minLength: 1 },
|
|
246
|
+
description: 'For operation=csv_aggregate only: numeric metric columns for min, max, sum, or avg.',
|
|
247
|
+
},
|
|
248
|
+
functions: {
|
|
249
|
+
type: 'array',
|
|
250
|
+
minItems: 1,
|
|
251
|
+
maxItems: 5,
|
|
252
|
+
items: { type: 'string', enum: ['count', 'min', 'max', 'sum', 'avg'] },
|
|
253
|
+
default: ['count'],
|
|
254
|
+
description: 'For operation=csv_aggregate only: aggregate functions to compute. count does not require a metric.',
|
|
255
|
+
},
|
|
256
|
+
groupBy: {
|
|
257
|
+
type: 'array',
|
|
258
|
+
minItems: 1,
|
|
259
|
+
maxItems: 5,
|
|
260
|
+
items: { type: 'string', minLength: 1 },
|
|
261
|
+
description: 'For operation=csv_aggregate only: columns to group aggregate results by.',
|
|
262
|
+
},
|
|
263
|
+
orderBy: {
|
|
264
|
+
type: 'object',
|
|
265
|
+
additionalProperties: false,
|
|
266
|
+
description: 'For operation=csv_aggregate only: sort grouped output by a group column or aggregate output column.',
|
|
267
|
+
properties: {
|
|
268
|
+
column: { type: 'string', minLength: 1 },
|
|
269
|
+
direction: { type: 'string', enum: ['asc', 'desc'], default: 'asc' },
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
sampleSize: {
|
|
273
|
+
type: 'integer',
|
|
274
|
+
minimum: 1,
|
|
275
|
+
maximum: 20,
|
|
276
|
+
default: 5,
|
|
277
|
+
description: 'For operation=csv_profile only: number of sample rows to return.',
|
|
278
|
+
},
|
|
279
|
+
distinctLimit: {
|
|
280
|
+
type: 'integer',
|
|
281
|
+
minimum: 10,
|
|
282
|
+
maximum: 500,
|
|
283
|
+
default: 100,
|
|
284
|
+
description: 'For operation=csv_profile only: maximum distinct values tracked per column before marking that column as truncated.',
|
|
285
|
+
},
|
|
286
|
+
limit: {
|
|
287
|
+
type: 'integer',
|
|
288
|
+
minimum: 1,
|
|
289
|
+
maximum: 200,
|
|
290
|
+
default: 20,
|
|
291
|
+
description: 'For CSV operations only: maximum rows, groups, or distinct values to return. Defaults to 20 for csv_query, 50 for csv_distinct, and 50 for csv_aggregate.',
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
};
|
|
295
|
+
const knowledgeFileOutputSchema = zod_1.z.object({
|
|
296
|
+
id: zod_1.z.string(),
|
|
297
|
+
fileName: zod_1.z.string(),
|
|
298
|
+
mimeType: zod_1.z.string(),
|
|
299
|
+
fileSizeBytes: zod_1.z.number(),
|
|
300
|
+
relativePath: zod_1.z.string(),
|
|
301
|
+
});
|
|
302
|
+
const commandResultOutputSchema = zod_1.z.object({
|
|
303
|
+
command: zod_1.z.enum(['git_grep', 'cat', 'sed']),
|
|
304
|
+
exitCode: zod_1.z.number().nullable(),
|
|
305
|
+
stdout: zod_1.z.string(),
|
|
306
|
+
stderr: zod_1.z.string(),
|
|
307
|
+
truncated: zod_1.z.boolean(),
|
|
308
|
+
citation: zod_1.z
|
|
309
|
+
.object({
|
|
310
|
+
fileName: zod_1.z.string(),
|
|
311
|
+
lineRange: lineRangeSchema.optional(),
|
|
312
|
+
instruction: zod_1.z.string(),
|
|
313
|
+
})
|
|
314
|
+
.optional(),
|
|
315
|
+
});
|
|
316
|
+
const searchMatchOutputSchema = zod_1.z.object({
|
|
317
|
+
fileId: zod_1.z.string(),
|
|
318
|
+
fileName: zod_1.z.string(),
|
|
319
|
+
relativePath: zod_1.z.string(),
|
|
320
|
+
lineNumber: zod_1.z.number(),
|
|
321
|
+
text: zod_1.z.string(),
|
|
322
|
+
readRange: lineRangeSchema,
|
|
323
|
+
truncated: zod_1.z.boolean().optional(),
|
|
324
|
+
});
|
|
325
|
+
const searchFileOutputSchema = zod_1.z.object({
|
|
326
|
+
id: zod_1.z.string(),
|
|
327
|
+
fileName: zod_1.z.string(),
|
|
328
|
+
relativePath: zod_1.z.string(),
|
|
329
|
+
matchCount: zod_1.z.number(),
|
|
330
|
+
});
|
|
331
|
+
const searchResultOutputSchema = zod_1.z.object({
|
|
332
|
+
mode: searchOutputModeSchema,
|
|
333
|
+
query: zod_1.z.string(),
|
|
334
|
+
queries: zod_1.z.array(zod_1.z.string()).optional(),
|
|
335
|
+
matchMode: searchMatchModeSchema.optional(),
|
|
336
|
+
totalMatchingFiles: zod_1.z.number(),
|
|
337
|
+
totalMatchingLines: zod_1.z.number(),
|
|
338
|
+
files: zod_1.z.array(searchFileOutputSchema),
|
|
339
|
+
matches: zod_1.z.array(searchMatchOutputSchema),
|
|
340
|
+
truncated: zod_1.z.boolean(),
|
|
341
|
+
appliedLimit: zod_1.z.number().optional(),
|
|
342
|
+
appliedOffset: zod_1.z.number().optional(),
|
|
343
|
+
nextOffset: zod_1.z.number().optional(),
|
|
344
|
+
hint: zod_1.z.string().optional(),
|
|
345
|
+
});
|
|
346
|
+
const csvQueryResultOutputSchema = zod_1.z.object({
|
|
347
|
+
fileName: zod_1.z.string(),
|
|
348
|
+
relativePath: zod_1.z.string(),
|
|
349
|
+
columns: zod_1.z.array(zod_1.z.string()),
|
|
350
|
+
rowNumbers: zod_1.z.array(zod_1.z.number()),
|
|
351
|
+
rows: zod_1.z.array(zod_1.z.array(zod_1.z.string())),
|
|
352
|
+
records: zod_1.z
|
|
353
|
+
.array(zod_1.z.object({
|
|
354
|
+
rowNumber: zod_1.z.number(),
|
|
355
|
+
fileLineNumber: zod_1.z.number(),
|
|
356
|
+
values: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
357
|
+
}))
|
|
358
|
+
.optional(),
|
|
359
|
+
rowCount: zod_1.z.number(),
|
|
360
|
+
truncated: zod_1.z.boolean(),
|
|
361
|
+
rowNumberBase: zod_1.z.string().optional(),
|
|
362
|
+
ambiguity: zod_1.z
|
|
363
|
+
.object({
|
|
364
|
+
matchedRows: zod_1.z.number(),
|
|
365
|
+
message: zod_1.z.string(),
|
|
366
|
+
suggestedColumns: zod_1.z.array(zod_1.z.string()),
|
|
367
|
+
sampleDistinctValues: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.string())).optional(),
|
|
368
|
+
})
|
|
369
|
+
.optional(),
|
|
370
|
+
});
|
|
371
|
+
const csvColumnProfileOutputSchema = zod_1.z.object({
|
|
372
|
+
name: zod_1.z.string(),
|
|
373
|
+
inferredType: zod_1.z.enum(['empty', 'integer', 'number', 'boolean', 'date', 'string']),
|
|
374
|
+
emptyCount: zod_1.z.number(),
|
|
375
|
+
distinctCount: zod_1.z.number().optional(),
|
|
376
|
+
distinctCountTruncated: zod_1.z.boolean().optional(),
|
|
377
|
+
sampleValues: zod_1.z.array(zod_1.z.string()).optional(),
|
|
378
|
+
});
|
|
379
|
+
const csvProfileOutputSchema = zod_1.z.object({
|
|
380
|
+
fileName: zod_1.z.string(),
|
|
381
|
+
relativePath: zod_1.z.string(),
|
|
382
|
+
columns: zod_1.z.array(zod_1.z.string()),
|
|
383
|
+
rowCount: zod_1.z.number(),
|
|
384
|
+
sampleRows: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.string())),
|
|
385
|
+
columnProfiles: zod_1.z.array(csvColumnProfileOutputSchema),
|
|
386
|
+
likelyKeyColumns: zod_1.z.array(zod_1.z.string()),
|
|
387
|
+
likelyDisambiguatingColumns: zod_1.z.array(zod_1.z.string()),
|
|
388
|
+
});
|
|
389
|
+
const csvDistinctOutputSchema = zod_1.z.object({
|
|
390
|
+
fileName: zod_1.z.string(),
|
|
391
|
+
relativePath: zod_1.z.string(),
|
|
392
|
+
column: zod_1.z.string(),
|
|
393
|
+
values: zod_1.z.array(zod_1.z.string()),
|
|
394
|
+
distinctCount: zod_1.z.number(),
|
|
395
|
+
truncated: zod_1.z.boolean(),
|
|
396
|
+
});
|
|
397
|
+
const csvAggregateOutputSchema = zod_1.z.object({
|
|
398
|
+
fileName: zod_1.z.string(),
|
|
399
|
+
relativePath: zod_1.z.string(),
|
|
400
|
+
rowCount: zod_1.z.number(),
|
|
401
|
+
functions: zod_1.z.array(csvAggregateFunctionSchema),
|
|
402
|
+
metrics: zod_1.z.array(zod_1.z.string()),
|
|
403
|
+
groupBy: zod_1.z.array(zod_1.z.string()).optional(),
|
|
404
|
+
results: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.null()]))),
|
|
405
|
+
truncated: zod_1.z.boolean(),
|
|
406
|
+
skippedNonNumeric: zod_1.z.record(zod_1.z.string(), zod_1.z.number()).optional(),
|
|
407
|
+
});
|
|
408
|
+
exports.searchKnowledgeOutputSchema = zod_1.z.object({
|
|
409
|
+
operation: zod_1.z.enum(exports.KNOWLEDGE_OPERATIONS),
|
|
410
|
+
files: zod_1.z.array(knowledgeFileOutputSchema),
|
|
411
|
+
result: commandResultOutputSchema.optional(),
|
|
412
|
+
search: searchResultOutputSchema.optional(),
|
|
413
|
+
csv: csvQueryResultOutputSchema.optional(),
|
|
414
|
+
csvProfile: csvProfileOutputSchema.optional(),
|
|
415
|
+
csvDistinct: csvDistinctOutputSchema.optional(),
|
|
416
|
+
csvAggregate: csvAggregateOutputSchema.optional(),
|
|
417
|
+
error: zod_1.z.string().optional(),
|
|
418
|
+
});
|
|
419
|
+
function parseSearchKnowledgeInput(input) {
|
|
420
|
+
const parsed = exports.searchKnowledgeParsingSchema.parse(input);
|
|
421
|
+
if (parsed.operation !== 'search' || parsed.file === undefined)
|
|
422
|
+
return parsed;
|
|
423
|
+
const { file, ...searchInput } = parsed;
|
|
424
|
+
const files = Array.from(new Set([file, ...(parsed.files ?? [])]));
|
|
425
|
+
if (files.length > 10) {
|
|
426
|
+
throw new Error('Search can target at most 10 files.');
|
|
427
|
+
}
|
|
428
|
+
return {
|
|
429
|
+
...searchInput,
|
|
430
|
+
files,
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
function getSearchKnowledgeOperation(input) {
|
|
434
|
+
const parsed = zod_1.z
|
|
435
|
+
.object({
|
|
436
|
+
operation: zod_1.z.enum(exports.KNOWLEDGE_OPERATIONS),
|
|
437
|
+
})
|
|
438
|
+
.safeParse(input);
|
|
439
|
+
return parsed.success ? parsed.data.operation : 'list';
|
|
440
|
+
}
|
|
441
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../src/modules/agents/tools/knowledge/schemas.ts"],"names":[],"mappings":";;;AA6dA,8DAcC;AAED,kEAOC;AAnfD,6BAAwB;AAOX,QAAA,yBAAyB,GAAG,GAAG,CAAC;AAEhC,QAAA,oBAAoB,GAAG;IACnC,MAAM;IACN,QAAQ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AAC;QACvB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACxD,CAAC;IAED,OAAO;QACN,GAAG,WAAW;QACd,KAAK;KACL,CAAC;AACH,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAAc;IACzD,MAAM,MAAM,GAAG,OAAC;SACd,MAAM,CAAC;QACP,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,4BAAoB,CAAC;KACvC,CAAC;SACD,SAAS,CAAC,KAAK,CAAC,CAAC;IACnB,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AgentKnowledgeCommandService } from '../../agent-knowledge-command.service';
|
|
2
|
+
import type { InternalKnowledgeCommandRequest, InternalKnowledgeCommandResult, ParsedSearchKnowledgeInput, SearchKnowledgeOutput } from './schemas';
|
|
3
|
+
import { type WorkspaceFiles } from './file-references';
|
|
4
|
+
type SearchInput = Extract<ParsedSearchKnowledgeInput, {
|
|
5
|
+
operation: 'search';
|
|
6
|
+
}>;
|
|
7
|
+
export declare function runInternalCommand(commandService: AgentKnowledgeCommandService, workspaceRoot: string, request: InternalKnowledgeCommandRequest): Promise<InternalKnowledgeCommandResult>;
|
|
8
|
+
export declare function runSearchOperation(input: SearchInput, workspaceRoot: string, files: WorkspaceFiles, commandService: AgentKnowledgeCommandService): Promise<SearchKnowledgeOutput>;
|
|
9
|
+
export {};
|