@seedprotocol/sdk 0.7.3-next.613.g79a8dfd → 0.7.4-next.711.gce2b766

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 (239) hide show
  1. package/dist/{db-CQt-gcAl.js → BasePathResolver-Cm4apKRb.js} +2041 -127
  2. package/dist/BasePathResolver-Cm4apKRb.js.map +1 -0
  3. package/dist/{ClientManager-DDA9956Y.js → ClientManager-i3nJASkg.js} +664 -277
  4. package/dist/ClientManager-i3nJASkg.js.map +1 -0
  5. package/dist/{Item-D4FigtYS.js → Item-DBFchXpC.js} +495 -219
  6. package/dist/Item-DBFchXpC.js.map +1 -0
  7. package/dist/{ModelProperty-BDt6AU2h.js → ModelProperty-BS49g01Y.js} +167 -47
  8. package/dist/ModelProperty-BS49g01Y.js.map +1 -0
  9. package/dist/{Schema-B8xqLWkL.js → Schema-CpMNEnUO.js} +53 -42
  10. package/dist/Schema-CpMNEnUO.js.map +1 -0
  11. package/dist/{SchemaValidationService-BPxkfDLU.js → SchemaValidationService-DieV4KL-.js} +13 -14
  12. package/dist/{SchemaValidationService-BPxkfDLU.js.map → SchemaValidationService-DieV4KL-.js.map} +1 -1
  13. package/dist/{backfillMetadataPropertyIds-DuTPcv8t.js → backfillMetadataPropertyIds-DSoOoTnX.js} +14 -7
  14. package/dist/{backfillMetadataPropertyIds-DuTPcv8t.js.map → backfillMetadataPropertyIds-DSoOoTnX.js.map} +1 -1
  15. package/dist/{configurePlatform-YcOiDQBZ.js → configurePlatform-D0lQGAMQ.js} +8 -7
  16. package/dist/{configurePlatform-YcOiDQBZ.js.map → configurePlatform-D0lQGAMQ.js.map} +1 -1
  17. package/dist/detachRowsBeforeDelete-S0q-DJPT.js +50 -0
  18. package/dist/detachRowsBeforeDelete-S0q-DJPT.js.map +1 -0
  19. package/dist/{eas-CpOD74Ke.js → eas-6pjU-OuX.js} +9 -8
  20. package/dist/eas-6pjU-OuX.js.map +1 -0
  21. package/dist/{getItem-B_OoFkd7.js → getItem-CxBNZ-WL.js} +13 -11
  22. package/dist/{getItem-B_OoFkd7.js.map → getItem-CxBNZ-WL.js.map} +1 -1
  23. package/dist/{getPublishPayload-Xl3sRkR-.js → getPublishPayload-CTCvRUoU.js} +50 -18
  24. package/dist/getPublishPayload-CTCvRUoU.js.map +1 -0
  25. package/dist/getPublishUploads-SFHCbf_y.js +648 -0
  26. package/dist/getPublishUploads-SFHCbf_y.js.map +1 -0
  27. package/dist/{index-Xl1_4Lmb.js → index-8O3Uow-Y.js} +125 -57
  28. package/dist/index-8O3Uow-Y.js.map +1 -0
  29. package/dist/{index-CSOQFAOn.js → index-AVFTVp1m.js} +2 -2
  30. package/dist/index-AVFTVp1m.js.map +1 -0
  31. package/dist/index-Cvt5UBz4.js +30 -0
  32. package/dist/index-Cvt5UBz4.js.map +1 -0
  33. package/dist/{index.browser-CjTe0vt1.js → index.browser-DBhxRoe8.js} +554 -165
  34. package/dist/index.browser-DBhxRoe8.js.map +1 -0
  35. package/dist/{index.node-Cfa7npS6.js → index.node-CJhlcNHM.js} +25 -13
  36. package/dist/index.node-CJhlcNHM.js.map +1 -0
  37. package/dist/main.js +30 -47
  38. package/dist/main.js.map +1 -1
  39. package/dist/mimeTypes-DHAHC4eZ.js +204 -0
  40. package/dist/mimeTypes-DHAHC4eZ.js.map +1 -0
  41. package/dist/node.js +19 -21
  42. package/dist/node.js.map +1 -1
  43. package/dist/platform.browser.js +13 -11
  44. package/dist/platform.browser.js.map +1 -1
  45. package/dist/platform.node.js +18 -5
  46. package/dist/platform.node.js.map +1 -1
  47. package/dist/{property-BrXkY1Rg.js → property-DwPD283A.js} +14 -12
  48. package/dist/property-DwPD283A.js.map +1 -0
  49. package/dist/{publishDraftGraph-X0Wr9txE.js → publishDraftGraph-BOn3_Occ.js} +6 -9
  50. package/dist/{publishDraftGraph-X0Wr9txE.js.map → publishDraftGraph-BOn3_Occ.js.map} +1 -1
  51. package/dist/{resetAmbiguousLegacyItemData-Ci6PM_vC.js → resetAmbiguousLegacyItemData-BkYmBeJc.js} +14 -3
  52. package/dist/{resetAmbiguousLegacyItemData-Ci6PM_vC.js.map → resetAmbiguousLegacyItemData-BkYmBeJc.js.map} +1 -1
  53. package/dist/{resolveModelForSyncedSeed-DFVdnYq8.js → resolveModelForSyncedSeed-BL24nLa7.js} +2 -2
  54. package/dist/{resolveModelForSyncedSeed-DFVdnYq8.js.map → resolveModelForSyncedSeed-BL24nLa7.js.map} +1 -1
  55. package/dist/src/Item/Item.d.ts +21 -3
  56. package/dist/src/Item/Item.d.ts.map +1 -1
  57. package/dist/src/Item/service/actors/runPublish.d.ts +11 -2
  58. package/dist/src/Item/service/actors/runPublish.d.ts.map +1 -1
  59. package/dist/src/Item/service/itemMachineSingle.d.ts +12 -2
  60. package/dist/src/Item/service/itemMachineSingle.d.ts.map +1 -1
  61. package/dist/src/ItemProperty/ItemProperty.d.ts +5 -3
  62. package/dist/src/ItemProperty/ItemProperty.d.ts.map +1 -1
  63. package/dist/src/ItemProperty/service/actors/saveValueToDb/analyzeInput.d.ts.map +1 -1
  64. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveItemStorage.d.ts.map +1 -1
  65. package/dist/src/ItemProperty/service/propertyMachine.d.ts.map +1 -1
  66. package/dist/src/Model/Model.d.ts +10 -4
  67. package/dist/src/Model/Model.d.ts.map +1 -1
  68. package/dist/src/Model/index.d.ts +2 -2
  69. package/dist/src/ModelProperty/ModelProperty.d.ts +10 -2
  70. package/dist/src/ModelProperty/ModelProperty.d.ts.map +1 -1
  71. package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts +3 -0
  72. package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts.map +1 -1
  73. package/dist/src/Schema/Schema.d.ts +2 -2
  74. package/dist/src/Schema/Schema.d.ts.map +1 -1
  75. package/dist/src/Schema/index.d.ts +0 -1
  76. package/dist/src/Schema/index.d.ts.map +1 -1
  77. package/dist/src/browser/helpers/FileManager.d.ts +4 -1
  78. package/dist/src/browser/helpers/FileManager.d.ts.map +1 -1
  79. package/dist/src/browser/helpers/tolerantWebAccess.d.ts +79 -4
  80. package/dist/src/browser/helpers/tolerantWebAccess.d.ts.map +1 -1
  81. package/dist/src/browser/workers/FileDownloader.d.ts +19 -4
  82. package/dist/src/browser/workers/FileDownloader.d.ts.map +1 -1
  83. package/dist/src/browser/workers/filesDownload.d.ts.map +1 -1
  84. package/dist/src/client/ClientManager.d.ts +30 -11
  85. package/dist/src/client/ClientManager.d.ts.map +1 -1
  86. package/dist/src/client/actors/platformClassesInit.d.ts +6 -0
  87. package/dist/src/client/actors/platformClassesInit.d.ts.map +1 -1
  88. package/dist/src/client/actors/processSchemaFiles.d.ts.map +1 -1
  89. package/dist/src/client/actors/saveConfig.d.ts +13 -6
  90. package/dist/src/client/actors/saveConfig.d.ts.map +1 -1
  91. package/dist/src/client/clientManagerMachine.d.ts.map +1 -1
  92. package/dist/src/db/migrateLegacyItemStorageRows.d.ts +57 -0
  93. package/dist/src/db/migrateLegacyItemStorageRows.d.ts.map +1 -0
  94. package/dist/src/db/read/getCompositeChildPaths.d.ts +13 -0
  95. package/dist/src/db/read/getCompositeChildPaths.d.ts.map +1 -0
  96. package/dist/src/db/read/getItems.d.ts.map +1 -1
  97. package/dist/src/db/read/getPublishPayload.d.ts +1 -1
  98. package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
  99. package/dist/src/db/read/getPublishUploads.d.ts +32 -3
  100. package/dist/src/db/read/getPublishUploads.d.ts.map +1 -1
  101. package/dist/src/db/read/summarizePublishWork.d.ts.map +1 -1
  102. package/dist/src/db/write/claimUnpublishedDrafts.d.ts +2 -0
  103. package/dist/src/db/write/claimUnpublishedDrafts.d.ts.map +1 -1
  104. package/dist/src/db/write/convertVerbatimItemStorageRow.d.ts +44 -0
  105. package/dist/src/db/write/convertVerbatimItemStorageRow.d.ts.map +1 -0
  106. package/dist/src/db/write/createNewItem.d.ts.map +1 -1
  107. package/dist/src/eventBus.d.ts +5 -0
  108. package/dist/src/eventBus.d.ts.map +1 -1
  109. package/dist/src/events/files/download.d.ts.map +1 -1
  110. package/dist/src/helpers/FileManager/BaseFileManager.d.ts +3 -3
  111. package/dist/src/helpers/FileManager/BaseFileManager.d.ts.map +1 -1
  112. package/dist/src/helpers/FileManager/IFileManager.d.ts +25 -1
  113. package/dist/src/helpers/FileManager/IFileManager.d.ts.map +1 -1
  114. package/dist/src/helpers/arweaveContentTags.d.ts +33 -0
  115. package/dist/src/helpers/arweaveContentTags.d.ts.map +1 -0
  116. package/dist/src/helpers/cachedPropertyRefresh.d.ts +12 -0
  117. package/dist/src/helpers/cachedPropertyRefresh.d.ts.map +1 -0
  118. package/dist/src/helpers/compositeUpload.d.ts +28 -0
  119. package/dist/src/helpers/compositeUpload.d.ts.map +1 -0
  120. package/dist/src/helpers/db.d.ts +3 -0
  121. package/dist/src/helpers/db.d.ts.map +1 -1
  122. package/dist/src/helpers/easSdk.d.ts +16 -0
  123. package/dist/src/helpers/easSdk.d.ts.map +1 -0
  124. package/dist/src/helpers/entity/detachRowsBeforeDelete.d.ts +16 -0
  125. package/dist/src/helpers/entity/detachRowsBeforeDelete.d.ts.map +1 -0
  126. package/dist/src/helpers/entity/entityDestroy.d.ts +2 -0
  127. package/dist/src/helpers/entity/entityDestroy.d.ts.map +1 -1
  128. package/dist/src/helpers/itemStorageFile.d.ts +57 -0
  129. package/dist/src/helpers/itemStorageFile.d.ts.map +1 -0
  130. package/dist/src/helpers/mapWithConcurrency.d.ts +7 -0
  131. package/dist/src/helpers/mapWithConcurrency.d.ts.map +1 -0
  132. package/dist/src/helpers/mimeTypes.d.ts +43 -0
  133. package/dist/src/helpers/mimeTypes.d.ts.map +1 -0
  134. package/dist/src/helpers/ownership.d.ts +28 -4
  135. package/dist/src/helpers/ownership.d.ts.map +1 -1
  136. package/dist/src/helpers/property/index.d.ts +37 -51
  137. package/dist/src/helpers/property/index.d.ts.map +1 -1
  138. package/dist/src/helpers/publishConfig.d.ts +27 -8
  139. package/dist/src/helpers/publishConfig.d.ts.map +1 -1
  140. package/dist/src/helpers/storageDir.d.ts +16 -0
  141. package/dist/src/helpers/storageDir.d.ts.map +1 -0
  142. package/dist/src/helpers/tabCoordinator.d.ts +5 -1
  143. package/dist/src/helpers/tabCoordinator.d.ts.map +1 -1
  144. package/dist/src/helpers/tabEvents.d.ts +23 -2
  145. package/dist/src/helpers/tabEvents.d.ts.map +1 -1
  146. package/dist/src/helpers/updateSchema.d.ts +5 -0
  147. package/dist/src/helpers/updateSchema.d.ts.map +1 -1
  148. package/dist/src/helpers/waitForEntityIdle.d.ts +5 -0
  149. package/dist/src/helpers/waitForEntityIdle.d.ts.map +1 -1
  150. package/dist/src/imports/json.d.ts +9 -0
  151. package/dist/src/imports/json.d.ts.map +1 -1
  152. package/dist/src/index.d.ts +11 -7
  153. package/dist/src/index.d.ts.map +1 -1
  154. package/dist/src/interfaces/IItem.d.ts +7 -1
  155. package/dist/src/interfaces/IItem.d.ts.map +1 -1
  156. package/dist/src/node/db/Db.d.ts.map +1 -1
  157. package/dist/src/node/helpers/PathResolver.d.ts.map +1 -1
  158. package/dist/src/node/index.d.ts +8 -1
  159. package/dist/src/node/index.d.ts.map +1 -1
  160. package/dist/src/platform/index.browser.d.ts +2 -0
  161. package/dist/src/platform/index.browser.d.ts.map +1 -1
  162. package/dist/src/platform/index.node.d.ts +2 -0
  163. package/dist/src/platform/index.node.d.ts.map +1 -1
  164. package/dist/src/types/fileManager.d.ts +3 -14
  165. package/dist/src/types/fileManager.d.ts.map +1 -1
  166. package/dist/src/types/index.d.ts +12 -1
  167. package/dist/src/types/index.d.ts.map +1 -1
  168. package/dist/src/types/machines.d.ts +2 -0
  169. package/dist/src/types/machines.d.ts.map +1 -1
  170. package/dist/src/types/property.d.ts +8 -0
  171. package/dist/src/types/property.d.ts.map +1 -1
  172. package/dist/src/types/publish.d.ts +14 -0
  173. package/dist/src/types/publish.d.ts.map +1 -1
  174. package/dist/{syncDbWithEas-BU-jZ5bJ.js → syncDbWithEas-Bv2Fe38J.js} +17 -17
  175. package/dist/{syncDbWithEas-BU-jZ5bJ.js.map → syncDbWithEas-Bv2Fe38J.js.map} +1 -1
  176. package/dist/tabEvents-9s2WCYw-.js +335 -0
  177. package/dist/tabEvents-9s2WCYw-.js.map +1 -0
  178. package/dist/tolerantWebAccess-iUu80pAP.js +551 -0
  179. package/dist/tolerantWebAccess-iUu80pAP.js.map +1 -0
  180. package/dist/{updateSeedRevokedAt-iLpzae1i.js → updateSeedRevokedAt-zBfi931j.js} +3 -3
  181. package/dist/{updateSeedRevokedAt-iLpzae1i.js.map → updateSeedRevokedAt-zBfi931j.js.map} +1 -1
  182. package/package.json +11 -12
  183. package/src/node/easLodashRegister.js +4 -0
  184. package/dist/BasePathResolver-BdxCSIzn.js +0 -679
  185. package/dist/BasePathResolver-BdxCSIzn.js.map +0 -1
  186. package/dist/ClientManager-DDA9956Y.js.map +0 -1
  187. package/dist/Item-D4FigtYS.js.map +0 -1
  188. package/dist/ModelProperty-BDt6AU2h.js.map +0 -1
  189. package/dist/Schema-B8xqLWkL.js.map +0 -1
  190. package/dist/cjs/ModelProperty-B-cZm1yU.js +0 -1977
  191. package/dist/cjs/ModelProperty-B-cZm1yU.js.map +0 -1
  192. package/dist/cjs/Schema-STP972Xw.js +0 -5256
  193. package/dist/cjs/Schema-STP972Xw.js.map +0 -1
  194. package/dist/cjs/SchemaValidationService-CKNW1bKg.js +0 -778
  195. package/dist/cjs/SchemaValidationService-CKNW1bKg.js.map +0 -1
  196. package/dist/cjs/backfillMetadataPropertyIds-CP3y1skt.js +0 -89
  197. package/dist/cjs/backfillMetadataPropertyIds-CP3y1skt.js.map +0 -1
  198. package/dist/cjs/eas-CAnUC4wd.js +0 -138
  199. package/dist/cjs/eas-CAnUC4wd.js.map +0 -1
  200. package/dist/cjs/getItem-CWgb3e9G.js +0 -58
  201. package/dist/cjs/getItem-CWgb3e9G.js.map +0 -1
  202. package/dist/cjs/getPublishPayload-BsZWiJ03.js +0 -1603
  203. package/dist/cjs/getPublishPayload-BsZWiJ03.js.map +0 -1
  204. package/dist/cjs/getPublishUploads-BQr8aMVP.js +0 -495
  205. package/dist/cjs/getPublishUploads-BQr8aMVP.js.map +0 -1
  206. package/dist/cjs/index-nA5PxBSs.js +0 -70
  207. package/dist/cjs/index-nA5PxBSs.js.map +0 -1
  208. package/dist/cjs/index-usKaANAq.js +0 -22171
  209. package/dist/cjs/index-usKaANAq.js.map +0 -1
  210. package/dist/cjs/index.browser-BSf8HpnU.js +0 -22
  211. package/dist/cjs/index.browser-BSf8HpnU.js.map +0 -1
  212. package/dist/cjs/property-xMwPhQ5N.js +0 -327
  213. package/dist/cjs/property-xMwPhQ5N.js.map +0 -1
  214. package/dist/cjs/publishDraftGraph-BRWlR1KO.js +0 -403
  215. package/dist/cjs/publishDraftGraph-BRWlR1KO.js.map +0 -1
  216. package/dist/cjs/resetAmbiguousLegacyItemData-8nfkj9rz.js +0 -116
  217. package/dist/cjs/resetAmbiguousLegacyItemData-8nfkj9rz.js.map +0 -1
  218. package/dist/cjs/resolveModelForSyncedSeed-kYRuDWYw.js +0 -49
  219. package/dist/cjs/resolveModelForSyncedSeed-kYRuDWYw.js.map +0 -1
  220. package/dist/cjs/syncDbWithEas-DqRhV8o2.js +0 -886
  221. package/dist/cjs/syncDbWithEas-DqRhV8o2.js.map +0 -1
  222. package/dist/db-CQt-gcAl.js.map +0 -1
  223. package/dist/eas-CpOD74Ke.js.map +0 -1
  224. package/dist/getPublishPayload-Xl3sRkR-.js.map +0 -1
  225. package/dist/getPublishUploads-DHP01KgU.js +0 -484
  226. package/dist/getPublishUploads-DHP01KgU.js.map +0 -1
  227. package/dist/index-BGt4_oPO.js +0 -31
  228. package/dist/index-BGt4_oPO.js.map +0 -1
  229. package/dist/index-CSOQFAOn.js.map +0 -1
  230. package/dist/index-Xl1_4Lmb.js.map +0 -1
  231. package/dist/index.browser-CjTe0vt1.js.map +0 -1
  232. package/dist/index.node-Cfa7npS6.js.map +0 -1
  233. package/dist/main.cjs +0 -84
  234. package/dist/main.cjs.map +0 -1
  235. package/dist/property-BrXkY1Rg.js.map +0 -1
  236. package/dist/tabEvents-BZJMY5uK.js +0 -1344
  237. package/dist/tabEvents-BZJMY5uK.js.map +0 -1
  238. package/dist/tolerantWebAccess-BZ2RA_mb.js +0 -160
  239. package/dist/tolerantWebAccess-BZ2RA_mb.js.map +0 -1
