@octocodeai/octocode-tools-core 16.3.0 → 16.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/README.md +564 -0
  2. package/dist/config.d.ts +7 -0
  3. package/dist/direct.js +39 -41
  4. package/dist/errors/pathUtils.d.ts +1 -1
  5. package/dist/github/directoryFetch.d.ts +2 -1
  6. package/dist/github/githubAPI.d.ts +32 -1
  7. package/dist/github/history.d.ts +3 -0
  8. package/dist/github/prTransformation.d.ts +1 -1
  9. package/dist/github/repoStructureRecursive.d.ts +6 -0
  10. package/dist/index.d.ts +16 -30
  11. package/dist/index.js +44 -46
  12. package/dist/oql/adapters/compile.d.ts +25 -0
  13. package/dist/oql/adapters/github.d.ts +3 -0
  14. package/dist/oql/adapters/local.d.ts +7 -0
  15. package/dist/oql/adapters/materialize.d.ts +11 -0
  16. package/dist/oql/adapters/pagination.d.ts +21 -0
  17. package/dist/oql/adapters/researchTargets.d.ts +50 -0
  18. package/dist/oql/adapters/resultMap.d.ts +20 -0
  19. package/dist/oql/adapters/ruleYaml.d.ts +11 -0
  20. package/dist/oql/adapters/runner.d.ts +14 -0
  21. package/dist/oql/adapters/v2.d.ts +32 -0
  22. package/dist/oql/capabilities.d.ts +31 -0
  23. package/dist/oql/defaults.d.ts +26 -0
  24. package/dist/oql/diagnostics.d.ts +25 -0
  25. package/dist/oql/diffLanes.d.ts +29 -0
  26. package/dist/oql/envelope.d.ts +19 -0
  27. package/dist/oql/features.d.ts +7 -0
  28. package/dist/oql/index.d.ts +26 -0
  29. package/dist/oql/index.js +49 -0
  30. package/dist/oql/normalize.d.ts +5 -0
  31. package/dist/oql/planner.d.ts +7 -0
  32. package/dist/oql/research/analyze.d.ts +134 -0
  33. package/dist/oql/research/packets.d.ts +80 -0
  34. package/dist/oql/run.d.ts +32 -0
  35. package/dist/oql/schema.d.ts +1018 -0
  36. package/dist/oql/schemeText.d.ts +138 -0
  37. package/dist/oql/shorthand.d.ts +177 -0
  38. package/dist/oql/targetParams.d.ts +20 -0
  39. package/dist/oql/transformers/contract.d.ts +19 -0
  40. package/dist/oql/transformers/github/code.d.ts +17 -0
  41. package/dist/oql/transformers/github/common.d.ts +8 -0
  42. package/dist/oql/transformers/language.d.ts +1 -0
  43. package/dist/oql/transformers/registry.d.ts +16 -0
  44. package/dist/oql/transformers/types.d.ts +11 -0
  45. package/dist/oql/types.d.ts +633 -0
  46. package/dist/oql/v2params.d.ts +22 -0
  47. package/dist/providers/providerQueries.d.ts +9 -0
  48. package/dist/providers/providerResults.d.ts +2 -0
  49. package/dist/providers/types.d.ts +1 -1
  50. package/dist/schema.d.ts +13 -0
  51. package/dist/schema.js +8 -0
  52. package/dist/scheme/coreSchemas.d.ts +5 -5
  53. package/dist/scheme/fields.d.ts +6 -6
  54. package/dist/serverConfig.d.ts +1 -2
  55. package/dist/session.d.ts +2 -24
  56. package/dist/shared/config/defaults.d.ts +14 -0
  57. package/dist/shared/config/index.d.ts +9 -0
  58. package/dist/shared/config/index.js +9 -0
  59. package/dist/shared/config/loader.d.ts +7 -0
  60. package/dist/shared/config/resolver.d.ts +2 -0
  61. package/dist/shared/config/resolverCache.d.ts +12 -0
  62. package/dist/shared/config/resolverSections.d.ts +10 -0
  63. package/dist/shared/config/runtimeSurface.d.ts +21 -0
  64. package/dist/shared/config/schemas.d.ts +11 -0
  65. package/dist/shared/config/types.d.ts +92 -0
  66. package/dist/shared/config/validator.d.ts +2 -0
  67. package/dist/shared/credentials/constants.d.ts +2 -0
  68. package/dist/shared/credentials/credentialCache.d.ts +13 -0
  69. package/dist/shared/credentials/credentialEncryption.d.ts +10 -0
  70. package/dist/shared/credentials/credentialUtils.d.ts +4 -0
  71. package/dist/shared/credentials/envTokens.d.ts +9 -0
  72. package/dist/shared/credentials/ghCli.d.ts +1 -0
  73. package/dist/shared/credentials/index.d.ts +3 -0
  74. package/dist/shared/credentials/index.js +8 -0
  75. package/dist/shared/credentials/schemas.d.ts +22 -0
  76. package/dist/shared/credentials/storage.d.ts +30 -0
  77. package/dist/shared/credentials/testing.d.ts +2 -0
  78. package/dist/shared/credentials/testing.js +8 -0
  79. package/dist/shared/credentials/tokenRefresh.d.ts +24 -0
  80. package/dist/shared/credentials/tokenResolution.d.ts +30 -0
  81. package/dist/shared/credentials/types.d.ts +28 -0
  82. package/dist/shared/fs-utils.d.ts +2 -0
  83. package/dist/shared/fs-utils.js +8 -0
  84. package/dist/shared/index.d.ts +6 -0
  85. package/dist/shared/languageSelectors.d.ts +23 -0
  86. package/dist/shared/paths.d.ts +31 -0
  87. package/dist/shared/paths.js +8 -0
  88. package/dist/shared/platform/index.d.ts +1 -0
  89. package/dist/shared/platform/index.js +8 -0
  90. package/dist/shared/platform/platform.d.ts +8 -0
  91. package/dist/shared/session/index.d.ts +5 -0
  92. package/dist/shared/session/index.js +8 -0
  93. package/dist/shared/session/schemas.d.ts +103 -0
  94. package/dist/shared/session/sessionCache.d.ts +9 -0
  95. package/dist/shared/session/sessionDiskIO.d.ts +6 -0
  96. package/dist/shared/session/statsDefaults.d.ts +4 -0
  97. package/dist/shared/session/storage.d.ts +20 -0
  98. package/dist/shared/session/types.d.ts +53 -0
  99. package/dist/tools/directToolCatalog.d.ts +15 -56
  100. package/dist/tools/directToolCatalog.exec.d.ts +11 -0
  101. package/dist/tools/directToolCatalog.meta.d.ts +82 -0
  102. package/dist/tools/github_clone_repo/cache.d.ts +5 -1
  103. package/dist/tools/github_clone_repo/scheme.d.ts +56 -9
  104. package/dist/tools/github_clone_repo/types.d.ts +3 -1
  105. package/dist/tools/github_fetch_content/scheme.d.ts +112 -4
  106. package/dist/tools/github_fetch_content/types.d.ts +39 -0
  107. package/dist/tools/github_search_code/scheme.d.ts +6 -6
  108. package/dist/tools/github_search_pull_requests/contentResponse.d.ts +0 -1
  109. package/dist/tools/github_search_pull_requests/execution.d.ts +1 -11
  110. package/dist/tools/github_search_pull_requests/scheme.d.ts +6 -2
  111. package/dist/tools/github_search_repos/scheme.d.ts +7 -6
  112. package/dist/tools/github_view_repo_structure/execution.d.ts +0 -9
  113. package/dist/tools/github_view_repo_structure/scheme.d.ts +10 -6
  114. package/dist/tools/local_binary_inspect/archiveOps.d.ts +2 -0
  115. package/dist/tools/local_binary_inspect/binaryInspector.d.ts +48 -7
  116. package/dist/tools/local_binary_inspect/binaryOps.d.ts +16 -7
  117. package/dist/tools/local_binary_inspect/scheme.d.ts +10 -7
  118. package/dist/tools/local_fetch_content/scheme.d.ts +2 -2
  119. package/dist/tools/local_find_files/scheme.d.ts +2 -2
  120. package/dist/tools/local_ripgrep/lspBoost.d.ts +54 -0
  121. package/dist/tools/local_ripgrep/rankingProfile.d.ts +113 -0
  122. package/dist/tools/local_ripgrep/ripgrepResultBuilder.d.ts +10 -1
  123. package/dist/tools/local_ripgrep/scheme.d.ts +29 -4
  124. package/dist/tools/local_ripgrep/structuralSearch.d.ts +3 -4
  125. package/dist/tools/local_view_structure/scheme.d.ts +2 -2
  126. package/dist/tools/local_view_structure/structureFilters.d.ts +1 -3
  127. package/dist/tools/local_view_structure/structureResponse.d.ts +1 -0
  128. package/dist/tools/lsp/semantic_content/scheme.d.ts +174 -10
  129. package/dist/tools/lsp/shared/callHierarchyTraversal.d.ts +2 -2
  130. package/dist/tools/lsp/shared/resolveSymbolAnchor.d.ts +2 -2
  131. package/dist/tools/lsp/shared/semanticTypes.d.ts +36 -6
  132. package/dist/tools/oql_search/execution.d.ts +7 -0
  133. package/dist/tools/package_search/execution.d.ts +10 -0
  134. package/dist/tools/package_search/scheme.d.ts +9 -7
  135. package/dist/tools/providerMappers.d.ts +24 -5
  136. package/dist/tools/toolConfig.d.ts +1 -0
  137. package/dist/tools/toolMetadata/proxies.d.ts +0 -6
  138. package/dist/tools/toolNames.d.ts +2 -0
  139. package/dist/tools/utils.d.ts +3 -7
  140. package/dist/types/bulk.d.ts +0 -2
  141. package/dist/types/execution.d.ts +1 -2
  142. package/dist/types/server.d.ts +0 -1
  143. package/dist/types/session.d.ts +0 -19
  144. package/dist/types/toolResults.d.ts +2 -3
  145. package/dist/utils/contextUtils.d.ts +49 -2
  146. package/dist/utils/core/lines.d.ts +16 -0
  147. package/dist/utils/core/types.d.ts +12 -1
  148. package/dist/utils/file/filters.d.ts +2 -11
  149. package/dist/utils/markdownOutline.d.ts +10 -0
  150. package/dist/utils/parsers/diff.d.ts +18 -0
  151. package/dist/utils/response/error.d.ts +38 -4
  152. package/dist/utils/response/groupedFinalizer.d.ts +0 -25
  153. package/package.json +51 -14
  154. package/dist/commands/BaseCommandBuilder.d.ts +0 -14
  155. package/dist/commands/FindCommandBuilder.d.ts +0 -23
  156. package/dist/commands/LsCommandBuilder.d.ts +0 -15
  157. package/dist/commands/RipgrepCommandBuilder.d.ts +0 -27
  158. package/dist/hints/dynamic.d.ts +0 -6
  159. package/dist/hints/index.d.ts +0 -2
  160. package/dist/hints/types.d.ts +0 -1
  161. package/dist/tools/github_clone_repo/hints.d.ts +0 -2
  162. package/dist/tools/github_fetch_content/hints.d.ts +0 -2
  163. package/dist/tools/github_search_code/hints.d.ts +0 -2
  164. package/dist/tools/github_search_pull_requests/hints.d.ts +0 -2
  165. package/dist/tools/github_search_repos/hints.d.ts +0 -2
  166. package/dist/tools/github_view_repo_structure/hints.d.ts +0 -2
  167. package/dist/tools/local_fetch_content/hints.d.ts +0 -2
  168. package/dist/tools/local_find_files/hints.d.ts +0 -2
  169. package/dist/tools/local_ripgrep/grepFallbackExecutor.d.ts +0 -3
  170. package/dist/tools/local_ripgrep/hints.d.ts +0 -2
  171. package/dist/tools/local_ripgrep/ripgrepParser.d.ts +0 -9
  172. package/dist/tools/local_view_structure/hints.d.ts +0 -2
  173. package/dist/tools/local_view_structure/structureParser.d.ts +0 -3
  174. package/dist/tools/local_view_structure/structureWalker.d.ts +0 -24
  175. package/dist/tools/lsp/semantic_content/hints.d.ts +0 -4
  176. package/dist/tools/package_search/hints.d.ts +0 -2
  177. package/dist/types/metadata.d.ts +0 -69
  178. package/dist/utils/exec/commandAvailability.d.ts +0 -19
  179. package/dist/utils/exec/ripgrepBinary.d.ts +0 -3
  180. package/dist/utils/pagination/outputSizeLimit.d.ts +0 -16
  181. package/dist/utils/response/structuredPagination.d.ts +0 -9
