@typicalday/firegraph 0.15.0 → 0.16.0

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 (57) hide show
  1. package/README.md +39 -17
  2. package/dist/{backend-CvImIwTY.d.cts → backend-CE3pM9-T.d.ts} +32 -2
  3. package/dist/{backend-BpYLdwCW.d.cts → backend-DNzv8KSR.d.cts} +33 -19
  4. package/dist/{backend-BpYLdwCW.d.ts → backend-DNzv8KSR.d.ts} +33 -19
  5. package/dist/{backend-YH5HtawN.d.ts → backend-EjFfw9yO.d.cts} +32 -2
  6. package/dist/backend.cjs.map +1 -1
  7. package/dist/backend.d.cts +2 -2
  8. package/dist/backend.d.ts +2 -2
  9. package/dist/backend.js +1 -1
  10. package/dist/{chunk-FODIMIWY.js → chunk-5JBNLH5W.js} +17 -6
  11. package/dist/chunk-5JBNLH5W.js.map +1 -0
  12. package/dist/{chunk-5HIRYV2S.js → chunk-6IO74NKD.js} +12 -10
  13. package/dist/{chunk-5HIRYV2S.js.map → chunk-6IO74NKD.js.map} +1 -1
  14. package/dist/{chunk-ULRDQ6HZ.js → chunk-NZVSLWNY.js} +6 -1
  15. package/dist/chunk-NZVSLWNY.js.map +1 -0
  16. package/dist/{chunk-N5HFDWQX.js → chunk-PWIO46RT.js} +1 -1
  17. package/dist/{chunk-N5HFDWQX.js.map → chunk-PWIO46RT.js.map} +1 -1
  18. package/dist/{client-B5o39X79.d.ts → client-CNAwJayO.d.ts} +1 -1
  19. package/dist/{client-BGHwxwPg.d.cts → client-CaXH5D5C.d.cts} +1 -1
  20. package/dist/cloudflare/index.cjs +11 -9
  21. package/dist/cloudflare/index.cjs.map +1 -1
  22. package/dist/cloudflare/index.d.cts +3 -3
  23. package/dist/cloudflare/index.d.ts +3 -3
  24. package/dist/cloudflare/index.js +3 -3
  25. package/dist/codegen/index.d.cts +1 -1
  26. package/dist/codegen/index.d.ts +1 -1
  27. package/dist/firestore-enterprise/index.cjs +11 -9
  28. package/dist/firestore-enterprise/index.cjs.map +1 -1
  29. package/dist/firestore-enterprise/index.d.cts +3 -3
  30. package/dist/firestore-enterprise/index.d.ts +3 -3
  31. package/dist/firestore-enterprise/index.js +2 -2
  32. package/dist/firestore-standard/index.cjs +11 -9
  33. package/dist/firestore-standard/index.cjs.map +1 -1
  34. package/dist/firestore-standard/index.d.cts +3 -3
  35. package/dist/firestore-standard/index.d.ts +3 -3
  36. package/dist/firestore-standard/index.js +2 -2
  37. package/dist/index.cjs +11 -9
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.d.cts +4 -4
  40. package/dist/index.d.ts +4 -4
  41. package/dist/index.js +1 -1
  42. package/dist/{registry-tKTb5Kx1.d.ts → registry-By1i-zge.d.ts} +1 -1
  43. package/dist/{registry-BGh7Jqpb.d.cts → registry-CNToyEra.d.cts} +1 -1
  44. package/dist/sqlite/index.cjs +24 -12
  45. package/dist/sqlite/index.cjs.map +1 -1
  46. package/dist/sqlite/index.d.cts +4 -4
  47. package/dist/sqlite/index.d.ts +4 -4
  48. package/dist/sqlite/index.js +4 -4
  49. package/dist/sqlite/local.cjs +474 -47
  50. package/dist/sqlite/local.cjs.map +1 -1
  51. package/dist/sqlite/local.d.cts +31 -5
  52. package/dist/sqlite/local.d.ts +31 -5
  53. package/dist/sqlite/local.js +429 -4
  54. package/dist/sqlite/local.js.map +1 -1
  55. package/package.json +1 -1
  56. package/dist/chunk-FODIMIWY.js.map +0 -1
  57. package/dist/chunk-ULRDQ6HZ.js.map +0 -1
@@ -1,7 +1,7 @@
1
- export { c as createGraphClient } from '../client-BGHwxwPg.cjs';
2
- export { M as META_EDGE_TYPE, a as META_NODE_TYPE, c as createMergedRegistry, b as createRegistry, g as generateId } from '../registry-BGh7Jqpb.cjs';
1
+ export { c as createGraphClient } from '../client-CaXH5D5C.cjs';
2
+ export { M as META_EDGE_TYPE, a as META_NODE_TYPE, c as createMergedRegistry, b as createRegistry, g as generateId } from '../registry-CNToyEra.cjs';
3
3
  import { Firestore } from '@google-cloud/firestore';
4
- import { S as StorageBackend } from '../backend-BpYLdwCW.cjs';
4
+ import { S as StorageBackend } from '../backend-DNzv8KSR.cjs';
5
5
 
