@octocodeai/octocode-tools-core 16.6.2 → 17.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/README.md +29 -55
  2. package/dist/direct.js +34 -36
  3. package/dist/github/botFilter.d.ts +1 -0
  4. package/dist/github/client.d.ts +6 -0
  5. package/dist/github/directoryFetch/fetchDirectoryContents.d.ts +3 -0
  6. package/dist/github/directoryFetch/fetchFileContentToDisk.d.ts +3 -0
  7. package/dist/github/directoryFetch/helpers.d.ts +35 -0
  8. package/dist/github/directoryFetch.d.ts +3 -6
  9. package/dist/github/fileContentPagination.d.ts +9 -0
  10. package/dist/github/fileContentProcess.d.ts +1 -8
  11. package/dist/github/fileContentRaw/fetch.d.ts +20 -0
  12. package/dist/github/fileContentRaw/pathSuggestions.d.ts +3 -0
  13. package/dist/github/fileContentRaw.d.ts +2 -12
  14. package/dist/github/githubAPI.d.ts +4 -1
  15. package/dist/github/history.d.ts +6 -2
  16. package/dist/github/issues/fetchers.d.ts +7 -0
  17. package/dist/github/issues/helpers.d.ts +32 -0
  18. package/dist/github/issues/orchestrator.d.ts +4 -0
  19. package/dist/github/issues/types.d.ts +72 -0
  20. package/dist/github/issues.d.ts +3 -0
  21. package/dist/github/prContentFetcher/comments.d.ts +11 -0
  22. package/dist/github/prContentFetcher/commits.d.ts +27 -0
  23. package/dist/github/prContentFetcher/flags.d.ts +21 -0
  24. package/dist/github/prContentFetcher/transform.d.ts +5 -0
  25. package/dist/github/prContentFetcher.d.ts +2 -5
  26. package/dist/github/pullRequestSearch/restSearch.d.ts +6 -0
  27. package/dist/github/pullRequestSearch.d.ts +1 -0
  28. package/dist/github/queryBuilders/base.d.ts +25 -0
  29. package/dist/github/queryBuilders/codeAndRepo.d.ts +20 -0
  30. package/dist/github/queryBuilders/issues.d.ts +42 -0
  31. package/dist/github/queryBuilders/pullRequests.d.ts +13 -0
  32. package/dist/github/queryBuilders.d.ts +4 -12
  33. package/dist/github/releases.d.ts +37 -0
  34. package/dist/github/repoStructure/contentResolution.d.ts +12 -0
  35. package/dist/github/repoStructure/fetchOrchestration.d.ts +7 -0
  36. package/dist/github/repoStructure/resultBuilder.d.ts +22 -0
  37. package/dist/github/repoStructure.d.ts +1 -7
  38. package/dist/github/repoStructureTree.d.ts +38 -0
  39. package/dist/github/responseHeaders.d.ts +2 -0
  40. package/dist/github/searchKeyword.d.ts +2 -0
  41. package/dist/index.d.ts +6 -7
  42. package/dist/index.js +36 -45
  43. package/dist/oql/adapters/github/execute.d.ts +16 -0
  44. package/dist/oql/adapters/github/provider-diagnostics.d.ts +14 -0
  45. package/dist/oql/adapters/github/shared.d.ts +75 -0
  46. package/dist/oql/adapters/github.d.ts +11 -0
  47. package/dist/oql/adapters/graphProof.d.ts +6 -0
  48. package/dist/oql/adapters/graphView/filters.d.ts +25 -0
  49. package/dist/oql/adapters/graphView/nativeEdges.d.ts +5 -0
  50. package/dist/oql/adapters/graphView.d.ts +29 -0
  51. package/dist/oql/adapters/local/code.d.ts +3 -0
  52. package/dist/oql/adapters/local/codeBoolean.d.ts +3 -0
  53. package/dist/oql/adapters/local/fileRowOps.d.ts +11 -0
  54. package/dist/oql/adapters/local/files.d.ts +3 -0
  55. package/dist/oql/adapters/local/filesBoolean.d.ts +10 -0
  56. package/dist/oql/adapters/local/filesContentLeaf.d.ts +12 -0
  57. package/dist/oql/adapters/local/filesUniverse.d.ts +6 -0
  58. package/dist/oql/adapters/local/findToolType.d.ts +10 -0
  59. package/dist/oql/adapters/local/predicates.d.ts +18 -0
  60. package/dist/oql/adapters/local/scope.d.ts +14 -0
  61. package/dist/oql/adapters/local/searchToolType.d.ts +7 -0
  62. package/dist/oql/adapters/local/structureContent.d.ts +6 -0
  63. package/dist/oql/adapters/local/types.d.ts +34 -0
  64. package/dist/oql/adapters/local.d.ts +3 -7
  65. package/dist/oql/adapters/researchTargets/diff.d.ts +16 -0
  66. package/dist/oql/adapters/researchTargets/graph.d.ts +3 -0
  67. package/dist/oql/adapters/researchTargets/history.d.ts +20 -0
  68. package/dist/oql/adapters/researchTargets/pagination.d.ts +54 -0
  69. package/dist/oql/adapters/researchTargets/repositories.d.ts +4 -0
  70. package/dist/oql/adapters/researchTargets/research.d.ts +3 -0
  71. package/dist/oql/adapters/researchTargets/rows.d.ts +16 -0
  72. package/dist/oql/adapters/researchTargets/semantics.d.ts +3 -0
  73. package/dist/oql/adapters/researchTargets/shared.d.ts +11 -0
  74. package/dist/oql/adapters/researchTargets.d.ts +4 -46
  75. package/dist/oql/adapters/resultMap.d.ts +7 -0
  76. package/dist/oql/adapters/runner.d.ts +7 -0
  77. package/dist/oql/defaults.d.ts +1 -1
  78. package/dist/oql/index.js +35 -37
  79. package/dist/oql/normalize/batch.d.ts +2 -0
  80. package/dist/oql/normalize/materialize.d.ts +2 -0
  81. package/dist/oql/normalize/params.d.ts +2 -0
  82. package/dist/oql/normalize/query.d.ts +2 -0
  83. package/dist/oql/normalize/scope.d.ts +2 -0
  84. package/dist/oql/normalize/shared.d.ts +7 -0
  85. package/dist/oql/normalize/source.d.ts +2 -0
  86. package/dist/oql/normalize/where.d.ts +2 -0
  87. package/dist/oql/normalize.d.ts +19 -4
  88. package/dist/oql/planner/planDiagnostics.d.ts +13 -0
  89. package/dist/oql/planner/predicateRouting.d.ts +35 -0
  90. package/dist/oql/predicateUtils.d.ts +3 -0
  91. package/dist/oql/research/analyze/manifest-scan.d.ts +4 -0
  92. package/dist/oql/research/analyze/source-graph.d.ts +7 -0
  93. package/dist/oql/research/analyze/symbol-scoring.d.ts +4 -0
  94. package/dist/oql/research/analyze/types.d.ts +163 -0
  95. package/dist/oql/research/analyze/utils.d.ts +16 -0
  96. package/dist/oql/research/analyze.d.ts +2 -133
  97. package/dist/oql/research/packets/builders.d.ts +4 -0
  98. package/dist/oql/research/packets/types.d.ts +91 -0
  99. package/dist/oql/research/packets.d.ts +21 -80
  100. package/dist/oql/run/batch.d.ts +3 -0
  101. package/dist/oql/run/continuations/records.d.ts +19 -0
  102. package/dist/oql/run/continuations/registry.d.ts +22 -0
  103. package/dist/oql/run/continuations/semantics.d.ts +3 -0
  104. package/dist/oql/run/continuations/types.d.ts +12 -0
  105. package/dist/oql/run/dryRun.d.ts +11 -0
  106. package/dist/oql/run/paths.d.ts +15 -0
  107. package/dist/oql/run/proofGrades.d.ts +8 -0
  108. package/dist/oql/run/select.d.ts +10 -0
  109. package/dist/oql/run/single.d.ts +22 -0
  110. package/dist/oql/run.d.ts +4 -31
  111. package/dist/oql/schema/predicates.d.ts +12 -0
  112. package/dist/oql/schema.d.ts +74 -43
  113. package/dist/oql/schemeText.d.ts +21 -23
  114. package/dist/oql/shorthand/predicates.d.ts +15 -0
  115. package/dist/oql/shorthand/query-controls.d.ts +18 -0
  116. package/dist/oql/shorthand/target-params.d.ts +9 -0
  117. package/dist/oql/shorthand/types.d.ts +159 -0
  118. package/dist/oql/shorthand/utils.d.ts +7 -0
  119. package/dist/oql/shorthand.d.ts +2 -171
  120. package/dist/oql/targetParams.d.ts +0 -13
  121. package/dist/oql/transformers/github/code.d.ts +1 -9
  122. package/dist/oql/transformers/github/common.d.ts +7 -1
  123. package/dist/oql/types/diagnostics.d.ts +22 -0
  124. package/dist/oql/types/envelope.d.ts +78 -0
  125. package/dist/oql/types/guards.d.ts +9 -0
  126. package/dist/oql/types/planner.d.ts +46 -0
  127. package/dist/oql/types/predicates.d.ts +93 -0
  128. package/dist/oql/types/query.d.ts +143 -0
  129. package/dist/oql/types/recordData.d.ts +127 -0
  130. package/dist/oql/types/recordRows.d.ts +48 -0
  131. package/dist/oql/types/results.d.ts +118 -0
  132. package/dist/oql/types/targets.d.ts +22 -0
  133. package/dist/oql/types.d.ts +17 -630
  134. package/dist/providers/github/paginationMetadata.d.ts +12 -0
  135. package/dist/providers/providerResults.d.ts +0 -1
  136. package/dist/responses.d.ts +4 -35
  137. package/dist/schema.js +2 -2
  138. package/dist/scheme/pagination.d.ts +116 -0
  139. package/dist/scheme/responseEnvelope.d.ts +67 -1
  140. package/dist/shared/config/index.d.ts +1 -8
  141. package/dist/shared/config/index.js +1 -2
  142. package/dist/shared/credentials/index.d.ts +1 -1
  143. package/dist/shared/credentials/index.js +2 -1
  144. package/dist/shared/credentials/storage.d.ts +0 -2
  145. package/dist/shared/credentials/testing.js +1 -1
  146. package/dist/shared/languageSelectors/classify.d.ts +15 -0
  147. package/dist/shared/languageSelectors/data.d.ts +12 -0
  148. package/dist/shared/languageSelectors.d.ts +3 -23
  149. package/dist/shared/paths.d.ts +4 -4
  150. package/dist/shared/paths.js +1 -1
  151. package/dist/shared/session/index.js +1 -1
  152. package/dist/shared/session/statsDefaults.d.ts +1 -2
  153. package/dist/tools/directToolCatalog/toolCatalogDefinitions.d.ts +68 -0
  154. package/dist/tools/directToolCatalog/toolCommandPatternQueries.d.ts +4 -0
  155. package/dist/tools/directToolCatalog/toolCommandPatterns.d.ts +4 -0
  156. package/dist/tools/directToolCatalog/toolInputPreparation.d.ts +12 -0
  157. package/dist/tools/directToolCatalog/toolSchemaIntrospection.d.ts +19 -0
  158. package/dist/tools/directToolCatalog.exec.d.ts +5 -0
  159. package/dist/tools/directToolCatalog.meta.d.ts +10 -67
  160. package/dist/tools/github_clone_repo/cache.d.ts +1 -5
  161. package/dist/tools/github_clone_repo/cachePaths.d.ts +5 -0
  162. package/dist/tools/github_clone_repo/scheme.d.ts +0 -1
  163. package/dist/tools/github_fetch_content/finalizer/entryParsers.d.ts +9 -0
  164. package/dist/tools/github_fetch_content/finalizer/types.d.ts +101 -0
  165. package/dist/tools/github_fetch_content/finalizer.d.ts +1 -7
  166. package/dist/tools/github_fetch_content/scheme.d.ts +43 -9
  167. package/dist/tools/github_fetch_content/types.d.ts +1 -2
  168. package/dist/tools/github_search_code/execution.d.ts +9 -0
  169. package/dist/tools/github_search_code/finalizer/build.d.ts +4 -0
  170. package/dist/tools/github_search_code/finalizer/groups.d.ts +23 -0
  171. package/dist/tools/github_search_code/finalizer/ranking.d.ts +12 -0
  172. package/dist/tools/github_search_code/finalizer.d.ts +2 -6
  173. package/dist/tools/github_search_code/scheme.d.ts +31 -6
  174. package/dist/tools/github_search_pull_requests/contentResponse/commentsShaping.d.ts +68 -0
  175. package/dist/tools/github_search_pull_requests/contentResponse/fileSurfaces.d.ts +52 -0
  176. package/dist/tools/github_search_pull_requests/contentResponse/nextCalls.d.ts +17 -0
  177. package/dist/tools/github_search_pull_requests/contentResponse/pagination.d.ts +63 -0
  178. package/dist/tools/github_search_pull_requests/contentResponse.d.ts +1 -15
  179. package/dist/tools/github_search_pull_requests/execution/commitsMode.d.ts +4 -0
  180. package/dist/tools/github_search_pull_requests/execution/issuesMode.d.ts +4 -0
  181. package/dist/tools/github_search_pull_requests/execution/pullRequestsMode.d.ts +4 -0
  182. package/dist/tools/github_search_pull_requests/execution/releasesMode.d.ts +4 -0
  183. package/dist/tools/github_search_pull_requests/execution/types.d.ts +6 -0
  184. package/dist/tools/github_search_pull_requests/execution.d.ts +1 -4
  185. package/dist/tools/github_search_pull_requests/scheme.d.ts +11 -2
  186. package/dist/tools/github_search_repos/execution/pagination.d.ts +39 -0
  187. package/dist/tools/github_search_repos/execution/queryVariants.d.ts +38 -0
  188. package/dist/tools/github_search_repos/execution/ranking.d.ts +4 -0
  189. package/dist/tools/github_search_repos/execution.d.ts +3 -13
  190. package/dist/tools/github_search_repos/scheme.d.ts +7 -2
  191. package/dist/tools/github_view_repo_structure/scheme.d.ts +0 -1
  192. package/dist/tools/github_view_repo_structure/types.d.ts +2 -0
  193. package/dist/tools/local_fetch_content/fetchContent/extraction.d.ts +15 -0
  194. package/dist/tools/local_fetch_content/fetchContent/pagination.d.ts +38 -0
  195. package/dist/tools/local_fetch_content/fetchContent/validation.d.ts +26 -0
  196. package/dist/tools/local_fetch_content/fetchContent.d.ts +2 -0
  197. package/dist/tools/local_fetch_content/scheme.d.ts +90 -0
  198. package/dist/tools/local_find_files/scheme.d.ts +81 -0
  199. package/dist/tools/local_ripgrep/rankingProfile/rankingProfiles.d.ts +70 -0
  200. package/dist/tools/local_ripgrep/rankingProfile/rankingResults.d.ts +47 -0
  201. package/dist/tools/local_ripgrep/rankingProfile/rankingScoring.d.ts +41 -0
  202. package/dist/tools/local_ripgrep/rankingProfile.d.ts +16 -95
  203. package/dist/tools/local_ripgrep/ripgrepResultBuilder/buildResult.d.ts +10 -0
  204. package/dist/tools/local_ripgrep/ripgrepResultBuilder/searchNext.d.ts +46 -0
  205. package/dist/tools/local_ripgrep/ripgrepResultBuilder.d.ts +2 -18
  206. package/dist/tools/local_ripgrep/scheme.d.ts +170 -0
  207. package/dist/tools/local_view_structure/scheme.d.ts +83 -0
  208. package/dist/tools/lsp/semantic_content/scheme.d.ts +56 -8
  209. package/dist/tools/lsp/semantic_content/semanticAnchored.d.ts +7 -0
  210. package/dist/tools/lsp/semantic_content/semanticEnvelopes/callEnvelopes.d.ts +5 -0
  211. package/dist/tools/lsp/semantic_content/semanticEnvelopes/envelopeHelpers.d.ts +20 -0
  212. package/dist/tools/lsp/semantic_content/semanticEnvelopes/locationEnvelopes.d.ts +13 -0
  213. package/dist/tools/lsp/semantic_content/semanticEnvelopes.d.ts +3 -0
  214. package/dist/tools/lsp/semantic_content/semanticFileOps/anchor.d.ts +24 -0
  215. package/dist/tools/lsp/semantic_content/semanticFileOps/documentSymbols.d.ts +27 -0
  216. package/dist/tools/lsp/semantic_content/semanticFileOps/workspaceSymbolsAndDiagnostics.d.ts +20 -0
  217. package/dist/tools/lsp/semantic_content/semanticFileOps.d.ts +8 -0
  218. package/dist/tools/lsp/semantic_content/semanticPresentation.d.ts +53 -0
  219. package/dist/tools/lsp/shared/readiness.d.ts +17 -0
  220. package/dist/tools/lsp/shared/semanticTypes.d.ts +6 -0
  221. package/dist/tools/package_search/execution.d.ts +8 -0
  222. package/dist/tools/package_search/scheme.d.ts +45 -6
  223. package/dist/tools/providerMappers/codeSearch.d.ts +66 -0
  224. package/dist/tools/providerMappers/fileContent.d.ts +28 -0
  225. package/dist/tools/providerMappers/pullRequests.d.ts +158 -0
  226. package/dist/tools/providerMappers/repoSearch.d.ts +30 -0
  227. package/dist/tools/providerMappers/repoStructure.d.ts +20 -0
  228. package/dist/tools/providerMappers/shared.d.ts +23 -0
  229. package/dist/tools/providerMappers.d.ts +9 -294
  230. package/dist/tools/toolConfig.d.ts +0 -2
  231. package/dist/tools/toolMetadata/descriptionOverrides.d.ts +4 -0
  232. package/dist/tools/toolNames.d.ts +1 -0
  233. package/dist/tools/toolSchemaImports.d.ts +13 -0
  234. package/dist/utils/contextUtils.d.ts +5 -16
  235. package/dist/utils/core/types.d.ts +2 -24
  236. package/dist/utils/exec/spawn/env.d.ts +5 -0
  237. package/dist/utils/exec/spawn/wrappers.d.ts +29 -0
  238. package/dist/utils/exec/spawn.d.ts +2 -34
  239. package/dist/utils/http/cache/conditional.d.ts +21 -0
  240. package/dist/utils/http/cache/dataCache.d.ts +6 -0
  241. package/dist/utils/http/cache/key.d.ts +1 -0
  242. package/dist/utils/http/cache/management.d.ts +9 -0
  243. package/dist/utils/http/cache/store.d.ts +28 -0
  244. package/dist/utils/http/cache.d.ts +4 -16
  245. package/dist/utils/markdownOutline.d.ts +0 -2
  246. package/dist/utils/package/npm/npmDeprecation.d.ts +5 -0
  247. package/dist/utils/package/npm/npmDetailsFetchers.d.ts +15 -0
  248. package/dist/utils/package/npm/npmMappers.d.ts +12 -0
  249. package/dist/utils/package/npm/npmRegistry.d.ts +79 -0
  250. package/dist/utils/package/npm/npmSearchStrategies.d.ts +6 -0
  251. package/dist/utils/package/npm.d.ts +2 -8
  252. package/dist/utils/pagination/boundary.d.ts +5 -5
  253. package/dist/utils/response/bulk/pagination.d.ts +6 -0
  254. package/dist/utils/response/bulk/queries.d.ts +19 -0
  255. package/dist/utils/response/bulk/response.d.ts +4 -0
  256. package/dist/utils/response/bulk.d.ts +2 -5
  257. package/dist/utils/response/groupedFinalizer.d.ts +7 -2
  258. package/package.json +10 -3
  259. package/dist/oql/adapters/v2.d.ts +0 -32
  260. package/dist/oql/v2params.d.ts +0 -22
  261. package/dist/shared/config/defaults.d.ts +0 -14
  262. package/dist/shared/config/loader.d.ts +0 -7
  263. package/dist/shared/config/resolver.d.ts +0 -2
  264. package/dist/shared/config/resolverCache.d.ts +0 -12
  265. package/dist/shared/config/resolverSections.d.ts +0 -10
  266. package/dist/shared/config/runtimeSurface.d.ts +0 -22
  267. package/dist/shared/config/types.d.ts +0 -92
  268. package/dist/shared/config/validator.d.ts +0 -2
  269. package/dist/shared/credentials/envTokens.d.ts +0 -9
  270. package/dist/tools/local_binary_inspect/archiveOps.d.ts +0 -24
  271. package/dist/tools/local_binary_inspect/binaryInspector.d.ts +0 -86
  272. package/dist/tools/local_binary_inspect/binaryOps.d.ts +0 -27
  273. package/dist/tools/local_binary_inspect/decompressOps.d.ts +0 -16
  274. package/dist/tools/local_binary_inspect/execution.d.ts +0 -4
  275. package/dist/tools/local_binary_inspect/scheme.d.ts +0 -47
  276. package/dist/tools/local_ripgrep/lspBoost.d.ts +0 -54
  277. package/dist/utils/parsers/ripgrep.d.ts +0 -11
