@bicharts/shape-core 0.5.53 → 0.5.54

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.
@@ -110,6 +110,16 @@ export type LLMClientHints = {
110
110
  allowGeneratedMeasures?: string;
111
111
  industryContext?: string;
112
112
  favorStyle?: string;
113
+ /**
114
+ * WHICH PROJECTION the reader picked, when the row they clicked was a projected one
115
+ * (servers from 2026-09-03). The "What fits?" list offers a projected type once per
116
+ * projection that admits it - the same chart at two grains, 3 marks or 4 - so the pick
117
+ * has to name one. This is the projection's KEY (`viaProjectionKey` from the row), never
118
+ * its prose label. Absent means "decide for me", which is what every earlier client sends
119
+ * and what the auto-pick path always sends: the server falls back to the first projection
120
+ * that admits the type.
121
+ */
122
+ favorProjection?: string;
113
123
  favorLimitTo?: string;
114
124
  favorLimitCount?: number;
115
125
  groupToOthersLabel?: string;
@@ -210,6 +220,14 @@ export type LLMQualifyResult = {
210
220
  language?: string;
211
221
  recommended?: boolean;
212
222
  viaProjection?: string;
223
+ /**
224
+ * The projection's stable identity, beside `viaProjection`'s prose (servers from
225
+ * 2026-09-03). Null on a direct offer. A type several projections admit appears once
226
+ * per projection - each row a different grain - so a host that lets the reader pick
227
+ * one must send this back as `clientHints.favorProjection`, or the server re-decides
228
+ * the grain by its own ordering.
229
+ */
230
+ viaProjectionKey?: string;
213
231
  isPreview?: boolean;
214
232
  detailNote?: string;
215
233
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bicharts/shape-core",
3
- "version": "0.5.53",
3
+ "version": "0.5.54",
4
4
  "description": "Host-agnostic data-shape profiler: ingest a dataset's rows through IValueCollection.addRow and read back the measured shape as an LLMColumnWithValue[] payload — types, cardinality, temporal/ordinal detection, geographic region and point resolution, cross-column signals. MEASUREMENT only: the policy that decides what a measured shape means for chart selection lives server-side.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",