n8n 2.23.2 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-persistence.js +4 -0
- 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 +36 -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/mcp-instructions.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +67 -6
- 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-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 +40 -32
- 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,1505 @@
|
|
|
1
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import type { AgentKnowledgeCommandRequest, AgentKnowledgeCommandResult } from '../../agent-knowledge-command.service';
|
|
4
|
+
export declare const DEFAULT_SEARCH_HEAD_LIMIT = 250;
|
|
5
|
+
export declare const KNOWLEDGE_OPERATIONS: readonly ["list", "search", "read", "csv_query", "csv_profile", "csv_distinct", "csv_aggregate"];
|
|
6
|
+
declare const searchOutputModeSchema: z.ZodEnum<["files_with_matches", "content", "count"]>;
|
|
7
|
+
declare const searchMatchModeSchema: z.ZodEnum<["any", "all_on_same_line", "all_within_lines"]>;
|
|
8
|
+
export declare const csvFilterSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
9
|
+
column: z.ZodString;
|
|
10
|
+
op: z.ZodLiteral<"eq">;
|
|
11
|
+
value: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
value: string;
|
|
14
|
+
column: string;
|
|
15
|
+
op: "eq";
|
|
16
|
+
}, {
|
|
17
|
+
value: string;
|
|
18
|
+
column: string;
|
|
19
|
+
op: "eq";
|
|
20
|
+
}>, z.ZodObject<{
|
|
21
|
+
column: z.ZodString;
|
|
22
|
+
op: z.ZodLiteral<"in">;
|
|
23
|
+
value: z.ZodArray<z.ZodString, "many">;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
value: string[];
|
|
26
|
+
column: string;
|
|
27
|
+
op: "in";
|
|
28
|
+
}, {
|
|
29
|
+
value: string[];
|
|
30
|
+
column: string;
|
|
31
|
+
op: "in";
|
|
32
|
+
}>, z.ZodObject<{
|
|
33
|
+
column: z.ZodString;
|
|
34
|
+
op: z.ZodLiteral<"contains">;
|
|
35
|
+
value: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
value: string;
|
|
38
|
+
column: string;
|
|
39
|
+
op: "contains";
|
|
40
|
+
}, {
|
|
41
|
+
value: string;
|
|
42
|
+
column: string;
|
|
43
|
+
op: "contains";
|
|
44
|
+
}>]>;
|
|
45
|
+
export declare const csvQueryInputSchema: z.ZodObject<{
|
|
46
|
+
operation: z.ZodLiteral<"csv_query">;
|
|
47
|
+
file: z.ZodString;
|
|
48
|
+
select: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
49
|
+
where: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
50
|
+
column: z.ZodString;
|
|
51
|
+
op: z.ZodLiteral<"eq">;
|
|
52
|
+
value: z.ZodString;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
value: string;
|
|
55
|
+
column: string;
|
|
56
|
+
op: "eq";
|
|
57
|
+
}, {
|
|
58
|
+
value: string;
|
|
59
|
+
column: string;
|
|
60
|
+
op: "eq";
|
|
61
|
+
}>, z.ZodObject<{
|
|
62
|
+
column: z.ZodString;
|
|
63
|
+
op: z.ZodLiteral<"in">;
|
|
64
|
+
value: z.ZodArray<z.ZodString, "many">;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
value: string[];
|
|
67
|
+
column: string;
|
|
68
|
+
op: "in";
|
|
69
|
+
}, {
|
|
70
|
+
value: string[];
|
|
71
|
+
column: string;
|
|
72
|
+
op: "in";
|
|
73
|
+
}>, z.ZodObject<{
|
|
74
|
+
column: z.ZodString;
|
|
75
|
+
op: z.ZodLiteral<"contains">;
|
|
76
|
+
value: z.ZodString;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
value: string;
|
|
79
|
+
column: string;
|
|
80
|
+
op: "contains";
|
|
81
|
+
}, {
|
|
82
|
+
value: string;
|
|
83
|
+
column: string;
|
|
84
|
+
op: "contains";
|
|
85
|
+
}>]>, "many">>;
|
|
86
|
+
rowNumber: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
88
|
+
}, "strict", z.ZodTypeAny, {
|
|
89
|
+
limit: number;
|
|
90
|
+
file: string;
|
|
91
|
+
operation: "csv_query";
|
|
92
|
+
select?: string[] | undefined;
|
|
93
|
+
where?: ({
|
|
94
|
+
value: string;
|
|
95
|
+
column: string;
|
|
96
|
+
op: "eq";
|
|
97
|
+
} | {
|
|
98
|
+
value: string[];
|
|
99
|
+
column: string;
|
|
100
|
+
op: "in";
|
|
101
|
+
} | {
|
|
102
|
+
value: string;
|
|
103
|
+
column: string;
|
|
104
|
+
op: "contains";
|
|
105
|
+
})[] | undefined;
|
|
106
|
+
rowNumber?: number | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
file: string;
|
|
109
|
+
operation: "csv_query";
|
|
110
|
+
limit?: number | undefined;
|
|
111
|
+
select?: string[] | undefined;
|
|
112
|
+
where?: ({
|
|
113
|
+
value: string;
|
|
114
|
+
column: string;
|
|
115
|
+
op: "eq";
|
|
116
|
+
} | {
|
|
117
|
+
value: string[];
|
|
118
|
+
column: string;
|
|
119
|
+
op: "in";
|
|
120
|
+
} | {
|
|
121
|
+
value: string;
|
|
122
|
+
column: string;
|
|
123
|
+
op: "contains";
|
|
124
|
+
})[] | undefined;
|
|
125
|
+
rowNumber?: number | undefined;
|
|
126
|
+
}>;
|
|
127
|
+
declare const csvProfileInputSchema: z.ZodObject<{
|
|
128
|
+
operation: z.ZodLiteral<"csv_profile">;
|
|
129
|
+
file: z.ZodString;
|
|
130
|
+
sampleSize: z.ZodDefault<z.ZodNumber>;
|
|
131
|
+
distinctLimit: z.ZodDefault<z.ZodNumber>;
|
|
132
|
+
}, "strict", z.ZodTypeAny, {
|
|
133
|
+
file: string;
|
|
134
|
+
operation: "csv_profile";
|
|
135
|
+
sampleSize: number;
|
|
136
|
+
distinctLimit: number;
|
|
137
|
+
}, {
|
|
138
|
+
file: string;
|
|
139
|
+
operation: "csv_profile";
|
|
140
|
+
sampleSize?: number | undefined;
|
|
141
|
+
distinctLimit?: number | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
declare const csvDistinctInputSchema: z.ZodObject<{
|
|
144
|
+
operation: z.ZodLiteral<"csv_distinct">;
|
|
145
|
+
file: z.ZodString;
|
|
146
|
+
column: z.ZodString;
|
|
147
|
+
where: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
148
|
+
column: z.ZodString;
|
|
149
|
+
op: z.ZodLiteral<"eq">;
|
|
150
|
+
value: z.ZodString;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
value: string;
|
|
153
|
+
column: string;
|
|
154
|
+
op: "eq";
|
|
155
|
+
}, {
|
|
156
|
+
value: string;
|
|
157
|
+
column: string;
|
|
158
|
+
op: "eq";
|
|
159
|
+
}>, z.ZodObject<{
|
|
160
|
+
column: z.ZodString;
|
|
161
|
+
op: z.ZodLiteral<"in">;
|
|
162
|
+
value: z.ZodArray<z.ZodString, "many">;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
value: string[];
|
|
165
|
+
column: string;
|
|
166
|
+
op: "in";
|
|
167
|
+
}, {
|
|
168
|
+
value: string[];
|
|
169
|
+
column: string;
|
|
170
|
+
op: "in";
|
|
171
|
+
}>, z.ZodObject<{
|
|
172
|
+
column: z.ZodString;
|
|
173
|
+
op: z.ZodLiteral<"contains">;
|
|
174
|
+
value: z.ZodString;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
value: string;
|
|
177
|
+
column: string;
|
|
178
|
+
op: "contains";
|
|
179
|
+
}, {
|
|
180
|
+
value: string;
|
|
181
|
+
column: string;
|
|
182
|
+
op: "contains";
|
|
183
|
+
}>]>, "many">>;
|
|
184
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
185
|
+
}, "strict", z.ZodTypeAny, {
|
|
186
|
+
limit: number;
|
|
187
|
+
file: string;
|
|
188
|
+
column: string;
|
|
189
|
+
operation: "csv_distinct";
|
|
190
|
+
where?: ({
|
|
191
|
+
value: string;
|
|
192
|
+
column: string;
|
|
193
|
+
op: "eq";
|
|
194
|
+
} | {
|
|
195
|
+
value: string[];
|
|
196
|
+
column: string;
|
|
197
|
+
op: "in";
|
|
198
|
+
} | {
|
|
199
|
+
value: string;
|
|
200
|
+
column: string;
|
|
201
|
+
op: "contains";
|
|
202
|
+
})[] | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
file: string;
|
|
205
|
+
column: string;
|
|
206
|
+
operation: "csv_distinct";
|
|
207
|
+
limit?: number | undefined;
|
|
208
|
+
where?: ({
|
|
209
|
+
value: string;
|
|
210
|
+
column: string;
|
|
211
|
+
op: "eq";
|
|
212
|
+
} | {
|
|
213
|
+
value: string[];
|
|
214
|
+
column: string;
|
|
215
|
+
op: "in";
|
|
216
|
+
} | {
|
|
217
|
+
value: string;
|
|
218
|
+
column: string;
|
|
219
|
+
op: "contains";
|
|
220
|
+
})[] | undefined;
|
|
221
|
+
}>;
|
|
222
|
+
declare const csvAggregateInputSchema: z.ZodObject<{
|
|
223
|
+
operation: z.ZodLiteral<"csv_aggregate">;
|
|
224
|
+
file: z.ZodString;
|
|
225
|
+
metric: z.ZodOptional<z.ZodString>;
|
|
226
|
+
metrics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
227
|
+
functions: z.ZodDefault<z.ZodArray<z.ZodEnum<["count", "min", "max", "sum", "avg"]>, "many">>;
|
|
228
|
+
where: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
229
|
+
column: z.ZodString;
|
|
230
|
+
op: z.ZodLiteral<"eq">;
|
|
231
|
+
value: z.ZodString;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
value: string;
|
|
234
|
+
column: string;
|
|
235
|
+
op: "eq";
|
|
236
|
+
}, {
|
|
237
|
+
value: string;
|
|
238
|
+
column: string;
|
|
239
|
+
op: "eq";
|
|
240
|
+
}>, z.ZodObject<{
|
|
241
|
+
column: z.ZodString;
|
|
242
|
+
op: z.ZodLiteral<"in">;
|
|
243
|
+
value: z.ZodArray<z.ZodString, "many">;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
value: string[];
|
|
246
|
+
column: string;
|
|
247
|
+
op: "in";
|
|
248
|
+
}, {
|
|
249
|
+
value: string[];
|
|
250
|
+
column: string;
|
|
251
|
+
op: "in";
|
|
252
|
+
}>, z.ZodObject<{
|
|
253
|
+
column: z.ZodString;
|
|
254
|
+
op: z.ZodLiteral<"contains">;
|
|
255
|
+
value: z.ZodString;
|
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
value: string;
|
|
258
|
+
column: string;
|
|
259
|
+
op: "contains";
|
|
260
|
+
}, {
|
|
261
|
+
value: string;
|
|
262
|
+
column: string;
|
|
263
|
+
op: "contains";
|
|
264
|
+
}>]>, "many">>;
|
|
265
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
266
|
+
orderBy: z.ZodOptional<z.ZodObject<{
|
|
267
|
+
column: z.ZodString;
|
|
268
|
+
direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
269
|
+
}, "strict", z.ZodTypeAny, {
|
|
270
|
+
column: string;
|
|
271
|
+
direction: "asc" | "desc";
|
|
272
|
+
}, {
|
|
273
|
+
column: string;
|
|
274
|
+
direction?: "asc" | "desc" | undefined;
|
|
275
|
+
}>>;
|
|
276
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
277
|
+
}, "strict", z.ZodTypeAny, {
|
|
278
|
+
limit: number;
|
|
279
|
+
file: string;
|
|
280
|
+
operation: "csv_aggregate";
|
|
281
|
+
functions: ("max" | "min" | "count" | "sum" | "avg")[];
|
|
282
|
+
where?: ({
|
|
283
|
+
value: string;
|
|
284
|
+
column: string;
|
|
285
|
+
op: "eq";
|
|
286
|
+
} | {
|
|
287
|
+
value: string[];
|
|
288
|
+
column: string;
|
|
289
|
+
op: "in";
|
|
290
|
+
} | {
|
|
291
|
+
value: string;
|
|
292
|
+
column: string;
|
|
293
|
+
op: "contains";
|
|
294
|
+
})[] | undefined;
|
|
295
|
+
metrics?: string[] | undefined;
|
|
296
|
+
metric?: string | undefined;
|
|
297
|
+
groupBy?: string[] | undefined;
|
|
298
|
+
orderBy?: {
|
|
299
|
+
column: string;
|
|
300
|
+
direction: "asc" | "desc";
|
|
301
|
+
} | undefined;
|
|
302
|
+
}, {
|
|
303
|
+
file: string;
|
|
304
|
+
operation: "csv_aggregate";
|
|
305
|
+
limit?: number | undefined;
|
|
306
|
+
where?: ({
|
|
307
|
+
value: string;
|
|
308
|
+
column: string;
|
|
309
|
+
op: "eq";
|
|
310
|
+
} | {
|
|
311
|
+
value: string[];
|
|
312
|
+
column: string;
|
|
313
|
+
op: "in";
|
|
314
|
+
} | {
|
|
315
|
+
value: string;
|
|
316
|
+
column: string;
|
|
317
|
+
op: "contains";
|
|
318
|
+
})[] | undefined;
|
|
319
|
+
metrics?: string[] | undefined;
|
|
320
|
+
functions?: ("max" | "min" | "count" | "sum" | "avg")[] | undefined;
|
|
321
|
+
metric?: string | undefined;
|
|
322
|
+
groupBy?: string[] | undefined;
|
|
323
|
+
orderBy?: {
|
|
324
|
+
column: string;
|
|
325
|
+
direction?: "asc" | "desc" | undefined;
|
|
326
|
+
} | undefined;
|
|
327
|
+
}>;
|
|
328
|
+
export declare const searchKnowledgeParsingSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
|
|
329
|
+
operation: z.ZodLiteral<"list">;
|
|
330
|
+
}, "strict", z.ZodTypeAny, {
|
|
331
|
+
operation: "list";
|
|
332
|
+
}, {
|
|
333
|
+
operation: "list";
|
|
334
|
+
}>, z.ZodObject<{
|
|
335
|
+
operation: z.ZodLiteral<"search">;
|
|
336
|
+
query: z.ZodOptional<z.ZodString>;
|
|
337
|
+
queries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
338
|
+
match_mode: z.ZodDefault<z.ZodEnum<["any", "all_on_same_line", "all_within_lines"]>>;
|
|
339
|
+
output_mode: z.ZodDefault<z.ZodEnum<["files_with_matches", "content", "count"]>>;
|
|
340
|
+
caseInsensitive: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
+
fixedStrings: z.ZodOptional<z.ZodBoolean>;
|
|
342
|
+
context: z.ZodOptional<z.ZodNumber>;
|
|
343
|
+
file: z.ZodOptional<z.ZodString>;
|
|
344
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
345
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
346
|
+
head_limit: z.ZodDefault<z.ZodNumber>;
|
|
347
|
+
}, "strict", z.ZodTypeAny, {
|
|
348
|
+
operation: "search";
|
|
349
|
+
offset: number;
|
|
350
|
+
match_mode: "any" | "all_on_same_line" | "all_within_lines";
|
|
351
|
+
output_mode: "count" | "content" | "files_with_matches";
|
|
352
|
+
head_limit: number;
|
|
353
|
+
query?: string | undefined;
|
|
354
|
+
file?: string | undefined;
|
|
355
|
+
files?: string[] | undefined;
|
|
356
|
+
queries?: string[] | undefined;
|
|
357
|
+
context?: number | undefined;
|
|
358
|
+
caseInsensitive?: boolean | undefined;
|
|
359
|
+
fixedStrings?: boolean | undefined;
|
|
360
|
+
}, {
|
|
361
|
+
operation: "search";
|
|
362
|
+
query?: string | undefined;
|
|
363
|
+
file?: string | undefined;
|
|
364
|
+
files?: string[] | undefined;
|
|
365
|
+
offset?: number | undefined;
|
|
366
|
+
queries?: string[] | undefined;
|
|
367
|
+
context?: number | undefined;
|
|
368
|
+
caseInsensitive?: boolean | undefined;
|
|
369
|
+
fixedStrings?: boolean | undefined;
|
|
370
|
+
match_mode?: "any" | "all_on_same_line" | "all_within_lines" | undefined;
|
|
371
|
+
output_mode?: "count" | "content" | "files_with_matches" | undefined;
|
|
372
|
+
head_limit?: number | undefined;
|
|
373
|
+
}>, z.ZodObject<{
|
|
374
|
+
operation: z.ZodLiteral<"read">;
|
|
375
|
+
file: z.ZodString;
|
|
376
|
+
lineRange: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
start: z.ZodNumber;
|
|
378
|
+
end: z.ZodNumber;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
end: number;
|
|
381
|
+
start: number;
|
|
382
|
+
}, {
|
|
383
|
+
end: number;
|
|
384
|
+
start: number;
|
|
385
|
+
}>>;
|
|
386
|
+
}, "strict", z.ZodTypeAny, {
|
|
387
|
+
file: string;
|
|
388
|
+
operation: "read";
|
|
389
|
+
lineRange?: {
|
|
390
|
+
end: number;
|
|
391
|
+
start: number;
|
|
392
|
+
} | undefined;
|
|
393
|
+
}, {
|
|
394
|
+
file: string;
|
|
395
|
+
operation: "read";
|
|
396
|
+
lineRange?: {
|
|
397
|
+
end: number;
|
|
398
|
+
start: number;
|
|
399
|
+
} | undefined;
|
|
400
|
+
}>, z.ZodObject<{
|
|
401
|
+
operation: z.ZodLiteral<"csv_query">;
|
|
402
|
+
file: z.ZodString;
|
|
403
|
+
select: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
404
|
+
where: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
405
|
+
column: z.ZodString;
|
|
406
|
+
op: z.ZodLiteral<"eq">;
|
|
407
|
+
value: z.ZodString;
|
|
408
|
+
}, "strip", z.ZodTypeAny, {
|
|
409
|
+
value: string;
|
|
410
|
+
column: string;
|
|
411
|
+
op: "eq";
|
|
412
|
+
}, {
|
|
413
|
+
value: string;
|
|
414
|
+
column: string;
|
|
415
|
+
op: "eq";
|
|
416
|
+
}>, z.ZodObject<{
|
|
417
|
+
column: z.ZodString;
|
|
418
|
+
op: z.ZodLiteral<"in">;
|
|
419
|
+
value: z.ZodArray<z.ZodString, "many">;
|
|
420
|
+
}, "strip", z.ZodTypeAny, {
|
|
421
|
+
value: string[];
|
|
422
|
+
column: string;
|
|
423
|
+
op: "in";
|
|
424
|
+
}, {
|
|
425
|
+
value: string[];
|
|
426
|
+
column: string;
|
|
427
|
+
op: "in";
|
|
428
|
+
}>, z.ZodObject<{
|
|
429
|
+
column: z.ZodString;
|
|
430
|
+
op: z.ZodLiteral<"contains">;
|
|
431
|
+
value: z.ZodString;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
value: string;
|
|
434
|
+
column: string;
|
|
435
|
+
op: "contains";
|
|
436
|
+
}, {
|
|
437
|
+
value: string;
|
|
438
|
+
column: string;
|
|
439
|
+
op: "contains";
|
|
440
|
+
}>]>, "many">>;
|
|
441
|
+
rowNumber: z.ZodOptional<z.ZodNumber>;
|
|
442
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
443
|
+
}, "strict", z.ZodTypeAny, {
|
|
444
|
+
limit: number;
|
|
445
|
+
file: string;
|
|
446
|
+
operation: "csv_query";
|
|
447
|
+
select?: string[] | undefined;
|
|
448
|
+
where?: ({
|
|
449
|
+
value: string;
|
|
450
|
+
column: string;
|
|
451
|
+
op: "eq";
|
|
452
|
+
} | {
|
|
453
|
+
value: string[];
|
|
454
|
+
column: string;
|
|
455
|
+
op: "in";
|
|
456
|
+
} | {
|
|
457
|
+
value: string;
|
|
458
|
+
column: string;
|
|
459
|
+
op: "contains";
|
|
460
|
+
})[] | undefined;
|
|
461
|
+
rowNumber?: number | undefined;
|
|
462
|
+
}, {
|
|
463
|
+
file: string;
|
|
464
|
+
operation: "csv_query";
|
|
465
|
+
limit?: number | undefined;
|
|
466
|
+
select?: string[] | undefined;
|
|
467
|
+
where?: ({
|
|
468
|
+
value: string;
|
|
469
|
+
column: string;
|
|
470
|
+
op: "eq";
|
|
471
|
+
} | {
|
|
472
|
+
value: string[];
|
|
473
|
+
column: string;
|
|
474
|
+
op: "in";
|
|
475
|
+
} | {
|
|
476
|
+
value: string;
|
|
477
|
+
column: string;
|
|
478
|
+
op: "contains";
|
|
479
|
+
})[] | undefined;
|
|
480
|
+
rowNumber?: number | undefined;
|
|
481
|
+
}>, z.ZodObject<{
|
|
482
|
+
operation: z.ZodLiteral<"csv_profile">;
|
|
483
|
+
file: z.ZodString;
|
|
484
|
+
sampleSize: z.ZodDefault<z.ZodNumber>;
|
|
485
|
+
distinctLimit: z.ZodDefault<z.ZodNumber>;
|
|
486
|
+
}, "strict", z.ZodTypeAny, {
|
|
487
|
+
file: string;
|
|
488
|
+
operation: "csv_profile";
|
|
489
|
+
sampleSize: number;
|
|
490
|
+
distinctLimit: number;
|
|
491
|
+
}, {
|
|
492
|
+
file: string;
|
|
493
|
+
operation: "csv_profile";
|
|
494
|
+
sampleSize?: number | undefined;
|
|
495
|
+
distinctLimit?: number | undefined;
|
|
496
|
+
}>, z.ZodObject<{
|
|
497
|
+
operation: z.ZodLiteral<"csv_distinct">;
|
|
498
|
+
file: z.ZodString;
|
|
499
|
+
column: z.ZodString;
|
|
500
|
+
where: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
501
|
+
column: z.ZodString;
|
|
502
|
+
op: z.ZodLiteral<"eq">;
|
|
503
|
+
value: z.ZodString;
|
|
504
|
+
}, "strip", z.ZodTypeAny, {
|
|
505
|
+
value: string;
|
|
506
|
+
column: string;
|
|
507
|
+
op: "eq";
|
|
508
|
+
}, {
|
|
509
|
+
value: string;
|
|
510
|
+
column: string;
|
|
511
|
+
op: "eq";
|
|
512
|
+
}>, z.ZodObject<{
|
|
513
|
+
column: z.ZodString;
|
|
514
|
+
op: z.ZodLiteral<"in">;
|
|
515
|
+
value: z.ZodArray<z.ZodString, "many">;
|
|
516
|
+
}, "strip", z.ZodTypeAny, {
|
|
517
|
+
value: string[];
|
|
518
|
+
column: string;
|
|
519
|
+
op: "in";
|
|
520
|
+
}, {
|
|
521
|
+
value: string[];
|
|
522
|
+
column: string;
|
|
523
|
+
op: "in";
|
|
524
|
+
}>, z.ZodObject<{
|
|
525
|
+
column: z.ZodString;
|
|
526
|
+
op: z.ZodLiteral<"contains">;
|
|
527
|
+
value: z.ZodString;
|
|
528
|
+
}, "strip", z.ZodTypeAny, {
|
|
529
|
+
value: string;
|
|
530
|
+
column: string;
|
|
531
|
+
op: "contains";
|
|
532
|
+
}, {
|
|
533
|
+
value: string;
|
|
534
|
+
column: string;
|
|
535
|
+
op: "contains";
|
|
536
|
+
}>]>, "many">>;
|
|
537
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
538
|
+
}, "strict", z.ZodTypeAny, {
|
|
539
|
+
limit: number;
|
|
540
|
+
file: string;
|
|
541
|
+
column: string;
|
|
542
|
+
operation: "csv_distinct";
|
|
543
|
+
where?: ({
|
|
544
|
+
value: string;
|
|
545
|
+
column: string;
|
|
546
|
+
op: "eq";
|
|
547
|
+
} | {
|
|
548
|
+
value: string[];
|
|
549
|
+
column: string;
|
|
550
|
+
op: "in";
|
|
551
|
+
} | {
|
|
552
|
+
value: string;
|
|
553
|
+
column: string;
|
|
554
|
+
op: "contains";
|
|
555
|
+
})[] | undefined;
|
|
556
|
+
}, {
|
|
557
|
+
file: string;
|
|
558
|
+
column: string;
|
|
559
|
+
operation: "csv_distinct";
|
|
560
|
+
limit?: number | undefined;
|
|
561
|
+
where?: ({
|
|
562
|
+
value: string;
|
|
563
|
+
column: string;
|
|
564
|
+
op: "eq";
|
|
565
|
+
} | {
|
|
566
|
+
value: string[];
|
|
567
|
+
column: string;
|
|
568
|
+
op: "in";
|
|
569
|
+
} | {
|
|
570
|
+
value: string;
|
|
571
|
+
column: string;
|
|
572
|
+
op: "contains";
|
|
573
|
+
})[] | undefined;
|
|
574
|
+
}>, z.ZodObject<{
|
|
575
|
+
operation: z.ZodLiteral<"csv_aggregate">;
|
|
576
|
+
file: z.ZodString;
|
|
577
|
+
metric: z.ZodOptional<z.ZodString>;
|
|
578
|
+
metrics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
579
|
+
functions: z.ZodDefault<z.ZodArray<z.ZodEnum<["count", "min", "max", "sum", "avg"]>, "many">>;
|
|
580
|
+
where: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
581
|
+
column: z.ZodString;
|
|
582
|
+
op: z.ZodLiteral<"eq">;
|
|
583
|
+
value: z.ZodString;
|
|
584
|
+
}, "strip", z.ZodTypeAny, {
|
|
585
|
+
value: string;
|
|
586
|
+
column: string;
|
|
587
|
+
op: "eq";
|
|
588
|
+
}, {
|
|
589
|
+
value: string;
|
|
590
|
+
column: string;
|
|
591
|
+
op: "eq";
|
|
592
|
+
}>, z.ZodObject<{
|
|
593
|
+
column: z.ZodString;
|
|
594
|
+
op: z.ZodLiteral<"in">;
|
|
595
|
+
value: z.ZodArray<z.ZodString, "many">;
|
|
596
|
+
}, "strip", z.ZodTypeAny, {
|
|
597
|
+
value: string[];
|
|
598
|
+
column: string;
|
|
599
|
+
op: "in";
|
|
600
|
+
}, {
|
|
601
|
+
value: string[];
|
|
602
|
+
column: string;
|
|
603
|
+
op: "in";
|
|
604
|
+
}>, z.ZodObject<{
|
|
605
|
+
column: z.ZodString;
|
|
606
|
+
op: z.ZodLiteral<"contains">;
|
|
607
|
+
value: z.ZodString;
|
|
608
|
+
}, "strip", z.ZodTypeAny, {
|
|
609
|
+
value: string;
|
|
610
|
+
column: string;
|
|
611
|
+
op: "contains";
|
|
612
|
+
}, {
|
|
613
|
+
value: string;
|
|
614
|
+
column: string;
|
|
615
|
+
op: "contains";
|
|
616
|
+
}>]>, "many">>;
|
|
617
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
618
|
+
orderBy: z.ZodOptional<z.ZodObject<{
|
|
619
|
+
column: z.ZodString;
|
|
620
|
+
direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
621
|
+
}, "strict", z.ZodTypeAny, {
|
|
622
|
+
column: string;
|
|
623
|
+
direction: "asc" | "desc";
|
|
624
|
+
}, {
|
|
625
|
+
column: string;
|
|
626
|
+
direction?: "asc" | "desc" | undefined;
|
|
627
|
+
}>>;
|
|
628
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
629
|
+
}, "strict", z.ZodTypeAny, {
|
|
630
|
+
limit: number;
|
|
631
|
+
file: string;
|
|
632
|
+
operation: "csv_aggregate";
|
|
633
|
+
functions: ("max" | "min" | "count" | "sum" | "avg")[];
|
|
634
|
+
where?: ({
|
|
635
|
+
value: string;
|
|
636
|
+
column: string;
|
|
637
|
+
op: "eq";
|
|
638
|
+
} | {
|
|
639
|
+
value: string[];
|
|
640
|
+
column: string;
|
|
641
|
+
op: "in";
|
|
642
|
+
} | {
|
|
643
|
+
value: string;
|
|
644
|
+
column: string;
|
|
645
|
+
op: "contains";
|
|
646
|
+
})[] | undefined;
|
|
647
|
+
metrics?: string[] | undefined;
|
|
648
|
+
metric?: string | undefined;
|
|
649
|
+
groupBy?: string[] | undefined;
|
|
650
|
+
orderBy?: {
|
|
651
|
+
column: string;
|
|
652
|
+
direction: "asc" | "desc";
|
|
653
|
+
} | undefined;
|
|
654
|
+
}, {
|
|
655
|
+
file: string;
|
|
656
|
+
operation: "csv_aggregate";
|
|
657
|
+
limit?: number | undefined;
|
|
658
|
+
where?: ({
|
|
659
|
+
value: string;
|
|
660
|
+
column: string;
|
|
661
|
+
op: "eq";
|
|
662
|
+
} | {
|
|
663
|
+
value: string[];
|
|
664
|
+
column: string;
|
|
665
|
+
op: "in";
|
|
666
|
+
} | {
|
|
667
|
+
value: string;
|
|
668
|
+
column: string;
|
|
669
|
+
op: "contains";
|
|
670
|
+
})[] | undefined;
|
|
671
|
+
metrics?: string[] | undefined;
|
|
672
|
+
functions?: ("max" | "min" | "count" | "sum" | "avg")[] | undefined;
|
|
673
|
+
metric?: string | undefined;
|
|
674
|
+
groupBy?: string[] | undefined;
|
|
675
|
+
orderBy?: {
|
|
676
|
+
column: string;
|
|
677
|
+
direction?: "asc" | "desc" | undefined;
|
|
678
|
+
} | undefined;
|
|
679
|
+
}>]>;
|
|
680
|
+
export declare const searchKnowledgeInputSchema: JSONSchema7;
|
|
681
|
+
declare const searchMatchOutputSchema: z.ZodObject<{
|
|
682
|
+
fileId: z.ZodString;
|
|
683
|
+
fileName: z.ZodString;
|
|
684
|
+
relativePath: z.ZodString;
|
|
685
|
+
lineNumber: z.ZodNumber;
|
|
686
|
+
text: z.ZodString;
|
|
687
|
+
readRange: z.ZodObject<{
|
|
688
|
+
start: z.ZodNumber;
|
|
689
|
+
end: z.ZodNumber;
|
|
690
|
+
}, "strip", z.ZodTypeAny, {
|
|
691
|
+
end: number;
|
|
692
|
+
start: number;
|
|
693
|
+
}, {
|
|
694
|
+
end: number;
|
|
695
|
+
start: number;
|
|
696
|
+
}>;
|
|
697
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
698
|
+
}, "strip", z.ZodTypeAny, {
|
|
699
|
+
fileName: string;
|
|
700
|
+
text: string;
|
|
701
|
+
fileId: string;
|
|
702
|
+
lineNumber: number;
|
|
703
|
+
relativePath: string;
|
|
704
|
+
readRange: {
|
|
705
|
+
end: number;
|
|
706
|
+
start: number;
|
|
707
|
+
};
|
|
708
|
+
truncated?: boolean | undefined;
|
|
709
|
+
}, {
|
|
710
|
+
fileName: string;
|
|
711
|
+
text: string;
|
|
712
|
+
fileId: string;
|
|
713
|
+
lineNumber: number;
|
|
714
|
+
relativePath: string;
|
|
715
|
+
readRange: {
|
|
716
|
+
end: number;
|
|
717
|
+
start: number;
|
|
718
|
+
};
|
|
719
|
+
truncated?: boolean | undefined;
|
|
720
|
+
}>;
|
|
721
|
+
declare const searchResultOutputSchema: z.ZodObject<{
|
|
722
|
+
mode: z.ZodEnum<["files_with_matches", "content", "count"]>;
|
|
723
|
+
query: z.ZodString;
|
|
724
|
+
queries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
725
|
+
matchMode: z.ZodOptional<z.ZodEnum<["any", "all_on_same_line", "all_within_lines"]>>;
|
|
726
|
+
totalMatchingFiles: z.ZodNumber;
|
|
727
|
+
totalMatchingLines: z.ZodNumber;
|
|
728
|
+
files: z.ZodArray<z.ZodObject<{
|
|
729
|
+
id: z.ZodString;
|
|
730
|
+
fileName: z.ZodString;
|
|
731
|
+
relativePath: z.ZodString;
|
|
732
|
+
matchCount: z.ZodNumber;
|
|
733
|
+
}, "strip", z.ZodTypeAny, {
|
|
734
|
+
fileName: string;
|
|
735
|
+
id: string;
|
|
736
|
+
relativePath: string;
|
|
737
|
+
matchCount: number;
|
|
738
|
+
}, {
|
|
739
|
+
fileName: string;
|
|
740
|
+
id: string;
|
|
741
|
+
relativePath: string;
|
|
742
|
+
matchCount: number;
|
|
743
|
+
}>, "many">;
|
|
744
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
745
|
+
fileId: z.ZodString;
|
|
746
|
+
fileName: z.ZodString;
|
|
747
|
+
relativePath: z.ZodString;
|
|
748
|
+
lineNumber: z.ZodNumber;
|
|
749
|
+
text: z.ZodString;
|
|
750
|
+
readRange: z.ZodObject<{
|
|
751
|
+
start: z.ZodNumber;
|
|
752
|
+
end: z.ZodNumber;
|
|
753
|
+
}, "strip", z.ZodTypeAny, {
|
|
754
|
+
end: number;
|
|
755
|
+
start: number;
|
|
756
|
+
}, {
|
|
757
|
+
end: number;
|
|
758
|
+
start: number;
|
|
759
|
+
}>;
|
|
760
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
761
|
+
}, "strip", z.ZodTypeAny, {
|
|
762
|
+
fileName: string;
|
|
763
|
+
text: string;
|
|
764
|
+
fileId: string;
|
|
765
|
+
lineNumber: number;
|
|
766
|
+
relativePath: string;
|
|
767
|
+
readRange: {
|
|
768
|
+
end: number;
|
|
769
|
+
start: number;
|
|
770
|
+
};
|
|
771
|
+
truncated?: boolean | undefined;
|
|
772
|
+
}, {
|
|
773
|
+
fileName: string;
|
|
774
|
+
text: string;
|
|
775
|
+
fileId: string;
|
|
776
|
+
lineNumber: number;
|
|
777
|
+
relativePath: string;
|
|
778
|
+
readRange: {
|
|
779
|
+
end: number;
|
|
780
|
+
start: number;
|
|
781
|
+
};
|
|
782
|
+
truncated?: boolean | undefined;
|
|
783
|
+
}>, "many">;
|
|
784
|
+
truncated: z.ZodBoolean;
|
|
785
|
+
appliedLimit: z.ZodOptional<z.ZodNumber>;
|
|
786
|
+
appliedOffset: z.ZodOptional<z.ZodNumber>;
|
|
787
|
+
nextOffset: z.ZodOptional<z.ZodNumber>;
|
|
788
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
789
|
+
}, "strip", z.ZodTypeAny, {
|
|
790
|
+
query: string;
|
|
791
|
+
files: {
|
|
792
|
+
fileName: string;
|
|
793
|
+
id: string;
|
|
794
|
+
relativePath: string;
|
|
795
|
+
matchCount: number;
|
|
796
|
+
}[];
|
|
797
|
+
mode: "count" | "content" | "files_with_matches";
|
|
798
|
+
truncated: boolean;
|
|
799
|
+
totalMatchingFiles: number;
|
|
800
|
+
totalMatchingLines: number;
|
|
801
|
+
matches: {
|
|
802
|
+
fileName: string;
|
|
803
|
+
text: string;
|
|
804
|
+
fileId: string;
|
|
805
|
+
lineNumber: number;
|
|
806
|
+
relativePath: string;
|
|
807
|
+
readRange: {
|
|
808
|
+
end: number;
|
|
809
|
+
start: number;
|
|
810
|
+
};
|
|
811
|
+
truncated?: boolean | undefined;
|
|
812
|
+
}[];
|
|
813
|
+
hint?: string | undefined;
|
|
814
|
+
queries?: string[] | undefined;
|
|
815
|
+
matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined;
|
|
816
|
+
appliedLimit?: number | undefined;
|
|
817
|
+
appliedOffset?: number | undefined;
|
|
818
|
+
nextOffset?: number | undefined;
|
|
819
|
+
}, {
|
|
820
|
+
query: string;
|
|
821
|
+
files: {
|
|
822
|
+
fileName: string;
|
|
823
|
+
id: string;
|
|
824
|
+
relativePath: string;
|
|
825
|
+
matchCount: number;
|
|
826
|
+
}[];
|
|
827
|
+
mode: "count" | "content" | "files_with_matches";
|
|
828
|
+
truncated: boolean;
|
|
829
|
+
totalMatchingFiles: number;
|
|
830
|
+
totalMatchingLines: number;
|
|
831
|
+
matches: {
|
|
832
|
+
fileName: string;
|
|
833
|
+
text: string;
|
|
834
|
+
fileId: string;
|
|
835
|
+
lineNumber: number;
|
|
836
|
+
relativePath: string;
|
|
837
|
+
readRange: {
|
|
838
|
+
end: number;
|
|
839
|
+
start: number;
|
|
840
|
+
};
|
|
841
|
+
truncated?: boolean | undefined;
|
|
842
|
+
}[];
|
|
843
|
+
hint?: string | undefined;
|
|
844
|
+
queries?: string[] | undefined;
|
|
845
|
+
matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined;
|
|
846
|
+
appliedLimit?: number | undefined;
|
|
847
|
+
appliedOffset?: number | undefined;
|
|
848
|
+
nextOffset?: number | undefined;
|
|
849
|
+
}>;
|
|
850
|
+
export declare const searchKnowledgeOutputSchema: z.ZodObject<{
|
|
851
|
+
operation: z.ZodEnum<["list", "search", "read", "csv_query", "csv_profile", "csv_distinct", "csv_aggregate"]>;
|
|
852
|
+
files: z.ZodArray<z.ZodObject<{
|
|
853
|
+
id: z.ZodString;
|
|
854
|
+
fileName: z.ZodString;
|
|
855
|
+
mimeType: z.ZodString;
|
|
856
|
+
fileSizeBytes: z.ZodNumber;
|
|
857
|
+
relativePath: z.ZodString;
|
|
858
|
+
}, "strip", z.ZodTypeAny, {
|
|
859
|
+
fileName: string;
|
|
860
|
+
id: string;
|
|
861
|
+
mimeType: string;
|
|
862
|
+
fileSizeBytes: number;
|
|
863
|
+
relativePath: string;
|
|
864
|
+
}, {
|
|
865
|
+
fileName: string;
|
|
866
|
+
id: string;
|
|
867
|
+
mimeType: string;
|
|
868
|
+
fileSizeBytes: number;
|
|
869
|
+
relativePath: string;
|
|
870
|
+
}>, "many">;
|
|
871
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
872
|
+
command: z.ZodEnum<["git_grep", "cat", "sed"]>;
|
|
873
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
874
|
+
stdout: z.ZodString;
|
|
875
|
+
stderr: z.ZodString;
|
|
876
|
+
truncated: z.ZodBoolean;
|
|
877
|
+
citation: z.ZodOptional<z.ZodObject<{
|
|
878
|
+
fileName: z.ZodString;
|
|
879
|
+
lineRange: z.ZodOptional<z.ZodObject<{
|
|
880
|
+
start: z.ZodNumber;
|
|
881
|
+
end: z.ZodNumber;
|
|
882
|
+
}, "strip", z.ZodTypeAny, {
|
|
883
|
+
end: number;
|
|
884
|
+
start: number;
|
|
885
|
+
}, {
|
|
886
|
+
end: number;
|
|
887
|
+
start: number;
|
|
888
|
+
}>>;
|
|
889
|
+
instruction: z.ZodString;
|
|
890
|
+
}, "strip", z.ZodTypeAny, {
|
|
891
|
+
fileName: string;
|
|
892
|
+
instruction: string;
|
|
893
|
+
lineRange?: {
|
|
894
|
+
end: number;
|
|
895
|
+
start: number;
|
|
896
|
+
} | undefined;
|
|
897
|
+
}, {
|
|
898
|
+
fileName: string;
|
|
899
|
+
instruction: string;
|
|
900
|
+
lineRange?: {
|
|
901
|
+
end: number;
|
|
902
|
+
start: number;
|
|
903
|
+
} | undefined;
|
|
904
|
+
}>>;
|
|
905
|
+
}, "strip", z.ZodTypeAny, {
|
|
906
|
+
command: "git_grep" | "cat" | "sed";
|
|
907
|
+
stdout: string;
|
|
908
|
+
exitCode: number | null;
|
|
909
|
+
stderr: string;
|
|
910
|
+
truncated: boolean;
|
|
911
|
+
citation?: {
|
|
912
|
+
fileName: string;
|
|
913
|
+
instruction: string;
|
|
914
|
+
lineRange?: {
|
|
915
|
+
end: number;
|
|
916
|
+
start: number;
|
|
917
|
+
} | undefined;
|
|
918
|
+
} | undefined;
|
|
919
|
+
}, {
|
|
920
|
+
command: "git_grep" | "cat" | "sed";
|
|
921
|
+
stdout: string;
|
|
922
|
+
exitCode: number | null;
|
|
923
|
+
stderr: string;
|
|
924
|
+
truncated: boolean;
|
|
925
|
+
citation?: {
|
|
926
|
+
fileName: string;
|
|
927
|
+
instruction: string;
|
|
928
|
+
lineRange?: {
|
|
929
|
+
end: number;
|
|
930
|
+
start: number;
|
|
931
|
+
} | undefined;
|
|
932
|
+
} | undefined;
|
|
933
|
+
}>>;
|
|
934
|
+
search: z.ZodOptional<z.ZodObject<{
|
|
935
|
+
mode: z.ZodEnum<["files_with_matches", "content", "count"]>;
|
|
936
|
+
query: z.ZodString;
|
|
937
|
+
queries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
938
|
+
matchMode: z.ZodOptional<z.ZodEnum<["any", "all_on_same_line", "all_within_lines"]>>;
|
|
939
|
+
totalMatchingFiles: z.ZodNumber;
|
|
940
|
+
totalMatchingLines: z.ZodNumber;
|
|
941
|
+
files: z.ZodArray<z.ZodObject<{
|
|
942
|
+
id: z.ZodString;
|
|
943
|
+
fileName: z.ZodString;
|
|
944
|
+
relativePath: z.ZodString;
|
|
945
|
+
matchCount: z.ZodNumber;
|
|
946
|
+
}, "strip", z.ZodTypeAny, {
|
|
947
|
+
fileName: string;
|
|
948
|
+
id: string;
|
|
949
|
+
relativePath: string;
|
|
950
|
+
matchCount: number;
|
|
951
|
+
}, {
|
|
952
|
+
fileName: string;
|
|
953
|
+
id: string;
|
|
954
|
+
relativePath: string;
|
|
955
|
+
matchCount: number;
|
|
956
|
+
}>, "many">;
|
|
957
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
958
|
+
fileId: z.ZodString;
|
|
959
|
+
fileName: z.ZodString;
|
|
960
|
+
relativePath: z.ZodString;
|
|
961
|
+
lineNumber: z.ZodNumber;
|
|
962
|
+
text: z.ZodString;
|
|
963
|
+
readRange: z.ZodObject<{
|
|
964
|
+
start: z.ZodNumber;
|
|
965
|
+
end: z.ZodNumber;
|
|
966
|
+
}, "strip", z.ZodTypeAny, {
|
|
967
|
+
end: number;
|
|
968
|
+
start: number;
|
|
969
|
+
}, {
|
|
970
|
+
end: number;
|
|
971
|
+
start: number;
|
|
972
|
+
}>;
|
|
973
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
974
|
+
}, "strip", z.ZodTypeAny, {
|
|
975
|
+
fileName: string;
|
|
976
|
+
text: string;
|
|
977
|
+
fileId: string;
|
|
978
|
+
lineNumber: number;
|
|
979
|
+
relativePath: string;
|
|
980
|
+
readRange: {
|
|
981
|
+
end: number;
|
|
982
|
+
start: number;
|
|
983
|
+
};
|
|
984
|
+
truncated?: boolean | undefined;
|
|
985
|
+
}, {
|
|
986
|
+
fileName: string;
|
|
987
|
+
text: string;
|
|
988
|
+
fileId: string;
|
|
989
|
+
lineNumber: number;
|
|
990
|
+
relativePath: string;
|
|
991
|
+
readRange: {
|
|
992
|
+
end: number;
|
|
993
|
+
start: number;
|
|
994
|
+
};
|
|
995
|
+
truncated?: boolean | undefined;
|
|
996
|
+
}>, "many">;
|
|
997
|
+
truncated: z.ZodBoolean;
|
|
998
|
+
appliedLimit: z.ZodOptional<z.ZodNumber>;
|
|
999
|
+
appliedOffset: z.ZodOptional<z.ZodNumber>;
|
|
1000
|
+
nextOffset: z.ZodOptional<z.ZodNumber>;
|
|
1001
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
1002
|
+
}, "strip", z.ZodTypeAny, {
|
|
1003
|
+
query: string;
|
|
1004
|
+
files: {
|
|
1005
|
+
fileName: string;
|
|
1006
|
+
id: string;
|
|
1007
|
+
relativePath: string;
|
|
1008
|
+
matchCount: number;
|
|
1009
|
+
}[];
|
|
1010
|
+
mode: "count" | "content" | "files_with_matches";
|
|
1011
|
+
truncated: boolean;
|
|
1012
|
+
totalMatchingFiles: number;
|
|
1013
|
+
totalMatchingLines: number;
|
|
1014
|
+
matches: {
|
|
1015
|
+
fileName: string;
|
|
1016
|
+
text: string;
|
|
1017
|
+
fileId: string;
|
|
1018
|
+
lineNumber: number;
|
|
1019
|
+
relativePath: string;
|
|
1020
|
+
readRange: {
|
|
1021
|
+
end: number;
|
|
1022
|
+
start: number;
|
|
1023
|
+
};
|
|
1024
|
+
truncated?: boolean | undefined;
|
|
1025
|
+
}[];
|
|
1026
|
+
hint?: string | undefined;
|
|
1027
|
+
queries?: string[] | undefined;
|
|
1028
|
+
matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined;
|
|
1029
|
+
appliedLimit?: number | undefined;
|
|
1030
|
+
appliedOffset?: number | undefined;
|
|
1031
|
+
nextOffset?: number | undefined;
|
|
1032
|
+
}, {
|
|
1033
|
+
query: string;
|
|
1034
|
+
files: {
|
|
1035
|
+
fileName: string;
|
|
1036
|
+
id: string;
|
|
1037
|
+
relativePath: string;
|
|
1038
|
+
matchCount: number;
|
|
1039
|
+
}[];
|
|
1040
|
+
mode: "count" | "content" | "files_with_matches";
|
|
1041
|
+
truncated: boolean;
|
|
1042
|
+
totalMatchingFiles: number;
|
|
1043
|
+
totalMatchingLines: number;
|
|
1044
|
+
matches: {
|
|
1045
|
+
fileName: string;
|
|
1046
|
+
text: string;
|
|
1047
|
+
fileId: string;
|
|
1048
|
+
lineNumber: number;
|
|
1049
|
+
relativePath: string;
|
|
1050
|
+
readRange: {
|
|
1051
|
+
end: number;
|
|
1052
|
+
start: number;
|
|
1053
|
+
};
|
|
1054
|
+
truncated?: boolean | undefined;
|
|
1055
|
+
}[];
|
|
1056
|
+
hint?: string | undefined;
|
|
1057
|
+
queries?: string[] | undefined;
|
|
1058
|
+
matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined;
|
|
1059
|
+
appliedLimit?: number | undefined;
|
|
1060
|
+
appliedOffset?: number | undefined;
|
|
1061
|
+
nextOffset?: number | undefined;
|
|
1062
|
+
}>>;
|
|
1063
|
+
csv: z.ZodOptional<z.ZodObject<{
|
|
1064
|
+
fileName: z.ZodString;
|
|
1065
|
+
relativePath: z.ZodString;
|
|
1066
|
+
columns: z.ZodArray<z.ZodString, "many">;
|
|
1067
|
+
rowNumbers: z.ZodArray<z.ZodNumber, "many">;
|
|
1068
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
|
|
1069
|
+
records: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1070
|
+
rowNumber: z.ZodNumber;
|
|
1071
|
+
fileLineNumber: z.ZodNumber;
|
|
1072
|
+
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1073
|
+
}, "strip", z.ZodTypeAny, {
|
|
1074
|
+
values: Record<string, string>;
|
|
1075
|
+
rowNumber: number;
|
|
1076
|
+
fileLineNumber: number;
|
|
1077
|
+
}, {
|
|
1078
|
+
values: Record<string, string>;
|
|
1079
|
+
rowNumber: number;
|
|
1080
|
+
fileLineNumber: number;
|
|
1081
|
+
}>, "many">>;
|
|
1082
|
+
rowCount: z.ZodNumber;
|
|
1083
|
+
truncated: z.ZodBoolean;
|
|
1084
|
+
rowNumberBase: z.ZodOptional<z.ZodString>;
|
|
1085
|
+
ambiguity: z.ZodOptional<z.ZodObject<{
|
|
1086
|
+
matchedRows: z.ZodNumber;
|
|
1087
|
+
message: z.ZodString;
|
|
1088
|
+
suggestedColumns: z.ZodArray<z.ZodString, "many">;
|
|
1089
|
+
sampleDistinctValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
1090
|
+
}, "strip", z.ZodTypeAny, {
|
|
1091
|
+
message: string;
|
|
1092
|
+
matchedRows: number;
|
|
1093
|
+
suggestedColumns: string[];
|
|
1094
|
+
sampleDistinctValues?: Record<string, string[]> | undefined;
|
|
1095
|
+
}, {
|
|
1096
|
+
message: string;
|
|
1097
|
+
matchedRows: number;
|
|
1098
|
+
suggestedColumns: string[];
|
|
1099
|
+
sampleDistinctValues?: Record<string, string[]> | undefined;
|
|
1100
|
+
}>>;
|
|
1101
|
+
}, "strip", z.ZodTypeAny, {
|
|
1102
|
+
fileName: string;
|
|
1103
|
+
rows: string[][];
|
|
1104
|
+
columns: string[];
|
|
1105
|
+
rowCount: number;
|
|
1106
|
+
truncated: boolean;
|
|
1107
|
+
relativePath: string;
|
|
1108
|
+
rowNumbers: number[];
|
|
1109
|
+
records?: {
|
|
1110
|
+
values: Record<string, string>;
|
|
1111
|
+
rowNumber: number;
|
|
1112
|
+
fileLineNumber: number;
|
|
1113
|
+
}[] | undefined;
|
|
1114
|
+
rowNumberBase?: string | undefined;
|
|
1115
|
+
ambiguity?: {
|
|
1116
|
+
message: string;
|
|
1117
|
+
matchedRows: number;
|
|
1118
|
+
suggestedColumns: string[];
|
|
1119
|
+
sampleDistinctValues?: Record<string, string[]> | undefined;
|
|
1120
|
+
} | undefined;
|
|
1121
|
+
}, {
|
|
1122
|
+
fileName: string;
|
|
1123
|
+
rows: string[][];
|
|
1124
|
+
columns: string[];
|
|
1125
|
+
rowCount: number;
|
|
1126
|
+
truncated: boolean;
|
|
1127
|
+
relativePath: string;
|
|
1128
|
+
rowNumbers: number[];
|
|
1129
|
+
records?: {
|
|
1130
|
+
values: Record<string, string>;
|
|
1131
|
+
rowNumber: number;
|
|
1132
|
+
fileLineNumber: number;
|
|
1133
|
+
}[] | undefined;
|
|
1134
|
+
rowNumberBase?: string | undefined;
|
|
1135
|
+
ambiguity?: {
|
|
1136
|
+
message: string;
|
|
1137
|
+
matchedRows: number;
|
|
1138
|
+
suggestedColumns: string[];
|
|
1139
|
+
sampleDistinctValues?: Record<string, string[]> | undefined;
|
|
1140
|
+
} | undefined;
|
|
1141
|
+
}>>;
|
|
1142
|
+
csvProfile: z.ZodOptional<z.ZodObject<{
|
|
1143
|
+
fileName: z.ZodString;
|
|
1144
|
+
relativePath: z.ZodString;
|
|
1145
|
+
columns: z.ZodArray<z.ZodString, "many">;
|
|
1146
|
+
rowCount: z.ZodNumber;
|
|
1147
|
+
sampleRows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
|
|
1148
|
+
columnProfiles: z.ZodArray<z.ZodObject<{
|
|
1149
|
+
name: z.ZodString;
|
|
1150
|
+
inferredType: z.ZodEnum<["empty", "integer", "number", "boolean", "date", "string"]>;
|
|
1151
|
+
emptyCount: z.ZodNumber;
|
|
1152
|
+
distinctCount: z.ZodOptional<z.ZodNumber>;
|
|
1153
|
+
distinctCountTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
1154
|
+
sampleValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1155
|
+
}, "strip", z.ZodTypeAny, {
|
|
1156
|
+
name: string;
|
|
1157
|
+
inferredType: "string" | "number" | "boolean" | "empty" | "date" | "integer";
|
|
1158
|
+
emptyCount: number;
|
|
1159
|
+
distinctCount?: number | undefined;
|
|
1160
|
+
distinctCountTruncated?: boolean | undefined;
|
|
1161
|
+
sampleValues?: string[] | undefined;
|
|
1162
|
+
}, {
|
|
1163
|
+
name: string;
|
|
1164
|
+
inferredType: "string" | "number" | "boolean" | "empty" | "date" | "integer";
|
|
1165
|
+
emptyCount: number;
|
|
1166
|
+
distinctCount?: number | undefined;
|
|
1167
|
+
distinctCountTruncated?: boolean | undefined;
|
|
1168
|
+
sampleValues?: string[] | undefined;
|
|
1169
|
+
}>, "many">;
|
|
1170
|
+
likelyKeyColumns: z.ZodArray<z.ZodString, "many">;
|
|
1171
|
+
likelyDisambiguatingColumns: z.ZodArray<z.ZodString, "many">;
|
|
1172
|
+
}, "strip", z.ZodTypeAny, {
|
|
1173
|
+
fileName: string;
|
|
1174
|
+
columns: string[];
|
|
1175
|
+
rowCount: number;
|
|
1176
|
+
relativePath: string;
|
|
1177
|
+
sampleRows: Record<string, string>[];
|
|
1178
|
+
columnProfiles: {
|
|
1179
|
+
name: string;
|
|
1180
|
+
inferredType: "string" | "number" | "boolean" | "empty" | "date" | "integer";
|
|
1181
|
+
emptyCount: number;
|
|
1182
|
+
distinctCount?: number | undefined;
|
|
1183
|
+
distinctCountTruncated?: boolean | undefined;
|
|
1184
|
+
sampleValues?: string[] | undefined;
|
|
1185
|
+
}[];
|
|
1186
|
+
likelyKeyColumns: string[];
|
|
1187
|
+
likelyDisambiguatingColumns: string[];
|
|
1188
|
+
}, {
|
|
1189
|
+
fileName: string;
|
|
1190
|
+
columns: string[];
|
|
1191
|
+
rowCount: number;
|
|
1192
|
+
relativePath: string;
|
|
1193
|
+
sampleRows: Record<string, string>[];
|
|
1194
|
+
columnProfiles: {
|
|
1195
|
+
name: string;
|
|
1196
|
+
inferredType: "string" | "number" | "boolean" | "empty" | "date" | "integer";
|
|
1197
|
+
emptyCount: number;
|
|
1198
|
+
distinctCount?: number | undefined;
|
|
1199
|
+
distinctCountTruncated?: boolean | undefined;
|
|
1200
|
+
sampleValues?: string[] | undefined;
|
|
1201
|
+
}[];
|
|
1202
|
+
likelyKeyColumns: string[];
|
|
1203
|
+
likelyDisambiguatingColumns: string[];
|
|
1204
|
+
}>>;
|
|
1205
|
+
csvDistinct: z.ZodOptional<z.ZodObject<{
|
|
1206
|
+
fileName: z.ZodString;
|
|
1207
|
+
relativePath: z.ZodString;
|
|
1208
|
+
column: z.ZodString;
|
|
1209
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
1210
|
+
distinctCount: z.ZodNumber;
|
|
1211
|
+
truncated: z.ZodBoolean;
|
|
1212
|
+
}, "strip", z.ZodTypeAny, {
|
|
1213
|
+
values: string[];
|
|
1214
|
+
fileName: string;
|
|
1215
|
+
column: string;
|
|
1216
|
+
truncated: boolean;
|
|
1217
|
+
relativePath: string;
|
|
1218
|
+
distinctCount: number;
|
|
1219
|
+
}, {
|
|
1220
|
+
values: string[];
|
|
1221
|
+
fileName: string;
|
|
1222
|
+
column: string;
|
|
1223
|
+
truncated: boolean;
|
|
1224
|
+
relativePath: string;
|
|
1225
|
+
distinctCount: number;
|
|
1226
|
+
}>>;
|
|
1227
|
+
csvAggregate: z.ZodOptional<z.ZodObject<{
|
|
1228
|
+
fileName: z.ZodString;
|
|
1229
|
+
relativePath: z.ZodString;
|
|
1230
|
+
rowCount: z.ZodNumber;
|
|
1231
|
+
functions: z.ZodArray<z.ZodEnum<["count", "min", "max", "sum", "avg"]>, "many">;
|
|
1232
|
+
metrics: z.ZodArray<z.ZodString, "many">;
|
|
1233
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1234
|
+
results: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>, "many">;
|
|
1235
|
+
truncated: z.ZodBoolean;
|
|
1236
|
+
skippedNonNumeric: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1237
|
+
}, "strip", z.ZodTypeAny, {
|
|
1238
|
+
fileName: string;
|
|
1239
|
+
metrics: string[];
|
|
1240
|
+
results: Record<string, string | number | null>[];
|
|
1241
|
+
rowCount: number;
|
|
1242
|
+
functions: ("max" | "min" | "count" | "sum" | "avg")[];
|
|
1243
|
+
truncated: boolean;
|
|
1244
|
+
relativePath: string;
|
|
1245
|
+
groupBy?: string[] | undefined;
|
|
1246
|
+
skippedNonNumeric?: Record<string, number> | undefined;
|
|
1247
|
+
}, {
|
|
1248
|
+
fileName: string;
|
|
1249
|
+
metrics: string[];
|
|
1250
|
+
results: Record<string, string | number | null>[];
|
|
1251
|
+
rowCount: number;
|
|
1252
|
+
functions: ("max" | "min" | "count" | "sum" | "avg")[];
|
|
1253
|
+
truncated: boolean;
|
|
1254
|
+
relativePath: string;
|
|
1255
|
+
groupBy?: string[] | undefined;
|
|
1256
|
+
skippedNonNumeric?: Record<string, number> | undefined;
|
|
1257
|
+
}>>;
|
|
1258
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1259
|
+
}, "strip", z.ZodTypeAny, {
|
|
1260
|
+
files: {
|
|
1261
|
+
fileName: string;
|
|
1262
|
+
id: string;
|
|
1263
|
+
mimeType: string;
|
|
1264
|
+
fileSizeBytes: number;
|
|
1265
|
+
relativePath: string;
|
|
1266
|
+
}[];
|
|
1267
|
+
operation: "search" | "read" | "list" | "csv_query" | "csv_profile" | "csv_distinct" | "csv_aggregate";
|
|
1268
|
+
search?: {
|
|
1269
|
+
query: string;
|
|
1270
|
+
files: {
|
|
1271
|
+
fileName: string;
|
|
1272
|
+
id: string;
|
|
1273
|
+
relativePath: string;
|
|
1274
|
+
matchCount: number;
|
|
1275
|
+
}[];
|
|
1276
|
+
mode: "count" | "content" | "files_with_matches";
|
|
1277
|
+
truncated: boolean;
|
|
1278
|
+
totalMatchingFiles: number;
|
|
1279
|
+
totalMatchingLines: number;
|
|
1280
|
+
matches: {
|
|
1281
|
+
fileName: string;
|
|
1282
|
+
text: string;
|
|
1283
|
+
fileId: string;
|
|
1284
|
+
lineNumber: number;
|
|
1285
|
+
relativePath: string;
|
|
1286
|
+
readRange: {
|
|
1287
|
+
end: number;
|
|
1288
|
+
start: number;
|
|
1289
|
+
};
|
|
1290
|
+
truncated?: boolean | undefined;
|
|
1291
|
+
}[];
|
|
1292
|
+
hint?: string | undefined;
|
|
1293
|
+
queries?: string[] | undefined;
|
|
1294
|
+
matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined;
|
|
1295
|
+
appliedLimit?: number | undefined;
|
|
1296
|
+
appliedOffset?: number | undefined;
|
|
1297
|
+
nextOffset?: number | undefined;
|
|
1298
|
+
} | undefined;
|
|
1299
|
+
error?: string | undefined;
|
|
1300
|
+
result?: {
|
|
1301
|
+
command: "git_grep" | "cat" | "sed";
|
|
1302
|
+
stdout: string;
|
|
1303
|
+
exitCode: number | null;
|
|
1304
|
+
stderr: string;
|
|
1305
|
+
truncated: boolean;
|
|
1306
|
+
citation?: {
|
|
1307
|
+
fileName: string;
|
|
1308
|
+
instruction: string;
|
|
1309
|
+
lineRange?: {
|
|
1310
|
+
end: number;
|
|
1311
|
+
start: number;
|
|
1312
|
+
} | undefined;
|
|
1313
|
+
} | undefined;
|
|
1314
|
+
} | undefined;
|
|
1315
|
+
csv?: {
|
|
1316
|
+
fileName: string;
|
|
1317
|
+
rows: string[][];
|
|
1318
|
+
columns: string[];
|
|
1319
|
+
rowCount: number;
|
|
1320
|
+
truncated: boolean;
|
|
1321
|
+
relativePath: string;
|
|
1322
|
+
rowNumbers: number[];
|
|
1323
|
+
records?: {
|
|
1324
|
+
values: Record<string, string>;
|
|
1325
|
+
rowNumber: number;
|
|
1326
|
+
fileLineNumber: number;
|
|
1327
|
+
}[] | undefined;
|
|
1328
|
+
rowNumberBase?: string | undefined;
|
|
1329
|
+
ambiguity?: {
|
|
1330
|
+
message: string;
|
|
1331
|
+
matchedRows: number;
|
|
1332
|
+
suggestedColumns: string[];
|
|
1333
|
+
sampleDistinctValues?: Record<string, string[]> | undefined;
|
|
1334
|
+
} | undefined;
|
|
1335
|
+
} | undefined;
|
|
1336
|
+
csvProfile?: {
|
|
1337
|
+
fileName: string;
|
|
1338
|
+
columns: string[];
|
|
1339
|
+
rowCount: number;
|
|
1340
|
+
relativePath: string;
|
|
1341
|
+
sampleRows: Record<string, string>[];
|
|
1342
|
+
columnProfiles: {
|
|
1343
|
+
name: string;
|
|
1344
|
+
inferredType: "string" | "number" | "boolean" | "empty" | "date" | "integer";
|
|
1345
|
+
emptyCount: number;
|
|
1346
|
+
distinctCount?: number | undefined;
|
|
1347
|
+
distinctCountTruncated?: boolean | undefined;
|
|
1348
|
+
sampleValues?: string[] | undefined;
|
|
1349
|
+
}[];
|
|
1350
|
+
likelyKeyColumns: string[];
|
|
1351
|
+
likelyDisambiguatingColumns: string[];
|
|
1352
|
+
} | undefined;
|
|
1353
|
+
csvDistinct?: {
|
|
1354
|
+
values: string[];
|
|
1355
|
+
fileName: string;
|
|
1356
|
+
column: string;
|
|
1357
|
+
truncated: boolean;
|
|
1358
|
+
relativePath: string;
|
|
1359
|
+
distinctCount: number;
|
|
1360
|
+
} | undefined;
|
|
1361
|
+
csvAggregate?: {
|
|
1362
|
+
fileName: string;
|
|
1363
|
+
metrics: string[];
|
|
1364
|
+
results: Record<string, string | number | null>[];
|
|
1365
|
+
rowCount: number;
|
|
1366
|
+
functions: ("max" | "min" | "count" | "sum" | "avg")[];
|
|
1367
|
+
truncated: boolean;
|
|
1368
|
+
relativePath: string;
|
|
1369
|
+
groupBy?: string[] | undefined;
|
|
1370
|
+
skippedNonNumeric?: Record<string, number> | undefined;
|
|
1371
|
+
} | undefined;
|
|
1372
|
+
}, {
|
|
1373
|
+
files: {
|
|
1374
|
+
fileName: string;
|
|
1375
|
+
id: string;
|
|
1376
|
+
mimeType: string;
|
|
1377
|
+
fileSizeBytes: number;
|
|
1378
|
+
relativePath: string;
|
|
1379
|
+
}[];
|
|
1380
|
+
operation: "search" | "read" | "list" | "csv_query" | "csv_profile" | "csv_distinct" | "csv_aggregate";
|
|
1381
|
+
search?: {
|
|
1382
|
+
query: string;
|
|
1383
|
+
files: {
|
|
1384
|
+
fileName: string;
|
|
1385
|
+
id: string;
|
|
1386
|
+
relativePath: string;
|
|
1387
|
+
matchCount: number;
|
|
1388
|
+
}[];
|
|
1389
|
+
mode: "count" | "content" | "files_with_matches";
|
|
1390
|
+
truncated: boolean;
|
|
1391
|
+
totalMatchingFiles: number;
|
|
1392
|
+
totalMatchingLines: number;
|
|
1393
|
+
matches: {
|
|
1394
|
+
fileName: string;
|
|
1395
|
+
text: string;
|
|
1396
|
+
fileId: string;
|
|
1397
|
+
lineNumber: number;
|
|
1398
|
+
relativePath: string;
|
|
1399
|
+
readRange: {
|
|
1400
|
+
end: number;
|
|
1401
|
+
start: number;
|
|
1402
|
+
};
|
|
1403
|
+
truncated?: boolean | undefined;
|
|
1404
|
+
}[];
|
|
1405
|
+
hint?: string | undefined;
|
|
1406
|
+
queries?: string[] | undefined;
|
|
1407
|
+
matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined;
|
|
1408
|
+
appliedLimit?: number | undefined;
|
|
1409
|
+
appliedOffset?: number | undefined;
|
|
1410
|
+
nextOffset?: number | undefined;
|
|
1411
|
+
} | undefined;
|
|
1412
|
+
error?: string | undefined;
|
|
1413
|
+
result?: {
|
|
1414
|
+
command: "git_grep" | "cat" | "sed";
|
|
1415
|
+
stdout: string;
|
|
1416
|
+
exitCode: number | null;
|
|
1417
|
+
stderr: string;
|
|
1418
|
+
truncated: boolean;
|
|
1419
|
+
citation?: {
|
|
1420
|
+
fileName: string;
|
|
1421
|
+
instruction: string;
|
|
1422
|
+
lineRange?: {
|
|
1423
|
+
end: number;
|
|
1424
|
+
start: number;
|
|
1425
|
+
} | undefined;
|
|
1426
|
+
} | undefined;
|
|
1427
|
+
} | undefined;
|
|
1428
|
+
csv?: {
|
|
1429
|
+
fileName: string;
|
|
1430
|
+
rows: string[][];
|
|
1431
|
+
columns: string[];
|
|
1432
|
+
rowCount: number;
|
|
1433
|
+
truncated: boolean;
|
|
1434
|
+
relativePath: string;
|
|
1435
|
+
rowNumbers: number[];
|
|
1436
|
+
records?: {
|
|
1437
|
+
values: Record<string, string>;
|
|
1438
|
+
rowNumber: number;
|
|
1439
|
+
fileLineNumber: number;
|
|
1440
|
+
}[] | undefined;
|
|
1441
|
+
rowNumberBase?: string | undefined;
|
|
1442
|
+
ambiguity?: {
|
|
1443
|
+
message: string;
|
|
1444
|
+
matchedRows: number;
|
|
1445
|
+
suggestedColumns: string[];
|
|
1446
|
+
sampleDistinctValues?: Record<string, string[]> | undefined;
|
|
1447
|
+
} | undefined;
|
|
1448
|
+
} | undefined;
|
|
1449
|
+
csvProfile?: {
|
|
1450
|
+
fileName: string;
|
|
1451
|
+
columns: string[];
|
|
1452
|
+
rowCount: number;
|
|
1453
|
+
relativePath: string;
|
|
1454
|
+
sampleRows: Record<string, string>[];
|
|
1455
|
+
columnProfiles: {
|
|
1456
|
+
name: string;
|
|
1457
|
+
inferredType: "string" | "number" | "boolean" | "empty" | "date" | "integer";
|
|
1458
|
+
emptyCount: number;
|
|
1459
|
+
distinctCount?: number | undefined;
|
|
1460
|
+
distinctCountTruncated?: boolean | undefined;
|
|
1461
|
+
sampleValues?: string[] | undefined;
|
|
1462
|
+
}[];
|
|
1463
|
+
likelyKeyColumns: string[];
|
|
1464
|
+
likelyDisambiguatingColumns: string[];
|
|
1465
|
+
} | undefined;
|
|
1466
|
+
csvDistinct?: {
|
|
1467
|
+
values: string[];
|
|
1468
|
+
fileName: string;
|
|
1469
|
+
column: string;
|
|
1470
|
+
truncated: boolean;
|
|
1471
|
+
relativePath: string;
|
|
1472
|
+
distinctCount: number;
|
|
1473
|
+
} | undefined;
|
|
1474
|
+
csvAggregate?: {
|
|
1475
|
+
fileName: string;
|
|
1476
|
+
metrics: string[];
|
|
1477
|
+
results: Record<string, string | number | null>[];
|
|
1478
|
+
rowCount: number;
|
|
1479
|
+
functions: ("max" | "min" | "count" | "sum" | "avg")[];
|
|
1480
|
+
truncated: boolean;
|
|
1481
|
+
relativePath: string;
|
|
1482
|
+
groupBy?: string[] | undefined;
|
|
1483
|
+
skippedNonNumeric?: Record<string, number> | undefined;
|
|
1484
|
+
} | undefined;
|
|
1485
|
+
}>;
|
|
1486
|
+
export type ParsedSearchKnowledgeInput = z.infer<typeof searchKnowledgeParsingSchema>;
|
|
1487
|
+
export type SearchKnowledgeOutput = z.infer<typeof searchKnowledgeOutputSchema>;
|
|
1488
|
+
export type CsvQueryInput = z.infer<typeof csvQueryInputSchema>;
|
|
1489
|
+
export type CsvProfileInput = z.infer<typeof csvProfileInputSchema>;
|
|
1490
|
+
export type CsvDistinctInput = z.infer<typeof csvDistinctInputSchema>;
|
|
1491
|
+
export type CsvAggregateInput = z.infer<typeof csvAggregateInputSchema>;
|
|
1492
|
+
export type CsvFilter = z.infer<typeof csvFilterSchema>;
|
|
1493
|
+
export type SearchOutputMode = z.infer<typeof searchOutputModeSchema>;
|
|
1494
|
+
export type SearchMatchMode = z.infer<typeof searchMatchModeSchema>;
|
|
1495
|
+
export type SearchMatchOutput = z.infer<typeof searchMatchOutputSchema>;
|
|
1496
|
+
export type SearchResultOutput = z.infer<typeof searchResultOutputSchema>;
|
|
1497
|
+
export type InternalKnowledgeCommandRequest = Extract<AgentKnowledgeCommandRequest, {
|
|
1498
|
+
command: 'git_grep' | 'cat' | 'sed';
|
|
1499
|
+
}>;
|
|
1500
|
+
export type InternalKnowledgeCommandResult = Omit<AgentKnowledgeCommandResult, 'command'> & {
|
|
1501
|
+
command: InternalKnowledgeCommandRequest['command'];
|
|
1502
|
+
};
|
|
1503
|
+
export declare function parseSearchKnowledgeInput(input: unknown): ParsedSearchKnowledgeInput;
|
|
1504
|
+
export declare function getSearchKnowledgeOperation(input: unknown): SearchKnowledgeOutput['operation'];
|
|
1505
|
+
export {};
|