n8n 2.26.4 → 2.27.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 +9 -17
- package/dist/active-workflow-manager.js +48 -159
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/binary-data/database.manager.js +2 -1
- package/dist/binary-data/database.manager.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/audit.d.ts +1 -0
- package/dist/commands/audit.js +9 -0
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/base-command.d.ts +1 -0
- package/dist/commands/base-command.js +31 -10
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/export/workflow.js +9 -0
- package/dist/commands/export/workflow.js.map +1 -1
- package/dist/commands/import/workflow.js +6 -0
- package/dist/commands/import/workflow.js.map +1 -1
- package/dist/commands/start.js +7 -3
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/worker.js +6 -3
- package/dist/commands/worker.js.map +1 -1
- package/dist/concurrency/concurrency-queue.d.ts +1 -1
- package/dist/concurrency/concurrency-queue.js +2 -2
- package/dist/concurrency/concurrency-queue.js.map +1 -1
- package/dist/controllers/api-keys.controller.js +6 -2
- package/dist/controllers/api-keys.controller.js.map +1 -1
- package/dist/controllers/e2e.controller.js +1 -1
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +7 -0
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/security-settings.controller.d.ts +3 -3
- package/dist/controllers/security-settings.controller.js +3 -8
- package/dist/controllers/security-settings.controller.js.map +1 -1
- package/dist/credentials-helper.js +3 -0
- package/dist/credentials-helper.js.map +1 -1
- package/dist/errors/http-error-serializers.js +2 -15
- package/dist/errors/http-error-serializers.js.map +1 -1
- package/dist/errors/response-errors/bad-request.error.d.ts +1 -1
- package/dist/errors/response-errors/bad-request.error.js +2 -2
- package/dist/errors/response-errors/bad-request.error.js.map +1 -1
- package/dist/errors/response-errors/unprocessable.error.d.ts +2 -1
- package/dist/errors/response-errors/unprocessable.error.js +2 -1
- package/dist/errors/response-errors/unprocessable.error.js.map +1 -1
- package/dist/events/event.service.d.ts +1 -1
- package/dist/events/event.service.js +2 -2
- package/dist/events/event.service.js.map +1 -1
- package/dist/events/maps/execution-data.event-map.d.ts +1 -0
- package/dist/events/maps/relay.event-map.d.ts +13 -0
- package/dist/events/relays/log-streaming.event-relay.js +2 -2
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +2 -0
- package/dist/events/relays/telemetry.event-relay.js +21 -2
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/executions/execution-data/db-store.d.ts +3 -1
- package/dist/executions/execution-data/db-store.js +14 -0
- package/dist/executions/execution-data/db-store.js.map +1 -1
- package/dist/executions/execution-data/fs-store.d.ts +1 -1
- package/dist/executions/execution-data/fs-store.js +3 -1
- package/dist/executions/execution-data/fs-store.js.map +1 -1
- package/dist/executions/execution-data/s3-store.ee.d.ts +15 -0
- package/dist/executions/execution-data/s3-store.ee.js +115 -0
- package/dist/executions/execution-data/s3-store.ee.js.map +1 -0
- package/dist/executions/execution-data/types.d.ts +1 -1
- package/dist/executions/execution-persistence.d.ts +16 -2
- package/dist/executions/execution-persistence.js +80 -22
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/metrics/prometheus/active-workflow-metrics.service.d.ts +12 -0
- package/dist/metrics/prometheus/active-workflow-metrics.service.js +61 -0
- package/dist/metrics/prometheus/active-workflow-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/base.d.ts +5 -0
- package/dist/metrics/{types.js → prometheus/base.js} +1 -1
- package/dist/metrics/prometheus/base.js.map +1 -0
- package/dist/metrics/prometheus/cache-metrics.service.d.ts +11 -0
- package/dist/metrics/prometheus/cache-metrics.service.js +48 -0
- package/dist/metrics/prometheus/cache-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/constant.d.ts +2 -0
- package/dist/metrics/prometheus/constant.js +18 -0
- package/dist/metrics/prometheus/constant.js.map +1 -0
- package/dist/metrics/prometheus/default-metrics.service.d.ts +8 -0
- package/dist/metrics/prometheus/default-metrics.service.js +35 -0
- package/dist/metrics/prometheus/default-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/dns-cache-metrics.service.d.ts +12 -0
- package/dist/metrics/prometheus/dns-cache-metrics.service.js +58 -0
- package/dist/metrics/prometheus/dns-cache-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/event-bus-metrics.service.d.ts +15 -0
- package/dist/metrics/prometheus/event-bus-metrics.service.js +106 -0
- package/dist/metrics/prometheus/event-bus-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/execution-data-metrics.service.d.ts +12 -0
- package/dist/metrics/prometheus/execution-data-metrics.service.js +106 -0
- package/dist/metrics/prometheus/execution-data-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/index.d.ts +1 -0
- package/dist/metrics/prometheus/index.js +6 -0
- package/dist/metrics/prometheus/index.js.map +1 -0
- package/dist/metrics/prometheus/instance-role-metrics.service.d.ts +13 -0
- package/dist/metrics/prometheus/instance-role-metrics.service.js +61 -0
- package/dist/metrics/prometheus/instance-role-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/prometheus.service.d.ts +26 -0
- package/dist/metrics/prometheus/prometheus.service.js +105 -0
- package/dist/metrics/prometheus/prometheus.service.js.map +1 -0
- package/dist/metrics/prometheus/pss-metrics.service.d.ts +9 -0
- package/dist/metrics/prometheus/pss-metrics.service.js +59 -0
- package/dist/metrics/prometheus/pss-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/queue-metrics.service.d.ts +13 -0
- package/dist/metrics/prometheus/queue-metrics.service.js +71 -0
- package/dist/metrics/prometheus/queue-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/route-metrics.service.d.ts +11 -0
- package/dist/metrics/prometheus/route-metrics.service.js +69 -0
- package/dist/metrics/prometheus/route-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/ssrf-metrics.service.d.ts +11 -0
- package/dist/metrics/prometheus/ssrf-metrics.service.js +65 -0
- package/dist/metrics/prometheus/ssrf-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/token-exchange-metrics.service.d.ts +10 -0
- package/dist/metrics/prometheus/token-exchange-metrics.service.js +91 -0
- package/dist/metrics/prometheus/token-exchange-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/version-metrics.service.d.ts +8 -0
- package/dist/metrics/prometheus/version-metrics.service.js +46 -0
- package/dist/metrics/prometheus/version-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/workflow-execution-duration-metrics.service.d.ts +10 -0
- package/dist/metrics/prometheus/workflow-execution-duration-metrics.service.js +61 -0
- package/dist/metrics/prometheus/workflow-execution-duration-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.d.ts +17 -0
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.js +130 -0
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.js.map +1 -0
- package/dist/modules/agents/agent-knowledge.service.d.ts +3 -32
- package/dist/modules/agents/agent-knowledge.service.js +7 -248
- package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +1 -6
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +2 -28
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agents-list.controller.d.ts +9 -0
- package/dist/modules/agents/agents-list.controller.js +39 -0
- package/dist/modules/agents/agents-list.controller.js.map +1 -0
- package/dist/modules/agents/agents.controller.d.ts +6 -6
- package/dist/modules/agents/agents.controller.js +12 -19
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +3 -2
- package/dist/modules/agents/agents.module.js +4 -2
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +10 -2
- package/dist/modules/agents/agents.service.js +119 -82
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/entities/agent-chat-subscription.entity.d.ts +10 -0
- package/dist/modules/agents/entities/{agent-file.entity.js → agent-chat-subscription.entity.js} +34 -23
- package/dist/modules/agents/entities/agent-chat-subscription.entity.js.map +1 -0
- package/dist/modules/agents/execution-recorder.js +15 -2
- package/dist/modules/agents/execution-recorder.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-subscription-state.adapter.d.ts +43 -0
- package/dist/modules/agents/integrations/agent-chat-subscription-state.adapter.js +139 -0
- package/dist/modules/agents/integrations/agent-chat-subscription-state.adapter.js.map +1 -0
- package/dist/modules/agents/integrations/agent-chat-subscription-state.service.d.ts +26 -0
- package/dist/modules/agents/integrations/agent-chat-subscription-state.service.js +88 -0
- package/dist/modules/agents/integrations/agent-chat-subscription-state.service.js.map +1 -0
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +3 -1
- package/dist/modules/agents/integrations/chat-integration.service.js +47 -18
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.js +8 -8
- package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
- package/dist/modules/agents/repositories/agent-chat-subscription.repository.d.ts +15 -0
- package/dist/modules/agents/repositories/agent-chat-subscription.repository.js +51 -0
- package/dist/modules/agents/repositories/agent-chat-subscription.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent.repository.d.ts +7 -0
- package/dist/modules/agents/repositories/agent.repository.js +28 -0
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/data-table/data-table.repository.js +1 -1
- package/dist/modules/data-table/data-table.repository.js.map +1 -1
- package/dist/modules/data-table/utils/sql-utils.js +16 -1
- package/dist/modules/data-table/utils/sql-utils.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +15 -7
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.js +51 -32
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +77 -13
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-quirks.js +8 -1
- package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +2 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +5 -4
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +7 -121
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.js +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +5 -28
- package/dist/modules/instance-ai/instance-ai.service.js +58 -471
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/output-redaction-config.d.ts +3 -0
- package/dist/modules/instance-ai/output-redaction-config.js +19 -0
- package/dist/modules/instance-ai/output-redaction-config.js.map +1 -0
- package/dist/modules/instance-ai/sandbox/index.d.ts +1 -0
- package/dist/modules/instance-ai/sandbox/index.js +6 -0
- package/dist/modules/instance-ai/sandbox/index.js.map +1 -0
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.d.ts +77 -0
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +297 -0
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -0
- package/dist/modules/instance-ai/suspended-run-restorer.service.d.ts +62 -0
- package/dist/modules/instance-ai/suspended-run-restorer.service.js +116 -0
- package/dist/modules/instance-ai/suspended-run-restorer.service.js.map +1 -0
- package/dist/modules/instance-ai/suspended-thread-persistence.service.d.ts +51 -0
- package/dist/modules/instance-ai/suspended-thread-persistence.service.js +106 -0
- package/dist/modules/instance-ai/suspended-thread-persistence.service.js.map +1 -0
- package/dist/modules/instance-ai/web-research/fetch-and-extract.d.ts +1 -1
- package/dist/modules/mcp/mcp-api-key.service.d.ts +3 -7
- package/dist/modules/mcp/mcp-api-key.service.js +1 -22
- package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
- package/dist/modules/mcp/mcp-protected-resource.d.ts +13 -0
- package/dist/modules/mcp/mcp-protected-resource.js +39 -0
- package/dist/modules/mcp/mcp-protected-resource.js.map +1 -0
- package/dist/modules/mcp/mcp-server-middleware.service.d.ts +5 -4
- package/dist/modules/mcp/mcp-server-middleware.service.js +9 -6
- package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
- package/dist/modules/mcp/mcp.errors.d.ts +0 -13
- package/dist/modules/mcp/mcp.errors.js +1 -27
- package/dist/modules/mcp/mcp.errors.js.map +1 -1
- package/dist/modules/mcp/mcp.module.d.ts +0 -1
- package/dist/modules/mcp/mcp.module.js +3 -11
- package/dist/modules/mcp/mcp.module.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +5 -1
- package/dist/modules/mcp/mcp.service.js +16 -2
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +6 -14
- package/dist/modules/mcp/mcp.types.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.js +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/list-tags.tool.d.ts +26 -0
- package/dist/modules/mcp/tools/list-tags.tool.js +91 -0
- package/dist/modules/mcp/tools/list-tags.tool.js.map +1 -0
- package/dist/modules/mcp/tools/schemas.d.ts +7 -0
- package/dist/modules/mcp/tools/schemas.js +3 -1
- package/dist/modules/mcp/tools/schemas.js.map +1 -1
- package/dist/modules/mcp/tools/search-workflows.tool.d.ts +2 -1
- package/dist/modules/mcp/tools/search-workflows.tool.js +14 -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/create-workflow-from-code.tool.js +24 -6
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/explore-node-resources.tool.d.ts +18 -0
- package/dist/modules/mcp/tools/workflow-builder/explore-node-resources.tool.js +119 -0
- package/dist/modules/mcp/tools/workflow-builder/explore-node-resources.tool.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js +4 -4
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +8 -6
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +4 -294
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +137 -16
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +23 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +54 -2
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.d.ts +1 -0
- package/dist/modules/mcp/tools/workflow-validation.utils.js +1 -0
- package/dist/modules/mcp/tools/workflow-validation.utils.js.map +1 -1
- package/dist/modules/mcp-registry/node-description-transform.js +6 -0
- package/dist/modules/mcp-registry/node-description-transform.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-blocked.error.d.ts +4 -0
- package/dist/modules/n8n-packages/engine/import-blocked.error.js +14 -0
- package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -0
- package/dist/modules/n8n-packages/engine/import-pipeline.d.ts +9 -7
- package/dist/modules/n8n-packages/engine/import-pipeline.js +57 -113
- package/dist/modules/n8n-packages/engine/import-pipeline.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +11 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +114 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +4 -5
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js +9 -12
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +27 -2
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +3 -7
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +6 -13
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +3 -10
- package/dist/modules/n8n-packages/entities/credential/credential.types.js +0 -4
- package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js +11 -6
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.d.ts +4 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.js +12 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-id-policy.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-id-policy.js +12 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-id-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.d.ts +15 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.js +18 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +47 -0
- package/dist/modules/n8n-packages/entities/workflow/{workflow-conflict-policy.types.js → workflow-import.types.js} +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.d.ts +14 -6
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +136 -19
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.d.ts +16 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +87 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.js +28 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +14 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.js +10 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.d.ts +10 -3
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.js +103 -20
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.config.d.ts +6 -0
- package/dist/modules/n8n-packages/n8n-packages.config.js +43 -0
- package/dist/modules/n8n-packages/n8n-packages.config.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.controller.js +0 -1
- package/dist/modules/n8n-packages/n8n-packages.controller.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.module.js +0 -2
- package/dist/modules/n8n-packages/n8n-packages.module.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +41 -7
- package/dist/modules/n8n-packages/n8n-packages.types.js +7 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +3 -3
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +1 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
- package/dist/modules/n8n-packages/utils/import-package-upload.js +2 -2
- package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -1
- package/dist/modules/oauth-server/database/entities/oauth-access-token.entity.js.map +1 -0
- package/dist/modules/oauth-server/database/entities/oauth-authorization-code.entity.js.map +1 -0
- package/dist/modules/oauth-server/database/entities/oauth-client.entity.js.map +1 -0
- package/dist/modules/oauth-server/database/entities/oauth-refresh-token.entity.js.map +1 -0
- package/dist/modules/oauth-server/database/entities/oauth-user-consent.entity.js.map +1 -0
- package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js.map +1 -0
- package/dist/modules/oauth-server/database/repositories/oauth-authorization-code.repository.js.map +1 -0
- package/dist/modules/oauth-server/database/repositories/oauth-client.repository.js.map +1 -0
- package/dist/modules/oauth-server/database/repositories/oauth-refresh-token.repository.js.map +1 -0
- package/dist/modules/oauth-server/database/repositories/oauth-user-consent.repository.js.map +1 -0
- package/dist/modules/oauth-server/dto/approve-consent-request.dto.js.map +1 -0
- package/dist/modules/{mcp/mcp-oauth-authorization-code.service.d.ts → oauth-server/oauth-authorization-code.service.d.ts} +1 -1
- package/dist/modules/{mcp/mcp-oauth-authorization-code.service.js → oauth-server/oauth-authorization-code.service.js} +12 -12
- package/dist/modules/oauth-server/oauth-authorization-code.service.js.map +1 -0
- package/dist/modules/{mcp/mcp.oauth-clients.controller.d.ts → oauth-server/oauth-clients.controller.d.ts} +4 -4
- package/dist/modules/{mcp/mcp.oauth-clients.controller.js → oauth-server/oauth-clients.controller.js} +16 -16
- package/dist/modules/oauth-server/oauth-clients.controller.js.map +1 -0
- package/dist/modules/{mcp/mcp.auth.consent.controller.d.ts → oauth-server/oauth-consent.controller.d.ts} +3 -3
- package/dist/modules/{mcp/mcp.auth.consent.controller.js → oauth-server/oauth-consent.controller.js} +16 -10
- package/dist/modules/oauth-server/oauth-consent.controller.js.map +1 -0
- package/dist/modules/{mcp/mcp-oauth-consent.service.d.ts → oauth-server/oauth-consent.service.d.ts} +16 -7
- package/dist/modules/{mcp/mcp-oauth-consent.service.js → oauth-server/oauth-consent.service.js} +28 -12
- package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -0
- package/dist/modules/oauth-server/oauth-server.module.d.ts +5 -0
- package/dist/modules/oauth-server/oauth-server.module.js +75 -0
- package/dist/modules/oauth-server/oauth-server.module.js.map +1 -0
- package/dist/modules/{mcp/mcp-oauth-service.d.ts → oauth-server/oauth-server.service.d.ts} +6 -6
- package/dist/modules/{mcp/mcp-oauth-service.js → oauth-server/oauth-server.service.js} +33 -30
- package/dist/modules/oauth-server/oauth-server.service.js.map +1 -0
- package/dist/modules/oauth-server/oauth-session.service.js.map +1 -0
- package/dist/modules/{mcp/mcp-oauth-token.service.d.ts → oauth-server/oauth-token.service.d.ts} +5 -8
- package/dist/modules/{mcp/mcp-oauth-token.service.js → oauth-server/oauth-token.service.js} +29 -30
- package/dist/modules/oauth-server/oauth-token.service.js.map +1 -0
- package/dist/modules/{mcp/mcp.oauth.controller.d.ts → oauth-server/oauth.controller.d.ts} +5 -3
- package/dist/modules/{mcp/mcp.oauth.controller.js → oauth-server/oauth.controller.js} +79 -68
- package/dist/modules/oauth-server/oauth.controller.js.map +1 -0
- package/dist/modules/oauth-server/oauth.errors.d.ts +13 -0
- package/dist/modules/oauth-server/oauth.errors.js +30 -0
- package/dist/modules/oauth-server/oauth.errors.js.map +1 -0
- package/dist/modules/{mcp/mcp-oauth.helpers.d.ts → oauth-server/oauth.helpers.d.ts} +1 -1
- package/dist/modules/{mcp/mcp-oauth.helpers.js → oauth-server/oauth.helpers.js} +4 -4
- package/dist/modules/oauth-server/oauth.helpers.js.map +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.d.ts +4 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.js +41 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.js.map +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.d.ts +28 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js +78 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.d.ts +30 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js +95 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js.map +1 -0
- package/dist/modules/otel/execution-level-tracer.d.ts +5 -4
- package/dist/modules/otel/execution-level-tracer.js +8 -5
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/otel-lifecycle-handler.d.ts +8 -4
- package/dist/modules/otel/otel-lifecycle-handler.js +32 -15
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/otel/otel-settings.controller.d.ts +18 -0
- package/dist/modules/otel/otel-settings.controller.js +79 -0
- package/dist/modules/otel/otel-settings.controller.js.map +1 -0
- package/dist/modules/otel/otel-settings.service.d.ts +21 -0
- package/dist/modules/otel/otel-settings.service.js +89 -0
- package/dist/modules/otel/otel-settings.service.js.map +1 -0
- package/dist/modules/otel/otel.config.js +11 -10
- package/dist/modules/otel/otel.config.js.map +1 -1
- package/dist/modules/otel/otel.constants.d.ts +14 -0
- package/dist/modules/otel/otel.constants.js +15 -1
- package/dist/modules/otel/otel.constants.js.map +1 -1
- package/dist/modules/otel/otel.module.js +9 -17
- package/dist/modules/otel/otel.module.js.map +1 -1
- package/dist/modules/otel/otel.service.d.ts +15 -4
- package/dist/modules/otel/otel.service.js +73 -17
- package/dist/modules/otel/otel.service.js.map +1 -1
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.d.ts +1 -0
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.js +46 -19
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.js.map +1 -1
- package/dist/modules/redaction/instance-redaction-enforcement.service.js +0 -6
- package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-git.service.ee.js +2 -5
- package/dist/modules/source-control.ee/source-control-git.service.ee.js.map +1 -1
- package/dist/modules/sso-saml/saml.service.ee.js +3 -2
- package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.js +39 -20
- package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +14 -0
- package/dist/oauth/oauth.service.js +220 -102
- 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 +8 -8
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/types.d.ts +1 -6
- package/dist/public-api/v1/handlers/credentials/credentials.service.js +7 -8
- package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +3 -3
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +208 -51
- package/dist/push/abstract.push.d.ts +1 -2
- package/dist/push/abstract.push.js +1 -2
- package/dist/push/abstract.push.js.map +1 -1
- package/dist/push/index.d.ts +1 -2
- package/dist/push/index.js +3 -4
- package/dist/push/index.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/constants.js +1 -0
- package/dist/scaling/constants.js.map +1 -1
- package/dist/scaling/job-processor.d.ts +0 -1
- package/dist/scaling/job-processor.js +1 -23
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/multi-main-setup.ee.d.ts +1 -2
- package/dist/scaling/multi-main-setup.ee.js +1 -2
- package/dist/scaling/multi-main-setup.ee.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +7 -0
- package/dist/scaling/pubsub/pubsub.eventbus.d.ts +1 -1
- package/dist/scaling/pubsub/pubsub.eventbus.js +2 -2
- package/dist/scaling/pubsub/pubsub.eventbus.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
- package/dist/scaling/worker-server.d.ts +1 -1
- package/dist/scaling/worker-server.js +5 -5
- package/dist/scaling/worker-server.js.map +1 -1
- package/dist/server.js +4 -3
- package/dist/server.js.map +1 -1
- package/dist/services/ai-workflow-builder.service.d.ts +2 -1
- package/dist/services/ai-workflow-builder.service.js +2 -1
- package/dist/services/ai-workflow-builder.service.js.map +1 -1
- package/dist/services/cache/cache.service.d.ts +1 -1
- package/dist/services/cache/cache.service.js +2 -2
- package/dist/services/cache/cache.service.js.map +1 -1
- package/dist/services/node-resource-explorer.service.d.ts +16 -0
- package/dist/services/node-resource-explorer.service.js +154 -0
- package/dist/services/node-resource-explorer.service.js.map +1 -0
- package/dist/services/oauth-token-verifier-proxy.service.d.ts +22 -0
- package/dist/services/oauth-token-verifier-proxy.service.js +36 -0
- package/dist/services/oauth-token-verifier-proxy.service.js.map +1 -0
- package/dist/services/protected-resource.registry.d.ts +31 -0
- package/dist/services/protected-resource.registry.js +115 -0
- package/dist/services/protected-resource.registry.js.map +1 -0
- package/dist/services/public-api-key.service.d.ts +8 -2
- package/dist/services/public-api-key.service.js +29 -6
- package/dist/services/public-api-key.service.js.map +1 -1
- package/dist/services/redis-client.service.d.ts +2 -2
- package/dist/services/redis-client.service.js +6 -4
- package/dist/services/redis-client.service.js.map +1 -1
- package/dist/services/tag.service.d.ts +10 -0
- package/dist/services/tag.service.js +84 -4
- package/dist/services/tag.service.js.map +1 -1
- package/dist/services/workflow-statistics.service.d.ts +1 -2
- package/dist/services/workflow-statistics.service.js +1 -2
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/task-runners/sliding-window-signal.d.ts +1 -1
- package/dist/task-runners/task-runner-lifecycle-events.d.ts +1 -1
- package/dist/task-runners/task-runner-lifecycle-events.js +2 -2
- package/dist/task-runners/task-runner-lifecycle-events.js.map +1 -1
- package/dist/task-runners/task-runner-process-base.d.ts +1 -2
- package/dist/task-runners/task-runner-process-base.js +1 -2
- package/dist/task-runners/task-runner-process-base.js.map +1 -1
- package/dist/task-runners/task-runner-process-restart-loop-detector.d.ts +1 -1
- package/dist/task-runners/task-runner-process-restart-loop-detector.js +2 -2
- package/dist/task-runners/task-runner-process-restart-loop-detector.js.map +1 -1
- package/dist/user-management/email/templates/api-key-revoked.handlebars +196 -0
- package/dist/user-management/email/user-management-mailer.d.ts +6 -2
- package/dist/user-management/email/user-management-mailer.js +32 -0
- package/dist/user-management/email/user-management-mailer.js.map +1 -1
- package/dist/wait-tracker.d.ts +1 -1
- package/dist/wait-tracker.js +3 -3
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +30 -1
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-server.js +2 -2
- package/dist/webhooks/webhook-server.js.map +1 -1
- package/dist/webhooks/webhook.service.d.ts +4 -1
- package/dist/webhooks/webhook.service.js +19 -4
- package/dist/webhooks/webhook.service.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +1 -1
- package/dist/workflow-execute-additional-data.js +4 -1
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +1 -1
- package/dist/workflow-helpers.js +13 -3
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.js +0 -2
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/publication/publication-result.d.ts +17 -0
- package/dist/workflows/publication/publication-result.js +3 -0
- package/dist/workflows/publication/publication-result.js.map +1 -0
- package/dist/workflows/publication/publication-status-reporter.d.ts +19 -0
- package/dist/workflows/publication/publication-status-reporter.js +110 -0
- package/dist/workflows/publication/publication-status-reporter.js.map +1 -0
- package/dist/workflows/publication/trigger-diff.d.ts +6 -0
- package/dist/workflows/publication/trigger-diff.js +27 -0
- package/dist/workflows/publication/trigger-diff.js.map +1 -0
- package/dist/workflows/publication/workflow-publication-applier.d.ts +14 -0
- package/dist/workflows/publication/workflow-publication-applier.js +96 -0
- package/dist/workflows/publication/workflow-publication-applier.js.map +1 -0
- package/dist/workflows/{workflow-publication-outbox-consumer.d.ts → publication/workflow-publication-outbox-consumer.d.ts} +9 -13
- package/dist/workflows/{workflow-publication-outbox-consumer.js → publication/workflow-publication-outbox-consumer.js} +25 -93
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js.map +1 -0
- package/dist/workflows/triggers/non-webhook-trigger-registrar.d.ts +39 -0
- package/dist/workflows/triggers/non-webhook-trigger-registrar.js +58 -0
- package/dist/workflows/triggers/non-webhook-trigger-registrar.js.map +1 -0
- package/dist/workflows/triggers/trigger-count.service.d.ts +5 -0
- package/dist/workflows/triggers/trigger-count.service.js +65 -0
- package/dist/workflows/triggers/trigger-count.service.js.map +1 -0
- package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +33 -0
- package/dist/workflows/triggers/trigger-execution-context.factory.js +171 -0
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -0
- package/dist/workflows/triggers/webhook-trigger-registrar.d.ts +29 -0
- package/dist/workflows/triggers/webhook-trigger-registrar.js +143 -0
- package/dist/workflows/triggers/webhook-trigger-registrar.js.map +1 -0
- package/dist/workflows/triggers/workflow-trigger-activator.d.ts +56 -0
- package/dist/workflows/triggers/workflow-trigger-activator.js +313 -0
- package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -0
- package/dist/workflows/workflow-validation.service.d.ts +3 -0
- package/dist/workflows/workflow-validation.service.js +63 -37
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +5 -3
- package/dist/workflows/workflow.service.js +91 -28
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +3 -3
- package/dist/workflows/workflows.controller.js +3 -3
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +34 -33
- package/templates/oauth-callback.handlebars +3 -0
- package/templates/oauth-error-callback.handlebars +3 -0
- package/dist/metrics/prometheus-metrics.service.d.ts +0 -54
- package/dist/metrics/prometheus-metrics.service.js +0 -607
- package/dist/metrics/prometheus-metrics.service.js.map +0 -1
- package/dist/metrics/types.d.ts +0 -6
- package/dist/metrics/types.js.map +0 -1
- package/dist/modules/agents/agent-knowledge-command.service.d.ts +0 -40
- package/dist/modules/agents/agent-knowledge-command.service.js +0 -221
- package/dist/modules/agents/agent-knowledge-command.service.js.map +0 -1
- package/dist/modules/agents/entities/agent-file.entity.d.ts +0 -11
- package/dist/modules/agents/entities/agent-file.entity.js.map +0 -1
- package/dist/modules/agents/repositories/agent-file.repository.d.ts +0 -7
- package/dist/modules/agents/repositories/agent-file.repository.js +0 -35
- package/dist/modules/agents/repositories/agent-file.repository.js.map +0 -1
- package/dist/modules/agents/tools/knowledge/csv-helpers.d.ts +0 -73
- package/dist/modules/agents/tools/knowledge/csv-helpers.js +0 -341
- package/dist/modules/agents/tools/knowledge/csv-helpers.js.map +0 -1
- package/dist/modules/agents/tools/knowledge/csv.operation.d.ts +0 -61
- package/dist/modules/agents/tools/knowledge/csv.operation.js +0 -207
- package/dist/modules/agents/tools/knowledge/csv.operation.js.map +0 -1
- package/dist/modules/agents/tools/knowledge/file-references.d.ts +0 -16
- package/dist/modules/agents/tools/knowledge/file-references.js +0 -35
- package/dist/modules/agents/tools/knowledge/file-references.js.map +0 -1
- package/dist/modules/agents/tools/knowledge/read.operation.d.ts +0 -8
- package/dist/modules/agents/tools/knowledge/read.operation.js +0 -38
- package/dist/modules/agents/tools/knowledge/read.operation.js.map +0 -1
- package/dist/modules/agents/tools/knowledge/schemas.d.ts +0 -1505
- package/dist/modules/agents/tools/knowledge/schemas.js +0 -441
- package/dist/modules/agents/tools/knowledge/schemas.js.map +0 -1
- package/dist/modules/agents/tools/knowledge/search.operation.d.ts +0 -9
- package/dist/modules/agents/tools/knowledge/search.operation.js +0 -332
- package/dist/modules/agents/tools/knowledge/search.operation.js.map +0 -1
- package/dist/modules/agents/tools/knowledge/tool.d.ts +0 -8
- package/dist/modules/agents/tools/knowledge/tool.js +0 -121
- package/dist/modules/agents/tools/knowledge/tool.js.map +0 -1
- package/dist/modules/mcp/database/entities/oauth-access-token.entity.js.map +0 -1
- package/dist/modules/mcp/database/entities/oauth-authorization-code.entity.js.map +0 -1
- package/dist/modules/mcp/database/entities/oauth-client.entity.js.map +0 -1
- package/dist/modules/mcp/database/entities/oauth-refresh-token.entity.js.map +0 -1
- package/dist/modules/mcp/database/entities/oauth-user-consent.entity.js.map +0 -1
- package/dist/modules/mcp/database/repositories/oauth-access-token.repository.js.map +0 -1
- package/dist/modules/mcp/database/repositories/oauth-authorization-code.repository.js.map +0 -1
- package/dist/modules/mcp/database/repositories/oauth-client.repository.js.map +0 -1
- package/dist/modules/mcp/database/repositories/oauth-refresh-token.repository.js.map +0 -1
- package/dist/modules/mcp/database/repositories/oauth-user-consent.repository.js.map +0 -1
- package/dist/modules/mcp/dto/approve-consent-request.dto.js.map +0 -1
- package/dist/modules/mcp/mcp-oauth-authorization-code.service.js.map +0 -1
- package/dist/modules/mcp/mcp-oauth-consent.service.js.map +0 -1
- package/dist/modules/mcp/mcp-oauth-service.js.map +0 -1
- package/dist/modules/mcp/mcp-oauth-token.service.js.map +0 -1
- package/dist/modules/mcp/mcp-oauth.helpers.js.map +0 -1
- package/dist/modules/mcp/mcp.auth.consent.controller.js.map +0 -1
- package/dist/modules/mcp/mcp.oauth-clients.controller.js.map +0 -1
- package/dist/modules/mcp/mcp.oauth.controller.js.map +0 -1
- package/dist/modules/mcp/oauth-session.service.js.map +0 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode-factory.d.ts +0 -7
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode-factory.js +0 -35
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode-factory.js.map +0 -1
- package/dist/modules/n8n-packages/entities/credential/credential-resolution-error.d.ts +0 -3
- package/dist/modules/n8n-packages/entities/credential/credential-resolution-error.js +0 -14
- package/dist/modules/n8n-packages/entities/credential/credential-resolution-error.js.map +0 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-fail.handler.d.ts +0 -9
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-fail.handler.js +0 -41
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-fail.handler.js.map +0 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-handler.d.ts +0 -10
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-handler.js +0 -20
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-handler.js.map +0 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-new-version.handler.d.ts +0 -11
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-new-version.handler.js +0 -42
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-new-version.handler.js.map +0 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-skip.handler.d.ts +0 -9
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-skip.handler.js +0 -33
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-skip.handler.js.map +0 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.factory.d.ts +0 -10
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.factory.js +0 -37
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.factory.js.map +0 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.types.d.ts +0 -20
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.types.js.map +0 -1
- package/dist/modules/redaction/redaction-enforcement.feature-flag.d.ts +0 -2
- package/dist/modules/redaction/redaction-enforcement.feature-flag.js +0 -9
- package/dist/modules/redaction/redaction-enforcement.feature-flag.js.map +0 -1
- package/dist/typed-emitter.d.ts +0 -14
- package/dist/typed-emitter.js +0 -29
- package/dist/typed-emitter.js.map +0 -1
- package/dist/workflows/workflow-publication-outbox-consumer.js.map +0 -1
- /package/dist/modules/{mcp → oauth-server}/database/entities/oauth-access-token.entity.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/entities/oauth-access-token.entity.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/entities/oauth-authorization-code.entity.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/entities/oauth-authorization-code.entity.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/entities/oauth-client.entity.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/entities/oauth-client.entity.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/entities/oauth-refresh-token.entity.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/entities/oauth-refresh-token.entity.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/entities/oauth-user-consent.entity.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/entities/oauth-user-consent.entity.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/repositories/oauth-access-token.repository.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/repositories/oauth-access-token.repository.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/repositories/oauth-authorization-code.repository.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/repositories/oauth-authorization-code.repository.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/repositories/oauth-client.repository.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/repositories/oauth-client.repository.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/repositories/oauth-refresh-token.repository.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/repositories/oauth-refresh-token.repository.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/repositories/oauth-user-consent.repository.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/database/repositories/oauth-user-consent.repository.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/dto/approve-consent-request.dto.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/dto/approve-consent-request.dto.js +0 -0
- /package/dist/modules/{mcp → oauth-server}/oauth-session.service.d.ts +0 -0
- /package/dist/modules/{mcp → oauth-server}/oauth-session.service.js +0 -0
|
@@ -1,1505 +0,0 @@
|
|
|
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
|
-
file: string;
|
|
90
|
-
operation: "csv_query";
|
|
91
|
-
limit: number;
|
|
92
|
-
select?: string[] | undefined;
|
|
93
|
-
rowNumber?: number | undefined;
|
|
94
|
-
where?: ({
|
|
95
|
-
value: string;
|
|
96
|
-
column: string;
|
|
97
|
-
op: "eq";
|
|
98
|
-
} | {
|
|
99
|
-
value: string[];
|
|
100
|
-
column: string;
|
|
101
|
-
op: "in";
|
|
102
|
-
} | {
|
|
103
|
-
value: string;
|
|
104
|
-
column: string;
|
|
105
|
-
op: "contains";
|
|
106
|
-
})[] | undefined;
|
|
107
|
-
}, {
|
|
108
|
-
file: string;
|
|
109
|
-
operation: "csv_query";
|
|
110
|
-
limit?: number | undefined;
|
|
111
|
-
select?: string[] | undefined;
|
|
112
|
-
rowNumber?: number | undefined;
|
|
113
|
-
where?: ({
|
|
114
|
-
value: string;
|
|
115
|
-
column: string;
|
|
116
|
-
op: "eq";
|
|
117
|
-
} | {
|
|
118
|
-
value: string[];
|
|
119
|
-
column: string;
|
|
120
|
-
op: "in";
|
|
121
|
-
} | {
|
|
122
|
-
value: string;
|
|
123
|
-
column: string;
|
|
124
|
-
op: "contains";
|
|
125
|
-
})[] | 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
|
-
file: string;
|
|
187
|
-
operation: "csv_distinct";
|
|
188
|
-
limit: number;
|
|
189
|
-
column: string;
|
|
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
|
-
operation: "csv_distinct";
|
|
206
|
-
column: string;
|
|
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
|
-
file: string;
|
|
279
|
-
operation: "csv_aggregate";
|
|
280
|
-
limit: number;
|
|
281
|
-
functions: ("min" | "max" | "count" | "sum" | "avg")[];
|
|
282
|
-
metrics?: string[] | undefined;
|
|
283
|
-
groupBy?: string[] | undefined;
|
|
284
|
-
where?: ({
|
|
285
|
-
value: string;
|
|
286
|
-
column: string;
|
|
287
|
-
op: "eq";
|
|
288
|
-
} | {
|
|
289
|
-
value: string[];
|
|
290
|
-
column: string;
|
|
291
|
-
op: "in";
|
|
292
|
-
} | {
|
|
293
|
-
value: string;
|
|
294
|
-
column: string;
|
|
295
|
-
op: "contains";
|
|
296
|
-
})[] | undefined;
|
|
297
|
-
metric?: 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
|
-
functions?: ("min" | "max" | "count" | "sum" | "avg")[] | undefined;
|
|
307
|
-
metrics?: string[] | undefined;
|
|
308
|
-
groupBy?: string[] | undefined;
|
|
309
|
-
where?: ({
|
|
310
|
-
value: string;
|
|
311
|
-
column: string;
|
|
312
|
-
op: "eq";
|
|
313
|
-
} | {
|
|
314
|
-
value: string[];
|
|
315
|
-
column: string;
|
|
316
|
-
op: "in";
|
|
317
|
-
} | {
|
|
318
|
-
value: string;
|
|
319
|
-
column: string;
|
|
320
|
-
op: "contains";
|
|
321
|
-
})[] | undefined;
|
|
322
|
-
metric?: 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: "content" | "count" | "files_with_matches";
|
|
352
|
-
head_limit: number;
|
|
353
|
-
query?: string | undefined;
|
|
354
|
-
file?: string | undefined;
|
|
355
|
-
files?: string[] | undefined;
|
|
356
|
-
queries?: string[] | undefined;
|
|
357
|
-
caseInsensitive?: boolean | undefined;
|
|
358
|
-
fixedStrings?: boolean | undefined;
|
|
359
|
-
context?: number | undefined;
|
|
360
|
-
}, {
|
|
361
|
-
operation: "search";
|
|
362
|
-
query?: string | undefined;
|
|
363
|
-
file?: string | undefined;
|
|
364
|
-
files?: string[] | undefined;
|
|
365
|
-
queries?: string[] | undefined;
|
|
366
|
-
offset?: number | undefined;
|
|
367
|
-
caseInsensitive?: boolean | undefined;
|
|
368
|
-
fixedStrings?: boolean | undefined;
|
|
369
|
-
context?: number | undefined;
|
|
370
|
-
match_mode?: "any" | "all_on_same_line" | "all_within_lines" | undefined;
|
|
371
|
-
output_mode?: "content" | "count" | "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
|
-
file: string;
|
|
445
|
-
operation: "csv_query";
|
|
446
|
-
limit: number;
|
|
447
|
-
select?: string[] | undefined;
|
|
448
|
-
rowNumber?: number | undefined;
|
|
449
|
-
where?: ({
|
|
450
|
-
value: string;
|
|
451
|
-
column: string;
|
|
452
|
-
op: "eq";
|
|
453
|
-
} | {
|
|
454
|
-
value: string[];
|
|
455
|
-
column: string;
|
|
456
|
-
op: "in";
|
|
457
|
-
} | {
|
|
458
|
-
value: string;
|
|
459
|
-
column: string;
|
|
460
|
-
op: "contains";
|
|
461
|
-
})[] | undefined;
|
|
462
|
-
}, {
|
|
463
|
-
file: string;
|
|
464
|
-
operation: "csv_query";
|
|
465
|
-
limit?: number | undefined;
|
|
466
|
-
select?: string[] | undefined;
|
|
467
|
-
rowNumber?: number | undefined;
|
|
468
|
-
where?: ({
|
|
469
|
-
value: string;
|
|
470
|
-
column: string;
|
|
471
|
-
op: "eq";
|
|
472
|
-
} | {
|
|
473
|
-
value: string[];
|
|
474
|
-
column: string;
|
|
475
|
-
op: "in";
|
|
476
|
-
} | {
|
|
477
|
-
value: string;
|
|
478
|
-
column: string;
|
|
479
|
-
op: "contains";
|
|
480
|
-
})[] | 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
|
-
file: string;
|
|
540
|
-
operation: "csv_distinct";
|
|
541
|
-
limit: number;
|
|
542
|
-
column: string;
|
|
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
|
-
operation: "csv_distinct";
|
|
559
|
-
column: string;
|
|
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
|
-
file: string;
|
|
631
|
-
operation: "csv_aggregate";
|
|
632
|
-
limit: number;
|
|
633
|
-
functions: ("min" | "max" | "count" | "sum" | "avg")[];
|
|
634
|
-
metrics?: string[] | undefined;
|
|
635
|
-
groupBy?: string[] | undefined;
|
|
636
|
-
where?: ({
|
|
637
|
-
value: string;
|
|
638
|
-
column: string;
|
|
639
|
-
op: "eq";
|
|
640
|
-
} | {
|
|
641
|
-
value: string[];
|
|
642
|
-
column: string;
|
|
643
|
-
op: "in";
|
|
644
|
-
} | {
|
|
645
|
-
value: string;
|
|
646
|
-
column: string;
|
|
647
|
-
op: "contains";
|
|
648
|
-
})[] | undefined;
|
|
649
|
-
metric?: 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
|
-
functions?: ("min" | "max" | "count" | "sum" | "avg")[] | undefined;
|
|
659
|
-
metrics?: string[] | undefined;
|
|
660
|
-
groupBy?: string[] | undefined;
|
|
661
|
-
where?: ({
|
|
662
|
-
value: string;
|
|
663
|
-
column: string;
|
|
664
|
-
op: "eq";
|
|
665
|
-
} | {
|
|
666
|
-
value: string[];
|
|
667
|
-
column: string;
|
|
668
|
-
op: "in";
|
|
669
|
-
} | {
|
|
670
|
-
value: string;
|
|
671
|
-
column: string;
|
|
672
|
-
op: "contains";
|
|
673
|
-
})[] | undefined;
|
|
674
|
-
metric?: 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
|
-
relativePath: string;
|
|
702
|
-
fileId: string;
|
|
703
|
-
lineNumber: number;
|
|
704
|
-
readRange: {
|
|
705
|
-
end: number;
|
|
706
|
-
start: number;
|
|
707
|
-
};
|
|
708
|
-
truncated?: boolean | undefined;
|
|
709
|
-
}, {
|
|
710
|
-
fileName: string;
|
|
711
|
-
text: string;
|
|
712
|
-
relativePath: string;
|
|
713
|
-
fileId: string;
|
|
714
|
-
lineNumber: number;
|
|
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
|
-
relativePath: string;
|
|
765
|
-
fileId: string;
|
|
766
|
-
lineNumber: number;
|
|
767
|
-
readRange: {
|
|
768
|
-
end: number;
|
|
769
|
-
start: number;
|
|
770
|
-
};
|
|
771
|
-
truncated?: boolean | undefined;
|
|
772
|
-
}, {
|
|
773
|
-
fileName: string;
|
|
774
|
-
text: string;
|
|
775
|
-
relativePath: string;
|
|
776
|
-
fileId: string;
|
|
777
|
-
lineNumber: number;
|
|
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: "content" | "count" | "files_with_matches";
|
|
798
|
-
truncated: boolean;
|
|
799
|
-
totalMatchingFiles: number;
|
|
800
|
-
totalMatchingLines: number;
|
|
801
|
-
matches: {
|
|
802
|
-
fileName: string;
|
|
803
|
-
text: string;
|
|
804
|
-
relativePath: string;
|
|
805
|
-
fileId: string;
|
|
806
|
-
lineNumber: number;
|
|
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: "content" | "count" | "files_with_matches";
|
|
828
|
-
truncated: boolean;
|
|
829
|
-
totalMatchingFiles: number;
|
|
830
|
-
totalMatchingLines: number;
|
|
831
|
-
matches: {
|
|
832
|
-
fileName: string;
|
|
833
|
-
text: string;
|
|
834
|
-
relativePath: string;
|
|
835
|
-
fileId: string;
|
|
836
|
-
lineNumber: number;
|
|
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
|
-
exitCode: number | null;
|
|
908
|
-
stdout: string;
|
|
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
|
-
exitCode: number | null;
|
|
922
|
-
stdout: string;
|
|
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
|
-
relativePath: string;
|
|
978
|
-
fileId: string;
|
|
979
|
-
lineNumber: number;
|
|
980
|
-
readRange: {
|
|
981
|
-
end: number;
|
|
982
|
-
start: number;
|
|
983
|
-
};
|
|
984
|
-
truncated?: boolean | undefined;
|
|
985
|
-
}, {
|
|
986
|
-
fileName: string;
|
|
987
|
-
text: string;
|
|
988
|
-
relativePath: string;
|
|
989
|
-
fileId: string;
|
|
990
|
-
lineNumber: number;
|
|
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: "content" | "count" | "files_with_matches";
|
|
1011
|
-
truncated: boolean;
|
|
1012
|
-
totalMatchingFiles: number;
|
|
1013
|
-
totalMatchingLines: number;
|
|
1014
|
-
matches: {
|
|
1015
|
-
fileName: string;
|
|
1016
|
-
text: string;
|
|
1017
|
-
relativePath: string;
|
|
1018
|
-
fileId: string;
|
|
1019
|
-
lineNumber: number;
|
|
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: "content" | "count" | "files_with_matches";
|
|
1041
|
-
truncated: boolean;
|
|
1042
|
-
totalMatchingFiles: number;
|
|
1043
|
-
totalMatchingLines: number;
|
|
1044
|
-
matches: {
|
|
1045
|
-
fileName: string;
|
|
1046
|
-
text: string;
|
|
1047
|
-
relativePath: string;
|
|
1048
|
-
fileId: string;
|
|
1049
|
-
lineNumber: number;
|
|
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
|
-
columns: string[];
|
|
1104
|
-
rows: string[][];
|
|
1105
|
-
truncated: boolean;
|
|
1106
|
-
relativePath: string;
|
|
1107
|
-
rowNumbers: number[];
|
|
1108
|
-
rowCount: 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
|
-
columns: string[];
|
|
1124
|
-
rows: string[][];
|
|
1125
|
-
truncated: boolean;
|
|
1126
|
-
relativePath: string;
|
|
1127
|
-
rowNumbers: number[];
|
|
1128
|
-
rowCount: 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" | "date" | "empty" | "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" | "date" | "empty" | "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
|
-
relativePath: string;
|
|
1176
|
-
rowCount: number;
|
|
1177
|
-
sampleRows: Record<string, string>[];
|
|
1178
|
-
columnProfiles: {
|
|
1179
|
-
name: string;
|
|
1180
|
-
inferredType: "string" | "number" | "boolean" | "date" | "empty" | "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
|
-
relativePath: string;
|
|
1192
|
-
rowCount: number;
|
|
1193
|
-
sampleRows: Record<string, string>[];
|
|
1194
|
-
columnProfiles: {
|
|
1195
|
-
name: string;
|
|
1196
|
-
inferredType: "string" | "number" | "boolean" | "date" | "empty" | "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
|
-
fileName: string;
|
|
1214
|
-
values: string[];
|
|
1215
|
-
truncated: boolean;
|
|
1216
|
-
relativePath: string;
|
|
1217
|
-
distinctCount: number;
|
|
1218
|
-
column: string;
|
|
1219
|
-
}, {
|
|
1220
|
-
fileName: string;
|
|
1221
|
-
values: string[];
|
|
1222
|
-
truncated: boolean;
|
|
1223
|
-
relativePath: string;
|
|
1224
|
-
distinctCount: number;
|
|
1225
|
-
column: string;
|
|
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
|
-
results: Record<string, string | number | null>[];
|
|
1240
|
-
functions: ("min" | "max" | "count" | "sum" | "avg")[];
|
|
1241
|
-
truncated: boolean;
|
|
1242
|
-
relativePath: string;
|
|
1243
|
-
rowCount: number;
|
|
1244
|
-
metrics: string[];
|
|
1245
|
-
groupBy?: string[] | undefined;
|
|
1246
|
-
skippedNonNumeric?: Record<string, number> | undefined;
|
|
1247
|
-
}, {
|
|
1248
|
-
fileName: string;
|
|
1249
|
-
results: Record<string, string | number | null>[];
|
|
1250
|
-
functions: ("min" | "max" | "count" | "sum" | "avg")[];
|
|
1251
|
-
truncated: boolean;
|
|
1252
|
-
relativePath: string;
|
|
1253
|
-
rowCount: number;
|
|
1254
|
-
metrics: 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: "content" | "count" | "files_with_matches";
|
|
1277
|
-
truncated: boolean;
|
|
1278
|
-
totalMatchingFiles: number;
|
|
1279
|
-
totalMatchingLines: number;
|
|
1280
|
-
matches: {
|
|
1281
|
-
fileName: string;
|
|
1282
|
-
text: string;
|
|
1283
|
-
relativePath: string;
|
|
1284
|
-
fileId: string;
|
|
1285
|
-
lineNumber: number;
|
|
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
|
-
exitCode: number | null;
|
|
1303
|
-
stdout: string;
|
|
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
|
-
columns: string[];
|
|
1318
|
-
rows: string[][];
|
|
1319
|
-
truncated: boolean;
|
|
1320
|
-
relativePath: string;
|
|
1321
|
-
rowNumbers: number[];
|
|
1322
|
-
rowCount: 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
|
-
relativePath: string;
|
|
1340
|
-
rowCount: number;
|
|
1341
|
-
sampleRows: Record<string, string>[];
|
|
1342
|
-
columnProfiles: {
|
|
1343
|
-
name: string;
|
|
1344
|
-
inferredType: "string" | "number" | "boolean" | "date" | "empty" | "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
|
-
fileName: string;
|
|
1355
|
-
values: string[];
|
|
1356
|
-
truncated: boolean;
|
|
1357
|
-
relativePath: string;
|
|
1358
|
-
distinctCount: number;
|
|
1359
|
-
column: string;
|
|
1360
|
-
} | undefined;
|
|
1361
|
-
csvAggregate?: {
|
|
1362
|
-
fileName: string;
|
|
1363
|
-
results: Record<string, string | number | null>[];
|
|
1364
|
-
functions: ("min" | "max" | "count" | "sum" | "avg")[];
|
|
1365
|
-
truncated: boolean;
|
|
1366
|
-
relativePath: string;
|
|
1367
|
-
rowCount: number;
|
|
1368
|
-
metrics: 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: "content" | "count" | "files_with_matches";
|
|
1390
|
-
truncated: boolean;
|
|
1391
|
-
totalMatchingFiles: number;
|
|
1392
|
-
totalMatchingLines: number;
|
|
1393
|
-
matches: {
|
|
1394
|
-
fileName: string;
|
|
1395
|
-
text: string;
|
|
1396
|
-
relativePath: string;
|
|
1397
|
-
fileId: string;
|
|
1398
|
-
lineNumber: number;
|
|
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
|
-
exitCode: number | null;
|
|
1416
|
-
stdout: string;
|
|
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
|
-
columns: string[];
|
|
1431
|
-
rows: string[][];
|
|
1432
|
-
truncated: boolean;
|
|
1433
|
-
relativePath: string;
|
|
1434
|
-
rowNumbers: number[];
|
|
1435
|
-
rowCount: 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
|
-
relativePath: string;
|
|
1453
|
-
rowCount: number;
|
|
1454
|
-
sampleRows: Record<string, string>[];
|
|
1455
|
-
columnProfiles: {
|
|
1456
|
-
name: string;
|
|
1457
|
-
inferredType: "string" | "number" | "boolean" | "date" | "empty" | "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
|
-
fileName: string;
|
|
1468
|
-
values: string[];
|
|
1469
|
-
truncated: boolean;
|
|
1470
|
-
relativePath: string;
|
|
1471
|
-
distinctCount: number;
|
|
1472
|
-
column: string;
|
|
1473
|
-
} | undefined;
|
|
1474
|
-
csvAggregate?: {
|
|
1475
|
-
fileName: string;
|
|
1476
|
-
results: Record<string, string | number | null>[];
|
|
1477
|
-
functions: ("min" | "max" | "count" | "sum" | "avg")[];
|
|
1478
|
-
truncated: boolean;
|
|
1479
|
-
relativePath: string;
|
|
1480
|
-
rowCount: number;
|
|
1481
|
-
metrics: 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 {};
|