@@ -1 +1 @@
1
- export { redactPath } from 'octocode-security/pathUtils';
1
+ export { redactPath } from '@octocodeai/octocode-engine/pathUtils';
@@ -1,5 +1,6 @@
1
1
  import type { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
2
- import type { DirectoryFetchResult } from '../tools/github_fetch_content/types.js';
2
+ import type { DirectoryFetchResult, FileMaterializationResult } from '../tools/github_fetch_content/types.js';
3
3
  export declare const MAX_DIRECTORY_FILES = 50;
4
4
  export declare const MAX_TOTAL_SIZE: number;
5
5
  export declare function fetchDirectoryContents(owner: string, repo: string, path: string, branch: string, authInfo?: AuthInfo, forceRefresh?: boolean): Promise<DirectoryFetchResult>;
6
+ export declare function fetchFileContentToDisk(owner: string, repo: string, path: string, branch: string, authInfo?: AuthInfo, forceRefresh?: boolean): Promise<FileMaterializationResult>;
@@ -1,5 +1,6 @@
1
1
  import type { components } from '@octokit/openapi-types';
2
2
  import type { RestEndpointMethodTypes } from '@octokit/plugin-rest-endpoint-methods';
3
+ import type { DiffPreview } from '../utils/parsers/diff.js';
3
4
  export type Repository = components['schemas']['full-repository'];
4
5
  export type ContentDirectoryEntry = components['schemas']['content-directory'][number];
5
6
  export type CodeSearchResultItem = components['schemas']['code-search-result-item'];
@@ -38,6 +39,14 @@ export interface HistoryCommitFile {
38
39
  additions: number;
39
40
  deletions: number;
40
41
  patch?: string;
42
+ patchPagination?: {
43
+ charOffset: number;
44
+ charLength: number;
45
+ totalChars: number;
46
+ hasMore: boolean;
47
+ nextCharOffset?: number;
48
+ };
49
+ diff?: DiffPreview;
41
50
  previousFilename?: string;
42
51
  }
43
52
  export interface HistoryCommit {
@@ -60,8 +69,24 @@ export interface HistoryCommit {
60
69
  deletions?: number;
61
70
  status?: string;
62
71
  patch?: string;
72
+ patchPagination?: {
73
+ charOffset: number;
74
+ charLength: number;
75
+ totalChars: number;
76
+ hasMore: boolean;
77
+ nextCharOffset?: number;
78
+ };
79
+ diff?: DiffPreview;
63
80
  previousFilename?: string;
64
81
  files?: HistoryCommitFile[];
82
+ filesPagination?: {
83
+ currentPage: number;
84
+ totalPages: number;
85
+ itemsPerPage: number;
86
+ totalFiles: number;
87
+ hasMore: boolean;
88
+ nextFilePage?: number;
89
+ };
65
90
  }
66
91
  export interface HistoryResult {
67
92
  type: 'file' | 'repo';
@@ -70,7 +95,7 @@ export interface HistoryResult {
70
95
  path?: string;
71
96
  commits: HistoryCommit[];
72
97
  pagination: {
73
- page: number;
98
+ currentPage: number;
74
99
  perPage: number;
75
100
  hasMore: boolean;
76
101
  nextPage?: number;
@@ -144,6 +169,12 @@ export type OptimizedCodeSearchResult = {
144
169
  uniqueFileCount?: number;
145
170
  };
146
171
  nonExistentScope?: boolean;
172
+ /**
173
+ * GitHub returned `incomplete_results: true` (the search index timed out or
174
+ * could not fully complete). Empty or partial `items` may be a FALSE NEGATIVE
175
+ * — distinct from a genuine no-match. Surfaced so callers aren't blind.
176
+ */
177
+ incompleteResults?: boolean;
147
178
  };
148
179
  export interface PRCommentItem {
149
180
  id: string;
@@ -11,6 +11,9 @@ export declare function fetchHistory(params: {
11
11
  author?: string;
12
12
  page: number;
13
13
  perPage: number;
14
+ filePage?: number;
15
+ itemsPerPage?: number;
14
16
  includeDiff: boolean;
17
+ charOffset?: number;
15
18
  charLength?: number;
16
19
  }, authInfo?: AuthInfo): Promise<GitHubAPIResponse<HistoryResult>>;
@@ -64,7 +64,7 @@ export declare function formatPRForResponse(pr: GitHubPullRequestItem, options?:
64
64
  reviews: import("./githubAPI.js").PRReviewInfo[];
65
65
  file_changes: {
66
66
  filename: string;
67
- status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
67
+ status: "modified" | "unchanged" | "added" | "removed" | "renamed" | "copied" | "changed";
68
68
  additions: number;
69
69
  deletions: number;
70
70
  patch: string;
@@ -1,3 +1,9 @@
1
1
  import type { GitHubApiFileItem } from '../tools/github_view_repo_structure/types.js';
2
2
  import { OctokitWithThrottling } from './client.js';
3
+ /**
4
+ * Number of subtrees that failed to fetch (non-propagating errors) while
5
+ * building this recursive listing. Lets callers surface a "partial tree"
6
+ * warning instead of presenting a partial tree as complete.
7
+ */
8
+ export declare function getRecursiveFetchFailureCount(value: unknown): number;
3
9
  export declare function fetchDirectoryContentsRecursivelyAPI(octokit: InstanceType<typeof OctokitWithThrottling>, owner: string, repo: string, branch: string, path: string, currentDepth: number, maxDepth: number, visitedPaths?: Set<string>): Promise<GitHubApiFileItem[]>;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  export * from './security/bridge.js';
2
- export * from './commands/BaseCommandBuilder.js';
3
- export * from './commands/RipgrepCommandBuilder.js';
4
2
  export * from './config.js';
5
3
  export * from './errors/domainErrors.js';
6
4
  export * from './errors/errorFactories.js';
@@ -26,7 +24,6 @@ export * from './github/repoStructure.js';
26
24
  export * from './github/repoStructurePagination.js';
27
25
  export * from './github/repoStructureRecursive.js';
28
26
  export * from './github/responseHeaders.js';
29
- export * from './hints/types.js';
30
27
  export * from './providers/capabilities.js';
31
28
  export * from './providers/factory.js';
32
29
  export * from './providers/github/githubContent.js';
@@ -75,10 +72,8 @@ export * from './tools/local_find_files/execution.js';
75
72
  export * from './tools/local_find_files/findFiles.js';
76
73
  export * from './tools/local_find_files/scheme.js';
77
74
  export * from './tools/local_ripgrep/execution.js';
78
- export * from './tools/local_ripgrep/grepFallbackExecutor.js';
79
75
  export * from './tools/local_ripgrep/patternValidation.js';
80
76
  export * from './tools/local_ripgrep/ripgrepExecutor.js';
81
- export * from './tools/local_ripgrep/ripgrepParser.js';
82
77
  export * from './tools/local_ripgrep/ripgrepResultBuilder.js';
83
78
  export * from './tools/local_ripgrep/scheme.js';
84
79
  export * from './tools/local_ripgrep/searchContentRipgrep.js';
@@ -86,6 +81,7 @@ export * from './tools/local_view_structure/execution.js';
86
81
  export * from './tools/local_view_structure/local_view_structure.js';
87
82
  export * from './tools/local_view_structure/scheme.js';
88
83
  export * from './tools/local_view_structure/structureFilters.js';
84
+ export * from './tools/oql_search/execution.js';
89
85
  export * from './tools/lsp/semantic_content/execution.js';
90
86
  export * from './tools/lsp/semantic_content/index.js';
91
87
  export * from './tools/lsp/semantic_content/scheme.js';
@@ -108,9 +104,10 @@ export * from './tools/toolMetadata/types.js';
108
104
  export * from './tools/directToolCatalog.js';
109
105
  export * from './tools/toolNames.js';
110
106
  export * from './tools/utils.js';
107
+ export { OqlSearchInputSchema } from './oql/schema.js';
108
+ export type { OqlSearchInput } from './oql/types.js';
111
109
  export * from './types/bulk.js';
112
110
  export * from './types/execution.js';
113
- export * from './types/metadata.js';
114
111
  export * from './types/promise.js';
115
112
  export * from './types/responseTypes.js';
116
113
  export * from './types/server.js';
@@ -119,12 +116,11 @@ export * from './types/toolResults.js';
119
116
  export * from './utils/core/bestEffort.js';
120
117
  export * from './utils/core/compare.js';
121
118
  export * from './utils/core/constants.js';
119
+ export * from './utils/core/lines.js';
122
120
  export * from './utils/core/promise.js';
123
121
  export * from './utils/core/safeRegex.js';
124
122
  export * from './utils/environment/environmentDetection.js';
125
- export * from './utils/exec/commandAvailability.js';
126
123
  export * from './utils/exec/npm.js';
127
- export * from './utils/exec/ripgrepBinary.js';
128
124
  export * from './utils/exec/safe.js';
129
125
  export * from './utils/exec/spawn.js';
130
126
  export * from './utils/file/byteOffset.js';
@@ -142,7 +138,6 @@ export * from './utils/pagination/boundary.js';
142
138
  export * from './utils/pagination/charLimit.js';
143
139
  export * from './utils/pagination/core.js';
144
140
  export * from './utils/pagination/hints.js';
145
- export * from './utils/pagination/outputSizeLimit.js';
146
141
  export * from './utils/pagination/types.js';
147
142
  export * from './utils/parsers/diff.js';
148
143
  export * from './utils/parsers/ripgrep.js';
@@ -153,7 +148,6 @@ export * from './utils/response/charSavings.js';
153
148
  export * from './utils/response/error.js';
154
149
  export * from './utils/response/groupedFinalizer.js';
155
150
  export * from './utils/response/pathRelativize.js';
156
- export * from './utils/response/structuredPagination.js';
157
151
  export type { GitHubPullRequestItem, Repository } from './github/githubAPI.js';
158
152
  export { isGitHubAPIError, isGitHubAPISuccess, isRepository, } from './github/githubAPI.js';
159
153
  export type { ProviderType, ProviderConfig, ProviderCapabilities, ProviderResponse, ICodeHostProvider, } from './providers/types.js';
@@ -161,27 +155,19 @@ export type { CodeSearchQuery, FileContentQuery, RepoSearchQuery, PullRequestQue
161
155
  export type { UnifiedRepository, CodeSearchItem, CodeSearchResult, FileContentResult, RepoSearchResult, PullRequestSearchResult, RepoStructureResult, } from './providers/types.js';
162
156
  export { isProviderSuccess, isProviderError } from './providers/types.js';
163
157
  export type { GitHubAPIError, GitHubAPISuccess, OptimizedCodeSearchResult, DiffEntry, PullRequestSimple, GitHubPullRequestsSearchParams, ContentDirectoryEntry, CodeSearchResultItem, RepoSearchResultItem, IssueSearchResultItem, IssueComment, PRReviewInfo, CommitFileInfo, CommitInfo, PRCommentItem, GetContentParameters, SearchCodeParameters, SearchCodeResponse, SearchReposParameters, GitHubAPIResponse, } from './github/githubAPI.js';
164
- export { HINTS, hasDynamicHints } from './hints/dynamic.js';
165
158
  export { summarizeEntries, paginateEntries, buildEntryPaginationHints, buildWalkWarnings, } from './tools/local_view_structure/structureResponse.js';
166
159
  export type { ExecResult } from './utils/core/types.js';
167
- export { getHints } from './hints/index.js';
168
- export { hints as ghSearchCodeHints } from './tools/github_search_code/hints.js';
169
- export { hints as githubFetchContentHints } from './tools/github_fetch_content/hints.js';
170
- export { hints as ghViewRepoStructureHints } from './tools/github_view_repo_structure/hints.js';
171
- export { hints as githubSearchReposHints } from './tools/github_search_repos/hints.js';
172
- export { hints as ghSearchPRsHints } from './tools/github_search_pull_requests/hints.js';
173
- export { hints as ghCloneRepoHints } from './tools/github_clone_repo/hints.js';
174
- export { hints as localRipgrepHints } from './tools/local_ripgrep/hints.js';
175
- export { hints as localViewStructureHints } from './tools/local_view_structure/hints.js';
176
- export { hints as localFindFilesHints } from './tools/local_find_files/hints.js';
177
- export { hints as localFetchContentHints } from './tools/local_fetch_content/hints.js';
178
- export { hints as lspSemanticContentHints } from './tools/lsp/semantic_content/hints.js';
179
- export { hints as npmSearchHints } from './tools/package_search/hints.js';
180
- export { getDynamicHints as getDynamicToolHints } from './hints/dynamic.js';
181
- export { securityRegistry, ContentSanitizer } from 'octocode-security';
182
- export { maskSensitiveData } from 'octocode-security/mask';
183
- export { configureSecurity } from 'octocode-security/withSecurityValidation';
184
- export { getOctocodeDir, paths, getDirectorySizeBytes, formatBytes, isWindows, isMac, HOME, getAppDataPath, storeCredentials, getCredentials, getCredentialsSync, deleteCredentials, isTokenExpired, isRefreshTokenExpired, getCredentialsFilePath, getEnvTokenSource, hasEnvToken, resolveTokenFull, refreshAuthToken, getTokenWithRefresh, getGhCliToken, } from 'octocode-shared';
185
- export type { OAuthToken, StoredCredentials } from 'octocode-shared';
160
+ export { securityRegistry, ContentSanitizer, } from '@octocodeai/octocode-engine/security';
161
+ export { maskSensitiveData } from '@octocodeai/octocode-engine/mask';
162
+ export { configureSecurity } from '@octocodeai/octocode-engine/withSecurityValidation';
163
+ export type { OAuthToken, StoredCredentials, StoreResult, DeleteResult, CredentialsStore, TokenSource, GetCredentialsOptions, ResolvedToken, TokenWithRefreshResult, ResolvedTokenWithRefresh, RefreshResult, FullTokenResolution, GhCliTokenGetter, } from './shared/credentials/index.js';
164
+ export { storeCredentials, getCredentials, getCredentialsSync, deleteCredentials, updateToken, invalidateCredentialsCache, getToken, getTokenSync, resolveToken, getTokenWithRefresh, resolveTokenWithRefresh, refreshAuthToken, resolveTokenFull, resetTokenResolution, listStoredHosts, listStoredHostsSync, hasCredentials, hasCredentialsSync, isTokenExpired, isRefreshTokenExpired, getCredentialsFilePath, readCredentialsStore, encrypt, decrypt, ensureOctocodeDir, OCTOCODE_DIR, CREDENTIALS_FILE, KEY_FILE, ENV_TOKEN_VARS, getTokenFromEnv, getEnvTokenSource, hasEnvToken, getGhCliToken, } from './shared/credentials/index.js';
165
+ export { isWindows, isMac, isLinux, HOME, getAppDataPath, getLocalAppDataPath, getPlatformName, getArchitecture, } from './shared/platform/index.js';
166
+ export type { ToolCharSavingsStats, GitHubCacheHitStats, StatsCounterMap, SessionTotalUsageStats, SessionStats, PersistedSession, PersistedStats, SessionUpdateResult, SessionOptions, } from './shared/session/index.js';
167
+ export { SESSION_FILE, STATS_FILE, getSessionId, getOrCreateSession, updateSessionStats, resetSessionStats, flushSession, flushSessionSync, deleteSession, incrementToolCalls, incrementErrors, incrementRateLimits, incrementRateLimitByProvider, incrementGitHubCacheHits, incrementGitHubCacheRateLimits, incrementPackageRegistryFailures, incrementToolCharSavings, _resetSessionState, } from './shared/session/index.js';
168
+ export type { OctocodeConfig, ResolvedConfig, ValidationResult, LoadConfigResult, GitHubConfigOptions, LocalConfigOptions, ToolsConfigOptions, NetworkConfigOptions, LspConfigOptions, OutputConfigOptions, OutputPaginationConfigOptions, RequiredGitHubConfig, RequiredLocalConfig, RequiredToolsConfig, RequiredNetworkConfig, RequiredLspConfig, RequiredOutputConfig, RequiredOutputPaginationConfig, } from './shared/config/index.js';
169
+ export { CONFIG_SCHEMA_VERSION, CONFIG_FILE_NAME, DEFAULT_CONFIG, DEFAULT_GITHUB_CONFIG, DEFAULT_LOCAL_CONFIG, DEFAULT_TOOLS_CONFIG, DEFAULT_NETWORK_CONFIG, DEFAULT_LSP_CONFIG, DEFAULT_OUTPUT_CONFIG, MIN_TIMEOUT, MAX_TIMEOUT, MIN_RETRIES, MAX_RETRIES, MIN_OUTPUT_DEFAULT_CHAR_LENGTH, MAX_OUTPUT_DEFAULT_CHAR_LENGTH, CONFIG_FILE_PATH, loadConfig, loadConfigSync, configExists, getConfigPath, getOctocodeDir, validateConfig, getConfig, getConfigSync, reloadConfig, resolveConfig, resolveConfigSync, invalidateConfigCache, getConfigValue, _resetConfigCache, _getCacheState, OctocodeConfigSchema, } from './shared/config/index.js';
170
+ export { OCTOCODE_HOME, getDefaultOctocodeHome, paths, ensureHome, ensureTmp, ensureClone, ensureRepos, ensureTree, ensureBinary, ensureUnzip, } from './shared/paths.js';
171
+ export { getDirectorySizeBytes, formatBytes } from './shared/fs-utils.js';
186
172
  export { completeMetadata } from '@octocodeai/octocode-core';
187
173
  export { z } from 'zod';