@@ -1,80 +1,21 @@
1
- import type { OqlContinuation } from '../types.js';
2
- import type { ResearchAnalysisResult } from './analyze.js';
3
- export type EvidenceSource = 'ripgrep' | 'regex' | 'ast' | 'symbols' | 'lsp' | 'manifest' | 'graph' | 'exactRead';
4
- export type EvidenceConfidence = 'exact' | 'heuristic' | 'partial';
5
- export interface EvidenceLocation {
6
- uri: string;
7
- range?: {
8
- start: {
9
- line: number;
10
- character?: number;
11
- };
12
- end?: {
13
- line: number;
14
- character?: number;
15
- };
16
- };
17
- }
18
- export interface EvidenceSubject extends EvidenceLocation {
19
- id: string;
20
- kind: 'file' | 'symbol' | 'function' | 'class' | 'method' | 'interface' | 'type' | 'dependency' | 'package' | 'entrypoint';
21
- name?: string;
22
- symbolKind?: number | string;
23
- language?: string;
24
- }
25
- export type EvidenceClaim = 'defines' | 'declares' | 'exports' | 'imports' | 'references' | 'calls' | 'extends' | 'implements' | 'typeUses' | 'entrypoint' | 'unresolved' | 'textMatch' | 'structuralMatch';
26
- export type EvidenceFlag = 'same-file' | 'external' | 'type-only' | 'test-only' | 'dynamic' | 'string-only' | 'unreachable' | 'generated' | 'declaration';
27
- export interface EvidenceFact {
28
- id: string;
29
- subject: EvidenceSubject;
30
- claim: EvidenceClaim;
31
- source: EvidenceSource;
32
- confidence: EvidenceConfidence;
33
- flags?: EvidenceFlag[];
34
- value?: unknown;
35
- }
36
- export type EvidenceRelation = 'contains' | 'defines' | 'exports' | 'imports' | 'references' | 'calls' | 'constructs' | 'extends' | 'implements' | 'typeUses' | 'retains' | 'reachableFrom' | 'declaresDependency' | 'usesDependency';
37
- export interface EvidenceEdge {
38
- id: string;
39
- from: EvidenceSubject;
40
- to: EvidenceSubject;
41
- relation: EvidenceRelation;
42
- source: EvidenceSource;
43
- confidence: EvidenceConfidence;
44
- flags?: EvidenceFlag[];
45
- via?: EvidenceLocation;
46
- }
47
- export type PacketVerdict = 'reachable' | 'candidate-dead' | 'transitive-dead' | 'candidate-unused-file' | 'candidate-unused-dependency' | 'unknown';
48
- export type PacketProofStatus = 'candidate' | 'confirmed-by-lsp' | 'confirmed-by-ast-and-lsp' | 'needs-framework-graph' | 'conflicting-evidence';
49
- export type MissingProofKind = 'lsp-unavailable' | 'dynamic-import-unresolved' | 'framework-entrypoint-unknown' | 'tsconfig-paths-unresolved' | 'manifest-rule-missing' | 'parser-failed' | 'pagination-open';
50
- export interface MissingProof {
51
- kind: MissingProofKind;
52
- severity: 'low' | 'medium' | 'high';
53
- location?: EvidenceLocation;
54
- }
55
- export interface ResearchEvidencePacket {
56
- subject: EvidenceSubject;
57
- verdict: PacketVerdict;
58
- proofStatus: PacketProofStatus;
59
- why: EvidenceFact[];
60
- retainedBy: EvidenceEdge[];
61
- retains?: EvidenceEdge[];
62
- missingProof: MissingProof[];
63
- proof?: Record<string, unknown>;
64
- risk: {
65
- deleteRisk: 'low' | 'medium' | 'high' | 'unknown';
66
- reason: string;
67
- };
68
- next: Record<string, OqlContinuation>;
69
- }
70
- export interface ResearchGraphSummary {
71
- subjects: number;
72
- facts: number;
73
- edges: number;
74
- byVerdict: Record<PacketVerdict, number>;
75
- }
76
- export interface ResearchPacketBundle {
77
- packets: ResearchEvidencePacket[];
78
- graphSummary: ResearchGraphSummary;
79
- }
80
- export declare function buildResearchPackets(analysis: ResearchAnalysisResult): ResearchPacketBundle;
1
+ /**
2
+ * Research evidence packets.
3
+ *
4
+ * Transforms the heuristic `ResearchAnalysisResult` (reachability + reference +
5
+ * dependency analysis) into compact, decision-grade `ResearchEvidencePacket`s —
6
+ * the agent's unit for "what looks dead, why, what keeps it alive, what proof is
7
+ * missing, and is it safe to delete".
8
+ *
9
+ * HONESTY CONTRACT: this layer never invents proof. Native AST facts can prove
10
+ * syntax-level declarations/imports/exports, but cross-file references remain
11
+ * heuristic until LSP proof is attached by the graph adapter or followed via
12
+ * `next.semantic`.
13
+ *
14
+ * This module is a thin barrel: the evidence model (types/interfaces) lives in
15
+ * `./packets/types.ts`, and the packet-construction logic (including
16
+ * `buildResearchPackets`/`tallyPacketVerdicts`) lives in `./packets/builders.ts`.
17
+ * Both are re-exported here so existing `from '.../research/packets.js'`
18
+ * imports keep working unchanged.
19
+ */
20
+ export type { EvidenceSource, EvidenceConfidence, EvidenceLocation, EvidenceSubject, EvidenceClaim, EvidenceFlag, EvidenceFact, EvidenceRelation, EvidenceEdge, PacketVerdict, PacketProofStatus, MissingProofKind, MissingProof, ResearchEvidencePacket, ResearchGraphSummary, ResearchPacketBundle, } from './packets/types.js';
21
+ export { buildResearchPackets, tallyPacketVerdicts, } from './packets/builders.js';
@@ -0,0 +1,3 @@
1
+ import type { OqlBatch, OqlBatchResultEnvelope } from '../types.js';
2
+ import { type RunOptions } from './single.js';
3
+ export declare function runBatch(batch: OqlBatch, rawInput: unknown, options: RunOptions): Promise<OqlBatchResultEnvelope>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Per-row continuation builders for code/content rows and record rows
3
+ * (materialized/research/graph). See registry.ts for how these are
4
+ * wired into ROW_CONTINUATION_BUILDERS and attached to result rows.
5
+ */
6
+ import type { OqlContinuation, OqlResultRow } from '../../types.js';
7
+ import type { ContinuationCtx } from './types.js';
8
+ export declare function buildCodeContinuations(row: OqlResultRow, ctx: ContinuationCtx): Record<string, OqlContinuation> | undefined;
9
+ export declare function buildContentContinuations(row: OqlResultRow, ctx: ContinuationCtx): Record<string, OqlContinuation> | undefined;
10
+ export declare function buildMaterializedContinuations(row: OqlResultRow): Record<string, OqlContinuation> | undefined;
11
+ /**
12
+ * `target:"research"` stays candidate-grade — it never runs LSP internally — but
13
+ * it emits a one-call `next.graph` upgrade. `target:"graph"` emits the same
14
+ * upgrade when an analyze row still has missing proof. The upgrade is page-aligned
15
+ * and bounded by `proofLimit`, so agents can close proof without losing the
16
+ * research/graph honesty boundary.
17
+ */
18
+ export declare function buildResearchContinuations(row: OqlResultRow, ctx: ContinuationCtx): Record<string, OqlContinuation> | undefined;
19
+ export declare function buildGraphContinuations(row: OqlResultRow, ctx: ContinuationCtx): Record<string, OqlContinuation> | undefined;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Emit executable `next.*` continuations (contract Gate 10). Every continuation
3
+ * is a full canonical OQL query runnable as-is.
4
+ *
5
+ * Envelope-level:
6
+ * - next.page — more result pages remain
7
+ * - next.matchPage — per-file matches were capped
8
+ *
9
+ * Per-row continuations are produced by a registry keyed by row kind (and, for
10
+ * record rows, recordType) so adding a new row's continuations is one entry,
11
+ * never another `else if`:
12
+ * - code → next.fetch (read exact content) [+ next.semantic on local]
13
+ * - content → next.charRange (page the body)
14
+ * - materialized→ next.structure / next.files rooted at the checkpoint path
15
+ * - semantics → next.fetch (read the code at a symbol location)
16
+ * - graph → next.graph (bounded LSP proof for candidate graph pages)
17
+ */
18
+ import type { AdapterResult } from '../../adapters/local.js';
19
+ import type { OqlContinuation, OqlContinuationHint, OqlQuery, OqlResultRow } from '../../types.js';
20
+ export declare function attachContinuations(query: OqlQuery, exec: AdapterResult): Record<string, OqlContinuation>;
21
+ export declare function compactRowContinuationHints(results: OqlResultRow[]): Record<string, OqlContinuationHint> | undefined;
22
+ export declare function hintsEqual(left: OqlContinuationHint, right: OqlContinuationHint): boolean;
@@ -0,0 +1,3 @@
1
+ import type { OqlContinuation, OqlResultRow } from '../../types.js';
2
+ import type { ContinuationCtx } from './types.js';
3
+ export declare function buildSemanticsContinuations(row: OqlResultRow, ctx: ContinuationCtx): Record<string, OqlContinuation> | undefined;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Shared types for the per-row continuation builders (registry.ts, records.ts,
3
+ * semantics.ts). Split out so builder modules can share the context/type shape
4
+ * without creating a runtime circular import with the registry.
5
+ */
6
+ import type { OqlContinuation, OqlQuery, OqlResultRow } from '../../types.js';
7
+ export interface ContinuationCtx {
8
+ query: OqlQuery;
9
+ /** code rows: rebuild an absolute `from` from a relativized row path. */
10
+ fileFrom?: (rowPath: string) => OqlQuery['from'];
11
+ }
12
+ export type RowContinuationBuilder = (row: OqlResultRow, ctx: ContinuationCtx) => Record<string, OqlContinuation> | undefined;
@@ -0,0 +1,11 @@
1
+ import type { PlanQueryResult } from '../planner.js';
2
+ import type { OqlQuery, OqlResultEnvelope } from '../types.js';
3
+ /**
4
+ * `target:"files"` over a GitHub source with no `where` cannot be enumerated by
5
+ * the provider, so the plan is non-executable (audit #6). Instead of a dead end,
6
+ * hand the agent a runnable next.materialize query — clone a bounded corpus and
7
+ * list files from the materialized checkpoint — mirroring the providerUnindexed
8
+ * recovery path.
9
+ */
10
+ export declare function blockedMaterializeContinuation(query?: OqlQuery): OqlResultEnvelope['next'] | undefined;
11
+ export declare function unsupportedEnvelopeFromPlan(planned: PlanQueryResult, plan: OqlResultEnvelope['plan'], queryId?: string, queryIndex?: number, dryRun?: boolean, query?: OqlQuery): OqlResultEnvelope;
@@ -0,0 +1,15 @@
1
+ import type { OqlQuery, OqlResultRow } from '../types.js';
2
+ export declare function relativizeBase(root: string): string;
3
+ export declare function queryLocalRoot(query: OqlQuery): string | undefined;
4
+ /**
5
+ * Relativize absolute local result paths to the query root (see relativizeBase),
6
+ * keeping `search` aligned with the former grep/ls shortcuts and far less verbose. Provider
7
+ * (GitHub) paths are already repo-relative and left untouched.
8
+ */
9
+ export declare function relativizeResultPaths(query: OqlQuery, results: OqlResultRow[]): void;
10
+ /**
11
+ * For local/materialized sources, return a builder that turns a relativized
12
+ * row path back into an absolute-file `from` (relativization stripped exactly
13
+ * `dirname(resolve(root)) + '/'`, so re-adding it round-trips).
14
+ */
15
+ export declare function localFileSource(query: OqlQuery): ((rowPath: string) => OqlQuery['from']) | undefined;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Proof-grade inference: labels every result row with how strong its evidence
3
+ * is (structural/text/semantic/graph/candidate/missing), defaulting any row a
4
+ * backend didn't already grade.
5
+ */
6
+ import type { OqlProofGradedResultRow, OqlQuery, OqlResultRow } from '../types.js';
7
+ export declare function applyProofGrades(query: OqlQuery, results: OqlResultRow[]): asserts results is OqlProofGradedResultRow[];
8
+ export declare function hasMissingProof(data: Record<string, unknown>): boolean;
@@ -0,0 +1,10 @@
1
+ import type { OqlQuery, OqlResultEnvelope, OqlResultRow } from '../types.js';
2
+ /**
3
+ * Project result rows to the requested `select` fields. Projection only: it
4
+ * filters which fields/continuations appear, never adds data or changes the
5
+ * result domain. Identity fields always survive. Unknown selectors yield a
6
+ * non-blocking `unknownField` diagnostic. Dotted record-data selectors
7
+ * (e.g. `data.summary`) are accepted but not sub-projected (the whole `data`
8
+ * stays if `data` is selected).
9
+ */
10
+ export declare function applySelect(query: OqlQuery, results: OqlResultRow[]): OqlResultEnvelope['diagnostics'];
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Single-query execution: normalize -> plan -> (explain) -> execute via
3
+ * adapter -> envelope. Also the per-result-set helpers (pagination window,
4
+ * shared-ref pruning, uniform-source stripping) that only apply within one
5
+ * query's result set.
6
+ */
7
+ import type { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
8
+ import type { OqlQuery, OqlResultEnvelope, OqlResultRow } from '../types.js';
9
+ export interface RunOptions {
10
+ authInfo?: AuthInfo;
11
+ /** Plan only; do not execute. Maps to `octocode search --dry-run`. */
12
+ dryRun?: boolean;
13
+ }
14
+ /**
15
+ * Per-row `source` is identical for every row of a single-source query (one
16
+ * `from`), so repeating it on each row is pure token noise — the source already
17
+ * lives once in `provenance`. Strip it when uniform. A merged cross-source batch
18
+ * has rows from different sources (NOT uniform) → kept, so mergeChildren's
19
+ * rowKey dedup stays exact. Always runs AFTER merge.
20
+ */
21
+ export declare function stripUniformSource(results: OqlResultRow[]): void;
22
+ export declare function runSingle(query: OqlQuery, rawInput: unknown, options: RunOptions, queryIndex?: number): Promise<OqlResultEnvelope>;
package/dist/oql/run.d.ts CHANGED
@@ -1,32 +1,5 @@
1
- import type { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
2
- import { type OqlContinuation, type OqlQuery, type OqlResultRow, type OqlRunResult, type OqlSearchInput } from './types.js';
3
- export interface RunOptions {
4
- authInfo?: AuthInfo;
5
- /** Plan only; do not execute. Maps to `octocode search --dry-run`. */
6
- dryRun?: boolean;
7
- }
1
+ import { type OqlRunResult, type OqlSearchInput } from './types.js';
2
+ import { type RunOptions } from './run/single.js';
3
+ export type { RunOptions };
4
+ export type { ContinuationCtx } from './run/continuations/types.js';
8
5
  export declare function runOqlSearch(input: OqlSearchInput, options?: RunOptions): Promise<OqlRunResult>;
9
- /**
10
- * Emit executable `next.*` continuations (contract Gate 10). Every continuation
11
- * is a full canonical OQL query runnable as-is.
12
- *
13
- * Envelope-level:
14
- * - next.page — more result pages remain
15
- * - next.matchPage — per-file matches were capped
16
- *
17
- * Per-row continuations are produced by a registry keyed by row kind (and, for
18
- * record rows, recordType) so adding a new row's continuations is one entry,
19
- * never another `else if`:
20
- * - code → next.fetch (read exact content) [+ next.semantic on local]
21
- * - content → next.charRange (page the body)
22
- * - artifact → next.structure / next.files rooted at the extracted path
23
- * - materialized→ next.structure / next.files rooted at the checkpoint path
24
- * - semantics → next.fetch (read the code at a symbol location)
25
- * - graph → next.graph (bounded LSP proof for candidate graph pages)
26
- */
27
- export interface ContinuationCtx {
28
- query: OqlQuery;
29
- /** code rows: rebuild an absolute `from` from a relativized row path. */
30
- fileFrom?: (rowPath: string) => OqlQuery['from'];
31
- }
32
- export declare function buildArtifactContinuations(row: OqlResultRow, ctx: ContinuationCtx): Record<string, OqlContinuation> | undefined;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * OQL predicate-tree Zod schemas.
3
+ *
4
+ * Split out of `../schema.ts` (kept as a barrel) so that file stays under the
5
+ * repo's `max-lines: 400` ESLint rule. This group is self-contained: the
6
+ * predicate tree (`PredicateSchema`) and its leaf kinds (text/regex/structural
7
+ * /field) don't depend on anything else in the OQL schema module.
8
+ */
9
+ import { z } from 'zod';
10
+ export declare const StructuralRuleSchema: z.ZodType;
11
+ export declare const StructuralRuleInputSchema: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodString]>;
12
+ export declare const PredicateSchema: z.ZodType;
@@ -10,6 +10,8 @@
10
10
  * decide (accept / `ambiguousSugar` / `unknownField`).
11
11
  */
12
12
  import { z } from 'zod';
13
+ import { PredicateSchema, StructuralRuleSchema, StructuralRuleInputSchema } from './schema/predicates.js';
14
+ export { PredicateSchema, StructuralRuleSchema, StructuralRuleInputSchema };
13
15
  export declare const QuerySourceSchema: z.ZodType;
14
16
  export declare const QueryScopeSchema: z.ZodOptional<z.ZodObject<{
15
17
  path: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
@@ -22,9 +24,6 @@ export declare const QueryScopeSchema: z.ZodOptional<z.ZodObject<{
22
24
  minDepth: z.ZodOptional<z.ZodNumber>;
23
25
  maxDepth: z.ZodOptional<z.ZodNumber>;
24
26
  }, z.core.$strict>>;
25
- export declare const StructuralRuleSchema: z.ZodType;
26
- export declare const StructuralRuleInputSchema: z.ZodUnion<readonly [z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodString]>;
27
- export declare const PredicateSchema: z.ZodType;
28
27
  export declare const MaterializePolicySchema: z.ZodObject<{
29
28
  mode: z.ZodEnum<{
30
29
  never: "never";
@@ -52,11 +51,13 @@ export declare const FetchInstructionsSchema: z.ZodObject<{
52
51
  regex: z.ZodOptional<z.ZodBoolean>;
53
52
  caseSensitive: z.ZodOptional<z.ZodBoolean>;
54
53
  }, z.core.$strict>>;
55
- contentView: z.ZodOptional<z.ZodEnum<{
54
+ contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
56
55
  compact: "compact";
57
- symbols: "symbols";
58
56
  exact: "exact";
59
- }>>;
57
+ none: "none";
58
+ standard: "standard";
59
+ symbols: "symbols";
60
+ }>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
60
61
  charOffset: z.ZodOptional<z.ZodNumber>;
61
62
  charLength: z.ZodOptional<z.ZodNumber>;
62
63
  fullContent: z.ZodOptional<z.ZodBoolean>;
@@ -92,11 +93,13 @@ export declare const QueryControlsSchema: z.ZodObject<{
92
93
  matchPage: z.ZodOptional<z.ZodNumber>;
93
94
  sort: z.ZodOptional<z.ZodEnum<{
94
95
  path: "path";
95
- created: "created";
96
96
  modified: "modified";
97
+ size: "size";
98
+ created: "created";
99
+ name: "name";
100
+ accessed: "accessed";
97
101
  relevance: "relevance";
98
102
  matchCount: "matchCount";
99
- accessed: "accessed";
100
103
  }>>;
101
104
  sortReverse: z.ZodOptional<z.ZodBoolean>;
102
105
  rankingProfile: z.ZodOptional<z.ZodString>;
@@ -158,11 +161,13 @@ export declare const OqlQuerySchema: z.ZodObject<{
158
161
  regex: z.ZodOptional<z.ZodBoolean>;
159
162
  caseSensitive: z.ZodOptional<z.ZodBoolean>;
160
163
  }, z.core.$strict>>;
161
- contentView: z.ZodOptional<z.ZodEnum<{
164
+ contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
162
165
  compact: "compact";
163
- symbols: "symbols";
164
166
  exact: "exact";
165
- }>>;
167
+ none: "none";
168
+ standard: "standard";
169
+ symbols: "symbols";
170
+ }>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
166
171
  charOffset: z.ZodOptional<z.ZodNumber>;
167
172
  charLength: z.ZodOptional<z.ZodNumber>;
168
173
  fullContent: z.ZodOptional<z.ZodBoolean>;
@@ -204,11 +209,13 @@ export declare const OqlQuerySchema: z.ZodObject<{
204
209
  matchPage: z.ZodOptional<z.ZodNumber>;
205
210
  sort: z.ZodOptional<z.ZodEnum<{
206
211
  path: "path";
207
- created: "created";
208
212
  modified: "modified";
213
+ size: "size";
214
+ created: "created";
215
+ name: "name";
216
+ accessed: "accessed";
209
217
  relevance: "relevance";
210
218
  matchCount: "matchCount";
211
- accessed: "accessed";
212
219
  }>>;
213
220
  sortReverse: z.ZodOptional<z.ZodBoolean>;
214
221
  rankingProfile: z.ZodOptional<z.ZodString>;
@@ -279,11 +286,13 @@ export declare const OqlBatchSchema: z.ZodObject<{
279
286
  regex: z.ZodOptional<z.ZodBoolean>;
280
287
  caseSensitive: z.ZodOptional<z.ZodBoolean>;
281
288
  }, z.core.$strict>>;
282
- contentView: z.ZodOptional<z.ZodEnum<{
289
+ contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
283
290
  compact: "compact";
284
- symbols: "symbols";
285
291
  exact: "exact";
286
- }>>;
292
+ none: "none";
293
+ standard: "standard";
294
+ symbols: "symbols";
295
+ }>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
287
296
  charOffset: z.ZodOptional<z.ZodNumber>;
288
297
  charLength: z.ZodOptional<z.ZodNumber>;
289
298
  fullContent: z.ZodOptional<z.ZodBoolean>;
@@ -325,11 +334,13 @@ export declare const OqlBatchSchema: z.ZodObject<{
325
334
  matchPage: z.ZodOptional<z.ZodNumber>;
326
335
  sort: z.ZodOptional<z.ZodEnum<{
327
336
  path: "path";
328
- created: "created";
329
337
  modified: "modified";
338
+ size: "size";
339
+ created: "created";
340
+ name: "name";
341
+ accessed: "accessed";
330
342
  relevance: "relevance";
331
343
  matchCount: "matchCount";
332
- accessed: "accessed";
333
344
  }>>;
334
345
  sortReverse: z.ZodOptional<z.ZodBoolean>;
335
346
  rankingProfile: z.ZodOptional<z.ZodString>;
@@ -406,11 +417,13 @@ export declare const OqlCanonicalInputSchema: z.ZodUnion<readonly [z.ZodObject<{
406
417
  regex: z.ZodOptional<z.ZodBoolean>;
407
418
  caseSensitive: z.ZodOptional<z.ZodBoolean>;
408
419
  }, z.core.$strict>>;
409
- contentView: z.ZodOptional<z.ZodEnum<{
420
+ contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
410
421
  compact: "compact";
411
- symbols: "symbols";
412
422
  exact: "exact";
413
- }>>;
423
+ none: "none";
424
+ standard: "standard";
425
+ symbols: "symbols";
426
+ }>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
414
427
  charOffset: z.ZodOptional<z.ZodNumber>;
415
428
  charLength: z.ZodOptional<z.ZodNumber>;
416
429
  fullContent: z.ZodOptional<z.ZodBoolean>;
@@ -452,11 +465,13 @@ export declare const OqlCanonicalInputSchema: z.ZodUnion<readonly [z.ZodObject<{
452
465
  matchPage: z.ZodOptional<z.ZodNumber>;
453
466
  sort: z.ZodOptional<z.ZodEnum<{
454
467
  path: "path";
455
- created: "created";
456
468
  modified: "modified";
469
+ size: "size";
470
+ created: "created";
471
+ name: "name";
472
+ accessed: "accessed";
457
473
  relevance: "relevance";
458
474
  matchCount: "matchCount";
459
- accessed: "accessed";
460
475
  }>>;
461
476
  sortReverse: z.ZodOptional<z.ZodBoolean>;
462
477
  rankingProfile: z.ZodOptional<z.ZodString>;
@@ -526,11 +541,13 @@ export declare const OqlCanonicalInputSchema: z.ZodUnion<readonly [z.ZodObject<{
526
541
  regex: z.ZodOptional<z.ZodBoolean>;
527
542
  caseSensitive: z.ZodOptional<z.ZodBoolean>;
528
543
  }, z.core.$strict>>;
529
- contentView: z.ZodOptional<z.ZodEnum<{
544
+ contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
530
545
  compact: "compact";
531
- symbols: "symbols";
532
546
  exact: "exact";
533
- }>>;
547
+ none: "none";
548
+ standard: "standard";
549
+ symbols: "symbols";
550
+ }>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
534
551
  charOffset: z.ZodOptional<z.ZodNumber>;
535
552
  charLength: z.ZodOptional<z.ZodNumber>;
536
553
  fullContent: z.ZodOptional<z.ZodBoolean>;
@@ -572,11 +589,13 @@ export declare const OqlCanonicalInputSchema: z.ZodUnion<readonly [z.ZodObject<{
572
589
  matchPage: z.ZodOptional<z.ZodNumber>;
573
590
  sort: z.ZodOptional<z.ZodEnum<{
574
591
  path: "path";
575
- created: "created";
576
592
  modified: "modified";
593
+ size: "size";
594
+ created: "created";
595
+ name: "name";
596
+ accessed: "accessed";
577
597
  relevance: "relevance";
578
598
  matchCount: "matchCount";
579
- accessed: "accessed";
580
599
  }>>;
581
600
  sortReverse: z.ZodOptional<z.ZodBoolean>;
582
601
  rankingProfile: z.ZodOptional<z.ZodString>;
@@ -644,11 +663,13 @@ export declare const OqlDisplayQuerySchema: z.ZodObject<{
644
663
  regex: z.ZodOptional<z.ZodBoolean>;
645
664
  caseSensitive: z.ZodOptional<z.ZodBoolean>;
646
665
  }, z.core.$strict>>;
647
- contentView: z.ZodOptional<z.ZodEnum<{
666
+ contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
648
667
  compact: "compact";
649
- symbols: "symbols";
650
668
  exact: "exact";
651
- }>>;
669
+ none: "none";
670
+ standard: "standard";
671
+ symbols: "symbols";
672
+ }>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
652
673
  charOffset: z.ZodOptional<z.ZodNumber>;
653
674
  charLength: z.ZodOptional<z.ZodNumber>;
654
675
  fullContent: z.ZodOptional<z.ZodBoolean>;
@@ -690,11 +711,13 @@ export declare const OqlDisplayQuerySchema: z.ZodObject<{
690
711
  matchPage: z.ZodOptional<z.ZodNumber>;
691
712
  sort: z.ZodOptional<z.ZodEnum<{
692
713
  path: "path";
693
- created: "created";
694
714
  modified: "modified";
715
+ size: "size";
716
+ created: "created";
717
+ name: "name";
718
+ accessed: "accessed";
695
719
  relevance: "relevance";
696
720
  matchCount: "matchCount";
697
- accessed: "accessed";
698
721
  }>>;
699
722
  sortReverse: z.ZodOptional<z.ZodBoolean>;
700
723
  rankingProfile: z.ZodOptional<z.ZodString>;
@@ -776,11 +799,13 @@ export declare const OqlInputQuerySchema: z.ZodObject<{
776
799
  regex: z.ZodOptional<z.ZodBoolean>;
777
800
  caseSensitive: z.ZodOptional<z.ZodBoolean>;
778
801
  }, z.core.$strict>>;
779
- contentView: z.ZodOptional<z.ZodEnum<{
802
+ contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
780
803
  compact: "compact";
781
- symbols: "symbols";
782
804
  exact: "exact";
783
- }>>;
805
+ none: "none";
806
+ standard: "standard";
807
+ symbols: "symbols";
808
+ }>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
784
809
  charOffset: z.ZodOptional<z.ZodNumber>;
785
810
  charLength: z.ZodOptional<z.ZodNumber>;
786
811
  fullContent: z.ZodOptional<z.ZodBoolean>;
@@ -822,11 +847,13 @@ export declare const OqlInputQuerySchema: z.ZodObject<{
822
847
  matchPage: z.ZodOptional<z.ZodNumber>;
823
848
  sort: z.ZodOptional<z.ZodEnum<{
824
849
  path: "path";
825
- created: "created";
826
850
  modified: "modified";
851
+ size: "size";
852
+ created: "created";
853
+ name: "name";
854
+ accessed: "accessed";
827
855
  relevance: "relevance";
828
856
  matchCount: "matchCount";
829
- accessed: "accessed";
830
857
  }>>;
831
858
  sortReverse: z.ZodOptional<z.ZodBoolean>;
832
859
  rankingProfile: z.ZodOptional<z.ZodString>;
@@ -921,11 +948,13 @@ export declare const OqlSearchInputSchema: z.ZodObject<{
921
948
  regex: z.ZodOptional<z.ZodBoolean>;
922
949
  caseSensitive: z.ZodOptional<z.ZodBoolean>;
923
950
  }, z.core.$strict>>;
924
- contentView: z.ZodOptional<z.ZodEnum<{
951
+ contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
925
952
  compact: "compact";
926
- symbols: "symbols";
927
953
  exact: "exact";
928
- }>>;
954
+ none: "none";
955
+ standard: "standard";
956
+ symbols: "symbols";
957
+ }>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
929
958
  charOffset: z.ZodOptional<z.ZodNumber>;
930
959
  charLength: z.ZodOptional<z.ZodNumber>;
931
960
  fullContent: z.ZodOptional<z.ZodBoolean>;
@@ -967,11 +996,13 @@ export declare const OqlSearchInputSchema: z.ZodObject<{
967
996
  matchPage: z.ZodOptional<z.ZodNumber>;
968
997
  sort: z.ZodOptional<z.ZodEnum<{
969
998
  path: "path";
970
- created: "created";
971
999
  modified: "modified";
1000
+ size: "size";
1001
+ created: "created";
1002
+ name: "name";
1003
+ accessed: "accessed";
972
1004
  relevance: "relevance";
973
1005
  matchCount: "matchCount";
974
- accessed: "accessed";
975
1006
  }>>;
976
1007
  sortReverse: z.ZodOptional<z.ZodBoolean>;
977
1008
  rankingProfile: z.ZodOptional<z.ZodString>;