@adaas/a-frame 0.0.22 → 0.0.23
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/.conf/tsconfig.browser.json +13 -0
- package/.conf/tsconfig.node.json +14 -0
- package/.env.example +12 -0
- package/dist/browser/A-FrameBrowserStorageBlobs.context-OEQr85oq.d.mts +40 -0
- package/dist/browser/A-FrameBundle.types-DaaUvViw.d.mts +33 -0
- package/dist/browser/A-FrameChannel.types-DWOEUs28.d.mts +142 -0
- package/dist/browser/A-FrameDefinition.entity-DWGN_Ujr.d.mts +329 -0
- package/dist/browser/A-FrameDynamicStructure.entity-DaBgSRCR.d.mts +188 -0
- package/dist/browser/A-FrameLogger.component.env-browser-BIPAP4oQ.d.mts +112 -0
- package/dist/browser/A-FrameNamespace.entity-rCm1AavP.d.mts +125 -0
- package/dist/browser/bundle.d.mts +8 -0
- package/dist/browser/bundle.mjs +2 -0
- package/dist/browser/bundle.mjs.map +1 -0
- package/dist/browser/channel.d.mts +165 -0
- package/dist/browser/channel.mjs +3 -0
- package/dist/browser/channel.mjs.map +1 -0
- package/dist/browser/chunk-5TTVFB3G.mjs +2 -0
- package/dist/browser/chunk-5TTVFB3G.mjs.map +1 -0
- package/dist/browser/chunk-AYN7KUQT.mjs +3 -0
- package/dist/browser/chunk-AYN7KUQT.mjs.map +1 -0
- package/dist/browser/chunk-DMGQW3AO.mjs +2 -0
- package/dist/browser/chunk-DMGQW3AO.mjs.map +1 -0
- package/dist/browser/chunk-G66IL2DR.mjs +2 -0
- package/dist/browser/chunk-G66IL2DR.mjs.map +1 -0
- package/dist/browser/chunk-H6OZP4ZV.mjs +2 -0
- package/dist/browser/chunk-H6OZP4ZV.mjs.map +1 -0
- package/dist/browser/chunk-INS7RO3B.mjs +2 -0
- package/dist/browser/chunk-INS7RO3B.mjs.map +1 -0
- package/dist/browser/chunk-K4MZY4ME.mjs +2 -0
- package/dist/browser/chunk-K4MZY4ME.mjs.map +1 -0
- package/dist/browser/chunk-OFKV5GNB.mjs +3 -0
- package/dist/browser/chunk-OFKV5GNB.mjs.map +1 -0
- package/dist/browser/chunk-QATIN7CO.mjs +3 -0
- package/dist/browser/chunk-QATIN7CO.mjs.map +1 -0
- package/dist/browser/chunk-QBBQ37P3.mjs +2 -0
- package/dist/browser/chunk-QBBQ37P3.mjs.map +1 -0
- package/dist/browser/chunk-VDVJWU5T.mjs +2 -0
- package/dist/browser/chunk-VDVJWU5T.mjs.map +1 -0
- package/dist/browser/chunk-X3C4I6YJ.mjs +2 -0
- package/dist/browser/chunk-X3C4I6YJ.mjs.map +1 -0
- package/dist/browser/chunk-ZVCTU2DN.mjs +3 -0
- package/dist/browser/chunk-ZVCTU2DN.mjs.map +1 -0
- package/dist/browser/core.d.mts +97 -0
- package/dist/browser/core.mjs +2 -0
- package/dist/browser/core.mjs.map +1 -0
- package/dist/browser/crypto.d.mts +35 -0
- package/dist/browser/crypto.mjs +2 -0
- package/dist/browser/crypto.mjs.map +1 -0
- package/dist/browser/definition.d.mts +13 -0
- package/dist/browser/definition.mjs +2 -0
- package/dist/browser/definition.mjs.map +1 -0
- package/dist/browser/dynamic-feature.d.mts +10 -0
- package/dist/browser/dynamic-feature.mjs +2 -0
- package/dist/browser/dynamic-feature.mjs.map +1 -0
- package/dist/browser/dynamic-structure.d.mts +12 -0
- package/dist/browser/dynamic-structure.mjs +2 -0
- package/dist/browser/dynamic-structure.mjs.map +1 -0
- package/dist/browser/env.d.mts +2 -0
- package/dist/browser/env.mjs +2 -0
- package/dist/browser/env.mjs.map +1 -0
- package/dist/browser/frame-index.d.mts +95 -0
- package/dist/browser/frame-index.mjs +2 -0
- package/dist/browser/frame-index.mjs.map +1 -0
- package/dist/browser/index.browser-CZlhzfSP.d.mts +22 -0
- package/dist/browser/index.d.mts +1 -144
- package/dist/browser/index.mjs +1 -1
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/logger.d.mts +41 -0
- package/dist/browser/logger.mjs +2 -0
- package/dist/browser/logger.mjs.map +1 -0
- package/dist/browser/namespace.d.mts +13 -0
- package/dist/browser/namespace.mjs +2 -0
- package/dist/browser/namespace.mjs.map +1 -0
- package/dist/browser/storage.d.mts +194 -0
- package/dist/browser/storage.mjs +2 -0
- package/dist/browser/storage.mjs.map +1 -0
- package/dist/browser/vector.d.mts +15 -0
- package/dist/browser/vector.mjs +2 -0
- package/dist/browser/vector.mjs.map +1 -0
- package/dist/index.cjs +0 -0
- package/dist/node/A-FrameChannel.component-BfBcs734.d.ts +62 -0
- package/dist/node/A-FrameChannel.component-NNKcFViw.d.mts +62 -0
- package/dist/node/A-FrameChannel.types-DQF-IiRq.d.mts +146 -0
- package/dist/node/A-FrameChannel.types-DQF-IiRq.d.ts +146 -0
- package/dist/node/A-FrameDefinition.entity-CAUOdEvU.d.ts +329 -0
- package/dist/node/A-FrameDefinition.entity-DWGN_Ujr.d.mts +329 -0
- package/dist/node/A-FrameDynamicStructure.entity-DaBgSRCR.d.mts +188 -0
- package/dist/node/A-FrameDynamicStructure.entity-DaBgSRCR.d.ts +188 -0
- package/dist/node/A-FrameNamespace.entity-D3fZBGDx.d.ts +125 -0
- package/dist/node/A-FrameNamespace.entity-rCm1AavP.d.mts +125 -0
- package/dist/node/A-FrameStorage.component-BYjHfHJJ.d.mts +107 -0
- package/dist/node/A-FrameStorage.component-CT01fs-t.d.ts +107 -0
- package/dist/node/bundle.cjs +101 -0
- package/dist/node/bundle.cjs.map +1 -0
- package/dist/node/bundle.d.mts +69 -0
- package/dist/node/bundle.d.ts +69 -0
- package/dist/node/bundle.mjs +76 -0
- package/dist/node/bundle.mjs.map +1 -0
- package/dist/node/channel.cjs +60 -0
- package/dist/node/channel.cjs.map +1 -0
- package/dist/node/channel.d.mts +61 -0
- package/dist/node/channel.d.ts +61 -0
- package/dist/node/channel.mjs +11 -0
- package/dist/node/channel.mjs.map +1 -0
- package/dist/node/chunk-3LOMGNWA.cjs +8 -0
- package/dist/node/chunk-3LOMGNWA.cjs.map +1 -0
- package/dist/node/chunk-3ONWH75E.mjs +257 -0
- package/dist/node/chunk-3ONWH75E.mjs.map +1 -0
- package/dist/node/chunk-3TD2PEDZ.mjs +53 -0
- package/dist/node/chunk-3TD2PEDZ.mjs.map +1 -0
- package/dist/node/chunk-442DXGOD.mjs +16 -0
- package/dist/node/chunk-442DXGOD.mjs.map +1 -0
- package/dist/node/chunk-6EFXNUL4.mjs +6 -0
- package/dist/node/chunk-6EFXNUL4.mjs.map +1 -0
- package/dist/node/chunk-7A6XGT5J.cjs +541 -0
- package/dist/node/chunk-7A6XGT5J.cjs.map +1 -0
- package/dist/node/chunk-AOQRXZPC.mjs +207 -0
- package/dist/node/chunk-AOQRXZPC.mjs.map +1 -0
- package/dist/node/chunk-APRYHBEF.mjs +171 -0
- package/dist/node/chunk-APRYHBEF.mjs.map +1 -0
- package/dist/node/chunk-B7BXP7K4.mjs +253 -0
- package/dist/node/chunk-B7BXP7K4.mjs.map +1 -0
- package/dist/node/chunk-B7ZDJXD3.cjs +35 -0
- package/dist/node/chunk-B7ZDJXD3.cjs.map +1 -0
- package/dist/node/chunk-CP6JHUU6.cjs +541 -0
- package/dist/node/chunk-CP6JHUU6.cjs.map +1 -0
- package/dist/node/chunk-DDCEMKBP.mjs +655 -0
- package/dist/node/chunk-DDCEMKBP.mjs.map +1 -0
- package/dist/node/chunk-DMY44VUG.mjs +655 -0
- package/dist/node/chunk-DMY44VUG.mjs.map +1 -0
- package/dist/node/chunk-F4UCOZW5.mjs +33 -0
- package/dist/node/chunk-F4UCOZW5.mjs.map +1 -0
- package/dist/node/chunk-GBTFMT3K.cjs +256 -0
- package/dist/node/chunk-GBTFMT3K.cjs.map +1 -0
- package/dist/node/chunk-GNVXVK2B.cjs +8 -0
- package/dist/node/chunk-GNVXVK2B.cjs.map +1 -0
- package/dist/node/chunk-IIVYTS5M.mjs +239 -0
- package/dist/node/chunk-IIVYTS5M.mjs.map +1 -0
- package/dist/node/chunk-JQBYDEMW.mjs +33 -0
- package/dist/node/chunk-JQBYDEMW.mjs.map +1 -0
- package/dist/node/chunk-K4MZY4ME.mjs +3 -0
- package/dist/node/chunk-K4MZY4ME.mjs.map +1 -0
- package/dist/node/chunk-KK64VLZN.cjs +4 -0
- package/dist/node/chunk-KK64VLZN.cjs.map +1 -0
- package/dist/node/chunk-KLG6HKFU.cjs +175 -0
- package/dist/node/chunk-KLG6HKFU.cjs.map +1 -0
- package/dist/node/chunk-LJIZ47HO.cjs +688 -0
- package/dist/node/chunk-LJIZ47HO.cjs.map +1 -0
- package/dist/node/chunk-NIXKAQVP.cjs +35 -0
- package/dist/node/chunk-NIXKAQVP.cjs.map +1 -0
- package/dist/node/chunk-OI76LHVT.mjs +21 -0
- package/dist/node/chunk-OI76LHVT.mjs.map +1 -0
- package/dist/node/chunk-OJGCQNAH.mjs +529 -0
- package/dist/node/chunk-OJGCQNAH.mjs.map +1 -0
- package/dist/node/chunk-QFHZIG7Y.cjs +25 -0
- package/dist/node/chunk-QFHZIG7Y.cjs.map +1 -0
- package/dist/node/chunk-QFUZVN4Y.cjs +259 -0
- package/dist/node/chunk-QFUZVN4Y.cjs.map +1 -0
- package/dist/node/chunk-RRLTGGM7.cjs +209 -0
- package/dist/node/chunk-RRLTGGM7.cjs.map +1 -0
- package/dist/node/chunk-TO4BPKCY.mjs +6 -0
- package/dist/node/chunk-TO4BPKCY.mjs.map +1 -0
- package/dist/node/chunk-UKKCN7CQ.cjs +688 -0
- package/dist/node/chunk-UKKCN7CQ.cjs.map +1 -0
- package/dist/node/chunk-UPA7VN4R.mjs +153 -0
- package/dist/node/chunk-UPA7VN4R.mjs.map +1 -0
- package/dist/node/chunk-UTJ7CVVB.cjs +248 -0
- package/dist/node/chunk-UTJ7CVVB.cjs.map +1 -0
- package/dist/node/chunk-YVX4W6SI.cjs +155 -0
- package/dist/node/chunk-YVX4W6SI.cjs.map +1 -0
- package/dist/node/chunk-YWWGJ6EJ.cjs +55 -0
- package/dist/node/chunk-YWWGJ6EJ.cjs.map +1 -0
- package/dist/node/chunk-Z4HUCRK2.mjs +529 -0
- package/dist/node/chunk-Z4HUCRK2.mjs.map +1 -0
- package/dist/node/chunk-ZM2RLVVH.cjs +18 -0
- package/dist/node/chunk-ZM2RLVVH.cjs.map +1 -0
- package/dist/node/core.cjs +261 -0
- package/dist/node/core.cjs.map +1 -0
- package/dist/node/core.d.mts +76 -0
- package/dist/node/core.d.ts +76 -0
- package/dist/node/core.mjs +250 -0
- package/dist/node/core.mjs.map +1 -0
- package/dist/node/crypto.cjs +13 -0
- package/dist/node/crypto.cjs.map +1 -0
- package/dist/node/crypto.d.mts +44 -0
- package/dist/node/crypto.d.ts +44 -0
- package/dist/node/crypto.mjs +4 -0
- package/dist/node/crypto.mjs.map +1 -0
- package/dist/node/definition.cjs +19 -0
- package/dist/node/definition.cjs.map +1 -0
- package/dist/node/definition.d.mts +13 -0
- package/dist/node/definition.d.ts +13 -0
- package/dist/node/definition.mjs +6 -0
- package/dist/node/definition.mjs.map +1 -0
- package/dist/node/dynamic-feature.cjs +14 -0
- package/dist/node/dynamic-feature.cjs.map +1 -0
- package/dist/node/dynamic-feature.d.mts +10 -0
- package/dist/node/dynamic-feature.d.ts +10 -0
- package/dist/node/dynamic-feature.mjs +12 -0
- package/dist/node/dynamic-feature.mjs.map +1 -0
- package/dist/node/dynamic-structure.cjs +143 -0
- package/dist/node/dynamic-structure.cjs.map +1 -0
- package/dist/node/dynamic-structure.d.mts +12 -0
- package/dist/node/dynamic-structure.d.ts +12 -0
- package/dist/node/dynamic-structure.mjs +138 -0
- package/dist/node/dynamic-structure.mjs.map +1 -0
- package/dist/node/env.cjs +14 -0
- package/dist/node/env.cjs.map +1 -0
- package/dist/node/env.d.mts +22 -0
- package/dist/node/env.d.ts +22 -0
- package/dist/node/env.mjs +5 -0
- package/dist/node/env.mjs.map +1 -0
- package/dist/node/frame-index.cjs +16 -0
- package/dist/node/frame-index.cjs.map +1 -0
- package/dist/node/frame-index.d.mts +95 -0
- package/dist/node/frame-index.d.ts +95 -0
- package/dist/node/frame-index.mjs +7 -0
- package/dist/node/frame-index.mjs.map +1 -0
- package/dist/node/index.cjs +0 -288
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.mts +1 -144
- package/dist/node/index.d.ts +1 -144
- package/dist/node/index.mjs +0 -284
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/logger.cjs +41 -0
- package/dist/node/logger.cjs.map +1 -0
- package/dist/node/logger.d.mts +150 -0
- package/dist/node/logger.d.ts +150 -0
- package/dist/node/logger.mjs +4 -0
- package/dist/node/logger.mjs.map +1 -0
- package/dist/node/namespace.cjs +24 -0
- package/dist/node/namespace.cjs.map +1 -0
- package/dist/node/namespace.d.mts +13 -0
- package/dist/node/namespace.d.ts +13 -0
- package/dist/node/namespace.mjs +7 -0
- package/dist/node/namespace.mjs.map +1 -0
- package/dist/node/storage.cjs +42 -0
- package/dist/node/storage.cjs.map +1 -0
- package/dist/node/storage.d.mts +110 -0
- package/dist/node/storage.d.ts +110 -0
- package/dist/node/storage.mjs +13 -0
- package/dist/node/storage.mjs.map +1 -0
- package/dist/node/vector.cjs +13 -0
- package/dist/node/vector.cjs.map +1 -0
- package/dist/node/vector.d.mts +15 -0
- package/dist/node/vector.d.ts +15 -0
- package/dist/node/vector.mjs +4 -0
- package/dist/node/vector.mjs.map +1 -0
- package/jest.config.browser.ts +41 -0
- package/jest.config.ts +18 -8
- package/package.json +125 -13
- package/{index.ts → src/concept.ts} +5 -2
- package/src/helpers/Hash.helper.ts +14 -0
- package/src/index.ts +0 -24
- package/src/lib/A-Frame/A-Frame.component.env-browser.ts +124 -0
- package/src/lib/A-Frame/A-Frame.component.env-node.ts +106 -0
- package/src/lib/A-Frame/A-Frame.component.ts +62 -0
- package/src/lib/A-Frame/A-Frame.context.ts +40 -0
- package/src/lib/{components/Index.component.ts/Index.error.ts → A-Frame/A-Frame.error.ts} +1 -1
- package/src/lib/{components/Index.component.ts/Index.guard.ts → A-Frame/A-Frame.guard.ts} +9 -6
- package/src/lib/A-Frame/A-Frame.meta.ts +27 -0
- package/src/lib/{components/Index.component.ts/Index.types.ts → A-Frame/A-Frame.types.ts} +52 -17
- package/src/lib/A-Frame/decorators/A-FrameDefine.decorator.ts +104 -0
- package/src/lib/A-Frame/decorators/A-FrameNamespace.decorator.ts +33 -0
- package/src/lib/A-Frame/index.browser.ts +10 -0
- package/src/lib/A-Frame/index.ts +10 -0
- package/src/lib/A-FrameBundle/A-FrameBundle.builder.env-node.ts +95 -0
- package/src/lib/A-FrameBundle/A-FrameBundle.constants.ts +5 -0
- package/src/lib/A-FrameBundle/A-FrameBundle.types.ts +31 -0
- package/src/lib/A-FrameBundle/index.browser.ts +6 -0
- package/src/lib/A-FrameBundle/index.ts +7 -0
- package/src/lib/A-FrameCLI/A-FrameCLI.container.ts +333 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.component.env-browser.ts +63 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.component.env-node.ts +586 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.component.ts +273 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.constants.ts +39 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.error.ts +10 -0
- package/src/lib/A-FrameChannel/A-FrameChannel.types.ts +143 -0
- package/src/lib/A-FrameChannel/A-FrameChannelEvent.context.ts +28 -0
- package/src/lib/A-FrameChannel/A-FrameChannelRequest.context.ts +36 -0
- package/src/lib/A-FrameChannel/A-FrameChannelSocket.entity.ts +189 -0
- package/src/lib/A-FrameChannel/A-FrameChannelStream.entity.ts +144 -0
- package/src/lib/A-FrameChannel/index.browser.ts +3 -0
- package/src/lib/A-FrameChannel/index.ts +10 -0
- package/src/lib/A-FrameCrypto/A-FrameCrypto.component.env-browser.ts +123 -0
- package/src/lib/A-FrameCrypto/A-FrameCrypto.component.env-node.ts +204 -0
- package/src/lib/A-FrameCrypto/index.browser.ts +1 -0
- package/src/lib/A-FrameCrypto/index.ts +1 -0
- package/src/lib/A-FrameDefinition/A-FrameDefinition.constants.ts +8 -0
- package/src/lib/A-FrameDefinition/A-FrameDefinition.entity.ts +290 -0
- package/src/lib/A-FrameDefinition/A-FrameDefinition.types.ts +109 -0
- package/src/lib/A-FrameDefinition/index.ts +3 -0
- package/src/lib/A-FrameDynamicFeature/A-FrameDynamicFeature.entity.ts +13 -0
- package/src/lib/A-FrameDynamicFeature/A-FrameDynamicFeature.types.ts +10 -0
- package/src/lib/A-FrameDynamicFeature/index.ts +2 -0
- package/src/lib/A-FrameDynamicPatch/A-FrameDynamicPatch.entity.ts +38 -0
- package/src/lib/A-FrameDynamicPatch/A-FrameDynamicPatch.types.ts +20 -0
- package/src/lib/A-FrameDynamicSession/A-FrameDynamicSession.constants.ts +9 -0
- package/src/lib/A-FrameDynamicSession/A-FrameDynamicSession.entity.ts +91 -0
- package/src/lib/A-FrameDynamicSession/A-FrameDynamicSession.types.ts +18 -0
- package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.constants.ts +13 -0
- package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.entity.ts +187 -0
- package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.error.ts +13 -0
- package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.types.ts +128 -0
- package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructureOperation.context.ts +32 -0
- package/src/lib/A-FrameDynamicStructure/index.ts +5 -0
- package/src/lib/A-FrameEnv/A-FrameEnv.fragment.env-browser.ts +31 -0
- package/src/lib/A-FrameEnv/A-FrameEnv.fragment.env-node.ts +39 -0
- package/src/lib/A-FrameEnv/A-FrameEnv.types.ts +7 -0
- package/src/lib/A-FrameEnv/index.browser.ts +1 -0
- package/src/lib/A-FrameEnv/index.ts +1 -0
- package/src/lib/A-FrameIndex/A-FrameIndex.context.ts +321 -0
- package/src/lib/A-FrameIndex/A-FrameIndex.types.ts +63 -0
- package/src/lib/A-FrameIndex/index.browser.ts +3 -0
- package/src/lib/A-FrameIndex/index.ts +3 -0
- package/src/lib/A-FrameLogger/A-FrameLogger.component.env-browser.ts +99 -0
- package/src/lib/A-FrameLogger/A-FrameLogger.component.env-node.ts +129 -0
- package/src/lib/A-FrameLogger/A-FrameLogger.component.ts +123 -0
- package/src/lib/A-FrameLogger/A-FrameLogger.constants.ts +66 -0
- package/src/lib/A-FrameLogger/A-FrameLogger.types.ts +67 -0
- package/src/lib/A-FrameLogger/index.browser.ts +4 -0
- package/src/lib/A-FrameLogger/index.ts +4 -0
- package/src/lib/A-FrameNamespace/A-FrameNamespace.constants.ts +12 -0
- package/src/lib/A-FrameNamespace/A-FrameNamespace.entity.ts +211 -0
- package/src/lib/A-FrameNamespace/A-FrameNamespace.types.ts +72 -0
- package/src/lib/A-FrameNamespace/index.ts +3 -0
- package/src/lib/A-FrameStorage/A-FrameStorage.codec.ts +338 -0
- package/src/lib/A-FrameStorage/A-FrameStorage.component.ts +191 -0
- package/src/lib/A-FrameStorage/A-FrameStorage.constants.ts +11 -0
- package/src/lib/A-FrameStorage/A-FrameStorage.error.ts +13 -0
- package/src/lib/A-FrameStorage/A-FrameStorage.types.ts +98 -0
- package/src/lib/A-FrameStorage/A-FrameStorageOperation.context.ts +59 -0
- package/src/lib/A-FrameStorage/browser/A-FrameBrowserStorage.component.ts +312 -0
- package/src/lib/A-FrameStorage/browser/A-FrameBrowserStorageBlobs.context.ts +77 -0
- package/src/lib/A-FrameStorage/index.browser.ts +11 -0
- package/src/lib/A-FrameStorage/index.ts +10 -0
- package/src/lib/A-FrameStorage/node/A-FrameNodeStorage.component.ts +464 -0
- package/src/lib/A-FrameStorage/server/A-FrameServerStorage.component.ts +177 -0
- package/src/lib/{entities/A_FrameVector/A_FrameVector.entity.ts → A-FrameVector/A-FrameVector.entity.ts} +10 -0
- package/src/lib/A-FrameVector/index.ts +3 -0
- package/tests/A-Frame.browser.test.ts +94 -0
- package/tests/A-Frame.test.ts +73 -68
- package/tests/jest.browser-environment.js +30 -0
- package/tests/jest.polyfills.browser.ts +13 -0
- package/tests/jest.setup.browser.ts +33 -0
- package/tsconfig.browser.json +54 -0
- package/tsconfig.json +16 -0
- package/tsup.config.ts +32 -2
- package/src/lib/components/Builder.component.ts/Builder.component.ts +0 -0
- package/src/lib/components/Index.component.ts/Index.component.ts +0 -79
- package/src/lib/components/Index.component.ts/Index.constants.ts +0 -0
- package/src/lib/components/Index.component.ts/Index.meta.ts +0 -28
- package/src/lib/components/Index.component.ts/IndexConfigurations.meta.ts +0 -78
- package/src/lib/components/Index.component.ts/decorators/IndexComponent.decorator.ts +0 -97
- package/src/lib/components/Index.component.ts/decorators/IndexDescribe.decorator.ts +0 -59
- package/src/lib/components/Index.component.ts/decorators/IndexNamespace.decorator.ts +0 -57
- package/src/lib/components/Search/A_FrameSearch.component.ts +0 -66
- package/src/lib/containers/CLI.container.ts +0 -27
- package/src/lib/entities/Namespace/Namespace.entity.ts +0 -8
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { A_CommonHelper, A_Context, A_Entity, A_Scope, A_TYPES__A_DependencyInjectable } from "@adaas/a-concept";
|
|
2
|
+
import { A_FrameDynamicStructure_Init, A_FrameDynamicStructure_Serialized, A_FrameDynamicStructureEventNames, A_FrameDynamicStructureListener, A_FrameDynamicStructureResolvedComponent } from "./A-FrameDynamicStructure.types";
|
|
3
|
+
import { A_FrameDynamicStructureFeatures } from "./A-FrameDynamicStructure.constants";
|
|
4
|
+
import { A_FrameDynamicPatch } from "../A-FrameDynamicPatch/A-FrameDynamicPatch.entity";
|
|
5
|
+
import { A_FrameDynamicStructureError } from "./A-FrameDynamicStructure.error";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export class A_FrameDynamicStructure extends A_Entity<A_FrameDynamicStructure_Init, A_FrameDynamicStructure_Serialized> {
|
|
10
|
+
|
|
11
|
+
static get concept(): string {
|
|
12
|
+
return 'a-frame';
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// ── Identity ────────────────────────────────────────────────────────────────
|
|
16
|
+
prompt!: string;
|
|
17
|
+
createdAt!: number;
|
|
18
|
+
|
|
19
|
+
// ── Config ──────────────────────────────────────────────────────────────────
|
|
20
|
+
private model!: string;
|
|
21
|
+
private context!: string;
|
|
22
|
+
private metaHint!: string;
|
|
23
|
+
private includeBases!: string[];
|
|
24
|
+
private excludeBases!: string[];
|
|
25
|
+
private enabledComponents!: string[];
|
|
26
|
+
// ── State ───────────────────────────────────────────────────────────────────
|
|
27
|
+
private _components!: A_FrameDynamicStructureResolvedComponent[]
|
|
28
|
+
private _history!: A_FrameDynamicPatch[]
|
|
29
|
+
private _version = 0;
|
|
30
|
+
|
|
31
|
+
private listeners!: Map<string, Set<A_FrameDynamicStructureListener>>;
|
|
32
|
+
|
|
33
|
+
fromNew(options: A_FrameDynamicStructure_Init) {
|
|
34
|
+
this.createdAt = Date.now();
|
|
35
|
+
|
|
36
|
+
this._components = [];
|
|
37
|
+
this._history = [];
|
|
38
|
+
this._version = 0;
|
|
39
|
+
|
|
40
|
+
this.listeners = new Map();
|
|
41
|
+
|
|
42
|
+
this.prompt = options.prompt;
|
|
43
|
+
this.model = options.model;
|
|
44
|
+
this.context = options.context ?? 'generic';
|
|
45
|
+
this.metaHint = options.metaHint ?? '';
|
|
46
|
+
this.includeBases = (options.includeBases || []).map((b) => typeof b === 'string' ? b : A_CommonHelper.getComponentName(b));
|
|
47
|
+
this.excludeBases = (options.excludeBases || []).map((b) => typeof b === 'string' ? b : A_CommonHelper.getComponentName(b));
|
|
48
|
+
this.enabledComponents = (options.enabledComponents || []).map((b) => typeof b === 'string' ? b : A_CommonHelper.getComponentName(b));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// ── Public read-only accessors ───────────────────────────────────────────────
|
|
52
|
+
|
|
53
|
+
/** The current resolved component list (output of the last generate or patch). */
|
|
54
|
+
get components(): ReadonlyArray<A_FrameDynamicStructureResolvedComponent> {
|
|
55
|
+
return this._components;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Immutable patch history. */
|
|
59
|
+
get history(): ReadonlyArray<A_FrameDynamicPatch> {
|
|
60
|
+
return this._history;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** Current schema version (increments with each patch). */
|
|
64
|
+
get version(): number {
|
|
65
|
+
return this._version;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
// ── Main pipeline ────────────────────────────────────────────────────────────
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Run the full generation pipeline:
|
|
73
|
+
* content generation → structure mapping → encode → patch
|
|
74
|
+
*
|
|
75
|
+
* @returns The resolved component list.
|
|
76
|
+
*/
|
|
77
|
+
async generate(): Promise<void> {
|
|
78
|
+
// const context = new A_FrameDynamicStructureOperation();
|
|
79
|
+
|
|
80
|
+
// const executionScope = new A_Scope({
|
|
81
|
+
// name: 'a-frame-dynamic-structure-generate',
|
|
82
|
+
// fragments: [context],
|
|
83
|
+
// })
|
|
84
|
+
// .inherit(A_Context.scope(this));
|
|
85
|
+
|
|
86
|
+
// try {
|
|
87
|
+
|
|
88
|
+
// await this.call(A_FrameDynamicStructureFeatures.Generate, executionScope);
|
|
89
|
+
|
|
90
|
+
// executionScope.destroy();
|
|
91
|
+
|
|
92
|
+
// return context;
|
|
93
|
+
|
|
94
|
+
// } catch (err) {
|
|
95
|
+
// executionScope.destroy();
|
|
96
|
+
// throw new A_FrameDynamicStructureError({
|
|
97
|
+
// title: A_FrameDynamicStructureError.GenerationFailed,
|
|
98
|
+
// description: `Failed to generate structure: ${err instanceof Error ? err.message : String(err)}`,
|
|
99
|
+
// });
|
|
100
|
+
// }
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
async patch(prompt: string): Promise<void> {
|
|
105
|
+
this._version++;
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Restore the component list to a specific version from history.
|
|
111
|
+
* Creates a new patch entry so the revert itself is tracked.
|
|
112
|
+
*/
|
|
113
|
+
revertTo(version: number): this {
|
|
114
|
+
// this._currentVersion = version;
|
|
115
|
+
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// ── Serialisation ─────────────────────────────────────────────────────────────
|
|
120
|
+
|
|
121
|
+
// /**
|
|
122
|
+
// * Encode the complete DynamicStructure state to an opaque base64 string.
|
|
123
|
+
// * Suitable for storage, transport, or embedding in another system.
|
|
124
|
+
// */
|
|
125
|
+
// serialize(): string {
|
|
126
|
+
// const payload: SerializedDynamicStructure = {
|
|
127
|
+
// id: this.id,
|
|
128
|
+
// version: this._version,
|
|
129
|
+
// prompt: this.prompt,
|
|
130
|
+
// components: [...this._components],
|
|
131
|
+
// history: this._history.map(({ version, timestamp, reason }) => ({
|
|
132
|
+
// version,
|
|
133
|
+
// timestamp,
|
|
134
|
+
// reason,
|
|
135
|
+
// })),
|
|
136
|
+
// };
|
|
137
|
+
// return encode(payload);
|
|
138
|
+
// }
|
|
139
|
+
|
|
140
|
+
// /**
|
|
141
|
+
// * Decode a serialised string back to its raw payload.
|
|
142
|
+
// * Note: this is a static factory that returns the data only —
|
|
143
|
+
// * it does not reconstruct a live DynamicStructure instance.
|
|
144
|
+
// *
|
|
145
|
+
// * To reconstruct a live instance, create a new DynamicStructure and
|
|
146
|
+
// * call .patch() with the decoded components.
|
|
147
|
+
// */
|
|
148
|
+
// static deserialize(encoded: string): SerializedDynamicStructure {
|
|
149
|
+
// return decode<SerializedDynamicStructure>(encoded);
|
|
150
|
+
// }
|
|
151
|
+
|
|
152
|
+
toJSON(): A_FrameDynamicStructure_Serialized {
|
|
153
|
+
return {
|
|
154
|
+
...super.toJSON(),
|
|
155
|
+
name: this.prompt,
|
|
156
|
+
description: `DynamicStructure with ${this._components.length} components and ${this._history.length} patches`,
|
|
157
|
+
metadata: {
|
|
158
|
+
model: this.model,
|
|
159
|
+
context: this.context,
|
|
160
|
+
metaHint: this.metaHint,
|
|
161
|
+
includeBases: this.includeBases,
|
|
162
|
+
excludeBases: this.excludeBases,
|
|
163
|
+
enabledComponents: this.enabledComponents,
|
|
164
|
+
createdAt: this.createdAt,
|
|
165
|
+
},
|
|
166
|
+
history: this._history.map(item => item.toJSON()),
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// ── Internals ──────────────────────────────────────────────────────────────
|
|
171
|
+
subscribe(feature: A_FrameDynamicStructureEventNames, listener: A_FrameDynamicStructureListener): void {
|
|
172
|
+
if (!this.listeners.has(feature)) {
|
|
173
|
+
this.listeners.set(feature, new Set());
|
|
174
|
+
}
|
|
175
|
+
this.listeners.get(feature)!.add(listener);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
unsubscribe(feature: A_FrameDynamicStructureEventNames, listener: A_FrameDynamicStructureListener): void {
|
|
179
|
+
this.listeners.get(feature)?.delete(listener);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
emit(stage: A_FrameDynamicStructureEventNames, context: any): void {
|
|
184
|
+
this.listeners.get(stage)?.forEach(listener => listener(context));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { A_Error } from "@adaas/a-concept";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class A_FrameDynamicStructureError extends A_Error {
|
|
5
|
+
|
|
6
|
+
static readonly InvalidPatch = 'InvalidPatch';
|
|
7
|
+
static readonly VersionMismatch = 'VersionMismatch';
|
|
8
|
+
static readonly ComponentNotFound = 'ComponentNotFound';
|
|
9
|
+
static readonly InvalidOperation = 'InvalidOperation';
|
|
10
|
+
|
|
11
|
+
static readonly GenerationFailed = 'GenerationFailed';
|
|
12
|
+
|
|
13
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { A_Component, A_Container, A_Fragment, A_TYPES__Ctor, A_TYPES__Entity_Serialized } from "@adaas/a-concept";
|
|
2
|
+
import { A_FrameDynamicPatch_Serialized } from "../A-FrameDynamicPatch/A-FrameDynamicPatch.types";
|
|
3
|
+
import { A_FrameDynamicStructureEvents, A_FrameDynamicStructureFeatures } from "./A-FrameDynamicStructure.constants";
|
|
4
|
+
import { A_FrameDynamicStructureOperation } from "./A-FrameDynamicStructureOperation.context";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export type DynamicStructureDefaultBasesNames = 'A_Component' | 'A_Container' | 'A_Fragment';
|
|
8
|
+
export type BaseClassName = DynamicStructureDefaultBasesNames | A_TYPES__Ctor<A_Component | A_Fragment | A_Container>;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export type A_FrameDynamicStructure_Init = {
|
|
12
|
+
/** The goal / initial prompt driving structure generation */
|
|
13
|
+
prompt: string;
|
|
14
|
+
|
|
15
|
+
/** Which model to use for content generation */
|
|
16
|
+
model: string;
|
|
17
|
+
|
|
18
|
+
/** Only include components whose base class is in this list (empty = allow all) */
|
|
19
|
+
includeBases?: Array<BaseClassName | A_TYPES__Ctor<A_Component | A_Fragment | A_Container>>;
|
|
20
|
+
|
|
21
|
+
/** Exclude components whose base class is in this list */
|
|
22
|
+
excludeBases?: Array<string | A_TYPES__Ctor<A_Component | A_Fragment | A_Container>>;
|
|
23
|
+
|
|
24
|
+
/** Explicit list of component names to enable (subset of registry) */
|
|
25
|
+
enabledComponents?: Array<string | A_TYPES__Ctor<A_Component | A_Fragment | A_Container>>;
|
|
26
|
+
|
|
27
|
+
/** Rendering context hint passed to content generator */
|
|
28
|
+
context?: string;
|
|
29
|
+
|
|
30
|
+
/** Free-form hint about required prop types (forwarded to content generator) */
|
|
31
|
+
metaHint?: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type A_FrameDynamicStructure_Serialized = {
|
|
35
|
+
name: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
metadata?: Record<string, any>;
|
|
38
|
+
history: Array<A_FrameDynamicPatch_Serialized>;
|
|
39
|
+
} & A_TYPES__Entity_Serialized
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
export type A_FrameDynamicStructureListener = (context: A_FrameDynamicStructureOperation) => void;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export type A_FrameDynamicStructureResolvedComponent<P extends Record<string, any> = Record<string, any>> = {
|
|
46
|
+
component: string;
|
|
47
|
+
score: number;
|
|
48
|
+
meta: P
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type A_FrameDynamicStructureFeatureNames = typeof A_FrameDynamicStructureFeatures[keyof typeof A_FrameDynamicStructureFeatures];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
export type A_FrameDynamicStructureEventNames = typeof A_FrameDynamicStructureEvents[keyof typeof A_FrameDynamicStructureEvents];
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
export type A_FrameDynamicStructureDefinitionEntity = {
|
|
58
|
+
/**
|
|
59
|
+
* The prompt is the text that describes the element (component, container, fragment or entity) that is needed in the structure based on input prompt
|
|
60
|
+
*
|
|
61
|
+
*
|
|
62
|
+
* e.g. "A component that allows to search for something", "A container that runs a web server", "A fragment that stores user settings", "An entity that represents a user session", etc.
|
|
63
|
+
*
|
|
64
|
+
* [!] Note, prompt should also contain the name of the element if it's possible, to make it easier to understand and use in the structure generation.
|
|
65
|
+
*/
|
|
66
|
+
prompt: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The string set of params that is necessary to the particular element (component, container, fragment or entity) that is needed in the structure based on input prompt.
|
|
70
|
+
* Those parameters should be presented in the string manner and then mapped to the actual params in the structure generation process, to make it easier to understand and use in the structure generation.
|
|
71
|
+
*
|
|
72
|
+
* e.g. "props: {query: string, resultsCount: number}", "constructorParams: {port: number}", "state: {isLoggedIn: boolean}", "ASEID", etc. or simply text: "Stores user with id=12345 and name=John Doe" if it's hard to define the params in a structured way.
|
|
73
|
+
*
|
|
74
|
+
* [!] Params are applicable only for stateful components like Fragment, or Entity. Since components are stateless they can only rely on params in their methods received by @A_Inject(SomeFragment) someFragment: SomeFragment, where SomeFragment has state defined by params. And also for containers, since they can have constructor params and also rely on params of their components and fragments.
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
params?: string
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
export type A_FrameDynamicStructureDefinition = {
|
|
83
|
+
/**
|
|
84
|
+
* A set of containers that the structure is needed based on input prompt
|
|
85
|
+
*
|
|
86
|
+
* Where container is an instance of inherited class from A_Container that should be running independently and may have own components, fragments and entities.
|
|
87
|
+
*
|
|
88
|
+
* e.g. HTTPServerContainer, WebWorker, AppContainer, etc.
|
|
89
|
+
*
|
|
90
|
+
* [!] Note: should be presented only if initial query allows to have a container, and should be included only if necessary.
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
containers: Array<A_FrameDynamicStructureDefinitionEntity & {
|
|
94
|
+
components: Array<A_FrameDynamicStructureDefinitionEntity>;
|
|
95
|
+
fragments: Array<A_FrameDynamicStructureDefinitionEntity>;
|
|
96
|
+
entities: Array<A_FrameDynamicStructureDefinitionEntity>;
|
|
97
|
+
}>;
|
|
98
|
+
/**
|
|
99
|
+
* A set of components that the structure is needed based on input prompt
|
|
100
|
+
*
|
|
101
|
+
* Where Component is a constructor class from A_Component that allows to define something that is stateless, has methods and features and can be injected as a dependency in other components, fragments or containers.
|
|
102
|
+
*
|
|
103
|
+
* e.g. SearchComponent, SettingsComponent, ButtonComponent, SectionComponent, etc.
|
|
104
|
+
*
|
|
105
|
+
* [!] Note: should be presented only if initial query allows to have a component, and should be included only if necessary.
|
|
106
|
+
*/
|
|
107
|
+
components: Array<A_FrameDynamicStructureDefinitionEntity>;
|
|
108
|
+
/**
|
|
109
|
+
* A set of Context Fragments that the structure is needed based on input prompt
|
|
110
|
+
*
|
|
111
|
+
* Where Fragment is an instance of inherited class from A_Fragment that allows to define something that has state and can be injected as a dependency in other components, fragments or containers.
|
|
112
|
+
*
|
|
113
|
+
* e.g. Settings, State, Store, etc.
|
|
114
|
+
*
|
|
115
|
+
* [!] Note: should be presented only if initial query allows to have a fragment, and should be included only if necessary.
|
|
116
|
+
*/
|
|
117
|
+
fragments: Array<A_FrameDynamicStructureDefinitionEntity>;
|
|
118
|
+
/**
|
|
119
|
+
* A set of Entities that the structure is needed based on input prompt
|
|
120
|
+
*
|
|
121
|
+
* Where Entity is a A_Entity or a constructor of A_Entity that allows to define something that has ID(ASEID) and can be injected as a dependency in other components, fragments or containers.
|
|
122
|
+
*
|
|
123
|
+
* e.g. Session, User, Conversation, etc.
|
|
124
|
+
*
|
|
125
|
+
* [!] Note: should be presented only if initial query allows to have an entity, and should be included only if necessary.
|
|
126
|
+
*/
|
|
127
|
+
entities: Array<A_FrameDynamicStructureDefinitionEntity>;
|
|
128
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { A_Fragment } from "@adaas/a-concept"
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class A_FrameDynamicStructureOperation<
|
|
5
|
+
_InputParams = any,
|
|
6
|
+
> extends A_Fragment {
|
|
7
|
+
|
|
8
|
+
protected _meta: Map<string, any> = new Map();
|
|
9
|
+
|
|
10
|
+
constructor(
|
|
11
|
+
params: _InputParams = {} as _InputParams
|
|
12
|
+
) {
|
|
13
|
+
super({ name: 'a-frame-dynamic-structure-operation-context' });
|
|
14
|
+
this._meta.set('params', params);
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
get params(): _InputParams {
|
|
19
|
+
return this._meta.get('params');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
get(key: string) {
|
|
24
|
+
return this._meta.get(key);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
set(key: string, value: any) {
|
|
29
|
+
this._meta.set(key, value);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { A_Fragment } from "@adaas/a-concept";
|
|
2
|
+
import * as pkg from '../../../package.json';
|
|
3
|
+
import { IA_FrameEnv } from "./A-FrameEnv.types";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This class tailored from browser environment and it is used to get the env variables from the global scope and make them available for the A_FrameTask to use them in the task execution.
|
|
9
|
+
*/
|
|
10
|
+
export class A_FrameEnv extends A_Fragment implements IA_FrameEnv {
|
|
11
|
+
|
|
12
|
+
get A_FRAME_TOKEN() {
|
|
13
|
+
return (window as any).A_FRAME_TOKEN || '';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
get A_FRAME_SERVER_URL() {
|
|
17
|
+
return (window as any).A_FRAME_SERVER_URL || 'http://localhost:3000';
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
get A_FRAME_VERSION() {
|
|
21
|
+
return pkg.version || '0.0.1';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get A_FRAME_SERVER_API_KEY() {
|
|
25
|
+
return (window as any).A_FRAME_SERVER_API_KEY || '';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
get A_FRAME_STORAGE_DIR() {
|
|
29
|
+
return (window as any).A_FRAME_STORAGE_DIR || '.aframestr';
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { A_Fragment } from "@adaas/a-concept";
|
|
2
|
+
import * as pkg from '../../../package.json';
|
|
3
|
+
import { IA_FrameEnv } from "./A-FrameEnv.types";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class A_FrameEnv extends A_Fragment implements IA_FrameEnv {
|
|
7
|
+
|
|
8
|
+
get A_FRAME_FILE_EXTENSION() {
|
|
9
|
+
return '.aframe';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
get A_FRAME_NAMESPACES_BIN() {
|
|
13
|
+
return `__namespaces${this.A_FRAME_FILE_EXTENSION}`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
get A_FRAME_SYNC() {
|
|
17
|
+
return process.env.A_FRAME_SYNC === 'false' ? false : true;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
get A_FRAME_TOKEN() {
|
|
21
|
+
return process.env.A_FRAME_TOKEN || '';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get A_FRAME_SERVER_URL() {
|
|
25
|
+
return process.env.A_FRAME_SERVER_URL || 'http://localhost:3663';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
get A_FRAME_SERVER_API_KEY() {
|
|
29
|
+
return process.env.A_FRAME_SERVER_API_KEY || '';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get A_FRAME_STORAGE_DIR() {
|
|
33
|
+
return process.env.A_FRAME_STORAGE_DIR || '.aframestr';
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
get A_FRAME_VERSION() {
|
|
37
|
+
return pkg.version || '0.0.1';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './A-FrameEnv.fragment.env-browser';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './A-FrameEnv.fragment.env-node';
|