@adaas/a-frame 0.0.21 → 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,41 @@
|
|
|
1
|
+
import { A as A_FrameLogLevelType } from './A-FrameLogger.component.env-browser-BIPAP4oQ.mjs';
|
|
2
|
+
export { a as A_FrameLogEntry, b as A_FrameLogger, c as A_FrameLoggerBase, d as A_FrameLoggerConfig, e as A_FrameProgressBar, I as IA_FrameLogger } from './A-FrameLogger.component.env-browser-BIPAP4oQ.mjs';
|
|
3
|
+
import '@adaas/a-concept';
|
|
4
|
+
|
|
5
|
+
declare const A_FrameLogLevel: {
|
|
6
|
+
readonly Debug: "debug";
|
|
7
|
+
readonly Info: "info";
|
|
8
|
+
readonly Success: "success";
|
|
9
|
+
readonly Warn: "warn";
|
|
10
|
+
readonly Error: "error";
|
|
11
|
+
};
|
|
12
|
+
/** Numeric priority used for level filtering. Higher = more severe. */
|
|
13
|
+
declare const A_FRAME_LOG_LEVEL_PRIORITY: Record<A_FrameLogLevelType, number>;
|
|
14
|
+
/** Glyphs used as the leading symbol for each log level. */
|
|
15
|
+
declare const A_FrameLogIcon: Record<A_FrameLogLevelType, string>;
|
|
16
|
+
/** ANSI escape sequences. Used by the Node implementation only. */
|
|
17
|
+
declare const A_FRAME_ANSI: {
|
|
18
|
+
readonly reset: "\u001B[0m";
|
|
19
|
+
readonly bold: "\u001B[1m";
|
|
20
|
+
readonly dim: "\u001B[2m";
|
|
21
|
+
readonly gray: "\u001B[90m";
|
|
22
|
+
readonly red: "\u001B[31m";
|
|
23
|
+
readonly green: "\u001B[32m";
|
|
24
|
+
readonly yellow: "\u001B[33m";
|
|
25
|
+
readonly blue: "\u001B[34m";
|
|
26
|
+
readonly cyan: "\u001B[36m";
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Browser console CSS — used with `console.log('%c...', style)` for coloured
|
|
30
|
+
* output in DevTools. Mirrors the ANSI palette by intent.
|
|
31
|
+
*/
|
|
32
|
+
declare const A_FRAME_BROWSER_CSS: Record<A_FrameLogLevelType, string>;
|
|
33
|
+
/** Defaults applied when building a logger without explicit options. */
|
|
34
|
+
declare const A_FRAME_LOG_DEFAULTS: {
|
|
35
|
+
readonly progressBarWidth: 24;
|
|
36
|
+
readonly summaryTitle: "Summary";
|
|
37
|
+
/** Update progress at most this often (ms) for non-TTY/browser output. */
|
|
38
|
+
readonly progressThrottleMs: 250;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { A_FRAME_ANSI, A_FRAME_BROWSER_CSS, A_FRAME_LOG_DEFAULTS, A_FRAME_LOG_LEVEL_PRIORITY, A_FrameLogIcon, A_FrameLogLevel, A_FrameLogLevelType };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{d as A_FRAME_ANSI,e as A_FRAME_BROWSER_CSS,f as A_FRAME_LOG_DEFAULTS,b as A_FRAME_LOG_LEVEL_PRIORITY,c as A_FrameLogIcon,a as A_FrameLogLevel,h as A_FrameLogger,g as A_FrameLoggerBase}from'./chunk-5TTVFB3G.mjs';import'./chunk-DMGQW3AO.mjs';//# sourceMappingURL=logger.mjs.map
|
|
2
|
+
//# sourceMappingURL=logger.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"logger.mjs"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { A as A_FrameNamespace, a as A_FrameNamespace_EmbeddingMeta, b as A_FrameNamespace_Init, c as A_FrameNamespace_Record, d as A_FrameNamespace_SearchResult, e as A_FrameNamespace_Serialized } from './A-FrameNamespace.entity-rCm1AavP.mjs';
|
|
2
|
+
import '@adaas/a-concept';
|
|
3
|
+
import './vector.mjs';
|
|
4
|
+
|
|
5
|
+
declare const A_FRAME_DEFAULT_NAMESPACE_KEY = "default";
|
|
6
|
+
declare const A_FrameNamespaceFeatures: {
|
|
7
|
+
readonly Load: "_A_FRAME_NAMESPACE_LOAD";
|
|
8
|
+
readonly Save: "_A_FRAME_NAMESPACE_SAVE";
|
|
9
|
+
readonly Embed: "_A_FRAME_NAMESPACE_EMBED";
|
|
10
|
+
readonly Destroy: "_A_FRAME_NAMESPACE_DESTROY";
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { A_FRAME_DEFAULT_NAMESPACE_KEY, A_FrameNamespaceFeatures };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import'./chunk-K4MZY4ME.mjs';export{a as A_FRAME_DEFAULT_NAMESPACE_KEY,c as A_FrameNamespace,b as A_FrameNamespaceFeatures}from'./chunk-AYN7KUQT.mjs';import'./chunk-H6OZP4ZV.mjs';import'./chunk-VDVJWU5T.mjs';import'./chunk-DMGQW3AO.mjs';//# sourceMappingURL=namespace.mjs.map
|
|
2
|
+
//# sourceMappingURL=namespace.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"namespace.mjs"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { A_Fragment, A_Error, A_Component, A_Scope } from '@adaas/a-concept';
|
|
2
|
+
import { e as A_FrameNamespace_Serialized, A as A_FrameNamespace } from './A-FrameNamespace.entity-rCm1AavP.mjs';
|
|
3
|
+
import { c as A_FrameDefinition_Serialized, A as A_FrameDefinition } from './A-FrameDefinition.entity-DWGN_Ujr.mjs';
|
|
4
|
+
import { A as A_FrameEnv } from './index.browser-CZlhzfSP.mjs';
|
|
5
|
+
import { a as A_FrameBrowserStorageBlobs, A as A_FrameContext } from './A-FrameBrowserStorageBlobs.context-OEQr85oq.mjs';
|
|
6
|
+
import './vector.mjs';
|
|
7
|
+
import './A-FrameChannel.types-DWOEUs28.mjs';
|
|
8
|
+
import './A-FrameBundle.types-DaaUvViw.mjs';
|
|
9
|
+
|
|
10
|
+
declare class A_FrameStorageOperation<_ParamsType = any, _ResultType = any> extends A_Fragment {
|
|
11
|
+
protected _result?: _ResultType;
|
|
12
|
+
protected _error?: A_Error;
|
|
13
|
+
protected _params: _ParamsType;
|
|
14
|
+
constructor(params: _ParamsType);
|
|
15
|
+
/**
|
|
16
|
+
* If the operation succeeded, this will contain the result data. If the operation failed, this will be undefined.
|
|
17
|
+
*/
|
|
18
|
+
get result(): _ResultType | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* If the operation failed, this will contain an error object with details about the failure. If the operation succeeded, this will be undefined.
|
|
21
|
+
*/
|
|
22
|
+
get error(): A_Error | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Parameters used to execute the operation, e.g. definitionId and namespaceId for a saveDefinition operation.
|
|
25
|
+
*/
|
|
26
|
+
get params(): _ParamsType;
|
|
27
|
+
/**
|
|
28
|
+
* Marks the operation as completed successfully with the given result. This will set the `result` property and leave `error` as undefined.
|
|
29
|
+
*
|
|
30
|
+
* @param result
|
|
31
|
+
*/
|
|
32
|
+
complete(result: _ResultType): void;
|
|
33
|
+
/**
|
|
34
|
+
* Marks the operation as failed with the given error. This will set the `error` property and leave `result` as undefined.
|
|
35
|
+
*
|
|
36
|
+
* @param error
|
|
37
|
+
*/
|
|
38
|
+
fail(error: A_Error): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface IA_FrameStorage {
|
|
42
|
+
saveDefinitions(definitions: Array<A_FrameDefinition_Serialized>): Promise<A_FrameStorageSaveDefinitionOperationResult>;
|
|
43
|
+
loadDefinitions(namespaceId: string, definitionId: string): Promise<A_FrameStorageLoadDefinitionsOperationResult>;
|
|
44
|
+
destroyDefinitions(namespaceId: string, definitionId: string): Promise<A_FrameStorageDestroyDefinitionsOperationResult>;
|
|
45
|
+
saveNamespaces(namespaces: A_FrameNamespace_Serialized[]): Promise<A_FrameStorageSaveNamespaceOperationResult>;
|
|
46
|
+
loadNamespaces(): Promise<A_FrameStorageLoadNamespacesOperationResult>;
|
|
47
|
+
destroyNamespaces(namespaceId: string): Promise<A_FrameStorageDestroyNamespacesOperationResult>;
|
|
48
|
+
}
|
|
49
|
+
type A_FrameStorageSaveDefinitionOperationParams = {
|
|
50
|
+
records: A_FrameDefinition_Serialized[];
|
|
51
|
+
};
|
|
52
|
+
type A_FrameStorageSaveDefinitionOperationResult = {
|
|
53
|
+
saved: number;
|
|
54
|
+
};
|
|
55
|
+
type A_FrameStorageLoadDefinitionsOperationParams = {
|
|
56
|
+
namespaceId: string;
|
|
57
|
+
};
|
|
58
|
+
type A_FrameStorageLoadDefinitionsOperationResult = {
|
|
59
|
+
records?: A_FrameDefinition_Serialized[];
|
|
60
|
+
};
|
|
61
|
+
type A_FrameStorageDestroyDefinitionsOperationParams = {
|
|
62
|
+
namespaceId: string;
|
|
63
|
+
definitionId: string;
|
|
64
|
+
};
|
|
65
|
+
type A_FrameStorageDestroyDefinitionsOperationResult = {
|
|
66
|
+
records: Array<A_FrameDefinition_Serialized>;
|
|
67
|
+
};
|
|
68
|
+
type A_FrameStorageSaveDefinitionOperation = A_FrameStorageOperation<A_FrameStorageSaveDefinitionOperationParams, A_FrameStorageSaveDefinitionOperationResult>;
|
|
69
|
+
type A_FrameStorageLoadDefinitionsOperation = A_FrameStorageOperation<A_FrameStorageLoadDefinitionsOperationParams, A_FrameStorageLoadDefinitionsOperationResult>;
|
|
70
|
+
type A_FrameStorageDestroyDefinitionsOperation = A_FrameStorageOperation<A_FrameStorageDestroyDefinitionsOperationParams, A_FrameStorageDestroyDefinitionsOperationResult>;
|
|
71
|
+
type A_FrameStorageSaveNamespaceOperationParams = {
|
|
72
|
+
records: A_FrameNamespace_Serialized[];
|
|
73
|
+
};
|
|
74
|
+
type A_FrameStorageSaveNamespaceOperationResult = {
|
|
75
|
+
success: boolean;
|
|
76
|
+
};
|
|
77
|
+
type A_FrameStorageLoadNamespacesOperationParams = {
|
|
78
|
+
namespaces?: string[];
|
|
79
|
+
};
|
|
80
|
+
type A_FrameStorageLoadNamespacesOperationResult = {
|
|
81
|
+
records: A_FrameNamespace_Serialized[];
|
|
82
|
+
};
|
|
83
|
+
type A_FrameStorageDestroyNamespacesOperationParams = {
|
|
84
|
+
namespaces: string[];
|
|
85
|
+
};
|
|
86
|
+
type A_FrameStorageDestroyNamespacesOperationResult = {
|
|
87
|
+
success: boolean;
|
|
88
|
+
};
|
|
89
|
+
type A_FrameStorageSaveNamespaceOperation = A_FrameStorageOperation<A_FrameStorageSaveNamespaceOperationParams, A_FrameStorageSaveNamespaceOperationResult>;
|
|
90
|
+
type A_FrameStorageLoadNamespacesOperation = A_FrameStorageOperation<A_FrameStorageLoadNamespacesOperationParams, A_FrameStorageLoadNamespacesOperationResult>;
|
|
91
|
+
type A_FrameStorageDestroyNamespacesOperation = A_FrameStorageOperation<A_FrameStorageDestroyNamespacesOperationParams, A_FrameStorageDestroyNamespacesOperationResult>;
|
|
92
|
+
|
|
93
|
+
declare class A_FrameStorage extends A_Component {
|
|
94
|
+
saveDefinitions(definitions: Array<A_FrameDefinition_Serialized>): Promise<A_FrameStorageSaveDefinitionOperation>;
|
|
95
|
+
loadDefinitions(namespaceId: string, definitionId: string): Promise<A_FrameStorageLoadDefinitionsOperation>;
|
|
96
|
+
destroyDefinitions(namespaceId: string, definitionId: string): Promise<A_FrameStorageDestroyDefinitionsOperation>;
|
|
97
|
+
saveNamespaces(namespaces: A_FrameNamespace_Serialized[]): Promise<A_FrameStorageSaveNamespaceOperation>;
|
|
98
|
+
loadNamespaces(namespaceIds: string[]): Promise<A_FrameStorageLoadNamespacesOperation>;
|
|
99
|
+
destroyNamespaces(namespacesIds: string[]): Promise<A_FrameStorageDestroyNamespacesOperation>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* A-FrameStorage binary codec — shared between node and browser environments.
|
|
104
|
+
*
|
|
105
|
+
* Binary payload format (decrypted) — used for BOTH definition records and namespace records:
|
|
106
|
+
* [HEADER 20B]
|
|
107
|
+
* magic 4B = 0x454D424B ("EMBK")
|
|
108
|
+
* version 1B = 0x01
|
|
109
|
+
* count 4B (uint32 LE)
|
|
110
|
+
* dims 2B (uint16 LE)
|
|
111
|
+
* reserved 9B
|
|
112
|
+
* [RECORD × count]
|
|
113
|
+
* aseidLen 2B (uint16 LE)
|
|
114
|
+
* aseid NB utf-8 (primary entity ID, e.g. "app@root:123@v2")
|
|
115
|
+
* nameLen 2B (uint16 LE)
|
|
116
|
+
* name NB utf-8
|
|
117
|
+
* vector dims×4B Float32 LE
|
|
118
|
+
* metaLen 4B (uint32 LE)
|
|
119
|
+
* meta NB JSON
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
declare class A_FrameStorageCodec extends A_Fragment {
|
|
123
|
+
protected enc: TextEncoder;
|
|
124
|
+
protected dec: TextDecoder;
|
|
125
|
+
A_FRAME_FILE_MAGIC: number;
|
|
126
|
+
A_FRAME_FILE_VERSION: number;
|
|
127
|
+
A_FRAME_HEADER_SIZE: number;
|
|
128
|
+
static get fileExtension(): string;
|
|
129
|
+
getFileName(namespace: string): string;
|
|
130
|
+
getNamespaceFileName(): string;
|
|
131
|
+
encodePayload(records: A_FrameDefinition_Serialized[]): Uint8Array;
|
|
132
|
+
decodePayload(data: Uint8Array): A_FrameDefinition_Serialized[];
|
|
133
|
+
encodeNamespacePayload(records: A_FrameNamespace_Serialized[]): Uint8Array;
|
|
134
|
+
decodeNamespacePayload(data: Uint8Array): A_FrameNamespace_Serialized[];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare class A_FrameStorageError extends A_Error {
|
|
138
|
+
static readonly SaveDefinitionFailed = "SaveDefinitionFailed";
|
|
139
|
+
static readonly LoadDefinitionsFailed = "LoadDefinitionsFailed";
|
|
140
|
+
static readonly DestroyDefinitionsFailed = "DestroyDefinitionsFailed";
|
|
141
|
+
static readonly SaveNamespaceFailed = "SaveNamespaceFailed";
|
|
142
|
+
static readonly LoadNamespacesFailed = "LoadNamespacesFailed";
|
|
143
|
+
static readonly DestroyNamespacesFailed = "DestroyNamespacesFailed";
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare const A_FrameStorageFeatures: {
|
|
147
|
+
readonly SaveDefinitions: "_A_FRAME_STORAGE_SAVE";
|
|
148
|
+
readonly LoadDefinitions: "_A_FRAME_STORAGE_LOAD";
|
|
149
|
+
readonly DestroyDefinitions: "_A_FRAME_STORAGE_DESTROY";
|
|
150
|
+
readonly SaveNamespaces: "_A_FRAME_STORAGE_SAVE_NAMESPACES";
|
|
151
|
+
readonly LoadNamespaces: "_A_FRAME_STORAGE_LOAD_NAMESPACES";
|
|
152
|
+
readonly DestroyNamespaces: "_A_FRAME_STORAGE_DESTROY_NAMESPACES";
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* A_FrameBrowserStorageProvider — Browser environment
|
|
157
|
+
*
|
|
158
|
+
* Stores encrypted definition and namespace records entirely in memory.
|
|
159
|
+
* Pre-built .aframe index files should be injected at bundle startup via
|
|
160
|
+
* A_FrameBrowserStorageProvider.loadBlob() so that read-only access works
|
|
161
|
+
* without any network or filesystem calls.
|
|
162
|
+
*
|
|
163
|
+
* Example (Vite):
|
|
164
|
+
* import mathBin from './embed-index/math.aframe?arraybuffer';
|
|
165
|
+
* A_FrameBrowserStorageProvider.loadBlob('math', new Uint8Array(mathBin));
|
|
166
|
+
*/
|
|
167
|
+
declare class A_FrameBrowserStorageProvider extends A_FrameStorage {
|
|
168
|
+
onLoad(scope: A_Scope, blobs?: A_FrameBrowserStorageBlobs): void;
|
|
169
|
+
saveDefinitionsToMemory(env: A_FrameEnv, operation: A_FrameStorageSaveDefinitionOperation, global: A_FrameContext, codec: A_FrameStorageCodec, blobs: A_FrameBrowserStorageBlobs): Promise<void>;
|
|
170
|
+
loadDefinitionsFromMemory(env: A_FrameEnv, operation: A_FrameStorageLoadDefinitionsOperation, global: A_FrameContext, codec: A_FrameStorageCodec, blobs: A_FrameBrowserStorageBlobs): Promise<void>;
|
|
171
|
+
destroyDefinitionsFromMemory(env: A_FrameEnv, operation: A_FrameStorageDestroyDefinitionsOperation, global: A_FrameContext, codec: A_FrameStorageCodec, blobs: A_FrameBrowserStorageBlobs): Promise<void>;
|
|
172
|
+
saveNamespacesToMemory(env: A_FrameEnv, operation: A_FrameStorageSaveNamespaceOperation, global: A_FrameContext, codec: A_FrameStorageCodec, blobs: A_FrameBrowserStorageBlobs): Promise<void>;
|
|
173
|
+
loadNamespacesFromMemory(env: A_FrameEnv, operation: A_FrameStorageLoadNamespacesOperation, global: A_FrameContext, codec: A_FrameStorageCodec, blobs: A_FrameBrowserStorageBlobs): Promise<void>;
|
|
174
|
+
destroyNamespacesFromMemory(env: A_FrameEnv, operation: A_FrameStorageDestroyNamespacesOperation, global: A_FrameContext, codec: A_FrameStorageCodec, blobs: A_FrameBrowserStorageBlobs): Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* Hydrate a single A_FrameDefinition from the in-memory bundle blobs.
|
|
177
|
+
*
|
|
178
|
+
* Mirrors the Node `loadDefinitionFromDisk` extension. Looks up the
|
|
179
|
+
* namespace's encrypted blob in the singleton blob store, decrypts and
|
|
180
|
+
* decodes it, then calls `definition.fromJSON(record)` only when the
|
|
181
|
+
* stored hash and server version match the live entity.
|
|
182
|
+
*
|
|
183
|
+
* No-op when:
|
|
184
|
+
* - no blob has been seeded for the namespace
|
|
185
|
+
* - decryption fails (wrong key / corrupted blob)
|
|
186
|
+
* - the record is absent or stale
|
|
187
|
+
*/
|
|
188
|
+
loadDefinitionFromBlobs(definition: A_FrameDefinition, context: A_FrameContext, codec: A_FrameStorageCodec, blobs: A_FrameBrowserStorageBlobs): Promise<void>;
|
|
189
|
+
loadNamespaceFromBlobs(namespace: A_FrameNamespace, context: A_FrameContext, codec: A_FrameStorageCodec, blobs: A_FrameBrowserStorageBlobs): Promise<void>;
|
|
190
|
+
private _loadDefinitionsFromMemory;
|
|
191
|
+
private _loadNamespacesFromMemory;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export { A_FrameBrowserStorageBlobs, A_FrameBrowserStorageProvider, A_FrameStorage, A_FrameStorageCodec, type A_FrameStorageDestroyDefinitionsOperation, type A_FrameStorageDestroyDefinitionsOperationParams, type A_FrameStorageDestroyDefinitionsOperationResult, type A_FrameStorageDestroyNamespacesOperation, type A_FrameStorageDestroyNamespacesOperationParams, type A_FrameStorageDestroyNamespacesOperationResult, A_FrameStorageError, A_FrameStorageFeatures, type A_FrameStorageLoadDefinitionsOperation, type A_FrameStorageLoadDefinitionsOperationParams, type A_FrameStorageLoadDefinitionsOperationResult, type A_FrameStorageLoadNamespacesOperation, type A_FrameStorageLoadNamespacesOperationParams, type A_FrameStorageLoadNamespacesOperationResult, A_FrameStorageOperation, type A_FrameStorageSaveDefinitionOperation, type A_FrameStorageSaveDefinitionOperationParams, type A_FrameStorageSaveDefinitionOperationResult, type A_FrameStorageSaveNamespaceOperation, type A_FrameStorageSaveNamespaceOperationParams, type A_FrameStorageSaveNamespaceOperationResult, type IA_FrameStorage };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{f as A_FrameBrowserStorageBlobs,h as A_FrameBrowserStorageProvider,e as A_FrameStorage,g as A_FrameStorageCodec,d as A_FrameStorageError,b as A_FrameStorageFeatures,c as A_FrameStorageOperation}from'./chunk-X3C4I6YJ.mjs';import'./chunk-OFKV5GNB.mjs';import'./chunk-K4MZY4ME.mjs';import'./chunk-AYN7KUQT.mjs';import'./chunk-INS7RO3B.mjs';import'./chunk-ZVCTU2DN.mjs';import'./chunk-H6OZP4ZV.mjs';import'./chunk-VDVJWU5T.mjs';import'./chunk-DMGQW3AO.mjs';//# sourceMappingURL=storage.mjs.map
|
|
2
|
+
//# sourceMappingURL=storage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"storage.mjs"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { A_Entity } from '@adaas/a-concept';
|
|
2
|
+
|
|
3
|
+
declare class A_FrameVector extends A_Entity {
|
|
4
|
+
static get concept(): string;
|
|
5
|
+
readonly values: Float32Array;
|
|
6
|
+
constructor(values: number[] | Float32Array);
|
|
7
|
+
get length(): number;
|
|
8
|
+
magnitude(): number;
|
|
9
|
+
normalize(): A_FrameVector;
|
|
10
|
+
dot(other: A_FrameVector): number;
|
|
11
|
+
private assertSameLength;
|
|
12
|
+
toArray(): number[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { A_FrameVector };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"vector.mjs"}
|
package/dist/index.cjs
CHANGED
|
File without changes
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { A_TYPES__Entity_Serialized, A_Entity, A_Scope, A_Component } from '@adaas/a-concept';
|
|
2
|
+
import { I as IA_Frame_Channel, A as A_FrameChannelRequest, a as A_Frame_GenerateResponse, b as A_Frame_EmbedResponse, c as A_Frame_CredentialResponse } from './A-FrameChannel.types-DQF-IiRq.js';
|
|
3
|
+
import { A_FrameEnv } from './env.js';
|
|
4
|
+
import { A as A_FrameDefinition } from './A-FrameDefinition.entity-CAUOdEvU.js';
|
|
5
|
+
import { A as A_FrameNamespace } from './A-FrameNamespace.entity-D3fZBGDx.js';
|
|
6
|
+
import { A as A_FrameDynamicStructure, k as A_FrameDynamicStructureOperation } from './A-FrameDynamicStructure.entity-DaBgSRCR.js';
|
|
7
|
+
|
|
8
|
+
type A_FrameDynamicSession_Init = {
|
|
9
|
+
turnsCount: number;
|
|
10
|
+
};
|
|
11
|
+
type A_FrameDynamicSession_Serialized = {
|
|
12
|
+
turnsCount: number;
|
|
13
|
+
currentTurn: number;
|
|
14
|
+
initDate: string;
|
|
15
|
+
} & A_TYPES__Entity_Serialized;
|
|
16
|
+
|
|
17
|
+
declare class A_FrameDynamicSession extends A_Entity<A_FrameDynamicSession_Init, A_FrameDynamicSession_Serialized> {
|
|
18
|
+
static get concept(): string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
protected _scope: A_Scope;
|
|
23
|
+
protected _turnsCount: number;
|
|
24
|
+
protected _currentTurn: number;
|
|
25
|
+
protected _initDate: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
get scope(): A_Scope;
|
|
30
|
+
get currentTurn(): number;
|
|
31
|
+
get initDate(): Date;
|
|
32
|
+
static onQuestion(): void;
|
|
33
|
+
static onAnswer(): void;
|
|
34
|
+
fromNew(newEntity: A_FrameDynamicSession_Init): void;
|
|
35
|
+
fromJSON(serialized: A_FrameDynamicSession_Serialized): void;
|
|
36
|
+
init(): Promise<void>;
|
|
37
|
+
destroy(scope?: A_Scope): Promise<void>;
|
|
38
|
+
question(): Promise<void>;
|
|
39
|
+
answer(): Promise<void>;
|
|
40
|
+
toJSON(): A_FrameDynamicSession_Serialized;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A_FrameChannel — Node.js environment
|
|
45
|
+
*
|
|
46
|
+
* HTTP client for the embed-server API.
|
|
47
|
+
* Configuration is resolved from process.env via A_FrameEnv injected at
|
|
48
|
+
* feature execution time — no state is stored on the component itself.
|
|
49
|
+
*
|
|
50
|
+
* Uses the global fetch (available in Node 18+; no extra dependency needed).
|
|
51
|
+
*/
|
|
52
|
+
declare class A_FrameChannel extends A_Component implements IA_Frame_Channel {
|
|
53
|
+
generate(prompt: string): Promise<A_FrameChannelRequest<A_Frame_GenerateResponse>>;
|
|
54
|
+
embed(input: string | string[]): Promise<A_FrameChannelRequest<A_Frame_EmbedResponse>>;
|
|
55
|
+
getCredentials(): Promise<A_FrameChannelRequest<A_Frame_CredentialResponse>>;
|
|
56
|
+
ping(): Promise<A_FrameChannelRequest<boolean>>;
|
|
57
|
+
embedDefinition(definition: A_FrameDefinition, env: A_FrameEnv): Promise<void>;
|
|
58
|
+
embedNamespace(namespace: A_FrameNamespace, env: A_FrameEnv): Promise<void>;
|
|
59
|
+
generateDynamicStructure(structure: A_FrameDynamicStructure, session: A_FrameDynamicSession, operation: A_FrameDynamicStructureOperation): Promise<void>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { A_FrameChannel as A };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { A_TYPES__Entity_Serialized, A_Entity, A_Scope, A_Component } from '@adaas/a-concept';
|
|
2
|
+
import { I as IA_Frame_Channel, A as A_FrameChannelRequest, a as A_Frame_GenerateResponse, b as A_Frame_EmbedResponse, c as A_Frame_CredentialResponse } from './A-FrameChannel.types-DQF-IiRq.mjs';
|
|
3
|
+
import { A_FrameEnv } from './env.mjs';
|
|
4
|
+
import { A as A_FrameDefinition } from './A-FrameDefinition.entity-DWGN_Ujr.mjs';
|
|
5
|
+
import { A as A_FrameNamespace } from './A-FrameNamespace.entity-rCm1AavP.mjs';
|
|
6
|
+
import { A as A_FrameDynamicStructure, k as A_FrameDynamicStructureOperation } from './A-FrameDynamicStructure.entity-DaBgSRCR.mjs';
|
|
7
|
+
|
|
8
|
+
type A_FrameDynamicSession_Init = {
|
|
9
|
+
turnsCount: number;
|
|
10
|
+
};
|
|
11
|
+
type A_FrameDynamicSession_Serialized = {
|
|
12
|
+
turnsCount: number;
|
|
13
|
+
currentTurn: number;
|
|
14
|
+
initDate: string;
|
|
15
|
+
} & A_TYPES__Entity_Serialized;
|
|
16
|
+
|
|
17
|
+
declare class A_FrameDynamicSession extends A_Entity<A_FrameDynamicSession_Init, A_FrameDynamicSession_Serialized> {
|
|
18
|
+
static get concept(): string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
protected _scope: A_Scope;
|
|
23
|
+
protected _turnsCount: number;
|
|
24
|
+
protected _currentTurn: number;
|
|
25
|
+
protected _initDate: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
get scope(): A_Scope;
|
|
30
|
+
get currentTurn(): number;
|
|
31
|
+
get initDate(): Date;
|
|
32
|
+
static onQuestion(): void;
|
|
33
|
+
static onAnswer(): void;
|
|
34
|
+
fromNew(newEntity: A_FrameDynamicSession_Init): void;
|
|
35
|
+
fromJSON(serialized: A_FrameDynamicSession_Serialized): void;
|
|
36
|
+
init(): Promise<void>;
|
|
37
|
+
destroy(scope?: A_Scope): Promise<void>;
|
|
38
|
+
question(): Promise<void>;
|
|
39
|
+
answer(): Promise<void>;
|
|
40
|
+
toJSON(): A_FrameDynamicSession_Serialized;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A_FrameChannel — Node.js environment
|
|
45
|
+
*
|
|
46
|
+
* HTTP client for the embed-server API.
|
|
47
|
+
* Configuration is resolved from process.env via A_FrameEnv injected at
|
|
48
|
+
* feature execution time — no state is stored on the component itself.
|
|
49
|
+
*
|
|
50
|
+
* Uses the global fetch (available in Node 18+; no extra dependency needed).
|
|
51
|
+
*/
|
|
52
|
+
declare class A_FrameChannel extends A_Component implements IA_Frame_Channel {
|
|
53
|
+
generate(prompt: string): Promise<A_FrameChannelRequest<A_Frame_GenerateResponse>>;
|
|
54
|
+
embed(input: string | string[]): Promise<A_FrameChannelRequest<A_Frame_EmbedResponse>>;
|
|
55
|
+
getCredentials(): Promise<A_FrameChannelRequest<A_Frame_CredentialResponse>>;
|
|
56
|
+
ping(): Promise<A_FrameChannelRequest<boolean>>;
|
|
57
|
+
embedDefinition(definition: A_FrameDefinition, env: A_FrameEnv): Promise<void>;
|
|
58
|
+
embedNamespace(namespace: A_FrameNamespace, env: A_FrameEnv): Promise<void>;
|
|
59
|
+
generateDynamicStructure(structure: A_FrameDynamicStructure, session: A_FrameDynamicSession, operation: A_FrameDynamicStructureOperation): Promise<void>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { A_FrameChannel as A };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { A_Fragment, A_Error, A_TYPES__Error_Serialized, A_TYPES__Entity_Serialized } from '@adaas/a-concept';
|
|
2
|
+
|
|
3
|
+
declare class A_FrameChannelRequest<_Response = any> extends A_Fragment {
|
|
4
|
+
method: string;
|
|
5
|
+
path: string;
|
|
6
|
+
body?: unknown;
|
|
7
|
+
protected _response?: _Response;
|
|
8
|
+
protected _error?: A_Error;
|
|
9
|
+
constructor(method: string, path: string, body?: unknown);
|
|
10
|
+
complete(response: _Response): void;
|
|
11
|
+
fail(error: A_Error): void;
|
|
12
|
+
get response(): _Response | undefined;
|
|
13
|
+
get error(): A_Error | undefined;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare const A_FrameFeatures: {
|
|
17
|
+
readonly Request: "_A_FRAME_REQUEST";
|
|
18
|
+
readonly Socket: "_A_FRAME_SOCKET";
|
|
19
|
+
};
|
|
20
|
+
declare const A_FrameChannelStreamStatuses: {
|
|
21
|
+
readonly Open: "open";
|
|
22
|
+
readonly Closed: "closed";
|
|
23
|
+
};
|
|
24
|
+
declare const A_FrameChannelStreamFeatures: {
|
|
25
|
+
readonly open: "_A_FRAME_CHANNEL_STREAM_OPEN";
|
|
26
|
+
readonly send: "_A_FRAME_CHANNEL_STREAM_SEND";
|
|
27
|
+
readonly onEvent: "_A_FRAME_CHANNEL_STREAM_ON_EVENT";
|
|
28
|
+
readonly onError: "_A_FRAME_CHANNEL_STREAM_ON_ERROR";
|
|
29
|
+
readonly onComplete: "_A_FRAME_CHANNEL_STREAM_ON_COMPLETE";
|
|
30
|
+
readonly onClose: "_A_FRAME_CHANNEL_STREAM_ON_CLOSE";
|
|
31
|
+
};
|
|
32
|
+
declare const A_FrameChannelSocketStatuses: {
|
|
33
|
+
readonly Connecting: "connecting";
|
|
34
|
+
readonly Open: "open";
|
|
35
|
+
readonly Closed: "closed";
|
|
36
|
+
};
|
|
37
|
+
declare const A_FrameChannelSocketFeatures: {
|
|
38
|
+
readonly onEvent: "_A_FRAME_CHANNEL_SOCKET_ON_EVENT";
|
|
39
|
+
readonly onError: "_A_FRAME_CHANNEL_SOCKET_ON_ERROR";
|
|
40
|
+
readonly onOpen: "_A_FRAME_CHANNEL_SOCKET_ON_OPEN";
|
|
41
|
+
readonly onClose: "_A_FRAME_CHANNEL_SOCKET_ON_CLOSE";
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
interface A_Frame_EmbedResponse {
|
|
45
|
+
data: Array<{
|
|
46
|
+
embedding: number[];
|
|
47
|
+
index: number;
|
|
48
|
+
}>;
|
|
49
|
+
model: string;
|
|
50
|
+
/**
|
|
51
|
+
* Execution backend reported by the server ("local" | "remote" | …)
|
|
52
|
+
*/
|
|
53
|
+
backend?: string;
|
|
54
|
+
/**
|
|
55
|
+
* ISO timestamp of when the embedding was generated, as reported by the server. Useful for cache validation and staleness checks.
|
|
56
|
+
*/
|
|
57
|
+
date: string;
|
|
58
|
+
meta: {
|
|
59
|
+
dimensions: number;
|
|
60
|
+
input_count: number;
|
|
61
|
+
/** Embed-server (a-frame-mcp) package version */
|
|
62
|
+
server_version: string;
|
|
63
|
+
/** ID of the credential (API key) used for this request */
|
|
64
|
+
credential_id: string | null;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
interface A_Frame_GenerateResponse {
|
|
68
|
+
data: {
|
|
69
|
+
text: string;
|
|
70
|
+
};
|
|
71
|
+
model: string;
|
|
72
|
+
/**
|
|
73
|
+
* Execution backend reported by the server ("local" | "remote" | …)
|
|
74
|
+
*/
|
|
75
|
+
backend?: string;
|
|
76
|
+
/**
|
|
77
|
+
* ISO timestamp of when the embedding was generated, as reported by the server. Useful for cache validation and staleness checks.
|
|
78
|
+
*/
|
|
79
|
+
date: string;
|
|
80
|
+
meta: {
|
|
81
|
+
/** Embed-server (a-frame-mcp) package version */
|
|
82
|
+
server_version: string;
|
|
83
|
+
/** ID of the credential (API key) used for this request */
|
|
84
|
+
credential_id: string | null;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
interface A_Frame_CredentialResponse {
|
|
88
|
+
/** Unique identifier for the credential */
|
|
89
|
+
id: string;
|
|
90
|
+
/** Name of the credential */
|
|
91
|
+
name: string;
|
|
92
|
+
/** Optional description of the credential */
|
|
93
|
+
description: string | null;
|
|
94
|
+
/** The encryption key in base64 format */
|
|
95
|
+
encryption_key: string;
|
|
96
|
+
/** Encryption algorithm used (e.g., "AES-256-GCM") */
|
|
97
|
+
algorithm: string;
|
|
98
|
+
/** Encoding format of the encryption key (e.g., "base64") */
|
|
99
|
+
key_encoding: string;
|
|
100
|
+
/** Usage instructions for the encryption key */
|
|
101
|
+
usage_note: string;
|
|
102
|
+
/** Version of the a-frame-mcp server */
|
|
103
|
+
server_version: string;
|
|
104
|
+
}
|
|
105
|
+
interface IA_Frame_Channel {
|
|
106
|
+
generate(prompt: string): Promise<A_FrameChannelRequest<A_Frame_GenerateResponse>>;
|
|
107
|
+
/** Embed one or more raw text strings and return the server response */
|
|
108
|
+
embed(inputs: string | string[]): Promise<A_FrameChannelRequest<A_Frame_EmbedResponse>>;
|
|
109
|
+
/** Fetch credential details (incl. encryption key) for the authenticated API key */
|
|
110
|
+
getCredentials(): Promise<A_FrameChannelRequest<A_Frame_CredentialResponse>>;
|
|
111
|
+
/** Returns true if the embed server is reachable */
|
|
112
|
+
ping(): Promise<A_FrameChannelRequest<boolean>>;
|
|
113
|
+
}
|
|
114
|
+
type A_FrameChannelStreamStatusNames = typeof A_FrameChannelStreamStatuses[keyof typeof A_FrameChannelStreamStatuses];
|
|
115
|
+
type A_FrameChannelStreamFeatureNames = typeof A_FrameChannelStreamFeatures[keyof typeof A_FrameChannelStreamFeatures];
|
|
116
|
+
type A_FrameChannelStream_Init<T extends Record<string, any> = Record<string, any>> = {
|
|
117
|
+
method: string;
|
|
118
|
+
path: string;
|
|
119
|
+
body?: T;
|
|
120
|
+
};
|
|
121
|
+
type A_FrameChannelStream_Serialized<T extends Record<string, any> = Record<string, any>> = {
|
|
122
|
+
method: string;
|
|
123
|
+
path: string;
|
|
124
|
+
body?: T;
|
|
125
|
+
initDate: string;
|
|
126
|
+
status: A_FrameChannelStreamStatusNames;
|
|
127
|
+
error?: A_TYPES__Error_Serialized;
|
|
128
|
+
} & A_TYPES__Entity_Serialized;
|
|
129
|
+
type A_FrameChannelSocketStatusNames = typeof A_FrameChannelSocketStatuses[keyof typeof A_FrameChannelSocketStatuses];
|
|
130
|
+
type A_FrameChannelSocketFeatureNames = typeof A_FrameChannelSocketFeatures[keyof typeof A_FrameChannelSocketFeatures];
|
|
131
|
+
type A_FrameChannelSocket_Init<T extends Record<string, any> = Record<string, any>> = {
|
|
132
|
+
method: string;
|
|
133
|
+
path: string;
|
|
134
|
+
/** Optional JSON body sent as the X-A-Frame-Init header during the upgrade request. */
|
|
135
|
+
body?: T;
|
|
136
|
+
};
|
|
137
|
+
type A_FrameChannelSocket_Serialized<T extends Record<string, any> = Record<string, any>> = {
|
|
138
|
+
method: string;
|
|
139
|
+
path: string;
|
|
140
|
+
body?: T;
|
|
141
|
+
initDate: string;
|
|
142
|
+
status: A_FrameChannelSocketStatusNames;
|
|
143
|
+
error?: A_TYPES__Error_Serialized;
|
|
144
|
+
} & A_TYPES__Entity_Serialized;
|
|
145
|
+
|
|
146
|
+
export { A_FrameChannelRequest as A, type IA_Frame_Channel as I, type A_Frame_GenerateResponse as a, type A_Frame_EmbedResponse as b, type A_Frame_CredentialResponse as c, type A_FrameChannelStream_Init as d, type A_FrameChannelStream_Serialized as e, type A_FrameChannelStreamStatusNames as f, type A_FrameChannelSocketFeatureNames as g, A_FrameChannelSocketFeatures as h, type A_FrameChannelSocketStatusNames as i, A_FrameChannelSocketStatuses as j, type A_FrameChannelSocket_Init as k, type A_FrameChannelSocket_Serialized as l, type A_FrameChannelStreamFeatureNames as m, A_FrameChannelStreamFeatures as n, A_FrameChannelStreamStatuses as o, A_FrameFeatures as p };
|