@cleocode/nexus 2026.5.129 → 2026.5.131
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/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +8 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/registry/index.d.ts +1 -1
- package/dist/src/registry/index.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +4 -4
- package/dist/src/schema/code-index.d.ts +0 -240
- package/dist/src/schema/code-index.d.ts.map +0 -1
- package/dist/src/schema/code-index.js +0 -92
- package/dist/src/schema/code-index.js.map +0 -1
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Drizzle SQLite schema for the persistent code symbol index.
|
|
3
|
-
*
|
|
4
|
-
* Stores extracted symbols from tree-sitter parsing, enabling
|
|
5
|
-
* incremental re-indexing and cross-session symbol lookup without
|
|
6
|
-
* re-parsing source files.
|
|
7
|
-
*
|
|
8
|
-
* The schema lives in nexus.db alongside the project registry tables.
|
|
9
|
-
*
|
|
10
|
-
* @module schema/code-index
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Persistent index of code symbols extracted by tree-sitter.
|
|
14
|
-
*
|
|
15
|
-
* One row per symbol per file. The `projectId` foreign key links each
|
|
16
|
-
* symbol to its owning project in the `project_registry` table.
|
|
17
|
-
*
|
|
18
|
-
* Compound uniqueness: `(projectId, filePath, symbolName, startLine)` —
|
|
19
|
-
* allows the same name in different files or scopes.
|
|
20
|
-
*/
|
|
21
|
-
export declare const codeIndex: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
22
|
-
name: "code_index";
|
|
23
|
-
schema: undefined;
|
|
24
|
-
columns: {
|
|
25
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
26
|
-
name: string;
|
|
27
|
-
tableName: "code_index";
|
|
28
|
-
dataType: "string";
|
|
29
|
-
data: string;
|
|
30
|
-
driverParam: string;
|
|
31
|
-
notNull: true;
|
|
32
|
-
hasDefault: false;
|
|
33
|
-
isPrimaryKey: true;
|
|
34
|
-
isAutoincrement: false;
|
|
35
|
-
hasRuntimeDefault: false;
|
|
36
|
-
enumValues: [string, ...string[]];
|
|
37
|
-
baseColumn: never;
|
|
38
|
-
identity: undefined;
|
|
39
|
-
generated: undefined;
|
|
40
|
-
}, {}>;
|
|
41
|
-
projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
42
|
-
name: string;
|
|
43
|
-
tableName: "code_index";
|
|
44
|
-
dataType: "string";
|
|
45
|
-
data: string;
|
|
46
|
-
driverParam: string;
|
|
47
|
-
notNull: true;
|
|
48
|
-
hasDefault: false;
|
|
49
|
-
isPrimaryKey: false;
|
|
50
|
-
isAutoincrement: false;
|
|
51
|
-
hasRuntimeDefault: false;
|
|
52
|
-
enumValues: [string, ...string[]];
|
|
53
|
-
baseColumn: never;
|
|
54
|
-
identity: undefined;
|
|
55
|
-
generated: undefined;
|
|
56
|
-
}, {}>;
|
|
57
|
-
filePath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
58
|
-
name: string;
|
|
59
|
-
tableName: "code_index";
|
|
60
|
-
dataType: "string";
|
|
61
|
-
data: string;
|
|
62
|
-
driverParam: string;
|
|
63
|
-
notNull: true;
|
|
64
|
-
hasDefault: false;
|
|
65
|
-
isPrimaryKey: false;
|
|
66
|
-
isAutoincrement: false;
|
|
67
|
-
hasRuntimeDefault: false;
|
|
68
|
-
enumValues: [string, ...string[]];
|
|
69
|
-
baseColumn: never;
|
|
70
|
-
identity: undefined;
|
|
71
|
-
generated: undefined;
|
|
72
|
-
}, {}>;
|
|
73
|
-
symbolName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
74
|
-
name: string;
|
|
75
|
-
tableName: "code_index";
|
|
76
|
-
dataType: "string";
|
|
77
|
-
data: string;
|
|
78
|
-
driverParam: string;
|
|
79
|
-
notNull: true;
|
|
80
|
-
hasDefault: false;
|
|
81
|
-
isPrimaryKey: false;
|
|
82
|
-
isAutoincrement: false;
|
|
83
|
-
hasRuntimeDefault: false;
|
|
84
|
-
enumValues: [string, ...string[]];
|
|
85
|
-
baseColumn: never;
|
|
86
|
-
identity: undefined;
|
|
87
|
-
generated: undefined;
|
|
88
|
-
}, {}>;
|
|
89
|
-
kind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
90
|
-
name: string;
|
|
91
|
-
tableName: "code_index";
|
|
92
|
-
dataType: "string";
|
|
93
|
-
data: string;
|
|
94
|
-
driverParam: string;
|
|
95
|
-
notNull: true;
|
|
96
|
-
hasDefault: false;
|
|
97
|
-
isPrimaryKey: false;
|
|
98
|
-
isAutoincrement: false;
|
|
99
|
-
hasRuntimeDefault: false;
|
|
100
|
-
enumValues: [string, ...string[]];
|
|
101
|
-
baseColumn: never;
|
|
102
|
-
identity: undefined;
|
|
103
|
-
generated: undefined;
|
|
104
|
-
}, {}>;
|
|
105
|
-
startLine: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
106
|
-
name: string;
|
|
107
|
-
tableName: "code_index";
|
|
108
|
-
dataType: "number int53";
|
|
109
|
-
data: number;
|
|
110
|
-
driverParam: number;
|
|
111
|
-
notNull: true;
|
|
112
|
-
hasDefault: false;
|
|
113
|
-
isPrimaryKey: false;
|
|
114
|
-
isAutoincrement: false;
|
|
115
|
-
hasRuntimeDefault: false;
|
|
116
|
-
enumValues: undefined;
|
|
117
|
-
baseColumn: never;
|
|
118
|
-
identity: undefined;
|
|
119
|
-
generated: undefined;
|
|
120
|
-
}, {}>;
|
|
121
|
-
endLine: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
122
|
-
name: string;
|
|
123
|
-
tableName: "code_index";
|
|
124
|
-
dataType: "number int53";
|
|
125
|
-
data: number;
|
|
126
|
-
driverParam: number;
|
|
127
|
-
notNull: true;
|
|
128
|
-
hasDefault: false;
|
|
129
|
-
isPrimaryKey: false;
|
|
130
|
-
isAutoincrement: false;
|
|
131
|
-
hasRuntimeDefault: false;
|
|
132
|
-
enumValues: undefined;
|
|
133
|
-
baseColumn: never;
|
|
134
|
-
identity: undefined;
|
|
135
|
-
generated: undefined;
|
|
136
|
-
}, {}>;
|
|
137
|
-
language: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
138
|
-
name: string;
|
|
139
|
-
tableName: "code_index";
|
|
140
|
-
dataType: "string";
|
|
141
|
-
data: string;
|
|
142
|
-
driverParam: string;
|
|
143
|
-
notNull: true;
|
|
144
|
-
hasDefault: false;
|
|
145
|
-
isPrimaryKey: false;
|
|
146
|
-
isAutoincrement: false;
|
|
147
|
-
hasRuntimeDefault: false;
|
|
148
|
-
enumValues: [string, ...string[]];
|
|
149
|
-
baseColumn: never;
|
|
150
|
-
identity: undefined;
|
|
151
|
-
generated: undefined;
|
|
152
|
-
}, {}>;
|
|
153
|
-
exported: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
154
|
-
name: string;
|
|
155
|
-
tableName: "code_index";
|
|
156
|
-
dataType: "boolean";
|
|
157
|
-
data: boolean;
|
|
158
|
-
driverParam: number;
|
|
159
|
-
notNull: false;
|
|
160
|
-
hasDefault: true;
|
|
161
|
-
isPrimaryKey: false;
|
|
162
|
-
isAutoincrement: false;
|
|
163
|
-
hasRuntimeDefault: false;
|
|
164
|
-
enumValues: undefined;
|
|
165
|
-
baseColumn: never;
|
|
166
|
-
identity: undefined;
|
|
167
|
-
generated: undefined;
|
|
168
|
-
}, {}>;
|
|
169
|
-
parent: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
170
|
-
name: string;
|
|
171
|
-
tableName: "code_index";
|
|
172
|
-
dataType: "string";
|
|
173
|
-
data: string;
|
|
174
|
-
driverParam: string;
|
|
175
|
-
notNull: false;
|
|
176
|
-
hasDefault: false;
|
|
177
|
-
isPrimaryKey: false;
|
|
178
|
-
isAutoincrement: false;
|
|
179
|
-
hasRuntimeDefault: false;
|
|
180
|
-
enumValues: [string, ...string[]];
|
|
181
|
-
baseColumn: never;
|
|
182
|
-
identity: undefined;
|
|
183
|
-
generated: undefined;
|
|
184
|
-
}, {}>;
|
|
185
|
-
returnType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
186
|
-
name: string;
|
|
187
|
-
tableName: "code_index";
|
|
188
|
-
dataType: "string";
|
|
189
|
-
data: string;
|
|
190
|
-
driverParam: string;
|
|
191
|
-
notNull: false;
|
|
192
|
-
hasDefault: false;
|
|
193
|
-
isPrimaryKey: false;
|
|
194
|
-
isAutoincrement: false;
|
|
195
|
-
hasRuntimeDefault: false;
|
|
196
|
-
enumValues: [string, ...string[]];
|
|
197
|
-
baseColumn: never;
|
|
198
|
-
identity: undefined;
|
|
199
|
-
generated: undefined;
|
|
200
|
-
}, {}>;
|
|
201
|
-
docSummary: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
202
|
-
name: string;
|
|
203
|
-
tableName: "code_index";
|
|
204
|
-
dataType: "string";
|
|
205
|
-
data: string;
|
|
206
|
-
driverParam: string;
|
|
207
|
-
notNull: false;
|
|
208
|
-
hasDefault: false;
|
|
209
|
-
isPrimaryKey: false;
|
|
210
|
-
isAutoincrement: false;
|
|
211
|
-
hasRuntimeDefault: false;
|
|
212
|
-
enumValues: [string, ...string[]];
|
|
213
|
-
baseColumn: never;
|
|
214
|
-
identity: undefined;
|
|
215
|
-
generated: undefined;
|
|
216
|
-
}, {}>;
|
|
217
|
-
indexedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
218
|
-
name: string;
|
|
219
|
-
tableName: "code_index";
|
|
220
|
-
dataType: "string";
|
|
221
|
-
data: string;
|
|
222
|
-
driverParam: string;
|
|
223
|
-
notNull: true;
|
|
224
|
-
hasDefault: false;
|
|
225
|
-
isPrimaryKey: false;
|
|
226
|
-
isAutoincrement: false;
|
|
227
|
-
hasRuntimeDefault: false;
|
|
228
|
-
enumValues: [string, ...string[]];
|
|
229
|
-
baseColumn: never;
|
|
230
|
-
identity: undefined;
|
|
231
|
-
generated: undefined;
|
|
232
|
-
}, {}>;
|
|
233
|
-
};
|
|
234
|
-
dialect: "sqlite";
|
|
235
|
-
}>;
|
|
236
|
-
/** TypeScript type for a full code_index row (select). */
|
|
237
|
-
export type CodeIndexRow = typeof codeIndex.$inferSelect;
|
|
238
|
-
/** TypeScript type for inserting a new code_index row. */
|
|
239
|
-
export type NewCodeIndexRow = typeof codeIndex.$inferInsert;
|
|
240
|
-
//# sourceMappingURL=code-index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-index.d.ts","sourceRoot":"","sources":["../../../src/schema/code-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiFpB,CAAC;AAEH,0DAA0D;AAC1D,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,YAAY,CAAC;AAEzD,0DAA0D;AAC1D,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,YAAY,CAAC"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Drizzle SQLite schema for the persistent code symbol index.
|
|
3
|
-
*
|
|
4
|
-
* Stores extracted symbols from tree-sitter parsing, enabling
|
|
5
|
-
* incremental re-indexing and cross-session symbol lookup without
|
|
6
|
-
* re-parsing source files.
|
|
7
|
-
*
|
|
8
|
-
* The schema lives in nexus.db alongside the project registry tables.
|
|
9
|
-
*
|
|
10
|
-
* @module schema/code-index
|
|
11
|
-
*/
|
|
12
|
-
import { integer, sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
|
13
|
-
/**
|
|
14
|
-
* Persistent index of code symbols extracted by tree-sitter.
|
|
15
|
-
*
|
|
16
|
-
* One row per symbol per file. The `projectId` foreign key links each
|
|
17
|
-
* symbol to its owning project in the `project_registry` table.
|
|
18
|
-
*
|
|
19
|
-
* Compound uniqueness: `(projectId, filePath, symbolName, startLine)` —
|
|
20
|
-
* allows the same name in different files or scopes.
|
|
21
|
-
*/
|
|
22
|
-
export const codeIndex = sqliteTable('code_index', {
|
|
23
|
-
/**
|
|
24
|
-
* Stable row identifier (UUID v4).
|
|
25
|
-
* Generated at index time; never reused after deletion.
|
|
26
|
-
*/
|
|
27
|
-
id: text('id').primaryKey(),
|
|
28
|
-
/**
|
|
29
|
-
* Foreign key to `project_registry.project_id`.
|
|
30
|
-
* Scopes the symbol to its owning CLEO project.
|
|
31
|
-
*/
|
|
32
|
-
projectId: text('project_id').notNull(),
|
|
33
|
-
/**
|
|
34
|
-
* Relative file path within the project root.
|
|
35
|
-
* Example: `src/core/parser.ts`
|
|
36
|
-
*/
|
|
37
|
-
filePath: text('file_path').notNull(),
|
|
38
|
-
/**
|
|
39
|
-
* Symbol name as extracted from the AST.
|
|
40
|
-
* Example: `parseFile`, `HttpTransport`, `validateEnvelope`
|
|
41
|
-
*/
|
|
42
|
-
symbolName: text('symbol_name').notNull(),
|
|
43
|
-
/**
|
|
44
|
-
* Symbol kind from the tree-sitter capture group.
|
|
45
|
-
* One of: `function`, `method`, `class`, `interface`, `type`,
|
|
46
|
-
* `enum`, `variable`, `constant`, `module`, `import`, `export`,
|
|
47
|
-
* `struct`, `trait`, `impl`.
|
|
48
|
-
*/
|
|
49
|
-
kind: text('kind').notNull(),
|
|
50
|
-
/**
|
|
51
|
-
* Start line of the symbol in the source file (1-based).
|
|
52
|
-
*/
|
|
53
|
-
startLine: integer('start_line').notNull(),
|
|
54
|
-
/**
|
|
55
|
-
* End line of the symbol in the source file (1-based).
|
|
56
|
-
*/
|
|
57
|
-
endLine: integer('end_line').notNull(),
|
|
58
|
-
/**
|
|
59
|
-
* Source language detected from the file extension.
|
|
60
|
-
* One of: `typescript`, `tsx`, `javascript`, `python`, `go`,
|
|
61
|
-
* `rust`, `java`, `c`, `cpp`, `ruby`.
|
|
62
|
-
*/
|
|
63
|
-
language: text('language').notNull(),
|
|
64
|
-
/**
|
|
65
|
-
* Whether the symbol has an `export` modifier (1) or not (0).
|
|
66
|
-
* Stored as integer boolean for SQLite compatibility.
|
|
67
|
-
*/
|
|
68
|
-
exported: integer('exported', { mode: 'boolean' }).default(false),
|
|
69
|
-
/**
|
|
70
|
-
* Parent symbol name for nested declarations.
|
|
71
|
-
* Set for methods inside a class or impl block.
|
|
72
|
-
* Example: `HttpTransport` for a method inside that class.
|
|
73
|
-
*/
|
|
74
|
-
parent: text('parent'),
|
|
75
|
-
/**
|
|
76
|
-
* Return type annotation extracted from the declaration.
|
|
77
|
-
* Null if not present or not detected by the grammar pattern.
|
|
78
|
-
*/
|
|
79
|
-
returnType: text('return_type'),
|
|
80
|
-
/**
|
|
81
|
-
* First line of the leading JSDoc/docstring comment, if present.
|
|
82
|
-
* Enables semantic search without re-reading source files.
|
|
83
|
-
*/
|
|
84
|
-
docSummary: text('doc_summary'),
|
|
85
|
-
/**
|
|
86
|
-
* ISO 8601 timestamp when this row was last indexed.
|
|
87
|
-
* Used for incremental re-indexing: skip files whose mtime
|
|
88
|
-
* predates this timestamp.
|
|
89
|
-
*/
|
|
90
|
-
indexedAt: text('indexed_at').notNull(),
|
|
91
|
-
});
|
|
92
|
-
//# sourceMappingURL=code-index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-index.js","sourceRoot":"","sources":["../../../src/schema/code-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,IA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