@@ -1,679 +0,0 @@
1
- import { sqliteTable, integer, text, unique, int, blob, uniqueIndex } from 'drizzle-orm/sqlite-core';
2
- import { relations } from 'drizzle-orm';
3
- import '@seedprotocol/arweave';
4
-
5
- class BaseDb {
6
- static configure(impl) {
7
- if (!impl) {
8
- throw new Error('Cannot configure Db with undefined or null. Ensure the platform-specific Db is properly created.');
9
- }
10
- BaseDb._impl = impl;
11
- }
12
- static requireImpl() {
13
- if (!BaseDb._impl) {
14
- throw new Error('Db not configured. Call BaseDb.configure() during platform init.');
15
- }
16
- return BaseDb._impl;
17
- }
18
- static getAppDb() {
19
- return BaseDb.requireImpl().getAppDb();
20
- }
21
- static prepareDb(filesDir, config) {
22
- return BaseDb.requireImpl().prepareDb(filesDir, config);
23
- }
24
- static isAppDbReady() {
25
- if (!BaseDb._impl) {
26
- return false;
27
- }
28
- return BaseDb._impl.isAppDbReady();
29
- }
30
- static connectToDb(pathToDir) {
31
- return BaseDb.requireImpl().connectToDb(pathToDir);
32
- }
33
- static async migrate(pathToDbDir, dbName, dbId) {
34
- return BaseDb.requireImpl().migrate(pathToDbDir, dbName, dbId);
35
- }
36
- /**
37
- * Execute a reactive query that emits new results whenever the underlying data changes.
38
- *
39
- * Supports two usage patterns:
40
- * 1. SQL tag function: liveQuery((sql) => sql`SELECT * FROM models`)
41
- * 2. Drizzle query builder (browser only): liveQuery(db.select().from(models))
42
- */
43
- static liveQuery(query) {
44
- return BaseDb.requireImpl().liveQuery(query);
45
- }
46
- }
47
- BaseDb._impl = null;
48
-
49
- const models = sqliteTable('models', {
50
- id: integer('id').primaryKey({ autoIncrement: true }),
51
- name: text('name').notNull(),
52
- schemaFileId: text('schema_file_id'), // ID from JSON file for change tracking - must be unique
53
- isEdited: integer('is_edited', { mode: 'boolean' }), // true if model has been edited locally, false if matches schema file
54
- }, (table) => {
55
- return {
56
- uniqueSchemaFileId: unique('unique_schema_file_id').on(table.schemaFileId),
57
- };
58
- });
59
- const modelsRelations = relations(models, ({ many }) => ({
60
- properties: many(properties),
61
- }));
62
- const properties = sqliteTable('properties', {
63
- id: integer('id').primaryKey({ autoIncrement: true }),
64
- name: text('name').notNull(),
65
- dataType: text('data_type').notNull(),
66
- modelId: integer('model_id')
67
- .notNull()
68
- .references(() => models.id),
69
- refModelId: integer('ref_model_id').references(() => models.id),
70
- refValueType: text('ref_value_type'),
71
- schemaFileId: text('schema_file_id'), // ID from JSON file for change tracking
72
- isEdited: integer('is_edited', { mode: 'boolean' }), // true if property has been edited locally, false if matches schema file
73
- required: integer('required', { mode: 'boolean' }), // true if relation/image property is required (publish fails when related item not found)
74
- // Storage settings from the schema file's `storage: { type, path, extension }`, in the internal
75
- // shape ModelProperty uses. Null when the property has no storage config.
76
- storageType: text('storage_type'), // 'ItemStorage' | 'PropertyStorage'
77
- localStorageDir: text('local_storage_dir'), // storage.path, e.g. '/html'
78
- filenameSuffix: text('filename_suffix'), // storage.extension, e.g. '.html'
79
- }, (table) => {
80
- return {
81
- uniqueNameModelId: unique('unique_name_model_id').on(table.name, table.modelId),
82
- uniqueSchemaFileId: unique('unique_property_schema_file_id').on(table.schemaFileId),
83
- };
84
- });
85
- const propertiesRelations = relations(properties, ({ one }) => ({
86
- model: one(models),
87
- refModel: one(models),
88
- }));
89
-
90
- var ModelSchema = /*#__PURE__*/Object.freeze({
91
- __proto__: null,
92
- models: models,
93
- modelsRelations: modelsRelations,
94
- properties: properties,
95
- propertiesRelations: propertiesRelations
96
- });
97
-
98
- class BaseFileManager {
99
- static configure(impl) {
100
- if (!impl) {
101
- throw new Error('Cannot configure FileManager with undefined or null. Ensure the platform-specific FileManager is properly created.');
102
- }
103
- BaseFileManager._impl = impl;
104
- }
105
- static requireImpl() {
106
- if (!BaseFileManager._impl) {
107
- throw new Error('FileManager not configured. Call BaseFileManager.configure() during platform init.');
108
- }
109
- return BaseFileManager._impl;
110
- }
111
- /**
112
- * Clears FS init flags so a later call can retry. Used after a failed init
113
- * and by tests. Does not unmount or delete any files.
114
- */
115
- static resetInitializationState() {
116
- this.fileSystemInitialized = false;
117
- this.initializing = false;
118
- this.initializePromise = null;
119
- this.workingDir = undefined;
120
- }
121
- static initializeFileSystem(workingDir) {
122
- if (this.fileSystemInitialized) {
123
- return Promise.resolve();
124
- }
125
- if (this.initializePromise) {
126
- return this.initializePromise;
127
- }
128
- this.initializing = true;
129
- const pending = this.runInitializeFileSystem(workingDir).finally(() => {
130
- this.initializing = false;
131
- if (this.initializePromise === pending) {
132
- this.initializePromise = null;
133
- }
134
- });
135
- this.initializePromise = pending;
136
- return pending;
137
- }
138
- static async runInitializeFileSystem(workingDir) {
139
- await BaseFileManager.requireImpl().initializeFileSystem(workingDir);
140
- this.fileSystemInitialized = true;
141
- this.workingDir = workingDir;
142
- }
143
- static getWorkingDir() {
144
- if (!this.workingDir) {
145
- throw new Error('Working directory is not set');
146
- }
147
- return this.workingDir;
148
- }
149
- /**
150
- * Build a path under the configured files root (e.g. /app-files).
151
- * Use this instead of hardcoding /files/ for images, html, json, etc.
152
- * @param subpaths - path segments to join (e.g. 'images', fileName)
153
- * @returns full path like /app-files/images/egg.jpg
154
- */
155
- static getFilesPath(...subpaths) {
156
- const root = this.getWorkingDir().replace(/\/$/, '');
157
- const parts = [root, ...subpaths].filter(Boolean);
158
- return parts.join('/').replace(/\/+/g, '/');
159
- }
160
- static getContentUrlFromPath(path) {
161
- return BaseFileManager.requireImpl().getContentUrlFromPath(path);
162
- }
163
- static downloadAllFiles({ transactionIds, arweaveHost, arweaveBaseUrls, excludedTransactions, }) {
164
- return BaseFileManager.requireImpl().downloadAllFiles({
165
- transactionIds,
166
- arweaveHost,
167
- arweaveBaseUrls,
168
- excludedTransactions,
169
- });
170
- }
171
- static downloadFileByTransactionId({ transactionId, arweaveHost, arweaveBaseUrls, excludedTransactions, }) {
172
- return BaseFileManager.requireImpl().downloadAllFiles({
173
- transactionIds: [transactionId],
174
- arweaveHost,
175
- arweaveBaseUrls,
176
- excludedTransactions,
177
- });
178
- }
179
- static resizeImage({ filePath, width, height }) {
180
- return BaseFileManager.requireImpl().resizeImage({ filePath, width, height });
181
- }
182
- static resizeAllImages({ width, height }) {
183
- return BaseFileManager.requireImpl().resizeAllImages({ width, height });
184
- }
185
- static pathExists(filePath) {
186
- return BaseFileManager.requireImpl().pathExists(filePath);
187
- }
188
- static invalidateCachedPaths(filePaths) {
189
- return BaseFileManager.requireImpl().invalidateCachedPaths(filePaths);
190
- }
191
- /** File size in bytes, or null if the path does not exist / cannot be stated. */
192
- static getFileSize(filePath) {
193
- return BaseFileManager.requireImpl().getFileSize(filePath);
194
- }
195
- /**
196
- * Returns a list of filenames in the given directory (e.g. 'images', 'files').
197
- */
198
- static listFiles(dir) {
199
- return BaseFileManager.requireImpl().listFiles(dir);
200
- }
201
- /**
202
- * Returns a list of image filenames in the images folder (originals only, excludes size subdirs).
203
- * Use this to get all stored images without traversing 480/760/1024/1440/1920 subdirectories.
204
- */
205
- static listImageFiles() {
206
- return this.listFiles('images');
207
- }
208
- static createDirIfNotExists(filePath) {
209
- return BaseFileManager.requireImpl().createDirIfNotExists(filePath);
210
- }
211
- static async waitForFile(filePath) {
212
- return BaseFileManager.requireImpl().waitForFile(filePath);
213
- }
214
- static async waitForFileWithContent(filePath, interval, timeout) {
215
- return BaseFileManager.requireImpl().waitForFileWithContent(filePath, interval, timeout);
216
- }
217
- static async saveFile(filePath, content) {
218
- return BaseFileManager.requireImpl().saveFile(filePath, content);
219
- }
220
- static saveFileSync(filePath, content) {
221
- return BaseFileManager.requireImpl().saveFileSync(filePath, content);
222
- }
223
- static async readFile(filePath) {
224
- return BaseFileManager.requireImpl().readFile(filePath);
225
- }
226
- static readFileSync(filePath) {
227
- return BaseFileManager.requireImpl().readFileSync(filePath);
228
- }
229
- static async readFileAsBuffer(filePath) {
230
- return BaseFileManager.requireImpl().readFileAsBuffer(filePath);
231
- }
232
- static async readFileAsString(filePath) {
233
- return BaseFileManager.requireImpl().readFileAsString(filePath);
234
- }
235
- static async getFs() {
236
- return BaseFileManager.requireImpl().getFs();
237
- }
238
- static getFsSync() {
239
- return BaseFileManager.requireImpl().getFsSync();
240
- }
241
- static getPathModule() {
242
- return BaseFileManager.requireImpl().getPathModule();
243
- }
244
- static getParentDirPath(filePath) {
245
- return BaseFileManager.requireImpl().getParentDirPath(filePath);
246
- }
247
- static getFilenameFromPath(filePath) {
248
- return BaseFileManager.requireImpl().getFilenameFromPath(filePath);
249
- }
250
- }
251
- BaseFileManager.fileSystemInitialized = false;
252
- BaseFileManager.initializing = false;
253
- BaseFileManager._impl = null;
254
- BaseFileManager.initializePromise = null;
255
-
256
- var BaseFileManager$1 = /*#__PURE__*/Object.freeze({
257
- __proto__: null,
258
- BaseFileManager: BaseFileManager
259
- });
260
-
261
- const seeds = sqliteTable('seeds', {
262
- localId: text('local_id').unique(),
263
- uid: text('uid'),
264
- schemaUid: text('schema_uid'),
265
- type: text('type'),
266
- // schemaFileId of the models row this item belongs to (= Model.id). Disambiguates items whose
267
- // model name exists in more than one schema; null for legacy rows that couldn't be backfilled.
268
- modelFileId: text('model_file_id'),
269
- publisher: text('publisher'),
270
- attestationRaw: text('attestation_raw'),
271
- attestationCreatedAt: int('attestation_created_at'),
272
- createdAt: int('created_at'),
273
- updatedAt: int('updated_at'),
274
- _markedForDeletion: int('_marked_for_deletion'),
275
- revokedAt: int('revoked_at'),
276
- });
277
-
278
- const versions = sqliteTable('versions', {
279
- localId: text('local_id').unique(),
280
- uid: text('uid'),
281
- seedLocalId: text('seed_local_id'),
282
- seedUid: text('seed_uid'),
283
- seedType: text('seed_type'),
284
- note: text('note'),
285
- createdAt: int('created_at'),
286
- updatedAt: int('updated_at'),
287
- attestationCreatedAt: int('attestation_created_at'),
288
- attestationRaw: text('attestation_raw'),
289
- publisher: text('publisher'),
290
- /**
291
- * When the version attestation was revoked, in Unix seconds (EAS `revocationTime`, or the local
292
- * unpublish time until sync confirms it). Null while live or unpublished.
293
- */
294
- revokedAt: int('revoked_at'),
295
- });
296
-
297
- const metadata = sqliteTable('metadata', {
298
- localId: text('local_id').unique(),
299
- uid: text('uid'),
300
- propertyId: integer('property_id').references(() => properties.id),
301
- propertyName: text('property_name'),
302
- propertyValue: text('property_value'),
303
- schemaUid: text('schema_uid'),
304
- modelType: text('model_type'),
305
- seedLocalId: text('seed_local_id'),
306
- seedUid: text('seed_uid'),
307
- versionLocalId: text('version_local_id'),
308
- versionUid: text('version_uid'),
309
- easDataType: text('eas_data_type'),
310
- refValueType: text('ref_value_type'),
311
- refModelUid: text('ref_schema_uid'),
312
- refSeedType: text('ref_seed_type'),
313
- refResolvedValue: text('ref_resolved_value'),
314
- refResolvedDisplayValue: text('ref_resolved_display_value'),
315
- localStorageDir: text('local_storage_dir'),
316
- attestationRaw: text('attestation_raw'),
317
- attestationCreatedAt: int('attestation_created_at'),
318
- contentHash: text('content_hash'),
319
- createdAt: int('created_at'),
320
- updatedAt: int('updated_at'),
321
- publisher: text('publisher'),
322
- // Unix seconds when this row's attestation was revoked on EAS; null while it's live (or for a
323
- // local, unpublished row). EAS sync keeps only the canonical attestation per (version, property
324
- // schema): the newest live one, or the newest revoked one when all are revoked. So a non-null
325
- // value marks a property kept only for its last value, not one that is present on the version.
326
- revokedAt: int('revoked_at'),
327
- // For a row EAS sync derived for an ItemStorage property from a `storage_transaction_id`
328
- // attestation (uid null, ref_value_type 'file', value = the transaction id): that attestation's
329
- // uid. Null for every other row. Marks the row as published content, not a local draft.
330
- derivedFromUid: text('derived_from_uid'),
331
- });
332
-
333
- const appState = sqliteTable('appState', {
334
- key: text('key').unique(),
335
- value: text('value'),
336
- createdAt: int('created_at'),
337
- updatedAt: int('updated_at'),
338
- });
339
-
340
- const modelUids = sqliteTable('model_uids', {
341
- id: int('id').primaryKey({ autoIncrement: true }),
342
- uid: text('uid').notNull(),
343
- modelId: int('model_id')
344
- .notNull()
345
- .unique()
346
- .references(() => models.id),
347
- });
348
- const modelRelations = relations(modelUids, ({ one }) => ({
349
- model: one(models),
350
- }));
351
-
352
- const propertyUids = sqliteTable('property_uids', {
353
- id: int('id').primaryKey({ autoIncrement: true }),
354
- uid: text('uid').notNull(),
355
- propertyId: int('property_id')
356
- .notNull()
357
- .unique()
358
- .references(() => properties.id),
359
- });
360
- const propertyUidRelations = relations(propertyUids, ({ one }) => ({
361
- property: one(properties),
362
- }));
363
-
364
- const config = sqliteTable('config', {
365
- id: integer('id').primaryKey({ autoIncrement: true }),
366
- key: text('key').notNull(),
367
- text: text('text'),
368
- json: text('json'),
369
- blob: blob('blob'),
370
- });
371
-
372
- const schemas = sqliteTable('schemas', {
373
- id: integer('id').primaryKey({ autoIncrement: true }),
374
- name: text('name').notNull(),
375
- version: integer('version').notNull(),
376
- schemaFileId: text('schema_file_id'), // ID from JSON file for change tracking - must be unique
377
- schemaData: text('schema_data'), // Full JSON schema content (SchemaFileFormat as JSON string)
378
- isDraft: integer('is_draft', { mode: 'boolean' }), // true if schema is in draft/editing state, false if published to file
379
- isEdited: integer('is_edited', { mode: 'boolean' }), // true if schema has been edited locally, false if matches schema file
380
- createdAt: int('created_at'),
381
- updatedAt: int('updated_at'),
382
- }, (table) => {
383
- return {
384
- uniqueSchemaFileId: unique('unique_schema_schema_file_id').on(table.schemaFileId),
385
- };
386
- });
387
-
388
- var SchemaSchema = /*#__PURE__*/Object.freeze({
389
- __proto__: null,
390
- schemas: schemas
391
- });
392
-
393
- const modelSchemas = sqliteTable('model_schemas', {
394
- id: integer('id').primaryKey({ autoIncrement: true }),
395
- modelId: integer('model_id').references(() => models.id),
396
- schemaId: integer('schema_id').references(() => schemas.id),
397
- });
398
-
399
- var ModelSchemaSchema = /*#__PURE__*/Object.freeze({
400
- __proto__: null,
401
- modelSchemas: modelSchemas
402
- });
403
-
404
- const publishProcesses = sqliteTable('publish_processes', {
405
- id: int('id').primaryKey({ autoIncrement: true }),
406
- seedLocalId: text('seed_local_id').notNull(),
407
- modelName: text('model_name').notNull(),
408
- schemaId: text('schema_id'),
409
- status: text('status').notNull(), // 'in_progress' | 'completed' | 'failed' | 'interrupted'
410
- startedAt: int('started_at').notNull(),
411
- completedAt: int('completed_at'),
412
- errorMessage: text('error_message'),
413
- errorStep: text('error_step'),
414
- errorDetails: text('error_details'),
415
- errorCode: text('error_code'), // e.g. ManagedAccountPublishError.code
416
- persistedSnapshot: text('persisted_snapshot').notNull(),
417
- seedId: text('seed_id'),
418
- existingSeedUid: text('existing_seed_uid'),
419
- createdAt: int('created_at'),
420
- updatedAt: int('updated_at'),
421
- });
422
-
423
- const uploadProcesses = sqliteTable('upload_processes', {
424
- id: int('id').primaryKey({ autoIncrement: true }),
425
- reimbursementConfirmed: int('reimbursement_confirmed').notNull(), // 0 or 1 for boolean
426
- reimbursementTransactionId: text('reimbursement_transaction_id'),
427
- transactionKeys: text('transaction_keys'),
428
- persistedSnapshot: text('persisted_snapshot').notNull(), // JSON string
429
- createdAt: int('created_at'),
430
- updatedAt: int('updated_at'),
431
- });
432
-
433
- /** Background job: resolve L1 tx id and wait for L1 confirmation after bundler publish. */
434
- const arweaveL1FinalizeJobs = sqliteTable('arweave_l1_finalize_jobs', {
435
- id: int('id').primaryKey({ autoIncrement: true }),
436
- seedLocalId: text('seed_local_id').notNull(),
437
- dataItemId: text('data_item_id').notNull(),
438
- /** L1 bundle / anchor transaction id from gateway GraphQL `bundledIn.id`. */
439
- l1TransactionId: text('l1_transaction_id'),
440
- bundleId: text('bundle_id'),
441
- versionLocalId: text('version_local_id'),
442
- itemPropertyName: text('item_property_name'),
443
- /** `pending_l1` | `confirmed` | `failed` */
444
- phase: text('phase').notNull(),
445
- statusJson: text('status_json'),
446
- errorMessage: text('error_message'),
447
- createdAt: int('created_at').notNull(),
448
- updatedAt: int('updated_at').notNull(),
449
- }, (table) => ({
450
- dataItemIdUnique: uniqueIndex('arweave_l1_finalize_jobs_data_item_id_unique').on(table.dataItemId),
451
- }));
452
-
453
- const easSyncProcesses = sqliteTable('eas_sync_processes', {
454
- id: int('id').primaryKey({ autoIncrement: true }),
455
- status: text('status').notNull(), // 'in_progress' | 'completed' | 'failed'
456
- startedAt: int('started_at').notNull(),
457
- completedAt: int('completed_at'),
458
- requestPayload: text('request_payload').notNull(),
459
- errorMessage: text('error_message'),
460
- errorDetails: text('error_details'),
461
- persistedSnapshot: text('persisted_snapshot').notNull(),
462
- createdAt: int('created_at'),
463
- updatedAt: int('updated_at'),
464
- });
465
-
466
- /**
467
- * Links Image seeds materialized from Html `data:image/*` URIs to the parent Item seed for co-publish.
468
- * Rows are removed after a successful publish (see clearHtmlEmbeddedImageCoPublishRows).
469
- */
470
- const htmlEmbeddedImageCoPublish = sqliteTable('html_embedded_image_co_publish', {
471
- id: int('id').primaryKey({ autoIncrement: true }),
472
- parentSeedLocalId: text('parent_seed_local_id').notNull(),
473
- htmlSeedLocalId: text('html_seed_local_id').notNull(),
474
- imageSeedLocalId: text('image_seed_local_id').notNull(),
475
- /** Stable dedup key (e.g. sha256 of data URI or normalized URI string). */
476
- stableKey: text('stable_key').notNull(),
477
- createdAt: int('created_at').notNull(),
478
- }, (t) => [
479
- uniqueIndex('html_embed_co_pub_parent_html_stable').on(t.parentSeedLocalId, t.htmlSeedLocalId, t.stableKey),
480
- ]);
481
-
482
- // Top-level re-export (not mid-file import + export): Rollup with
483
- // external `@seedprotocol/arweave` otherwise emits a side-effect-only import
484
- // and an unbound Object.freeze namespace when this module is dynamically imported.
485
- // Define zero constants ourselves since they're not exported from eas-sdk in newer versions
486
- const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
487
- const ZERO_BYTES = '0x';
488
- const ZERO_BYTES32 = '0x0000000000000000000000000000000000000000000000000000000000000000';
489
- // Primary config file name for Seed Protocol SDK
490
- const SEED_CONFIG_FILE = 'seed.config.ts';
491
- // Fallback config file names (in order of preference)
492
- const SEED_CONFIG_FALLBACKS = ['seed.schema.ts', 'schema.ts'];
493
- // Legacy constant for backward compatibility
494
- const SCHEMA_TS = SEED_CONFIG_FILE;
495
- const INTERNAL_DATA_TYPES = {
496
- Text: {
497
- eas: 'string',
498
- },
499
- Number: {
500
- eas: 'uint8',
501
- },
502
- Image: {
503
- eas: 'bytes32',
504
- },
505
- Relation: {
506
- eas: 'bytes32',
507
- },
508
- List: {
509
- eas: 'bytes32[]',
510
- },
511
- File: {
512
- eas: 'bytes32',
513
- },
514
- Json: {
515
- eas: 'bytes32',
516
- },
517
- Blob: {
518
- eas: 'bytes32',
519
- },
520
- Boolean: {
521
- eas: 'bool',
522
- },
523
- Date: {
524
- eas: 'uint256',
525
- },
526
- Html: {
527
- eas: 'bytes32',
528
- },
529
- };
530
- /** Full property names ending in `Id` that must not be stripped to a “base” name for `allProperties` keys. */
531
- const PROPERTY_NAMES_EXEMPT_FROM_ID_SUFFIX_STRIP = new Set(['storageTransactionId']);
532
- const INTERNAL_PROPERTY_NAMES = [
533
- 'localId',
534
- 'uid',
535
- 'seedLocalId',
536
- 'seedUid',
537
- 'schemaUid',
538
- 'attestationCreatedAt',
539
- 'attestationRaw',
540
- 'createdAt',
541
- 'updatedAt',
542
- 'lastVersionPublishedAt',
543
- 'latestVersionLocalId',
544
- 'latestVersionUid',
545
- 'lastLocalUpdateAt',
546
- 'modelName',
547
- 'refSeedType',
548
- 'refValueType',
549
- 'refResolvedValue',
550
- 'refResolvedDisplayValue',
551
- 'type',
552
- // Image
553
- 'src',
554
- 'alt',
555
- //
556
- 'versionLocalId',
557
- 'versionsCount',
558
- 'versionUid',
559
- '_markedForDeletion',
560
- // SDK-internal: wallet address of attester; never publish as property attestation
561
- 'publisher',
562
- // SDK-internal: Unix timestamp when attestations were revoked; never a schema field
563
- 'revokedAt',
564
- ];
565
- /** Schema definition of the Version attestation (zero resolver, revocable). */
566
- const VERSION_SCHEMA_DEF = 'bytes32 version';
567
- /**
568
- * UID of {@link VERSION_SCHEMA_DEF}. Schema UIDs hash the definition, resolver and revocable flag,
569
- * so this is the same on every chain; the schema must still be registered on each one.
570
- */
571
- const VERSION_SCHEMA_UID = '0x13c0fd59d69dbce40501a41f8b37768d26dd2e2bb0cad64615334d84f7b9bdf6';
572
- /** @deprecated The UID is chain-independent. Use {@link VERSION_SCHEMA_UID}. */
573
- const VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA = VERSION_SCHEMA_UID;
574
- const defaultAttestationData = {
575
- recipient: ZERO_ADDRESS,
576
- revocable: true,
577
- value: BigInt(0),
578
- refUID: ZERO_BYTES32,
579
- expirationTime: BigInt(0),
580
- data: ZERO_BYTES,
581
- };
582
- var ImageSize;
583
- (function (ImageSize) {
584
- ImageSize[ImageSize["EXTRA_SMALL"] = 480] = "EXTRA_SMALL";
585
- ImageSize[ImageSize["SMALL"] = 760] = "SMALL";
586
- ImageSize[ImageSize["MEDIUM"] = 1024] = "MEDIUM";
587
- ImageSize[ImageSize["LARGE"] = 1440] = "LARGE";
588
- ImageSize[ImageSize["EXTRA_LARGE"] = 1920] = "EXTRA_LARGE";
589
- })(ImageSize || (ImageSize = {}));
590
- const CLIENT_NOT_INITIALIZED = 'ClientManager is not initialized. Please call init() first.';
591
- const INIT_SCRIPT_SUCCESS_MESSAGE = '[Seed Protocol] Finished running init script';
592
- var SeedModels;
593
- (function (SeedModels) {
594
- SeedModels["Seed"] = "Seed";
595
- SeedModels["Metadata"] = "Metadata";
596
- SeedModels["Version"] = "Version";
597
- })(SeedModels || (SeedModels = {}));
598
- // Internal SDK schema that should not be created in app's files directory
599
- const SEED_PROTOCOL_SCHEMA_NAME = 'Seed Protocol';
600
- const INTERNAL_SCHEMA_IDS = ['SEEDPROTOCOL'];
601
- /** Fired after `syncDbWithEas` persists EAS seeds/versions/metadata to SQLite (see `Item.rehydrateCachedItemsFromDbAfterEasSync`). */
602
- const EAS_SEED_DATA_SYNCED_TO_DB_EVENT = 'easSeedDataSyncedToDb';
603
- /**
604
- * Check if a schema is an internal SDK schema that should not be created in app files
605
- */
606
- function isInternalSchema(schemaName, schemaId) {
607
- return schemaName === SEED_PROTOCOL_SCHEMA_NAME ||
608
- (schemaId !== undefined && INTERNAL_SCHEMA_IDS.includes(schemaId));
609
- }
610
- /**
611
- * Model ids (schemaFileId) of the internal Seed Protocol storage models. Storage seeds are always
612
- * these models, even if a user schema also defines a model named Image/File/Html.
613
- */
614
- const INTERNAL_STORAGE_MODEL_FILE_IDS = {
615
- image: 'SEEDPROTOCOL_IMAGE',
616
- file: 'SEEDPROTOCOL_FILE',
617
- html: 'SEEDPROTOCOL_HTML',
618
- };
619
-
620
- /**
621
- * Save/restore helper for swapping a single facade implementation in tests.
622
- */
623
- function createFacadeTestHandle(getImpl, setImpl, next) {
624
- const previous = getImpl();
625
- setImpl(next);
626
- return {
627
- restore() {
628
- setImpl(previous);
629
- },
630
- };
631
- }
632
-
633
- class BasePathResolver {
634
- static configure(impl) {
635
- if (!impl) {
636
- throw new Error('Cannot configure PathResolver with undefined or null. Ensure the platform-specific PathResolver is properly created.');
637
- }
638
- BasePathResolver._impl = impl;
639
- }
640
- static createForTesting(impl) {
641
- return createFacadeTestHandle(() => BasePathResolver._impl, (next) => {
642
- BasePathResolver._impl = next;
643
- }, impl);
644
- }
645
- static requireImpl() {
646
- if (!BasePathResolver._impl) {
647
- throw new Error('PathResolver not configured. Please ensure the platform-specific PathResolver is registered. For Node.js, import from @seedprotocol/sdk/node. For browser, the SDK should auto-initialize.');
648
- }
649
- return BasePathResolver._impl;
650
- }
651
- /**
652
- * @deprecated Prefer static facade methods (e.g. BasePathResolver.getDotSeedDir()).
653
- */
654
- static getInstance() {
655
- return BasePathResolver.requireImpl();
656
- }
657
- static getRootWithNodeModules() {
658
- return BasePathResolver.requireImpl().getRootWithNodeModules();
659
- }
660
- static getSdkRootDir() {
661
- return BasePathResolver.requireImpl().getSdkRootDir();
662
- }
663
- static getNodeModulesDir() {
664
- return BasePathResolver.requireImpl().getNodeModulesDir();
665
- }
666
- static getDotSeedDir(schemaFileDir) {
667
- return BasePathResolver.requireImpl().getDotSeedDir(schemaFileDir);
668
- }
669
- static findConfigFile(searchDir) {
670
- return BasePathResolver.requireImpl().findConfigFile(searchDir);
671
- }
672
- static getAppPaths(schemaFileDir) {
673
- return BasePathResolver.requireImpl().getAppPaths(schemaFileDir);
674
- }
675
- }
676
- BasePathResolver._impl = null;
677
-
678
- export { SEED_CONFIG_FALLBACKS as A, BaseFileManager as B, INTERNAL_STORAGE_MODEL_FILE_IDS as C, ImageSize as D, EAS_SEED_DATA_SYNCED_TO_DB_EVENT as E, SEED_PROTOCOL_SCHEMA_NAME as F, SeedModels as G, VERSION_SCHEMA_DEF as H, INTERNAL_PROPERTY_NAMES as I, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as J, isInternalSchema as K, INTERNAL_SCHEMA_IDS as L, CLIENT_NOT_INITIALIZED as M, ModelSchema as N, BaseFileManager$1 as O, PROPERTY_NAMES_EXEMPT_FROM_ID_SUFFIX_STRIP as P, SchemaSchema as Q, ModelSchemaSchema as R, SCHEMA_TS as S, VERSION_SCHEMA_UID as V, ZERO_BYTES32 as Z, BaseDb as a, appState as b, arweaveL1FinalizeJobs as c, config as d, easSyncProcesses as e, modelRelations as f, modelSchemas as g, htmlEmbeddedImageCoPublish as h, modelUids as i, models as j, modelsRelations as k, propertiesRelations as l, metadata as m, propertyUidRelations as n, propertyUids as o, properties as p, publishProcesses as q, seeds as r, schemas as s, BasePathResolver as t, uploadProcesses as u, versions as v, defaultAttestationData as w, INTERNAL_DATA_TYPES as x, INIT_SCRIPT_SUCCESS_MESSAGE as y, SEED_CONFIG_FILE as z };
679
- //# sourceMappingURL=BasePathResolver-BdxCSIzn.js.map