@tryformation/querylight-cli 0.2.1 → 0.2.3

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 CHANGED
@@ -23,7 +23,7 @@ It is designed for local, inspectable workflows:
23
23
  Run without installing globally:
24
24
 
25
25
  ```bash
26
- bunx @tryformation/querylight-cli init
26
+ bunx --bun @tryformation/querylight-cli init
27
27
  ```
28
28
 
29
29
  For agent and Python automation examples that use `bunx` and `uv`, see [`examples/skills/qli-bunx-uv/SKILL.md`](https://github.com/formation-res/querylight-cli/blob/main/examples/skills/qli-bunx-uv/SKILL.md).
@@ -43,9 +43,11 @@ npx qli --help
43
43
  If you prefer to avoid a local install, use:
44
44
 
45
45
  ```bash
46
- bunx @tryformation/querylight-cli --help
46
+ bunx --bun @tryformation/querylight-cli --help
47
47
  ```
48
48
 
49
+ Use `bunx --bun` for repeated or concurrent `bunx` calls. `bunx` respects the CLI shebang by default and otherwise starts `qli` through `node`.
50
+
49
51
  ## Release
50
52
 
51
53
  Publish releases from semantic version tags such as `0.1.1`.
@@ -105,6 +107,7 @@ Search it:
105
107
  ```bash
106
108
  qli search "API authentication"
107
109
  qli search --source-type rss --since 2026-05-01 --has-publication-date
110
+ qli search-json '{"query":{"match":{"text":"API authentication"}},"size":5}'
108
111
  ```
109
112
 
110
113
  Find related documents for an existing one:
@@ -127,7 +130,7 @@ The repository includes an example skill for running `qli` without a global inst
127
130
 
128
131
  It covers:
129
132
 
130
- - running `qli` with `bunx @tryformation/querylight-cli`
133
+ - running `qli` with `bunx --bun @tryformation/querylight-cli`
131
134
  - using `--json` for automation and agents
132
135
  - calling `qli search` and `qli context` from Python with `subprocess`
133
136
 
@@ -361,6 +364,7 @@ qli search --source-type rss,page --since 2026-05-01 --has-publication-date --to
361
364
  qli search --source-name "Release Feed,Company Blog" --uri-prefix https://example.com/news,https://example.com/blog
362
365
  qli search --source-type rss,page --top-k 25 --json
363
366
  qli search "authentication" --json
367
+ qli search-json '{"query":{"bool":{"filter":[{"term":{"sourceType":"rss"}}]}},"size":10}' --json
364
368
  ```
365
369
 
366
370
  Build retrieval context:
@@ -1,4 +1,4 @@
1
- import type { RelatedDocumentResult, SearchResult, Source } from "../types/models.js";
1
+ import type { RelatedDocumentResult, SearchResponseData, Source } from "../types/models.js";
2
2
  export declare function formatSourcesTable(sources: Source[]): string;
3
- export declare function formatSearchResults(results: SearchResult[]): string;
3
+ export declare function formatSearchResults(response: SearchResponseData): string;
4
4
  export declare function formatRelatedDocuments(results: RelatedDocumentResult[]): string;