@gmickel/gno 2.9.1 → 2.10.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 +2 -2
- package/assets/spa-production.json.gz +0 -0
- package/browser-extension/artifacts/{gno-browser-clipper-v2.9.1.zip → gno-browser-clipper-v2.10.0.zip} +0 -0
- package/browser-extension/artifacts/gno-browser-clipper-v2.10.0.zip.sha256 +1 -0
- package/browser-extension/dist/manifest.json +1 -1
- package/package.json +3 -2
- package/spec/cli.md +73 -2
- package/spec/output-schemas/collection-list.schema.json +5 -0
- package/src/app/bun-runtime.ts +41 -0
- package/src/cli/commands/daemon.ts +12 -0
- package/src/cli/commands/doctor.ts +61 -0
- package/src/cli/commands/mcp/config-editors.ts +56 -8
- package/src/cli/commands/mcp/install.ts +159 -24
- package/src/cli/commands/mcp/launch-path.ts +87 -0
- package/src/cli/commands/mcp/paths.ts +30 -6
- package/src/cli/commands/mcp/repair-entry.ts +160 -0
- package/src/cli/commands/mcp/status.ts +55 -15
- package/src/cli/commands/mcp.ts +4 -0
- package/src/cli/commands/serve.ts +3 -0
- package/src/cli/commands/status.ts +24 -0
- package/src/cli/detach.ts +52 -5
- package/src/cli/program.ts +19 -5
- package/src/cli/runtime-health.ts +328 -0
- package/src/config/types.ts +3 -0
- package/src/core/network-boundary-inventory.ts +16 -0
- package/src/core/project-profile-apply-state.ts +3 -0
- package/src/core/resident-shutdown-handler.ts +23 -0
- package/src/core/sighup-disposition.ts +66 -0
- package/src/core/time-slice.ts +34 -0
- package/src/ingestion/file-processor.ts +118 -17
- package/src/ingestion/graph-reconciliation.ts +18 -4
- package/src/ingestion/prepare-worker.ts +20 -2
- package/src/ingestion/sync.ts +70 -4
- package/src/serve/parent-lifeline.ts +44 -0
- package/src/serve/public/components/BootstrapStatus.tsx +3 -3
- package/src/serve/public/globals.built.css +1 -1
- package/src/serve/resident-runtime.ts +24 -1
- package/src/serve/resident-shutdown.ts +4 -0
- package/src/serve/server.ts +22 -1
- package/src/serve/status.ts +2 -1
- package/src/serve/watch-reconciliation.ts +134 -1
- package/src/serve/watch-service-flush-generation.ts +77 -3
- package/src/serve/watch-service.ts +27 -3
- package/src/sessions/import-child.ts +79 -11
- package/src/store/migrations/035-vector-length-index.ts +30 -0
- package/src/store/migrations/index.ts +2 -0
- package/src/store/sqlite/adapter.ts +4 -1
- package/src/store/vector/freshness.ts +13 -6
- package/browser-extension/artifacts/gno-browser-clipper-v2.9.1.zip.sha256 +0 -1
|
@@ -35,14 +35,21 @@ export function getStoredEmbeddingDimensions(
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
// Validate the entire model partition: never trust an arbitrary first blob.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
// One aggregate per query so each bound is a seek on idx_vectors_model_bytes
|
|
39
|
+
// (MIN and MAX together would scan every vector), read in one transaction
|
|
40
|
+
// so both bounds see the same snapshot while another process writes.
|
|
41
|
+
const bound = (aggregate: "MIN" | "MAX"): number | null =>
|
|
42
|
+
(
|
|
43
|
+
db
|
|
44
|
+
.prepare(
|
|
45
|
+
`SELECT ${aggregate}(length(embedding)) AS bytes FROM content_vectors WHERE model = ?`
|
|
46
|
+
)
|
|
47
|
+
.get(model) as { bytes: number | null }
|
|
48
|
+
).bytes;
|
|
49
|
+
const [bytes, largest] = db.transaction(() => [bound("MIN"), bound("MAX")])();
|
|
43
50
|
if (
|
|
44
51
|
!bytes ||
|
|
45
|
-
bytes !==
|
|
52
|
+
bytes !== largest ||
|
|
46
53
|
bytes % Float32Array.BYTES_PER_ELEMENT !== 0
|
|
47
54
|
) {
|
|
48
55
|
return undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f58e51eea9d0b35a61ef55574882c4be8002ed2fdc29966a3cd1bd7c84350e3c gno-browser-clipper-v2.9.1.zip
|