@gmickel/gno 1.39.1 → 1.40.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/assets/spa-production.json.gz +0 -0
- package/browser-extension/artifacts/{gno-browser-clipper-v1.39.1.zip → gno-browser-clipper-v1.40.0.zip} +0 -0
- package/browser-extension/artifacts/gno-browser-clipper-v1.40.0.zip.sha256 +1 -0
- package/browser-extension/dist/manifest.json +1 -1
- package/package.json +1 -1
- package/spec/cli.md +29 -24
- package/src/cli/program.ts +260 -222
- package/src/cli/query-text.ts +41 -0
- package/src/core/network-boundary-inventory.ts +10 -0
- package/src/serve/CLAUDE.md +22 -2
- package/src/serve/clipper-security.ts +3 -17
- package/src/serve/public/components/pdf/PdfViewer.tsx +97 -19
- package/src/serve/public/globals.built.css +1 -1
- package/src/serve/public/globals.css +4 -0
- package/src/serve/public/hooks/use-pdf-document.ts +101 -37
- package/src/serve/public/hooks/use-pdf-pages.ts +324 -92
- package/src/serve/public/lib/pdf-transport.ts +13 -0
- package/src/serve/public/lib/pdf.ts +77 -10
- package/src/serve/public/lib/server-capabilities.ts +19 -0
- package/src/serve/public/pages/Ask.tsx +8 -9
- package/src/serve/public/pages/DocView.tsx +80 -18
- package/src/serve/public/pages/Search.tsx +8 -9
- package/src/serve/request-locality.ts +84 -0
- package/src/serve/routes/api.ts +88 -3
- package/src/serve/server.ts +163 -29
- package/browser-extension/artifacts/gno-browser-clipper-v1.39.1.zip.sha256 +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1d6a17618bddf4425527e94961459fa2a414d06f5123d43ffebadfeca8a3a89b gno-browser-clipper-v1.40.0.zip
|
package/package.json
CHANGED
package/spec/cli.md
CHANGED
|
@@ -1194,34 +1194,36 @@ BM25 keyword search over indexed documents.
|
|
|
1194
1194
|
**Synopsis:**
|
|
1195
1195
|
|
|
1196
1196
|
```bash
|
|
1197
|
-
gno search <
|
|
1197
|
+
gno search [query] [--query-file <path>] [-n <num>] [--min-score <num>] [-c <collection>] [--since <date>] [--until <date>] [--category <values>] [--author <text>] [--intent <text>] [--exclude <values>] [--tags-all <tags>] [--tags-any <tags>] [--full] [--line-numbers] [--lang <bcp47>] [--json|--files|--csv|--md|--xml]
|
|
1198
1198
|
```
|
|
1199
1199
|
|
|
1200
1200
|
**Arguments:**
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
|
1201
|
+
|
|
1202
|
+
| Arg | Type | Description |
|
|
1203
|
+
| --------- | ------ | -------------------------------------------------------------------- |
|
|
1204
|
+
| `[query]` | string | Search query. Optional when `--query-file` is set. Do not pass both. |
|
|
1204
1205
|
|
|
1205
1206
|
**Options:**
|
|
1206
1207
|
|
|
1207
|
-
| Option | Type | Default | Description
|
|
1208
|
-
| ----------------------- | -------- | ------------------------- |
|
|
1209
|
-
|
|
|
1210
|
-
|
|
|
1211
|
-
|
|
|
1212
|
-
|
|
|
1213
|
-
| `--
|
|
1214
|
-
| `--
|
|
1215
|
-
| `--
|
|
1216
|
-
| `--
|
|
1217
|
-
| `--
|
|
1218
|
-
| `--
|
|
1219
|
-
| `--tags-
|
|
1220
|
-
| `--
|
|
1221
|
-
| `--
|
|
1222
|
-
| `--
|
|
1223
|
-
| `--
|
|
1224
|
-
| `--
|
|
1208
|
+
| Option | Type | Default | Description |
|
|
1209
|
+
| ----------------------- | -------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
1210
|
+
| `--query-file` | string | none | Read the query from a file; `-` reads stdin so the query never appears on argv. Do not also pass a positional query. |
|
|
1211
|
+
| `-n` | integer | 5 (20 for --json/--files) | Max results |
|
|
1212
|
+
| `--min-score` | number | 0 | Minimum score threshold |
|
|
1213
|
+
| `-c, --collection` | string | all | Filter to collection |
|
|
1214
|
+
| `--since` | string | none | Modified-at lower bound (ISO date/time or relative token) |
|
|
1215
|
+
| `--until` | string | none | Modified-at upper bound (ISO date/time or relative token) |
|
|
1216
|
+
| `--category` | string | none | Filter to docs with matching category/content type (comma-separated) |
|
|
1217
|
+
| `--author` | string | none | Filter to docs where author contains value (case-insensitive) |
|
|
1218
|
+
| `--intent` | string | none | Disambiguating context for ambiguous queries; steers snippets without being searched directly |
|
|
1219
|
+
| `--exclude` | string | none | Hard-prune docs containing any comma-separated term in title/path/body |
|
|
1220
|
+
| `--tags-all` | string | none | Filter to docs with ALL tags (comma-separated) |
|
|
1221
|
+
| `--tags-any` | string | none | Filter to docs with ANY tag (comma-separated) |
|
|
1222
|
+
| `--project-root` | string[] | cwd | Trusted project root; repeatable, replaces default cwd/repository affinity |
|
|
1223
|
+
| `--no-project-affinity` | boolean | false | Disable project-aware soft ranking; invalid with `--project-root` |
|
|
1224
|
+
| `--full` | boolean | false | Include full mirror content instead of snippet |
|
|
1225
|
+
| `--line-numbers` | boolean | false | Include line numbers in output |
|
|
1226
|
+
| `--lang` | string | auto | Language filter/hint (BCP-47) |
|
|
1225
1227
|
|
|
1226
1228
|
**Scoring:**
|
|
1227
1229
|
|
|
@@ -1336,15 +1338,18 @@ Hybrid search combining BM25 and vector retrieval with optional expansion and re
|
|
|
1336
1338
|
**Synopsis:**
|
|
1337
1339
|
|
|
1338
1340
|
```bash
|
|
1339
|
-
gno query <
|
|
1341
|
+
gno query [query...] [--query-file <path>] [-n <num>] [--min-score <num>] [-c <collection>] [--since <date>] [--until <date>] [--category <values>] [--author <text>] [--intent <text>] [--exclude <values>] [-C <num>] [--tags-all <tags>] [--tags-any <tags>] [--full] [--line-numbers] [--lang <bcp47>] [--no-expand] [--no-rerank] [--graph] [--no-graph] [--query-mode <mode:text>]... [--explain] [--json|--files|--csv|--md|--xml]
|
|
1340
1342
|
gno query diagnose <query> --target <doc> [-n <num>] [--min-score <num>] [-c <collection>] [--since <date>] [--until <date>] [--category <values>] [--author <text>] [--intent <text>] [--exclude <values>] [-C <num>] [--tags-all <tags>] [--tags-any <tags>] [--lang <bcp47>] [--no-expand] [--no-rerank] [--graph] [--no-graph] [--json]
|
|
1341
1343
|
```
|
|
1342
1344
|
|
|
1345
|
+
The positional query is optional when `--query-file` is set. Do not pass both. `--query-file` is invalid on `query diagnose`.
|
|
1346
|
+
|
|
1343
1347
|
**Options:** Same as `gno search`, plus:
|
|
1344
1348
|
|
|
1345
1349
|
**Additional Options:**
|
|
1346
1350
|
| Option | Type | Description |
|
|
1347
1351
|
|--------|------|-------------|
|
|
1352
|
+
| `--query-file` | string | Same as `gno search`: read the query from a file (`-` is stdin). Invalid with a positional query and invalid on `query diagnose`. |
|
|
1348
1353
|
| `--no-expand` | boolean | Disable query expansion |
|
|
1349
1354
|
| `--no-rerank` | boolean | Disable cross-encoder reranking |
|
|
1350
1355
|
| `--graph` | boolean | Explicitly enable the default bounded one-hop graph neighbor expansion |
|
|
@@ -1357,7 +1362,7 @@ gno query diagnose <query> --target <doc> [-n <num>] [--min-score <num>] [-c <co
|
|
|
1357
1362
|
| `--target` | ref | Required for `query diagnose`; target document to diagnose |
|
|
1358
1363
|
|
|
1359
1364
|
`query diagnose` accepts the same `--project-root` and
|
|
1360
|
-
`--no-project-affinity` controls as `query`.
|
|
1365
|
+
`--no-project-affinity` controls as `query`. It rejects `--query-file`.
|
|
1361
1366
|
|
|
1362
1367
|
**Compatibility / Migration:**
|
|
1363
1368
|
|