@gmickel/gno 1.6.0 → 1.7.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.
- package/README.md +1 -1
- package/package.json +3 -2
- package/src/cli/commands/doctor.ts +179 -1
- package/src/cli/commands/embed.ts +217 -242
- package/src/embed/backlog.ts +92 -45
- package/src/embed/fingerprint.ts +37 -0
- package/src/embed/retry.ts +137 -0
- package/src/sdk/embed.ts +134 -59
- package/src/store/migrations/008-vector-fingerprints.ts +25 -0
- package/src/store/migrations/index.ts +2 -1
- package/src/store/sqlite/adapter.ts +20 -6
- package/src/store/types.ts +1 -0
- package/src/store/vector/freshness.ts +34 -0
- package/src/store/vector/sqlite-vec.ts +5 -2
- package/src/store/vector/stats.ts +20 -2
- package/src/store/vector/types.ts +3 -0
|
@@ -16,6 +16,7 @@ export interface VectorRow {
|
|
|
16
16
|
mirrorHash: string;
|
|
17
17
|
seq: number;
|
|
18
18
|
model: string;
|
|
19
|
+
embedFingerprint: string;
|
|
19
20
|
embedding: Float32Array;
|
|
20
21
|
// embeddedAt is set by DB via datetime('now')
|
|
21
22
|
}
|
|
@@ -112,12 +113,14 @@ export interface VectorStatsPort {
|
|
|
112
113
|
/** Count chunks needing embedding for a model */
|
|
113
114
|
countBacklog(
|
|
114
115
|
model: string,
|
|
116
|
+
embedFingerprint: string,
|
|
115
117
|
options?: { collection?: string }
|
|
116
118
|
): Promise<StoreResult<number>>;
|
|
117
119
|
|
|
118
120
|
/** Get chunks needing embedding for a model (seek pagination) */
|
|
119
121
|
getBacklog(
|
|
120
122
|
model: string,
|
|
123
|
+
embedFingerprint: string,
|
|
121
124
|
options?: { limit?: number; after?: BacklogCursor; collection?: string }
|
|
122
125
|
): Promise<StoreResult<BacklogItem[]>>;
|
|
123
126
|
}
|