@larkup/cli 0.2.24 → 0.2.26

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.
Files changed (45) hide show
  1. package/README.md +8 -0
  2. package/dist/{analytics-store-KI3NXDYV.js → analytics-store-4NYU7DMO.js} +2 -2
  3. package/dist/api-X4PHQJTH.js +6943 -0
  4. package/dist/bowser-GZLEN3PD.js +2821 -0
  5. package/dist/{chroma-BCASZNMJ.js → chroma-RJVBZZMP.js} +2 -11
  6. package/dist/chunk-3EBUYTA7.js +136 -0
  7. package/dist/chunk-4XN2IRCG.js +46 -0
  8. package/dist/{chunk-FM6HYXZ5.js → chunk-5UWKP64Q.js} +24 -72
  9. package/dist/chunk-65EVYGDT.js +2904 -0
  10. package/dist/chunk-A7HMSODH.js +126 -0
  11. package/dist/chunk-BDMLJQRN.js +534 -0
  12. package/dist/chunk-FUTLPXFR.js +921 -0
  13. package/dist/chunk-HAABLEPO.js +1570 -0
  14. package/dist/chunk-HOPZALAP.js +449 -0
  15. package/dist/{chunk-L34L3RDQ.js → chunk-JZ3UCEGF.js} +157 -197
  16. package/dist/chunk-MACWQEJS.js +2091 -0
  17. package/dist/chunk-MYOADNR2.js +515 -0
  18. package/dist/chunk-N6IF5QLH.js +1850 -0
  19. package/dist/chunk-ODWAFTDP.js +1711 -0
  20. package/dist/chunk-QGM4M3NI.js +37 -0
  21. package/dist/chunk-S5DCG3CZ.js +41 -0
  22. package/dist/{chunk-I6JJWCUQ.js → chunk-V3VNCOZ6.js} +118 -29
  23. package/dist/dist-es-5DTOPEBY.js +322 -0
  24. package/dist/dist-es-BM4STLL5.js +70 -0
  25. package/dist/dist-es-DS5SFRTK.js +377 -0
  26. package/dist/dist-es-F6WXDZQY.js +88 -0
  27. package/dist/dist-es-KMHWFNXI.js +295 -0
  28. package/dist/dist-es-LRDDK5LI.js +11761 -0
  29. package/dist/dist-es-LWW2DNRF.js +139 -0
  30. package/dist/dist-es-NEADJWQM.js +176 -0
  31. package/dist/dist-es-S5FAFKBD.js +23 -0
  32. package/dist/dist-es-YD724GH3.js +221 -0
  33. package/dist/event-streams-NPIZBVLJ.js +43 -0
  34. package/dist/index.js +2163 -1798
  35. package/dist/{lancedb-UB2EPDCN.js → lancedb-TCUZKSHN.js} +1 -1
  36. package/dist/lexer-DQCqS3nf-CGRGK47I.js +62 -0
  37. package/dist/loadSso-HXXA5UNF.js +584 -0
  38. package/dist/{pinecone-OHOY4YYM.js → pinecone-ME3YOCQJ.js} +3 -21
  39. package/dist/signin-7FUGJFG3.js +822 -0
  40. package/dist/sso-oidc-EPMF7LMF.js +838 -0
  41. package/dist/sts-RBEOIBEJ.js +1118 -0
  42. package/dist/{tool-loader-KKODIWEV.js → tool-loader-PEQZZWTB.js} +3 -3
  43. package/dist/{tool-registry-CXCFMOWA.js → tool-registry-VJYLRXKJ.js} +2 -2
  44. package/package.json +20 -16
  45. package/dist/chunk-3RG5ZIWI.js +0 -10
@@ -1,4 +1,4 @@
1
- import "./chunk-3RG5ZIWI.js";
1
+ import "./chunk-QGM4M3NI.js";
2
2
 
3
3
  // ../../packages/vector-stores/src/adapters/pinecone.ts
4
4
  import { Pinecone } from "@pinecone-database/pinecone";
@@ -36,7 +36,6 @@ var PineconeAdapter = class {
36
36
  get needsSparse() {
37
37
  return this.config.indexType === "lexical" || this.config.indexType === "hybrid";
38
38
  }
39
- // ── Lifecycle ──────────────────────────────────────────────────────────────
40
39
  async init(dimensions) {
41
40
  const pc = this.getClient();
42
41
  const { indexes } = await pc.listIndexes();
@@ -71,12 +70,7 @@ var PineconeAdapter = class {
71
70
  console.error("Failed to delete vectors by documentIds in Pinecone:", err);
72
71
  }
73
72
  }
74
- // ── Sparse vector generation with rate-limit handling ─────────────────────
75
- /**
76
- * Call Pinecone Inference API for one batch of texts, retrying on 429.
77
- * Before each retry-sleep the `onRateLimit` hook is called so the indexer
78
- * can patch the run store with a warning that the UI polls.
79
- */
73
+ /** Build sparse vectors, retrying provider rate limits. */
80
74
  async embedSparseWithRetry(texts) {
81
75
  const pc = this.getClient();
82
76
  for (let attempt = 1; attempt <= RATE_LIMIT_MAX_RETRIES + 1; attempt++) {
@@ -145,7 +139,6 @@ var PineconeAdapter = class {
145
139
  }
146
140
  throw new Error("Sparse query embedding failed after max retries.");
147
141
  }
148
- // ── Upsert ─────────────────────────────────────────────────────────────────
149
142
  async upsert(records) {
150
143
  if (records.length === 0) return;
151
144
  const sanitizeMeta = (meta) => {
@@ -192,7 +185,6 @@ var PineconeAdapter = class {
192
185
  }))
193
186
  });
194
187
  }
195
- // ── Query ──────────────────────────────────────────────────────────────────
196
188
  async query(vector, topK, queryText) {
197
189
  const canHybrid = this.needsSparse && this.config.sparseModel && queryText;
198
190
  if (!canHybrid) {
@@ -209,15 +201,7 @@ var PineconeAdapter = class {
209
201
  const res = await this.ns().query({ vector, topK, includeMetadata: true });
210
202
  return (res.matches ?? []).map(hitFromMatch);
211
203
  }
212
- /**
213
- * Sparse-weighted query for hybrid search.
214
- *
215
- * Pinecone's dotproduct index ALWAYS requires a non-empty dense `vector`
216
- * array — even when the call is primarily sparse. Passing `[]` triggers the
217
- * "You must enter an array of RecordValues" error. We pass the real dense
218
- * query vector here; Pinecone's scoring blends both dimensions and the RRF
219
- * merge downstream takes care of the final ranking.
220
- */
204
+ /** Run sparse-weighted hybrid search with the required dense vector. */
221
205
  async sparseQuery(denseVector, queryText, topK) {
222
206
  const sparseVector = await this.buildQuerySparseVector(queryText);
223
207
  const res = await this.ns().query({
@@ -228,7 +212,6 @@ var PineconeAdapter = class {
228
212
  });
229
213
  return (res.matches ?? []).map(hitFromMatch);
230
214
  }
231
- // ── Count ──────────────────────────────────────────────────────────────────
232
215
  async count() {
233
216
  try {
234
217
  const stats = await this.ns().describeIndexStats();
@@ -237,7 +220,6 @@ var PineconeAdapter = class {
237
220
  return null;
238
221
  }
239
222
  }
240
- // ── Connection test ────────────────────────────────────────────────────────
241
223
  async testConnection(dimensions) {
242
224
  const pc = this.getClient();
243
225
  let indexList;