@octocodeai/octocode-tools-core 17.0.2 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +266 -123
- package/dist/direct.d.ts +1 -1
- package/dist/direct.js +51 -36
- package/dist/github/canonicalRepo.d.ts +14 -0
- package/dist/github/codeSearch/matchPositions.d.ts +11 -0
- package/dist/github/codeSearch.d.ts +2 -1
- package/dist/github/compare.d.ts +51 -0
- package/dist/github/dateWindow.d.ts +4 -0
- package/dist/github/discussions.d.ts +45 -0
- package/dist/github/githubAPI.d.ts +7 -13
- package/dist/github/history/commitFiles.d.ts +39 -0
- package/dist/github/history.d.ts +1 -0
- package/dist/github/issues/types.d.ts +8 -8
- package/dist/github/prTransformation.d.ts +24 -25
- package/dist/github/queryBuilders/base.d.ts +0 -1
- package/dist/github/queryBuilders/issues.d.ts +0 -6
- package/dist/github/releases.d.ts +9 -1
- package/dist/github/responseHeaders.d.ts +6 -0
- package/dist/index.d.ts +7 -6
- package/dist/index.js +55 -40
- package/dist/providers/github/githubPullRequests.d.ts +9 -0
- package/dist/providers/github/paginationMetadata.d.ts +6 -5
- package/dist/providers/providerQueries.d.ts +11 -6
- package/dist/providers/providerResults.d.ts +9 -1
- package/dist/schema.d.ts +0 -1
- package/dist/schema.js +1 -2
- package/dist/scheme/pagination.d.ts +5 -13
- package/dist/scheme/responseEnvelope.d.ts +28 -22
- package/dist/security/bridge.d.ts +3 -2
- package/dist/shared/config/index.d.ts +0 -1
- package/dist/shared/config/index.js +1 -1
- package/dist/shared/languageSelectors/classify.d.ts +2 -2
- package/dist/shared/languageSelectors/data.d.ts +4 -4
- package/dist/shared/languageSelectors.d.ts +1 -1
- package/dist/shared/paths.d.ts +1 -4
- package/dist/tools/directToolCatalog/toolCatalogDefinitions.d.ts +10 -11
- package/dist/tools/directToolCatalog/toolCatalogFormatters.d.ts +5 -0
- package/dist/tools/directToolCatalog.meta.d.ts +1 -0
- package/dist/tools/github_clone_repo/contentSize.d.ts +9 -0
- package/dist/tools/github_clone_repo/scheme.d.ts +28 -80
- package/dist/tools/github_fetch_content/finalizer/types.d.ts +4 -3
- package/dist/tools/github_fetch_content/scheme.d.ts +92 -140
- package/dist/tools/github_fetch_content/types.d.ts +2 -1
- package/dist/tools/github_search_code/scheme.d.ts +39 -87
- package/dist/tools/github_search_discussions/execution.d.ts +15 -0
- package/dist/tools/github_search_discussions/scheme.d.ts +16 -0
- package/dist/tools/github_search_pull_requests/contentResponse/fileSurfaces.d.ts +3 -18
- package/dist/tools/github_search_pull_requests/scheme.d.ts +97 -119
- package/dist/tools/github_search_pull_requests/splitExecutions.d.ts +8 -0
- package/dist/tools/github_search_pull_requests/splitSchemes.d.ts +219 -0
- package/dist/tools/github_search_pull_requests/types.d.ts +28 -29
- package/dist/tools/github_search_repos/execution.d.ts +0 -2
- package/dist/tools/github_search_repos/scheme.d.ts +36 -64
- package/dist/tools/github_view_repo_structure/scheme.d.ts +37 -66
- package/dist/tools/local_dead_code/deadCodeScan.d.ts +26 -0
- package/dist/tools/local_dead_code/entrypoints.d.ts +16 -0
- package/dist/tools/local_dead_code/execution.d.ts +4 -0
- package/dist/tools/local_dead_code/graphBuilder.d.ts +43 -0
- package/dist/tools/local_dead_code/importResolver.d.ts +6 -0
- package/dist/tools/local_dead_code/local_dead_code.d.ts +5 -0
- package/dist/tools/local_dead_code/reachability.d.ts +21 -0
- package/dist/tools/local_dead_code/retention.d.ts +22 -0
- package/dist/tools/local_dead_code/scheme.d.ts +51 -0
- package/dist/tools/local_dead_code/types.d.ts +56 -0
- package/dist/tools/local_fetch_content/execution.d.ts +0 -1
- package/dist/tools/local_fetch_content/fetchContent/extraction.d.ts +6 -0
- package/dist/tools/local_fetch_content/fetchContent/validation.d.ts +9 -1
- package/dist/tools/local_fetch_content/fetchContent.d.ts +0 -1
- package/dist/tools/local_fetch_content/scheme.d.ts +28 -90
- package/dist/tools/local_find_files/execution.d.ts +0 -1
- package/dist/tools/local_find_files/findFiles.d.ts +0 -3
- package/dist/tools/local_find_files/findFilesNext.d.ts +26 -0
- package/dist/tools/local_find_files/pathPatternBraces.d.ts +20 -0
- package/dist/tools/local_find_files/scheme.d.ts +19 -81
- package/dist/tools/local_ripgrep/captureBudget.d.ts +25 -0
- package/dist/tools/local_ripgrep/rankingProfile/rankingProfiles.d.ts +1 -0
- package/dist/tools/local_ripgrep/rankingProfile/rankingResults.d.ts +1 -0
- package/dist/tools/local_ripgrep/ripgrepResultBuilder/searchNext.d.ts +1 -1
- package/dist/tools/local_ripgrep/scheme.d.ts +89 -190
- package/dist/tools/local_view_structure/execution.d.ts +0 -1
- package/dist/tools/local_view_structure/local_view_structure.d.ts +0 -1
- package/dist/tools/local_view_structure/scheme.d.ts +34 -87
- package/dist/tools/local_view_structure/structureFilters.d.ts +2 -4
- package/dist/tools/local_view_structure/structureResponse.d.ts +1 -0
- package/dist/tools/local_view_structure/viewStructureNext.d.ts +25 -0
- package/dist/tools/lsp/semantic_content/index.d.ts +2 -1
- package/dist/tools/lsp/semantic_content/scheme.d.ts +167 -642
- package/dist/tools/lsp/semantic_content/semanticAnchored.d.ts +8 -2
- package/dist/tools/lsp/semantic_content/semanticEnvelopes/locationEnvelopes.d.ts +2 -1
- package/dist/tools/lsp/semantic_content/semanticFileOps/anchor.d.ts +17 -1
- package/dist/tools/lsp/semantic_content/semanticNext.d.ts +2 -0
- package/dist/tools/lsp/semantic_content/semanticPresentation.d.ts +1 -1
- package/dist/tools/lsp/shared/callHierarchyTraversal.d.ts +14 -2
- package/dist/tools/lsp/shared/semanticTypes.d.ts +14 -1
- package/dist/tools/package_search/execution.d.ts +9 -6
- package/dist/tools/package_search/queryHelpers.d.ts +8 -0
- package/dist/tools/package_search/scheme.d.ts +30 -86
- package/dist/tools/providerMappers/codeSearch.d.ts +0 -1
- package/dist/tools/providerMappers/pullRequests.d.ts +0 -13
- package/dist/tools/providerMappers/repoSearch.d.ts +1 -5
- package/dist/tools/providerMappers/repoStructure.d.ts +4 -0
- package/dist/tools/toolCatalogFactory.d.ts +25 -0
- package/dist/tools/toolConfig.d.ts +9 -24
- package/dist/tools/toolNames.d.ts +2 -2
- package/dist/tools/toolSchemaImports.d.ts +3 -1
- package/dist/types/execution.d.ts +1 -0
- package/dist/types/toolOutput.d.ts +38 -0
- package/dist/utils/contextUtils.d.ts +6 -0
- package/dist/utils/core/types.d.ts +4 -0
- package/dist/utils/file/configFiles.d.ts +70 -0
- package/dist/utils/jsSymbolNames.d.ts +6 -0
- package/package.json +4 -8
- package/dist/oql/adapters/compile.d.ts +0 -25
- package/dist/oql/adapters/github/execute.d.ts +0 -16
- package/dist/oql/adapters/github/provider-diagnostics.d.ts +0 -14
- package/dist/oql/adapters/github/shared.d.ts +0 -75
- package/dist/oql/adapters/github.d.ts +0 -14
- package/dist/oql/adapters/graphProof.d.ts +0 -6
- package/dist/oql/adapters/graphView/filters.d.ts +0 -25
- package/dist/oql/adapters/graphView/nativeEdges.d.ts +0 -5
- package/dist/oql/adapters/graphView.d.ts +0 -29
- package/dist/oql/adapters/local/code.d.ts +0 -3
- package/dist/oql/adapters/local/codeBoolean.d.ts +0 -3
- package/dist/oql/adapters/local/fileRowOps.d.ts +0 -11
- package/dist/oql/adapters/local/files.d.ts +0 -3
- package/dist/oql/adapters/local/filesBoolean.d.ts +0 -10
- package/dist/oql/adapters/local/filesContentLeaf.d.ts +0 -12
- package/dist/oql/adapters/local/filesUniverse.d.ts +0 -6
- package/dist/oql/adapters/local/findToolType.d.ts +0 -10
- package/dist/oql/adapters/local/predicates.d.ts +0 -18
- package/dist/oql/adapters/local/scope.d.ts +0 -14
- package/dist/oql/adapters/local/searchToolType.d.ts +0 -7
- package/dist/oql/adapters/local/structureContent.d.ts +0 -6
- package/dist/oql/adapters/local/types.d.ts +0 -34
- package/dist/oql/adapters/local.d.ts +0 -4
- package/dist/oql/adapters/materialize.d.ts +0 -11
- package/dist/oql/adapters/pagination.d.ts +0 -21
- package/dist/oql/adapters/researchTargets/diff.d.ts +0 -16
- package/dist/oql/adapters/researchTargets/graph.d.ts +0 -3
- package/dist/oql/adapters/researchTargets/history.d.ts +0 -20
- package/dist/oql/adapters/researchTargets/pagination.d.ts +0 -54
- package/dist/oql/adapters/researchTargets/repositories.d.ts +0 -4
- package/dist/oql/adapters/researchTargets/research.d.ts +0 -3
- package/dist/oql/adapters/researchTargets/rows.d.ts +0 -16
- package/dist/oql/adapters/researchTargets/semantics.d.ts +0 -3
- package/dist/oql/adapters/researchTargets/shared.d.ts +0 -11
- package/dist/oql/adapters/researchTargets.d.ts +0 -8
- package/dist/oql/adapters/resultMap.d.ts +0 -27
- package/dist/oql/adapters/ruleYaml.d.ts +0 -11
- package/dist/oql/adapters/runner.d.ts +0 -21
- package/dist/oql/capabilities.d.ts +0 -31
- package/dist/oql/defaults.d.ts +0 -26
- package/dist/oql/diagnostics.d.ts +0 -25
- package/dist/oql/diffLanes.d.ts +0 -29
- package/dist/oql/envelope.d.ts +0 -21
- package/dist/oql/features.d.ts +0 -7
- package/dist/oql/index.d.ts +0 -27
- package/dist/oql/index.js +0 -47
- package/dist/oql/normalize/batch.d.ts +0 -2
- package/dist/oql/normalize/materialize.d.ts +0 -2
- package/dist/oql/normalize/params.d.ts +0 -2
- package/dist/oql/normalize/query.d.ts +0 -2
- package/dist/oql/normalize/scope.d.ts +0 -2
- package/dist/oql/normalize/shared.d.ts +0 -7
- package/dist/oql/normalize/source.d.ts +0 -2
- package/dist/oql/normalize/where.d.ts +0 -2
- package/dist/oql/normalize.d.ts +0 -20
- package/dist/oql/planner/planDiagnostics.d.ts +0 -13
- package/dist/oql/planner/predicateRouting.d.ts +0 -35
- package/dist/oql/planner.d.ts +0 -7
- package/dist/oql/predicateUtils.d.ts +0 -3
- package/dist/oql/research/analyze/manifest-scan.d.ts +0 -4
- package/dist/oql/research/analyze/source-graph.d.ts +0 -7
- package/dist/oql/research/analyze/symbol-scoring.d.ts +0 -4
- package/dist/oql/research/analyze/types.d.ts +0 -163
- package/dist/oql/research/analyze/utils.d.ts +0 -16
- package/dist/oql/research/analyze.d.ts +0 -3
- package/dist/oql/research/packets/builders.d.ts +0 -4
- package/dist/oql/research/packets/types.d.ts +0 -91
- package/dist/oql/research/packets.d.ts +0 -21
- package/dist/oql/run/batch.d.ts +0 -3
- package/dist/oql/run/continuations/records.d.ts +0 -19
- package/dist/oql/run/continuations/registry.d.ts +0 -22
- package/dist/oql/run/continuations/semantics.d.ts +0 -3
- package/dist/oql/run/continuations/types.d.ts +0 -12
- package/dist/oql/run/dryRun.d.ts +0 -11
- package/dist/oql/run/paths.d.ts +0 -15
- package/dist/oql/run/proofGrades.d.ts +0 -8
- package/dist/oql/run/select.d.ts +0 -10
- package/dist/oql/run/single.d.ts +0 -22
- package/dist/oql/run.d.ts +0 -5
- package/dist/oql/schema/predicates.d.ts +0 -12
- package/dist/oql/schema.d.ts +0 -1049
- package/dist/oql/schemeText.d.ts +0 -152
- package/dist/oql/shorthand/predicates.d.ts +0 -15
- package/dist/oql/shorthand/query-controls.d.ts +0 -18
- package/dist/oql/shorthand/target-params.d.ts +0 -9
- package/dist/oql/shorthand/types.d.ts +0 -159
- package/dist/oql/shorthand/utils.d.ts +0 -7
- package/dist/oql/shorthand.d.ts +0 -8
- package/dist/oql/targetParams.d.ts +0 -7
- package/dist/oql/transformers/contract.d.ts +0 -19
- package/dist/oql/transformers/github/code.d.ts +0 -9
- package/dist/oql/transformers/github/common.d.ts +0 -14
- package/dist/oql/transformers/language.d.ts +0 -1
- package/dist/oql/transformers/registry.d.ts +0 -16
- package/dist/oql/transformers/types.d.ts +0 -11
- package/dist/oql/types/diagnostics.d.ts +0 -22
- package/dist/oql/types/envelope.d.ts +0 -78
- package/dist/oql/types/guards.d.ts +0 -9
- package/dist/oql/types/planner.d.ts +0 -46
- package/dist/oql/types/predicates.d.ts +0 -93
- package/dist/oql/types/query.d.ts +0 -143
- package/dist/oql/types/recordData.d.ts +0 -127
- package/dist/oql/types/recordRows.d.ts +0 -48
- package/dist/oql/types/results.d.ts +0 -118
- package/dist/oql/types/targets.d.ts +0 -22
- package/dist/oql/types.d.ts +0 -27
- package/dist/tools/oql_search/execution.d.ts +0 -7
- package/dist/tools/toolMetadata/descriptionOverrides.d.ts +0 -4
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { ItemPagination, ToolContinuation } from '../../../scheme/pagination.js';
|
|
3
|
+
import type { BulkToolOutput } from '../../../types/toolOutput.js';
|
|
2
4
|
export declare const LspGetSemanticsQueryDisplaySchema: z.ZodObject<{
|
|
3
5
|
uri: z.ZodOptional<z.ZodString>;
|
|
4
6
|
type: z.ZodDefault<z.ZodEnum<{
|
|
@@ -76,645 +78,168 @@ export declare const BulkLspGetSemanticsQuerySchema: z.ZodObject<{
|
|
|
76
78
|
responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
|
|
77
79
|
queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
78
80
|
}, z.core.$strip>;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
reason: z.ZodString;
|
|
245
|
-
}, z.core.$strip>>;
|
|
246
|
-
}, z.core.$strip>[], z.ZodObject<{
|
|
247
|
-
kind: z.ZodLiteral<"hover">;
|
|
248
|
-
markdown: z.ZodOptional<z.ZodString>;
|
|
249
|
-
text: z.ZodOptional<z.ZodString>;
|
|
250
|
-
range: z.ZodOptional<z.ZodObject<{
|
|
251
|
-
start: z.ZodObject<{
|
|
252
|
-
line: z.ZodNumber;
|
|
253
|
-
character: z.ZodNumber;
|
|
254
|
-
}, z.core.$strip>;
|
|
255
|
-
end: z.ZodObject<{
|
|
256
|
-
line: z.ZodNumber;
|
|
257
|
-
character: z.ZodNumber;
|
|
258
|
-
}, z.core.$strip>;
|
|
259
|
-
}, z.core.$strip>>;
|
|
260
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
261
|
-
kind: z.ZodLiteral<"documentSymbols">;
|
|
262
|
-
symbols: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
263
|
-
name: z.ZodString;
|
|
264
|
-
kind: z.ZodString;
|
|
265
|
-
line: z.ZodNumber;
|
|
266
|
-
character: z.ZodNumber;
|
|
267
|
-
endLine: z.ZodNumber;
|
|
268
|
-
childCount: z.ZodNumber;
|
|
269
|
-
containerName: z.ZodOptional<z.ZodString>;
|
|
270
|
-
}, z.core.$strip>, z.ZodString]>>;
|
|
271
|
-
totalSymbols: z.ZodOptional<z.ZodNumber>;
|
|
272
|
-
topLevelSymbols: z.ZodOptional<z.ZodNumber>;
|
|
273
|
-
empty: z.ZodOptional<z.ZodObject<{
|
|
274
|
-
category: z.ZodEnum<{
|
|
275
|
-
unsupportedOperation: "unsupportedOperation";
|
|
276
|
-
symbolNotFound: "symbolNotFound";
|
|
277
|
-
anchorFailed: "anchorFailed";
|
|
278
|
-
noLocations: "noLocations";
|
|
279
|
-
noReferences: "noReferences";
|
|
280
|
-
noHover: "noHover";
|
|
281
|
-
noCalls: "noCalls";
|
|
282
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
283
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
284
|
-
noDiagnostics: "noDiagnostics";
|
|
285
|
-
}>;
|
|
286
|
-
reason: z.ZodString;
|
|
287
|
-
}, z.core.$strip>>;
|
|
288
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
289
|
-
kind: z.ZodLiteral<"workspaceSymbol">;
|
|
290
|
-
query: z.ZodString;
|
|
291
|
-
symbols: z.ZodArray<z.ZodUnknown>;
|
|
292
|
-
totalSymbols: z.ZodNumber;
|
|
293
|
-
empty: z.ZodOptional<z.ZodObject<{
|
|
294
|
-
category: z.ZodEnum<{
|
|
295
|
-
unsupportedOperation: "unsupportedOperation";
|
|
296
|
-
symbolNotFound: "symbolNotFound";
|
|
297
|
-
anchorFailed: "anchorFailed";
|
|
298
|
-
noLocations: "noLocations";
|
|
299
|
-
noReferences: "noReferences";
|
|
300
|
-
noHover: "noHover";
|
|
301
|
-
noCalls: "noCalls";
|
|
302
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
303
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
304
|
-
noDiagnostics: "noDiagnostics";
|
|
305
|
-
}>;
|
|
306
|
-
reason: z.ZodString;
|
|
307
|
-
}, z.core.$strip>>;
|
|
308
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
309
|
-
kind: z.ZodLiteral<"typeHierarchy">;
|
|
310
|
-
direction: z.ZodEnum<{
|
|
311
|
-
supertypes: "supertypes";
|
|
312
|
-
subtypes: "subtypes";
|
|
313
|
-
}>;
|
|
314
|
-
root: z.ZodOptional<z.ZodUnknown>;
|
|
315
|
-
items: z.ZodArray<z.ZodUnknown>;
|
|
316
|
-
totalItems: z.ZodNumber;
|
|
317
|
-
empty: z.ZodOptional<z.ZodObject<{
|
|
318
|
-
category: z.ZodEnum<{
|
|
319
|
-
unsupportedOperation: "unsupportedOperation";
|
|
320
|
-
symbolNotFound: "symbolNotFound";
|
|
321
|
-
anchorFailed: "anchorFailed";
|
|
322
|
-
noLocations: "noLocations";
|
|
323
|
-
noReferences: "noReferences";
|
|
324
|
-
noHover: "noHover";
|
|
325
|
-
noCalls: "noCalls";
|
|
326
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
327
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
328
|
-
noDiagnostics: "noDiagnostics";
|
|
329
|
-
}>;
|
|
330
|
-
reason: z.ZodString;
|
|
331
|
-
}, z.core.$strip>>;
|
|
332
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
-
kind: z.ZodLiteral<"diagnostic">;
|
|
334
|
-
diagnostics: z.ZodArray<z.ZodUnknown>;
|
|
335
|
-
totalDiagnostics: z.ZodNumber;
|
|
336
|
-
errorCount: z.ZodNumber;
|
|
337
|
-
warningCount: z.ZodNumber;
|
|
338
|
-
empty: z.ZodOptional<z.ZodObject<{
|
|
339
|
-
category: z.ZodEnum<{
|
|
340
|
-
unsupportedOperation: "unsupportedOperation";
|
|
341
|
-
symbolNotFound: "symbolNotFound";
|
|
342
|
-
anchorFailed: "anchorFailed";
|
|
343
|
-
noLocations: "noLocations";
|
|
344
|
-
noReferences: "noReferences";
|
|
345
|
-
noHover: "noHover";
|
|
346
|
-
noCalls: "noCalls";
|
|
347
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
348
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
349
|
-
noDiagnostics: "noDiagnostics";
|
|
350
|
-
}>;
|
|
351
|
-
reason: z.ZodString;
|
|
352
|
-
}, z.core.$strip>>;
|
|
353
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
354
|
-
kind: z.ZodLiteral<"empty">;
|
|
355
|
-
category: z.ZodEnum<{
|
|
356
|
-
unsupportedOperation: "unsupportedOperation";
|
|
357
|
-
symbolNotFound: "symbolNotFound";
|
|
358
|
-
anchorFailed: "anchorFailed";
|
|
359
|
-
noLocations: "noLocations";
|
|
360
|
-
noReferences: "noReferences";
|
|
361
|
-
noHover: "noHover";
|
|
362
|
-
noCalls: "noCalls";
|
|
363
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
364
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
365
|
-
noDiagnostics: "noDiagnostics";
|
|
366
|
-
}>;
|
|
367
|
-
reason: z.ZodString;
|
|
368
|
-
}, z.core.$strip>], "kind">;
|
|
369
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
370
|
-
currentPage: z.ZodNumber;
|
|
371
|
-
totalPages: z.ZodNumber;
|
|
372
|
-
hasMore: z.ZodBoolean;
|
|
373
|
-
nextPage: z.ZodOptional<z.ZodNumber>;
|
|
374
|
-
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
375
|
-
totalItems: z.ZodOptional<z.ZodNumber>;
|
|
376
|
-
perPage: z.ZodOptional<z.ZodNumber>;
|
|
377
|
-
totalFound: z.ZodOptional<z.ZodNumber>;
|
|
378
|
-
returned: z.ZodOptional<z.ZodNumber>;
|
|
379
|
-
totalMatches: z.ZodOptional<z.ZodNumber>;
|
|
380
|
-
reportedTotalMatches: z.ZodOptional<z.ZodNumber>;
|
|
381
|
-
reachableTotalMatches: z.ZodOptional<z.ZodNumber>;
|
|
382
|
-
totalMatchesKind: z.ZodOptional<z.ZodEnum<{
|
|
383
|
-
exact: "exact";
|
|
384
|
-
reported: "reported";
|
|
385
|
-
lowerBound: "lowerBound";
|
|
386
|
-
}>>;
|
|
387
|
-
totalMatchesCapped: z.ZodOptional<z.ZodBoolean>;
|
|
388
|
-
totalResults: z.ZodOptional<z.ZodNumber>;
|
|
389
|
-
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
390
|
-
}, z.core.$strip>>;
|
|
391
|
-
summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
392
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
393
|
-
next: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
394
|
-
tool: z.ZodString;
|
|
395
|
-
query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
396
|
-
why: z.ZodOptional<z.ZodString>;
|
|
397
|
-
confidence: z.ZodOptional<z.ZodEnum<{
|
|
398
|
-
exact: "exact";
|
|
399
|
-
heuristic: "heuristic";
|
|
400
|
-
}>>;
|
|
401
|
-
}, z.core.$strip>>>;
|
|
402
|
-
hints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
403
|
-
}, z.core.$strip>;
|
|
404
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
405
|
-
id: z.ZodString;
|
|
406
|
-
status: z.ZodLiteral<"error">;
|
|
407
|
-
data: z.ZodObject<{
|
|
408
|
-
id: z.ZodOptional<z.ZodString>;
|
|
409
|
-
error: z.ZodString;
|
|
410
|
-
}, z.core.$strip>;
|
|
411
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
412
|
-
id: z.ZodString;
|
|
413
|
-
data: z.ZodObject<{
|
|
414
|
-
type: z.ZodString;
|
|
415
|
-
uri: z.ZodString;
|
|
416
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
417
|
-
structured: "structured";
|
|
418
|
-
compact: "compact";
|
|
419
|
-
}>>;
|
|
420
|
-
resolvedSymbol: z.ZodOptional<z.ZodObject<{
|
|
421
|
-
name: z.ZodString;
|
|
422
|
-
uri: z.ZodString;
|
|
423
|
-
foundAtLine: z.ZodNumber;
|
|
424
|
-
orderHint: z.ZodOptional<z.ZodNumber>;
|
|
425
|
-
}, z.core.$strip>>;
|
|
426
|
-
lsp: z.ZodOptional<z.ZodObject<{
|
|
427
|
-
serverAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
428
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
429
|
-
source: z.ZodOptional<z.ZodString>;
|
|
430
|
-
}, z.core.$strip>>;
|
|
431
|
-
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
432
|
-
kind: z.ZodLiteral<"definition">;
|
|
433
|
-
locations: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
434
|
-
uri: z.ZodString;
|
|
435
|
-
content: z.ZodOptional<z.ZodString>;
|
|
436
|
-
displayRange: z.ZodOptional<z.ZodObject<{
|
|
437
|
-
startLine: z.ZodNumber;
|
|
438
|
-
endLine: z.ZodNumber;
|
|
439
|
-
}, z.core.$strip>>;
|
|
440
|
-
isDefinition: z.ZodOptional<z.ZodBoolean>;
|
|
441
|
-
}, z.core.$strip>, z.ZodString]>>;
|
|
442
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
443
|
-
kind: z.ZodLiteral<"typeDefinition">;
|
|
444
|
-
locations: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
445
|
-
uri: z.ZodString;
|
|
446
|
-
content: z.ZodOptional<z.ZodString>;
|
|
447
|
-
displayRange: z.ZodOptional<z.ZodObject<{
|
|
448
|
-
startLine: z.ZodNumber;
|
|
449
|
-
endLine: z.ZodNumber;
|
|
450
|
-
}, z.core.$strip>>;
|
|
451
|
-
isDefinition: z.ZodOptional<z.ZodBoolean>;
|
|
452
|
-
}, z.core.$strip>, z.ZodString]>>;
|
|
453
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
454
|
-
kind: z.ZodLiteral<"implementation">;
|
|
455
|
-
locations: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
456
|
-
uri: z.ZodString;
|
|
457
|
-
content: z.ZodOptional<z.ZodString>;
|
|
458
|
-
displayRange: z.ZodOptional<z.ZodObject<{
|
|
459
|
-
startLine: z.ZodNumber;
|
|
460
|
-
endLine: z.ZodNumber;
|
|
461
|
-
}, z.core.$strip>>;
|
|
462
|
-
isDefinition: z.ZodOptional<z.ZodBoolean>;
|
|
463
|
-
}, z.core.$strip>, z.ZodString]>>;
|
|
464
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
465
|
-
kind: z.ZodLiteral<"references">;
|
|
466
|
-
locations: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
467
|
-
uri: z.ZodString;
|
|
468
|
-
content: z.ZodOptional<z.ZodString>;
|
|
469
|
-
displayRange: z.ZodOptional<z.ZodObject<{
|
|
470
|
-
startLine: z.ZodNumber;
|
|
471
|
-
endLine: z.ZodNumber;
|
|
472
|
-
}, z.core.$strip>>;
|
|
473
|
-
isDefinition: z.ZodOptional<z.ZodBoolean>;
|
|
474
|
-
}, z.core.$strip>, z.ZodString]>>>;
|
|
475
|
-
byFile: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
476
|
-
uri: z.ZodString;
|
|
477
|
-
count: z.ZodNumber;
|
|
478
|
-
firstLine: z.ZodNumber;
|
|
479
|
-
firstCharacter: z.ZodNumber;
|
|
480
|
-
lines: z.ZodArray<z.ZodNumber>;
|
|
481
|
-
hasDefinition: z.ZodOptional<z.ZodBoolean>;
|
|
482
|
-
}, z.core.$strip>, z.ZodString]>>>;
|
|
483
|
-
totalReferences: z.ZodNumber;
|
|
484
|
-
totalFiles: z.ZodNumber;
|
|
485
|
-
empty: z.ZodOptional<z.ZodObject<{
|
|
486
|
-
category: z.ZodEnum<{
|
|
487
|
-
unsupportedOperation: "unsupportedOperation";
|
|
488
|
-
symbolNotFound: "symbolNotFound";
|
|
489
|
-
anchorFailed: "anchorFailed";
|
|
490
|
-
noLocations: "noLocations";
|
|
491
|
-
noReferences: "noReferences";
|
|
492
|
-
noHover: "noHover";
|
|
493
|
-
noCalls: "noCalls";
|
|
494
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
495
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
496
|
-
noDiagnostics: "noDiagnostics";
|
|
497
|
-
}>;
|
|
498
|
-
reason: z.ZodString;
|
|
499
|
-
}, z.core.$strip>>;
|
|
500
|
-
}, z.core.$strip>, ...z.ZodObject<{
|
|
501
|
-
kind: z.ZodLiteral<"callers" | "callees" | "callHierarchy">;
|
|
502
|
-
root: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
503
|
-
name: z.ZodString;
|
|
504
|
-
kind: z.ZodString;
|
|
505
|
-
uri: z.ZodString;
|
|
506
|
-
line: z.ZodNumber;
|
|
507
|
-
endLine: z.ZodNumber;
|
|
508
|
-
selectionLine: z.ZodOptional<z.ZodNumber>;
|
|
509
|
-
}, z.core.$strip>, z.ZodString]>>;
|
|
510
|
-
direction: z.ZodEnum<{
|
|
511
|
-
incoming: "incoming";
|
|
512
|
-
outgoing: "outgoing";
|
|
513
|
-
both: "both";
|
|
514
|
-
}>;
|
|
515
|
-
calls: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
516
|
-
direction: z.ZodEnum<{
|
|
517
|
-
incoming: "incoming";
|
|
518
|
-
outgoing: "outgoing";
|
|
519
|
-
}>;
|
|
520
|
-
item: z.ZodObject<{
|
|
521
|
-
name: z.ZodString;
|
|
522
|
-
kind: z.ZodString;
|
|
523
|
-
uri: z.ZodString;
|
|
524
|
-
line: z.ZodNumber;
|
|
525
|
-
endLine: z.ZodNumber;
|
|
526
|
-
selectionLine: z.ZodOptional<z.ZodNumber>;
|
|
527
|
-
}, z.core.$strip>;
|
|
528
|
-
ranges: z.ZodArray<z.ZodObject<{
|
|
529
|
-
line: z.ZodNumber;
|
|
530
|
-
character: z.ZodNumber;
|
|
531
|
-
}, z.core.$strip>>;
|
|
532
|
-
rangeCount: z.ZodNumber;
|
|
533
|
-
rangeSampleCount: z.ZodNumber;
|
|
534
|
-
contentPreview: z.ZodOptional<z.ZodString>;
|
|
535
|
-
}, z.core.$strip>, z.ZodString]>>;
|
|
536
|
-
incomingCalls: z.ZodNumber;
|
|
537
|
-
outgoingCalls: z.ZodNumber;
|
|
538
|
-
completeness: z.ZodObject<{
|
|
539
|
-
complete: z.ZodBoolean;
|
|
540
|
-
truncatedByDepth: z.ZodBoolean;
|
|
541
|
-
cycleCount: z.ZodNumber;
|
|
542
|
-
failedRequestCount: z.ZodNumber;
|
|
543
|
-
dynamicCallsExcluded: z.ZodLiteral<true>;
|
|
544
|
-
stdlibCallsExcluded: z.ZodOptional<z.ZodNumber>;
|
|
545
|
-
}, z.core.$strip>;
|
|
546
|
-
empty: z.ZodOptional<z.ZodObject<{
|
|
547
|
-
category: z.ZodEnum<{
|
|
548
|
-
unsupportedOperation: "unsupportedOperation";
|
|
549
|
-
symbolNotFound: "symbolNotFound";
|
|
550
|
-
anchorFailed: "anchorFailed";
|
|
551
|
-
noLocations: "noLocations";
|
|
552
|
-
noReferences: "noReferences";
|
|
553
|
-
noHover: "noHover";
|
|
554
|
-
noCalls: "noCalls";
|
|
555
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
556
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
557
|
-
noDiagnostics: "noDiagnostics";
|
|
558
|
-
}>;
|
|
559
|
-
reason: z.ZodString;
|
|
560
|
-
}, z.core.$strip>>;
|
|
561
|
-
}, z.core.$strip>[], z.ZodObject<{
|
|
562
|
-
kind: z.ZodLiteral<"hover">;
|
|
563
|
-
markdown: z.ZodOptional<z.ZodString>;
|
|
564
|
-
text: z.ZodOptional<z.ZodString>;
|
|
565
|
-
range: z.ZodOptional<z.ZodObject<{
|
|
566
|
-
start: z.ZodObject<{
|
|
567
|
-
line: z.ZodNumber;
|
|
568
|
-
character: z.ZodNumber;
|
|
569
|
-
}, z.core.$strip>;
|
|
570
|
-
end: z.ZodObject<{
|
|
571
|
-
line: z.ZodNumber;
|
|
572
|
-
character: z.ZodNumber;
|
|
573
|
-
}, z.core.$strip>;
|
|
574
|
-
}, z.core.$strip>>;
|
|
575
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
576
|
-
kind: z.ZodLiteral<"documentSymbols">;
|
|
577
|
-
symbols: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
578
|
-
name: z.ZodString;
|
|
579
|
-
kind: z.ZodString;
|
|
580
|
-
line: z.ZodNumber;
|
|
581
|
-
character: z.ZodNumber;
|
|
582
|
-
endLine: z.ZodNumber;
|
|
583
|
-
childCount: z.ZodNumber;
|
|
584
|
-
containerName: z.ZodOptional<z.ZodString>;
|
|
585
|
-
}, z.core.$strip>, z.ZodString]>>;
|
|
586
|
-
totalSymbols: z.ZodOptional<z.ZodNumber>;
|
|
587
|
-
topLevelSymbols: z.ZodOptional<z.ZodNumber>;
|
|
588
|
-
empty: z.ZodOptional<z.ZodObject<{
|
|
589
|
-
category: z.ZodEnum<{
|
|
590
|
-
unsupportedOperation: "unsupportedOperation";
|
|
591
|
-
symbolNotFound: "symbolNotFound";
|
|
592
|
-
anchorFailed: "anchorFailed";
|
|
593
|
-
noLocations: "noLocations";
|
|
594
|
-
noReferences: "noReferences";
|
|
595
|
-
noHover: "noHover";
|
|
596
|
-
noCalls: "noCalls";
|
|
597
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
598
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
599
|
-
noDiagnostics: "noDiagnostics";
|
|
600
|
-
}>;
|
|
601
|
-
reason: z.ZodString;
|
|
602
|
-
}, z.core.$strip>>;
|
|
603
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
604
|
-
kind: z.ZodLiteral<"workspaceSymbol">;
|
|
605
|
-
query: z.ZodString;
|
|
606
|
-
symbols: z.ZodArray<z.ZodUnknown>;
|
|
607
|
-
totalSymbols: z.ZodNumber;
|
|
608
|
-
empty: z.ZodOptional<z.ZodObject<{
|
|
609
|
-
category: z.ZodEnum<{
|
|
610
|
-
unsupportedOperation: "unsupportedOperation";
|
|
611
|
-
symbolNotFound: "symbolNotFound";
|
|
612
|
-
anchorFailed: "anchorFailed";
|
|
613
|
-
noLocations: "noLocations";
|
|
614
|
-
noReferences: "noReferences";
|
|
615
|
-
noHover: "noHover";
|
|
616
|
-
noCalls: "noCalls";
|
|
617
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
618
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
619
|
-
noDiagnostics: "noDiagnostics";
|
|
620
|
-
}>;
|
|
621
|
-
reason: z.ZodString;
|
|
622
|
-
}, z.core.$strip>>;
|
|
623
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
624
|
-
kind: z.ZodLiteral<"typeHierarchy">;
|
|
625
|
-
direction: z.ZodEnum<{
|
|
626
|
-
supertypes: "supertypes";
|
|
627
|
-
subtypes: "subtypes";
|
|
628
|
-
}>;
|
|
629
|
-
root: z.ZodOptional<z.ZodUnknown>;
|
|
630
|
-
items: z.ZodArray<z.ZodUnknown>;
|
|
631
|
-
totalItems: z.ZodNumber;
|
|
632
|
-
empty: z.ZodOptional<z.ZodObject<{
|
|
633
|
-
category: z.ZodEnum<{
|
|
634
|
-
unsupportedOperation: "unsupportedOperation";
|
|
635
|
-
symbolNotFound: "symbolNotFound";
|
|
636
|
-
anchorFailed: "anchorFailed";
|
|
637
|
-
noLocations: "noLocations";
|
|
638
|
-
noReferences: "noReferences";
|
|
639
|
-
noHover: "noHover";
|
|
640
|
-
noCalls: "noCalls";
|
|
641
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
642
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
643
|
-
noDiagnostics: "noDiagnostics";
|
|
644
|
-
}>;
|
|
645
|
-
reason: z.ZodString;
|
|
646
|
-
}, z.core.$strip>>;
|
|
647
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
648
|
-
kind: z.ZodLiteral<"diagnostic">;
|
|
649
|
-
diagnostics: z.ZodArray<z.ZodUnknown>;
|
|
650
|
-
totalDiagnostics: z.ZodNumber;
|
|
651
|
-
errorCount: z.ZodNumber;
|
|
652
|
-
warningCount: z.ZodNumber;
|
|
653
|
-
empty: z.ZodOptional<z.ZodObject<{
|
|
654
|
-
category: z.ZodEnum<{
|
|
655
|
-
unsupportedOperation: "unsupportedOperation";
|
|
656
|
-
symbolNotFound: "symbolNotFound";
|
|
657
|
-
anchorFailed: "anchorFailed";
|
|
658
|
-
noLocations: "noLocations";
|
|
659
|
-
noReferences: "noReferences";
|
|
660
|
-
noHover: "noHover";
|
|
661
|
-
noCalls: "noCalls";
|
|
662
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
663
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
664
|
-
noDiagnostics: "noDiagnostics";
|
|
665
|
-
}>;
|
|
666
|
-
reason: z.ZodString;
|
|
667
|
-
}, z.core.$strip>>;
|
|
668
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
669
|
-
kind: z.ZodLiteral<"empty">;
|
|
670
|
-
category: z.ZodEnum<{
|
|
671
|
-
unsupportedOperation: "unsupportedOperation";
|
|
672
|
-
symbolNotFound: "symbolNotFound";
|
|
673
|
-
anchorFailed: "anchorFailed";
|
|
674
|
-
noLocations: "noLocations";
|
|
675
|
-
noReferences: "noReferences";
|
|
676
|
-
noHover: "noHover";
|
|
677
|
-
noCalls: "noCalls";
|
|
678
|
-
noWorkspaceSymbols: "noWorkspaceSymbols";
|
|
679
|
-
noTypeHierarchy: "noTypeHierarchy";
|
|
680
|
-
noDiagnostics: "noDiagnostics";
|
|
681
|
-
}>;
|
|
682
|
-
reason: z.ZodString;
|
|
683
|
-
}, z.core.$strip>], "kind">;
|
|
684
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
685
|
-
currentPage: z.ZodNumber;
|
|
686
|
-
totalPages: z.ZodNumber;
|
|
687
|
-
hasMore: z.ZodBoolean;
|
|
688
|
-
nextPage: z.ZodOptional<z.ZodNumber>;
|
|
689
|
-
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
690
|
-
totalItems: z.ZodOptional<z.ZodNumber>;
|
|
691
|
-
perPage: z.ZodOptional<z.ZodNumber>;
|
|
692
|
-
totalFound: z.ZodOptional<z.ZodNumber>;
|
|
693
|
-
returned: z.ZodOptional<z.ZodNumber>;
|
|
694
|
-
totalMatches: z.ZodOptional<z.ZodNumber>;
|
|
695
|
-
reportedTotalMatches: z.ZodOptional<z.ZodNumber>;
|
|
696
|
-
reachableTotalMatches: z.ZodOptional<z.ZodNumber>;
|
|
697
|
-
totalMatchesKind: z.ZodOptional<z.ZodEnum<{
|
|
698
|
-
exact: "exact";
|
|
699
|
-
reported: "reported";
|
|
700
|
-
lowerBound: "lowerBound";
|
|
701
|
-
}>>;
|
|
702
|
-
totalMatchesCapped: z.ZodOptional<z.ZodBoolean>;
|
|
703
|
-
totalResults: z.ZodOptional<z.ZodNumber>;
|
|
704
|
-
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
705
|
-
}, z.core.$strip>>;
|
|
706
|
-
summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
707
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
708
|
-
next: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
709
|
-
tool: z.ZodString;
|
|
710
|
-
query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
711
|
-
why: z.ZodOptional<z.ZodString>;
|
|
712
|
-
confidence: z.ZodOptional<z.ZodEnum<{
|
|
713
|
-
exact: "exact";
|
|
714
|
-
heuristic: "heuristic";
|
|
715
|
-
}>>;
|
|
716
|
-
}, z.core.$strip>>>;
|
|
717
|
-
hints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
718
|
-
}, z.core.$strip>;
|
|
719
|
-
}, z.core.$strip>]>>;
|
|
720
|
-
}, z.core.$strip>;
|
|
81
|
+
interface LspLocation {
|
|
82
|
+
uri: string;
|
|
83
|
+
absolutePath?: string;
|
|
84
|
+
path?: string;
|
|
85
|
+
content?: string;
|
|
86
|
+
displayRange?: {
|
|
87
|
+
startLine: number;
|
|
88
|
+
endLine: number;
|
|
89
|
+
};
|
|
90
|
+
isDefinition?: boolean;
|
|
91
|
+
}
|
|
92
|
+
interface LspRange {
|
|
93
|
+
start: {
|
|
94
|
+
line: number;
|
|
95
|
+
character: number;
|
|
96
|
+
};
|
|
97
|
+
end: {
|
|
98
|
+
line: number;
|
|
99
|
+
character: number;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
interface LspResolvedSymbol {
|
|
103
|
+
name: string;
|
|
104
|
+
uri: string;
|
|
105
|
+
absolutePath?: string;
|
|
106
|
+
path?: string;
|
|
107
|
+
foundAtLine: number;
|
|
108
|
+
orderHint?: number;
|
|
109
|
+
}
|
|
110
|
+
interface LspInfo {
|
|
111
|
+
serverAvailable?: boolean;
|
|
112
|
+
provider?: string;
|
|
113
|
+
source?: string;
|
|
114
|
+
}
|
|
115
|
+
type LspEmptyCategory = 'unsupportedOperation' | 'symbolNotFound' | 'anchorFailed' | 'noLocations' | 'noReferences' | 'noHover' | 'noCalls' | 'noWorkspaceSymbols' | 'noTypeHierarchy' | 'noDiagnostics';
|
|
116
|
+
interface LspEmptyState {
|
|
117
|
+
category: LspEmptyCategory;
|
|
118
|
+
reason: string;
|
|
119
|
+
}
|
|
120
|
+
interface LspCompactCallTarget {
|
|
121
|
+
name: string;
|
|
122
|
+
kind: string;
|
|
123
|
+
uri: string;
|
|
124
|
+
line: number;
|
|
125
|
+
endLine: number;
|
|
126
|
+
selectionLine?: number;
|
|
127
|
+
}
|
|
128
|
+
interface LspCompactCall {
|
|
129
|
+
direction: 'incoming' | 'outgoing';
|
|
130
|
+
item: LspCompactCallTarget;
|
|
131
|
+
ranges: Array<{
|
|
132
|
+
line: number;
|
|
133
|
+
character: number;
|
|
134
|
+
}>;
|
|
135
|
+
rangeCount: number;
|
|
136
|
+
rangeSampleCount: number;
|
|
137
|
+
contentPreview?: string;
|
|
138
|
+
}
|
|
139
|
+
interface LspCompleteness {
|
|
140
|
+
complete: boolean;
|
|
141
|
+
truncatedByDepth: boolean;
|
|
142
|
+
truncatedByBudget?: boolean;
|
|
143
|
+
visitedNodeCount?: number;
|
|
144
|
+
requestCount?: number;
|
|
145
|
+
cycleCount: number;
|
|
146
|
+
failedRequestCount: number;
|
|
147
|
+
dynamicCallsExcluded: true;
|
|
148
|
+
stdlibCallsExcluded?: number;
|
|
149
|
+
}
|
|
150
|
+
interface LspCompactSymbol {
|
|
151
|
+
name: string;
|
|
152
|
+
kind: string;
|
|
153
|
+
line: number;
|
|
154
|
+
character: number;
|
|
155
|
+
endLine: number;
|
|
156
|
+
childCount: number;
|
|
157
|
+
containerName?: string;
|
|
158
|
+
}
|
|
159
|
+
interface LspReferencesByFile {
|
|
160
|
+
uri: string;
|
|
161
|
+
absolutePath?: string;
|
|
162
|
+
path?: string;
|
|
163
|
+
count: number;
|
|
164
|
+
firstLine: number;
|
|
165
|
+
firstCharacter: number;
|
|
166
|
+
lines: number[];
|
|
167
|
+
hasDefinition?: boolean;
|
|
168
|
+
}
|
|
169
|
+
type LspSemanticPayload = {
|
|
170
|
+
kind: 'definition';
|
|
171
|
+
locations: Array<LspLocation | string>;
|
|
172
|
+
} | {
|
|
173
|
+
kind: 'typeDefinition';
|
|
174
|
+
locations: Array<LspLocation | string>;
|
|
175
|
+
} | {
|
|
176
|
+
kind: 'implementation';
|
|
177
|
+
locations: Array<LspLocation | string>;
|
|
178
|
+
} | {
|
|
179
|
+
kind: 'references';
|
|
180
|
+
locations?: Array<LspLocation | string>;
|
|
181
|
+
byFile?: Array<LspReferencesByFile | string>;
|
|
182
|
+
totalReferences: number;
|
|
183
|
+
totalFiles: number;
|
|
184
|
+
empty?: LspEmptyState;
|
|
185
|
+
} | {
|
|
186
|
+
kind: 'callers' | 'callees' | 'callHierarchy';
|
|
187
|
+
root?: LspCompactCallTarget | string;
|
|
188
|
+
direction: 'incoming' | 'outgoing' | 'both';
|
|
189
|
+
calls: Array<LspCompactCall | string>;
|
|
190
|
+
incomingCalls: number;
|
|
191
|
+
outgoingCalls: number;
|
|
192
|
+
completeness: LspCompleteness;
|
|
193
|
+
empty?: LspEmptyState;
|
|
194
|
+
} | {
|
|
195
|
+
kind: 'hover';
|
|
196
|
+
markdown?: string;
|
|
197
|
+
text?: string;
|
|
198
|
+
range?: LspRange;
|
|
199
|
+
} | {
|
|
200
|
+
kind: 'documentSymbols';
|
|
201
|
+
symbols: Array<LspCompactSymbol | string>;
|
|
202
|
+
totalSymbols?: number;
|
|
203
|
+
topLevelSymbols?: number;
|
|
204
|
+
empty?: LspEmptyState;
|
|
205
|
+
} | {
|
|
206
|
+
kind: 'workspaceSymbol';
|
|
207
|
+
query: string;
|
|
208
|
+
symbols: unknown[];
|
|
209
|
+
totalSymbols: number;
|
|
210
|
+
empty?: LspEmptyState;
|
|
211
|
+
} | {
|
|
212
|
+
kind: 'typeHierarchy';
|
|
213
|
+
direction: 'supertypes' | 'subtypes';
|
|
214
|
+
root?: unknown;
|
|
215
|
+
items: unknown[];
|
|
216
|
+
totalItems: number;
|
|
217
|
+
empty?: LspEmptyState;
|
|
218
|
+
} | {
|
|
219
|
+
kind: 'diagnostic';
|
|
220
|
+
diagnostics: unknown[];
|
|
221
|
+
totalDiagnostics: number;
|
|
222
|
+
errorCount: number;
|
|
223
|
+
warningCount: number;
|
|
224
|
+
empty?: LspEmptyState;
|
|
225
|
+
} | {
|
|
226
|
+
kind: 'empty';
|
|
227
|
+
category: LspEmptyCategory;
|
|
228
|
+
reason: string;
|
|
229
|
+
};
|
|
230
|
+
export interface LspGetSemanticsData {
|
|
231
|
+
type: string;
|
|
232
|
+
uri: string;
|
|
233
|
+
absolutePath?: string;
|
|
234
|
+
path?: string;
|
|
235
|
+
format?: 'structured' | 'compact';
|
|
236
|
+
resolvedSymbol?: LspResolvedSymbol;
|
|
237
|
+
lsp?: LspInfo;
|
|
238
|
+
payload: LspSemanticPayload;
|
|
239
|
+
pagination?: ItemPagination;
|
|
240
|
+
summary?: Record<string, unknown>;
|
|
241
|
+
next?: Record<string, ToolContinuation>;
|
|
242
|
+
hints?: string[];
|
|
243
|
+
}
|
|
244
|
+
export type LspGetSemanticsOutput = BulkToolOutput<LspGetSemanticsData>;
|
|
245
|
+
export {};
|