@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,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
skipCache?: boolean;
|
|
6
|
-
forceRefresh?: boolean;
|
|
7
|
-
shouldCache?: (value: T) => boolean;
|
|
8
|
-
}): Promise<T>;
|
|
9
|
-
export declare function clearAllCache(): void;
|
|
10
|
-
export declare function clearLocalToolCache(): number;
|
|
11
|
-
export declare function clearLSPToolCache(): number;
|
|
12
|
-
export declare function clearRemoteAPICache(): number;
|
|
13
|
-
export declare function getCacheStats(): CacheStats & {
|
|
14
|
-
hitRate: number;
|
|
15
|
-
cacheSize: number;
|
|
16
|
-
};
|
|
1
|
+
export * from './cache/key.js';
|
|
2
|
+
export * from './cache/dataCache.js';
|
|
3
|
+
export * from './cache/conditional.js';
|
|
4
|
+
export * from './cache/management.js';
|
|
@@ -4,7 +4,5 @@ export type MarkdownHeading = {
|
|
|
4
4
|
text: string;
|
|
5
5
|
children: MarkdownHeading[];
|
|
6
6
|
};
|
|
7
|
-
export declare function isMarkdownFilePath(filePath: string): boolean;
|
|
8
|
-
export declare function extractMarkdownHeadingOutline(content: string, filePath: string): MarkdownHeading[] | null;
|
|
9
7
|
export declare function markdownHeadingOutlineToText(content: string, filePath: string): string | null;
|
|
10
8
|
export declare function markdownHeadingOutlineToDocumentSymbols(content: string, filePath: string): unknown[] | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DeprecationInfo, NpmSearchAPIResult, NpmSearchError } from '../types.js';
|
|
2
|
+
export declare function isExactPackageName(query: string): boolean;
|
|
3
|
+
export declare function _packageNameToSearchKeywords(packageName: string): string;
|
|
4
|
+
export declare function searchNpmPackage(packageName: string, limit: number, fetchMetadata: boolean, from?: number): Promise<NpmSearchAPIResult | NpmSearchError>;
|
|
5
|
+
export declare function checkNpmDeprecation(packageName: string): Promise<DeprecationInfo | null>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NpmPackageResult, NpmSearchAPIResult, NpmSearchError } from '../types.js';
|
|
2
|
+
export declare function isNetworkFetchError(error: string | undefined): boolean;
|
|
3
|
+
export declare function fetchLastPublished(packageName: string): Promise<{
|
|
4
|
+
lastPublished?: string;
|
|
5
|
+
rawResponseChars: number;
|
|
6
|
+
}>;
|
|
7
|
+
export type PackageDetailsLookupResult = {
|
|
8
|
+
pkg: NpmPackageResult | null;
|
|
9
|
+
errorDetail?: string;
|
|
10
|
+
rawResponseChars: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function enrichPackageDetails(packageName: string, pkg: NpmPackageResult, rawResponseChars: number): Promise<PackageDetailsLookupResult>;
|
|
13
|
+
export declare function fetchPackageDetailsFromCdn(packageName: string, includeExtendedMetadata: boolean): Promise<PackageDetailsLookupResult>;
|
|
14
|
+
export declare function fetchPackageDetailsWithError(packageName: string, includeExtendedMetadata?: boolean): Promise<PackageDetailsLookupResult>;
|
|
15
|
+
export declare function fetchNpmPackageByView(packageName: string, fetchMetadata: boolean, allowCdnFallback?: boolean): Promise<NpmSearchAPIResult | NpmSearchError>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { NpmPackageResult } from '../types.js';
|
|
2
|
+
import type { NpmCliSearchItem, NpmViewResult } from './npmRegistry.js';
|
|
3
|
+
export declare function cleanRepoUrl(url: string): string;
|
|
4
|
+
export declare function countRawPayloadChars(raw: unknown): number;
|
|
5
|
+
export declare function fetchWeeklyDownloads(packageName: string): Promise<{
|
|
6
|
+
downloads?: number;
|
|
7
|
+
rawResponseChars: number;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function mapToResult(data: NpmViewResult, includeExtendedMetadata?: boolean, source?: 'cli' | 'registry' | 'cdn'): NpmPackageResult;
|
|
10
|
+
export declare function mapSearchItemToResult(item: NpmCliSearchItem): NpmPackageResult | null;
|
|
11
|
+
export declare function encodeRegistryPackageName(packageName: string): string;
|
|
12
|
+
export declare function parseRegistrySearchTotal(total: string | number | undefined, fallback: number): number;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare const DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
2
|
+
export declare function getNpmRegistryUrl(): Promise<string>;
|
|
3
|
+
export declare function _resetNpmRegistryUrlCache(): void;
|
|
4
|
+
export declare function checkNpmRegistryReachable(): Promise<boolean>;
|
|
5
|
+
export interface NpmViewResult {
|
|
6
|
+
name: string;
|
|
7
|
+
version: string;
|
|
8
|
+
repository?: string | {
|
|
9
|
+
url?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
directory?: string;
|
|
12
|
+
};
|
|
13
|
+
main?: string;
|
|
14
|
+
module?: string;
|
|
15
|
+
type?: string;
|
|
16
|
+
exports?: unknown;
|
|
17
|
+
bin?: unknown;
|
|
18
|
+
types?: string;
|
|
19
|
+
typings?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
keywords?: string[];
|
|
22
|
+
license?: string | {
|
|
23
|
+
type?: string;
|
|
24
|
+
};
|
|
25
|
+
homepage?: string;
|
|
26
|
+
author?: string | {
|
|
27
|
+
name?: string;
|
|
28
|
+
email?: string;
|
|
29
|
+
url?: string;
|
|
30
|
+
};
|
|
31
|
+
maintainers?: Array<{
|
|
32
|
+
name?: string;
|
|
33
|
+
email?: string;
|
|
34
|
+
}>;
|
|
35
|
+
engines?: Record<string, string>;
|
|
36
|
+
dependencies?: Record<string, string>;
|
|
37
|
+
devDependencies?: Record<string, string>;
|
|
38
|
+
peerDependencies?: Record<string, string>;
|
|
39
|
+
time?: {
|
|
40
|
+
modified?: string;
|
|
41
|
+
created?: string;
|
|
42
|
+
[version: string]: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface NpmRegistrySearchItem {
|
|
46
|
+
name: string | null | undefined;
|
|
47
|
+
version: string | null | undefined;
|
|
48
|
+
description?: string | null;
|
|
49
|
+
links?: {
|
|
50
|
+
npm?: string | null;
|
|
51
|
+
homepage?: string | null;
|
|
52
|
+
repository?: string | null;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface NpmCliSearchItem {
|
|
56
|
+
name?: string;
|
|
57
|
+
version?: string;
|
|
58
|
+
description?: string;
|
|
59
|
+
keywords?: string[];
|
|
60
|
+
date?: string;
|
|
61
|
+
links?: {
|
|
62
|
+
npm?: string;
|
|
63
|
+
homepage?: string;
|
|
64
|
+
repository?: string;
|
|
65
|
+
bugs?: string;
|
|
66
|
+
};
|
|
67
|
+
repository?: string | {
|
|
68
|
+
url?: string;
|
|
69
|
+
type?: string;
|
|
70
|
+
};
|
|
71
|
+
score?: {
|
|
72
|
+
final?: number;
|
|
73
|
+
detail?: {
|
|
74
|
+
quality?: number;
|
|
75
|
+
popularity?: number;
|
|
76
|
+
maintenance?: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NpmSearchAPIResult, NpmSearchError } from '../types.js';
|
|
2
|
+
export declare function searchNpmPackageViaCliSearch(keywords: string, limit: number, fetchMetadata: boolean, from?: number): Promise<NpmSearchAPIResult | NpmSearchError>;
|
|
3
|
+
export declare function searchNpmPackageViaRegistrySearch(keywords: string, limit: number, fetchMetadata: boolean, from?: number): Promise<NpmSearchAPIResult | NpmSearchError>;
|
|
4
|
+
export declare function searchNpmPackageViaWebSearch(packageName: string, limit: number): Promise<NpmSearchAPIResult | NpmSearchError>;
|
|
5
|
+
export declare function searchNpmPackageViaSearch(keywords: string, limit: number, fetchMetadata: boolean, from?: number): Promise<NpmSearchAPIResult | NpmSearchError>;
|
|
6
|
+
export declare function enrichTopSearchResult(result: NpmSearchAPIResult): Promise<NpmSearchAPIResult>;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export declare function _resetNpmRegistryUrlCache(): void;
|
|
4
|
-
export declare function checkNpmRegistryReachable(): Promise<boolean>;
|
|
5
|
-
export declare function isExactPackageName(query: string): boolean;
|
|
6
|
-
export declare function _packageNameToSearchKeywords(packageName: string): string;
|
|
7
|
-
export declare function searchNpmPackage(packageName: string, limit: number, fetchMetadata: boolean, from?: number): Promise<NpmSearchAPIResult | NpmSearchError>;
|
|
8
|
-
export declare function checkNpmDeprecation(packageName: string): Promise<DeprecationInfo | null>;
|
|
1
|
+
export { getNpmRegistryUrl, _resetNpmRegistryUrlCache, checkNpmRegistryReachable, } from './npm/npmRegistry.js';
|
|
2
|
+
export { isExactPackageName, _packageNameToSearchKeywords, searchNpmPackage, checkNpmDeprecation, } from './npm/npmDeprecation.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare function isMidBlockCut(paginatedContent: string): boolean;
|
|
2
|
-
export declare function findNextBlockBoundary(content: string, fromChar: number, filePath?: string): number | undefined
|
|
3
|
-
export declare function buildBlockBoundaryHint(paginatedContent: string, fullContent: string, cutPos: number, currentCharLength: number, filePath?: string): {
|
|
2
|
+
export declare function findNextBlockBoundary(content: string, fromChar: number, filePath?: string): Promise<number | undefined>;
|
|
3
|
+
export declare function buildBlockBoundaryHint(paginatedContent: string, fullContent: string, cutPos: number, currentCharLength: number, filePath?: string): Promise<{
|
|
4
4
|
nextBlockChar: number;
|
|
5
5
|
hint: string;
|
|
6
|
-
} | undefined
|
|
6
|
+
} | undefined>;
|
|
7
7
|
export type ChunkMode = 'semantic' | 'char-limit';
|
|
8
|
-
export declare function snapToSemanticBoundary(content: string, charOffset: number, charLength: number, filePath?: string): {
|
|
8
|
+
export declare function snapToSemanticBoundary(content: string, charOffset: number, charLength: number, filePath?: string): Promise<{
|
|
9
9
|
length: number;
|
|
10
10
|
chunkMode: ChunkMode;
|
|
11
|
-
}
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BulkToolResponse, BulkResponsePagination } from '../../../types/bulk.js';
|
|
2
|
+
export declare function paginateBulkText(text: string, pagination?: BulkResponsePagination): {
|
|
3
|
+
text: string;
|
|
4
|
+
pagination?: NonNullable<BulkToolResponse['responsePagination']>;
|
|
5
|
+
};
|
|
6
|
+
export declare function appendResponsePagination<T extends Record<string, unknown>>(structuredContent: T, pagination?: NonNullable<BulkToolResponse['responsePagination']>): T;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ProcessedBulkResult, QueryError } from '../../../types/toolResults.js';
|
|
2
|
+
export declare function computeQueryTimeout(queryCount: number, concurrency: number, minTimeoutMs?: number): number;
|
|
3
|
+
export declare function processBulkQueries<TQuery extends object>(queries: Array<TQuery>, processor: (query: TQuery, index: number) => Promise<ProcessedBulkResult>, concurrency: number, minQueryTimeoutMs?: number): Promise<{
|
|
4
|
+
results: Array<{
|
|
5
|
+
result: ProcessedBulkResult;
|
|
6
|
+
queryIndex: number;
|
|
7
|
+
originalQuery: TQuery;
|
|
8
|
+
}>;
|
|
9
|
+
errors: QueryError[];
|
|
10
|
+
}>;
|
|
11
|
+
export declare function resolveQueryId<TQuery extends object>(originalQuery: TQuery, queryIndex: number): string;
|
|
12
|
+
/**
|
|
13
|
+
* Resolve one id per query, guaranteed unique within the batch. Everything
|
|
14
|
+
* downstream (finalizer grouping, per-query pagination maps) keys off these
|
|
15
|
+
* ids, so two queries submitted with the same explicit `id` would otherwise
|
|
16
|
+
* silently merge and the second query's pagination would overwrite the first.
|
|
17
|
+
* Collisions get a `#2`, `#3`… suffix in submission order.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveUniqueQueryIds<TQuery extends object>(queries: readonly TQuery[]): string[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CallToolResult } from '@modelcontextprotocol/sdk/types';
|
|
2
|
+
import type { ProcessedBulkResult } from '../../../types/toolResults.js';
|
|
3
|
+
import type { BulkResponseConfig, BulkResponsePagination } from '../../../types/bulk.js';
|
|
4
|
+
export declare function executeBulkOperation<TQuery extends object, TOutput extends Record<string, unknown> = Record<string, unknown>>(queries: Array<TQuery>, processor: (query: TQuery, index: number) => Promise<ProcessedBulkResult>, config: BulkResponseConfig<TQuery, TOutput>, pagination?: BulkResponsePagination): Promise<CallToolResult>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import type { BulkResponseConfig, BulkResponsePagination } from '../../types/bulk.js';
|
|
4
|
-
export declare function computeQueryTimeout(queryCount: number, concurrency: number, minTimeoutMs?: number): number;
|
|
5
|
-
export declare function executeBulkOperation<TQuery extends object, TOutput extends Record<string, unknown> = Record<string, unknown>>(queries: Array<TQuery>, processor: (query: TQuery, index: number) => Promise<ProcessedBulkResult>, config: BulkResponseConfig<TQuery, TOutput>, pagination?: BulkResponsePagination): Promise<CallToolResult>;
|
|
6
|
-
export declare function resolveQueryId<TQuery extends object>(originalQuery: TQuery, queryIndex: number): string;
|
|
1
|
+
export { computeQueryTimeout, resolveQueryId, resolveUniqueQueryIds, } from './bulk/queries.js';
|
|
2
|
+
export { executeBulkOperation } from './bulk/response.js';
|
package/package.json
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octocodeai/octocode-tools-core",
|
|
3
|
-
"version": "16.6.3",
|
|
4
3
|
"description": "Core tool implementations for Octocode: GitHub, local filesystem, LSP, and package search tools.",
|
|
4
|
+
"version": "17.0.2",
|
|
5
5
|
"author": "Guy Bary <bgauryy@octocodeai.com>",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
6
|
+
"bugs": "https://github.com/bgauryy/octocode/issues",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
9
|
+
"@octocodeai/config": "^17.0.2",
|
|
10
|
+
"@octocodeai/octocode-core": "^16.6.3",
|
|
11
|
+
"@octocodeai/octocode-engine": "^17.0.2",
|
|
12
|
+
"@octokit/oauth-methods": "^6.0.2",
|
|
13
|
+
"@octokit/plugin-throttling": "^11.0.3",
|
|
14
|
+
"@octokit/request": "^10.0.10",
|
|
15
|
+
"node-cache": "^5.1.2",
|
|
16
|
+
"octokit": "^5.0.5",
|
|
17
|
+
"zod": "^4.4.3"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@octokit/core": "^7.0.6",
|
|
21
|
+
"@octokit/openapi-types": "^27.0.0",
|
|
22
|
+
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
|
23
|
+
"@types/node": "^25.9.3",
|
|
24
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
25
|
+
"esbuild": "^0.28.1",
|
|
26
|
+
"eslint": "^9.18.0",
|
|
27
|
+
"typescript": "^5.9.3",
|
|
28
|
+
"vitest": "^4.1.9"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=20.0.0"
|
|
10
32
|
},
|
|
11
|
-
"main": "dist/index.js",
|
|
12
|
-
"types": "dist/index.d.ts",
|
|
13
33
|
"exports": {
|
|
14
34
|
".": {
|
|
15
35
|
"types": "./dist/index.d.ts",
|
|
@@ -65,8 +85,15 @@
|
|
|
65
85
|
"LICENSE",
|
|
66
86
|
"README.md"
|
|
67
87
|
],
|
|
68
|
-
"
|
|
69
|
-
|
|
88
|
+
"license": "MIT",
|
|
89
|
+
"main": "dist/index.js",
|
|
90
|
+
"publishConfig": {
|
|
91
|
+
"access": "public"
|
|
92
|
+
},
|
|
93
|
+
"repository": {
|
|
94
|
+
"type": "git",
|
|
95
|
+
"url": "git+https://github.com/bgauryy/octocode.git",
|
|
96
|
+
"directory": "packages/octocode-tools-core"
|
|
70
97
|
},
|
|
71
98
|
"scripts": {
|
|
72
99
|
"build": "yarn readme:sync && yarn clean && node build.mjs && tsc --emitDeclarationOnly -p tsconfig.build.json",
|
|
@@ -74,34 +101,14 @@
|
|
|
74
101
|
"clean": "rm -rf dist/",
|
|
75
102
|
"lint": "eslint src",
|
|
76
103
|
"lint:fix": "eslint src --fix",
|
|
104
|
+
"prepack": "yarn readme:sync && node ../octocode/scripts/check-no-workspace-protocol.mjs",
|
|
105
|
+
"prepublishOnly": "node ../octocode/scripts/check-no-workspace-protocol.mjs",
|
|
106
|
+
"readme:sync": "node ../../scripts/sync-package-readmes.mjs .",
|
|
77
107
|
"test": "vitest run --coverage",
|
|
78
108
|
"test:quiet": "vitest run --reporter=dot --silent",
|
|
79
109
|
"typecheck": "tsc --noEmit --skipLibCheck -p tsconfig.json",
|
|
80
|
-
"verify": "yarn lint && yarn typecheck && yarn test"
|
|
81
|
-
"readme:sync": "node ../../scripts/sync-package-readmes.mjs .",
|
|
82
|
-
"prepack": "yarn readme:sync"
|
|
110
|
+
"verify": "yarn lint && yarn typecheck && yarn test"
|
|
83
111
|
},
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
"@octocodeai/octocode-core": "^16.6.3",
|
|
87
|
-
"@octocodeai/octocode-engine": "^16.7.0",
|
|
88
|
-
"@octokit/oauth-methods": "^6.0.2",
|
|
89
|
-
"@octokit/plugin-throttling": "^11.0.3",
|
|
90
|
-
"@octokit/request": "^10.0.10",
|
|
91
|
-
"node-cache": "^5.1.2",
|
|
92
|
-
"octokit": "^5.0.5",
|
|
93
|
-
"zod": "^4.4.3"
|
|
94
|
-
},
|
|
95
|
-
"devDependencies": {
|
|
96
|
-
"@octocodeai/config": "workspace:*",
|
|
97
|
-
"@octokit/core": "^7.0.6",
|
|
98
|
-
"@octokit/openapi-types": "^27.0.0",
|
|
99
|
-
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
|
100
|
-
"@types/node": "^25.9.3",
|
|
101
|
-
"@vitest/coverage-v8": "^4.1.9",
|
|
102
|
-
"esbuild": "^0.28.1",
|
|
103
|
-
"eslint": "^9.18.0",
|
|
104
|
-
"typescript": "^5.9.3",
|
|
105
|
-
"vitest": "^4.1.9"
|
|
106
|
-
}
|
|
112
|
+
"type": "module",
|
|
113
|
+
"types": "dist/index.d.ts"
|
|
107
114
|
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Archive list/extract operations.
|
|
3
|
-
* Backs mode="list" and mode="extract" in localBinaryInspect.
|
|
4
|
-
*
|
|
5
|
-
* Backend selection (falls through on missing CLI):
|
|
6
|
-
* .aar/.yaa → aa only
|
|
7
|
-
* .dmg/.rar/.cpgz → 7z → 7zz → bsdtar
|
|
8
|
-
* .7z/.iso/.cab/… → bsdtar → 7z → 7zz
|
|
9
|
-
* .tar.* → tar → bsdtar → 7z
|
|
10
|
-
* default (zip-fam.) → unzip → tar → bsdtar → 7z
|
|
11
|
-
*/
|
|
12
|
-
export interface ArchiveChainResult {
|
|
13
|
-
success: boolean;
|
|
14
|
-
stdout: string;
|
|
15
|
-
stderr: string;
|
|
16
|
-
commandUsed?: string;
|
|
17
|
-
missingCommands?: string[];
|
|
18
|
-
}
|
|
19
|
-
export declare function listArchiveEntries(path: string, verbose: boolean): Promise<ArchiveChainResult & {
|
|
20
|
-
entries?: string[];
|
|
21
|
-
}>;
|
|
22
|
-
export declare function extractArchiveEntry(path: string, entry: string): Promise<ArchiveChainResult>;
|
|
23
|
-
/** Extracts the whole archive into destDir (which must already exist). */
|
|
24
|
-
export declare function extractArchiveToDir(path: string, destDir: string): Promise<ArchiveChainResult>;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { BinaryInspectQuery } from './scheme.js';
|
|
2
|
-
interface ContentCharPagination {
|
|
3
|
-
currentPage: number;
|
|
4
|
-
totalPages: number;
|
|
5
|
-
hasMore: boolean;
|
|
6
|
-
charOffset: number;
|
|
7
|
-
charLength: number;
|
|
8
|
-
totalChars: number;
|
|
9
|
-
nextCharOffset?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare function inspectBinary(query: BinaryInspectQuery): Promise<import("../../index.js").UnifiedErrorResult | {
|
|
12
|
-
warnings?: string[];
|
|
13
|
-
truncated?: boolean;
|
|
14
|
-
detailed?: boolean;
|
|
15
|
-
libraries?: string[];
|
|
16
|
-
sections?: string[];
|
|
17
|
-
exports?: string[];
|
|
18
|
-
imports?: string[];
|
|
19
|
-
symbols?: string[];
|
|
20
|
-
symbolCount: number;
|
|
21
|
-
importCount: number;
|
|
22
|
-
exportCount: number;
|
|
23
|
-
entry?: string;
|
|
24
|
-
stripped?: boolean;
|
|
25
|
-
endianness?: string;
|
|
26
|
-
bits?: number;
|
|
27
|
-
arch?: string;
|
|
28
|
-
status: "success";
|
|
29
|
-
mode: "inspect";
|
|
30
|
-
path: string;
|
|
31
|
-
format: string;
|
|
32
|
-
description: string;
|
|
33
|
-
magicBytes: string;
|
|
34
|
-
} | {
|
|
35
|
-
pagination: {
|
|
36
|
-
currentPage: number;
|
|
37
|
-
totalPages: number;
|
|
38
|
-
hasMore: boolean;
|
|
39
|
-
entriesPerPage: number;
|
|
40
|
-
};
|
|
41
|
-
status: "success";
|
|
42
|
-
mode: "list";
|
|
43
|
-
path: string;
|
|
44
|
-
backend: string;
|
|
45
|
-
totalEntries: number;
|
|
46
|
-
entries: string[];
|
|
47
|
-
} | {
|
|
48
|
-
pagination?: ContentCharPagination;
|
|
49
|
-
status: "success";
|
|
50
|
-
mode: "extract";
|
|
51
|
-
path: string;
|
|
52
|
-
archiveFile: string;
|
|
53
|
-
backend: string;
|
|
54
|
-
localPath: string;
|
|
55
|
-
content: string;
|
|
56
|
-
isPartial: boolean;
|
|
57
|
-
} | {
|
|
58
|
-
pagination?: ContentCharPagination;
|
|
59
|
-
status: "success";
|
|
60
|
-
mode: "decompress";
|
|
61
|
-
path: string;
|
|
62
|
-
format: "gzip" | "bzip2" | "xz" | "lzma" | "zstd" | "lz4" | "brotli" | "lzfse";
|
|
63
|
-
backend: string;
|
|
64
|
-
localPath: string;
|
|
65
|
-
content: string;
|
|
66
|
-
isPartial: boolean;
|
|
67
|
-
} | {
|
|
68
|
-
nextScanOffset?: number;
|
|
69
|
-
scanOffset: number;
|
|
70
|
-
pagination?: ContentCharPagination;
|
|
71
|
-
totalFound: number;
|
|
72
|
-
isPartial: boolean;
|
|
73
|
-
localPath?: string;
|
|
74
|
-
status: "success";
|
|
75
|
-
mode: "strings";
|
|
76
|
-
path: string;
|
|
77
|
-
content: string;
|
|
78
|
-
} | {
|
|
79
|
-
status: "success";
|
|
80
|
-
mode: "unpack";
|
|
81
|
-
path: string;
|
|
82
|
-
localPath: string;
|
|
83
|
-
cached: boolean;
|
|
84
|
-
topLevelEntries: number;
|
|
85
|
-
}>;
|
|
86
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Binary file inspection (format lane) — native, via octocode-engine.
|
|
3
|
-
* Backs mode="inspect" and mode="strings" in localBinaryInspect.
|
|
4
|
-
*
|
|
5
|
-
* No GNU binutils/coreutils dependency: `goblin`-backed parsing and a native
|
|
6
|
-
* string scanner replace the old `file` / `xxd` / `strings` shell-outs, so this
|
|
7
|
-
* lane works on Windows and on distroless/Alpine Linux, returns parser-stable
|
|
8
|
-
* structured data, and recovers UTF-16 strings GNU `strings -a` misses.
|
|
9
|
-
*/
|
|
10
|
-
import type { BinaryInspectInfo } from '@octocodeai/octocode-engine';
|
|
11
|
-
export interface InspectResult {
|
|
12
|
-
success: boolean;
|
|
13
|
-
info?: BinaryInspectInfo;
|
|
14
|
-
error?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function inspectBinaryFile(path: string): InspectResult;
|
|
17
|
-
export interface StringsResult {
|
|
18
|
-
success: boolean;
|
|
19
|
-
strings?: string[];
|
|
20
|
-
totalFound?: number;
|
|
21
|
-
/** True when more of the file remains to scan beyond this window (follow nextScanOffset). */
|
|
22
|
-
truncated?: boolean;
|
|
23
|
-
/** Absolute byte offset for the next scan window, or undefined at EOF. */
|
|
24
|
-
nextScanOffset?: number;
|
|
25
|
-
error?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare function extractStrings(path: string, minLength: number, includeOffsets: boolean, scanOffset?: number): StringsResult;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single-stream decompression.
|
|
3
|
-
* Backs mode="decompress" in localBinaryInspect.
|
|
4
|
-
*
|
|
5
|
-
* Handles: .gz .bz2 .xz .lzma .zst .lz4 .br .lzfse
|
|
6
|
-
* Does NOT handle multi-entry archives (.tar.gz, .zip etc.) — those belong to archiveOps.
|
|
7
|
-
*/
|
|
8
|
-
export type DecompressFormat = 'auto' | 'gzip' | 'bzip2' | 'xz' | 'lzma' | 'zstd' | 'lz4' | 'brotli' | 'lzfse';
|
|
9
|
-
export interface DecompressResult {
|
|
10
|
-
success: boolean;
|
|
11
|
-
content?: string;
|
|
12
|
-
format?: Exclude<DecompressFormat, 'auto'>;
|
|
13
|
-
backend?: string;
|
|
14
|
-
error?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function decompressFile(path: string, format: DecompressFormat): Promise<DecompressResult>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
-
import { type BinaryInspectQuery } from './scheme.js';
|
|
3
|
-
import type { ToolExecutionArgs } from '../../types/execution.js';
|
|
4
|
-
export declare function executeInspectBinary(args: ToolExecutionArgs<BinaryInspectQuery>): Promise<CallToolResult>;
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const LocalBinaryInspectQuerySchema: z.ZodObject<{
|
|
3
|
-
entryPageNumber: z.ZodDefault<z.ZodDefault<z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>>>;
|
|
4
|
-
matchStringContextLines: z.ZodDefault<z.ZodPreprocess<z.ZodNumber>>;
|
|
5
|
-
charLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
|
|
6
|
-
page: z.ZodDefault<z.ZodDefault<z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>>>;
|
|
7
|
-
detailed: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
path: z.ZodString;
|
|
9
|
-
mode: z.ZodEnum<{
|
|
10
|
-
list: "list";
|
|
11
|
-
inspect: "inspect";
|
|
12
|
-
extract: "extract";
|
|
13
|
-
decompress: "decompress";
|
|
14
|
-
strings: "strings";
|
|
15
|
-
unpack: "unpack";
|
|
16
|
-
}>;
|
|
17
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
19
|
-
entriesPerPage: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
archiveFile: z.ZodOptional<z.ZodString>;
|
|
21
|
-
matchString: z.ZodOptional<z.ZodString>;
|
|
22
|
-
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
23
|
-
format: z.ZodDefault<z.ZodEnum<{
|
|
24
|
-
auto: "auto";
|
|
25
|
-
gzip: "gzip";
|
|
26
|
-
bzip2: "bzip2";
|
|
27
|
-
xz: "xz";
|
|
28
|
-
lzma: "lzma";
|
|
29
|
-
zstd: "zstd";
|
|
30
|
-
lz4: "lz4";
|
|
31
|
-
brotli: "brotli";
|
|
32
|
-
lzfse: "lzfse";
|
|
33
|
-
}>>;
|
|
34
|
-
minLength: z.ZodDefault<z.ZodNumber>;
|
|
35
|
-
includeOffsets: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
scanOffset: z.ZodOptional<z.ZodNumber>;
|
|
37
|
-
id: z.ZodOptional<z.ZodString>;
|
|
38
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
39
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
40
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
41
|
-
}, z.core.$strict>;
|
|
42
|
-
export type BinaryInspectQuery = z.infer<typeof LocalBinaryInspectQuerySchema>;
|
|
43
|
-
export declare const LocalBinaryInspectBulkQuerySchema: z.ZodObject<{
|
|
44
|
-
responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
|
|
45
|
-
responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
|
|
46
|
-
queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
47
|
-
}, z.core.$strip>;
|
|
48
|
-
export declare const LocalBinaryInspectOutputSchema: z.ZodObject<{
|
|
49
|
-
results: z.ZodArray<z.ZodObject<{
|
|
50
|
-
id: z.ZodString;
|
|
51
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
52
|
-
empty: "empty";
|
|
53
|
-
error: "error";
|
|
54
|
-
success: "success";
|
|
55
|
-
}>>;
|
|
56
|
-
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
57
|
-
path: z.ZodString;
|
|
58
|
-
mode: z.ZodLiteral<"inspect">;
|
|
59
|
-
format: z.ZodOptional<z.ZodString>;
|
|
60
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
61
|
-
isText: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
-
encoding: z.ZodOptional<z.ZodString>;
|
|
63
|
-
symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
-
imports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
-
exports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
-
path: z.ZodString;
|
|
70
|
-
mode: z.ZodLiteral<"list">;
|
|
71
|
-
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
-
name: z.ZodString;
|
|
73
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
compressedSize: z.ZodOptional<z.ZodNumber>;
|
|
75
|
-
isDir: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
-
modified: z.ZodOptional<z.ZodString>;
|
|
77
|
-
}, z.core.$strip>>>;
|
|
78
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
79
|
-
currentPage: z.ZodNumber;
|
|
80
|
-
totalPages: z.ZodNumber;
|
|
81
|
-
hasMore: z.ZodBoolean;
|
|
82
|
-
nextPage: z.ZodOptional<z.ZodNumber>;
|
|
83
|
-
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
totalItems: z.ZodOptional<z.ZodNumber>;
|
|
85
|
-
}, z.core.$strip>>;
|
|
86
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
-
path: z.ZodString;
|
|
89
|
-
mode: z.ZodEnum<{
|
|
90
|
-
extract: "extract";
|
|
91
|
-
decompress: "decompress";
|
|
92
|
-
}>;
|
|
93
|
-
archiveFile: z.ZodOptional<z.ZodString>;
|
|
94
|
-
content: z.ZodOptional<z.ZodString>;
|
|
95
|
-
isPartial: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
97
|
-
charOffset: z.ZodNumber;
|
|
98
|
-
charLength: z.ZodNumber;
|
|
99
|
-
totalChars: z.ZodNumber;
|
|
100
|
-
hasMore: z.ZodBoolean;
|
|
101
|
-
nextCharOffset: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
currentPage: z.ZodOptional<z.ZodNumber>;
|
|
103
|
-
totalPages: z.ZodOptional<z.ZodNumber>;
|
|
104
|
-
chunkMode: z.ZodOptional<z.ZodEnum<{
|
|
105
|
-
semantic: "semantic";
|
|
106
|
-
"char-limit": "char-limit";
|
|
107
|
-
}>>;
|
|
108
|
-
}, z.core.$strip>>;
|
|
109
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
110
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
111
|
-
path: z.ZodString;
|
|
112
|
-
mode: z.ZodLiteral<"strings">;
|
|
113
|
-
strings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
114
|
-
value: z.ZodString;
|
|
115
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
116
|
-
}, z.core.$strip>>>;
|
|
117
|
-
content: z.ZodOptional<z.ZodString>;
|
|
118
|
-
totalStrings: z.ZodOptional<z.ZodNumber>;
|
|
119
|
-
scanOffset: z.ZodOptional<z.ZodNumber>;
|
|
120
|
-
nextScanOffset: z.ZodOptional<z.ZodNumber>;
|
|
121
|
-
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
123
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
124
|
-
path: z.ZodString;
|
|
125
|
-
mode: z.ZodLiteral<"unpack">;
|
|
126
|
-
localPath: z.ZodOptional<z.ZodString>;
|
|
127
|
-
fileCount: z.ZodOptional<z.ZodNumber>;
|
|
128
|
-
totalSize: z.ZodOptional<z.ZodNumber>;
|
|
129
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
|
-
}, z.core.$strip>]>;
|
|
131
|
-
}, z.core.$strip>>;
|
|
132
|
-
base: z.ZodOptional<z.ZodString>;
|
|
133
|
-
shared: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
134
|
-
responsePagination: z.ZodOptional<z.ZodObject<{
|
|
135
|
-
currentPage: z.ZodNumber;
|
|
136
|
-
totalPages: z.ZodNumber;
|
|
137
|
-
hasMore: z.ZodBoolean;
|
|
138
|
-
charOffset: z.ZodNumber;
|
|
139
|
-
charLength: z.ZodNumber;
|
|
140
|
-
totalChars: z.ZodNumber;
|
|
141
|
-
nextCharOffset: z.ZodOptional<z.ZodNumber>;
|
|
142
|
-
}, z.core.$strip>>;
|
|
143
|
-
}, z.core.$strip>;
|
|
144
|
-
export type LocalBinaryInspectOutput = z.infer<typeof LocalBinaryInspectOutputSchema>;
|