@pella-labs/pinakes 0.1.5 → 0.1.7
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/db/migrations/0000_conscious_lockheed.sql +115 -0
- package/dist/db/migrations/0001_icy_dust.sql +1 -0
- package/dist/db/migrations/meta/0000_snapshot.json +496 -0
- package/dist/db/migrations/meta/0001_snapshot.json +504 -0
- package/dist/db/migrations/meta/_journal.json +20 -0
- package/dist/db/migrations/migrations/0000_conscious_lockheed.sql +115 -0
- package/dist/db/migrations/migrations/0001_icy_dust.sql +1 -0
- package/dist/db/migrations/migrations/meta/0000_snapshot.json +496 -0
- package/dist/db/migrations/migrations/meta/0001_snapshot.json +504 -0
- package/dist/db/migrations/migrations/meta/_journal.json +20 -0
- package/dist/ingest/manifest.d.ts +2 -8
- package/dist/ingest/manifest.d.ts.map +1 -1
- package/dist/ingest/manifest.js +5 -13
- package/dist/ingest/manifest.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "0c86efba-d829-4261-9806-2230452df23c",
|
|
5
|
+
"prevId": "b3e9b0d1-ad8e-4ff9-8e7c-664ddb109318",
|
|
6
|
+
"tables": {
|
|
7
|
+
"kg_audit": {
|
|
8
|
+
"name": "kg_audit",
|
|
9
|
+
"columns": {
|
|
10
|
+
"id": {
|
|
11
|
+
"name": "id",
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": true
|
|
16
|
+
},
|
|
17
|
+
"ts": {
|
|
18
|
+
"name": "ts",
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
},
|
|
24
|
+
"tool_name": {
|
|
25
|
+
"name": "tool_name",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true,
|
|
29
|
+
"autoincrement": false
|
|
30
|
+
},
|
|
31
|
+
"scope_requested": {
|
|
32
|
+
"name": "scope_requested",
|
|
33
|
+
"type": "text",
|
|
34
|
+
"primaryKey": false,
|
|
35
|
+
"notNull": true,
|
|
36
|
+
"autoincrement": false
|
|
37
|
+
},
|
|
38
|
+
"caller_ctx": {
|
|
39
|
+
"name": "caller_ctx",
|
|
40
|
+
"type": "text",
|
|
41
|
+
"primaryKey": false,
|
|
42
|
+
"notNull": false,
|
|
43
|
+
"autoincrement": false
|
|
44
|
+
},
|
|
45
|
+
"response_tokens": {
|
|
46
|
+
"name": "response_tokens",
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"primaryKey": false,
|
|
49
|
+
"notNull": false,
|
|
50
|
+
"autoincrement": false
|
|
51
|
+
},
|
|
52
|
+
"error": {
|
|
53
|
+
"name": "error",
|
|
54
|
+
"type": "text",
|
|
55
|
+
"primaryKey": false,
|
|
56
|
+
"notNull": false,
|
|
57
|
+
"autoincrement": false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"indexes": {},
|
|
61
|
+
"foreignKeys": {},
|
|
62
|
+
"compositePrimaryKeys": {},
|
|
63
|
+
"uniqueConstraints": {},
|
|
64
|
+
"checkConstraints": {}
|
|
65
|
+
},
|
|
66
|
+
"kg_chunks": {
|
|
67
|
+
"name": "kg_chunks",
|
|
68
|
+
"columns": {
|
|
69
|
+
"id": {
|
|
70
|
+
"name": "id",
|
|
71
|
+
"type": "text",
|
|
72
|
+
"primaryKey": true,
|
|
73
|
+
"notNull": true,
|
|
74
|
+
"autoincrement": false
|
|
75
|
+
},
|
|
76
|
+
"node_id": {
|
|
77
|
+
"name": "node_id",
|
|
78
|
+
"type": "text",
|
|
79
|
+
"primaryKey": false,
|
|
80
|
+
"notNull": true,
|
|
81
|
+
"autoincrement": false
|
|
82
|
+
},
|
|
83
|
+
"chunk_index": {
|
|
84
|
+
"name": "chunk_index",
|
|
85
|
+
"type": "integer",
|
|
86
|
+
"primaryKey": false,
|
|
87
|
+
"notNull": true,
|
|
88
|
+
"autoincrement": false
|
|
89
|
+
},
|
|
90
|
+
"text": {
|
|
91
|
+
"name": "text",
|
|
92
|
+
"type": "text",
|
|
93
|
+
"primaryKey": false,
|
|
94
|
+
"notNull": true,
|
|
95
|
+
"autoincrement": false
|
|
96
|
+
},
|
|
97
|
+
"chunk_sha": {
|
|
98
|
+
"name": "chunk_sha",
|
|
99
|
+
"type": "text",
|
|
100
|
+
"primaryKey": false,
|
|
101
|
+
"notNull": true,
|
|
102
|
+
"autoincrement": false
|
|
103
|
+
},
|
|
104
|
+
"token_count": {
|
|
105
|
+
"name": "token_count",
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"primaryKey": false,
|
|
108
|
+
"notNull": true,
|
|
109
|
+
"autoincrement": false
|
|
110
|
+
},
|
|
111
|
+
"created_at": {
|
|
112
|
+
"name": "created_at",
|
|
113
|
+
"type": "integer",
|
|
114
|
+
"primaryKey": false,
|
|
115
|
+
"notNull": true,
|
|
116
|
+
"autoincrement": false
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"indexes": {
|
|
120
|
+
"idx_kg_chunks_node": {
|
|
121
|
+
"name": "idx_kg_chunks_node",
|
|
122
|
+
"columns": [
|
|
123
|
+
"node_id"
|
|
124
|
+
],
|
|
125
|
+
"isUnique": false
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"foreignKeys": {
|
|
129
|
+
"kg_chunks_node_id_kg_nodes_id_fk": {
|
|
130
|
+
"name": "kg_chunks_node_id_kg_nodes_id_fk",
|
|
131
|
+
"tableFrom": "kg_chunks",
|
|
132
|
+
"tableTo": "kg_nodes",
|
|
133
|
+
"columnsFrom": [
|
|
134
|
+
"node_id"
|
|
135
|
+
],
|
|
136
|
+
"columnsTo": [
|
|
137
|
+
"id"
|
|
138
|
+
],
|
|
139
|
+
"onDelete": "cascade",
|
|
140
|
+
"onUpdate": "no action"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"compositePrimaryKeys": {},
|
|
144
|
+
"uniqueConstraints": {},
|
|
145
|
+
"checkConstraints": {}
|
|
146
|
+
},
|
|
147
|
+
"kg_edges": {
|
|
148
|
+
"name": "kg_edges",
|
|
149
|
+
"columns": {
|
|
150
|
+
"src_id": {
|
|
151
|
+
"name": "src_id",
|
|
152
|
+
"type": "text",
|
|
153
|
+
"primaryKey": false,
|
|
154
|
+
"notNull": true,
|
|
155
|
+
"autoincrement": false
|
|
156
|
+
},
|
|
157
|
+
"dst_id": {
|
|
158
|
+
"name": "dst_id",
|
|
159
|
+
"type": "text",
|
|
160
|
+
"primaryKey": false,
|
|
161
|
+
"notNull": true,
|
|
162
|
+
"autoincrement": false
|
|
163
|
+
},
|
|
164
|
+
"edge_kind": {
|
|
165
|
+
"name": "edge_kind",
|
|
166
|
+
"type": "text",
|
|
167
|
+
"primaryKey": false,
|
|
168
|
+
"notNull": true,
|
|
169
|
+
"autoincrement": false
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"indexes": {
|
|
173
|
+
"idx_kg_edges_src": {
|
|
174
|
+
"name": "idx_kg_edges_src",
|
|
175
|
+
"columns": [
|
|
176
|
+
"src_id"
|
|
177
|
+
],
|
|
178
|
+
"isUnique": false
|
|
179
|
+
},
|
|
180
|
+
"idx_kg_edges_dst": {
|
|
181
|
+
"name": "idx_kg_edges_dst",
|
|
182
|
+
"columns": [
|
|
183
|
+
"dst_id"
|
|
184
|
+
],
|
|
185
|
+
"isUnique": false
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"foreignKeys": {
|
|
189
|
+
"kg_edges_src_id_kg_nodes_id_fk": {
|
|
190
|
+
"name": "kg_edges_src_id_kg_nodes_id_fk",
|
|
191
|
+
"tableFrom": "kg_edges",
|
|
192
|
+
"tableTo": "kg_nodes",
|
|
193
|
+
"columnsFrom": [
|
|
194
|
+
"src_id"
|
|
195
|
+
],
|
|
196
|
+
"columnsTo": [
|
|
197
|
+
"id"
|
|
198
|
+
],
|
|
199
|
+
"onDelete": "cascade",
|
|
200
|
+
"onUpdate": "no action"
|
|
201
|
+
},
|
|
202
|
+
"kg_edges_dst_id_kg_nodes_id_fk": {
|
|
203
|
+
"name": "kg_edges_dst_id_kg_nodes_id_fk",
|
|
204
|
+
"tableFrom": "kg_edges",
|
|
205
|
+
"tableTo": "kg_nodes",
|
|
206
|
+
"columnsFrom": [
|
|
207
|
+
"dst_id"
|
|
208
|
+
],
|
|
209
|
+
"columnsTo": [
|
|
210
|
+
"id"
|
|
211
|
+
],
|
|
212
|
+
"onDelete": "cascade",
|
|
213
|
+
"onUpdate": "no action"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"compositePrimaryKeys": {
|
|
217
|
+
"kg_edges_src_id_dst_id_edge_kind_pk": {
|
|
218
|
+
"columns": [
|
|
219
|
+
"src_id",
|
|
220
|
+
"dst_id",
|
|
221
|
+
"edge_kind"
|
|
222
|
+
],
|
|
223
|
+
"name": "kg_edges_src_id_dst_id_edge_kind_pk"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"uniqueConstraints": {},
|
|
227
|
+
"checkConstraints": {}
|
|
228
|
+
},
|
|
229
|
+
"kg_gaps": {
|
|
230
|
+
"name": "kg_gaps",
|
|
231
|
+
"columns": {
|
|
232
|
+
"id": {
|
|
233
|
+
"name": "id",
|
|
234
|
+
"type": "integer",
|
|
235
|
+
"primaryKey": true,
|
|
236
|
+
"notNull": true,
|
|
237
|
+
"autoincrement": true
|
|
238
|
+
},
|
|
239
|
+
"scope": {
|
|
240
|
+
"name": "scope",
|
|
241
|
+
"type": "text",
|
|
242
|
+
"primaryKey": false,
|
|
243
|
+
"notNull": true,
|
|
244
|
+
"autoincrement": false
|
|
245
|
+
},
|
|
246
|
+
"topic": {
|
|
247
|
+
"name": "topic",
|
|
248
|
+
"type": "text",
|
|
249
|
+
"primaryKey": false,
|
|
250
|
+
"notNull": true,
|
|
251
|
+
"autoincrement": false
|
|
252
|
+
},
|
|
253
|
+
"first_seen_at": {
|
|
254
|
+
"name": "first_seen_at",
|
|
255
|
+
"type": "integer",
|
|
256
|
+
"primaryKey": false,
|
|
257
|
+
"notNull": true,
|
|
258
|
+
"autoincrement": false
|
|
259
|
+
},
|
|
260
|
+
"mentions_count": {
|
|
261
|
+
"name": "mentions_count",
|
|
262
|
+
"type": "integer",
|
|
263
|
+
"primaryKey": false,
|
|
264
|
+
"notNull": true,
|
|
265
|
+
"autoincrement": false,
|
|
266
|
+
"default": 1
|
|
267
|
+
},
|
|
268
|
+
"resolved_at": {
|
|
269
|
+
"name": "resolved_at",
|
|
270
|
+
"type": "integer",
|
|
271
|
+
"primaryKey": false,
|
|
272
|
+
"notNull": false,
|
|
273
|
+
"autoincrement": false
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"indexes": {},
|
|
277
|
+
"foreignKeys": {},
|
|
278
|
+
"compositePrimaryKeys": {},
|
|
279
|
+
"uniqueConstraints": {},
|
|
280
|
+
"checkConstraints": {}
|
|
281
|
+
},
|
|
282
|
+
"kg_log": {
|
|
283
|
+
"name": "kg_log",
|
|
284
|
+
"columns": {
|
|
285
|
+
"id": {
|
|
286
|
+
"name": "id",
|
|
287
|
+
"type": "integer",
|
|
288
|
+
"primaryKey": true,
|
|
289
|
+
"notNull": true,
|
|
290
|
+
"autoincrement": true
|
|
291
|
+
},
|
|
292
|
+
"ts": {
|
|
293
|
+
"name": "ts",
|
|
294
|
+
"type": "integer",
|
|
295
|
+
"primaryKey": false,
|
|
296
|
+
"notNull": true,
|
|
297
|
+
"autoincrement": false
|
|
298
|
+
},
|
|
299
|
+
"scope": {
|
|
300
|
+
"name": "scope",
|
|
301
|
+
"type": "text",
|
|
302
|
+
"primaryKey": false,
|
|
303
|
+
"notNull": true,
|
|
304
|
+
"autoincrement": false
|
|
305
|
+
},
|
|
306
|
+
"kind": {
|
|
307
|
+
"name": "kind",
|
|
308
|
+
"type": "text",
|
|
309
|
+
"primaryKey": false,
|
|
310
|
+
"notNull": true,
|
|
311
|
+
"autoincrement": false
|
|
312
|
+
},
|
|
313
|
+
"source_uri": {
|
|
314
|
+
"name": "source_uri",
|
|
315
|
+
"type": "text",
|
|
316
|
+
"primaryKey": false,
|
|
317
|
+
"notNull": false,
|
|
318
|
+
"autoincrement": false
|
|
319
|
+
},
|
|
320
|
+
"payload": {
|
|
321
|
+
"name": "payload",
|
|
322
|
+
"type": "text",
|
|
323
|
+
"primaryKey": false,
|
|
324
|
+
"notNull": false,
|
|
325
|
+
"autoincrement": false
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"indexes": {
|
|
329
|
+
"idx_kg_log_ts": {
|
|
330
|
+
"name": "idx_kg_log_ts",
|
|
331
|
+
"columns": [
|
|
332
|
+
"\"ts\" DESC"
|
|
333
|
+
],
|
|
334
|
+
"isUnique": false
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"foreignKeys": {},
|
|
338
|
+
"compositePrimaryKeys": {},
|
|
339
|
+
"uniqueConstraints": {},
|
|
340
|
+
"checkConstraints": {}
|
|
341
|
+
},
|
|
342
|
+
"kg_meta": {
|
|
343
|
+
"name": "kg_meta",
|
|
344
|
+
"columns": {
|
|
345
|
+
"key": {
|
|
346
|
+
"name": "key",
|
|
347
|
+
"type": "text",
|
|
348
|
+
"primaryKey": true,
|
|
349
|
+
"notNull": true,
|
|
350
|
+
"autoincrement": false
|
|
351
|
+
},
|
|
352
|
+
"value": {
|
|
353
|
+
"name": "value",
|
|
354
|
+
"type": "text",
|
|
355
|
+
"primaryKey": false,
|
|
356
|
+
"notNull": false,
|
|
357
|
+
"autoincrement": false
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"indexes": {},
|
|
361
|
+
"foreignKeys": {},
|
|
362
|
+
"compositePrimaryKeys": {},
|
|
363
|
+
"uniqueConstraints": {},
|
|
364
|
+
"checkConstraints": {}
|
|
365
|
+
},
|
|
366
|
+
"kg_nodes": {
|
|
367
|
+
"name": "kg_nodes",
|
|
368
|
+
"columns": {
|
|
369
|
+
"id": {
|
|
370
|
+
"name": "id",
|
|
371
|
+
"type": "text",
|
|
372
|
+
"primaryKey": true,
|
|
373
|
+
"notNull": true,
|
|
374
|
+
"autoincrement": false
|
|
375
|
+
},
|
|
376
|
+
"scope": {
|
|
377
|
+
"name": "scope",
|
|
378
|
+
"type": "text",
|
|
379
|
+
"primaryKey": false,
|
|
380
|
+
"notNull": true,
|
|
381
|
+
"autoincrement": false
|
|
382
|
+
},
|
|
383
|
+
"source_uri": {
|
|
384
|
+
"name": "source_uri",
|
|
385
|
+
"type": "text",
|
|
386
|
+
"primaryKey": false,
|
|
387
|
+
"notNull": true,
|
|
388
|
+
"autoincrement": false
|
|
389
|
+
},
|
|
390
|
+
"section_path": {
|
|
391
|
+
"name": "section_path",
|
|
392
|
+
"type": "text",
|
|
393
|
+
"primaryKey": false,
|
|
394
|
+
"notNull": true,
|
|
395
|
+
"autoincrement": false
|
|
396
|
+
},
|
|
397
|
+
"kind": {
|
|
398
|
+
"name": "kind",
|
|
399
|
+
"type": "text",
|
|
400
|
+
"primaryKey": false,
|
|
401
|
+
"notNull": true,
|
|
402
|
+
"autoincrement": false,
|
|
403
|
+
"default": "'section'"
|
|
404
|
+
},
|
|
405
|
+
"title": {
|
|
406
|
+
"name": "title",
|
|
407
|
+
"type": "text",
|
|
408
|
+
"primaryKey": false,
|
|
409
|
+
"notNull": false,
|
|
410
|
+
"autoincrement": false
|
|
411
|
+
},
|
|
412
|
+
"content": {
|
|
413
|
+
"name": "content",
|
|
414
|
+
"type": "text",
|
|
415
|
+
"primaryKey": false,
|
|
416
|
+
"notNull": true,
|
|
417
|
+
"autoincrement": false
|
|
418
|
+
},
|
|
419
|
+
"source_sha": {
|
|
420
|
+
"name": "source_sha",
|
|
421
|
+
"type": "text",
|
|
422
|
+
"primaryKey": false,
|
|
423
|
+
"notNull": true,
|
|
424
|
+
"autoincrement": false
|
|
425
|
+
},
|
|
426
|
+
"token_count": {
|
|
427
|
+
"name": "token_count",
|
|
428
|
+
"type": "integer",
|
|
429
|
+
"primaryKey": false,
|
|
430
|
+
"notNull": true,
|
|
431
|
+
"autoincrement": false
|
|
432
|
+
},
|
|
433
|
+
"confidence": {
|
|
434
|
+
"name": "confidence",
|
|
435
|
+
"type": "text",
|
|
436
|
+
"primaryKey": false,
|
|
437
|
+
"notNull": true,
|
|
438
|
+
"autoincrement": false,
|
|
439
|
+
"default": "'extracted'"
|
|
440
|
+
},
|
|
441
|
+
"created_at": {
|
|
442
|
+
"name": "created_at",
|
|
443
|
+
"type": "integer",
|
|
444
|
+
"primaryKey": false,
|
|
445
|
+
"notNull": true,
|
|
446
|
+
"autoincrement": false
|
|
447
|
+
},
|
|
448
|
+
"updated_at": {
|
|
449
|
+
"name": "updated_at",
|
|
450
|
+
"type": "integer",
|
|
451
|
+
"primaryKey": false,
|
|
452
|
+
"notNull": true,
|
|
453
|
+
"autoincrement": false
|
|
454
|
+
},
|
|
455
|
+
"last_accessed_at": {
|
|
456
|
+
"name": "last_accessed_at",
|
|
457
|
+
"type": "integer",
|
|
458
|
+
"primaryKey": false,
|
|
459
|
+
"notNull": true,
|
|
460
|
+
"autoincrement": false
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"indexes": {
|
|
464
|
+
"idx_kg_nodes_scope_uri": {
|
|
465
|
+
"name": "idx_kg_nodes_scope_uri",
|
|
466
|
+
"columns": [
|
|
467
|
+
"scope",
|
|
468
|
+
"source_uri"
|
|
469
|
+
],
|
|
470
|
+
"isUnique": false
|
|
471
|
+
},
|
|
472
|
+
"idx_kg_nodes_last_accessed": {
|
|
473
|
+
"name": "idx_kg_nodes_last_accessed",
|
|
474
|
+
"columns": [
|
|
475
|
+
"last_accessed_at"
|
|
476
|
+
],
|
|
477
|
+
"isUnique": false
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"foreignKeys": {},
|
|
481
|
+
"compositePrimaryKeys": {},
|
|
482
|
+
"uniqueConstraints": {},
|
|
483
|
+
"checkConstraints": {}
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"views": {},
|
|
487
|
+
"enums": {},
|
|
488
|
+
"_meta": {
|
|
489
|
+
"schemas": {},
|
|
490
|
+
"tables": {},
|
|
491
|
+
"columns": {}
|
|
492
|
+
},
|
|
493
|
+
"internal": {
|
|
494
|
+
"indexes": {
|
|
495
|
+
"idx_kg_log_ts": {
|
|
496
|
+
"columns": {
|
|
497
|
+
"\"ts\" DESC": {
|
|
498
|
+
"isExpression": true
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "7",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"entries": [
|
|
5
|
+
{
|
|
6
|
+
"idx": 0,
|
|
7
|
+
"version": "6",
|
|
8
|
+
"when": 1775710703850,
|
|
9
|
+
"tag": "0000_conscious_lockheed",
|
|
10
|
+
"breakpoints": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"idx": 1,
|
|
14
|
+
"version": "6",
|
|
15
|
+
"when": 1775768662604,
|
|
16
|
+
"tag": "0001_icy_dust",
|
|
17
|
+
"breakpoints": true
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -73,15 +73,9 @@ export declare function listMarkdownFiles(rootDir: string): string[];
|
|
|
73
73
|
*/
|
|
74
74
|
export declare function checkConsistency(manifest: Manifest, rootDir: string, writer?: BetterSqliteDatabase): string[];
|
|
75
75
|
/**
|
|
76
|
-
* Compute the canonical manifest path for a given wiki directory
|
|
76
|
+
* Compute the canonical manifest path for a given wiki directory.
|
|
77
77
|
*
|
|
78
|
-
*
|
|
79
|
-
* (lives next to the wiki dir, inside the same `.pharos/` folder)
|
|
80
|
-
* - `'personal'` → `<wikiPath>/../kg-manifest.json` as well
|
|
81
|
-
* (lives next to `~/.pharos/profile/wiki/`, in `~/.pharos/profile/`)
|
|
82
|
-
*
|
|
83
|
-
* Both scopes use the same relative shape — the difference is the wikiPath
|
|
84
|
-
* the caller passes in.
|
|
78
|
+
* `<wikiPath>/../.pinakes/manifest.json`
|
|
85
79
|
*/
|
|
86
80
|
export declare function manifestPathFor(wikiPath: string): string;
|
|
87
81
|
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/ingest/manifest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/ingest/manifest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,IAAI,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAsCvE,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,QAAQ,CAExC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAqBnD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAOpE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,aAAa,GACnB,QAAQ,CAIV;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAIlF;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CA4B3D;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,oBAAoB,GAC5B,MAAM,EAAE,CAsCV;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExD"}
|
package/dist/ingest/manifest.js
CHANGED
|
@@ -7,10 +7,8 @@ import { logger } from '../observability/logger.js';
|
|
|
7
7
|
* Consistency manifest for KG-MCP Phase 2.
|
|
8
8
|
*
|
|
9
9
|
* Lives at:
|
|
10
|
-
* - `<wikiPath
|
|
11
|
-
*
|
|
12
|
-
* - `<profilePath>/kg-manifest.json` for personal scope
|
|
13
|
-
* (e.g. `~/.pharos/profile/kg-manifest.json`)
|
|
10
|
+
* - `<wikiPath>/../.pinakes/manifest.json` for project scope
|
|
11
|
+
* - `<profilePath>/../.pinakes/manifest.json` for personal scope
|
|
14
12
|
*
|
|
15
13
|
* **What it stores**: per ingested file, the file-level `source_sha` and
|
|
16
14
|
* the list of per-chunk `chunk_shas` that ingest produced. This is the
|
|
@@ -207,17 +205,11 @@ export function checkConsistency(manifest, rootDir, writer) {
|
|
|
207
205
|
return stale;
|
|
208
206
|
}
|
|
209
207
|
/**
|
|
210
|
-
* Compute the canonical manifest path for a given wiki directory
|
|
208
|
+
* Compute the canonical manifest path for a given wiki directory.
|
|
211
209
|
*
|
|
212
|
-
*
|
|
213
|
-
* (lives next to the wiki dir, inside the same `.pharos/` folder)
|
|
214
|
-
* - `'personal'` → `<wikiPath>/../kg-manifest.json` as well
|
|
215
|
-
* (lives next to `~/.pharos/profile/wiki/`, in `~/.pharos/profile/`)
|
|
216
|
-
*
|
|
217
|
-
* Both scopes use the same relative shape — the difference is the wikiPath
|
|
218
|
-
* the caller passes in.
|
|
210
|
+
* `<wikiPath>/../.pinakes/manifest.json`
|
|
219
211
|
*/
|
|
220
212
|
export function manifestPathFor(wikiPath) {
|
|
221
|
-
return resolve(dirname(resolve(wikiPath)), '
|
|
213
|
+
return resolve(dirname(resolve(wikiPath)), '.pinakes', 'manifest.json');
|
|
222
214
|
}
|
|
223
215
|
//# sourceMappingURL=manifest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/ingest/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAChH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIzC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/ingest/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAChH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,M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AAK,CAAC;AACf,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC9C,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;AAC1E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pella-labs/pinakes",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Local stdio MCP server that indexes a Karpathy-style two-level knowledge wiki into SQLite and exposes it to a coding LLM via Cloudflare-style code-mode.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"vitest": "^2.1.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
|
-
"build": "tsc && chmod +x dist/cli/index.js",
|
|
47
|
+
"build": "tsc && cp -r src/db/migrations dist/db/migrations && chmod +x dist/cli/index.js",
|
|
48
48
|
"dev": "tsx watch src/server.ts",
|
|
49
49
|
"lint": "eslint src",
|
|
50
50
|
"typecheck": "tsc --noEmit",
|