@seedprotocol/sdk 0.4.1 → 0.4.3
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.
- package/dist/ArweaveClient-BvJ1FhQ5.js +202 -0
- package/dist/ArweaveClient-BvJ1FhQ5.js.map +1 -0
- package/dist/ArweaveClient-CleX_4Gw.js +202 -0
- package/dist/ArweaveClient-CleX_4Gw.js.map +1 -0
- package/dist/Db-BPnO1-_p.js +343 -0
- package/dist/Db-BPnO1-_p.js.map +1 -0
- package/dist/Db-DX08SxS9.js +1521 -0
- package/dist/Db-DX08SxS9.js.map +1 -0
- package/dist/EasClient-BwhUcPjY.js +29 -0
- package/dist/EasClient-BwhUcPjY.js.map +1 -0
- package/dist/EasClient-CJSs38Db.js +29 -0
- package/dist/EasClient-CJSs38Db.js.map +1 -0
- package/dist/FileManager-B1tdLMsX.js +1152 -0
- package/dist/FileManager-B1tdLMsX.js.map +1 -0
- package/dist/FileManager-Ct91ZhOE.js +165 -0
- package/dist/FileManager-Ct91ZhOE.js.map +1 -0
- package/dist/Item/Item.d.ts +113 -0
- package/dist/Item/Item.d.ts.map +1 -0
- package/dist/Item/queries.d.ts.map +1 -0
- package/dist/Item/service/actors/fetchDataFromEas.d.ts +4 -0
- package/dist/Item/service/actors/fetchDataFromEas.d.ts.map +1 -0
- package/dist/Item/service/actors/hydrateExistingItem.d.ts.map +1 -0
- package/dist/Item/service/actors/hydrateNewItem.d.ts.map +1 -0
- package/dist/Item/service/actors/initialize.d.ts.map +1 -0
- package/dist/Item/service/actors/loadOrCreateItem.d.ts.map +1 -0
- package/dist/Item/service/actors/reload.d.ts.map +1 -0
- package/dist/Item/service/actors/saveDataToDb.d.ts +4 -0
- package/dist/Item/service/actors/saveDataToDb.d.ts.map +1 -0
- package/dist/Item/service/actors/waitForDb.d.ts.map +1 -0
- package/dist/Item/service/itemMachineSingle.d.ts +48 -0
- package/dist/Item/service/itemMachineSingle.d.ts.map +1 -0
- package/dist/ItemProperty/ItemProperty.d.ts +93 -0
- package/dist/ItemProperty/ItemProperty.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/hydrateFromDb.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/initialize.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/loadOrCreateProperty.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/resolveRelatedValue.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/resolveRemoteStorage.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/saveValueToDb/analyzeInput.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/saveValueToDb/index.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/saveValueToDb/saveImage.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/saveValueToDb/saveItemStorage.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/saveValueToDb/saveRelation.d.ts.map +1 -0
- package/dist/ItemProperty/service/actors/waitForDb.d.ts.map +1 -0
- package/dist/ItemProperty/service/propertyMachine.d.ts +68 -0
- package/dist/ItemProperty/service/propertyMachine.d.ts.map +1 -0
- package/dist/Model/Model.d.ts +218 -0
- package/dist/Model/Model.d.ts.map +1 -0
- package/dist/Model/index.d.ts +26 -0
- package/dist/Model/index.d.ts.map +1 -0
- package/dist/Model/service/actors/createModelProperties.d.ts.map +1 -0
- package/dist/Model/service/actors/loadOrCreateModel.d.ts.map +1 -0
- package/dist/Model/service/actors/validateModel.d.ts.map +1 -0
- package/dist/Model/service/modelMachine.d.ts +207 -0
- package/dist/Model/service/modelMachine.d.ts.map +1 -0
- package/dist/ModelProperty/ModelProperty.d.ts +123 -0
- package/dist/ModelProperty/ModelProperty.d.ts.map +1 -0
- package/dist/ModelProperty/service/actors/compareAndMarkDraft.d.ts.map +1 -0
- package/dist/ModelProperty/service/actors/saveToSchema.d.ts.map +1 -0
- package/dist/ModelProperty/service/actors/validateProperty.d.ts.map +1 -0
- package/dist/ModelProperty/service/modelPropertyMachine.d.ts +183 -0
- package/dist/ModelProperty/service/modelPropertyMachine.d.ts.map +1 -0
- package/dist/ModelProperty-Cr3BmgkC.js +2218 -0
- package/dist/ModelProperty-Cr3BmgkC.js.map +1 -0
- package/dist/PathResolver-BErmcZqP.js +191 -0
- package/dist/PathResolver-BErmcZqP.js.map +1 -0
- package/dist/PathResolver-DJdxE_OK.js +78 -0
- package/dist/PathResolver-DJdxE_OK.js.map +1 -0
- package/dist/QueryClient-D2mv63gP.js +34 -0
- package/dist/QueryClient-D2mv63gP.js.map +1 -0
- package/dist/QueryClient-DIu9c-w6.js +47 -0
- package/dist/QueryClient-DIu9c-w6.js.map +1 -0
- package/dist/Schema/Schema.d.ts +165 -0
- package/dist/Schema/Schema.d.ts.map +1 -0
- package/dist/Schema/errors.d.ts.map +1 -0
- package/dist/Schema/index.d.ts.map +1 -0
- package/dist/Schema/service/actors/checkExistingSchema.d.ts.map +1 -0
- package/dist/Schema/service/actors/createModelInstances.d.ts.map +1 -0
- package/dist/Schema/service/actors/createPropertyInstances.d.ts.map +1 -0
- package/dist/Schema/service/actors/loadOrCreateSchema.d.ts.map +1 -0
- package/dist/Schema/service/actors/validateSchema.d.ts.map +1 -0
- package/dist/Schema/service/actors/verifyModelInstancesInCache.d.ts.map +1 -0
- package/dist/Schema/service/actors/verifyModelsInDb.d.ts.map +1 -0
- package/dist/Schema/service/actors/verifyPropertiesInDb.d.ts.map +1 -0
- package/dist/Schema/service/actors/verifyPropertyInstancesInCache.d.ts.map +1 -0
- package/dist/Schema/service/actors/verifySchemaInDb.d.ts.map +1 -0
- package/dist/Schema/service/actors/writeModelsToDb.d.ts.map +1 -0
- package/dist/Schema/service/actors/writePropertiesToDb.d.ts.map +1 -0
- package/dist/Schema/service/actors/writeSchemaToDb.d.ts.map +1 -0
- package/dist/Schema/service/addModelsMachine.d.ts +123 -0
- package/dist/Schema/service/addModelsMachine.d.ts.map +1 -0
- package/dist/Schema/service/schemaMachine.d.ts +512 -0
- package/dist/Schema/service/schemaMachine.d.ts.map +1 -0
- package/dist/Schema/service/validation/SchemaValidationService.d.ts.map +1 -0
- package/dist/Schema/validation.d.ts.map +1 -0
- package/dist/Schema-DeKabJ0T.js +5745 -0
- package/dist/Schema-DeKabJ0T.js.map +1 -0
- package/dist/SchemaValidationService-cTlURuDt.js +563 -0
- package/dist/SchemaValidationService-cTlURuDt.js.map +1 -0
- package/dist/browser/db/Db.d.ts.map +1 -0
- package/dist/browser/db/drizzleFiles.d.ts.map +1 -0
- package/dist/browser/db/sqlWasmClient.d.ts.map +1 -0
- package/dist/browser/helpers/ArweaveClient.d.ts +31 -0
- package/dist/browser/helpers/ArweaveClient.d.ts.map +1 -0
- package/dist/browser/helpers/EasClient.d.ts.map +1 -0
- package/dist/browser/helpers/FileManager.d.ts.map +1 -0
- package/dist/browser/helpers/PathResolver.d.ts.map +1 -0
- package/dist/browser/helpers/QueryClient.d.ts.map +1 -0
- package/dist/browser/helpers/index.d.ts +4 -0
- package/dist/browser/helpers/index.d.ts.map +1 -0
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/react/OPFSImage.d.ts.map +1 -0
- package/dist/browser/react/SeedImage.d.ts.map +1 -0
- package/dist/browser/react/client.d.ts.map +1 -0
- package/dist/browser/react/db.d.ts.map +1 -0
- package/dist/browser/react/index.d.ts.map +1 -0
- package/dist/browser/react/item.d.ts +38 -0
- package/dist/browser/react/item.d.ts.map +1 -0
- package/dist/browser/react/itemProperty.d.ts.map +1 -0
- package/dist/browser/react/liveQuery.d.ts.map +1 -0
- package/dist/browser/react/model.d.ts.map +1 -0
- package/dist/browser/react/modelProperty.d.ts.map +1 -0
- package/dist/browser/react/schema.d.ts.map +1 -0
- package/dist/browser/react/services.d.ts.map +1 -0
- package/dist/browser/react/trash.d.ts +6 -0
- package/dist/browser/react/trash.d.ts.map +1 -0
- package/dist/browser/seed.d.ts +21 -0
- package/dist/browser/seed.d.ts.map +1 -0
- package/dist/browser/workers/FileDownloader.d.ts.map +1 -0
- package/dist/browser/workers/ImageResizer.d.ts.map +1 -0
- package/dist/browser/workers/content-hash.d.ts.map +1 -0
- package/dist/browser/workers/dbWorker.d.ts.map +1 -0
- package/dist/browser/workers/filesDownload.d.ts.map +1 -0
- package/dist/browser/workers/imageResize.d.ts.map +1 -0
- package/dist/cjs/ModelProperty-MkN5Rmx7.js +1866 -0
- package/dist/cjs/ModelProperty-MkN5Rmx7.js.map +1 -0
- package/dist/cjs/Schema-B5cr_JVK.js +5762 -0
- package/dist/cjs/Schema-B5cr_JVK.js.map +1 -0
- package/dist/cjs/SchemaValidationService-BgIzc3-r.js +579 -0
- package/dist/cjs/SchemaValidationService-BgIzc3-r.js.map +1 -0
- package/dist/cjs/getItem-CVJJPky2.js +55 -0
- package/dist/cjs/getItem-CVJJPky2.js.map +1 -0
- package/dist/cjs/getPublishPayload-DbOc3WA-.js +323 -0
- package/dist/cjs/getPublishPayload-DbOc3WA-.js.map +1 -0
- package/dist/cjs/getPublishUploads-NzioLz-3.js +229 -0
- package/dist/cjs/getPublishUploads-NzioLz-3.js.map +1 -0
- package/dist/cjs/getSegmentedItemProperties-BsaklLwI.js +61 -0
- package/dist/cjs/getSegmentedItemProperties-BsaklLwI.js.map +1 -0
- package/dist/cjs/index-BmIVfqGN.js +16231 -0
- package/dist/cjs/index-BmIVfqGN.js.map +1 -0
- package/dist/cjs/index-C_0angRB.js +57 -0
- package/dist/cjs/index-C_0angRB.js.map +1 -0
- package/dist/client/BaseClientManager.d.ts.map +1 -0
- package/dist/client/ClientManager.d.ts.map +1 -0
- package/dist/client/actions/setAddresses.d.ts.map +1 -0
- package/dist/client/actors/addModelsToDb.d.ts.map +1 -0
- package/dist/client/actors/addModelsToStore.d.ts.map +1 -0
- package/dist/client/actors/dbInit.d.ts.map +1 -0
- package/dist/client/actors/fileSystemInit.d.ts.map +1 -0
- package/dist/client/actors/platformClassesInit.d.ts.map +1 -0
- package/dist/client/actors/processSchemaFiles.d.ts.map +1 -0
- package/dist/client/actors/saveAppState.d.ts.map +1 -0
- package/dist/client/actors/saveConfig.d.ts.map +1 -0
- package/dist/client/clientManagerMachine.d.ts.map +1 -0
- package/dist/client/constants.d.ts +89 -0
- package/dist/client/constants.d.ts.map +1 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/db/Db/BaseDb.d.ts +42 -0
- package/dist/db/Db/BaseDb.d.ts.map +1 -0
- package/dist/db/configs/dev.schema.config.d.ts.map +1 -0
- package/dist/db/read/getExistingItem.d.ts +12 -0
- package/dist/db/read/getExistingItem.d.ts.map +1 -0
- package/dist/db/read/getItem.d.ts.map +1 -0
- package/dist/db/read/getItemData.d.ts.map +1 -0
- package/dist/db/read/getItemProperties.d.ts.map +1 -0
- package/dist/db/read/getItemProperty.d.ts.map +1 -0
- package/dist/db/read/getItems.d.ts.map +1 -0
- package/dist/db/read/getMetadata.d.ts.map +1 -0
- package/dist/db/read/getModelSchemas.d.ts.map +1 -0
- package/dist/db/read/getModels.d.ts.map +1 -0
- package/dist/db/read/getPropertyData.d.ts.map +1 -0
- package/dist/db/read/getPublishPayload.d.ts.map +1 -0
- package/dist/db/read/getPublishUploads.d.ts +16 -0
- package/dist/db/read/getPublishUploads.d.ts.map +1 -0
- package/dist/db/read/getRelationValueData.d.ts.map +1 -0
- package/dist/db/read/getSchemaUidForModel.d.ts.map +1 -0
- package/dist/db/read/getSeedData.d.ts.map +1 -0
- package/dist/db/read/getStorageTransactionIdForSeedUid.d.ts.map +1 -0
- package/dist/db/read/getVersionData.d.ts.map +1 -0
- package/dist/db/read/getVersionsForVersionUids.d.ts.map +1 -0
- package/dist/db/read/subqueries/metadataLatest.d.ts.map +1 -0
- package/dist/db/read/subqueries/versionData.d.ts.map +1 -0
- package/dist/db/write/createMetadata.d.ts.map +1 -0
- package/dist/db/write/createNewItem.d.ts.map +1 -0
- package/dist/db/write/createSeed.d.ts.map +1 -0
- package/dist/db/write/createSeeds.d.ts.map +1 -0
- package/dist/db/write/createVersion.d.ts.map +1 -0
- package/dist/db/write/deleteItem.d.ts.map +1 -0
- package/dist/db/write/recoverDeletedItem.d.ts.map +1 -0
- package/dist/db/write/saveAppState.d.ts.map +1 -0
- package/dist/db/write/saveMetadata.d.ts.map +1 -0
- package/dist/db/write/updateItemPropertyValue.d.ts +13 -0
- package/dist/db/write/updateItemPropertyValue.d.ts.map +1 -0
- package/dist/db/write/updateMetadata.d.ts.map +1 -0
- package/dist/eas.d.ts.map +1 -0
- package/dist/eslint-rules/align-imports.d.ts.map +1 -0
- package/dist/eventBus.d.ts.map +1 -0
- package/dist/events/files/download.d.ts +9 -0
- package/dist/events/files/download.d.ts.map +1 -0
- package/dist/events/files/index.d.ts.map +1 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/item/index.d.ts +2 -0
- package/dist/events/item/index.d.ts.map +1 -0
- package/dist/events/item/publish.d.ts.map +1 -0
- package/dist/events/item/syncDbWithEas.d.ts.map +1 -0
- package/dist/events/services/allItems.d.ts.map +1 -0
- package/dist/events/services/index.d.ts.map +1 -0
- package/dist/feed.d.ts.map +1 -0
- package/dist/getItem-CcttmUY_.js +38 -0
- package/dist/getItem-CcttmUY_.js.map +1 -0
- package/dist/getPublishPayload-NFpqbd_H.js +307 -0
- package/dist/getPublishPayload-NFpqbd_H.js.map +1 -0
- package/dist/getPublishUploads-Cpb9vgwE.js +193 -0
- package/dist/getPublishUploads-Cpb9vgwE.js.map +1 -0
- package/dist/getSegmentedItemProperties-DiyQPMgI.js +59 -0
- package/dist/getSegmentedItemProperties-DiyQPMgI.js.map +1 -0
- package/dist/graphql/fragments/Attestation.d.ts.map +1 -0
- package/dist/graphql/fragments/Schema.d.ts.map +1 -0
- package/dist/graphql/fragments/index.d.ts.map +1 -0
- package/dist/graphql/gql/fragment-masking.d.ts.map +1 -0
- package/dist/graphql/gql/gql.d.ts.map +1 -0
- package/dist/graphql/gql/graphql.d.ts.map +1 -0
- package/dist/graphql/gql/index.d.ts.map +1 -0
- package/dist/helpers/ArweaveClient/BaseArweaveClient.d.ts +71 -0
- package/dist/helpers/ArweaveClient/BaseArweaveClient.d.ts.map +1 -0
- package/dist/helpers/ArweaveClient/index.d.ts +30 -0
- package/dist/helpers/ArweaveClient/index.d.ts.map +1 -0
- package/dist/helpers/ArweaveClient/queries.d.ts +13 -0
- package/dist/helpers/ArweaveClient/queries.d.ts.map +1 -0
- package/dist/helpers/EasClient/BaseEasClient.d.ts +10 -0
- package/dist/helpers/EasClient/BaseEasClient.d.ts.map +1 -0
- package/dist/helpers/FileManager/BaseFileManager.d.ts.map +1 -0
- package/dist/helpers/PathResolver/BasePathResolver.d.ts.map +1 -0
- package/dist/helpers/QueryClient/BaseQueryClient.d.ts.map +1 -0
- package/dist/helpers/constants.d.ts +67 -0
- package/dist/helpers/constants.d.ts.map +1 -0
- package/dist/helpers/crypto.d.ts.map +1 -0
- package/dist/helpers/db.d.ts.map +1 -0
- package/dist/helpers/entity/entityCache.d.ts +49 -0
- package/dist/helpers/entity/entityCache.d.ts.map +1 -0
- package/dist/helpers/entity/entityCommon.d.ts +23 -0
- package/dist/helpers/entity/entityCommon.d.ts.map +1 -0
- package/dist/helpers/entity/entityFind.d.ts +52 -0
- package/dist/helpers/entity/entityFind.d.ts.map +1 -0
- package/dist/helpers/entity/entityLiveQuery.d.ts +68 -0
- package/dist/helpers/entity/entityLiveQuery.d.ts.map +1 -0
- package/dist/helpers/entity/entityUnload.d.ts +50 -0
- package/dist/helpers/entity/entityUnload.d.ts.map +1 -0
- package/dist/helpers/entity/index.d.ts +10 -0
- package/dist/helpers/entity/index.d.ts.map +1 -0
- package/dist/helpers/environment.d.ts.map +1 -0
- package/dist/helpers/file/download/actors.d.ts +17 -0
- package/dist/helpers/file/download/actors.d.ts.map +1 -0
- package/dist/helpers/file/download/index.d.ts +70 -0
- package/dist/helpers/file/download/index.d.ts.map +1 -0
- package/dist/helpers/file/fetchAll/actors.d.ts +16 -0
- package/dist/helpers/file/fetchAll/actors.d.ts.map +1 -0
- package/dist/helpers/file/fetchAll/index.d.ts +58 -0
- package/dist/helpers/file/fetchAll/index.d.ts.map +1 -0
- package/dist/helpers/file/queries.d.ts.map +1 -0
- package/dist/helpers/files.d.ts.map +1 -0
- package/dist/helpers/getSchemaForItemProperty.d.ts.map +1 -0
- package/dist/helpers/getSegmentedItemProperties.d.ts +10 -0
- package/dist/helpers/getSegmentedItemProperties.d.ts.map +1 -0
- package/dist/helpers/image/queries.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +28 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/model.d.ts.map +1 -0
- package/dist/helpers/property/index.d.ts.map +1 -0
- package/dist/helpers/property.d.ts.map +1 -0
- package/dist/helpers/reactiveProxy.d.ts.map +1 -0
- package/dist/helpers/schema.d.ts.map +1 -0
- package/dist/helpers/updateMachineContext.d.ts.map +1 -0
- package/dist/helpers/updateSchema.d.ts.map +1 -0
- package/dist/helpers/waitForEntityIdle.d.ts +16 -0
- package/dist/helpers/waitForEntityIdle.d.ts.map +1 -0
- package/dist/imports/index.d.ts +4 -0
- package/dist/imports/index.d.ts.map +1 -0
- package/dist/imports/json.d.ts.map +1 -0
- package/dist/imports/markdown.d.ts.map +1 -0
- package/dist/index-CRuq6HVi.js +18 -0
- package/dist/index-CRuq6HVi.js.map +1 -0
- package/dist/index-r45w9hEq.js +23 -0
- package/dist/index-r45w9hEq.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/interfaces/IDb.d.ts.map +1 -0
- package/dist/interfaces/IEasClient.d.ts.map +1 -0
- package/dist/interfaces/IItem.d.ts.map +1 -0
- package/dist/interfaces/IItemProperty.d.ts +35 -0
- package/dist/interfaces/IItemProperty.d.ts.map +1 -0
- package/dist/interfaces/IQueryClient.d.ts.map +1 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/json-I3vJhXo8.js +14851 -0
- package/dist/json-I3vJhXo8.js.map +1 -0
- package/dist/main.cjs +75 -78
- package/dist/main.cjs.map +1 -1
- package/dist/main.js +2715 -32
- package/dist/main.js.map +1 -1
- package/dist/node/codegen/drizzle.d.ts.map +1 -0
- package/dist/node/codegen/index.d.ts.map +1 -0
- package/dist/node/codegen/ts-to-proto.d.ts.map +1 -0
- package/dist/node/constants.d.ts.map +1 -0
- package/dist/node/db/Db.d.ts.map +1 -0
- package/dist/node/db/index.d.ts.map +1 -0
- package/dist/node/db/node.app.db.config.d.ts.map +1 -0
- package/dist/node/helpers/ArweaveClient.d.ts +31 -0
- package/dist/node/helpers/ArweaveClient.d.ts.map +1 -0
- package/dist/node/helpers/EasClient.d.ts.map +1 -0
- package/dist/node/helpers/FileManager.d.ts.map +1 -0
- package/dist/node/helpers/PathResolver.d.ts.map +1 -0
- package/dist/node/helpers/QueryClient.d.ts.map +1 -0
- package/dist/node/helpers/index.d.ts.map +1 -0
- package/dist/node/helpers/scripts.d.ts.map +1 -0
- package/dist/node/index.d.ts +24 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/seed.d.ts.map +1 -0
- package/dist/node/webpack/fs-proxy.d.ts.map +1 -0
- package/dist/node/webpack/index.d.ts.map +1 -0
- package/dist/node.js +524 -34
- package/dist/node.js.map +1 -1
- package/dist/property-Dy09KTxg.js +274 -0
- package/dist/property-Dy09KTxg.js.map +1 -0
- package/dist/queries-LZYSuhtz.js +16 -0
- package/dist/queries-LZYSuhtz.js.map +1 -0
- package/dist/seedSchema/AppStateSchema.d.ts.map +1 -0
- package/dist/seedSchema/ConfigSchema.d.ts.map +1 -0
- package/dist/seedSchema/MetadataSchema.d.ts.map +1 -0
- package/dist/seedSchema/ModelSchema.d.ts.map +1 -0
- package/dist/seedSchema/ModelSchemaSchema.d.ts.map +1 -0
- package/dist/seedSchema/ModelSchemaSchema.ts +2 -2
- package/dist/seedSchema/ModelUidSchema.d.ts.map +1 -0
- package/dist/seedSchema/ModelUidSchema.ts +2 -2
- package/dist/seedSchema/PropertyUidSchema.d.ts.map +1 -0
- package/dist/seedSchema/PropertyUidSchema.ts +1 -1
- package/dist/seedSchema/SchemaSchema.d.ts.map +1 -0
- package/dist/seedSchema/SeedSchema.d.ts.map +1 -0
- package/dist/seedSchema/VersionSchema.d.ts.map +1 -0
- package/dist/seedSchema/index.d.ts +11 -0
- package/dist/seedSchema/index.d.ts.map +1 -0
- package/dist/seedSchema/index.ts +10 -10
- package/dist/services/events.d.ts.map +1 -0
- package/dist/services/publish/actors/createPublishAttempt.d.ts.map +1 -0
- package/dist/services/publish/actors/preparePublishRequestData.d.ts.map +1 -0
- package/dist/services/publish/actors/upload.d.ts.map +1 -0
- package/dist/services/publish/actors/validateItemData.d.ts.map +1 -0
- package/dist/services/publish/publishMachine.d.ts.map +1 -0
- package/dist/services/write/actors/validateEntity.d.ts +6 -0
- package/dist/services/write/actors/validateEntity.d.ts.map +1 -0
- package/dist/services/write/actors/writeToDatabase.d.ts.map +1 -0
- package/dist/services/write/writeProcessMachine.d.ts +83 -0
- package/dist/services/write/writeProcessMachine.d.ts.map +1 -0
- package/dist/stores/eas.d.ts.map +1 -0
- package/dist/types/arweave.d.ts +56 -0
- package/dist/types/arweave.d.ts.map +1 -0
- package/dist/types/browser.d.ts.map +1 -0
- package/dist/types/db.d.ts.map +1 -0
- package/dist/types/fileManager.d.ts.map +1 -0
- package/dist/types/helpers.d.ts.map +1 -0
- package/dist/types/import.d.ts.map +1 -0
- package/dist/types/index.d.ts +45 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/item.d.ts +72 -0
- package/dist/types/item.d.ts.map +1 -0
- package/dist/types/machines.d.ts.map +1 -0
- package/dist/types/model.d.ts.map +1 -0
- package/dist/types/property.d.ts.map +1 -0
- package/dist/types/seedProtocol.d.ts.map +1 -0
- package/dist/types/services.d.ts.map +1 -0
- package/dist/vite/easFix.d.ts +2 -0
- package/dist/vite/easFix.d.ts.map +1 -0
- package/dist/vite/index.d.ts +48 -0
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite.cjs +217 -0
- package/dist/vite.cjs.map +1 -0
- package/dist/vite.js +215 -0
- package/dist/vite.js.map +1 -0
- package/package.json +22 -9
- package/dist/Item/Item.js +0 -954
- package/dist/Item/Item.js.map +0 -1
- package/dist/Item/queries.js +0 -66
- package/dist/Item/queries.js.map +0 -1
- package/dist/Item/service/actors/fetchDataFromEas.js +0 -94
- package/dist/Item/service/actors/fetchDataFromEas.js.map +0 -1
- package/dist/Item/service/actors/hydrateExistingItem.js +0 -124
- package/dist/Item/service/actors/hydrateExistingItem.js.map +0 -1
- package/dist/Item/service/actors/hydrateNewItem.js +0 -28
- package/dist/Item/service/actors/hydrateNewItem.js.map +0 -1
- package/dist/Item/service/actors/initialize.js +0 -50
- package/dist/Item/service/actors/initialize.js.map +0 -1
- package/dist/Item/service/actors/loadOrCreateItem.js +0 -210
- package/dist/Item/service/actors/loadOrCreateItem.js.map +0 -1
- package/dist/Item/service/actors/reload.js +0 -26
- package/dist/Item/service/actors/reload.js.map +0 -1
- package/dist/Item/service/actors/waitForDb.js +0 -22
- package/dist/Item/service/actors/waitForDb.js.map +0 -1
- package/dist/Item/service/itemMachineSingle.js +0 -211
- package/dist/Item/service/itemMachineSingle.js.map +0 -1
- package/dist/ItemProperty/ItemProperty.js +0 -613
- package/dist/ItemProperty/ItemProperty.js.map +0 -1
- package/dist/ItemProperty/service/actors/hydrateFromDb.js +0 -207
- package/dist/ItemProperty/service/actors/hydrateFromDb.js.map +0 -1
- package/dist/ItemProperty/service/actors/initialize.js +0 -74
- package/dist/ItemProperty/service/actors/initialize.js.map +0 -1
- package/dist/ItemProperty/service/actors/loadOrCreateProperty.js +0 -125
- package/dist/ItemProperty/service/actors/loadOrCreateProperty.js.map +0 -1
- package/dist/ItemProperty/service/actors/resolveRelatedValue.js +0 -321
- package/dist/ItemProperty/service/actors/resolveRelatedValue.js.map +0 -1
- package/dist/ItemProperty/service/actors/resolveRemoteStorage.js +0 -62
- package/dist/ItemProperty/service/actors/resolveRemoteStorage.js.map +0 -1
- package/dist/ItemProperty/service/actors/saveValueToDb/analyzeInput.js +0 -111
- package/dist/ItemProperty/service/actors/saveValueToDb/analyzeInput.js.map +0 -1
- package/dist/ItemProperty/service/actors/saveValueToDb/saveImage.js +0 -178
- package/dist/ItemProperty/service/actors/saveValueToDb/saveImage.js.map +0 -1
- package/dist/ItemProperty/service/actors/saveValueToDb/saveItemStorage.js +0 -121
- package/dist/ItemProperty/service/actors/saveValueToDb/saveItemStorage.js.map +0 -1
- package/dist/ItemProperty/service/actors/saveValueToDb/saveRelation.js +0 -85
- package/dist/ItemProperty/service/actors/saveValueToDb/saveRelation.js.map +0 -1
- package/dist/ItemProperty/service/actors/waitForDb.js +0 -22
- package/dist/ItemProperty/service/actors/waitForDb.js.map +0 -1
- package/dist/ItemProperty/service/propertyMachine.js +0 -233
- package/dist/ItemProperty/service/propertyMachine.js.map +0 -1
- package/dist/Model/Model.js +0 -1831
- package/dist/Model/Model.js.map +0 -1
- package/dist/Model/index.js +0 -8
- package/dist/Model/index.js.map +0 -1
- package/dist/Model/service/actors/createModelProperties.js +0 -102
- package/dist/Model/service/actors/createModelProperties.js.map +0 -1
- package/dist/Model/service/actors/loadOrCreateModel.js +0 -397
- package/dist/Model/service/actors/loadOrCreateModel.js.map +0 -1
- package/dist/Model/service/actors/validateModel.js +0 -123
- package/dist/Model/service/actors/validateModel.js.map +0 -1
- package/dist/Model/service/modelMachine.js +0 -385
- package/dist/Model/service/modelMachine.js.map +0 -1
- package/dist/ModelProperty/ModelProperty.js +0 -841
- package/dist/ModelProperty/ModelProperty.js.map +0 -1
- package/dist/ModelProperty/service/actors/compareAndMarkDraft.js +0 -119
- package/dist/ModelProperty/service/actors/compareAndMarkDraft.js.map +0 -1
- package/dist/ModelProperty/service/actors/saveToSchema.js +0 -108
- package/dist/ModelProperty/service/actors/saveToSchema.js.map +0 -1
- package/dist/ModelProperty/service/actors/validateProperty.js +0 -129
- package/dist/ModelProperty/service/actors/validateProperty.js.map +0 -1
- package/dist/ModelProperty/service/modelPropertyMachine.js +0 -275
- package/dist/ModelProperty/service/modelPropertyMachine.js.map +0 -1
- package/dist/Schema/Schema.js +0 -1732
- package/dist/Schema/Schema.js.map +0 -1
- package/dist/Schema/errors.js +0 -14
- package/dist/Schema/errors.js.map +0 -1
- package/dist/Schema/index.js +0 -7
- package/dist/Schema/index.js.map +0 -1
- package/dist/Schema/service/actors/checkExistingSchema.js +0 -454
- package/dist/Schema/service/actors/checkExistingSchema.js.map +0 -1
- package/dist/Schema/service/actors/createModelInstances.js +0 -71
- package/dist/Schema/service/actors/createModelInstances.js.map +0 -1
- package/dist/Schema/service/actors/createPropertyInstances.js +0 -86
- package/dist/Schema/service/actors/createPropertyInstances.js.map +0 -1
- package/dist/Schema/service/actors/loadOrCreateSchema.js +0 -1336
- package/dist/Schema/service/actors/loadOrCreateSchema.js.map +0 -1
- package/dist/Schema/service/actors/validateSchema.js +0 -65
- package/dist/Schema/service/actors/validateSchema.js.map +0 -1
- package/dist/Schema/service/actors/verifyModelInstancesInCache.js +0 -88
- package/dist/Schema/service/actors/verifyModelInstancesInCache.js.map +0 -1
- package/dist/Schema/service/actors/verifyModelsInDb.js +0 -107
- package/dist/Schema/service/actors/verifyModelsInDb.js.map +0 -1
- package/dist/Schema/service/actors/verifyPropertiesInDb.js +0 -131
- package/dist/Schema/service/actors/verifyPropertiesInDb.js.map +0 -1
- package/dist/Schema/service/actors/verifyPropertyInstancesInCache.js +0 -88
- package/dist/Schema/service/actors/verifyPropertyInstancesInCache.js.map +0 -1
- package/dist/Schema/service/actors/verifySchemaInDb.js +0 -85
- package/dist/Schema/service/actors/verifySchemaInDb.js.map +0 -1
- package/dist/Schema/service/actors/writeModelsToDb.js +0 -185
- package/dist/Schema/service/actors/writeModelsToDb.js.map +0 -1
- package/dist/Schema/service/actors/writePropertiesToDb.js +0 -69
- package/dist/Schema/service/actors/writePropertiesToDb.js.map +0 -1
- package/dist/Schema/service/actors/writeSchemaToDb.js +0 -137
- package/dist/Schema/service/actors/writeSchemaToDb.js.map +0 -1
- package/dist/Schema/service/addModelsMachine.js +0 -545
- package/dist/Schema/service/addModelsMachine.js.map +0 -1
- package/dist/Schema/service/schemaMachine.js +0 -667
- package/dist/Schema/service/schemaMachine.js.map +0 -1
- package/dist/Schema/service/validation/SchemaValidationService.js +0 -565
- package/dist/Schema/service/validation/SchemaValidationService.js.map +0 -1
- package/dist/Schema/validation.js +0 -15
- package/dist/Schema/validation.js.map +0 -1
- package/dist/browser/db/Db.js +0 -484
- package/dist/browser/db/Db.js.map +0 -1
- package/dist/browser/db/drizzleFiles.js +0 -1022
- package/dist/browser/db/drizzleFiles.js.map +0 -1
- package/dist/browser/helpers/ArweaveClient.js +0 -13
- package/dist/browser/helpers/ArweaveClient.js.map +0 -1
- package/dist/browser/helpers/EasClient.js +0 -16
- package/dist/browser/helpers/EasClient.js.map +0 -1
- package/dist/browser/helpers/FileManager.js +0 -415
- package/dist/browser/helpers/FileManager.js.map +0 -1
- package/dist/browser/helpers/PathResolver.js +0 -64
- package/dist/browser/helpers/PathResolver.js.map +0 -1
- package/dist/browser/helpers/QueryClient.js +0 -33
- package/dist/browser/helpers/QueryClient.js.map +0 -1
- package/dist/browser/react/client.js +0 -16
- package/dist/browser/react/client.js.map +0 -1
- package/dist/browser/react/db.js +0 -7
- package/dist/browser/react/db.js.map +0 -1
- package/dist/browser/react/item.js +0 -192
- package/dist/browser/react/item.js.map +0 -1
- package/dist/browser/react/itemProperty.js +0 -545
- package/dist/browser/react/itemProperty.js.map +0 -1
- package/dist/browser/react/liveQuery.js +0 -95
- package/dist/browser/react/liveQuery.js.map +0 -1
- package/dist/browser/react/model.js +0 -276
- package/dist/browser/react/model.js.map +0 -1
- package/dist/browser/react/modelProperty.js +0 -412
- package/dist/browser/react/modelProperty.js.map +0 -1
- package/dist/browser/react/schema.js +0 -387
- package/dist/browser/react/schema.js.map +0 -1
- package/dist/browser/react/services.js +0 -47
- package/dist/browser/react/services.js.map +0 -1
- package/dist/browser/react/trash.js +0 -25
- package/dist/browser/react/trash.js.map +0 -1
- package/dist/browser/workers/FileDownloader.js +0 -52
- package/dist/browser/workers/FileDownloader.js.map +0 -1
- package/dist/browser/workers/ImageResizer.js +0 -63
- package/dist/browser/workers/ImageResizer.js.map +0 -1
- package/dist/browser/workers/filesDownload.js +0 -245
- package/dist/browser/workers/filesDownload.js.map +0 -1
- package/dist/browser/workers/imageResize.js +0 -382
- package/dist/browser/workers/imageResize.js.map +0 -1
- package/dist/client/ClientManager.js +0 -177
- package/dist/client/ClientManager.js.map +0 -1
- package/dist/client/actors/addModelsToDb.js +0 -150
- package/dist/client/actors/addModelsToDb.js.map +0 -1
- package/dist/client/actors/addModelsToStore.js +0 -28
- package/dist/client/actors/addModelsToStore.js.map +0 -1
- package/dist/client/actors/dbInit.js +0 -38
- package/dist/client/actors/dbInit.js.map +0 -1
- package/dist/client/actors/fileSystemInit.js +0 -43
- package/dist/client/actors/fileSystemInit.js.map +0 -1
- package/dist/client/actors/platformClassesInit.js +0 -175
- package/dist/client/actors/platformClassesInit.js.map +0 -1
- package/dist/client/actors/processSchemaFiles.js +0 -169
- package/dist/client/actors/processSchemaFiles.js.map +0 -1
- package/dist/client/actors/saveAppState.js +0 -80
- package/dist/client/actors/saveAppState.js.map +0 -1
- package/dist/client/actors/saveConfig.js +0 -110
- package/dist/client/actors/saveConfig.js.map +0 -1
- package/dist/client/clientManagerMachine.js +0 -191
- package/dist/client/clientManagerMachine.js.map +0 -1
- package/dist/client/constants.js +0 -80
- package/dist/client/constants.js.map +0 -1
- package/dist/db/Db/BaseDb.js +0 -55
- package/dist/db/Db/BaseDb.js.map +0 -1
- package/dist/db/read/getExistingItem.js +0 -33
- package/dist/db/read/getExistingItem.js.map +0 -1
- package/dist/db/read/getItem.js +0 -26
- package/dist/db/read/getItem.js.map +0 -1
- package/dist/db/read/getItemData.js +0 -88
- package/dist/db/read/getItemData.js.map +0 -1
- package/dist/db/read/getItemProperties.js +0 -53
- package/dist/db/read/getItemProperties.js.map +0 -1
- package/dist/db/read/getItemProperty.js +0 -34
- package/dist/db/read/getItemProperty.js.map +0 -1
- package/dist/db/read/getItems.js +0 -53
- package/dist/db/read/getItems.js.map +0 -1
- package/dist/db/read/getMetadata.js +0 -36
- package/dist/db/read/getMetadata.js.map +0 -1
- package/dist/db/read/getModelSchemas.js +0 -63
- package/dist/db/read/getModelSchemas.js.map +0 -1
- package/dist/db/read/getPropertyData.js +0 -42
- package/dist/db/read/getPropertyData.js.map +0 -1
- package/dist/db/read/getPublishPayload.js +0 -294
- package/dist/db/read/getPublishPayload.js.map +0 -1
- package/dist/db/read/getPublishUploads.js +0 -166
- package/dist/db/read/getPublishUploads.js.map +0 -1
- package/dist/db/read/getRelationValueData.js +0 -34
- package/dist/db/read/getRelationValueData.js.map +0 -1
- package/dist/db/read/getSchemaUidForModel.js +0 -28
- package/dist/db/read/getSchemaUidForModel.js.map +0 -1
- package/dist/db/read/getSeedData.js +0 -32
- package/dist/db/read/getSeedData.js.map +0 -1
- package/dist/db/read/getStorageTransactionIdForSeedUid.js +0 -34
- package/dist/db/read/getStorageTransactionIdForSeedUid.js.map +0 -1
- package/dist/db/read/getVersionData.js +0 -37
- package/dist/db/read/getVersionData.js.map +0 -1
- package/dist/db/read/subqueries/metadataLatest.js +0 -39
- package/dist/db/read/subqueries/metadataLatest.js.map +0 -1
- package/dist/db/read/subqueries/versionData.js +0 -31
- package/dist/db/read/subqueries/versionData.js.map +0 -1
- package/dist/db/write/createMetadata.js +0 -94
- package/dist/db/write/createMetadata.js.map +0 -1
- package/dist/db/write/createNewItem.js +0 -43
- package/dist/db/write/createNewItem.js.map +0 -1
- package/dist/db/write/createSeed.js +0 -32
- package/dist/db/write/createSeed.js.map +0 -1
- package/dist/db/write/createSeeds.js +0 -29
- package/dist/db/write/createSeeds.js.map +0 -1
- package/dist/db/write/createVersion.js +0 -29
- package/dist/db/write/createVersion.js.map +0 -1
- package/dist/db/write/deleteItem.js +0 -25
- package/dist/db/write/deleteItem.js.map +0 -1
- package/dist/db/write/saveAppState.js +0 -30
- package/dist/db/write/saveAppState.js.map +0 -1
- package/dist/db/write/saveMetadata.js +0 -26
- package/dist/db/write/saveMetadata.js.map +0 -1
- package/dist/db/write/updateItemPropertyValue.js +0 -165
- package/dist/db/write/updateItemPropertyValue.js.map +0 -1
- package/dist/db/write/updateMetadata.js +0 -38
- package/dist/db/write/updateMetadata.js.map +0 -1
- package/dist/eas.js +0 -176
- package/dist/eas.js.map +0 -1
- package/dist/eventBus.js +0 -6
- package/dist/eventBus.js.map +0 -1
- package/dist/events/files/download.js +0 -191
- package/dist/events/files/download.js.map +0 -1
- package/dist/events/files/index.js +0 -23
- package/dist/events/files/index.js.map +0 -1
- package/dist/events/index.js +0 -28
- package/dist/events/index.js.map +0 -1
- package/dist/events/item/index.js +0 -28
- package/dist/events/item/index.js.map +0 -1
- package/dist/events/item/publish.js +0 -50
- package/dist/events/item/publish.js.map +0 -1
- package/dist/events/item/syncDbWithEas.js +0 -453
- package/dist/events/item/syncDbWithEas.js.map +0 -1
- package/dist/events/services/allItems.js +0 -10
- package/dist/events/services/allItems.js.map +0 -1
- package/dist/events/services/index.js +0 -9
- package/dist/events/services/index.js.map +0 -1
- package/dist/feed.js +0 -534
- package/dist/feed.js.map +0 -1
- package/dist/graphql/gql/gql.js +0 -27
- package/dist/graphql/gql/gql.js.map +0 -1
- package/dist/graphql/gql/graphql.js +0 -129
- package/dist/graphql/gql/graphql.js.map +0 -1
- package/dist/helpers/ArweaveClient/BaseArweaveClient.js +0 -11
- package/dist/helpers/ArweaveClient/BaseArweaveClient.js.map +0 -1
- package/dist/helpers/ArweaveClient/index.js +0 -61
- package/dist/helpers/ArweaveClient/index.js.map +0 -1
- package/dist/helpers/ArweaveClient/queries.js +0 -16
- package/dist/helpers/ArweaveClient/queries.js.map +0 -1
- package/dist/helpers/EasClient/BaseEasClient.js +0 -20
- package/dist/helpers/EasClient/BaseEasClient.js.map +0 -1
- package/dist/helpers/FileManager/BaseFileManager.js +0 -119
- package/dist/helpers/FileManager/BaseFileManager.js.map +0 -1
- package/dist/helpers/PathResolver/BasePathResolver.js +0 -20
- package/dist/helpers/PathResolver/BasePathResolver.js.map +0 -1
- package/dist/helpers/QueryClient/BaseQueryClient.js +0 -11
- package/dist/helpers/QueryClient/BaseQueryClient.js.map +0 -1
- package/dist/helpers/constants.js +0 -107
- package/dist/helpers/constants.js.map +0 -1
- package/dist/helpers/crypto.js +0 -9
- package/dist/helpers/crypto.js.map +0 -1
- package/dist/helpers/db.js +0 -1335
- package/dist/helpers/db.js.map +0 -1
- package/dist/helpers/environment.js +0 -14
- package/dist/helpers/environment.js.map +0 -1
- package/dist/helpers/file/queries.js +0 -15
- package/dist/helpers/file/queries.js.map +0 -1
- package/dist/helpers/getSchemaForItemProperty.js +0 -65
- package/dist/helpers/getSchemaForItemProperty.js.map +0 -1
- package/dist/helpers/getSegmentedItemProperties.js +0 -71
- package/dist/helpers/getSegmentedItemProperties.js.map +0 -1
- package/dist/helpers/index.js +0 -101
- package/dist/helpers/index.js.map +0 -1
- package/dist/helpers/model.js +0 -24
- package/dist/helpers/model.js.map +0 -1
- package/dist/helpers/property/index.js +0 -110
- package/dist/helpers/property/index.js.map +0 -1
- package/dist/helpers/property.js +0 -286
- package/dist/helpers/property.js.map +0 -1
- package/dist/helpers/reactiveProxy.js +0 -87
- package/dist/helpers/reactiveProxy.js.map +0 -1
- package/dist/helpers/schema.js +0 -473
- package/dist/helpers/schema.js.map +0 -1
- package/dist/helpers/updateMachineContext.js +0 -20
- package/dist/helpers/updateMachineContext.js.map +0 -1
- package/dist/helpers/updateSchema.js +0 -721
- package/dist/helpers/updateSchema.js.map +0 -1
- package/dist/imports/json.js +0 -1129
- package/dist/imports/json.js.map +0 -1
- package/dist/imports/markdown.js +0 -141
- package/dist/imports/markdown.js.map +0 -1
- package/dist/node/codegen/drizzle.js +0 -136
- package/dist/node/codegen/drizzle.js.map +0 -1
- package/dist/node/codegen/templates/header.njk +0 -10
- package/dist/node/codegen/templates/index.njk +0 -27
- package/dist/node/codegen/templates/model.njk +0 -18
- package/dist/node/codegen/templates/relations.njk +0 -13
- package/dist/node/codegen/templates/schema.njk +0 -11
- package/dist/node/codegen/templates/table.njk +0 -43
- package/dist/node/db/Db.js +0 -332
- package/dist/node/db/Db.js.map +0 -1
- package/dist/node/helpers/ArweaveClient.js +0 -13
- package/dist/node/helpers/ArweaveClient.js.map +0 -1
- package/dist/node/helpers/EasClient.js +0 -16
- package/dist/node/helpers/EasClient.js.map +0 -1
- package/dist/node/helpers/FileManager.js +0 -151
- package/dist/node/helpers/FileManager.js.map +0 -1
- package/dist/node/helpers/PathResolver.js +0 -182
- package/dist/node/helpers/PathResolver.js.map +0 -1
- package/dist/node/helpers/QueryClient.js +0 -20
- package/dist/node/helpers/QueryClient.js.map +0 -1
- package/dist/node/helpers/index.js +0 -62
- package/dist/node/helpers/index.js.map +0 -1
- package/dist/node/helpers/scripts.js +0 -121
- package/dist/node/helpers/scripts.js.map +0 -1
- package/dist/node/webpack/index.js +0 -96
- package/dist/node/webpack/index.js.map +0 -1
- package/dist/node_modules/.bun/events@3.3.0/node_modules/events/events.d.ts +0 -31
- package/dist/node_modules/.bun/events@3.3.0/node_modules/events/events.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.d.mts +0 -90
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.d.mts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/index.d.ts +0 -28
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/index.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/common.d.ts +0 -7
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/common.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/dumper.d.ts +0 -2
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/dumper.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/exception.d.ts +0 -12
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/exception.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/loader.d.ts +0 -3
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/loader.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/core.d.ts +0 -3
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/core.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/default.d.ts +0 -3
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/default.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/failsafe.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/failsafe.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/json.d.ts +0 -3
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/schema/json.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/schema.d.ts +0 -7
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/schema.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/snippet.d.ts +0 -3
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/snippet.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/binary.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/binary.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/bool.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/bool.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/float.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/float.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/int.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/int.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/map.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/map.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/merge.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/merge.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/null.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/null.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/omap.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/omap.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/pairs.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/pairs.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/seq.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/seq.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/set.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/set.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/str.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/str.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/timestamp.d.ts +0 -4
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type/timestamp.d.ts.map +0 -1
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type.d.ts +0 -18
- package/dist/node_modules/.bun/js-yaml@4.1.1/node_modules/js-yaml/lib/type.d.ts.map +0 -1
- package/dist/node_modules/.bun/process@0.11.10/node_modules/process/index.d.ts +0 -3
- package/dist/node_modules/.bun/process@0.11.10/node_modules/process/index.d.ts.map +0 -1
- package/dist/node_modules/.bun/punycode@1.4.1/node_modules/punycode/punycode.d.ts +0 -1
- package/dist/node_modules/.bun/punycode@1.4.1/node_modules/punycode/punycode.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/add-abort-signal.d.ts +0 -3
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/add-abort-signal.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/buffer_list.d.ts +0 -19
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/buffer_list.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/compose.d.ts +0 -3
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/compose.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/destroy.d.ts +0 -6
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/destroy.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/duplex.d.ts +0 -12
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/duplex.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/duplexify.d.ts +0 -3
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/duplexify.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/end-of-stream.d.ts +0 -7
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/end-of-stream.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/from.d.ts +0 -3
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/from.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/legacy.d.ts +0 -7
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/legacy.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/operators.d.ts +0 -31
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/operators.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/passthrough.d.ts +0 -7
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/passthrough.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/pipeline.d.ts +0 -3
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/pipeline.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/readable.d.ts +0 -55
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/readable.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/state.d.ts +0 -4
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/state.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/transform.d.ts +0 -12
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/transform.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/utils.d.ts +0 -33
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/utils.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/writable.d.ts +0 -59
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/streams/writable.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/validators.d.ts +0 -199
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/internal/validators.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/ours/errors.d.ts +0 -8
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/ours/errors.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/ours/index.d.ts +0 -2
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/ours/index.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/ours/primordials.d.ts +0 -51
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/ours/primordials.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/ours/util/inspect.d.ts +0 -3
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/ours/util/inspect.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/ours/util.d.ts +0 -22
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/ours/util.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/stream/promises.d.ts +0 -4
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/stream/promises.d.ts.map +0 -1
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/stream.d.ts +0 -3
- package/dist/node_modules/.bun/readable-stream@4.7.0/node_modules/readable-stream/lib/stream.d.ts.map +0 -1
- package/dist/node_modules/.bun/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.d.ts +0 -33
- package/dist/node_modules/.bun/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.d.ts.map +0 -1
- package/dist/node_modules/.bun/url@0.11.4/node_modules/url/url.d.ts +0 -26
- package/dist/node_modules/.bun/url@0.11.4/node_modules/url/url.d.ts.map +0 -1
- package/dist/scripts/build-with-tests.d.ts +0 -3
- package/dist/scripts/build-with-tests.d.ts.map +0 -1
- package/dist/scripts/rpcServer.cursor.d.ts +0 -2
- package/dist/scripts/rpcServer.cursor.d.ts.map +0 -1
- package/dist/scripts/rpcServer.d.ts +0 -3
- package/dist/scripts/rpcServer.d.ts.map +0 -1
- package/dist/scripts/sync-versions.d.ts +0 -7
- package/dist/scripts/sync-versions.d.ts.map +0 -1
- package/dist/scripts/track-drizzle-changes.d.ts +0 -13
- package/dist/scripts/track-drizzle-changes.d.ts.map +0 -1
- package/dist/scripts/vite.config.d.ts +0 -3
- package/dist/scripts/vite.config.d.ts.map +0 -1
- package/dist/seedSchema/AppStateSchema.js +0 -11
- package/dist/seedSchema/AppStateSchema.js.map +0 -1
- package/dist/seedSchema/ConfigSchema.js +0 -12
- package/dist/seedSchema/ConfigSchema.js.map +0 -1
- package/dist/seedSchema/MetadataSchema.js +0 -29
- package/dist/seedSchema/MetadataSchema.js.map +0 -1
- package/dist/seedSchema/ModelSchema.js +0 -40
- package/dist/seedSchema/ModelSchema.js.map +0 -1
- package/dist/seedSchema/ModelSchemaSchema.js +0 -12
- package/dist/seedSchema/ModelSchemaSchema.js.map +0 -1
- package/dist/seedSchema/ModelUidSchema.js +0 -18
- package/dist/seedSchema/ModelUidSchema.js.map +0 -1
- package/dist/seedSchema/PropertyUidSchema.js +0 -18
- package/dist/seedSchema/PropertyUidSchema.js.map +0 -1
- package/dist/seedSchema/SEEDPROTOCOL_Seed_Protocol_v1.json.js +0 -94
- package/dist/seedSchema/SEEDPROTOCOL_Seed_Protocol_v1.json.js.map +0 -1
- package/dist/seedSchema/SchemaSchema.js +0 -20
- package/dist/seedSchema/SchemaSchema.js.map +0 -1
- package/dist/seedSchema/SeedSchema.js +0 -16
- package/dist/seedSchema/SeedSchema.js.map +0 -1
- package/dist/seedSchema/VersionSchema.js +0 -17
- package/dist/seedSchema/VersionSchema.js.map +0 -1
- package/dist/seedSchema/index.js +0 -11
- package/dist/seedSchema/index.js.map +0 -1
- package/dist/services/events.js +0 -16
- package/dist/services/events.js.map +0 -1
- package/dist/services/publish/actors/createPublishAttempt.js +0 -14
- package/dist/services/publish/actors/createPublishAttempt.js.map +0 -1
- package/dist/services/publish/actors/preparePublishRequestData.js +0 -76
- package/dist/services/publish/actors/preparePublishRequestData.js.map +0 -1
- package/dist/services/publish/actors/upload.js +0 -61
- package/dist/services/publish/actors/upload.js.map +0 -1
- package/dist/services/publish/actors/validateItemData.js +0 -18
- package/dist/services/publish/actors/validateItemData.js.map +0 -1
- package/dist/services/publish/publishMachine.js +0 -71
- package/dist/services/publish/publishMachine.js.map +0 -1
- package/dist/services/write/actors/validateEntity.js +0 -145
- package/dist/services/write/actors/validateEntity.js.map +0 -1
- package/dist/services/write/actors/writeToDatabase.js +0 -91
- package/dist/services/write/actors/writeToDatabase.js.map +0 -1
- package/dist/services/write/writeProcessMachine.js +0 -233
- package/dist/services/write/writeProcessMachine.js.map +0 -1
- package/dist/src/Item/Item.d.ts +0 -94
- package/dist/src/Item/Item.d.ts.map +0 -1
- package/dist/src/Item/queries.d.ts.map +0 -1
- package/dist/src/Item/service/actors/fetchDataFromEas.d.ts +0 -2
- package/dist/src/Item/service/actors/fetchDataFromEas.d.ts.map +0 -1
- package/dist/src/Item/service/actors/hydrateExistingItem.d.ts.map +0 -1
- package/dist/src/Item/service/actors/hydrateNewItem.d.ts.map +0 -1
- package/dist/src/Item/service/actors/initialize.d.ts.map +0 -1
- package/dist/src/Item/service/actors/loadOrCreateItem.d.ts.map +0 -1
- package/dist/src/Item/service/actors/reload.d.ts.map +0 -1
- package/dist/src/Item/service/actors/saveDataToDb.d.ts +0 -3
- package/dist/src/Item/service/actors/saveDataToDb.d.ts.map +0 -1
- package/dist/src/Item/service/actors/waitForDb.d.ts.map +0 -1
- package/dist/src/Item/service/itemMachineSingle.d.ts +0 -2
- package/dist/src/Item/service/itemMachineSingle.d.ts.map +0 -1
- package/dist/src/ItemProperty/ItemProperty.d.ts +0 -67
- package/dist/src/ItemProperty/ItemProperty.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/hydrateFromDb.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/initialize.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/loadOrCreateProperty.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/resolveRelatedValue.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/resolveRemoteStorage.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/analyzeInput.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/index.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveImage.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveItemStorage.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveRelation.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/waitForDb.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/propertyMachine.d.ts +0 -48
- package/dist/src/ItemProperty/service/propertyMachine.d.ts.map +0 -1
- package/dist/src/Model/Model.d.ts +0 -199
- package/dist/src/Model/Model.d.ts.map +0 -1
- package/dist/src/Model/index.d.ts +0 -26
- package/dist/src/Model/index.d.ts.map +0 -1
- package/dist/src/Model/service/actors/createModelProperties.d.ts.map +0 -1
- package/dist/src/Model/service/actors/loadOrCreateModel.d.ts.map +0 -1
- package/dist/src/Model/service/actors/validateModel.d.ts.map +0 -1
- package/dist/src/Model/service/modelMachine.d.ts +0 -206
- package/dist/src/Model/service/modelMachine.d.ts.map +0 -1
- package/dist/src/ModelProperty/ModelProperty.d.ts +0 -112
- package/dist/src/ModelProperty/ModelProperty.d.ts.map +0 -1
- package/dist/src/ModelProperty/service/actors/compareAndMarkDraft.d.ts.map +0 -1
- package/dist/src/ModelProperty/service/actors/saveToSchema.d.ts.map +0 -1
- package/dist/src/ModelProperty/service/actors/validateProperty.d.ts.map +0 -1
- package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts +0 -183
- package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts.map +0 -1
- package/dist/src/Schema/Schema.d.ts +0 -143
- package/dist/src/Schema/Schema.d.ts.map +0 -1
- package/dist/src/Schema/errors.d.ts.map +0 -1
- package/dist/src/Schema/index.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/checkExistingSchema.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/createModelInstances.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/createPropertyInstances.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/loadOrCreateSchema.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/validateSchema.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/verifyModelInstancesInCache.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/verifyModelsInDb.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/verifyPropertiesInDb.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/verifyPropertyInstancesInCache.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/verifySchemaInDb.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/writeModelsToDb.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/writePropertiesToDb.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/writeSchemaToDb.d.ts.map +0 -1
- package/dist/src/Schema/service/addModelsMachine.d.ts +0 -111
- package/dist/src/Schema/service/addModelsMachine.d.ts.map +0 -1
- package/dist/src/Schema/service/schemaMachine.d.ts +0 -494
- package/dist/src/Schema/service/schemaMachine.d.ts.map +0 -1
- package/dist/src/Schema/service/validation/SchemaValidationService.d.ts.map +0 -1
- package/dist/src/Schema/validation.d.ts.map +0 -1
- package/dist/src/browser/db/Db.d.ts.map +0 -1
- package/dist/src/browser/db/drizzleFiles.d.ts.map +0 -1
- package/dist/src/browser/db/sqlWasmClient.d.ts.map +0 -1
- package/dist/src/browser/helpers/ArweaveClient.d.ts +0 -7
- package/dist/src/browser/helpers/ArweaveClient.d.ts.map +0 -1
- package/dist/src/browser/helpers/EasClient.d.ts.map +0 -1
- package/dist/src/browser/helpers/FileManager.d.ts.map +0 -1
- package/dist/src/browser/helpers/PathResolver.d.ts.map +0 -1
- package/dist/src/browser/helpers/QueryClient.d.ts.map +0 -1
- package/dist/src/browser/helpers/index.d.ts +0 -2
- package/dist/src/browser/helpers/index.d.ts.map +0 -1
- package/dist/src/browser/index.d.ts +0 -6
- package/dist/src/browser/index.d.ts.map +0 -1
- package/dist/src/browser/react/OPFSImage.d.ts.map +0 -1
- package/dist/src/browser/react/SeedImage.d.ts.map +0 -1
- package/dist/src/browser/react/client.d.ts.map +0 -1
- package/dist/src/browser/react/db.d.ts.map +0 -1
- package/dist/src/browser/react/index.d.ts.map +0 -1
- package/dist/src/browser/react/item.d.ts +0 -41
- package/dist/src/browser/react/item.d.ts.map +0 -1
- package/dist/src/browser/react/itemProperty.d.ts.map +0 -1
- package/dist/src/browser/react/liveQuery.d.ts.map +0 -1
- package/dist/src/browser/react/model.d.ts.map +0 -1
- package/dist/src/browser/react/modelProperty.d.ts.map +0 -1
- package/dist/src/browser/react/schema.d.ts.map +0 -1
- package/dist/src/browser/react/services.d.ts.map +0 -1
- package/dist/src/browser/react/trash.d.ts +0 -6
- package/dist/src/browser/react/trash.d.ts.map +0 -1
- package/dist/src/browser/seed.d.ts +0 -10
- package/dist/src/browser/seed.d.ts.map +0 -1
- package/dist/src/browser/workers/FileDownloader.d.ts.map +0 -1
- package/dist/src/browser/workers/ImageResizer.d.ts.map +0 -1
- package/dist/src/browser/workers/content-hash.d.ts.map +0 -1
- package/dist/src/browser/workers/dbWorker.d.ts.map +0 -1
- package/dist/src/browser/workers/filesDownload.d.ts.map +0 -1
- package/dist/src/browser/workers/imageResize.d.ts.map +0 -1
- package/dist/src/client/BaseClientManager.d.ts.map +0 -1
- package/dist/src/client/ClientManager.d.ts.map +0 -1
- package/dist/src/client/actions/setAddresses.d.ts.map +0 -1
- package/dist/src/client/actors/addModelsToDb.d.ts.map +0 -1
- package/dist/src/client/actors/addModelsToStore.d.ts.map +0 -1
- package/dist/src/client/actors/dbInit.d.ts.map +0 -1
- package/dist/src/client/actors/fileSystemInit.d.ts.map +0 -1
- package/dist/src/client/actors/platformClassesInit.d.ts.map +0 -1
- package/dist/src/client/actors/processSchemaFiles.d.ts.map +0 -1
- package/dist/src/client/actors/saveAppState.d.ts.map +0 -1
- package/dist/src/client/actors/saveConfig.d.ts.map +0 -1
- package/dist/src/client/clientManagerMachine.d.ts.map +0 -1
- package/dist/src/client/constants.d.ts +0 -79
- package/dist/src/client/constants.d.ts.map +0 -1
- package/dist/src/client/index.d.ts.map +0 -1
- package/dist/src/db/Db/BaseDb.d.ts +0 -43
- package/dist/src/db/Db/BaseDb.d.ts.map +0 -1
- package/dist/src/db/configs/dev.schema.config.d.ts.map +0 -1
- package/dist/src/db/read/getExistingItem.d.ts +0 -12
- package/dist/src/db/read/getExistingItem.d.ts.map +0 -1
- package/dist/src/db/read/getItem.d.ts.map +0 -1
- package/dist/src/db/read/getItemData.d.ts.map +0 -1
- package/dist/src/db/read/getItemProperties.d.ts.map +0 -1
- package/dist/src/db/read/getItemProperty.d.ts.map +0 -1
- package/dist/src/db/read/getItems.d.ts.map +0 -1
- package/dist/src/db/read/getMetadata.d.ts.map +0 -1
- package/dist/src/db/read/getModelSchemas.d.ts.map +0 -1
- package/dist/src/db/read/getModels.d.ts.map +0 -1
- package/dist/src/db/read/getPropertyData.d.ts.map +0 -1
- package/dist/src/db/read/getPublishPayload.d.ts.map +0 -1
- package/dist/src/db/read/getPublishUploads.d.ts +0 -16
- package/dist/src/db/read/getPublishUploads.d.ts.map +0 -1
- package/dist/src/db/read/getRelationValueData.d.ts.map +0 -1
- package/dist/src/db/read/getSchemaUidForModel.d.ts.map +0 -1
- package/dist/src/db/read/getSeedData.d.ts.map +0 -1
- package/dist/src/db/read/getStorageTransactionIdForSeedUid.d.ts.map +0 -1
- package/dist/src/db/read/getVersionData.d.ts.map +0 -1
- package/dist/src/db/read/getVersionsForVersionUids.d.ts.map +0 -1
- package/dist/src/db/read/subqueries/metadataLatest.d.ts.map +0 -1
- package/dist/src/db/read/subqueries/versionData.d.ts.map +0 -1
- package/dist/src/db/write/createMetadata.d.ts.map +0 -1
- package/dist/src/db/write/createNewItem.d.ts.map +0 -1
- package/dist/src/db/write/createSeed.d.ts.map +0 -1
- package/dist/src/db/write/createSeeds.d.ts.map +0 -1
- package/dist/src/db/write/createVersion.d.ts.map +0 -1
- package/dist/src/db/write/deleteItem.d.ts.map +0 -1
- package/dist/src/db/write/recoverDeletedItem.d.ts.map +0 -1
- package/dist/src/db/write/saveAppState.d.ts.map +0 -1
- package/dist/src/db/write/saveMetadata.d.ts.map +0 -1
- package/dist/src/db/write/updateItemPropertyValue.d.ts +0 -9
- package/dist/src/db/write/updateItemPropertyValue.d.ts.map +0 -1
- package/dist/src/db/write/updateMetadata.d.ts.map +0 -1
- package/dist/src/eas.d.ts.map +0 -1
- package/dist/src/eslint-rules/align-imports.d.ts.map +0 -1
- package/dist/src/eventBus.d.ts.map +0 -1
- package/dist/src/events/files/download.d.ts +0 -6
- package/dist/src/events/files/download.d.ts.map +0 -1
- package/dist/src/events/files/index.d.ts.map +0 -1
- package/dist/src/events/index.d.ts.map +0 -1
- package/dist/src/events/item/create.d.ts +0 -2
- package/dist/src/events/item/create.d.ts.map +0 -1
- package/dist/src/events/item/index.d.ts +0 -3
- package/dist/src/events/item/index.d.ts.map +0 -1
- package/dist/src/events/item/publish.d.ts.map +0 -1
- package/dist/src/events/item/request.d.ts +0 -2
- package/dist/src/events/item/request.d.ts.map +0 -1
- package/dist/src/events/item/requestAll.d.ts +0 -9
- package/dist/src/events/item/requestAll.d.ts.map +0 -1
- package/dist/src/events/item/syncDbWithEas.d.ts.map +0 -1
- package/dist/src/events/services/allItems.d.ts.map +0 -1
- package/dist/src/events/services/index.d.ts.map +0 -1
- package/dist/src/feed.d.ts.map +0 -1
- package/dist/src/graphql/fragments/Attestation.d.ts.map +0 -1
- package/dist/src/graphql/fragments/Schema.d.ts.map +0 -1
- package/dist/src/graphql/fragments/index.d.ts.map +0 -1
- package/dist/src/graphql/gql/fragment-masking.d.ts.map +0 -1
- package/dist/src/graphql/gql/gql.d.ts.map +0 -1
- package/dist/src/graphql/gql/graphql.d.ts.map +0 -1
- package/dist/src/graphql/gql/index.d.ts.map +0 -1
- package/dist/src/helpers/ArweaveClient/BaseArweaveClient.d.ts +0 -7
- package/dist/src/helpers/ArweaveClient/BaseArweaveClient.d.ts.map +0 -1
- package/dist/src/helpers/ArweaveClient/index.d.ts +0 -9
- package/dist/src/helpers/ArweaveClient/index.d.ts.map +0 -1
- package/dist/src/helpers/ArweaveClient/queries.d.ts +0 -6
- package/dist/src/helpers/ArweaveClient/queries.d.ts.map +0 -1
- package/dist/src/helpers/EasClient/BaseEasClient.d.ts +0 -10
- package/dist/src/helpers/EasClient/BaseEasClient.d.ts.map +0 -1
- package/dist/src/helpers/FileManager/BaseFileManager.d.ts.map +0 -1
- package/dist/src/helpers/PathResolver/BasePathResolver.d.ts.map +0 -1
- package/dist/src/helpers/QueryClient/BaseQueryClient.d.ts.map +0 -1
- package/dist/src/helpers/constants.d.ts +0 -58
- package/dist/src/helpers/constants.d.ts.map +0 -1
- package/dist/src/helpers/crypto.d.ts.map +0 -1
- package/dist/src/helpers/db.d.ts.map +0 -1
- package/dist/src/helpers/environment.d.ts.map +0 -1
- package/dist/src/helpers/file/download/actors.d.ts +0 -3
- package/dist/src/helpers/file/download/actors.d.ts.map +0 -1
- package/dist/src/helpers/file/download/index.d.ts +0 -2
- package/dist/src/helpers/file/download/index.d.ts.map +0 -1
- package/dist/src/helpers/file/fetchAll/actors.d.ts +0 -3
- package/dist/src/helpers/file/fetchAll/actors.d.ts.map +0 -1
- package/dist/src/helpers/file/fetchAll/index.d.ts +0 -2
- package/dist/src/helpers/file/fetchAll/index.d.ts.map +0 -1
- package/dist/src/helpers/file/queries.d.ts.map +0 -1
- package/dist/src/helpers/files.d.ts.map +0 -1
- package/dist/src/helpers/getSchemaForItemProperty.d.ts.map +0 -1
- package/dist/src/helpers/getSegmentedItemProperties.d.ts +0 -10
- package/dist/src/helpers/getSegmentedItemProperties.d.ts.map +0 -1
- package/dist/src/helpers/image/queries.d.ts.map +0 -1
- package/dist/src/helpers/index.d.ts +0 -27
- package/dist/src/helpers/index.d.ts.map +0 -1
- package/dist/src/helpers/model.d.ts.map +0 -1
- package/dist/src/helpers/property/index.d.ts.map +0 -1
- package/dist/src/helpers/property.d.ts.map +0 -1
- package/dist/src/helpers/reactiveProxy.d.ts.map +0 -1
- package/dist/src/helpers/schema.d.ts.map +0 -1
- package/dist/src/helpers/updateMachineContext.d.ts.map +0 -1
- package/dist/src/helpers/updateSchema.d.ts.map +0 -1
- package/dist/src/imports/index.d.ts +0 -3
- package/dist/src/imports/index.d.ts.map +0 -1
- package/dist/src/imports/json.d.ts.map +0 -1
- package/dist/src/imports/markdown.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -25
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/interfaces/IDb.d.ts.map +0 -1
- package/dist/src/interfaces/IEasClient.d.ts.map +0 -1
- package/dist/src/interfaces/IItem.d.ts.map +0 -1
- package/dist/src/interfaces/IItemProperty.d.ts +0 -32
- package/dist/src/interfaces/IItemProperty.d.ts.map +0 -1
- package/dist/src/interfaces/IQueryClient.d.ts.map +0 -1
- package/dist/src/interfaces/index.d.ts.map +0 -1
- package/dist/src/node/codegen/drizzle.d.ts.map +0 -1
- package/dist/src/node/codegen/index.d.ts.map +0 -1
- package/dist/src/node/codegen/ts-to-proto.d.ts.map +0 -1
- package/dist/src/node/constants.d.ts.map +0 -1
- package/dist/src/node/db/Db.d.ts.map +0 -1
- package/dist/src/node/db/index.d.ts.map +0 -1
- package/dist/src/node/db/node.app.db.config.d.ts.map +0 -1
- package/dist/src/node/helpers/ArweaveClient.d.ts +0 -7
- package/dist/src/node/helpers/ArweaveClient.d.ts.map +0 -1
- package/dist/src/node/helpers/EasClient.d.ts.map +0 -1
- package/dist/src/node/helpers/FileManager.d.ts.map +0 -1
- package/dist/src/node/helpers/PathResolver.d.ts.map +0 -1
- package/dist/src/node/helpers/QueryClient.d.ts.map +0 -1
- package/dist/src/node/helpers/index.d.ts.map +0 -1
- package/dist/src/node/helpers/scripts.d.ts.map +0 -1
- package/dist/src/node/index.d.ts +0 -25
- package/dist/src/node/index.d.ts.map +0 -1
- package/dist/src/node/seed.d.ts.map +0 -1
- package/dist/src/node/webpack/fs-proxy.d.ts.map +0 -1
- package/dist/src/node/webpack/index.d.ts.map +0 -1
- package/dist/src/seedSchema/AppStateSchema.d.ts.map +0 -1
- package/dist/src/seedSchema/ConfigSchema.d.ts.map +0 -1
- package/dist/src/seedSchema/MetadataSchema.d.ts.map +0 -1
- package/dist/src/seedSchema/ModelSchema.d.ts.map +0 -1
- package/dist/src/seedSchema/ModelSchemaSchema.d.ts.map +0 -1
- package/dist/src/seedSchema/ModelUidSchema.d.ts.map +0 -1
- package/dist/src/seedSchema/PropertyUidSchema.d.ts.map +0 -1
- package/dist/src/seedSchema/SchemaSchema.d.ts.map +0 -1
- package/dist/src/seedSchema/SeedSchema.d.ts.map +0 -1
- package/dist/src/seedSchema/VersionSchema.d.ts.map +0 -1
- package/dist/src/seedSchema/index.d.ts +0 -11
- package/dist/src/seedSchema/index.d.ts.map +0 -1
- package/dist/src/services/events.d.ts.map +0 -1
- package/dist/src/services/publish/actors/createPublishAttempt.d.ts.map +0 -1
- package/dist/src/services/publish/actors/preparePublishRequestData.d.ts.map +0 -1
- package/dist/src/services/publish/actors/upload.d.ts.map +0 -1
- package/dist/src/services/publish/actors/validateItemData.d.ts.map +0 -1
- package/dist/src/services/publish/publishMachine.d.ts.map +0 -1
- package/dist/src/services/write/actors/validateEntity.d.ts +0 -12
- package/dist/src/services/write/actors/validateEntity.d.ts.map +0 -1
- package/dist/src/services/write/actors/writeToDatabase.d.ts.map +0 -1
- package/dist/src/services/write/writeProcessMachine.d.ts +0 -84
- package/dist/src/services/write/writeProcessMachine.d.ts.map +0 -1
- package/dist/src/stores/eas.d.ts.map +0 -1
- package/dist/src/types/browser.d.ts.map +0 -1
- package/dist/src/types/db.d.ts.map +0 -1
- package/dist/src/types/fileManager.d.ts.map +0 -1
- package/dist/src/types/helpers.d.ts.map +0 -1
- package/dist/src/types/import.d.ts.map +0 -1
- package/dist/src/types/index.d.ts +0 -43
- package/dist/src/types/index.d.ts.map +0 -1
- package/dist/src/types/item.d.ts +0 -68
- package/dist/src/types/item.d.ts.map +0 -1
- package/dist/src/types/machines.d.ts.map +0 -1
- package/dist/src/types/model.d.ts.map +0 -1
- package/dist/src/types/property.d.ts.map +0 -1
- package/dist/src/types/seedProtocol.d.ts.map +0 -1
- package/dist/src/types/services.d.ts.map +0 -1
- package/dist/src/vite/index.d.ts +0 -47
- package/dist/src/vite/index.d.ts.map +0 -1
- package/dist/stores/eas.js +0 -23
- package/dist/stores/eas.js.map +0 -1
- package/dist/vite/index.js +0 -554
- package/dist/vite/index.js.map +0 -1
- /package/dist/{src/Item → Item}/queries.d.ts +0 -0
- /package/dist/{src/Item → Item}/service/actors/hydrateExistingItem.d.ts +0 -0
- /package/dist/{src/Item → Item}/service/actors/hydrateNewItem.d.ts +0 -0
- /package/dist/{src/Item → Item}/service/actors/initialize.d.ts +0 -0
- /package/dist/{src/Item → Item}/service/actors/loadOrCreateItem.d.ts +0 -0
- /package/dist/{src/Item → Item}/service/actors/reload.d.ts +0 -0
- /package/dist/{src/Item → Item}/service/actors/waitForDb.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/hydrateFromDb.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/initialize.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/loadOrCreateProperty.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/resolveRelatedValue.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/resolveRemoteStorage.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/saveValueToDb/analyzeInput.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/saveValueToDb/index.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/saveValueToDb/saveImage.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/saveValueToDb/saveItemStorage.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/saveValueToDb/saveRelation.d.ts +0 -0
- /package/dist/{src/ItemProperty → ItemProperty}/service/actors/waitForDb.d.ts +0 -0
- /package/dist/{src/Model → Model}/service/actors/createModelProperties.d.ts +0 -0
- /package/dist/{src/Model → Model}/service/actors/loadOrCreateModel.d.ts +0 -0
- /package/dist/{src/Model → Model}/service/actors/validateModel.d.ts +0 -0
- /package/dist/{src/ModelProperty → ModelProperty}/service/actors/compareAndMarkDraft.d.ts +0 -0
- /package/dist/{src/ModelProperty → ModelProperty}/service/actors/saveToSchema.d.ts +0 -0
- /package/dist/{src/ModelProperty → ModelProperty}/service/actors/validateProperty.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/errors.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/index.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/checkExistingSchema.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/createModelInstances.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/createPropertyInstances.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/loadOrCreateSchema.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/validateSchema.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/verifyModelInstancesInCache.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/verifyModelsInDb.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/verifyPropertiesInDb.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/verifyPropertyInstancesInCache.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/verifySchemaInDb.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/writeModelsToDb.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/writePropertiesToDb.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/actors/writeSchemaToDb.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/service/validation/SchemaValidationService.d.ts +0 -0
- /package/dist/{src/Schema → Schema}/validation.d.ts +0 -0
- /package/dist/{src/browser → browser}/db/Db.d.ts +0 -0
- /package/dist/{src/browser → browser}/db/drizzleFiles.d.ts +0 -0
- /package/dist/{src/browser → browser}/db/sqlWasmClient.d.ts +0 -0
- /package/dist/{src/browser → browser}/helpers/EasClient.d.ts +0 -0
- /package/dist/{src/browser → browser}/helpers/FileManager.d.ts +0 -0
- /package/dist/{src/browser → browser}/helpers/PathResolver.d.ts +0 -0
- /package/dist/{src/browser → browser}/helpers/QueryClient.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/OPFSImage.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/SeedImage.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/client.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/db.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/index.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/itemProperty.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/liveQuery.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/model.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/modelProperty.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/schema.d.ts +0 -0
- /package/dist/{src/browser → browser}/react/services.d.ts +0 -0
- /package/dist/{src/browser → browser}/workers/FileDownloader.d.ts +0 -0
- /package/dist/{src/browser → browser}/workers/ImageResizer.d.ts +0 -0
- /package/dist/{src/browser → browser}/workers/content-hash.d.ts +0 -0
- /package/dist/{src/browser → browser}/workers/dbWorker.d.ts +0 -0
- /package/dist/{src/browser → browser}/workers/filesDownload.d.ts +0 -0
- /package/dist/{src/browser → browser}/workers/imageResize.d.ts +0 -0
- /package/dist/{src/client → client}/BaseClientManager.d.ts +0 -0
- /package/dist/{src/client → client}/ClientManager.d.ts +0 -0
- /package/dist/{src/client → client}/actions/setAddresses.d.ts +0 -0
- /package/dist/{src/client → client}/actors/addModelsToDb.d.ts +0 -0
- /package/dist/{src/client → client}/actors/addModelsToStore.d.ts +0 -0
- /package/dist/{src/client → client}/actors/dbInit.d.ts +0 -0
- /package/dist/{src/client → client}/actors/fileSystemInit.d.ts +0 -0
- /package/dist/{src/client → client}/actors/platformClassesInit.d.ts +0 -0
- /package/dist/{src/client → client}/actors/processSchemaFiles.d.ts +0 -0
- /package/dist/{src/client → client}/actors/saveAppState.d.ts +0 -0
- /package/dist/{src/client → client}/actors/saveConfig.d.ts +0 -0
- /package/dist/{src/client → client}/clientManagerMachine.d.ts +0 -0
- /package/dist/{src/client → client}/index.d.ts +0 -0
- /package/dist/{src/db → db}/configs/dev.schema.config.d.ts +0 -0
- /package/dist/{src/db → db}/read/getItem.d.ts +0 -0
- /package/dist/{src/db → db}/read/getItemData.d.ts +0 -0
- /package/dist/{src/db → db}/read/getItemProperties.d.ts +0 -0
- /package/dist/{src/db → db}/read/getItemProperty.d.ts +0 -0
- /package/dist/{src/db → db}/read/getItems.d.ts +0 -0
- /package/dist/{src/db → db}/read/getMetadata.d.ts +0 -0
- /package/dist/{src/db → db}/read/getModelSchemas.d.ts +0 -0
- /package/dist/{src/db → db}/read/getModels.d.ts +0 -0
- /package/dist/{src/db → db}/read/getPropertyData.d.ts +0 -0
- /package/dist/{src/db → db}/read/getPublishPayload.d.ts +0 -0
- /package/dist/{src/db → db}/read/getRelationValueData.d.ts +0 -0
- /package/dist/{src/db → db}/read/getSchemaUidForModel.d.ts +0 -0
- /package/dist/{src/db → db}/read/getSeedData.d.ts +0 -0
- /package/dist/{src/db → db}/read/getStorageTransactionIdForSeedUid.d.ts +0 -0
- /package/dist/{src/db → db}/read/getVersionData.d.ts +0 -0
- /package/dist/{src/db → db}/read/getVersionsForVersionUids.d.ts +0 -0
- /package/dist/{src/db → db}/read/subqueries/metadataLatest.d.ts +0 -0
- /package/dist/{src/db → db}/read/subqueries/versionData.d.ts +0 -0
- /package/dist/{src/db → db}/write/createMetadata.d.ts +0 -0
- /package/dist/{src/db → db}/write/createNewItem.d.ts +0 -0
- /package/dist/{src/db → db}/write/createSeed.d.ts +0 -0
- /package/dist/{src/db → db}/write/createSeeds.d.ts +0 -0
- /package/dist/{src/db → db}/write/createVersion.d.ts +0 -0
- /package/dist/{src/db → db}/write/deleteItem.d.ts +0 -0
- /package/dist/{src/db → db}/write/recoverDeletedItem.d.ts +0 -0
- /package/dist/{src/db → db}/write/saveAppState.d.ts +0 -0
- /package/dist/{src/db → db}/write/saveMetadata.d.ts +0 -0
- /package/dist/{src/db → db}/write/updateMetadata.d.ts +0 -0
- /package/dist/{src/eas.d.ts → eas.d.ts} +0 -0
- /package/dist/{src/eslint-rules → eslint-rules}/align-imports.d.ts +0 -0
- /package/dist/{src/eventBus.d.ts → eventBus.d.ts} +0 -0
- /package/dist/{src/events → events}/files/index.d.ts +0 -0
- /package/dist/{src/events → events}/index.d.ts +0 -0
- /package/dist/{src/events → events}/item/publish.d.ts +0 -0
- /package/dist/{src/events → events}/item/syncDbWithEas.d.ts +0 -0
- /package/dist/{src/events → events}/services/allItems.d.ts +0 -0
- /package/dist/{src/events → events}/services/index.d.ts +0 -0
- /package/dist/{src/feed.d.ts → feed.d.ts} +0 -0
- /package/dist/{src/graphql → graphql}/fragments/Attestation.d.ts +0 -0
- /package/dist/{src/graphql → graphql}/fragments/Schema.d.ts +0 -0
- /package/dist/{src/graphql → graphql}/fragments/index.d.ts +0 -0
- /package/dist/{src/graphql → graphql}/gql/fragment-masking.d.ts +0 -0
- /package/dist/{src/graphql → graphql}/gql/gql.d.ts +0 -0
- /package/dist/{src/graphql → graphql}/gql/graphql.d.ts +0 -0
- /package/dist/{src/graphql → graphql}/gql/index.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/FileManager/BaseFileManager.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/PathResolver/BasePathResolver.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/QueryClient/BaseQueryClient.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/crypto.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/db.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/environment.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/file/queries.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/files.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/getSchemaForItemProperty.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/image/queries.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/model.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/property/index.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/property.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/reactiveProxy.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/schema.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/updateMachineContext.d.ts +0 -0
- /package/dist/{src/helpers → helpers}/updateSchema.d.ts +0 -0
- /package/dist/{src/imports → imports}/json.d.ts +0 -0
- /package/dist/{src/imports → imports}/markdown.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/IDb.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/IEasClient.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/IItem.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/IQueryClient.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/index.d.ts +0 -0
- /package/dist/{src/node → node}/codegen/drizzle.d.ts +0 -0
- /package/dist/{src/node → node}/codegen/index.d.ts +0 -0
- /package/dist/{src/node → node}/codegen/ts-to-proto.d.ts +0 -0
- /package/dist/{src/node → node}/constants.d.ts +0 -0
- /package/dist/{src/node → node}/db/Db.d.ts +0 -0
- /package/dist/{src/node → node}/db/index.d.ts +0 -0
- /package/dist/{src/node → node}/db/node.app.db.config.d.ts +0 -0
- /package/dist/{src/node → node}/helpers/EasClient.d.ts +0 -0
- /package/dist/{src/node → node}/helpers/FileManager.d.ts +0 -0
- /package/dist/{src/node → node}/helpers/PathResolver.d.ts +0 -0
- /package/dist/{src/node → node}/helpers/QueryClient.d.ts +0 -0
- /package/dist/{src/node → node}/helpers/index.d.ts +0 -0
- /package/dist/{src/node → node}/helpers/scripts.d.ts +0 -0
- /package/dist/{src/node → node}/seed.d.ts +0 -0
- /package/dist/{src/node → node}/webpack/fs-proxy.d.ts +0 -0
- /package/dist/{src/node → node}/webpack/index.d.ts +0 -0
- /package/dist/{src/seedSchema → seedSchema}/AppStateSchema.d.ts +0 -0
- /package/dist/{src/seedSchema → seedSchema}/ConfigSchema.d.ts +0 -0
- /package/dist/{src/seedSchema → seedSchema}/MetadataSchema.d.ts +0 -0
- /package/dist/{src/seedSchema → seedSchema}/ModelSchema.d.ts +0 -0
- /package/dist/{src/seedSchema → seedSchema}/ModelSchemaSchema.d.ts +0 -0
- /package/dist/{src/seedSchema → seedSchema}/ModelUidSchema.d.ts +0 -0
- /package/dist/{src/seedSchema → seedSchema}/PropertyUidSchema.d.ts +0 -0
- /package/dist/{src/seedSchema → seedSchema}/SchemaSchema.d.ts +0 -0
- /package/dist/{src/seedSchema → seedSchema}/SeedSchema.d.ts +0 -0
- /package/dist/{src/seedSchema → seedSchema}/VersionSchema.d.ts +0 -0
- /package/dist/{src/services → services}/events.d.ts +0 -0
- /package/dist/{src/services → services}/publish/actors/createPublishAttempt.d.ts +0 -0
- /package/dist/{src/services → services}/publish/actors/preparePublishRequestData.d.ts +0 -0
- /package/dist/{src/services → services}/publish/actors/upload.d.ts +0 -0
- /package/dist/{src/services → services}/publish/actors/validateItemData.d.ts +0 -0
- /package/dist/{src/services → services}/publish/publishMachine.d.ts +0 -0
- /package/dist/{src/services → services}/write/actors/writeToDatabase.d.ts +0 -0
- /package/dist/{src/stores → stores}/eas.d.ts +0 -0
- /package/dist/{src/types → types}/browser.d.ts +0 -0
- /package/dist/{src/types → types}/db.d.ts +0 -0
- /package/dist/{src/types → types}/fileManager.d.ts +0 -0
- /package/dist/{src/types → types}/helpers.d.ts +0 -0
- /package/dist/{src/types → types}/import.d.ts +0 -0
- /package/dist/{src/types → types}/machines.d.ts +0 -0
- /package/dist/{src/types → types}/model.d.ts +0 -0
- /package/dist/{src/types → types}/property.d.ts +0 -0
- /package/dist/{src/types → types}/seedProtocol.d.ts +0 -0
- /package/dist/{src/types → types}/services.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileManager.js","sources":["../../../../src/node/helpers/FileManager.ts"],"sourcesContent":["import * as fsAsync from 'fs/promises'\nimport * as fs from 'fs'\nimport { BaseFileManager } from '@/helpers/FileManager/BaseFileManager'\nimport path from 'path'\n\nclass FileManager extends BaseFileManager {\n\n static async getFs() {\n return fs\n }\n\n static getFsSync() {\n return fs\n }\n\n static async getContentUrlFromPath( path: string ): Promise<string | undefined> {\n return new Promise(( resolve, reject ) => {\n reject(new Error('Not implemented'))\n })\n }\n\n static async initializeFileSystem(workingDir?: string): Promise<void> {\n return // No need to initialize file system in node\n }\n\n static async downloadAllFiles(): Promise<void> {\n return new Promise(( resolve, reject ) => {\n reject(new Error('Not implemented'))\n })\n }\n\n static async resizeImage(): Promise<void> {\n return new Promise(( resolve, reject ) => {\n reject(new Error('Not implemented'))\n })\n }\n\n static async resizeAllImages(): Promise<void> {\n return new Promise(( resolve, reject ) => {\n reject(new Error('Not implemented'))\n })\n }\n\n static async pathExists(filePath: string): Promise<boolean> {\n return await fsAsync.access(filePath).then(() => true).catch(() => false)\n }\n\n static async createDirIfNotExists(filePath: string): Promise<void> {\n await fsAsync.mkdir(filePath, { recursive: true })\n }\n\n static async waitForFile(filePath: string, interval: number = 1000, timeout: number = 60000): Promise<boolean> {\n // Check if file exists immediately\n const pathExists = await this.pathExists(filePath)\n if (pathExists) {\n return true\n }\n\n return new Promise((resolve, reject) => {\n const startTime = Date.now()\n let isBusy = false\n\n const checkInterval = setInterval(async () => {\n if (isBusy) {\n return\n }\n isBusy = true\n\n try {\n const exists = await this.pathExists(filePath)\n if (exists) {\n clearInterval(checkInterval)\n resolve(true)\n return\n }\n\n if (Date.now() - startTime >= timeout) {\n clearInterval(checkInterval)\n reject(new Error('Timeout exceeded while waiting for file'))\n return\n }\n } catch (error) {\n clearInterval(checkInterval)\n reject(error)\n return\n } finally {\n isBusy = false\n }\n }, interval)\n })\n }\n\n static async waitForFileWithContent(filePath: string, interval: number = 100, timeout: number = 5000): Promise<boolean> {\n // In node, file writes are synchronous, so if the file exists, it has content\n // Just wait for the file to exist\n return this.waitForFile(filePath, interval, timeout)\n }\n\n static async saveFile(filePath: string, content: string | Blob | ArrayBuffer): Promise<void> {\n // Ensure the directory exists\n const dir = path.dirname(filePath)\n await fsAsync.mkdir(dir, { recursive: true })\n\n // Write the content based on type\n if (typeof content === 'string') {\n await fsAsync.writeFile(filePath, content, 'utf-8')\n } else if (content instanceof Blob) {\n const arrayBuffer = await content.arrayBuffer()\n await fsAsync.writeFile(filePath, Buffer.from(arrayBuffer))\n } else if (content instanceof ArrayBuffer) {\n await fsAsync.writeFile(filePath, Buffer.from(content))\n } else {\n throw new Error('Unsupported content type')\n }\n }\n\n static saveFileSync(filePath: string, content: string | Blob | ArrayBuffer): void {\n // Ensure the directory exists\n const dir = path.dirname(filePath)\n if (!fs.existsSync(dir)) {\n fs.mkdirSync(dir, { recursive: true })\n }\n\n // Write the content based on type\n if (typeof content === 'string') {\n fs.writeFileSync(filePath, content, 'utf-8')\n } else if (content instanceof Blob) {\n // For Blob, we need to convert to Buffer synchronously\n // This is a limitation - we can't do this truly synchronously\n // But we can read it as ArrayBuffer if it's already available\n throw new Error('Blob content not supported in saveFileSync. Use saveFile() instead or convert to ArrayBuffer first.')\n } else if (content instanceof ArrayBuffer) {\n fs.writeFileSync(filePath, Buffer.from(content))\n } else {\n throw new Error('Unsupported content type')\n }\n }\n\n static async readFileAsBuffer( filePath: string ): Promise<Buffer> {\n return await fsAsync.readFile(filePath)\n }\n\n static async readFileAsString(filePath: string): Promise<string> {\n return await fsAsync.readFile(filePath, 'utf-8')\n }\n\n static async readFile(filePath: string): Promise<File> {\n return new File([await fsAsync.readFile(filePath)], filePath)\n }\n\n static readFileSync(filePath: string): File {\n return new File([fs.readFileSync(filePath)], filePath)\n }\n\n static getParentDirPath(filePath: string): string {\n return path.dirname(filePath)\n }\n\n static getFilenameFromPath(filePath: string): string {\n return path.basename(filePath)\n }\n\n static getPathModule(): any {\n return path\n }\n}\n\nexport { FileManager }\n\n"],"names":[],"mappings":"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"}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
import fs__default from 'fs';
|
|
3
|
-
import { SEED_CONFIG_FILE, SEED_CONFIG_FALLBACKS } from '../../helpers/constants.js';
|
|
4
|
-
import { BasePathResolver } from '../../helpers/PathResolver/BasePathResolver.js';
|
|
5
|
-
import debug from 'debug';
|
|
6
|
-
|
|
7
|
-
const logger = debug('seedSdk:node:helpers:PathResolver');
|
|
8
|
-
class PathResolver extends BasePathResolver {
|
|
9
|
-
/**
|
|
10
|
-
* Detects the current environment based on filesystem structure and package.json
|
|
11
|
-
*/
|
|
12
|
-
detectEnvironment() {
|
|
13
|
-
// Check if we're in the SDK repo itself
|
|
14
|
-
if (process.env.NODE_ENV !== 'test' && this.isInSdkRepo()) {
|
|
15
|
-
return 'sdk-dev';
|
|
16
|
-
}
|
|
17
|
-
// Check if we're running tests
|
|
18
|
-
if (process.env.NODE_ENV === 'test') {
|
|
19
|
-
return 'test';
|
|
20
|
-
}
|
|
21
|
-
// Check if we're using a linked version of the SDK
|
|
22
|
-
if (this.isUsingLinkedSdk()) {
|
|
23
|
-
return 'linked-sdk';
|
|
24
|
-
}
|
|
25
|
-
// Default to production environment
|
|
26
|
-
return 'production';
|
|
27
|
-
}
|
|
28
|
-
isInSdkRepo() {
|
|
29
|
-
try {
|
|
30
|
-
// Check if we're in the SDK repo by looking for specific SDK files/directories
|
|
31
|
-
const currentDir = process.cwd();
|
|
32
|
-
return fs__default.existsSync(path.join(currentDir, 'src', 'node')) &&
|
|
33
|
-
fs__default.existsSync(path.join(currentDir, 'package.json')) &&
|
|
34
|
-
JSON.parse(fs__default.readFileSync(path.join(currentDir, 'package.json'), 'utf8')).name === '@seedprotocol/sdk';
|
|
35
|
-
}
|
|
36
|
-
catch {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
isUsingLinkedSdk() {
|
|
41
|
-
try {
|
|
42
|
-
const pkgPath = path.join(process.cwd(), 'package.json');
|
|
43
|
-
if (!fs__default.existsSync(pkgPath))
|
|
44
|
-
return false;
|
|
45
|
-
const pkg = JSON.parse(fs__default.readFileSync(pkgPath, 'utf8'));
|
|
46
|
-
const sdkDep = pkg.dependencies?.['@seedprotocol/sdk'];
|
|
47
|
-
return sdkDep && (sdkDep.startsWith('link:') || sdkDep.startsWith('portal:'));
|
|
48
|
-
}
|
|
49
|
-
catch {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Gets the root directory containing node_modules
|
|
55
|
-
*/
|
|
56
|
-
getRootWithNodeModules() {
|
|
57
|
-
const processCwd = process.cwd();
|
|
58
|
-
const calledFromMocks = processCwd.includes('__mocks__');
|
|
59
|
-
if (calledFromMocks) {
|
|
60
|
-
return path.join(processCwd, '..', '..', '..', '..');
|
|
61
|
-
}
|
|
62
|
-
return processCwd;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Gets the SDK root directory
|
|
66
|
-
*/
|
|
67
|
-
getSdkRootDir() {
|
|
68
|
-
const env = this.detectEnvironment();
|
|
69
|
-
const rootWithNodeModules = this.getRootWithNodeModules();
|
|
70
|
-
const processCwd = process.cwd();
|
|
71
|
-
// For test environment, always return the SDK root directory
|
|
72
|
-
if (env === 'test') {
|
|
73
|
-
return rootWithNodeModules;
|
|
74
|
-
}
|
|
75
|
-
if (env === 'linked-sdk') {
|
|
76
|
-
// For linked packages, find the package directory
|
|
77
|
-
const pkgJson = JSON.parse(fs__default.readFileSync(path.join(processCwd, 'package.json'), 'utf8'));
|
|
78
|
-
const sdkPath = pkgJson.dependencies?.['@seedprotocol/sdk'] || pkgJson.devDependencies?.['@seedprotocol/sdk'];
|
|
79
|
-
if (sdkPath === 'link:@seedprotocol/sdk') {
|
|
80
|
-
return path.join(processCwd, 'node_modules', '@seedprotocol', 'sdk');
|
|
81
|
-
}
|
|
82
|
-
return path.resolve(processCwd, sdkPath.replace(/^(link:|portal:)/, ''));
|
|
83
|
-
}
|
|
84
|
-
switch (env) {
|
|
85
|
-
case 'sdk-dev':
|
|
86
|
-
// This should be {localDir}/seed-protocol-sdk (the SDK root directory)
|
|
87
|
-
return rootWithNodeModules;
|
|
88
|
-
case 'test':
|
|
89
|
-
// This should be {localDir}/seed-protocol-sdk (the SDK root directory)
|
|
90
|
-
return rootWithNodeModules;
|
|
91
|
-
default:
|
|
92
|
-
// This should be {projectDir}/node_modules/@seedprotocol/sdk/dist
|
|
93
|
-
return path.join(rootWithNodeModules, 'node_modules', '@seedprotocol', 'sdk', 'dist');
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
getNodeModulesDir() {
|
|
97
|
-
const env = this.detectEnvironment();
|
|
98
|
-
const rootWithNodeModules = this.getRootWithNodeModules();
|
|
99
|
-
let nodeModulesDir = path.join(rootWithNodeModules, 'node_modules');
|
|
100
|
-
if (env !== 'linked-sdk' && env !== 'sdk-dev' && nodeModulesDir.includes('__tests__')) {
|
|
101
|
-
nodeModulesDir = path.join(process.cwd(), '..', '..', '..', '..', 'node_modules');
|
|
102
|
-
}
|
|
103
|
-
return nodeModulesDir;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Gets the .seed directory path
|
|
107
|
-
*/
|
|
108
|
-
getDotSeedDir(schemaFileDir) {
|
|
109
|
-
if (!schemaFileDir && process.env.SEED_SDK_TEST_PROJECT_TYPE && !process.cwd().includes('__mocks__')) {
|
|
110
|
-
return path.join(process.cwd(), '__tests__', '__mocks__', process.env.SEED_SDK_TEST_PROJECT_TYPE, 'project', '.seed');
|
|
111
|
-
}
|
|
112
|
-
return path.join(schemaFileDir || process.cwd(), '.seed');
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Finds the Seed Protocol config file in the given directory
|
|
116
|
-
* @param searchDir - Directory to search for the config file
|
|
117
|
-
* @returns The path to the found config file, or null if not found
|
|
118
|
-
*/
|
|
119
|
-
findConfigFile(searchDir = process.cwd()) {
|
|
120
|
-
// First try the primary config file name
|
|
121
|
-
const primaryPath = path.join(searchDir, SEED_CONFIG_FILE);
|
|
122
|
-
if (fs__default.existsSync(primaryPath)) {
|
|
123
|
-
return primaryPath;
|
|
124
|
-
}
|
|
125
|
-
// Then try fallback names in order
|
|
126
|
-
for (const fallbackName of SEED_CONFIG_FALLBACKS) {
|
|
127
|
-
const fallbackPath = path.join(searchDir, fallbackName);
|
|
128
|
-
if (fs__default.existsSync(fallbackPath)) {
|
|
129
|
-
return fallbackPath;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return null;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Gets paths for app-specific directories
|
|
136
|
-
*/
|
|
137
|
-
getAppPaths(schemaFileDir) {
|
|
138
|
-
const env = this.detectEnvironment();
|
|
139
|
-
const dotSeedDir = this.getDotSeedDir(schemaFileDir);
|
|
140
|
-
const nodeModulesDir = this.getNodeModulesDir();
|
|
141
|
-
let drizzleKitPath = path.join(nodeModulesDir, 'drizzle-kit', 'bin.cjs');
|
|
142
|
-
if (env === 'linked-sdk') {
|
|
143
|
-
const sdkRootDir = this.getSdkRootDir();
|
|
144
|
-
const sdkPackageDir = path.dirname(sdkRootDir);
|
|
145
|
-
const sdkNodeModulesDir = path.join(sdkPackageDir, 'node_modules');
|
|
146
|
-
drizzleKitPath = path.join(sdkNodeModulesDir, 'drizzle-kit', 'bin.cjs');
|
|
147
|
-
}
|
|
148
|
-
// Determine the correct template path based on environment
|
|
149
|
-
let templatePath;
|
|
150
|
-
if (env === 'production') {
|
|
151
|
-
// In production, templates are at dist/node/codegen/templates
|
|
152
|
-
templatePath = path.join(this.getSdkRootDir(), 'node', 'codegen', 'templates');
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
// In development/test, templates are at src/node/codegen/templates
|
|
156
|
-
templatePath = path.join(this.getSdkRootDir(), 'src', 'node', 'codegen', 'templates');
|
|
157
|
-
}
|
|
158
|
-
logger('env', env);
|
|
159
|
-
logger('getAppPaths', {
|
|
160
|
-
sdkRootDir: this.getSdkRootDir(),
|
|
161
|
-
dotSeedDir,
|
|
162
|
-
nodeModulesDir,
|
|
163
|
-
appSchemaDir: path.join(dotSeedDir, 'schema'),
|
|
164
|
-
appDbDir: path.join(dotSeedDir, 'db'),
|
|
165
|
-
appMetaDir: path.join(dotSeedDir, 'db', 'meta'),
|
|
166
|
-
});
|
|
167
|
-
return {
|
|
168
|
-
sdkRootDir: this.getSdkRootDir(),
|
|
169
|
-
dotSeedDir,
|
|
170
|
-
nodeModulesDir,
|
|
171
|
-
appSchemaDir: path.join(dotSeedDir, 'schema'),
|
|
172
|
-
appDbDir: path.join(dotSeedDir, 'db'),
|
|
173
|
-
appMetaDir: path.join(dotSeedDir, 'db', 'meta'),
|
|
174
|
-
drizzleKitPath,
|
|
175
|
-
templatePath
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
BasePathResolver.setPlatformClass(PathResolver);
|
|
180
|
-
|
|
181
|
-
export { PathResolver };
|
|
182
|
-
//# sourceMappingURL=PathResolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PathResolver.js","sources":["../../../../src/node/helpers/PathResolver.ts"],"sourcesContent":["import path from 'path'\nimport fs from 'fs'\nimport { SEED_CONFIG_FILE, SEED_CONFIG_FALLBACKS } from '@/helpers/constants'\nimport { BasePathResolver } from '@/helpers/PathResolver/BasePathResolver'\nimport debug from 'debug'\n\nconst logger = debug('seedSdk:node:helpers:PathResolver')\n\nclass PathResolver extends BasePathResolver {\n /**\n * Detects the current environment based on filesystem structure and package.json\n */\n private detectEnvironment(): 'sdk-dev' | 'linked-sdk' | 'test' | 'production' {\n // Check if we're in the SDK repo itself\n if (process.env.NODE_ENV !== 'test' && this.isInSdkRepo()) {\n return 'sdk-dev'\n }\n\n // Check if we're running tests\n if (process.env.NODE_ENV === 'test') {\n return 'test'\n }\n\n // Check if we're using a linked version of the SDK\n if (this.isUsingLinkedSdk()) {\n return 'linked-sdk'\n }\n\n // Default to production environment\n return 'production'\n }\n\n private isInSdkRepo(): boolean {\n try {\n // Check if we're in the SDK repo by looking for specific SDK files/directories\n const currentDir = process.cwd()\n return fs.existsSync(path.join(currentDir, 'src', 'node')) &&\n fs.existsSync(path.join(currentDir, 'package.json')) &&\n JSON.parse(fs.readFileSync(path.join(currentDir, 'package.json'), 'utf8')).name === '@seedprotocol/sdk'\n } catch {\n return false\n }\n }\n\n private isUsingLinkedSdk(): boolean {\n try {\n const pkgPath = path.join(process.cwd(), 'package.json')\n if (!fs.existsSync(pkgPath)) return false\n \n const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'))\n const sdkDep = pkg.dependencies?.['@seedprotocol/sdk']\n \n return sdkDep && (sdkDep.startsWith('link:') || sdkDep.startsWith('portal:'))\n } catch {\n return false\n }\n }\n\n /**\n * Gets the root directory containing node_modules\n */\n getRootWithNodeModules(): string {\n const processCwd = process.cwd()\n\n const calledFromMocks = processCwd.includes('__mocks__')\n\n if (calledFromMocks) {\n return path.join(processCwd, '..', '..', '..', '..',)\n }\n\n return processCwd\n }\n\n /**\n * Gets the SDK root directory\n */\n getSdkRootDir(): string {\n const env = this.detectEnvironment()\n const rootWithNodeModules = this.getRootWithNodeModules()\n const processCwd = process.cwd()\n\n // For test environment, always return the SDK root directory\n if (env === 'test') {\n return rootWithNodeModules\n }\n\n if (env === 'linked-sdk') {\n // For linked packages, find the package directory\n const pkgJson = JSON.parse(fs.readFileSync(path.join(processCwd, 'package.json'), 'utf8'))\n const sdkPath = pkgJson.dependencies?.['@seedprotocol/sdk'] || pkgJson.devDependencies?.['@seedprotocol/sdk']\n if (sdkPath === 'link:@seedprotocol/sdk') {\n return path.join(processCwd, 'node_modules', '@seedprotocol', 'sdk',)\n }\n return path.resolve(processCwd, sdkPath.replace(/^(link:|portal:)/, ''))\n }\n\n switch (env) {\n case 'sdk-dev':\n // This should be {localDir}/seed-protocol-sdk (the SDK root directory)\n return rootWithNodeModules\n case 'test':\n // This should be {localDir}/seed-protocol-sdk (the SDK root directory)\n return rootWithNodeModules\n default:\n // This should be {projectDir}/node_modules/@seedprotocol/sdk/dist\n return path.join(rootWithNodeModules, 'node_modules', '@seedprotocol', 'sdk', 'dist')\n }\n }\n\n getNodeModulesDir(): string {\n const env = this.detectEnvironment()\n const rootWithNodeModules = this.getRootWithNodeModules()\n\n let nodeModulesDir = path.join(rootWithNodeModules, 'node_modules')\n\n if (env !== 'linked-sdk' && env !== 'sdk-dev' && nodeModulesDir.includes('__tests__')) {\n nodeModulesDir = path.join(process.cwd(), '..', '..', '..', '..', 'node_modules',)\n }\n\n return nodeModulesDir\n }\n\n /**\n * Gets the .seed directory path\n */\n getDotSeedDir(schemaFileDir?: string): string {\n if (!schemaFileDir && process.env.SEED_SDK_TEST_PROJECT_TYPE && !process.cwd().includes('__mocks__')) {\n return path.join(process.cwd(), '__tests__', '__mocks__', process.env.SEED_SDK_TEST_PROJECT_TYPE, 'project', '.seed')\n }\n return path.join(schemaFileDir || process.cwd(), '.seed')\n }\n\n /**\n * Finds the Seed Protocol config file in the given directory\n * @param searchDir - Directory to search for the config file\n * @returns The path to the found config file, or null if not found\n */\n findConfigFile(searchDir: string = process.cwd()): string | null {\n // First try the primary config file name\n const primaryPath = path.join(searchDir, SEED_CONFIG_FILE)\n if (fs.existsSync(primaryPath)) {\n return primaryPath\n }\n\n // Then try fallback names in order\n for (const fallbackName of SEED_CONFIG_FALLBACKS) {\n const fallbackPath = path.join(searchDir, fallbackName)\n if (fs.existsSync(fallbackPath)) {\n return fallbackPath\n }\n }\n\n return null\n }\n\n /**\n * Gets paths for app-specific directories\n */\n getAppPaths(schemaFileDir?: string | undefined) {\n const env = this.detectEnvironment()\n const dotSeedDir = this.getDotSeedDir(schemaFileDir)\n const nodeModulesDir = this.getNodeModulesDir()\n\n let drizzleKitPath = path.join(nodeModulesDir, 'drizzle-kit', 'bin.cjs')\n\n if (env === 'linked-sdk') {\n const sdkRootDir = this.getSdkRootDir()\n const sdkPackageDir = path.dirname(sdkRootDir)\n const sdkNodeModulesDir = path.join(sdkPackageDir, 'node_modules')\n drizzleKitPath = path.join(sdkNodeModulesDir, 'drizzle-kit', 'bin.cjs')\n }\n\n // Determine the correct template path based on environment\n let templatePath: string\n if (env === 'production') {\n // In production, templates are at dist/node/codegen/templates\n templatePath = path.join(this.getSdkRootDir(), 'node', 'codegen', 'templates')\n } else {\n // In development/test, templates are at src/node/codegen/templates\n templatePath = path.join(this.getSdkRootDir(), 'src', 'node', 'codegen', 'templates')\n }\n\n logger('env', env)\n\n logger('getAppPaths', {\n sdkRootDir: this.getSdkRootDir(),\n dotSeedDir,\n nodeModulesDir,\n appSchemaDir: path.join(dotSeedDir, 'schema'),\n appDbDir: path.join(dotSeedDir, 'db'),\n appMetaDir: path.join(dotSeedDir, 'db', 'meta'),\n })\n\n return {\n sdkRootDir: this.getSdkRootDir(),\n dotSeedDir,\n nodeModulesDir,\n appSchemaDir: path.join(dotSeedDir, 'schema'),\n appDbDir: path.join(dotSeedDir, 'db'),\n appMetaDir: path.join(dotSeedDir, 'db', 'meta'),\n drizzleKitPath,\n templatePath\n }\n }\n}\n\nBasePathResolver.setPlatformClass(PathResolver)\n\nexport { PathResolver }\n\n"],"names":["fs"],"mappings":"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"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseQueryClient } from '../../helpers/QueryClient/BaseQueryClient.js';
|
|
2
|
-
|
|
3
|
-
class QueryClient extends BaseQueryClient {
|
|
4
|
-
}
|
|
5
|
-
QueryClient.getQueryClient = () => {
|
|
6
|
-
return {
|
|
7
|
-
fetchQuery: async ({ queryKey, queryFn, }) => {
|
|
8
|
-
return await queryFn();
|
|
9
|
-
},
|
|
10
|
-
getQueryData: () => {
|
|
11
|
-
return new Promise((resolve, reject) => {
|
|
12
|
-
reject(new Error('Not implemented'));
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
BaseQueryClient.setPlatformClass(QueryClient);
|
|
18
|
-
|
|
19
|
-
export { QueryClient };
|
|
20
|
-
//# sourceMappingURL=QueryClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryClient.js","sources":["../../../../src/node/helpers/QueryClient.ts"],"sourcesContent":["import { BaseQueryClient } from \"@/helpers/QueryClient/BaseQueryClient\"\nimport { IQueryClient } from '@/interfaces/IQueryClient'\n\n\n\nclass QueryClient extends BaseQueryClient {\n static getQueryClient = (): IQueryClient=> {\n return {\n fetchQuery: async <T>({\n queryKey,\n queryFn,\n }): Promise<T> => {\n return await queryFn()\n },\n getQueryData: () => {\n return new Promise((resolve, reject) => {\n reject(new Error('Not implemented'))\n })\n },\n }\n }\n}\n\nBaseQueryClient.setPlatformClass(QueryClient)\n\nexport { QueryClient }\n"],"names":[],"mappings":";;AAKA,MAAM,WAAY,SAAQ,eAAe,CAAA;;AAChC,WAAA,CAAA,cAAc,GAAG,MAAkB;IACxC,OAAO;QACL,UAAU,EAAE,OAAU,EACpB,QAAQ,EACR,OAAO,GACP,KAAgB;YAChB,OAAO,MAAM,OAAO,EAAE;QACxB,CAAC;QACD,YAAY,EAAE,MAAK;YACjB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAI;AACrC,gBAAA,MAAM,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;AACtC,YAAA,CAAC,CAAC;QACJ,CAAC;KACF;AACH,CAAC;AAGH,eAAe,CAAC,gBAAgB,CAAC,WAAW,CAAC;;;;"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import fs__default from 'fs';
|
|
2
|
-
import * as tsImport from 'ts-import';
|
|
3
|
-
import { LoadMode } from 'ts-import';
|
|
4
|
-
import path from 'path';
|
|
5
|
-
import 'glob';
|
|
6
|
-
import 'rimraf';
|
|
7
|
-
import debug from 'debug';
|
|
8
|
-
|
|
9
|
-
const logger = debug('seedSdk:helpers');
|
|
10
|
-
const getTsImport = async (filePath) => {
|
|
11
|
-
// Check if the config file exists
|
|
12
|
-
if (!fs__default.existsSync(filePath)) {
|
|
13
|
-
logger(`Typescript file not found at ${filePath}`);
|
|
14
|
-
throw new Error(`Typescript file not found at ${filePath}`);
|
|
15
|
-
}
|
|
16
|
-
let result;
|
|
17
|
-
try {
|
|
18
|
-
// Read the file content and transform relative imports to absolute paths
|
|
19
|
-
// This fixes the issue where ts-import compiles to .mjs in cache and relative
|
|
20
|
-
// imports resolve from the cache location instead of the original file location
|
|
21
|
-
let fileContent = fs__default.readFileSync(filePath, 'utf-8');
|
|
22
|
-
const fileDir = path.dirname(path.resolve(filePath));
|
|
23
|
-
// Replace relative imports with absolute paths
|
|
24
|
-
// Match: from '../../../../src/schema' or from '../../../something'
|
|
25
|
-
const relativeImportRegex = /from\s+['"](\.\.\/.*?)['"]/g;
|
|
26
|
-
fileContent = fileContent.replace(relativeImportRegex, (match, importPath) => {
|
|
27
|
-
const absolutePath = path.resolve(fileDir, importPath);
|
|
28
|
-
// Convert to file:// URL for ESM compatibility, or use absolute path
|
|
29
|
-
return `from '${absolutePath}'`;
|
|
30
|
-
});
|
|
31
|
-
// Write to a temporary file and load that instead
|
|
32
|
-
const tempFile = path.join(fileDir, `.temp.${path.basename(filePath)}`);
|
|
33
|
-
fs__default.writeFileSync(tempFile, fileContent);
|
|
34
|
-
try {
|
|
35
|
-
result = await tsImport.load(tempFile, {
|
|
36
|
-
mode: LoadMode.Compile,
|
|
37
|
-
compileOptions: {
|
|
38
|
-
compilerOptions: {
|
|
39
|
-
experimentalDecorators: true,
|
|
40
|
-
emitDecoratorMetadata: true,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
}).catch((e) => {
|
|
44
|
-
logger('Error loading ts file:', e);
|
|
45
|
-
throw e;
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
finally {
|
|
49
|
-
// Clean up temp file
|
|
50
|
-
if (fs__default.existsSync(tempFile)) {
|
|
51
|
-
fs__default.unlinkSync(tempFile);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
catch (e) {
|
|
56
|
-
console.error(e);
|
|
57
|
-
}
|
|
58
|
-
return result;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export { getTsImport };
|
|
62
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/node/helpers/index.ts"],"sourcesContent":["import fs from 'fs'\nimport * as tsImport from 'ts-import'\nimport { LoadMode } from 'ts-import'\nimport path from 'path'\nimport { glob } from 'glob'\nimport { rimraf } from 'rimraf'\nimport debug from 'debug'\n\nconst logger = debug('seedSdk:helpers')\n\nexport const getTsImport = async <T>(filePath: string): Promise<T> => {\n // Check if the config file exists\n if (!fs.existsSync(filePath)) {\n logger(`Typescript file not found at ${filePath}`)\n throw new Error(`Typescript file not found at ${filePath}`)\n }\n\n let result\n\n try {\n // Read the file content and transform relative imports to absolute paths\n // This fixes the issue where ts-import compiles to .mjs in cache and relative\n // imports resolve from the cache location instead of the original file location\n let fileContent = fs.readFileSync(filePath, 'utf-8')\n const fileDir = path.dirname(path.resolve(filePath))\n \n // Replace relative imports with absolute paths\n // Match: from '../../../../src/schema' or from '../../../something'\n const relativeImportRegex = /from\\s+['\"](\\.\\.\\/.*?)['\"]/g\n fileContent = fileContent.replace(relativeImportRegex, (match, importPath) => {\n const absolutePath = path.resolve(fileDir, importPath)\n // Convert to file:// URL for ESM compatibility, or use absolute path\n return `from '${absolutePath}'`\n })\n\n // Write to a temporary file and load that instead\n const tempFile = path.join(fileDir, `.temp.${path.basename(filePath)}`)\n fs.writeFileSync(tempFile, fileContent)\n \n try {\n result = await tsImport.load(tempFile, {\n mode: LoadMode.Compile,\n compileOptions: {\n compilerOptions: {\n experimentalDecorators: true,\n emitDecoratorMetadata: true,\n },\n },\n }).catch((e) => {\n logger('Error loading ts file:', e)\n throw e\n })\n } finally {\n // Clean up temp file\n if (fs.existsSync(tempFile)) {\n fs.unlinkSync(tempFile)\n }\n }\n\n } catch ( e ) {\n console.error(e)\n }\n\n\n return result\n}\n\nexport const deleteFilesWithExtension = async (\n dir: string,\n extension: string,\n) => {\n const pattern = path.join(dir, `**/*${extension}`)\n glob(pattern, (err, files) => {\n if (err) {\n logger('Error finding files:', err)\n return\n }\n\n for (const file of files) {\n // TODO: Change this whole thing to be async?\n rimraf(file, (err) => {\n if (err) {\n logger('Error deleting file:', err)\n } else {\n logger(`Deleted: ${file}`)\n }\n })\n }\n })\n}\n"],"names":["fs"],"mappings":";;;;;;;;AAQA,MAAM,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC;MAE1B,WAAW,GAAG,OAAU,QAAgB,KAAgB;;IAEnE,IAAI,CAACA,WAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;AAC5B,QAAA,MAAM,CAAC,CAAA,6BAAA,EAAgC,QAAQ,CAAA,CAAE,CAAC;AAClD,QAAA,MAAM,IAAI,KAAK,CAAC,gCAAgC,QAAQ,CAAA,CAAE,CAAC;IAC7D;AAEA,IAAA,IAAI,MAAM;AAEV,IAAA,IAAI;;;;QAIF,IAAI,WAAW,GAAGA,WAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC;AACpD,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;;;QAIpD,MAAM,mBAAmB,GAAG,6BAA6B;AACzD,QAAA,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC,KAAK,EAAE,UAAU,KAAI;YAC3E,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC;;YAEtD,OAAO,CAAA,MAAA,EAAS,YAAY,CAAA,CAAA,CAAG;AACjC,QAAA,CAAC,CAAC;;AAGF,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAA,MAAA,EAAS,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA,CAAE,CAAC;AACvE,QAAAA,WAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,WAAW,CAAC;AAEvC,QAAA,IAAI;AACF,YAAA,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE;gBACrC,IAAI,EAAE,QAAQ,CAAC,OAAO;AACtB,gBAAA,cAAc,EAAE;AACd,oBAAA,eAAe,EAAE;AACf,wBAAA,sBAAsB,EAAE,IAAI;AAC5B,wBAAA,qBAAqB,EAAE,IAAI;AAC5B,qBAAA;AACF,iBAAA;AACF,aAAA,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAI;AACb,gBAAA,MAAM,CAAC,wBAAwB,EAAE,CAAC,CAAC;AACnC,gBAAA,MAAM,CAAC;AACT,YAAA,CAAC,CAAC;QACJ;gBAAU;;AAER,YAAA,IAAIA,WAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;AAC3B,gBAAAA,WAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;YACzB;QACF;IAEF;IAAE,OAAQ,CAAC,EAAG;AACZ,QAAA,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAClB;AAGA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { execSync } from 'child_process';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import fs__default from 'fs';
|
|
4
|
-
import { fileURLToPath } from 'url';
|
|
5
|
-
import { drizzle } from 'drizzle-orm/libsql';
|
|
6
|
-
import { pushSQLiteSchema } from 'drizzle-kit/api';
|
|
7
|
-
import * as index from '../../seedSchema/index.js';
|
|
8
|
-
import { createClient } from '@libsql/client';
|
|
9
|
-
|
|
10
|
-
// Get the directory of this file to resolve relative paths
|
|
11
|
-
const __filename$1 = fileURLToPath(import.meta.url);
|
|
12
|
-
path.dirname(__filename$1);
|
|
13
|
-
const commandExists = (command) => {
|
|
14
|
-
try {
|
|
15
|
-
execSync(`which ${command}`, { stdio: 'ignore' });
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
catch {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Finds the seed binary path, trying multiple locations
|
|
24
|
-
* @returns The path to the seed binary, or null if not found
|
|
25
|
-
*/
|
|
26
|
-
const findSeedBinary = () => {
|
|
27
|
-
const cwd = process.cwd();
|
|
28
|
-
// Try common locations for the seed binary
|
|
29
|
-
const possiblePaths = [
|
|
30
|
-
path.join(cwd, 'node_modules', '.bin', 'seed'),
|
|
31
|
-
path.join(cwd, 'node_modules', '@seedprotocol', 'cli', 'dist', 'bin.js'),
|
|
32
|
-
// Try parent directories (for monorepos or nested projects)
|
|
33
|
-
path.join(cwd, '..', 'node_modules', '.bin', 'seed'),
|
|
34
|
-
path.join(cwd, '..', 'node_modules', '@seedprotocol', 'cli', 'dist', 'bin.js'),
|
|
35
|
-
path.join(cwd, '..', '..', 'node_modules', '.bin', 'seed'),
|
|
36
|
-
path.join(cwd, '..', '..', 'node_modules', '@seedprotocol', 'cli', 'dist', 'bin.js'),
|
|
37
|
-
];
|
|
38
|
-
for (const binPath of possiblePaths) {
|
|
39
|
-
if (fs__default.existsSync(binPath)) {
|
|
40
|
-
return binPath;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return null;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Runs seed init programmatically, trying multiple methods:
|
|
47
|
-
* 1. Try to dynamically import and call the CLI package's init function (prefers local monorepo version)
|
|
48
|
-
* 2. Try to find and execute the seed binary
|
|
49
|
-
* 3. Fall back to using npx
|
|
50
|
-
* @param schemaFileDir - Optional path to schema file directory
|
|
51
|
-
* @param appFilesDirPath - Optional path to app files directory
|
|
52
|
-
*/
|
|
53
|
-
const runSeedInit = async (schemaFileDir, appFilesDirPath) => {
|
|
54
|
-
const dbDirExists = fs__default.existsSync(`${appFilesDirPath}/db`);
|
|
55
|
-
if (!dbDirExists) {
|
|
56
|
-
fs__default.mkdirSync(`${appFilesDirPath}/db`, { recursive: true });
|
|
57
|
-
}
|
|
58
|
-
const dbUrl = `file:${appFilesDirPath}/db/seed.db`;
|
|
59
|
-
const client = createClient({ url: dbUrl });
|
|
60
|
-
const db = drizzle(client, { schema: index });
|
|
61
|
-
const { apply, hasDataLoss, warnings, statementsToExecute } = await pushSQLiteSchema(index, db);
|
|
62
|
-
// You can inspect what will happen before applying
|
|
63
|
-
await apply();
|
|
64
|
-
// // First, try to dynamically import the CLI package's init function
|
|
65
|
-
// // This prefers local monorepo version in development, falls back to published package
|
|
66
|
-
// try {
|
|
67
|
-
// const cliModule = await importCliPackage()
|
|
68
|
-
// if (cliModule && typeof cliModule.init === 'function') {
|
|
69
|
-
// await cliModule.init(schemaFileDir, appFilesDirPath)
|
|
70
|
-
// return
|
|
71
|
-
// }
|
|
72
|
-
// } catch (importError: any) {
|
|
73
|
-
// // CLI package not available, continue to other methods
|
|
74
|
-
// console.log('[seedInit] CLI package not available, trying binary execution')
|
|
75
|
-
// }
|
|
76
|
-
// // Try to find and execute the binary
|
|
77
|
-
// const seedBinary = findSeedBinary()
|
|
78
|
-
// if (seedBinary) {
|
|
79
|
-
// // Binary found, execute it directly
|
|
80
|
-
// const args = ['init']
|
|
81
|
-
// if (schemaFileDir) {
|
|
82
|
-
// args.push(schemaFileDir)
|
|
83
|
-
// }
|
|
84
|
-
// if (appFilesDirPath) {
|
|
85
|
-
// args.push(appFilesDirPath)
|
|
86
|
-
// }
|
|
87
|
-
// try {
|
|
88
|
-
// execSync(`node "${seedBinary}" ${args.join(' ')}`, {
|
|
89
|
-
// stdio: 'inherit',
|
|
90
|
-
// cwd: process.cwd(),
|
|
91
|
-
// })
|
|
92
|
-
// return
|
|
93
|
-
// } catch (error: any) {
|
|
94
|
-
// console.warn(`[seedInit] Failed to execute binary at ${seedBinary}: ${error.message}`)
|
|
95
|
-
// // Continue to npx fallback
|
|
96
|
-
// }
|
|
97
|
-
// }
|
|
98
|
-
// // Final fallback: use npx
|
|
99
|
-
// const args = ['seed', 'init']
|
|
100
|
-
// if (schemaFileDir) {
|
|
101
|
-
// args.push(schemaFileDir)
|
|
102
|
-
// }
|
|
103
|
-
// if (appFilesDirPath) {
|
|
104
|
-
// args.push(appFilesDirPath)
|
|
105
|
-
// }
|
|
106
|
-
// try {
|
|
107
|
-
// execSync(`npx ${args.join(' ')}`, {
|
|
108
|
-
// stdio: 'inherit',
|
|
109
|
-
// cwd: process.cwd(),
|
|
110
|
-
// })
|
|
111
|
-
// } catch (error: any) {
|
|
112
|
-
// throw new Error(
|
|
113
|
-
// `Failed to run seed init command. ` +
|
|
114
|
-
// `Tried: CLI package import, binary execution, and npx. ` +
|
|
115
|
-
// `Please ensure @seedprotocol/cli is installed: ${error.message}`
|
|
116
|
-
// )
|
|
117
|
-
// }
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
export { commandExists, findSeedBinary, runSeedInit };
|
|
121
|
-
//# sourceMappingURL=scripts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scripts.js","sources":["../../../../src/node/helpers/scripts.ts"],"sourcesContent":["import { execSync } from 'child_process'\nimport path from 'path'\nimport fs from 'fs'\nimport { fileURLToPath, pathToFileURL } from 'url'\nimport { drizzle } from 'drizzle-orm/libsql'\nimport { generateSQLiteDrizzleJson, generateSQLiteMigration, generateMigration, pushSQLiteSchema } from 'drizzle-kit/api'\nimport * as schema from '@/seedSchema'\nimport { createClient } from '@libsql/client'\n\n// Get the directory of this file to resolve relative paths\nconst __filename = fileURLToPath(import.meta.url)\nconst __dirname = path.dirname(__filename)\n\nexport const commandExists = (command: string): boolean => {\n try {\n execSync(`which ${command}`, { stdio: 'ignore' })\n return true\n } catch {\n return false\n }\n}\n\n/**\n * Finds the seed binary path, trying multiple locations\n * @returns The path to the seed binary, or null if not found\n */\nexport const findSeedBinary = (): string | null => {\n const cwd = process.cwd()\n \n // Try common locations for the seed binary\n const possiblePaths = [\n path.join(cwd, 'node_modules', '.bin', 'seed'),\n path.join(cwd, 'node_modules', '@seedprotocol', 'cli', 'dist', 'bin.js'),\n // Try parent directories (for monorepos or nested projects)\n path.join(cwd, '..', 'node_modules', '.bin', 'seed'),\n path.join(cwd, '..', 'node_modules', '@seedprotocol', 'cli', 'dist', 'bin.js'),\n path.join(cwd, '..', '..', 'node_modules', '.bin', 'seed'),\n path.join(cwd, '..', '..', 'node_modules', '@seedprotocol', 'cli', 'dist', 'bin.js'),\n ]\n \n for (const binPath of possiblePaths) {\n if (fs.existsSync(binPath)) {\n return binPath\n }\n }\n \n return null\n}\n\n/**\n * Checks if we're running in the monorepo by looking for the CLI package directory\n * @returns The path to the monorepo root, or null if not in monorepo\n */\nfunction getMonorepoRoot(): string | null {\n // Start from this file's location and walk up to find packages/cli\n let currentDir = __dirname\n \n // Walk up the directory tree looking for packages/cli\n for (let i = 0; i < 10; i++) { // Limit to 10 levels to avoid infinite loops\n const packagesDir = path.join(currentDir, 'packages')\n const cliDir = path.join(packagesDir, 'cli')\n \n if (fs.existsSync(cliDir) && fs.existsSync(path.join(cliDir, 'package.json'))) {\n // Found packages/cli, return the monorepo root (parent of packages)\n return path.dirname(packagesDir)\n }\n \n const parentDir = path.dirname(currentDir)\n if (parentDir === currentDir) {\n // Reached filesystem root\n break\n }\n currentDir = parentDir\n }\n \n return null\n}\n\n/**\n * Attempts to import the CLI package, preferring local monorepo version over published package\n * @returns The CLI module or null if not found\n */\nasync function importCliPackage(): Promise<any> {\n // First, try to import from local monorepo CLI (for development)\n const monorepoRoot = getMonorepoRoot()\n \n if (monorepoRoot) {\n const localCliDistPath = path.join(monorepoRoot, 'packages', 'cli', 'dist', 'index.js')\n const localCliSrcPath = path.join(monorepoRoot, 'packages', 'cli', 'src', 'index.ts')\n \n // Try built dist first (most reliable)\n if (fs.existsSync(localCliDistPath)) {\n try {\n const localCliDistUrl = pathToFileURL(localCliDistPath).href\n const cliModule = await import(localCliDistUrl)\n if (cliModule && typeof cliModule.init === 'function') {\n return cliModule\n }\n } catch (error: any) {\n // Dist import failed, try source\n }\n }\n \n // Try source (for development with tsx/ts-node)\n if (fs.existsSync(localCliSrcPath)) {\n try {\n const localCliSrcUrl = pathToFileURL(localCliSrcPath).href\n const cliModule = await import(localCliSrcUrl)\n if (cliModule && typeof cliModule.init === 'function') {\n return cliModule\n }\n } catch (error: any) {\n // Source import failed (TypeScript not compiled or not using tsx)\n }\n }\n }\n \n // Fall back to published package (for production/consumers)\n // Note: @seedprotocol/cli is not a dependency of the SDK to avoid circular dependencies\n // This is a dynamic import that may not be available in all environments\n try {\n // @ts-ignore - Dynamic import of optional CLI package\n // Using template literal to prevent Vite from statically analyzing this import\n const cliPackageName = '@seedprotocol/cli'\n const cliModule = await import(cliPackageName)\n if (cliModule && typeof cliModule.init === 'function') {\n return cliModule\n }\n } catch (importError: any) {\n // Published package not available\n return null\n }\n \n return null\n}\n\n/**\n * Runs seed init programmatically, trying multiple methods:\n * 1. Try to dynamically import and call the CLI package's init function (prefers local monorepo version)\n * 2. Try to find and execute the seed binary\n * 3. Fall back to using npx\n * @param schemaFileDir - Optional path to schema file directory\n * @param appFilesDirPath - Optional path to app files directory\n */\nexport const runSeedInit = async (\n schemaFileDir?: string,\n appFilesDirPath?: string\n): Promise<void> => {\n\n const dbDirExists = fs.existsSync(`${appFilesDirPath}/db`)\n if (!dbDirExists) {\n fs.mkdirSync(`${appFilesDirPath}/db`, { recursive: true })\n }\n\n const dbUrl = `file:${appFilesDirPath}/db/seed.db`\n const client = createClient({ url: dbUrl })\n\n const db = drizzle(client, {schema})\n\n const { apply, hasDataLoss, warnings, statementsToExecute } = await pushSQLiteSchema(schema, db);\n \n // You can inspect what will happen before applying\n \n await apply();\n\n\n // // First, try to dynamically import the CLI package's init function\n // // This prefers local monorepo version in development, falls back to published package\n // try {\n // const cliModule = await importCliPackage()\n // if (cliModule && typeof cliModule.init === 'function') {\n // await cliModule.init(schemaFileDir, appFilesDirPath)\n // return\n // }\n // } catch (importError: any) {\n // // CLI package not available, continue to other methods\n // console.log('[seedInit] CLI package not available, trying binary execution')\n // }\n \n // // Try to find and execute the binary\n // const seedBinary = findSeedBinary()\n \n // if (seedBinary) {\n // // Binary found, execute it directly\n // const args = ['init']\n // if (schemaFileDir) {\n // args.push(schemaFileDir)\n // }\n // if (appFilesDirPath) {\n // args.push(appFilesDirPath)\n // }\n \n // try {\n // execSync(`node \"${seedBinary}\" ${args.join(' ')}`, {\n // stdio: 'inherit',\n // cwd: process.cwd(),\n // })\n // return\n // } catch (error: any) {\n // console.warn(`[seedInit] Failed to execute binary at ${seedBinary}: ${error.message}`)\n // // Continue to npx fallback\n // }\n // }\n \n // // Final fallback: use npx\n // const args = ['seed', 'init']\n // if (schemaFileDir) {\n // args.push(schemaFileDir)\n // }\n // if (appFilesDirPath) {\n // args.push(appFilesDirPath)\n // }\n \n // try {\n // execSync(`npx ${args.join(' ')}`, {\n // stdio: 'inherit',\n // cwd: process.cwd(),\n // })\n // } catch (error: any) {\n // throw new Error(\n // `Failed to run seed init command. ` +\n // `Tried: CLI package import, binary execution, and npx. ` +\n // `Please ensure @seedprotocol/cli is installed: ${error.message}`\n // )\n // }\n}\n\n"],"names":["__filename","fs","schema"],"mappings":";;;;;;;;;AASA;AACA,MAAMA,YAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AAC/B,IAAI,CAAC,OAAO,CAACA,YAAU;AAElC,MAAM,aAAa,GAAG,CAAC,OAAe,KAAa;AACxD,IAAA,IAAI;QACF,QAAQ,CAAC,CAAA,MAAA,EAAS,OAAO,CAAA,CAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AACjD,QAAA,OAAO,IAAI;IACb;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF;AAEA;;;AAGG;AACI,MAAM,cAAc,GAAG,MAAoB;AAChD,IAAA,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE;;AAGzB,IAAA,MAAM,aAAa,GAAG;QACpB,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC;AAC9C,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC;;AAExE,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC;AACpD,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC;AAC9E,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC;AAC1D,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC;KACrF;AAED,IAAA,KAAK,MAAM,OAAO,IAAI,aAAa,EAAE;AACnC,QAAA,IAAIC,WAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;AAC1B,YAAA,OAAO,OAAO;QAChB;IACF;AAEA,IAAA,OAAO,IAAI;AACb;AAyFA;;;;;;;AAOG;AACI,MAAM,WAAW,GAAG,OACzB,aAAsB,EACtB,eAAwB,KACP;IAEjB,MAAM,WAAW,GAAGA,WAAE,CAAC,UAAU,CAAC,CAAA,EAAG,eAAe,CAAA,GAAA,CAAK,CAAC;IAC1D,IAAI,CAAC,WAAW,EAAE;AAChB,QAAAA,WAAE,CAAC,SAAS,CAAC,CAAA,EAAG,eAAe,CAAA,GAAA,CAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IAC5D;AAEA,IAAA,MAAM,KAAK,GAAG,CAAA,KAAA,EAAQ,eAAe,aAAa;IAClD,MAAM,MAAM,GAAG,YAAY,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;IAE3C,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,UAACC,KAAM,EAAC,CAAC;AAEpC,IAAA,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,mBAAmB,EAAE,GAAG,MAAM,gBAAgB,CAACA,KAAM,EAAE,EAAE,CAAC;;IAIhG,MAAM,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8Df;;;;"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
// import path from "path";
|
|
2
|
-
// import { fileURLToPath } from "url";
|
|
3
|
-
// const __filename = fileURLToPath(import.meta.url);
|
|
4
|
-
// const __dirname = path.dirname(__filename);
|
|
5
|
-
const withSeed = (config, webpack, isServer) => {
|
|
6
|
-
// If you need to include directories outside of the project root
|
|
7
|
-
// config.module.rules.push({
|
|
8
|
-
// test: /\.ts$/,
|
|
9
|
-
// include: [path.resolve(process.cwd(), 'schema.ts')],
|
|
10
|
-
// use: 'ts-loader',
|
|
11
|
-
// })
|
|
12
|
-
config.plugins.push(
|
|
13
|
-
// new webpack.DefinePlugin({
|
|
14
|
-
// __dirname: JSON.stringify(__dirname),
|
|
15
|
-
// }),
|
|
16
|
-
new webpack.NormalModuleReplacementPlugin(/node:/, (resource) => {
|
|
17
|
-
resource.request = resource.request.replace(/^node:/, '');
|
|
18
|
-
}));
|
|
19
|
-
// config.externals.push({
|
|
20
|
-
// 'fsevents': 'commonjs2 fsevents',
|
|
21
|
-
// })
|
|
22
|
-
// console.log('__dirname:', __dirname)
|
|
23
|
-
// console.log('process.cwd():', process.cwd())
|
|
24
|
-
// console.log('crypto-browserify exists:', fs.existsSync(path.resolve(process.cwd(), './node_modules/crypto-browserify')))
|
|
25
|
-
// console.log('path-browserify exists:', fs.existsSync(path.resolve(process.cwd(), './node_modules/path-browserify')))
|
|
26
|
-
if (!isServer) {
|
|
27
|
-
// config.plugins.push(
|
|
28
|
-
// new webpack.NormalModuleReplacementPlugin(/node:/, (resource: any) => {
|
|
29
|
-
// resource.request = resource.request.replace(/^node:/, '')
|
|
30
|
-
// }),
|
|
31
|
-
// )
|
|
32
|
-
// config.plugins.push(
|
|
33
|
-
// new webpack.NormalModuleReplacementPlugin(
|
|
34
|
-
// /^(node:)?fs$/,
|
|
35
|
-
// (resource: any) => {
|
|
36
|
-
// resource.request = '@zenfs/core';
|
|
37
|
-
// }
|
|
38
|
-
// )
|
|
39
|
-
// )
|
|
40
|
-
// config.module.rules.push({
|
|
41
|
-
// test: /\.js$/,
|
|
42
|
-
// exclude: '/node_modules/@seedprotocol/sdk/node', // Exclude the 'node-files' directory
|
|
43
|
-
// use: {
|
|
44
|
-
// loader: 'babel-loader',
|
|
45
|
-
// options: {
|
|
46
|
-
// presets: ['next/babel'],
|
|
47
|
-
// },
|
|
48
|
-
// },
|
|
49
|
-
// });
|
|
50
|
-
// config.resolve.alias['fs/promises'] = '@zenfs/core/promises';
|
|
51
|
-
config.resolve.alias['fs'] = '@zenfs/core';
|
|
52
|
-
config.resolve.alias['node:fs'] = '@zenfs/core';
|
|
53
|
-
config.resolve.alias['node:path'] = 'path-browserify';
|
|
54
|
-
config.resolve.alias['path'] = 'path-browserify';
|
|
55
|
-
// config.resolve.alias['fs'] = path.resolve(
|
|
56
|
-
// process.cwd(),
|
|
57
|
-
// './node_modules/@zenfs/core',
|
|
58
|
-
// )
|
|
59
|
-
// config.resolve.alias['node:fs'] = path.resolve(
|
|
60
|
-
// process.cwd(),
|
|
61
|
-
// './node_modules/@zenfs/core',
|
|
62
|
-
// )
|
|
63
|
-
// config.resolve.alias['@schema'] = path.resolve(process.cwd(), 'schema.ts')
|
|
64
|
-
// // config.resolve.alias['crypto'] = path.resolve(process.cwd(), './node_modules/crypto-browserify')
|
|
65
|
-
// // config.resolve.alias['node:crypto'] = path.resolve(process.cwd(), './node_modules/crypto-browserify')
|
|
66
|
-
// config.resolve.alias['node:path'] = path.resolve(
|
|
67
|
-
// process.cwd(),
|
|
68
|
-
// './node_modules/path-browserify',
|
|
69
|
-
// )
|
|
70
|
-
// config.resolve.alias['path'] = path.resolve(
|
|
71
|
-
// process.cwd(),
|
|
72
|
-
// './node_modules/path-browserify',
|
|
73
|
-
// )
|
|
74
|
-
}
|
|
75
|
-
if (isServer) {
|
|
76
|
-
config.externals.push('@sqlite.org/sqlite-wasm');
|
|
77
|
-
config.externals.push('nunjucks');
|
|
78
|
-
config.externals.push('chokidar');
|
|
79
|
-
config.externals.push('arweave');
|
|
80
|
-
}
|
|
81
|
-
// config.module.rules.push({
|
|
82
|
-
// test: /seed\.config\.mjs$/,
|
|
83
|
-
// use: [
|
|
84
|
-
// {
|
|
85
|
-
// loader: 'babel-loader',
|
|
86
|
-
// options: {
|
|
87
|
-
// plugins: ['@babel/plugin-syntax-dynamic-import'],
|
|
88
|
-
// },
|
|
89
|
-
// },
|
|
90
|
-
// ],
|
|
91
|
-
// })
|
|
92
|
-
return config;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export { withSeed };
|
|
96
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/node/webpack/index.ts"],"sourcesContent":["// import path from \"path\";\n// import { fileURLToPath } from \"url\";\n\n// const __filename = fileURLToPath(import.meta.url);\n// const __dirname = path.dirname(__filename);\n\nexport const withSeed = (config: any, webpack: any, isServer: boolean) => {\n // If you need to include directories outside of the project root\n // config.module.rules.push({\n // test: /\\.ts$/,\n // include: [path.resolve(process.cwd(), 'schema.ts')],\n // use: 'ts-loader',\n // })\n\n config.plugins.push(\n // new webpack.DefinePlugin({\n // __dirname: JSON.stringify(__dirname),\n // }),\n new webpack.NormalModuleReplacementPlugin(/node:/, (resource) => {\n resource.request = resource.request.replace(/^node:/, '')\n }),\n )\n\n // config.externals.push({\n // 'fsevents': 'commonjs2 fsevents',\n // })\n\n // console.log('__dirname:', __dirname)\n // console.log('process.cwd():', process.cwd())\n\n // console.log('crypto-browserify exists:', fs.existsSync(path.resolve(process.cwd(), './node_modules/crypto-browserify')))\n // console.log('path-browserify exists:', fs.existsSync(path.resolve(process.cwd(), './node_modules/path-browserify')))\n\n if (!isServer) {\n // config.plugins.push(\n // new webpack.NormalModuleReplacementPlugin(/node:/, (resource: any) => {\n // resource.request = resource.request.replace(/^node:/, '')\n // }),\n // )\n // config.plugins.push(\n // new webpack.NormalModuleReplacementPlugin(\n // /^(node:)?fs$/,\n // (resource: any) => {\n // resource.request = '@zenfs/core';\n // }\n // )\n // )\n\n // config.module.rules.push({\n // test: /\\.js$/,\n // exclude: '/node_modules/@seedprotocol/sdk/node', // Exclude the 'node-files' directory\n // use: {\n // loader: 'babel-loader',\n // options: {\n // presets: ['next/babel'],\n // },\n // },\n // });\n\n\n // config.resolve.alias['fs/promises'] = '@zenfs/core/promises';\n\n config.resolve.alias['fs'] = '@zenfs/core'\n config.resolve.alias['node:fs'] = '@zenfs/core'\n config.resolve.alias['node:path'] = 'path-browserify'\n config.resolve.alias['path'] = 'path-browserify'\n\n // config.resolve.alias['fs'] = path.resolve(\n // process.cwd(),\n // './node_modules/@zenfs/core',\n // )\n // config.resolve.alias['node:fs'] = path.resolve(\n // process.cwd(),\n // './node_modules/@zenfs/core',\n // )\n // config.resolve.alias['@schema'] = path.resolve(process.cwd(), 'schema.ts')\n // // config.resolve.alias['crypto'] = path.resolve(process.cwd(), './node_modules/crypto-browserify')\n // // config.resolve.alias['node:crypto'] = path.resolve(process.cwd(), './node_modules/crypto-browserify')\n // config.resolve.alias['node:path'] = path.resolve(\n // process.cwd(),\n // './node_modules/path-browserify',\n // )\n // config.resolve.alias['path'] = path.resolve(\n // process.cwd(),\n // './node_modules/path-browserify',\n // )\n }\n\n if (isServer) {\n config.externals.push('@sqlite.org/sqlite-wasm')\n config.externals.push('nunjucks')\n config.externals.push('chokidar')\n config.externals.push('arweave')\n }\n\n // config.module.rules.push({\n // test: /seed\\.config\\.mjs$/,\n // use: [\n // {\n // loader: 'babel-loader',\n // options: {\n // plugins: ['@babel/plugin-syntax-dynamic-import'],\n // },\n // },\n // ],\n // })\n\n return config\n}\n"],"names":[],"mappings":"AAAA;AACA;AAEA;AACA;AAEO,MAAM,QAAQ,GAAG,CAAC,MAAW,EAAE,OAAY,EAAE,QAAiB,KAAI;;;;;;;IAQvE,MAAM,CAAC,OAAO,CAAC,IAAI;;;;IAIjB,IAAI,OAAO,CAAC,6BAA6B,CAAC,OAAO,EAAE,CAAC,QAAQ,KAAI;AAC9D,QAAA,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;IAC3D,CAAC,CAAC,CACH;;;;;;;;IAYD,IAAI,CAAC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;QA6Bb,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,aAAa;QAC1C,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,aAAa;QAC/C,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,iBAAiB;QACrD,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,iBAAiB;;;;;;;;;;;;;;;;;;;;IAqBlD;IAEA,IAAI,QAAQ,EAAE;AACZ,QAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,yBAAyB,CAAC;AAChD,QAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;AACjC,QAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;AACjC,QAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC;IAClC;;;;;;;;;;;;AAcA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export = EventEmitter;
|
|
2
|
-
declare function EventEmitter(): void;
|
|
3
|
-
declare class EventEmitter {
|
|
4
|
-
_events: any;
|
|
5
|
-
_eventsCount: number | undefined;
|
|
6
|
-
_maxListeners: number | undefined;
|
|
7
|
-
setMaxListeners(n: any): this;
|
|
8
|
-
getMaxListeners(): any;
|
|
9
|
-
emit(type: any, ...args: any[]): boolean;
|
|
10
|
-
addListener(type: any, listener: any): any;
|
|
11
|
-
on: any;
|
|
12
|
-
prependListener(type: any, listener: any): any;
|
|
13
|
-
once(type: any, listener: any): this;
|
|
14
|
-
prependOnceListener(type: any, listener: any): this;
|
|
15
|
-
removeListener(type: any, listener: any): this;
|
|
16
|
-
off: any;
|
|
17
|
-
removeAllListeners(type: any, ...args: any[]): this;
|
|
18
|
-
listeners(type: any): any[];
|
|
19
|
-
rawListeners(type: any): any[];
|
|
20
|
-
listenerCount: typeof listenerCount;
|
|
21
|
-
eventNames(): any;
|
|
22
|
-
}
|
|
23
|
-
declare namespace EventEmitter {
|
|
24
|
-
export { EventEmitter, defaultMaxListeners, init, listenerCount, once };
|
|
25
|
-
}
|
|
26
|
-
declare function listenerCount(type: any): any;
|
|
27
|
-
declare var defaultMaxListeners: number;
|
|
28
|
-
declare function init(): void;
|
|
29
|
-
declare function listenerCount(emitter: any, type: any): any;
|
|
30
|
-
declare function once(emitter: any, name: any): Promise<any>;
|
|
31
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../../../node_modules/.bun/events@3.3.0/node_modules/events/events.js"],"names":[],"mappings":";AAoDA,sCAEC;;IAOD,aAA8B;IAC9B,iCAAmC;IACnC,kCAAoC;IAsCpC,8BAMC;IAQD,uBAEC;IAED,yCA0CC;IAgED,2CAEC;IAED,QAAyB;IAEzB,+CAGK;IAoBL,qCAIC;IAED,oDAKK;IAGL,+CAkDK;IAEL,SAA0B;IAE1B,oDAiDK;IAmBL,4BAEC;IAED,+BAEC;IAUD,oCAAoC;IAiBpC,kBAEC;;;;;AAlBD,+CAcC;;AA7UD,8BASC;AA6SD,6DAMC;AA4CD,6DAmBC"}
|