@functional-systems/lambdadb-cli 0.1.2-dev.11 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -2,15 +2,31 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.1.2] - 2026-10-04
6
+
5
7
  ### Fixed
6
8
 
9
+ - Preserve fixed rerank status/provider/model/criteria/reason tokens when they
10
+ overlap with a credential. Continue redacting document content, resolved model
11
+ strings and unknown server metadata values in JSON and human output.
12
+
7
13
  - A successful development publication no longer fails CI solely because registry
8
14
  visibility exceeds the verification budget. Report a warning and explicit
9
15
  `published-verification-pending` result; retain failures for publish errors,
10
16
  invalid responses, authentication and artifact mismatches. Never retry writes.
11
17
 
18
+ ### Added
19
+
20
+ - SDK 0.7.0: 49 fixed text analyzer presets and optional per-query managed
21
+ reranking through query JSON files. Preserve final/retrieval scores and status
22
+ metadata in inline and downloaded results; keep vector k unchanged.
23
+ - Reranking example, contract documentation and installed-CLI regression coverage.
24
+ These features require a supporting server deployment.
25
+
12
26
  ### Maintenance
13
27
 
28
+ - Pin the TypeScript SDK and npm lockfile to 0.7.0. This CLI uses the native SDK;
29
+ Qdrant payload-schema mapping is not part of its surface.
14
30
  - Synchronize the 0.1.1 release history and start the 0.1.2 development line.
15
31
  - Prepare the Homebrew formula for verified stable 0.1.1 and record npm publication evidence.
16
32
 
package/DESIGN.md CHANGED
@@ -59,6 +59,45 @@ Loopback subprocess tests cover serialization and output through the published S
59
59
  and the installed-tarball suite repeats these contracts. Live evidence is separate
60
60
  in [VALIDATION.md](VALIDATION.md).
61
61
 
