@seedprotocol/query 0.7.9-next.1189.g5e63267 → 0.7.9-next.1306.g4ff6582

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 (42) hide show
  1. package/README.md +3 -3
  2. package/dist/api.d.ts +1 -1
  3. package/dist/bootstrap.d.ts +7 -0
  4. package/dist/bootstrap.d.ts.map +1 -1
  5. package/dist/cache/config.d.ts +0 -1
  6. package/dist/cache/config.d.ts.map +1 -1
  7. package/dist/cache/types.d.ts +1 -4
  8. package/dist/cache/types.d.ts.map +1 -1
  9. package/dist/fieldStorageModel.d.ts +0 -18
  10. package/dist/fieldStorageModel.d.ts.map +1 -1
  11. package/dist/hydrateArweaveRichText.d.ts +0 -2
  12. package/dist/hydrateArweaveRichText.d.ts.map +1 -1
  13. package/dist/imageRelationEnrichment.d.ts +0 -2
  14. package/dist/imageRelationEnrichment.d.ts.map +1 -1
  15. package/dist/index.d.ts +6 -6
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +3 -3
  18. package/dist/index.node.d.ts.map +1 -1
  19. package/dist/index.node.js +5 -5
  20. package/dist/index.node.js.map +1 -1
  21. package/dist/node/index.d.ts.map +1 -1
  22. package/dist/node/registerNodeEas.d.ts +7 -0
  23. package/dist/node/registerNodeEas.d.ts.map +1 -0
  24. package/dist/node.js +4 -5
  25. package/dist/node.js.map +1 -1
  26. package/dist/parseEasPropertyMetadata.d.ts +0 -6
  27. package/dist/parseEasPropertyMetadata.d.ts.map +1 -1
  28. package/dist/registerNodeEas-BRQjXdFD.js +107 -0
  29. package/dist/registerNodeEas-BRQjXdFD.js.map +1 -0
  30. package/dist/source/remote.d.ts +5 -0
  31. package/dist/source/remote.d.ts.map +1 -1
  32. package/dist/{src-BnsF-Zyi.js → src-C4engEq9.js} +255 -261
  33. package/dist/src-C4engEq9.js.map +1 -0
  34. package/dist/{types-BjCYpItx.js → types-CtWSwDmX.js} +25 -21
  35. package/dist/types-CtWSwDmX.js.map +1 -0
  36. package/dist/types.d.ts +2 -8
  37. package/dist/types.d.ts.map +1 -1
  38. package/package.json +3 -3
  39. package/dist/registerNodeArweave-VGXwzQt4.js +0 -103
  40. package/dist/registerNodeArweave-VGXwzQt4.js.map +0 -1
  41. package/dist/src-BnsF-Zyi.js.map +0 -1
  42. package/dist/types-BjCYpItx.js.map +0 -1
package/README.md CHANGED
@@ -13,7 +13,7 @@ SDK EAS sync (`client.syncFromEas()`) persists the same EAS graph into SQLite us
13
13
  - `getSeed(seedUid)` — one seed’s canonical JSON envelope, optional **changelog**, at its latest version or a pinned one
14
14
  - `getSeeds(seedUids)` — many seeds of any schemas in one set of requests, keyed by UID
15
15
  - `queryBySchema(schemaName, { limit, skip })` — paginated collection (latest-only)
16
- - `queryBySchemaForMonth` — calendar-month listing (used by feed archives)
16
+ - `queryBySchemaForMonth` — calendar-month listing in UTC (used by feed archives)
17
17
  - Resolve mode: **latest Version** (or a pinned one), then newest property attestation per `(version, schemaId)`
18
18
  - **`source: 'local' | 'remote' | 'auto'`** — pluggable backends (default `'remote'`)
19
19
  - **Shared collection + item cache** for **remote** reads (memory → disk)
