n8n 2.23.2 → 2.24.0

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