@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.
- package/README.md +2 -2
- package/assets/spa-production.json.gz +0 -0
- package/browser-extension/artifacts/{gno-browser-clipper-v2.9.2.zip → gno-browser-clipper-v2.10.1.zip} +0 -0
- package/browser-extension/artifacts/gno-browser-clipper-v2.10.1.zip.sha256 +1 -0
- package/browser-extension/dist/manifest.json +1 -1
- package/bunfig.toml +5 -1
- package/package.json +3 -2
- package/spec/cli.md +102 -12
- package/spec/mcp.md +1 -1
- package/spec/output-schemas/mcp-remove-result.schema.json +2 -2
- package/src/app/bun-runtime.ts +41 -0
- package/src/cli/commands/cleanup.ts +9 -1
- package/src/cli/commands/collection/remove.ts +50 -31
- package/src/cli/commands/collection/rename.ts +36 -8
- package/src/cli/commands/daemon.ts +3 -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 +10 -0
- package/src/cli/program.ts +64 -19
- package/src/cli/runtime-health.ts +328 -0
- package/src/core/network-boundary-inventory.ts +16 -0
- package/src/ingestion/file-processor.ts +118 -17
- package/src/ingestion/prepare-worker.ts +20 -2
- package/src/mcp/tools/remove-collection.ts +2 -1
- package/src/serve/public/components/BootstrapStatus.tsx +3 -3
- package/src/serve/public/globals.built.css +1 -1
- package/src/serve/routes/api.ts +3 -4
- package/src/serve/status.ts +2 -1
- package/src/store/sqlite/adapter.ts +17 -4
- package/browser-extension/artifacts/gno-browser-clipper-v2.9.2.zip.sha256 +0 -1
package/src/serve/routes/api.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
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
|
|
package/src/serve/status.ts
CHANGED
|
@@ -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:
|
|
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
|
|
6128
|
-
//
|
|
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
|
-
[
|
|
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(
|
|
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
|