@octocodeai/octocode-core 16.3.0 → 16.5.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 (44) hide show
  1. package/README.md +22 -0
  2. package/dist/data/compressed.js +1 -1
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +1 -0
  5. package/dist/resources/global.d.ts +17 -0
  6. package/dist/resources/global.js +1 -0
  7. package/dist/resources/tools/_toolkit.d.ts +87 -0
  8. package/dist/resources/tools/_toolkit.js +1 -0
  9. package/dist/resources/tools/ghCloneRepo.d.ts +27 -0
  10. package/dist/resources/tools/ghCloneRepo.js +1 -0
  11. package/dist/resources/tools/ghGetFileContent.d.ts +32 -0
  12. package/dist/resources/tools/ghGetFileContent.js +1 -0
  13. package/dist/resources/tools/ghHistoryResearch.d.ts +133 -0
  14. package/dist/resources/tools/ghHistoryResearch.js +1 -0
  15. package/dist/resources/tools/ghSearchCode.d.ts +23 -0
  16. package/dist/resources/tools/ghSearchCode.js +1 -0
  17. package/dist/resources/tools/ghSearchRepos.d.ts +40 -0
  18. package/dist/resources/tools/ghSearchRepos.js +1 -0
  19. package/dist/resources/tools/ghViewRepoStructure.d.ts +17 -0
  20. package/dist/resources/tools/ghViewRepoStructure.js +1 -0
  21. package/dist/resources/tools/localBinaryInspect.d.ts +42 -0
  22. package/dist/resources/tools/localBinaryInspect.js +1 -0
  23. package/dist/resources/tools/localFindFiles.d.ts +41 -0
  24. package/dist/resources/tools/localFindFiles.js +1 -0
  25. package/dist/resources/tools/localGetFileContent.d.ts +24 -0
  26. package/dist/resources/tools/localGetFileContent.js +1 -0
  27. package/dist/resources/tools/localSearchCode.d.ts +73 -0
  28. package/dist/resources/tools/localSearchCode.js +1 -0
  29. package/dist/resources/tools/localViewStructure.d.ts +29 -0
  30. package/dist/resources/tools/localViewStructure.js +1 -0
  31. package/dist/resources/tools/lspGetSemantics.d.ts +79 -0
  32. package/dist/resources/tools/lspGetSemantics.js +1 -0
  33. package/dist/resources/tools/npmSearch.d.ts +11 -0
  34. package/dist/resources/tools/npmSearch.js +1 -0
  35. package/dist/schemas/extraTypes.d.ts +178 -0
  36. package/dist/schemas/extraTypes.js +1 -0
  37. package/dist/schemas/outputs.d.ts +843 -0
  38. package/dist/schemas/outputs.js +1 -0
  39. package/dist/schemas/runtime.d.ts +11 -0
  40. package/dist/schemas/runtime.js +1 -0
  41. package/dist/schemas.d.ts +514 -0
  42. package/dist/schemas.js +1 -0
  43. package/dist/types/index.d.ts +9 -0
  44. package/package.json +26 -2