62
+ ## SDK 0.7.0 contract update (2026-10-04)
63
+
64
+ The native dependency and npm lockfile now pin
65
+ `@functional-systems/lambdadb@0.7.0`. Reviewed the
66
+ [release](https://github.com/lambdadb/lambdadb-typescript-client/releases/tag/v0.7.0),
67
+ [reranking](https://github.com/lambdadb/lambdadb-typescript-client/blob/v0.7.0/docs/managed-reranking.md),
68
+ [analyzer](https://github.com/lambdadb/lambdadb-typescript-client/blob/v0.7.0/docs/models/analyzer.md)
69
+ and [Qdrant](https://github.com/lambdadb/lambdadb-typescript-client/blob/v0.7.0/docs/compatibility/qdrant.md)
70
+ contracts and installed request/response schemas. Earlier sections describe
71
+ historical versions, rather than the current dependency.
72
+
73
+ There are no copied SDK models, analyzer allowlists, migration mappings or UI
74
+ components here. Create/query preflight delegates to SDK serializers. The CLI
75
+ retains its existing null-size adapter, 0–100 size bound and ref-conflict check.
76
+ The SDK owns rerank validation; CLI diagnostics now mention it. Analyzer omission,
77
+ ordering and lowercase selection remain unchanged. No collection rerank setting,
78
+ provider key, custom analyzer configuration or vector-k rewrite was introduced.
79
+
80
+ The query command forwards the SDK result except the consumed signed URL. Output
81
+ redaction preserves numeric values and array order. Regression tests exercise
82
+ applied, skipped, fallback and unused responses, zero/precision, metadata and
83
+ inline/downloaded results. Request cases cover raw-vector query text, independent
84
+ sizes, custom criteria, null/omitted settings and validation before HTTP. The
85
+ installed-package suite repeats the same CLI tests against a clean consumer.
86
+ Facet query compatibility and stored candidate field validation remain server-owned.
87
+
88
+ This repository does not import the Qdrant compatibility client or accept Qdrant
89
+ payload schemas. No local migration change applies. SDK consumers of that adapter
90
+ must now explicitly reject or resolve extra schema options: only a supported
91
+ `type` is mapped, and options such as `analyzers`, `tokenizer` and `lowercase`
92
+ raise `UnsupportedQdrantFeatureError`. Type-only mapping is unchanged; use native
93
+ index configurations for LambdaDB presets rather than silently dropping options.
94
+
95
+ No model/code generation command exists in this repository. TypeScript build
96
+ output is ignored and generated by `npm run build`/`prepack`; verify reproducible
97
+ output and the installed tarball, without checking generated files into Git.
98
+ Server deployment and live readiness are separate dependencies, not consequences
99
+ of upgrading this CLI.
100
+
62
101
  ## Architecture
63
102
 
64
103
  ```text
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # LambdaDB CLI
2
2
 
3
3
  A first, project-scoped CLI for developers, coding agents and CI. It uses
4
- `@functional-systems/lambdadb@0.6.0` for authentication, HTTP, read retries,
4
+ `@functional-systems/lambdadb@0.7.0` for authentication, HTTP, read retries,
5
5
  pagination, bulk transfers and large response downloads.
6
6
 
7
7
  ## Install and run
@@ -172,12 +172,59 @@ One page is the default; `nextPageToken` is an opaque continuation token.
172
172
  budget. No partial list is printed on failure. Collection statistics describe
173
173
  the committed head of `main`, not the selected read ref or whole-index readiness.
174
174
  The create input file is the index map itself, not a full create request body.
175
- SDK 0.6.0 accepts 16 lowercase text analyzer names: `standard`, `english`,
176
- `korean`, `japanese`, `chinese`, `cjk`, `arabic`, `french`, `german`, `hindi`,
177
- `indonesian`, `italian`, `portuguese`, `russian`, `spanish` and `turkish`.
175
+ SDK 0.7.0 accepts 49 fixed lowercase text analyzer presets:
176
+ `standard`, `english`, `korean`, `japanese`, `chinese`, `cjk`, `arabic`,
177
+ `french`, `german`, `hindi`, `indonesian`, `italian`, `portuguese`, `russian`,
178
+ `spanish`, `turkish`, `armenian`, `basque`, `bengali`, `brazilian`, `bulgarian`,
179
+ `catalan`, `czech`, `danish`, `dutch`, `estonian`, `finnish`, `galician`, `greek`,
180
+ `hungarian`, `irish`, `latvian`, `lithuanian`, `norwegian`, `persian`, `romanian`,
181
+ `serbian`, `sorani`, `swedish`, `thai`, `simple`, `whitespace`, `stop`, `keyword`,
182
+ `pattern`, `fingerprint`, `nepali`, `tamil` and `telugu`.
178
183
  For example, `{"text":{"type":"text","analyzers":["chinese"]}}` is a valid
179
- index-config file. Omission preserves the server default; lists are sent unchanged.
180
- The server rejects duplicate analyzer names. Language detection is not automatic.
184
+ index-config file. Omission preserves the `standard` server default; lists are
185
+ sent unchanged. The server rejects duplicate names. Custom pipelines/options
186
+ are unsupported, and language detection is not automatic. The `keyword` text
187
+ analyzer does not confer keyword field sorting/facets. Nepali/Tamil/Telugu are
188
+ Lucene extensions, not common Elasticsearch/OpenSearch support. See the
189
+ [SDK analyzer contract](https://github.com/lambdadb/lambdadb-typescript-client/blob/v0.7.0/docs/models/analyzer.md).
190
+
191
+ ### Managed reranking
192
+
193
+ ```sh
194
+ lambdadb query --collection cli-demo-docs --ref branch:main \
195
+ --file examples/query-rerank.json --json
196
+ ```
197
+
198
+ Add optional `rerank` to a query file; omission/null keeps existing searches.
199
+ This is a per-query setting, with LambdaDB-managed credentials and no Jev key.
200
+ Use `provider: "typesafe"`, `model: "jev-1.13.0"`, nonblank `queryText` (also for
201
+ raw vectors, up to 8 KiB UTF-8), and 1–8 unique stored scalar text `fields`.
202
+ Returned-field projection remains independent of these model inputs.
203
+ `candidateSize` defaults on the server to `max(50, size)` and must satisfy
204
+ `size <= candidateSize <= 100`. Final `size` is 1–100 (default 10); dense
205
+ `knn.k` stays unchanged and must be raised explicitly for more vector candidates.
206
+ Optional `criteria` replaces defaults with 2–10 distinct nonblank descriptions
207
+ ordered from low to high relevance (2 KiB each, 8 KiB total UTF-8).
208
+ Null optional settings use server defaults; the CLI does not insert them.
209
+
210
+ Reranking requires a scoring query and rejects `sort`, query-less requests and
211
+ filter-only queries. Existing lexical facet restrictions still apply; vector
212
+ and hybrid facets are not enabled. Facet-only `size: 0` works without reranking.
213
+ Selected candidate fields and model availability remain server validations.
214
+
215
+ Read `data.rerank.status` and its metadata. Applied document envelope `score` is
216
+ the final evaluation score, not a probability; `retrievalScore` retains the search
217
+ score. Output preserves zero, precision and server order, including `docsUrl`
218
+ downloads. Empty results report `skipped`/`noCandidates` with no `maxScore`.
219
+ Unused reranking omits metadata and `retrievalScore`. With `onFailure: "returnOriginal"`, eligible provider failures return retained search order/scores,
220
+ without `retrievalScore`, and report `fallback`; partial evaluations are discarded.
221
+ The default policy is `error`. Validation, authorization, retrieval, quota and
222
+ admission failures remain errors. See the
223
+ [full reranking contract](https://github.com/lambdadb/lambdadb-typescript-client/blob/v0.7.0/docs/managed-reranking.md).
224
+
225
+ These features need a supporting server deployment. SDK publication and shared
226
+ development checks do not establish production deployment, search quality,
227
+ load/failure coverage or billing readiness.
181
228
 
182
229
  ### Import JSONL
183
230
 
@@ -288,7 +335,7 @@ this SDK update. If migration is needed, deliberately create a new Collection an
288
335
  reinsert the source data; the CLI performs no automatic migration. Accepted imports
289
336
  and `consistentRead` are not proof of committed facet/index readiness.
290
337
 
291
- This source pins SDK 0.6.0. Existing CLI installations keep their packaged SDK
338
+ This source pins SDK 0.7.0. Existing CLI installations keep their packaged SDK
292
339
  until a new CLI version is published and installed.
293
340
 
294
341
  ## Output, deadlines and exit codes
package/RELEASING.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  ## Current status
4
4
 
5
+ CLI 0.1.2 is ready for release review from reviewed develop commit `aef74a3` (PR #14).
6
+ The candidate pins SDK 0.7.0, supports 49 fixed text analyzer presets and optional
7
+ per-query managed reranking, and preserves fixed rerank metadata during credential
8
+ redaction. The published 0.1.2-dev.12 artifact passed independent consumer,
9
+ provenance/signature and authorized development-service checks. The separately
10
+ installed 0.1.2 candidate also passed the expanded live smoke; its earlier failed
11
+ attempt and independent cleanup are recorded in [VALIDATION.md](VALIDATION.md).
12
+
13
+ Stable 0.1.2 is not published yet. The release PR targets main; its merge, immutable
14
+ `v0.1.2` tag and GitHub Release remain separate approved actions. After publishing,
15
+ verify npm latest, artifact integrity/provenance and clean consumers before updating
16
+ Homebrew. Keep develop on its dev version while this release branch is reviewed;
17
+ synchronize main back with the next `0.1.3-dev.1` base after release.
18
+
19
+ ## CLI 0.1.1 publication
20
+
5
21
  CLI 0.1.1 was published on 2026-09-29 through
6
22
  [GitHub Release v0.1.1](https://github.com/lambdadb/lambdadb-cli/releases/tag/v0.1.1)
7
23
  and the [OIDC release workflow](https://github.com/lambdadb/lambdadb-cli/actions/runs/36557578359).
@@ -16,8 +32,8 @@ tarball is byte-identical to the tested final candidate; provenance identifies t
16
32
  release commit, tag and workflow. See [VALIDATION.md](VALIDATION.md#cli-011-publication).
17
33
 
18
34
  The post-release branch synchronizes main history into develop with `0.1.2-dev.1`
19
- and prepares the 0.1.1 Homebrew formula. The public tap update requires its separate
20
- review and merge. Facets still require a supporting server and newly built keyword
35
+ and prepares the 0.1.1 Homebrew formula. The public tap was checked on 2026-10-04
36
+ and matches that verified 0.1.1 formula; the 0.1.2 handoff follows publication. Facets still require a supporting server and newly built keyword
21
37
  indexes; publication does not migrate Collections or upgrade installed CLIs.
22
38
 
23
39
  ## Prior publication status
@@ -260,9 +276,11 @@ npm run test:live
260
276
 
261
277
  The test fails before API calls when required settings are absent. It creates a
262
278
  random temporary collection, imports two 3 MiB documents plus a bulk document,
263
- uses the new `chinese` analyzer, checks exact facet-only and document+facet buckets,
264
- and checks committed query/fetch contents with a maximum 300-second observation
265
- window per stage. Request timeouts and polling sleeps are capped to the remaining
279
+ accepts and verifies metadata for all 49 fixed analyzer presets, checks exact
280
+ facet-only and document+facet buckets, and checks committed query/fetch contents
281
+ with a maximum 300-second observation window per stage. It also checks managed reranking with default criteria, null
282
+ and custom criteria, including final/retrieval scores and status metadata.
283
+ Request timeouts and polling sleeps are capped to the remaining
266
284
  budget, and responses at or after the deadline cannot pass. Process termination
267
285
  and event-loop scheduling may delay reporting. It reports elapsed time and
268
286
  matched-document counts; a timeout is a failed smoke, not proof that accepted
@@ -287,7 +305,8 @@ release, follow the [Homebrew maintainer guide](https://github.com/lambdadb/lamb
287
305
  update checksums, pass installation checks and prepare a tap PR. Tap publication
288
306
  is separate from this repository's npm workflow; no cross-repository write or
289
307
  automatic tap update is configured. The public
290
- [LambdaDB tap](https://github.com/lambdadb/homebrew-tap) provides stable `0.1.0`;
308
+ [LambdaDB tap](https://github.com/lambdadb/homebrew-tap) provides stable `0.1.1`
309
+ (verified on 2026-10-04);
291
310
  installation evidence is recorded in [VALIDATION.md](VALIDATION.md#homebrew-publication).
292
311
 
293
312
  ## Design references
package/VALIDATION.md CHANGED
@@ -1,8 +1,185 @@
1
1
  # Validation record
2
2
 
3
- Updated: 2026-09-29. Local contract tests use loopback servers and synthetic
3
+ Updated: 2026-10-04. Local contract tests use loopback servers and synthetic
4
4
  credentials. Authenticated development-project evidence is recorded separately.
5
5
 
6
+ ## CLI 0.1.2 stable candidate (2026-10-04)
7
+
8
+ Prepared release/0.1.2 from reviewed develop merge `aef74a3`, retaining SDK 0.7.0
9
+ and all reviewed runtime/test changes. The release branch changes only version
10
+ metadata, the dated changelog and release/validation documentation. Stable npm
11
+ 0.1.2 was absent when checked; latest remains 0.1.1. No stable tag, GitHub Release,
12
+ package publication or main merge was performed during preparation.
13
+
14
+ - npm ci, lint, typecheck, version checks and the explicit
15
+ RELEASE_TAG=v0.1.2 / RELEASE_PRERELEASE=false preflight passed on Node 24.15.0
16
+ with npm 11.12.1. All 71 source tests and 46 separately installed CLI tests passed.
17
+ The executable and lockfile agree on 0.1.2, and the installed SDK is 0.7.0.
18
+ - A candidate tarball was installed into an isolated consumer with its own npm
19
+ cache. Its executable was selected via LAMBDADB_TEST_CLI for the authorized
20
+ development smoke using the existing .env.local target and in-memory mapping.
21
+ The successful run took 54.4 seconds: accepted writes at about 3 seconds,
22
+ committed query/fetch contents at about 52 seconds, exact facets and managed
23
+ reranking default/null/custom by about 54 seconds. All 49 preset metadata
24
+ checks passed. Cleanup returned HTTP 404 for
25
+ `cli-smoke-14b21fee-59e1-4898-9ef2-8a57db823de0`.
26
+ - The first candidate live attempt failed after 53.2 seconds during query
27
+ observation with exit 3 and no HTTP status. The log does not distinguish a
28
+ transport timeout from another request failure; this is not a passing sample
29
+ or proof of a candidate defect. No runtime code was changed for the retry.
30
+ Cleanup was not confirmed by that run. An independent SDK get found its
31
+ test-owned collection still present; delete was accepted and a subsequent
32
+ get returned HTTP 404 for `cli-smoke-c42a987e-592a-4611-a8d7-04cf5b90ad15`.
33
+ - Every live launcher checked .env.local's SHA-256 before/after execution. It
34
+ remained byte-for-byte unchanged. Temporary consumers, caches and initial
35
+ candidate tarballs were removed.
36
+ - Only documentation was updated after the successful live run. The final
37
+ review tarball is rebuilt and checked again through the installed-package
38
+ suite; generated dist remains ignored. Candidate publication will be verified
39
+ independently after approval, rather than assuming dev provenance applies.
40
+ - The public Homebrew tap was read and matches the verified 0.1.1 formula. Its
41
+ 0.1.2 update waits for the stable npm artifact and immutable release lockfile.
42
+
43
+ The live checks are bounded development evidence. Provider failure/load behavior,
44
+ dense vector reranking, new-preset language quality, production deployment and
45
+ billing readiness remain outside this verification. The PR must pass Node 22/24
46
+ CI and receive review before main promotion. Tagging and publication are separate
47
+ approved actions; synchronize main back into develop with 0.1.3-dev.1 afterward.
48
+
49
+ ## Published SDK 0.7.0 development consumer (2026-10-04)
50
+
51
+ The [develop merge workflow](https://github.com/lambdadb/lambdadb-cli/actions/runs/37188862636)
52
+ completed successfully and published
53
+ [`0.1.2-dev.12`](https://www.npmjs.com/package/@functional-systems/lambdadb-cli/v/0.1.2-dev.12)
54
+ from `aef74a3deeacb1e5d3f50856301562b58739fcdd` on attempt 1. Required Node
55
+ 22/24 validation and the exact publication artifact tests passed. Registry
56
+ visibility was checked with reads while the automatic job completed; no second
57
+ publication was attempted. At verification, dev=0.1.2-dev.12 and latest=0.1.1.
58
+
59
+ - Downloaded tarball SHA-512 matched registry integrity and the clean consumer
60
+ lockfile. SDK dependency and the installed SDK both resolve exactly to 0.7.0.
61
+ Integrity: `sha512-AyGfP2ibeu/unYj5RvkkBO2WICkCMk6dp+4TauH0Da2xBsN6g3Nub7MmM/ZeiRE93wwV9r05IhXV2DyS28WY1A==`.
62
+ - Registry/installed gitHead and decoded
63
+ [provenance](https://registry.npmjs.org/-/npm/v1/attestations/@functional-systems%2flambdadb-cli@0.1.2-dev.12)
64
+ agree on the merge commit, repository, develop ref, publish.yaml workflow and
65
+ run 37188862636; the provenance subject digest matches the downloaded artifact.
66
+ - A fresh tarball consumer passed version/help and all 46 CLI contracts. Tests
67
+ came from an archived merge-source snapshot, with its expected package version
68
+ set to the generated published version. A separate registry-version consumer
69
+ with an isolated cache verified matching lockfile integrity and SDK version;
70
+ npm audit signatures verified four registry signatures and three attestations,
71
+ including the published CLI. The preliminary local-tarball audit verified only
72
+ the three registry dependencies, so the registry consumer verified the CLI too.
73
+ - The published CLI's executable was selected through LAMBDADB_TEST_CLI for the
74
+ expanded authorized development smoke. All 49 preset metadata, ordinary/bulk
75
+ writes, full committed query/fetch contents, exact facets and managed reranking
76
+ default/null/custom checks passed in 81.9 seconds. Query contents appeared at
77
+ about 78 seconds; acceptance at about 2 seconds did not imply search readiness.
78
+ - Cleanup was accepted and HTTP 404 confirmed for
79
+ `cli-smoke-5028c4c7-535c-4b29-8978-b3b805054d7d`. Temporary consumers, caches,
80
+ source snapshots and tarballs were removed. .env.local remained byte-for-byte
81
+ unchanged. The designated target and in-memory environment mapping are recorded
82
+ in the authenticated follow-up below.
83
+
84
+ This establishes the published development artifact and a bounded sample on one
85
+ development target. It does not establish stable publication, production feature
86
+ deployment, language-specific search quality, load/failure coverage or billing
87
+ readiness.
88
+
89
+ ## SDK 0.7.0 local compatibility (2026-10-04)
90
+
91
+ The checkout began clean on develop at `3903531`. npm now pins the released
92
+ SDK 0.7.0 in both package.json and package-lock.json. Existing 0.1.1 publication
93
+ and live evidence below remain historical; no new CLI package was published.
94
+
95
+ - `npm ci`, lint, typecheck and version/lockfile checks passed with Node 24.15.0
96
+ and npm 11.12.1. npm reported zero dependency vulnerabilities.
97
+ - Source suite: 69 tests passed on Node 24.15.0 and Node 22.23.3, with no failures
98
+ or skips. Installed tarballs: 44 CLI tests passed on each runtime in temporary
99
+ consumers; package inventory and executable version/help checks passed.
100
+ - Expanded analyzer forwarding covers all 49 names, existing omitted/default
101
+ serialization and lowercase rejection. Rerank cases check custom criteria,
102
+ null/omission, separate size/candidate cap/vector k, local validation, final and
103
+ retrieval scores (including zero/precision), tie order, metadata and facets.
104
+ Applied/empty/fallback/unused results are checked inline and through docsUrl;
105
+ API failures remain errors with returnOriginal. These are synthetic transport
106
+ contracts, not induced provider failures or language-quality measurements.
107
+ - Repeated TypeScript builds produced identical hashes for all 21 generated
108
+ files. No separate schema/model generator exists; generated dist stays ignored.
109
+ - No local Qdrant mapping exists. The upstream stricter schema-option behavior
110
+ and unchanged type-only mapping are documented in DESIGN.md.
111
+
112
+ The initial update did not inspect the existing ignored `.env.local` and therefore
113
+ ran only local tests. Steven subsequently explicitly authorized using that file;
114
+ the development-service follow-up below supersedes the initial live-test omission.
115
+ Supporting production deployment, search quality, load/failure coverage and billing
116
+ readiness remain unverified. No merge, deployment or publication was performed.
117
+
118
+ ## SDK 0.7.0 review follow-up: rerank token redaction (2026-10-04)
119
+
120
+ The PR review identified a valid protocol regression: a credential equal to
121
+ `applied` rewrote `data.rerank.status` to `[REDACTED]`. The new CLI regression
122
+ failed before the fix, while the negative test for arbitrary metadata passed.
123
+ The output sanitizer now preserves exact known status/provider/model/criteria
124
+ version/reason tokens only at their contract paths. Unknown server values,
125
+ resolvedModel and document content retain credential redaction; whole metadata
126
+ paths are not exempted because the SDK accepts open strings for several fields.
127
+
128
+ On Node 24.15.0, lint, typecheck, version checks, all 71 source tests and all 46
129
+ separately installed CLI tests passed with no failures or skips. The two new
130
+ cases cover every fixed token and a one-character credential, JSON and human
131
+ output, docsUrl results, nested document maps and unknown provider/model/reason
132
+ values. Repeated builds remain identical for all 21 generated files. This is a
133
+ local redaction fix; the prior development-service evidence remains applicable
134
+ to SDK API behavior and was not rerun with synthetic colliding credentials.
135
+
136
+ ## SDK 0.7.0 authenticated development follow-up (2026-10-04)
137
+
138
+ Tested the built CLI runtime from `b6b9cbc` (CLI `0.1.2-dev.1`, SDK `0.7.0`) on
139
+ Node 24.15.0 with the expanded live harness in this PR. Target:
140
+ `bench-recall` at `https://internal-dev-aws-apne2-v3-c05a2b5d492a.lambdadb.ai`.
141
+ The existing `.env.local` supplied the API key and `LAMBDADB_RUN_LIVE_TESTS=1`.
142
+ A `node --env-file=.env.local` launcher mapped `LAMBDADB_BASE_URL`,
143
+ `LAMBDADB_PROJECT_NAME` and `LAMBDADB_PROJECT_API_KEY` in memory to the CLI's
144
+ `LAMBDADB_ENDPOINT`, `LAMBDADB_PROJECT` and `LAMBDADB_API_KEY`, and set
145
+ `LAMBDADB_LIVE_CONFIRM_PROJECT` to the same authorized project. It ran
146
+ `node --test --test-reporter=tap test/live/cli.test.mjs` without printing credentials.
147
+
148
+ - Doctor and temporary collection creation passed. All 49 fixed presets were
149
+ accepted as individual text field configurations, and describe metadata
150
+ preserved each requested configuration. The keyword analyzer and keyword field
151
+ type remained distinct. Unpopulated preset fields test acceptance/metadata,
152
+ not language-specific indexing or search quality.
153
+ - Two ordinary documents with 3 MiB payloads each and one bulk document were
154
+ accepted at about 4 seconds. Committed query and fetch contents for all three
155
+ passed at about 100 seconds, without a pending-write overlay.
156
+ - Match-all facet-only and document-plus-facet queries returned exact expected
157
+ document counts and category buckets.
158
+ - Default reranking and custom criteria returned `applied`, candidate/scored
159
+ counts of three, expected provider/model and criteria-version markers, finite
160
+ final evaluation and retrieval scores, descending final-score order and matching
161
+ maxScore. Null rerank retained ordinary results with no rerank metadata or
162
+ retrievalScore. All three expected IDs were preserved. These checks exercised
163
+ the CLI, its published SDK and the designated development service, with no Jev key.
164
+ - The final run passed in 102.4 seconds. Cleanup was accepted and get returned
165
+ HTTP 404 for `cli-smoke-571da4e7-2402-4652-aa81-c44824964fdc`.
166
+ - Two earlier attempts failed only in newly added test metadata assertions:
167
+ first the response's collection wrapper was missed, then the server-added
168
+ default id index was compared as an unexpected field. The harness now compares
169
+ every requested index configuration while allowing server-added fields.
170
+ Both temporary collections were deleted and HTTP 404 confirmed:
171
+ `cli-smoke-ec8b9c3f-c94f-4c4a-bfff-3dad2a24516b` and
172
+ `cli-smoke-7fed413e-cbe5-4e15-a7dc-e334a3fac537`.
173
+ - Every attempt verified `.env.local` remained byte-for-byte unchanged using
174
+ SHA-256. Temporary local files were removed by the harness. Lint, typecheck
175
+ and diff checks passed after the harness changes.
176
+
177
+ This is bounded development evidence. The live harness does not inspect wire
178
+ responses to prove docsUrl selection, induce provider fallback or load failures,
179
+ measure ranking quality, test dense vector reranking, or establish production
180
+ feature deployment or billing readiness. Local transport regressions cover
181
+ zero/precision/ties, docsUrl metadata, independent vector k and failure handling.
182
+
6
183
  ## CLI 0.1.1 publication
7
184
 
8
185
  On 2026-09-29, [release v0.1.1](https://github.com/lambdadb/lambdadb-cli/releases/tag/v0.1.1)
package/dist/cli.js CHANGED
@@ -172,8 +172,8 @@ program.command('query')
172
172
  .description('Submit a supported query request JSON file; empty matches are a successful result')
173
173
  .requiredOption('--collection <name>', 'Collection name')
174
174
  .requiredOption('--ref <kind:name>', 'branch:NAME, tag:NAME or alias:NAME; must match any ref in the file')
175
- .requiredOption('--file <path>', 'JSON request body; omit query for match-all, use size:0 with facets for counts only')
176
- .addHelpText('after', '\nExamples:\n lambdadb query --collection demo-docs --ref branch:main --file examples/query.json --json\n lambdadb query --collection demo-docs --ref branch:main --file examples/query-facets-only.json --json\n lambdadb query --collection demo-docs --ref branch:main --file examples/query-with-facets.json --json')
175
+ .requiredOption('--file <path>', 'JSON request body; omit query for match-all, use size:0 with facets for counts only; optional rerank is per query')
176
+ .addHelpText('after', '\nExamples:\n lambdadb query --collection demo-docs --ref branch:main --file examples/query.json --json\n lambdadb query --collection demo-docs --ref branch:main --file examples/query-facets-only.json --json\n lambdadb query --collection demo-docs --ref branch:main --file examples/query-with-facets.json --json\n lambdadb query --collection demo-docs --ref branch:main --file examples/query-rerank.json --json')
177
177
  .action(async (opts, cmd) => {
178
178
  const ref = parseRef(opts.ref);
179
179
  const input = queryInput(await readJson(opts.file), ref);
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAgB,MAAM,aAAa,CAAC;AACvF,OAAO,EAAE,WAAW,EA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MAAM,CAAC,IAAI,CAAC;YACV,aAAa,EAAE,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM;YACzD,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACnF,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC;SAC9B,EAAE,YAAY,CAAC,CAAC,CAAC,4DAA4D,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;QACpG,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC9B,CAAC;AACH,CAAC"}
package/dist/input.js CHANGED
@@ -67,10 +67,10 @@ export function queryInput(body, ref) {
67
67
  }
68
68
  }
69
69
  const input = { ...body, ref };
70
- // Public API accepts null size, while SDK 0.6.0 only accepts undefined/number.
70
+ // Public API accepts null size, while SDK 0.7.0 only accepts undefined/number.
71
71
  if (input.size === null)
72
72
  delete input.size;
73
- // The SDK validates integer types and requires facets for zero, but omits bounds.
73
+ // The SDK requires integer sizes and facets for zero; bound non-reranked queries here.
74
74
  if (typeof input.size === 'number' && (input.size < 0 || input.size > 100)) {
75
75
  throw new InputError('Query size must be from 0 to 100; zero requires facets.');
76
76
  }
@@ -78,7 +78,7 @@ export function queryInput(body, ref) {
78
78
  queryCollectionRequestBodyToJSON(input);
79
79
  }
80
80
  catch {
81
- throw new InputError('Invalid query request. Check fields and types; size:0 requires facets, and consistentRead:true requires a branch ref.');
81
+ throw new InputError('Invalid query request. Check fields, types and rerank settings; size:0 requires facets, rerank requires a scoring query without sort, and consistentRead:true requires a branch ref.');
82
82
  }
83
83
  return input;
84
84
  }
package/dist/input.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../src/input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAk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AAuD,CAAC,CAAC;QACxG,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IACtF,CAAC;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,oCAAoC,CAAC,CAAC;IAClF,OAAO,IAAI,CAAC;AACd,CAAC"}
package/dist/output.js CHANGED
@@ -4,6 +4,15 @@ const protocolValues = new Set([
4
4
  'data.state', 'data.searchable', 'data.batches.*.state', 'data.batches.*.error.code',
5
5
  'data.checks.*.name', 'data.checks.*.status',
6
6
  ]);
7
+ // Rerank provider/model/reason schemas also accept arbitrary server strings.
8
+ // Exempt only exact contract tokens at these paths, never whole string fields.
9
+ const rerankProtocolValues = new Map([
10
+ ['data.rerank.status', new Set(['applied', 'skipped', 'fallback'])],
11
+ ['data.rerank.provider', new Set(['typesafe'])],
12
+ ['data.rerank.model', new Set(['jev-1.13.0'])],
13
+ ['data.rerank.criteriaVersion', new Set(['default-relevance-v1', 'custom'])],
14
+ ['data.rerank.reason', new Set(['noCandidates', 'timeout', 'rateLimit', 'unavailable', 'invalidResponse', 'credentials'])],
15
+ ]);
7
16
  // These response maps carry user-defined field names.
8
17
  const freeFormMaps = new Set(['doc', 'indexConfigs', 'tags']);
9
18
  export class Output {
@@ -24,8 +33,10 @@ export class Output {
24
33
  // Preserve the protocol while redacting variable values and arbitrary map keys.
25
34
  // Normalize dates first, and redact before serialization to preserve valid JSON.
26
35
  const sanitize = (value, path = '', freeForm = false) => {
27
- if (typeof value === 'string')
28
- return !freeForm && protocolValues.has(path) ? value : this.redact(value);
36
+ if (typeof value === 'string') {
37
+ const protocol = !freeForm && (protocolValues.has(path) || rerankProtocolValues.get(path)?.has(value));
38
+ return protocol ? value : this.redact(value);
39
+ }
29
40
  if (Array.isArray(value))
30
41
  return value.map(item => sanitize(item, `${path}.*`, freeForm));
31
42
  if (value && typeof value === 'object') {
@@ -1 +1 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAOA,8EAA8E;AAC9E,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC7B,SAAS,EAAE,YAAY,EAAE,iBAAiB;IAC1C,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,2BAA2B;IACpF,oBAAoB,EAAE,sBAAsB;CAC7C,CAAC,CAAC;AACH,sDAAsD;AACtD,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9D,MAAM,OAAO,MAAM;IACjB,IAAI,GAAG,KAAK,CAAC;IACL,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAEpC,OAAO,CAAC,MAA0B,IAAI,IAAI,MAAM;QAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAErE,MAAM,CAAC,IAAY;QACzB,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO;YAAE,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAChF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,UAAU,CAAC,OAAe;QACxB,8FAA8F;QAC9F,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,2BAA2B,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAC7F,CAAC;IAED,IAAI,CAAC,QAAkB,EAAE,OAAe;QACtC,gFAAgF;QAChF,iFAAiF;QACjF,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAE,IAAI,GAAG,EAAE,EAAE,QAAQ,GAAG,KAAK,EAAW,EAAE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AS,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACnH,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,UAAU,IAAI,CAAC,CAAC;aAClD,CAAC;YACJ,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAa,CAAC;YAChD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAClD,IAAI,IAAI,CAAC,MAAM;gBAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAC1E,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;gBAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QAC/F,CAAC;QACD,IAAI,QAAQ,CAAC,KAAK;YAAE,IAAI,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1F,CAAC;CACF"}
@@ -0,0 +1,12 @@
1
+ {
2
+ "size": 10,
3
+ "query": { "queryString": { "query": "serverless", "defaultField": "text" } },
4
+ "rerank": {
5
+ "provider": "typesafe",
6
+ "model": "jev-1.13.0",
7
+ "queryText": "How does serverless search work?",
8
+ "fields": ["text"],
9
+ "candidateSize": 50,
10
+ "onFailure": "error"
11
+ }
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functional-systems/lambdadb-cli",
3
- "version": "0.1.2-dev.11",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "description": "Project-scoped LambdaDB command-line tools",
6
6
  "type": "module",
@@ -33,7 +33,7 @@
33
33
  "test:live": "npm run build && node --test test/live/*.test.mjs"
34
34
  },
35
35
  "dependencies": {
36
- "@functional-systems/lambdadb": "0.6.0",
36
+ "@functional-systems/lambdadb": "0.7.0",
37
37
  "commander": "14.0.3"
38
38
  },
39
39
  "devDependencies": {
@@ -52,6 +52,5 @@
52
52
  "bugs": {
53
53
  "url": "https://github.com/lambdadb/lambdadb-cli/issues"
54
54
  },
55
- "license": "Apache-2.0",
56
- "gitHead": "3903531fe9a269d394fd43c833ed14840a86958e"
55
+ "license": "Apache-2.0"
57
56
  }
package/src/cli.ts CHANGED
@@ -175,8 +175,8 @@ program.command('query')
175
175
  .description('Submit a supported query request JSON file; empty matches are a successful result')
176
176
  .requiredOption('--collection <name>', 'Collection name')
177
177
  .requiredOption('--ref <kind:name>', 'branch:NAME, tag:NAME or alias:NAME; must match any ref in the file')
178
- .requiredOption('--file <path>', 'JSON request body; omit query for match-all, use size:0 with facets for counts only')
179
- .addHelpText('after', '\nExamples:\n lambdadb query --collection demo-docs --ref branch:main --file examples/query.json --json\n lambdadb query --collection demo-docs --ref branch:main --file examples/query-facets-only.json --json\n lambdadb query --collection demo-docs --ref branch:main --file examples/query-with-facets.json --json')
178
+ .requiredOption('--file <path>', 'JSON request body; omit query for match-all, use size:0 with facets for counts only; optional rerank is per query')
179
+ .addHelpText('after', '\nExamples:\n lambdadb query --collection demo-docs --ref branch:main --file examples/query.json --json\n lambdadb query --collection demo-docs --ref branch:main --file examples/query-facets-only.json --json\n lambdadb query --collection demo-docs --ref branch:main --file examples/query-with-facets.json --json\n lambdadb query --collection demo-docs --ref branch:main --file examples/query-rerank.json --json')
180
180
  .action(async (opts, cmd: Command) => {
181
181
  const ref = parseRef(opts.ref);
182
182
  const input = queryInput(await readJson(opts.file), ref);
package/src/input.ts CHANGED
@@ -57,14 +57,14 @@ export function queryInput(body: Record<string, unknown>, ref: ReadRef): QueryCo
57
57
  }
58
58
  }
59
59
  const input: Record<string, unknown> = { ...body, ref };
60
- // Public API accepts null size, while SDK 0.6.0 only accepts undefined/number.
60
+ // Public API accepts null size, while SDK 0.7.0 only accepts undefined/number.
61
61
  if (input.size === null) delete input.size;
62
- // The SDK validates integer types and requires facets for zero, but omits bounds.
62
+ // The SDK requires integer sizes and facets for zero; bound non-reranked queries here.
63
63
  if (typeof input.size === 'number' && (input.size < 0 || input.size > 100)) {
64
64
  throw new InputError('Query size must be from 0 to 100; zero requires facets.');
65
65
  }
66
66
  try { queryCollectionRequestBodyToJSON(input as QueryCollectionInput); }
67
- catch { throw new InputError('Invalid query request. Check fields and types; size:0 requires facets, and consistentRead:true requires a branch ref.'); }
67
+ catch { throw new InputError('Invalid query request. Check fields, types and rerank settings; size:0 requires facets, rerank requires a scoring query without sort, and consistentRead:true requires a branch ref.'); }
68
68
  return input as QueryCollectionInput;
69
69
  }
70
70
 
package/src/output.ts CHANGED
@@ -11,6 +11,15 @@ const protocolValues = new Set([
11
11
  'data.state', 'data.searchable', 'data.batches.*.state', 'data.batches.*.error.code',
12
12
  'data.checks.*.name', 'data.checks.*.status',
13
13
  ]);
14
+ // Rerank provider/model/reason schemas also accept arbitrary server strings.
15
+ // Exempt only exact contract tokens at these paths, never whole string fields.
16
+ const rerankProtocolValues = new Map<string, Set<string>>([
17
+ ['data.rerank.status', new Set(['applied', 'skipped', 'fallback'])],
18
+ ['data.rerank.provider', new Set(['typesafe'])],
19
+ ['data.rerank.model', new Set(['jev-1.13.0'])],
20
+ ['data.rerank.criteriaVersion', new Set(['default-relevance-v1', 'custom'])],
21
+ ['data.rerank.reason', new Set(['noCandidates', 'timeout', 'rateLimit', 'unavailable', 'invalidResponse', 'credentials'])],
22
+ ]);
14
23
  // These response maps carry user-defined field names.
15
24
  const freeFormMaps = new Set(['doc', 'indexConfigs', 'tags']);
16
25
 
@@ -34,7 +43,10 @@ export class Output {
34
43
  // Preserve the protocol while redacting variable values and arbitrary map keys.
35
44
  // Normalize dates first, and redact before serialization to preserve valid JSON.
36
45
  const sanitize = (value: unknown, path = '', freeForm = false): unknown => {
37
- if (typeof value === 'string') return !freeForm && protocolValues.has(path) ? value : this.redact(value);
46
+ if (typeof value === 'string') {
47
+ const protocol = !freeForm && (protocolValues.has(path) || rerankProtocolValues.get(path)?.has(value));
48
+ return protocol ? value : this.redact(value);
49
+ }
38
50
  if (Array.isArray(value)) return value.map(item => sanitize(item, `${path}.*`, freeForm));
39
51
  if (value && typeof value === 'object') {
40
52
  // Facet names are arbitrary, but their bucket/result keys are SDK schema.