@gmickel/gno 2.9.2 → 2.10.1

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 (38) hide show
  1. package/README.md +2 -2
  2. package/assets/spa-production.json.gz +0 -0
  3. package/browser-extension/artifacts/{gno-browser-clipper-v2.9.2.zip → gno-browser-clipper-v2.10.1.zip} +0 -0
  4. package/browser-extension/artifacts/gno-browser-clipper-v2.10.1.zip.sha256 +1 -0
  5. package/browser-extension/dist/manifest.json +1 -1
  6. package/bunfig.toml +5 -1
  7. package/package.json +3 -2
  8. package/spec/cli.md +102 -12
  9. package/spec/mcp.md +1 -1
  10. package/spec/output-schemas/mcp-remove-result.schema.json +2 -2
  11. package/src/app/bun-runtime.ts +41 -0
  12. package/src/cli/commands/cleanup.ts +9 -1
  13. package/src/cli/commands/collection/remove.ts +50 -31
  14. package/src/cli/commands/collection/rename.ts +36 -8
  15. package/src/cli/commands/daemon.ts +3 -0
  16. package/src/cli/commands/doctor.ts +61 -0
  17. package/src/cli/commands/mcp/config-editors.ts +56 -8
  18. package/src/cli/commands/mcp/install.ts +159 -24
  19. package/src/cli/commands/mcp/launch-path.ts +87 -0
  20. package/src/cli/commands/mcp/paths.ts +30 -6
  21. package/src/cli/commands/mcp/repair-entry.ts +160 -0
  22. package/src/cli/commands/mcp/status.ts +55 -15
  23. package/src/cli/commands/mcp.ts +4 -0
  24. package/src/cli/commands/serve.ts +3 -0
  25. package/src/cli/commands/status.ts +24 -0
  26. package/src/cli/detach.ts +10 -0
  27. package/src/cli/program.ts +64 -19
  28. package/src/cli/runtime-health.ts +328 -0
  29. package/src/core/network-boundary-inventory.ts +16 -0
  30. package/src/ingestion/file-processor.ts +118 -17
  31. package/src/ingestion/prepare-worker.ts +20 -2
  32. package/src/mcp/tools/remove-collection.ts +2 -1
  33. package/src/serve/public/components/BootstrapStatus.tsx +3 -3
  34. package/src/serve/public/globals.built.css +1 -1
  35. package/src/serve/routes/api.ts +3 -4
  36. package/src/serve/status.ts +2 -1
  37. package/src/store/sqlite/adapter.ts +17 -4
  38. package/browser-extension/artifacts/gno-browser-clipper-v2.9.2.zip.sha256 +0 -1
@@ -1574,9 +1574,8 @@ export async function handleImportPreview(
1574
1574
 
1575
1575
  /**
1576
1576
  * DELETE /api/collections/:name
1577
- * Remove a collection from config.
1578
- * Note: Does NOT remove indexed documents - they remain in DB until re-sync
1579
- * or manual cleanup. This preserves data for potential recovery.
1577
+ * Remove a collection from config. The config sync deletes the collection
1578
+ * row and its documents; content, chunks and vectors stay until cleanup.
1580
1579
  */
1581
1580
  export async function handleDeleteCollection(
1582
1581
  ctxHolder: ContextHolder,
@@ -1612,7 +1611,7 @@ export async function handleDeleteCollection(
1612
1611
  return jsonResponse({
1613
1612
  success: true,
1614
1613
  collection: name,
1615
- note: "Collection removed from config. Indexed documents remain in DB.",
1614
+ note: "Collection removed from config and its documents deleted from the index. Content, chunks and vectors stay until gno cleanup.",
1616
1615
  });
1617
1616
  }
1618
1617
 
@@ -12,6 +12,7 @@ import type {
12
12
  SuggestedCollection,
13
13
  } from "./status-model";
14
14
 
15
+ import { BUN_ENGINE_RANGE } from "../app/bun-runtime";
15
16
  import { getModelsCachePath } from "../app/constants";
16
17
  import { buildContentTypeBoostStatus } from "../config/content-types";
17
18
  import { isEmptyActivationCollection } from "../core/activation-empty";
@@ -513,7 +514,7 @@ async function buildBootstrapState(
513
514
  kind: "bun",
514
515
  strategy: "manual-install-beta",
515
516
  currentVersion: Bun.version,
516
- requiredVersion: ">=1.3.0",
517
+ requiredVersion: BUN_ENGINE_RANGE,
517
518
  ready: true,
518
519
  managedByApp: false,
519
520
  summary: `This beta runs on Bun ${Bun.version}.`,
@@ -6124,18 +6124,25 @@ export class SqliteAdapter implements StorePort, SqliteDbProvider {
6124
6124
  )
6125
6125
  .get(configuredJson, configuredJson)?.count ?? 0;
6126
6126
 
6127
- // Embedding backlog: chunks from active docs without vectors
6128
- // Uses EXISTS to avoid duplicates when multiple docs share mirror_hash
6127
+ // Embedding backlog: chunks from active docs of configured collections
6128
+ // without vectors. DISTINCT avoids duplicates when docs share mirror_hash.
6129
6129
  const backlogRow = db
6130
6130
  .query<
6131
6131
  { count: number },
6132
- [string | null, string | null, string | null]
6132
+ [
6133
+ string | null,
6134
+ string | null,
6135
+ string | null,
6136
+ string | null,
6137
+ string | null,
6138
+ ]
6133
6139
  >(
6134
6140
  `
6135
6141
  WITH active_mirrors AS (
6136
6142
  SELECT DISTINCT mirror_hash
6137
6143
  FROM documents
6138
6144
  WHERE active = 1 AND mirror_hash IS NOT NULL
6145
+ AND (? IS NULL OR collection IN (SELECT value FROM json_each(?)))
6139
6146
  ),
6140
6147
  matching_vectors AS (
6141
6148
  SELECT mirror_hash, seq, MAX(embedded_at) AS embedded_at
@@ -6155,7 +6162,13 @@ export class SqliteAdapter implements StorePort, SqliteDbProvider {
6155
6162
  WHERE mv.mirror_hash IS NULL
6156
6163
  `
6157
6164
  )
6158
- .get(embedModel, embedModel, embedFingerprint);
6165
+ .get(
6166
+ configuredJson,
6167
+ configuredJson,
6168
+ embedModel,
6169
+ embedModel,
6170
+ embedFingerprint
6171
+ );
6159
6172
 
6160
6173
  // Recent errors (last 24h)
6161
6174
  const recentErrorsRow = db
@@ -1 +0,0 @@
1
- 7073229377bafdffb9fb4834e22fe4531e68afcf615c19c1bb021c205997375a gno-browser-clipper-v2.9.2.zip