@@ -0,0 +1,178 @@
1
+ import type { CharPagination, LspRange, LspLocation, LspMode, PaginationInfo, LocalSearchCodeFile, LocalFindFilesEntry, GitHubRepositoryItem, GitHubPullRequestItem, GitHubSearchCodeGroup, GitHubFileContentData } from "../types/index.js";
2
+ export interface BaseQuery {
3
+ id?: string;
4
+ mainResearchGoal?: string;
5
+ researchGoal?: string;
6
+ reasoning?: string;
7
+ verbose?: boolean;
8
+ }
9
+ export interface BaseQueryLocal extends BaseQuery {
10
+ path?: string;
11
+ }
12
+ export interface LspExactPosition {
13
+ uri: string;
14
+ line: number;
15
+ character: number;
16
+ }
17
+ export interface LspCallHierarchyItem {
18
+ name: string;
19
+ uri: string;
20
+ range: LspRange;
21
+ content?: string;
22
+ }
23
+ export interface LspIncomingCall {
24
+ from: LspCallHierarchyItem;
25
+ fromRanges?: LspRange[];
26
+ }
27
+ export interface LspOutgoingCall {
28
+ to: LspCallHierarchyItem;
29
+ fromRanges?: LspRange[];
30
+ }
31
+ interface BaseToolResult {
32
+ status?: "empty" | "error";
33
+ hints?: readonly string[] | string[];
34
+ warnings?: string[];
35
+ error?: string;
36
+ errorCode?: string;
37
+ rawResponseChars?: number;
38
+ [key: string]: unknown;
39
+ }
40
+ export interface LocalSearchCodeToolResult extends BaseToolResult {
41
+ files?: LocalSearchCodeFile[];
42
+ pagination?: PaginationInfo;
43
+ searchEngine?: string;
44
+ }
45
+ export interface LocalFindFilesToolResult extends BaseToolResult {
46
+ files?: LocalFindFilesEntry[];
47
+ pagination?: PaginationInfo;
48
+ }
49
+ export interface MatchRange {
50
+ start: number;
51
+ end: number;
52
+ }
53
+ export interface LocalGetFileContentToolResult extends BaseToolResult {
54
+ content?: string;
55
+ contentView?: "none" | "standard" | "symbols";
56
+ isSkeleton?: boolean;
57
+ totalLines?: number;
58
+ startLine?: number;
59
+ endLine?: number;
60
+ isPartial?: boolean;
61
+ matchRanges?: MatchRange[];
62
+ pagination?: CharPagination | PaginationInfo;
63
+ modified?: string;
64
+ lastModified?: string;
65
+ lastModifiedBy?: string;
66
+ filePath?: string;
67
+ }
68
+ export interface LocalViewStructureEntryFlat {
69
+ name?: string;
70
+ type: "file" | "dir" | "link" | "directory" | "symlink";
71
+ path?: string;
72
+ depth?: number;
73
+ size?: number | string;
74
+ modified?: string;
75
+ permissions?: string;
76
+ }
77
+ export interface LocalViewStructureToolResult extends BaseToolResult {
78
+ entries?: LocalViewStructureEntryFlat[];
79
+ path?: string;
80
+ files?: string[];
81
+ folders?: string[];
82
+ links?: string[];
83
+ summary?: string | Record<string, unknown>;
84
+ pagination?: PaginationInfo;
85
+ }
86
+ export interface LspGotoDefinitionToolResult extends BaseToolResult {
87
+ locations?: LspLocation[];
88
+ lspMode?: LspMode;
89
+ }
90
+ export interface LspFindReferencesToolResult extends BaseToolResult {
91
+ locations?: LspLocation[];
92
+ references?: LspLocation[];
93
+ pagination?: PaginationInfo;
94
+ lspMode?: LspMode;
95
+ }
96
+ export interface LspCallHierarchyToolResult extends BaseToolResult {
97
+ item?: LspCallHierarchyItem;
98
+ incomingCalls?: LspIncomingCall[];
99
+ outgoingCalls?: LspOutgoingCall[];
100
+ direction?: "incoming" | "outgoing";
101
+ depth?: number;
102
+ pagination?: PaginationInfo;
103
+ lspMode?: LspMode;
104
+ }
105
+ export interface GitHubRepoStructureDirectoryEntry {
106
+ files: string[];
107
+ folders: string[];
108
+ }
109
+ export interface GitHubDirectoryFileEntry {
110
+ path: string;
111
+ size: number;
112
+ type: string;
113
+ }
114
+ export interface GitHubSearchCodeToolResult extends BaseToolResult {
115
+ results?: GitHubSearchCodeGroup[];
116
+ pagination?: PaginationInfo;
117
+ outputPagination?: CharPagination;
118
+ }
119
+ export interface GitHubFetchContentToolResult extends BaseToolResult {
120
+ results?: GitHubFileContentData[];
121
+ pagination?: CharPagination;
122
+ }
123
+ export interface GitHubViewRepoStructureToolResult extends BaseToolResult {
124
+ resolvedBranch?: string;
125
+ branchFallback?: {
126
+ requestedBranch: string;
127
+ actualBranch: string;
128
+ };
129
+ structure?: Record<string, GitHubRepoStructureDirectoryEntry>;
130
+ summary?: {
131
+ totalFiles?: number;
132
+ totalFolders?: number;
133
+ truncated?: boolean;
134
+ filtered?: boolean;
135
+ originalCount?: number;
136
+ };
137
+ pagination?: PaginationInfo;
138
+ }
139
+ export interface GitHubSearchRepositoriesToolResult extends BaseToolResult {
140
+ repositories?: GitHubRepositoryItem[];
141
+ pagination?: PaginationInfo;
142
+ }
143
+ export interface GitHubSearchPullRequestsToolResult extends BaseToolResult {
144
+ pull_requests?: GitHubPullRequestItem[];
145
+ total_count?: number;
146
+ pagination?: PaginationInfo;
147
+ outputPagination?: {
148
+ charOffset: number;
149
+ charLength: number;
150
+ totalChars: number;
151
+ hasMore: boolean;
152
+ currentPage: number;
153
+ totalPages: number;
154
+ };
155
+ }
156
+ export interface GitHubRepositoryOutput {
157
+ owner: string;
158
+ repo: string;
159
+ defaultBranch: string;
160
+ stars: number;
161
+ description: string;
162
+ url: string;
163
+ createdAt: string;
164
+ updatedAt: string;
165
+ pushedAt: string;
166
+ visibility: "public" | "private" | "internal";
167
+ topics: string[];
168
+ forksCount: number;
169
+ openIssuesCount?: number;
170
+ language?: string;
171
+ license?: string;
172
+ homepage?: string;
173
+ }
174
+ export interface GitHubSearchRepositoriesData {
175
+ repositories: GitHubRepositoryOutput[];
176
+ pagination?: PaginationInfo;
177
+ }
178
+ export {};
@@ -0,0 +1 @@
1
+ export{};