@stackbone/cli 0.7.0 → 0.7.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/CHANGELOG.md CHANGED
@@ -7,6 +7,70 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.7.1] - 2026-11-04
11
+
12
+ ### Added
13
+
14
+ - `stackbone rag ingest --metadata '<json object>'` sets document values, and
15
+ `stackbone rag query --filter '<json object>' --ranges '<json array>'` filters
16
+ retrieval by containment and number/date bounds. Invalid flags fail locally
17
+ with a suggestion before file reads or requests (STA3-61).
18
+
19
+ - **`stackbone rag collections create <name> --hybrid`: hybrid search for codes
20
+ and names.** A hybrid collection answers a text query with a search by
21
+ meaning and a search for the exact terms of the query, merged by reciprocal
22
+ rank fusion, so a product code such as `1239asd/OK` finds its product.
23
+ `--number-format eu|us` sets how the collection reads prices and dates
24
+ (`eu` by default). An unknown format fails before the request.
25
+ `stackbone rag query --no-hybrid` searches by meaning only, and with `--json`
26
+ each hit of a hybrid query carries `mixed_score` next to `score`, which stays
27
+ the similarity by meaning. A create without the flags sends the same request
28
+ as before, so an older box still accepts it (STA3-57).
29
+ - **Hybrid search in the box.** `POST /api/rag/collections` accepts
30
+ `hybrid_enabled` and `number_format`, `GET /api/rag/collections` returns them,
31
+ and `POST /api/rag/collections/{name}/query` takes `hybrid: false` and returns
32
+ `mixed_score` on a hybrid search. Migration 0116 adds the columns and the
33
+ index; hybrid stays off on every existing collection. Studio's new-collection
34
+ dialog gets a **Hybrid search** toggle and a **Number and date format**
35
+ select, and says when a box ignored them (STA3-57).
36
+ - **`stackbone rag collections update <name>`: change hybrid search on an
37
+ existing collection.** `--hybrid` or `--no-hybrid` turns it on or off and
38
+ `--number-format eu|us` changes the format; a flag left out keeps its value,
39
+ and a command with none fails before the request. The command prints
40
+ `Rebuilding collection <name>…` on stderr, waits for the box, and fails when
41
+ the answer does not confirm the settings sent. A box older than the command
42
+ answers exit `4` with "update the box" (STA3-57).
43
+ - **Changing hybrid search in the box.** `PATCH /api/rag/collections/{name}`
44
+ takes `hybrid_enabled`, `number_format` or both. The collection pauses as
45
+ `rebuilding`, so searches and ingests into it answer 409
46
+ `rag_collection_unavailable`, while the box recomputes every chunk's exact
47
+ terms from its stored text, with no embedding call; turning hybrid off clears
48
+ them. It answers 200 with the settings once the collection is ready, 409 while
49
+ an embedding rebuild or another change holds it, and 500 when the recompute
50
+ fails, which leaves the collection failed until the same change is sent
51
+ again. An embedding rebuild of a hybrid collection now keeps the exact terms.
52
+ Studio's collection screen gets **Edit search settings**, which shows the
53
+ collection rebuilding until the box answers (STA3-57).
54
+ - **Hybrid search reads prices and dates by the collection's number format.**
55
+ On an `eu` collection, `1250 euros` finds `1.250,00 €`,
56
+ `3 de noviembre de 2026` finds `03/11/2026`, and `3 de noviembre` finds it in
57
+ any year. On `us`, `03/11/2026` is March 11 and `1,250.00 €` is the amount.
58
+ Dates with a Spanish or English month name read the same in both formats,
59
+ and the euro is the only currency read. A number format change with
60
+ `rag collections update --number-format` now changes which chunks a date or
61
+ a price finds. A hybrid collection indexed before this release keeps its old
62
+ exact terms until its search settings are saved again
63
+ (`rag collections update` with its current settings, or Save in Studio) or
64
+ its embeddings are rebuilt (STA3-57).
65
+
66
+ ### Changed
67
+
68
+ - **Connector credentials from before CLI 0.6.1 must be reconnected.**
69
+ `stackbone dev` no longer moves grants written under the old shared dev key
70
+ onto the box's own key; it removes them at boot and Studio asks to reconnect
71
+ them. A box with neither its own Connect keys nor an install identity now
72
+ refuses to boot (STA3-43).
73
+
10
74
  ## [0.7.0] - 2026-10-30
11
75
 
12
76
  ### Added