6
6
  /**
7
7
  * Firestore Standard edition `StorageBackend`.
@@ -1,7 +1,7 @@
1
- export { c as createGraphClient } from '../client-B5o39X79.js';
2
- export { M as META_EDGE_TYPE, a as META_NODE_TYPE, c as createMergedRegistry, b as createRegistry, g as generateId } from '../registry-tKTb5Kx1.js';
1
+ export { c as createGraphClient } from '../client-CNAwJayO.js';
2
+ export { M as META_EDGE_TYPE, a as META_NODE_TYPE, c as createMergedRegistry, b as createRegistry, g as generateId } from '../registry-By1i-zge.js';
3
3
  import { Firestore } from '@google-cloud/firestore';
4
- import { S as StorageBackend } from '../backend-BpYLdwCW.js';
4
+ import { S as StorageBackend } from '../backend-DNzv8KSR.js';
5
5
 
6
6
  /**
7
7
  * Firestore Standard edition `StorageBackend`.
@@ -13,7 +13,7 @@ import {
13
13
  import "../chunk-C2QMD7RY.js";
14
14
  import {
15
15
  createCapabilities
16
- } from "../chunk-N5HFDWQX.js";
16
+ } from "../chunk-PWIO46RT.js";
17
17
  import {
18
18
  META_EDGE_TYPE,
19
19
  META_NODE_TYPE,
@@ -22,7 +22,7 @@ import {
22
22
  createMergedRegistry,
23
23
  createRegistry,
24
24
  generateId
25
- } from "../chunk-5HIRYV2S.js";
25
+ } from "../chunk-6IO74NKD.js";
26
26
  import "../chunk-NGAJCALM.js";
27
27
  import {
28
28
  FiregraphError
package/dist/index.cjs CHANGED
@@ -2221,7 +2221,7 @@ var GraphClientImpl = class _GraphClientImpl {
2221
2221
  async findNearest(params) {
2222
2222
  if (!this.backend.findNearest) {
2223
2223
  throw new FiregraphError(
2224
- "findNearest() is not supported by the current storage backend. Vector search requires a backend that declares `search.vector` (currently Firestore Standard and Enterprise). There is no client-side fallback because emulating ANN on top of the generic backend surface does not scale beyond toy datasets.",
2224
+ "findNearest() is not supported by the current storage backend. Vector search requires a backend that declares `search.vector` (currently Firestore Standard, Firestore Enterprise, and the local better-sqlite3 backend). There is no client-side fallback because emulating ANN on top of the generic backend surface does not scale beyond toy datasets.",
2225
2225
  "UNSUPPORTED_OPERATION"
2226
2226
  );
2227
2227
  }
@@ -2237,13 +2237,15 @@ var GraphClientImpl = class _GraphClientImpl {
2237
2237
  * Native full-text search (capability `search.fullText`).
2238
2238
  *
2239
2239
  * Returns the top-N records by relevance, ordered by the search
2240
- * index's score. Only Firestore Enterprise declares this capability
2241
- * today — the underlying Pipelines `search({ query: documentMatches(...) })`
2242
- * stage requires Enterprise's FTS index. Standard does not declare
2243
- * the cap (FTS is an Enterprise-only product feature, not a
2244
- * typed-API gap), and the SQLite-shaped backends have no native
2245
- * FTS index. Backends without `search.fullText` throw
2246
- * `UNSUPPORTED_OPERATION` from this wrapper.
2240
+ * index's score. Firestore Enterprise declares this capability (via
2241
+ * the Pipelines `search({ query: documentMatches(...) })` stage over
2242
+ * Enterprise's FTS index), as does the local better-sqlite3 backend
2243
+ * (`firegraph/sqlite-local`, via a trigger-synced FTS5 index ranked
2244
+ * by `bm25()`). Standard does not declare the cap (FTS is an
2245
+ * Enterprise-only product feature, not a typed-API gap); D1 and the
2246
+ * Cloudflare DO edition have no FTS trigger infrastructure. Backends
2247
+ * without `search.fullText` throw `UNSUPPORTED_OPERATION` from this
2248
+ * wrapper.
2247
2249
  *
2248
2250
  * Scan-protection mirrors `findNearest`: a search with no
2249
2251
  * identifying filters (`aType` / `axbType` / `bType`) walks every
@@ -2259,7 +2261,7 @@ var GraphClientImpl = class _GraphClientImpl {
2259
2261
  async fullTextSearch(params) {
2260
2262
  if (!this.backend.fullTextSearch) {
2261
2263
  throw new FiregraphError(
2262
- "fullTextSearch() is not supported by the current storage backend. Full-text search requires a backend that declares `search.fullText` (currently Firestore Enterprise only \u2014 FTS is an Enterprise product feature). There is no client-side fallback because emulating FTS over the generic backend surface would not scale beyond toy datasets.",
2264
+ "fullTextSearch() is not supported by the current storage backend. Full-text search requires a backend that declares `search.fullText` (currently Firestore Enterprise and the local better-sqlite3 backend). There is no client-side fallback because emulating FTS over the generic backend surface would not scale beyond toy datasets.",
2263
2265
  "UNSUPPORTED_OPERATION"
2264
2266
  );
2265
2267
  }