@@ -76,7 +76,7 @@ const { items: matches } = await queryBySchema('post', { uidPrefix: 'fd8c50ca',
76
76
 
77
77
  Options on every API: `relations` (default `'expand'`), `hydrateStorage` (default `true`), `cache` (default: follow env; pass `false` to bypass), `source` (default `'remote'`).
78
78
 
79
- `relations` sets how relation properties come back. `'expand'` resolves Html/File relations to Arweave URLs and nests other related seeds as objects. `'urls'` resolves Html/File relations to URLs and leaves the rest as seed UIDs. `'uids'` leaves every relation as a seed UID under its stored key (`author_id`, `author_ids`) and fetches no related seeds, so a listing makes three indexer requests (seeds, versions, properties) instead of up to seven; `hydrateStorage` still reads the requested seeds' own storage fields. `expandRelations` is deprecated: `true` is `'expand'`, `false` is `'urls'`, and `relations` wins when both are given.
79
+ `relations` sets how relation properties come back. `'expand'` resolves Html/File relations to Arweave URLs and nests other related seeds as objects. `'urls'` resolves Html/File relations to URLs and leaves the rest as seed UIDs. `'uids'` leaves every relation as a seed UID under its stored key (`author_id`, `author_ids`) and fetches no related seeds, so a listing makes three indexer requests (seeds, versions, properties) instead of up to seven; `hydrateStorage` still reads the requested seeds' own storage fields.
80
80
 
81
81
  ## Many seeds (`getSeeds`)
82
82
 
@@ -176,7 +176,7 @@ Behavior:
176
176
  - **Change checks** — every cache hit asks EAS, in one request, for attestations created or revoked since the entry was last checked that touch what it was built from: the seed, its head Version, and the seeds it relates to (and their head Versions). New Versions, property edits on the same Version (the default `patch` publish), and revocations are all seen. Only changed seeds are assembled again; a cached seed that was revoked drops out. The TTL is a backstop for anything a check can't see (e.g. relations of related seeds).
177
177
  - **Collection cache** — only for **remote** `queryBySchema` with `skip === 0`, per schema and options fingerprint. Each hit fetches the seed list (shows new and revoked seeds) and, in the same round, checks every cached seed for changes; then it assembles only new or changed ones.
178
178
  - **`maxAge`** — off by default. With `maxAge: 60` (or `CACHE_MAX_AGE=60`), a collection checked less than 60 seconds ago in this process is returned with no request, so new, changed and revoked seeds show up to 60 seconds late. The time is kept in memory per schema, options and `limit`.
179
- - **Item cache** — keyed by `seedUid` + options fingerprint (`relations` / `hydrateStorage` / `include` / changelog filters / `versionUid` / `asOf`). Default latest-only key remains `e1-h1`; `relations` maps to `e1` (`'expand'`), `e0` (`'urls'`) and `e2` (`'uids'`), so keys written with `expandRelations` still match. Filled by remote `getSeed` and `getSeeds` and write-through from collection/month queries; a `getSeed` or `getSeeds` hit is checked for changes first.
179
+ - **Item cache** — keyed by `seedUid` + options fingerprint (`relations` / `hydrateStorage` / `include` / changelog filters / `versionUid` / `asOf`). Default latest-only key remains `e1-h1`; `relations` maps to `e1` (`'expand'`), `e0` (`'urls'`) and `e2` (`'uids'`). Filled by remote `getSeed` and `getSeeds` and write-through from collection/month queries; a `getSeed` or `getSeeds` hit is checked for changes first.
180
180
  - **ETags** — from content, so they change with any edit (not only a new `versionUid`).
181
181
  - **Arweave bodies** — cached in memory by transaction id (their content never changes), whether or not the query cache is enabled.
182
182
  - **Read-only results** — records from a cached read are the cache's own objects, shared with every later caller, so `SeedRecord` is typed read-only (`data: SeedData`, `changelog: readonly ChangelogEntry[]`). Outside `NODE_ENV=production`, records are also deep-frozen as they enter the memory cache (stored, or loaded from disk), so a write throws a `TypeError` instead of silently changing what later callers see and leaving the ETag stale. Production skips the freeze. Copy before changing anything, nested values included (copy-on-write, as feed's `applyFeedDefaultsDeep` does). `queryBySchema`'s `items` array is the caller's own. Set `freezeRecords` on the cache config to override.
package/dist/api.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare function getSeed(seedUid: string, options?: GetSeedOptions): Prom
15
15
  */
16
16
  export declare function getSeeds(seedUids: readonly string[], options?: GetSeedsOptions): Promise<Map<string, SeedRecord>>;
17
17
  /**
18
- * Query seeds of a schema created within a calendar month (local timezone bounds).
18
+ * Query seeds of a schema created within a calendar month, in UTC.
19
19
  * No collection cache; may write-through to item cache when remote.
20
20
  */
21
21
  export declare function queryBySchemaForMonth(schemaName: string, year: number, month: number, options?: AssembleOptions): Promise<SeedRecord[]>;
@@ -10,6 +10,13 @@ export type QueryArweavePlatformRegistrar = (options: {
10
10
  * configured. The browser entry keeps the default so its graph never loads `@seedprotocol/arweave/node`.
11
11
  */
12
12
  export declare function configureQueryArweavePlatform(registrar: QueryArweavePlatformRegistrar): void;
13
+ /** Fills in the EAS client for a process where nothing has registered one. */
14
+ export type QueryEasPlatformRegistrar = () => Promise<void>;
15
+ /**
16
+ * @internal Set by the Node entries, which register the Node EAS client (connection reuse and TLS
17
+ * settings for the indexer; see `@seedprotocol/eas/node`) when none is configured.
18
+ */
19
+ export declare function configureQueryEasPlatform(registrar: QueryEasPlatformRegistrar): void;
13
20
  /**
14
21
  * Make sure EAS and Arweave are usable for remote query. Clients already registered (by the SDK
15
22
  * or a host app) are used as they are, so query can run in a page or process where SeedClient is
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../src/boot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AAC,CAef;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAE3D;AAED,wBAAgB,0BAA0B,IAAI,OAAO,CAEpD;AAED,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA"}
@@ -7,7 +7,6 @@ import type { QueryCacheConfig } from './types.js';
7
7
  * - CACHE_TTL (default 3600)
8
8
  * - CACHE_DIR (default ./cache)
9
9
  * - CACHE_MAX_AGE (default 0): seconds a checked collection is served without a request
10
- * - CACHE_BACKGROUND_REFRESH / CACHE_REFRESH_INTERVAL (unused stubs)
11
10
  *
12
11
  * In development (NODE_ENV=development), cache is disabled unless
13
12
  * CACHE_ENABLED is explicitly true.
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/cache/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQlD;;;;;;;;;;;;;;;GAeG;AACH;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wBAAgB,oBAAoB,IAAI,gBAAgB,CAwCvD"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/cache/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQlD;;;;;;;;;;;;;;GAcG;AACH;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wBAAgB,oBAAoB,IAAI,gBAAgB,CAoCvD"}
@@ -43,8 +43,6 @@ export type QueryCacheConfig = {
43
43
  ttl: number;
44
44
  cacheDir: string;
45
45
  enabled: boolean;
46
- backgroundRefresh: boolean;
47
- refreshInterval: number;
48
46
  /**
49
47
  * Seconds after a collection was last checked during which `queryBySchema` returns it without
50
48
  * any request (see QueryBySchemaOptions.maxAge). 0 (the default) checks on every read.
@@ -76,11 +74,10 @@ export type PersistentCache = {
76
74
  /**
77
75
  * Build a stable key for assemble options that affect cached payloads.
78
76
  * Default latest-only (`include: 'data'`) keeps Phase 2 key `e1-h1`. Relations modes map to
79
- * `e1` (expand), `e0` (urls) and `e2` (uids), so keys from `expandRelations` are unchanged.
77
+ * `e1` (expand), `e0` (urls) and `e2` (uids).
80
78
  */
81
79
  export declare function buildAssembleOptionsKey(options?: {
82
80
  relations?: RelationsMode;
83
- expandRelations?: boolean;
84
81
  hydrateStorage?: boolean;
85
82
  include?: ChangelogInclude;
86
83
  changelog?: GetSeedOptions['changelog'];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/cache/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,UAAU,EAChB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAE3D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,oBAAoB;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,EAAE,CAAA;CACzB,CAAA;AAED,qDAAqD;AACrD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,EAAE,gBAAgB,CAAA;IAC9B,kDAAkD;IAClD,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG;IAC/C,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IACtC,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,MAAM,EAAE,aAAa,CAAA;IACrB,YAAY,EA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AAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7D,wDAAwD;IACxD,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1B,CAAA;AAUD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,CAAC,EAAE;IAChD,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAA;IACvC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,GAAG,MAAM,CAmBT;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE9D"}
@@ -1,30 +1,12 @@
1
1
  /** Related Seed schema names (lowercased) used as primary rich-body sources. */
2
2
  export declare const RICH_BODY_STORAGE_SCHEMAS: Set<string>;
3
- /** @deprecated Alias for {@link RICH_BODY_STORAGE_SCHEMAS} (feed key compatibility). */
4
- export declare const FEED_RICH_BODY_STORAGE_SCHEMAS: Set<string>;
5
3
  export type FieldStorageModels = Record<string, string>;
6
4
  export type ListElementStorageModels = Record<string, string[]>;
7
- /** @deprecated Use {@link FieldStorageModels} */
8
- export type FeedFieldStorageModels = FieldStorageModels;
9
- /** @deprecated Use {@link ListElementStorageModels} */
10
- export type FeedListElementStorageModels = ListElementStorageModels;
11
5
  export declare function isRichBodyStorageSchema(schemaName: string): boolean;
12
- /** @deprecated Use {@link isRichBodyStorageSchema} */
13
- export declare const isFeedRichBodyStorageSchema: typeof isRichBodyStorageSchema;
14
6
  /** html < file < json for tie-breaking among rich body fields. */
15
7
  export declare function richBodyModelPriority(schemaName: string): number;
16
- /** @deprecated Use {@link richBodyModelPriority} */
17
- export declare const feedRichBodyModelPriority: typeof richBodyModelPriority;
18
8
  export declare function getFieldStorageModels(item: Record<string, unknown>): FieldStorageModels | undefined;
19
- /** @deprecated Use {@link getFieldStorageModels} */
20
- export declare const getFeedFieldStorageModels: typeof getFieldStorageModels;
21
9
  export declare function getListElementStorageModels(item: Record<string, unknown>): ListElementStorageModels | undefined;
22
- /** @deprecated Use {@link getListElementStorageModels} */
23
- export declare const getFeedListElementStorageModels: typeof getListElementStorageModels;
24
10
  export declare function setFieldStorageModel(item: Record<string, unknown>, fieldKey: string, schemaName: string): void;
25
- /** @deprecated Use {@link setFieldStorageModel} */
26
- export declare const setFeedFieldStorageModel: typeof setFieldStorageModel;
27
11
  export declare function setListElementStorageModels(item: Record<string, unknown>, outputKey: string, models: string[]): void;
28
- /** @deprecated Use {@link setListElementStorageModels} */
29
- export declare const setFeedListElementStorageModels: typeof setListElementStorageModels;
30
12
  //# sourceMappingURL=fieldStorageModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fieldStorageModel.d.ts","sourceRoot":"","sources":["../src/fieldStorageModel.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,eAAO,MAAM,yBAAyB,aAAoC,CAAA;AAE1E,wFAAwF;AACxF,eAAO,MAAM,8BAA8B,aAA4B,CAAA;AAMvE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AACvD,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;AAE/D,iDAAiD;AACjD,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,CAAA;AACvD,uDAAuD;AACvD,MAAM,MAAM,4BAA4B,GAAG,wBAAwB,CAAA;AAMnE,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAEnE;AAED,sDAAsD;AACtD,eAAO,MAAM,2BAA2B,gCAA0B,CAAA;AAElE,kEAAkE;AAClE,wBAA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wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAMhE;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,kBAAkB,GAAG,SAAS,CAMhC;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,wBAAwB,GAAG,SAAS,CAMtC;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,GACjB,IAAI,CAQN;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EAAE,GACf,IAAI,CAON"}
@@ -18,6 +18,4 @@ export declare function resetArweaveBodyCache(): void;
18
18
  * Up to HYDRATE_CONCURRENCY bodies are resolved at a time, across all items.
19
19
  */
20
20
  export declare function hydrateArweaveRichTextInItems(items: Record<string, unknown>[], options?: HydrateStorageOptions): Promise<void>;
21
- /** @deprecated Use {@link hydrateArweaveRichTextInItems} */
22
- export declare const hydrateArweaveRichTextInFeedItems: typeof hydrateArweaveRichTextInItems;
23
21
  //# sourceMappingURL=hydrateArweaveRichText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hydrateArweaveRichText.d.ts","sourceRoot":"","sources":["../src/hydrateArweaveRichText.ts"],"names":[],"mappings":"AAiBA,MAAM,MAAM,qBAAqB,GAAG;IAClC,iFAAiF;IACjF,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE;QACtB,YAAY,EAAE,MAAM,CAAA;QACpB,KAAK,EAAE,OAAO,CAAA;QACd,aAAa,CAAC,EAAE,MAAM,CAAA;KACvB,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;CAC7B,CAAA;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAenE;AAkCD,gDAAgD;AAChD,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C;AAuED;;;;GAIG;AACH,wBAAsB,6BAA6B,CACjD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAChC,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAyCf;AAED,4DAA4D;AAC5D,eAAO,MAAM,iCAAiC,sCAAgC,CAAA"}
1
+ {"version":3,"file":"hydrateArweaveRichText.d.ts","sourceRoot":"","sources":["../src/hydrateArweaveRichText.ts"],"names":[],"mappings":"AAiBA,MAAM,MAAM,qBAAqB,GAAG;IAClC,iFAAiF;IACjF,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE;QACtB,YAAY,EAAE,MAAM,CAAA;QACpB,KAAK,EAAE,OAAO,CAAA;QACd,aAAa,CAAC,EAAE,MAAM,CAAA;KACvB,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;CAC7B,CAAA;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAenE;AAkCD,gDAAgD;AAChD,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C;AAuED;;;;GAIG;AACH,wBAAsB,6BAA6B,CACjD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAChC,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAyCf"}
@@ -3,6 +3,4 @@
3
3
  * (or snake_case) is present.
4
4
  */
5
5
  export declare function enrichImageSeedClone(clone: Record<string, unknown>): void;
6
- /** @deprecated Use {@link enrichImageSeedClone} */
7
- export declare const enrichImageSeedCloneForFeed: typeof enrichImageSeedClone;
8
6
  //# sourceMappingURL=imageRelationEnrichment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"imageRelationEnrichment.d.ts","sourceRoot":"","sources":["../src/imageRelationEnrichment.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAWzE;AAED,mDAAmD;AACnD,eAAO,MAAM,2BAA2B,6BAAuB,CAAA"}
1
+ {"version":3,"file":"imageRelationEnrichment.d.ts","sourceRoot":"","sources":["../src/imageRelationEnrichment.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAWzE"}
package/dist/index.d.ts CHANGED
@@ -11,13 +11,13 @@ export { getQueryCacheManager, resetQueryCacheManager, createQueryCacheManager,
11
11
  export type { CachedCollectionData, CachedItemData, PersistentCache, QueryCacheConfig, QueryCacheStats, } from './cache/index.js';
12
12
  export { getArweaveUrlForTransaction } from './arweaveUrl.js';
13
13
  export { publicListRelationPropertyKey, stripListRelationStorageAliasesForPublicKey, tryCoerceJsonStringArray, } from './listRelationKey.js';
14
- export { parseEasPropertyMetadata, parseEasPropertyMetadataForFeed, } from './parseEasPropertyMetadata.js';
15
- export type { EasPropertyMetadata, EasPropertyMetadataForFeed, ParseEasPropertyMetadataResult, ParseEasPropertyMetadataForFeedResult, } from './parseEasPropertyMetadata.js';
14
+ export { parseEasPropertyMetadata, } from './parseEasPropertyMetadata.js';
15
+ export type { EasPropertyMetadata, ParseEasPropertyMetadataResult, } from './parseEasPropertyMetadata.js';
16
16
  export { parseEasRelationPropertyName } from './parseEasRelationPropertyName.js';
17
17
  export type { ParsedEasRelationPropertyName } from './parseEasRelationPropertyName.js';
18
- export { RICH_BODY_STORAGE_SCHEMAS, FEED_RICH_BODY_STORAGE_SCHEMAS, isRichBodyStorageSchema, isFeedRichBodyStorageSchema, richBodyModelPriority, feedRichBodyModelPriority, getFieldStorageModels, getFeedFieldStorageModels, getListElementStorageModels, getFeedListElementStorageModels, setFieldStorageModel, setFeedFieldStorageModel, setListElementStorageModels, setFeedListElementStorageModels, } from './fieldStorageModel.js';
19
- export type { FieldStorageModels, FeedFieldStorageModels, ListElementStorageModels, FeedListElementStorageModels, } from './fieldStorageModel.js';
20
- export { enrichImageSeedClone, enrichImageSeedCloneForFeed, } from './imageRelationEnrichment.js';
21
- export { hydrateArweaveRichTextInItems, hydrateArweaveRichTextInFeedItems, isArweaveTransactionGatewayUrl, resetArweaveBodyCache, } from './hydrateArweaveRichText.js';
18
+ export { RICH_BODY_STORAGE_SCHEMAS, isRichBodyStorageSchema, richBodyModelPriority, getFieldStorageModels, getListElementStorageModels, setFieldStorageModel, setListElementStorageModels, } from './fieldStorageModel.js';
19
+ export type { FieldStorageModels, ListElementStorageModels, } from './fieldStorageModel.js';
20
+ export { enrichImageSeedClone, } from './imageRelationEnrichment.js';
21
+ export { hydrateArweaveRichTextInItems, isArweaveTransactionGatewayUrl, resetArweaveBodyCache, } from './hydrateArweaveRichText.js';
22
22
  export type { HydrateStorageOptions } from './hydrateArweaveRichText.js';
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAA;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EACL,OAAO,EACP,QAAQ,EACR,kBAAkB,EAClB,aAAa,EACb,qBAAqB,GACtB,MAAM,UAAU,CAAA;AAEjB,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,6BAA6B,E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AA6B,CAAA;AACpC,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA"}
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { c as e, i as t, o as n, s as r, t as i } from "./types-BjCYpItx.js";
2
- import { $ as a, A as o, B as s, C as c, D as l, E as u, F as d, G as f, H as p, I as m, J as h, K as g, L as _, M as v, N as y, O as b, P as x, Q as S, R as C, S as w, T, U as E, V as D, W as O, X as k, Y as A, Z as j, _ as M, a as N, b as P, c as F, d as I, et as L, f as R, h as z, i as B, j as V, k as H, l as U, m as W, n as G, o as K, p as q, q as J, r as Y, s as X, t as Z, u as Q, v as $, w as ee, x as te, y as ne, z as re } from "./src-BnsF-Zyi.js";
3
- export { z as CacheManager, t as DEFAULT_ARWEAVE_HOST, d as FEED_RICH_BODY_STORAGE_SCHEMAS, m as RICH_BODY_STORAGE_SCHEMAS, ne as applyChangelogFilters, $ as assembleSeedChangelog, T as assembleSeeds, i as buildAssembleOptionsKey, P as buildFlatSnapshotFromProperties, te as changelogValuesEqual, F as clearLocalQuerySource, R as createQueryCacheManager, u as createRemoteQueryDataSource, w as decodePropertyAttestation, c as diffPropertyAttestations, ee as diffVersionSnapshots, A as enrichImageSeedClone, k as enrichImageSeedCloneForFeed, _ as feedRichBodyModelPriority, L as getArweaveUrlForTransaction, C as getFeedFieldStorageModels, re as getFeedListElementStorageModels, s as getFieldStorageModels, D as getListElementStorageModels, q as getQueryCacheManager, U as getRegisteredLocalQuerySource, l as getRemoteQueryDataSource, Z as getSeed, G as getSeeds, Q as hasLocalQuerySource, V as hydrateArweaveRichTextInFeedItems, v as hydrateArweaveRichTextInItems, n as initializeQueryPlatform, y as isArweaveTransactionGatewayUrl, p as isFeedRichBodyStorageSchema, r as isQueryPlatformInitialized, E as isRichBodyStorageSchema, M as loadQueryCacheConfig, K as normalizeSourceMode, Y as normalizeUidPrefix, H as parseEasPropertyMetadata, o as parseEasPropertyMetadataForFeed, b as parseEasRelationPropertyName, j as publicListRelationPropertyKey, B as queryBySchema, N as queryBySchemaForMonth, I as registerLocalQuerySource, x as resetArweaveBodyCache, W as resetQueryCacheManager, X as resolveQuerySource, O as richBodyModelPriority, f as setFeedFieldStorageModel, g as setFeedListElementStorageModels, J as setFieldStorageModel, h as setListElementStorageModels, S as stripListRelationStorageAliasesForPublicKey, e as teardownQueryPlatform, a as tryCoerceJsonStringArray };
1
+ import { c as e, i as t, l as n, s as r, t as i } from "./types-CtWSwDmX.js";
2
+ import { A as a, B as o, C as s, D as c, E as l, F as u, H as d, I as f, L as p, M as m, N as h, O as g, P as _, R as v, S as y, T as b, U as x, V as S, W as C, _ as w, a as T, b as E, c as D, d as O, f as k, h as A, i as j, j as M, k as N, l as P, m as F, n as I, o as L, p as R, r as z, s as B, t as V, u as H, v as U, w as W, x as G, y as K, z as q } from "./src-C4engEq9.js";
3
+ export { A as CacheManager, t as DEFAULT_ARWEAVE_HOST, h as RICH_BODY_STORAGE_SCHEMAS, K as applyChangelogFilters, U as assembleSeedChangelog, b as assembleSeeds, i as buildAssembleOptionsKey, E as buildFlatSnapshotFromProperties, G as changelogValuesEqual, D as clearLocalQuerySource, k as createQueryCacheManager, l as createRemoteQueryDataSource, y as decodePropertyAttestation, s as diffPropertyAttestations, W as diffVersionSnapshots, o as enrichImageSeedClone, C as getArweaveUrlForTransaction, _ as getFieldStorageModels, u as getListElementStorageModels, R as getQueryCacheManager, P as getRegisteredLocalQuerySource, c as getRemoteQueryDataSource, V as getSeed, I as getSeeds, H as hasLocalQuerySource, a as hydrateArweaveRichTextInItems, r as initializeQueryPlatform, M as isArweaveTransactionGatewayUrl, e as isQueryPlatformInitialized, f as isRichBodyStorageSchema, w as loadQueryCacheConfig, L as normalizeSourceMode, z as normalizeUidPrefix, N as parseEasPropertyMetadata, g as parseEasRelationPropertyName, S as publicListRelationPropertyKey, j as queryBySchema, T as queryBySchemaForMonth, O as registerLocalQuerySource, m as resetArweaveBodyCache, F as resetQueryCacheManager, B as resolveQuerySource, p as richBodyModelPriority, v as setFieldStorageModel, q as setListElementStorageModels, d as stripListRelationStorageAliasesForPublicKey, n as teardownQueryPlatform, x as tryCoerceJsonStringArray };
@@ -1 +1 @@
1
- {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../src/index.node.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../src/index.node.ts"],"names":[],"mappings":"AAUA,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1,8 +1,8 @@
1
- import { a as e, c as t, i as n, o as ee, s as r, t as i } from "./types-BjCYpItx.js";
2
- import { $ as a, A as o, B as s, C as c, D as l, E as u, F as d, G as f, H as p, I as m, J as h, K as g, L as _, M as v, N as y, O as b, P as x, Q as S, R as C, S as w, T, U as E, V as D, W as O, X as k, Y as te, Z as A, _ as j, a as M, b as N, c as P, d as F, et as I, f as L, g as R, h as z, i as B, j as V, k as H, l as U, m as W, n as G, o as K, p as q, q as J, r as Y, s as X, t as Z, u as Q, v as ne, w as re, x as ie, y as ae, z as oe } from "./src-BnsF-Zyi.js";
3
- import { n as $, t as se } from "./registerNodeArweave-VGXwzQt4.js";
4
- R((e) => new $(e)), e(se);
1
+ import { a as e, c as t, i as n, l as r, o as i, s as a, t as o } from "./types-CtWSwDmX.js";
2
+ import { A as s, B as c, C as l, D as u, E as d, F as f, H as p, I as m, L as h, M as g, N as _, O as v, P as y, R as b, S as x, T as S, U as C, V as w, W as T, _ as E, a as D, b as O, c as k, d as A, f as j, g as M, h as N, i as P, j as F, k as I, l as L, m as R, n as z, o as B, p as V, r as H, s as U, t as W, u as G, v as K, w as q, x as J, y as Y, z as X } from "./src-C4engEq9.js";
3
+ import { n as Z, r as Q, t as $ } from "./registerNodeEas-BRQjXdFD.js";
4
+ M((e) => new Q(e)), e(Z), i($);
5
5
  //#endregion
6
- export { z as CacheManager, n as DEFAULT_ARWEAVE_HOST, d as FEED_RICH_BODY_STORAGE_SCHEMAS, $ as FileCache, m as RICH_BODY_STORAGE_SCHEMAS, ae as applyChangelogFilters, ne as assembleSeedChangelog, T as assembleSeeds, i as buildAssembleOptionsKey, N as buildFlatSnapshotFromProperties, ie as changelogValuesEqual, P as clearLocalQuerySource, L as createQueryCacheManager, u as createRemoteQueryDataSource, w as decodePropertyAttestation, c as diffPropertyAttestations, re as diffVersionSnapshots, te as enrichImageSeedClone, k as enrichImageSeedCloneForFeed, _ as feedRichBodyModelPriority, I as getArweaveUrlForTransaction, C as getFeedFieldStorageModels, oe as getFeedListElementStorageModels, s as getFieldStorageModels, D as getListElementStorageModels, q as getQueryCacheManager, U as getRegisteredLocalQuerySource, l as getRemoteQueryDataSource, Z as getSeed, G as getSeeds, Q as hasLocalQuerySource, V as hydrateArweaveRichTextInFeedItems, v as hydrateArweaveRichTextInItems, ee as initializeQueryPlatform, y as isArweaveTransactionGatewayUrl, p as isFeedRichBodyStorageSchema, r as isQueryPlatformInitialized, E as isRichBodyStorageSchema, j as loadQueryCacheConfig, K as normalizeSourceMode, Y as normalizeUidPrefix, H as parseEasPropertyMetadata, o as parseEasPropertyMetadataForFeed, b as parseEasRelationPropertyName, A as publicListRelationPropertyKey, B as queryBySchema, M as queryBySchemaForMonth, F as registerLocalQuerySource, x as resetArweaveBodyCache, W as resetQueryCacheManager, X as resolveQuerySource, O as richBodyModelPriority, f as setFeedFieldStorageModel, g as setFeedListElementStorageModels, J as setFieldStorageModel, h as setListElementStorageModels, S as stripListRelationStorageAliasesForPublicKey, t as teardownQueryPlatform, a as tryCoerceJsonStringArray };
6
+ export { N as CacheManager, n as DEFAULT_ARWEAVE_HOST, Q as FileCache, _ as RICH_BODY_STORAGE_SCHEMAS, Y as applyChangelogFilters, K as assembleSeedChangelog, S as assembleSeeds, o as buildAssembleOptionsKey, O as buildFlatSnapshotFromProperties, J as changelogValuesEqual, k as clearLocalQuerySource, j as createQueryCacheManager, d as createRemoteQueryDataSource, x as decodePropertyAttestation, l as diffPropertyAttestations, q as diffVersionSnapshots, c as enrichImageSeedClone, T as getArweaveUrlForTransaction, y as getFieldStorageModels, f as getListElementStorageModels, V as getQueryCacheManager, L as getRegisteredLocalQuerySource, u as getRemoteQueryDataSource, W as getSeed, z as getSeeds, G as hasLocalQuerySource, s as hydrateArweaveRichTextInItems, a as initializeQueryPlatform, F as isArweaveTransactionGatewayUrl, t as isQueryPlatformInitialized, m as isRichBodyStorageSchema, E as loadQueryCacheConfig, B as normalizeSourceMode, H as normalizeUidPrefix, I as parseEasPropertyMetadata, v as parseEasRelationPropertyName, w as publicListRelationPropertyKey, P as queryBySchema, D as queryBySchemaForMonth, A as registerLocalQuerySource, g as resetArweaveBodyCache, R as resetQueryCacheManager, U as resolveQuerySource, h as richBodyModelPriority, b as setFieldStorageModel, X as setListElementStorageModels, p as stripListRelationStorageAliasesForPublicKey, r as teardownQueryPlatform, C as tryCoerceJsonStringArray };
7
7
 
8
8
  //# sourceMappingURL=index.node.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.node.js","names":["configureQueryArweavePlatform","teardownQueryPlatform","DEFAULT_ARWEAVE_HOST","initializeQueryPlatform","isQueryPlatformInitialized","buildAssembleOptionsKey","tryCoerceJsonStringArray","parseEasPropertyMetadataForFeed","getFieldStorageModels","diffPropertyAttestations","getRemoteQueryDataSource","createRemoteQueryDataSource","FEED_RICH_BODY_STORAGE_SCHEMAS","setFeedFieldStorageModel","isFeedRichBodyStorageSchema","RICH_BODY_STORAGE_SCHEMAS","setListElementStorageModels","setFeedListElementStorageModels","feedRichBodyModelPriority","hydrateArweaveRichTextInItems","isArweaveTransactionGatewayUrl","parseEasRelationPropertyName","resetArweaveBodyCache","stripListRelationStorageAliasesForPublicKey","getFeedFieldStorageModels","decodePropertyAttestation","isRichBodyStorageSchema","getListElementStorageModels","richBodyModelPriority","enrichImageSeedCloneForFeed","enrichImageSeedClone","publicListRelationPropertyKey","loadQueryCacheConfig","queryBySchemaForMonth","buildFlatSnapshotFromProperties","clearLocalQuerySource","registerLocalQuerySource","getArweaveUrlForTransaction","createQueryCacheManager","configurePersistentCacheFactory","CacheManager","queryBySchema","hydrateArweaveRichTextInFeedItems","parseEasPropertyMetadata","getRegisteredLocalQuerySource","resetQueryCacheManager","getSeeds","normalizeSourceMode","getQueryCacheManager","setFieldStorageModel","normalizeUidPrefix","resolveQuerySource","getSeed","hasLocalQuerySource","assembleSeedChangelog","diffVersionSnapshots","changelogValuesEqual","applyChangelogFilters","getFeedListElementStorageModels","FileCache","registerNodeArweave","config","assembleSeeds"],"sources":["../src/index.node.ts"],"sourcesContent":["import { FileCache } from './cache/FileCache.js'\nimport { configurePersistentCacheFactory } from './cache/CacheManager.js'\nimport { configureQueryArweavePlatform } from './bootstrap.js'\nimport { registerNodeArweave } from './node/registerNodeArweave.js'\n\nconfigurePersistentCacheFactory((config) => new FileCache(config))\nconfigureQueryArweavePlatform(registerNodeArweave)\n\nexport * from './index.js'\nexport { FileCache } from './cache/FileCache.js'\n"],"mappings":";;;AAKAuC,GAAiC,MAAW,IAAIoB,EAAUE,CAAM,CAAC,GACjE7D,EAA8B4D,EAAmB"}
1
+ {"version":3,"file":"index.node.js","names":["configureQueryArweavePlatform","isQueryPlatformInitialized","DEFAULT_ARWEAVE_HOST","teardownQueryPlatform","configureQueryEasPlatform","initializeQueryPlatform","buildAssembleOptionsKey","hydrateArweaveRichTextInItems","enrichImageSeedClone","diffPropertyAttestations","getRemoteQueryDataSource","createRemoteQueryDataSource","getListElementStorageModels","stripListRelationStorageAliasesForPublicKey","isRichBodyStorageSchema","richBodyModelPriority","resetArweaveBodyCache","RICH_BODY_STORAGE_SCHEMAS","parseEasRelationPropertyName","getFieldStorageModels","setFieldStorageModel","decodePropertyAttestation","assembleSeeds","tryCoerceJsonStringArray","publicListRelationPropertyKey","getArweaveUrlForTransaction","loadQueryCacheConfig","queryBySchemaForMonth","buildFlatSnapshotFromProperties","clearLocalQuerySource","registerLocalQuerySource","createQueryCacheManager","configurePersistentCacheFactory","CacheManager","queryBySchema","isArweaveTransactionGatewayUrl","parseEasPropertyMetadata","getRegisteredLocalQuerySource","resetQueryCacheManager","getSeeds","normalizeSourceMode","getQueryCacheManager","normalizeUidPrefix","resolveQuerySource","getSeed","hasLocalQuerySource","assembleSeedChangelog","diffVersionSnapshots","changelogValuesEqual","applyChangelogFilters","setListElementStorageModels","registerNodeArweave","FileCache","registerNodeEas","config"],"sources":["../src/index.node.ts"],"sourcesContent":["import { FileCache } from './cache/FileCache.js'\nimport { configurePersistentCacheFactory } from './cache/CacheManager.js'\nimport { configureQueryArweavePlatform, configureQueryEasPlatform } from './bootstrap.js'\nimport { registerNodeArweave } from './node/registerNodeArweave.js'\nimport { registerNodeEas } from './node/registerNodeEas.js'\n\nconfigurePersistentCacheFactory((config) => new FileCache(config))\nconfigureQueryArweavePlatform(registerNodeArweave)\nconfigureQueryEasPlatform(registerNodeEas)\n\nexport * from './index.js'\nexport { FileCache } from './cache/FileCache.js'\n"],"mappings":";;;AAMAgC,GAAiC,MAAW,IAAIoB,EAAUE,CAAM,CAAC,GACjEtD,EAA8BmD,CAAmB,GACjD/C,EAA0BiD,CAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5G,YAAY,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5G,YAAY,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { QueryEasPlatformRegistrar } from '../bootstrap.js';
2
+ /**
3
+ * Registers the Node EAS client when nothing else has. Only the EAS client: a query client the
4
+ * host registered stays, and ensureEasPlatform fills one in otherwise.
5
+ */
6
+ export declare const registerNodeEas: QueryEasPlatformRegistrar;
7
+ //# sourceMappingURL=registerNodeEas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerNodeEas.d.ts","sourceRoot":"","sources":["../../src/node/registerNodeEas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAEhE;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,yBAG7B,CAAA"}
package/dist/node.js CHANGED
@@ -1,8 +1,7 @@
1
- import { a as e, c as t, o as n, s as r } from "./types-BjCYpItx.js";
2
- import { n as i, t as a } from "./registerNodeArweave-VGXwzQt4.js";
3
- //#region src/node/index.ts
4
- e(a);
1
+ import { a as e, c as t, l as n, o as r, s as i } from "./types-CtWSwDmX.js";
2
+ import { n as a, r as o, t as s } from "./registerNodeEas-BRQjXdFD.js";
3
+ e(a), r(s);
5
4
  //#endregion
6
- export { i as FileCache, n as initializeQueryPlatform, r as isQueryPlatformInitialized, t as teardownQueryPlatform };
5
+ export { o as FileCache, i as initializeQueryPlatform, t as isQueryPlatformInitialized, n as teardownQueryPlatform };
7
6
 
8
7
  //# sourceMappingURL=node.js.map
package/dist/node.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","names":["configureQueryArweavePlatform","teardownQueryPlatform","initializeQueryPlatform","isQueryPlatformInitialized","FileCache","registerNodeArweave"],"sources":["../src/node/index.ts"],"sourcesContent":["import { configureQueryArweavePlatform } from '../bootstrap.js'\nimport { registerNodeArweave } from './registerNodeArweave.js'\n\nconfigureQueryArweavePlatform(registerNodeArweave)\n\nexport { initializeQueryPlatform, teardownQueryPlatform, isQueryPlatformInitialized } from '../bootstrap.js'\nexport type { InitializeQueryPlatformOptions } from '../bootstrap.js'\nexport { FileCache } from '../cache/FileCache.js'\n"],"mappings":";;;AAGAA,EAA8BK,CAAmB"}
1
+ {"version":3,"file":"node.js","names":["configureQueryArweavePlatform","isQueryPlatformInitialized","teardownQueryPlatform","configureQueryEasPlatform","initializeQueryPlatform","registerNodeArweave","FileCache","registerNodeEas"],"sources":["../src/node/index.ts"],"sourcesContent":["import { configureQueryArweavePlatform, configureQueryEasPlatform } from '../bootstrap.js'\nimport { registerNodeArweave } from './registerNodeArweave.js'\nimport { registerNodeEas } from './registerNodeEas.js'\n\nconfigureQueryArweavePlatform(registerNodeArweave)\nconfigureQueryEasPlatform(registerNodeEas)\n\nexport { initializeQueryPlatform, teardownQueryPlatform, isQueryPlatformInitialized } from '../bootstrap.js'\nexport type { InitializeQueryPlatformOptions } from '../bootstrap.js'\nexport { FileCache } from '../cache/FileCache.js'\n"],"mappings":";;AAIAA,EAA8BK,CAAmB,GACjDF,EAA0BI,CAAe"}
@@ -22,10 +22,4 @@ export type ParseEasPropertyMetadataResult = {
22
22
  * Matches SDK guards in syncDbWithEas (empty trim, parse, array + [0].value).
23
23
  */
24
24
  export declare function parseEasPropertyMetadata(decodedDataJson: string | undefined | null): ParseEasPropertyMetadataResult;
25
- /** @deprecated Use {@link parseEasPropertyMetadata} */
26
- export declare const parseEasPropertyMetadataForFeed: typeof parseEasPropertyMetadata;
27
- /** @deprecated Use {@link EasPropertyMetadata} */
28
- export type EasPropertyMetadataForFeed = EasPropertyMetadata;
29
- /** @deprecated Use {@link ParseEasPropertyMetadataResult} */
30
- export type ParseEasPropertyMetadataForFeedResult = ParseEasPropertyMetadataResult;
31
25
  //# sourceMappingURL=parseEasPropertyMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseEasPropertyMetadata.d.ts","sourceRoot":"","sources":["../src/parseEasPropertyMetadata.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,CAAA;CAAE,GAC9B;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAC9B;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAA;AAElD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GACzC,8BAA8B,CAmBhC"}
@@ -0,0 +1,107 @@
1
+ import { n as e } from "./types-CtWSwDmX.js";
2
+ import { BaseEasClient as t } from "@seedprotocol/eas";
3
+ import { promises as n } from "fs";
4
+ import { join as r } from "path";
5
+ //#region src/cache/FileCache.ts
6
+ var i = class {
7
+ cacheDir;
8
+ config;
9
+ constructor(e) {
10
+ this.cacheDir = e.cacheDir, this.config = e, this.ensureCacheDir().catch((e) => {
11
+ console.error("Failed to create query cache directory:", e);
12
+ });
13
+ }
14
+ async ensureCacheDir() {
15
+ try {
16
+ await n.mkdir(this.cacheDir, { recursive: !0 });
17
+ } catch (e) {
18
+ if (e.code !== "EEXIST") throw e;
19
+ }
20
+ }
21
+ async ensureItemsDir() {
22
+ try {
23
+ await n.mkdir(r(this.cacheDir, "items"), { recursive: !0 });
24
+ } catch (e) {
25
+ if (e.code !== "EEXIST") throw e;
26
+ }
27
+ }
28
+ collectionsDir() {
29
+ return r(this.cacheDir, "collections");
30
+ }
31
+ collectionPath(t, n) {
32
+ return r(this.collectionsDir(), `${e(t)}.${n}.json`);
33
+ }
34
+ itemPath(t, n) {
35
+ let i = e(t);
36
+ return r(this.cacheDir, "items", `${i}-${n}.json`);
37
+ }
38
+ async getCollection(e, t) {
39
+ let r = this.collectionPath(e, t);
40
+ try {
41
+ let e = await n.readFile(r, "utf-8"), t = JSON.parse(e);
42
+ return Math.floor(Date.now() / 1e3) - t.lastUpdated > this.config.ttl ? (await n.unlink(r).catch(() => {}), null) : t;
43
+ } catch (t) {
44
+ return t.code === "ENOENT" || console.error(`Error reading query collection cache for ${e}:`, t), null;
45
+ }
46
+ }
47
+ async setCollection(e, t, r) {
48
+ try {
49
+ await n.mkdir(this.collectionsDir(), { recursive: !0 }), await n.writeFile(this.collectionPath(e, t), JSON.stringify(r, null, 2), "utf-8");
50
+ } catch (t) {
51
+ console.error(`Error writing query collection cache for ${e}:`, t);
52
+ }
53
+ }
54
+ async getItem(e, t) {
55
+ try {
56
+ let r = await n.readFile(this.itemPath(e, t), "utf-8"), i = JSON.parse(r);
57
+ return Math.floor(Date.now() / 1e3) - i.lastUpdated > this.config.ttl ? (await this.clearItem(e, t), null) : i;
58
+ } catch (t) {
59
+ return t.code === "ENOENT" || console.error(`Error reading query item cache for ${e}:`, t), null;
60
+ }
61
+ }
62
+ async setItem(e) {
63
+ try {
64
+ await this.ensureItemsDir(), await n.writeFile(this.itemPath(e.record.seedUid, e.optionsKey), JSON.stringify(e, null, 2), "utf-8");
65
+ } catch (t) {
66
+ console.error(`Error writing query item cache for ${e.record.seedUid}:`, t);
67
+ }
68
+ }
69
+ async clearCollection(t) {
70
+ let i = `${e(t)}.`;
71
+ try {
72
+ let e = await n.readdir(this.collectionsDir());
73
+ for (let t of e) t.startsWith(i) && t.endsWith(".json") && await n.unlink(r(this.collectionsDir(), t));
74
+ } catch (e) {
75
+ e.code !== "ENOENT" && console.error(`Error clearing query collection cache for ${t}:`, e);
76
+ }
77
+ }
78
+ async clearItem(e, t) {
79
+ try {
80
+ await n.unlink(this.itemPath(e, t));
81
+ } catch (t) {
82
+ t.code !== "ENOENT" && console.error(`Error clearing query item cache for ${e}:`, t);
83
+ }
84
+ }
85
+ async clearAll() {
86
+ try {
87
+ let e = await n.readdir(this.cacheDir);
88
+ for (let t of e) t.endsWith(".json") && await n.unlink(r(this.cacheDir, t));
89
+ for (let e of [r(this.cacheDir, "items"), this.collectionsDir()]) try {
90
+ let t = await n.readdir(e);
91
+ for (let i of t) i.endsWith(".json") && await n.unlink(r(e, i));
92
+ } catch {}
93
+ } catch (e) {
94
+ console.error("Error clearing all query caches:", e);
95
+ }
96
+ }
97
+ }, a = async ({ arweaveDomain: e }) => {
98
+ let { registerNodeArweavePlatform: t } = await import("@seedprotocol/arweave/node");
99
+ t({ arweaveDomain: e });
100
+ }, o = async () => {
101
+ let { NodeEasClient: e } = await import("@seedprotocol/eas/node");
102
+ t.configure(new e());
103
+ };
104
+ //#endregion
105
+ export { a as n, i as r, o as t };
106
+
107
+ //# sourceMappingURL=registerNodeEas-BRQjXdFD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerNodeEas-BRQjXdFD.js","names":["fs","sanitizeSeedUidForPath","FileCache","config","err","promises","error","join","schemaName","optionsKey","safe","seedUid","path","data","cached","prefix","files","file","dir","dirFiles","registerNodeArweave","registerNodeEas","NodeEasClient"],"sources":["../src/cache/FileCache.ts","../src/node/registerNodeArweave.ts","../src/node/registerNodeEas.ts"],"sourcesContent":["import { promises as fs } from 'fs'\nimport { join } from 'path'\nimport type {\n CachedCollectionData,\n CachedItemData,\n QueryCacheConfig,\n} from './types.js'\nimport { sanitizeSeedUidForPath } from './types.js'\n\n/**\n * File-based persistent cache for collections and items (Node / best-effort).\n */\nexport class FileCache {\n private cacheDir: string\n private config: QueryCacheConfig\n\n constructor(config: QueryCacheConfig) {\n this.cacheDir = config.cacheDir\n this.config = config\n this.ensureCacheDir().catch((err) => {\n console.error('Failed to create query cache directory:', err)\n })\n }\n\n private async ensureCacheDir(): Promise<void> {\n try {\n await fs.mkdir(this.cacheDir, { recursive: true })\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'EEXIST') {\n throw error\n }\n }\n }\n\n private async ensureItemsDir(): Promise<void> {\n try {\n await fs.mkdir(join(this.cacheDir, 'items'), { recursive: true })\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'EEXIST') {\n throw error\n }\n }\n }\n\n private collectionsDir(): string {\n return join(this.cacheDir, 'collections')\n }\n\n /** Under `collections/`, so feed's own `{schema}-{format}.json` cleanup never matches it. */\n private collectionPath(schemaName: string, optionsKey: string): string {\n return join(this.collectionsDir(), `${sanitizeSeedUidForPath(schemaName)}.${optionsKey}.json`)\n }\n\n private itemPath(seedUid: string, optionsKey: string): string {\n const safe = sanitizeSeedUidForPath(seedUid)\n return join(this.cacheDir, 'items', `${safe}-${optionsKey}.json`)\n }\n\n async getCollection(\n schemaName: string,\n optionsKey: string,\n ): Promise<CachedCollectionData | null> {\n const path = this.collectionPath(schemaName, optionsKey)\n try {\n const data = await fs.readFile(path, 'utf-8')\n const cached: CachedCollectionData = JSON.parse(data)\n const now = Math.floor(Date.now() / 1000)\n if (now - cached.lastUpdated > this.config.ttl) {\n await fs.unlink(path).catch(() => {})\n return null\n }\n return cached\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') {\n return null\n }\n console.error(\n `Error reading query collection cache for ${schemaName}:`,\n error,\n )\n return null\n }\n }\n\n async setCollection(\n schemaName: string,\n optionsKey: string,\n data: CachedCollectionData,\n ): Promise<void> {\n try {\n await fs.mkdir(this.collectionsDir(), { recursive: true })\n await fs.writeFile(\n this.collectionPath(schemaName, optionsKey),\n JSON.stringify(data, null, 2),\n 'utf-8',\n )\n } catch (error) {\n console.error(\n `Error writing query collection cache for ${schemaName}:`,\n error,\n )\n }\n }\n\n async getItem(\n seedUid: string,\n optionsKey: string,\n ): Promise<CachedItemData | null> {\n try {\n const data = await fs.readFile(\n this.itemPath(seedUid, optionsKey),\n 'utf-8',\n )\n const cached: CachedItemData = JSON.parse(data)\n const now = Math.floor(Date.now() / 1000)\n if (now - cached.lastUpdated > this.config.ttl) {\n await this.clearItem(seedUid, optionsKey)\n return null\n }\n return cached\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') {\n return null\n }\n console.error(`Error reading query item cache for ${seedUid}:`, error)\n return null\n }\n }\n\n async setItem(data: CachedItemData): Promise<void> {\n try {\n await this.ensureItemsDir()\n await fs.writeFile(\n this.itemPath(data.record.seedUid, data.optionsKey),\n JSON.stringify(data, null, 2),\n 'utf-8',\n )\n } catch (error) {\n console.error(\n `Error writing query item cache for ${data.record.seedUid}:`,\n error,\n )\n }\n }\n\n async clearCollection(schemaName: string): Promise<void> {\n const prefix = `${sanitizeSeedUidForPath(schemaName)}.`\n try {\n const files = await fs.readdir(this.collectionsDir())\n for (const file of files) {\n if (file.startsWith(prefix) && file.endsWith('.json')) {\n await fs.unlink(join(this.collectionsDir(), file))\n }\n }\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') {\n console.error(\n `Error clearing query collection cache for ${schemaName}:`,\n error,\n )\n }\n }\n }\n\n async clearItem(seedUid: string, optionsKey: string): Promise<void> {\n try {\n await fs.unlink(this.itemPath(seedUid, optionsKey))\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== 'ENOENT') {\n console.error(\n `Error clearing query item cache for ${seedUid}:`,\n error,\n )\n }\n }\n }\n\n async clearAll(): Promise<void> {\n try {\n const files = await fs.readdir(this.cacheDir)\n for (const file of files) {\n if (file.endsWith('.json')) {\n await fs.unlink(join(this.cacheDir, file))\n }\n }\n for (const dir of [join(this.cacheDir, 'items'), this.collectionsDir()]) {\n try {\n const dirFiles = await fs.readdir(dir)\n for (const file of dirFiles) {\n if (file.endsWith('.json')) {\n await fs.unlink(join(dir, file))\n }\n }\n } catch {\n // dir may not exist\n }\n }\n } catch (error) {\n console.error('Error clearing all query caches:', error)\n }\n }\n}\n","import type { QueryArweavePlatformRegistrar } from '../bootstrap.js'\n\n/** Registers the Node Arweave client (and read gateway) when nothing else has. */\nexport const registerNodeArweave: QueryArweavePlatformRegistrar = async ({ arweaveDomain }) => {\n const { registerNodeArweavePlatform } = await import('@seedprotocol/arweave/node')\n registerNodeArweavePlatform({ arweaveDomain })\n}\n","import { BaseEasClient } from '@seedprotocol/eas'\nimport type { QueryEasPlatformRegistrar } from '../bootstrap.js'\n\n/**\n * Registers the Node EAS client when nothing else has. Only the EAS client: a query client the\n * host registered stays, and ensureEasPlatform fills one in otherwise.\n */\nexport const registerNodeEas: QueryEasPlatformRegistrar = async () => {\n const { NodeEasClient } = await import('@seedprotocol/eas/node')\n BaseEasClient.configure(new NodeEasClient())\n}\n"],"mappings":";;;;;AAYA,IAAaE,IAAb,MAAuB;CACrB;CACA;CAEA,YAAY,GAA0B;EAGpC,AAFA,KAAK,WAAWC,EAAO,UACvB,KAAK,SAASA,GACd,KAAK,eAAe,CAAC,CAAC,OAAO,MAAQ;GACnC,QAAQ,MAAM,2CAA2CC,CAAG;EAC9D,CAAC;CACH;CAEA,MAAc,iBAAgC;EAC5C,IAAI;GACF,MAAMJ,EAAG,MAAM,KAAK,UAAU,EAAE,WAAW,GAAK,CAAC;EACnD,SAASM,GAAO;GACd,IAAKA,EAAgC,SAAS,UAC5C,MAAMA;EAEV;CACF;CAEA,MAAc,iBAAgC;EAC5C,IAAI;GACF,MAAMN,EAAG,MAAMO,EAAK,KAAK,UAAU,OAAO,GAAG,EAAE,WAAW,GAAK,CAAC;EAClE,SAASD,GAAO;GACd,IAAKA,EAAgC,SAAS,UAC5C,MAAMA;EAEV;CACF;CAEA,iBAAiC;EAC/B,OAAOC,EAAK,KAAK,UAAU,aAAa;CAC1C;CAGA,eAAuB,GAAoB,GAA4B;EACrE,OAAOA,EAAK,KAAK,eAAe,GAAG,GAAGN,EAAuBO,CAAU,EAAE,GAAGC,EAAW,MAAM;CAC/F;CAEA,SAAiB,GAAiB,GAA4B;EAC5D,IAAMC,IAAOT,EAAuBU,CAAO;EAC3C,OAAOJ,EAAK,KAAK,UAAU,SAAS,GAAGG,EAAK,GAAGD,EAAW,MAAM;CAClE;CAEA,MAAM,cACJ,GACA,GACsC;EACtC,IAAMG,IAAO,KAAK,eAAeJ,GAAYC,CAAU;EACvD,IAAI;GACF,IAAMI,IAAO,MAAMb,EAAG,SAASY,GAAM,OAAO,GACtCE,IAA+B,KAAK,MAAMD,CAAI;GAMpD,OALY,KAAK,MAAM,KAAK,IAAI,IAAI,GACh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AAkB,MAAM,OAAO;CACvC,EAAc,UAAU,IAAIC,EAAc,CAAC;AAC7C"}
@@ -1,4 +1,9 @@
1
1
  import type { QueryDataSource } from './types.js';
2
+ /** The UTC calendar month as unix seconds: `startTs` inclusive, `endTs` (next month) exclusive. */
3
+ export declare function monthBoundsUnix(year: number, month: number): {
4
+ startTs: number;
5
+ endTs: number;
6
+ };
2
7
  /**
3
8
  * Default remote data source: EAS GraphQL (+ callers hydrate via Arweave).
4
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../src/source/remote.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAUjD;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,eAAe,CAwG7D;AAID,wBAAgB,wBAAwB,IAAI,eAAe,CAK1D;AAED,kBAAkB;AAClB,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD"}
1
+ {"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../src/source/remote.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD,mGAAmG;AACnG,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAK/F;AAED;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,eAAe,CAwG7D;AAID,wBAAgB,wBAAwB,IAAI,eAAe,CAK1D;AAED,kBAAkB;AAClB,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD"}