@octocodeai/octocode-tools-core 16.6.3 → 17.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -50
- package/dist/direct.js +33 -38
- package/dist/github/botFilter.d.ts +1 -0
- package/dist/github/client.d.ts +6 -0
- package/dist/github/directoryFetch/fetchDirectoryContents.d.ts +3 -0
- package/dist/github/directoryFetch/fetchFileContentToDisk.d.ts +3 -0
- package/dist/github/directoryFetch/helpers.d.ts +35 -0
- package/dist/github/directoryFetch.d.ts +3 -6
- package/dist/github/fileContentPagination.d.ts +9 -0
- package/dist/github/fileContentProcess.d.ts +1 -8
- package/dist/github/fileContentRaw/fetch.d.ts +20 -0
- package/dist/github/fileContentRaw/pathSuggestions.d.ts +3 -0
- package/dist/github/fileContentRaw.d.ts +2 -12
- package/dist/github/githubAPI.d.ts +4 -1
- package/dist/github/history.d.ts +6 -2
- package/dist/github/issues/fetchers.d.ts +7 -0
- package/dist/github/issues/helpers.d.ts +32 -0
- package/dist/github/issues/orchestrator.d.ts +4 -0
- package/dist/github/issues/types.d.ts +72 -0
- package/dist/github/issues.d.ts +3 -0
- package/dist/github/prContentFetcher/comments.d.ts +11 -0
- package/dist/github/prContentFetcher/commits.d.ts +27 -0
- package/dist/github/prContentFetcher/flags.d.ts +21 -0
- package/dist/github/prContentFetcher/transform.d.ts +5 -0
- package/dist/github/prContentFetcher.d.ts +2 -5
- package/dist/github/pullRequestSearch/restSearch.d.ts +6 -0
- package/dist/github/pullRequestSearch.d.ts +1 -1
- package/dist/github/queryBuilders/base.d.ts +25 -0
- package/dist/github/queryBuilders/codeAndRepo.d.ts +20 -0
- package/dist/github/queryBuilders/issues.d.ts +42 -0
- package/dist/github/queryBuilders/pullRequests.d.ts +13 -0
- package/dist/github/queryBuilders.d.ts +4 -12
- package/dist/github/releases.d.ts +37 -0
- package/dist/github/repoStructure/contentResolution.d.ts +12 -0
- package/dist/github/repoStructure/fetchOrchestration.d.ts +7 -0
- package/dist/github/repoStructure/resultBuilder.d.ts +22 -0
- package/dist/github/repoStructure.d.ts +1 -7
- package/dist/github/repoStructureTree.d.ts +38 -0
- package/dist/github/responseHeaders.d.ts +2 -0
- package/dist/github/searchKeyword.d.ts +2 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.js +35 -40
- package/dist/oql/adapters/github/execute.d.ts +16 -0
- package/dist/oql/adapters/github/provider-diagnostics.d.ts +14 -0
- package/dist/oql/adapters/github/shared.d.ts +75 -0
- package/dist/oql/adapters/github.d.ts +11 -0
- package/dist/oql/adapters/graphView/filters.d.ts +25 -0
- package/dist/oql/adapters/graphView/nativeEdges.d.ts +5 -0
- package/dist/oql/adapters/graphView.d.ts +17 -16
- package/dist/oql/adapters/local/code.d.ts +3 -0
- package/dist/oql/adapters/local/codeBoolean.d.ts +3 -0
- package/dist/oql/adapters/local/fileRowOps.d.ts +11 -0
- package/dist/oql/adapters/local/files.d.ts +3 -0
- package/dist/oql/adapters/local/filesBoolean.d.ts +10 -0
- package/dist/oql/adapters/local/filesContentLeaf.d.ts +12 -0
- package/dist/oql/adapters/local/filesUniverse.d.ts +6 -0
- package/dist/oql/adapters/local/findToolType.d.ts +10 -0
- package/dist/oql/adapters/local/predicates.d.ts +18 -0
- package/dist/oql/adapters/local/scope.d.ts +14 -0
- package/dist/oql/adapters/local/searchToolType.d.ts +7 -0
- package/dist/oql/adapters/local/structureContent.d.ts +6 -0
- package/dist/oql/adapters/local/types.d.ts +34 -0
- package/dist/oql/adapters/local.d.ts +3 -7
- package/dist/oql/adapters/researchTargets/diff.d.ts +16 -0
- package/dist/oql/adapters/researchTargets/graph.d.ts +3 -0
- package/dist/oql/adapters/researchTargets/history.d.ts +20 -0
- package/dist/oql/adapters/researchTargets/pagination.d.ts +54 -0
- package/dist/oql/adapters/researchTargets/repositories.d.ts +4 -0
- package/dist/oql/adapters/researchTargets/research.d.ts +3 -0
- package/dist/oql/adapters/researchTargets/rows.d.ts +16 -0
- package/dist/oql/adapters/researchTargets/semantics.d.ts +3 -0
- package/dist/oql/adapters/researchTargets/shared.d.ts +11 -0
- package/dist/oql/adapters/researchTargets.d.ts +4 -46
- package/dist/oql/defaults.d.ts +1 -1
- package/dist/oql/index.js +34 -39
- package/dist/oql/normalize/batch.d.ts +2 -0
- package/dist/oql/normalize/materialize.d.ts +2 -0
- package/dist/oql/normalize/params.d.ts +2 -0
- package/dist/oql/normalize/query.d.ts +2 -0
- package/dist/oql/normalize/scope.d.ts +2 -0
- package/dist/oql/normalize/shared.d.ts +7 -0
- package/dist/oql/normalize/source.d.ts +2 -0
- package/dist/oql/normalize/where.d.ts +2 -0
- package/dist/oql/normalize.d.ts +19 -4
- package/dist/oql/planner/planDiagnostics.d.ts +13 -0
- package/dist/oql/planner/predicateRouting.d.ts +35 -0
- package/dist/oql/predicateUtils.d.ts +3 -0
- package/dist/oql/research/analyze/manifest-scan.d.ts +4 -0
- package/dist/oql/research/analyze/source-graph.d.ts +7 -0
- package/dist/oql/research/analyze/symbol-scoring.d.ts +4 -0
- package/dist/oql/research/analyze/types.d.ts +163 -0
- package/dist/oql/research/analyze/utils.d.ts +16 -0
- package/dist/oql/research/analyze.d.ts +2 -133
- package/dist/oql/research/packets/builders.d.ts +4 -0
- package/dist/oql/research/packets/types.d.ts +91 -0
- package/dist/oql/research/packets.d.ts +21 -80
- package/dist/oql/run/batch.d.ts +3 -0
- package/dist/oql/run/continuations/records.d.ts +19 -0
- package/dist/oql/run/continuations/registry.d.ts +22 -0
- package/dist/oql/run/continuations/semantics.d.ts +3 -0
- package/dist/oql/run/continuations/types.d.ts +12 -0
- package/dist/oql/run/dryRun.d.ts +11 -0
- package/dist/oql/run/paths.d.ts +15 -0
- package/dist/oql/run/proofGrades.d.ts +8 -0
- package/dist/oql/run/select.d.ts +10 -0
- package/dist/oql/run/single.d.ts +22 -0
- package/dist/oql/run.d.ts +4 -31
- package/dist/oql/schema/predicates.d.ts +12 -0
- package/dist/oql/schema.d.ts +50 -35
- package/dist/oql/schemeText.d.ts +10 -13
- package/dist/oql/shorthand/predicates.d.ts +15 -0
- package/dist/oql/shorthand/query-controls.d.ts +18 -0
- package/dist/oql/shorthand/target-params.d.ts +9 -0
- package/dist/oql/shorthand/types.d.ts +159 -0
- package/dist/oql/shorthand/utils.d.ts +7 -0
- package/dist/oql/shorthand.d.ts +2 -171
- package/dist/oql/targetParams.d.ts +0 -13
- package/dist/oql/transformers/github/code.d.ts +1 -9
- package/dist/oql/types/diagnostics.d.ts +22 -0
- package/dist/oql/types/envelope.d.ts +78 -0
- package/dist/oql/types/guards.d.ts +9 -0
- package/dist/oql/types/planner.d.ts +46 -0
- package/dist/oql/types/predicates.d.ts +93 -0
- package/dist/oql/types/query.d.ts +143 -0
- package/dist/oql/types/recordData.d.ts +127 -0
- package/dist/oql/types/recordRows.d.ts +48 -0
- package/dist/oql/types/results.d.ts +118 -0
- package/dist/oql/types/targets.d.ts +22 -0
- package/dist/oql/types.d.ts +17 -640
- package/dist/providers/github/paginationMetadata.d.ts +12 -0
- package/dist/providers/providerResults.d.ts +0 -1
- package/dist/schema.js +2 -2
- package/dist/scheme/pagination.d.ts +65 -0
- package/dist/shared/config/index.js +1 -1
- package/dist/shared/credentials/index.js +2 -2
- package/dist/shared/credentials/testing.js +1 -1
- package/dist/shared/languageSelectors/classify.d.ts +15 -0
- package/dist/shared/languageSelectors/data.d.ts +12 -0
- package/dist/shared/languageSelectors.d.ts +3 -23
- package/dist/shared/paths.d.ts +0 -4
- package/dist/shared/paths.js +1 -1
- package/dist/shared/session/index.js +1 -1
- package/dist/shared/session/statsDefaults.d.ts +1 -2
- package/dist/tools/directToolCatalog/toolCatalogDefinitions.d.ts +68 -0
- package/dist/tools/directToolCatalog/toolCommandPatternQueries.d.ts +4 -0
- package/dist/tools/directToolCatalog/toolCommandPatterns.d.ts +4 -0
- package/dist/tools/directToolCatalog/toolInputPreparation.d.ts +12 -0
- package/dist/tools/directToolCatalog/toolSchemaIntrospection.d.ts +19 -0
- package/dist/tools/directToolCatalog.meta.d.ts +10 -67
- package/dist/tools/github_clone_repo/cache.d.ts +1 -5
- package/dist/tools/github_clone_repo/cachePaths.d.ts +5 -0
- package/dist/tools/github_fetch_content/finalizer/entryParsers.d.ts +9 -0
- package/dist/tools/github_fetch_content/finalizer/types.d.ts +101 -0
- package/dist/tools/github_fetch_content/finalizer.d.ts +1 -7
- package/dist/tools/github_fetch_content/scheme.d.ts +42 -9
- package/dist/tools/github_fetch_content/types.d.ts +1 -2
- package/dist/tools/github_search_code/execution.d.ts +9 -0
- package/dist/tools/github_search_code/finalizer/build.d.ts +4 -0
- package/dist/tools/github_search_code/finalizer/groups.d.ts +23 -0
- package/dist/tools/github_search_code/finalizer/ranking.d.ts +12 -0
- package/dist/tools/github_search_code/finalizer.d.ts +2 -6
- package/dist/tools/github_search_code/scheme.d.ts +29 -2
- package/dist/tools/github_search_pull_requests/contentResponse/commentsShaping.d.ts +68 -0
- package/dist/tools/github_search_pull_requests/contentResponse/fileSurfaces.d.ts +52 -0
- package/dist/tools/github_search_pull_requests/contentResponse/nextCalls.d.ts +17 -0
- package/dist/tools/github_search_pull_requests/contentResponse/pagination.d.ts +63 -0
- package/dist/tools/github_search_pull_requests/contentResponse.d.ts +1 -15
- package/dist/tools/github_search_pull_requests/execution/commitsMode.d.ts +4 -0
- package/dist/tools/github_search_pull_requests/execution/issuesMode.d.ts +4 -0
- package/dist/tools/github_search_pull_requests/execution/pullRequestsMode.d.ts +4 -0
- package/dist/tools/github_search_pull_requests/execution/releasesMode.d.ts +4 -0
- package/dist/tools/github_search_pull_requests/execution/types.d.ts +6 -0
- package/dist/tools/github_search_pull_requests/execution.d.ts +1 -4
- package/dist/tools/github_search_pull_requests/scheme.d.ts +11 -1
- package/dist/tools/github_search_repos/execution/pagination.d.ts +39 -0
- package/dist/tools/github_search_repos/execution/queryVariants.d.ts +38 -0
- package/dist/tools/github_search_repos/execution/ranking.d.ts +4 -0
- package/dist/tools/github_search_repos/execution.d.ts +3 -71
- package/dist/tools/github_search_repos/scheme.d.ts +8 -0
- package/dist/tools/github_view_repo_structure/types.d.ts +2 -0
- package/dist/tools/local_fetch_content/fetchContent/extraction.d.ts +15 -0
- package/dist/tools/local_fetch_content/fetchContent/pagination.d.ts +38 -0
- package/dist/tools/local_fetch_content/fetchContent/validation.d.ts +26 -0
- package/dist/tools/local_fetch_content/fetchContent.d.ts +2 -0
- package/dist/tools/local_fetch_content/scheme.d.ts +25 -1
- package/dist/tools/local_find_files/scheme.d.ts +32 -0
- package/dist/tools/local_ripgrep/rankingProfile/rankingProfiles.d.ts +70 -0
- package/dist/tools/local_ripgrep/rankingProfile/rankingResults.d.ts +47 -0
- package/dist/tools/local_ripgrep/rankingProfile/rankingScoring.d.ts +41 -0
- package/dist/tools/local_ripgrep/rankingProfile.d.ts +16 -95
- package/dist/tools/local_ripgrep/ripgrepResultBuilder/buildResult.d.ts +10 -0
- package/dist/tools/local_ripgrep/ripgrepResultBuilder/searchNext.d.ts +46 -0
- package/dist/tools/local_ripgrep/ripgrepResultBuilder.d.ts +2 -18
- package/dist/tools/local_ripgrep/scheme.d.ts +95 -0
- package/dist/tools/local_view_structure/scheme.d.ts +31 -0
- package/dist/tools/lsp/semantic_content/scheme.d.ts +61 -0
- package/dist/tools/lsp/semantic_content/semanticAnchored.d.ts +7 -0
- package/dist/tools/lsp/semantic_content/semanticEnvelopes/callEnvelopes.d.ts +5 -0
- package/dist/tools/lsp/semantic_content/semanticEnvelopes/envelopeHelpers.d.ts +20 -0
- package/dist/tools/lsp/semantic_content/semanticEnvelopes/locationEnvelopes.d.ts +13 -0
- package/dist/tools/lsp/semantic_content/semanticEnvelopes.d.ts +3 -0
- package/dist/tools/lsp/semantic_content/semanticFileOps/anchor.d.ts +24 -0
- package/dist/tools/lsp/semantic_content/semanticFileOps/documentSymbols.d.ts +27 -0
- package/dist/tools/lsp/semantic_content/semanticFileOps/workspaceSymbolsAndDiagnostics.d.ts +20 -0
- package/dist/tools/lsp/semantic_content/semanticFileOps.d.ts +8 -0
- package/dist/tools/lsp/semantic_content/semanticPresentation.d.ts +53 -0
- package/dist/tools/lsp/shared/semanticTypes.d.ts +6 -0
- package/dist/tools/package_search/execution.d.ts +8 -0
- package/dist/tools/package_search/scheme.d.ts +43 -2
- package/dist/tools/providerMappers/codeSearch.d.ts +66 -0
- package/dist/tools/providerMappers/fileContent.d.ts +28 -0
- package/dist/tools/providerMappers/pullRequests.d.ts +158 -0
- package/dist/tools/providerMappers/repoSearch.d.ts +30 -0
- package/dist/tools/providerMappers/repoStructure.d.ts +20 -0
- package/dist/tools/providerMappers/shared.d.ts +23 -0
- package/dist/tools/providerMappers.d.ts +9 -294
- package/dist/tools/toolConfig.d.ts +0 -2
- package/dist/tools/toolMetadata/descriptionOverrides.d.ts +4 -0
- package/dist/tools/toolSchemaImports.d.ts +13 -0
- package/dist/utils/contextUtils.d.ts +5 -16
- package/dist/utils/core/types.d.ts +2 -24
- package/dist/utils/exec/spawn/env.d.ts +5 -0
- package/dist/utils/exec/spawn/wrappers.d.ts +29 -0
- package/dist/utils/exec/spawn.d.ts +2 -34
- package/dist/utils/file/toolHelpers.d.ts +12 -0
- package/dist/utils/http/cache/conditional.d.ts +21 -0
- package/dist/utils/http/cache/dataCache.d.ts +6 -0
- package/dist/utils/http/cache/key.d.ts +1 -0
- package/dist/utils/http/cache/management.d.ts +9 -0
- package/dist/utils/http/cache/store.d.ts +28 -0
- package/dist/utils/http/cache.d.ts +4 -16
- package/dist/utils/markdownOutline.d.ts +0 -2
- package/dist/utils/package/npm/npmDeprecation.d.ts +5 -0
- package/dist/utils/package/npm/npmDetailsFetchers.d.ts +15 -0
- package/dist/utils/package/npm/npmMappers.d.ts +12 -0
- package/dist/utils/package/npm/npmRegistry.d.ts +79 -0
- package/dist/utils/package/npm/npmSearchStrategies.d.ts +6 -0
- package/dist/utils/package/npm.d.ts +2 -8
- package/dist/utils/pagination/boundary.d.ts +5 -5
- package/dist/utils/response/bulk/pagination.d.ts +6 -0
- package/dist/utils/response/bulk/queries.d.ts +19 -0
- package/dist/utils/response/bulk/response.d.ts +4 -0
- package/dist/utils/response/bulk.d.ts +2 -6
- package/package.json +42 -35
- package/dist/tools/local_binary_inspect/archiveOps.d.ts +0 -24
- package/dist/tools/local_binary_inspect/binaryInspector.d.ts +0 -86
- package/dist/tools/local_binary_inspect/binaryOps.d.ts +0 -27
- package/dist/tools/local_binary_inspect/decompressOps.d.ts +0 -16
- package/dist/tools/local_binary_inspect/execution.d.ts +0 -4
- package/dist/tools/local_binary_inspect/scheme.d.ts +0 -144
- package/dist/tools/local_ripgrep/lspBoost.d.ts +0 -54
- package/dist/utils/parsers/ripgrep.d.ts +0 -11
|
@@ -1,80 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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,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,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
|
|
2
|
-
import { type
|
|
3
|
-
export
|
|
4
|
-
|
|
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;
|
package/dist/oql/schema.d.ts
CHANGED
|
@@ -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,10 +93,10 @@ export declare const QueryControlsSchema: z.ZodObject<{
|
|
|
92
93
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
93
94
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
94
95
|
path: "path";
|
|
96
|
+
modified: "modified";
|
|
95
97
|
size: "size";
|
|
96
98
|
created: "created";
|
|
97
99
|
name: "name";
|
|
98
|
-
modified: "modified";
|
|
99
100
|
accessed: "accessed";
|
|
100
101
|
relevance: "relevance";
|
|
101
102
|
matchCount: "matchCount";
|
|
@@ -160,11 +161,13 @@ export declare const OqlQuerySchema: z.ZodObject<{
|
|
|
160
161
|
regex: z.ZodOptional<z.ZodBoolean>;
|
|
161
162
|
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
162
163
|
}, z.core.$strict>>;
|
|
163
|
-
contentView: z.ZodOptional<z.ZodEnum<{
|
|
164
|
+
contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
164
165
|
compact: "compact";
|
|
165
|
-
symbols: "symbols";
|
|
166
166
|
exact: "exact";
|
|
167
|
-
|
|
167
|
+
none: "none";
|
|
168
|
+
standard: "standard";
|
|
169
|
+
symbols: "symbols";
|
|
170
|
+
}>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
|
|
168
171
|
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
169
172
|
charLength: z.ZodOptional<z.ZodNumber>;
|
|
170
173
|
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -206,10 +209,10 @@ export declare const OqlQuerySchema: z.ZodObject<{
|
|
|
206
209
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
207
210
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
208
211
|
path: "path";
|
|
212
|
+
modified: "modified";
|
|
209
213
|
size: "size";
|
|
210
214
|
created: "created";
|
|
211
215
|
name: "name";
|
|
212
|
-
modified: "modified";
|
|
213
216
|
accessed: "accessed";
|
|
214
217
|
relevance: "relevance";
|
|
215
218
|
matchCount: "matchCount";
|
|
@@ -283,11 +286,13 @@ export declare const OqlBatchSchema: z.ZodObject<{
|
|
|
283
286
|
regex: z.ZodOptional<z.ZodBoolean>;
|
|
284
287
|
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
285
288
|
}, z.core.$strict>>;
|
|
286
|
-
contentView: z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
287
290
|
compact: "compact";
|
|
288
|
-
symbols: "symbols";
|
|
289
291
|
exact: "exact";
|
|
290
|
-
|
|
292
|
+
none: "none";
|
|
293
|
+
standard: "standard";
|
|
294
|
+
symbols: "symbols";
|
|
295
|
+
}>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
|
|
291
296
|
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
292
297
|
charLength: z.ZodOptional<z.ZodNumber>;
|
|
293
298
|
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -329,10 +334,10 @@ export declare const OqlBatchSchema: z.ZodObject<{
|
|
|
329
334
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
330
335
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
331
336
|
path: "path";
|
|
337
|
+
modified: "modified";
|
|
332
338
|
size: "size";
|
|
333
339
|
created: "created";
|
|
334
340
|
name: "name";
|
|
335
|
-
modified: "modified";
|
|
336
341
|
accessed: "accessed";
|
|
337
342
|
relevance: "relevance";
|
|
338
343
|
matchCount: "matchCount";
|
|
@@ -412,11 +417,13 @@ export declare const OqlCanonicalInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
412
417
|
regex: z.ZodOptional<z.ZodBoolean>;
|
|
413
418
|
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
414
419
|
}, z.core.$strict>>;
|
|
415
|
-
contentView: z.ZodOptional<z.ZodEnum<{
|
|
420
|
+
contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
416
421
|
compact: "compact";
|
|
417
|
-
symbols: "symbols";
|
|
418
422
|
exact: "exact";
|
|
419
|
-
|
|
423
|
+
none: "none";
|
|
424
|
+
standard: "standard";
|
|
425
|
+
symbols: "symbols";
|
|
426
|
+
}>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
|
|
420
427
|
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
421
428
|
charLength: z.ZodOptional<z.ZodNumber>;
|
|
422
429
|
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -458,10 +465,10 @@ export declare const OqlCanonicalInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
458
465
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
459
466
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
460
467
|
path: "path";
|
|
468
|
+
modified: "modified";
|
|
461
469
|
size: "size";
|
|
462
470
|
created: "created";
|
|
463
471
|
name: "name";
|
|
464
|
-
modified: "modified";
|
|
465
472
|
accessed: "accessed";
|
|
466
473
|
relevance: "relevance";
|
|
467
474
|
matchCount: "matchCount";
|
|
@@ -534,11 +541,13 @@ export declare const OqlCanonicalInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
534
541
|
regex: z.ZodOptional<z.ZodBoolean>;
|
|
535
542
|
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
536
543
|
}, z.core.$strict>>;
|
|
537
|
-
contentView: z.ZodOptional<z.ZodEnum<{
|
|
544
|
+
contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
538
545
|
compact: "compact";
|
|
539
|
-
symbols: "symbols";
|
|
540
546
|
exact: "exact";
|
|
541
|
-
|
|
547
|
+
none: "none";
|
|
548
|
+
standard: "standard";
|
|
549
|
+
symbols: "symbols";
|
|
550
|
+
}>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
|
|
542
551
|
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
543
552
|
charLength: z.ZodOptional<z.ZodNumber>;
|
|
544
553
|
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -580,10 +589,10 @@ export declare const OqlCanonicalInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
580
589
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
581
590
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
582
591
|
path: "path";
|
|
592
|
+
modified: "modified";
|
|
583
593
|
size: "size";
|
|
584
594
|
created: "created";
|
|
585
595
|
name: "name";
|
|
586
|
-
modified: "modified";
|
|
587
596
|
accessed: "accessed";
|
|
588
597
|
relevance: "relevance";
|
|
589
598
|
matchCount: "matchCount";
|
|
@@ -654,11 +663,13 @@ export declare const OqlDisplayQuerySchema: z.ZodObject<{
|
|
|
654
663
|
regex: z.ZodOptional<z.ZodBoolean>;
|
|
655
664
|
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
656
665
|
}, z.core.$strict>>;
|
|
657
|
-
contentView: z.ZodOptional<z.ZodEnum<{
|
|
666
|
+
contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
658
667
|
compact: "compact";
|
|
659
|
-
symbols: "symbols";
|
|
660
668
|
exact: "exact";
|
|
661
|
-
|
|
669
|
+
none: "none";
|
|
670
|
+
standard: "standard";
|
|
671
|
+
symbols: "symbols";
|
|
672
|
+
}>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
|
|
662
673
|
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
663
674
|
charLength: z.ZodOptional<z.ZodNumber>;
|
|
664
675
|
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -700,10 +711,10 @@ export declare const OqlDisplayQuerySchema: z.ZodObject<{
|
|
|
700
711
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
701
712
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
702
713
|
path: "path";
|
|
714
|
+
modified: "modified";
|
|
703
715
|
size: "size";
|
|
704
716
|
created: "created";
|
|
705
717
|
name: "name";
|
|
706
|
-
modified: "modified";
|
|
707
718
|
accessed: "accessed";
|
|
708
719
|
relevance: "relevance";
|
|
709
720
|
matchCount: "matchCount";
|
|
@@ -788,11 +799,13 @@ export declare const OqlInputQuerySchema: z.ZodObject<{
|
|
|
788
799
|
regex: z.ZodOptional<z.ZodBoolean>;
|
|
789
800
|
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
790
801
|
}, z.core.$strict>>;
|
|
791
|
-
contentView: z.ZodOptional<z.ZodEnum<{
|
|
802
|
+
contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
792
803
|
compact: "compact";
|
|
793
|
-
symbols: "symbols";
|
|
794
804
|
exact: "exact";
|
|
795
|
-
|
|
805
|
+
none: "none";
|
|
806
|
+
standard: "standard";
|
|
807
|
+
symbols: "symbols";
|
|
808
|
+
}>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
|
|
796
809
|
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
797
810
|
charLength: z.ZodOptional<z.ZodNumber>;
|
|
798
811
|
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -834,10 +847,10 @@ export declare const OqlInputQuerySchema: z.ZodObject<{
|
|
|
834
847
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
835
848
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
836
849
|
path: "path";
|
|
850
|
+
modified: "modified";
|
|
837
851
|
size: "size";
|
|
838
852
|
created: "created";
|
|
839
853
|
name: "name";
|
|
840
|
-
modified: "modified";
|
|
841
854
|
accessed: "accessed";
|
|
842
855
|
relevance: "relevance";
|
|
843
856
|
matchCount: "matchCount";
|
|
@@ -935,11 +948,13 @@ export declare const OqlSearchInputSchema: z.ZodObject<{
|
|
|
935
948
|
regex: z.ZodOptional<z.ZodBoolean>;
|
|
936
949
|
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
937
950
|
}, z.core.$strict>>;
|
|
938
|
-
contentView: z.ZodOptional<z.ZodEnum<{
|
|
951
|
+
contentView: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
939
952
|
compact: "compact";
|
|
940
|
-
symbols: "symbols";
|
|
941
953
|
exact: "exact";
|
|
942
|
-
|
|
954
|
+
none: "none";
|
|
955
|
+
standard: "standard";
|
|
956
|
+
symbols: "symbols";
|
|
957
|
+
}>, z.ZodTransform<"none" | "standard" | "symbols", "compact" | "exact" | "none" | "standard" | "symbols">>>;
|
|
943
958
|
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
944
959
|
charLength: z.ZodOptional<z.ZodNumber>;
|
|
945
960
|
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -981,10 +996,10 @@ export declare const OqlSearchInputSchema: z.ZodObject<{
|
|
|
981
996
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
982
997
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
983
998
|
path: "path";
|
|
999
|
+
modified: "modified";
|
|
984
1000
|
size: "size";
|
|
985
1001
|
created: "created";
|
|
986
1002
|
name: "name";
|
|
987
|
-
modified: "modified";
|
|
988
1003
|
accessed: "accessed";
|
|
989
1004
|
relevance: "relevance";
|
|
990
1005
|
matchCount: "matchCount";
|