@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.
Files changed (359) hide show
  1. package/.conf/tsconfig.browser.json +13 -0
  2. package/.conf/tsconfig.node.json +14 -0
  3. package/.env.example +12 -0
  4. package/dist/browser/A-FrameBrowserStorageBlobs.context-OEQr85oq.d.mts +40 -0
  5. package/dist/browser/A-FrameBundle.types-DaaUvViw.d.mts +33 -0
  6. package/dist/browser/A-FrameChannel.types-DWOEUs28.d.mts +142 -0
  7. package/dist/browser/A-FrameDefinition.entity-DWGN_Ujr.d.mts +329 -0
  8. package/dist/browser/A-FrameDynamicStructure.entity-DaBgSRCR.d.mts +188 -0
  9. package/dist/browser/A-FrameLogger.component.env-browser-BIPAP4oQ.d.mts +112 -0
  10. package/dist/browser/A-FrameNamespace.entity-rCm1AavP.d.mts +125 -0
  11. package/dist/browser/bundle.d.mts +8 -0
  12. package/dist/browser/bundle.mjs +2 -0
  13. package/dist/browser/bundle.mjs.map +1 -0
  14. package/dist/browser/channel.d.mts +165 -0
  15. package/dist/browser/channel.mjs +3 -0
  16. package/dist/browser/channel.mjs.map +1 -0
  17. package/dist/browser/chunk-5TTVFB3G.mjs +2 -0
  18. package/dist/browser/chunk-5TTVFB3G.mjs.map +1 -0
  19. package/dist/browser/chunk-AYN7KUQT.mjs +3 -0
  20. package/dist/browser/chunk-AYN7KUQT.mjs.map +1 -0
  21. package/dist/browser/chunk-DMGQW3AO.mjs +2 -0
  22. package/dist/browser/chunk-DMGQW3AO.mjs.map +1 -0
  23. package/dist/browser/chunk-G66IL2DR.mjs +2 -0
  24. package/dist/browser/chunk-G66IL2DR.mjs.map +1 -0
  25. package/dist/browser/chunk-H6OZP4ZV.mjs +2 -0
  26. package/dist/browser/chunk-H6OZP4ZV.mjs.map +1 -0
  27. package/dist/browser/chunk-INS7RO3B.mjs +2 -0
  28. package/dist/browser/chunk-INS7RO3B.mjs.map +1 -0
  29. package/dist/browser/chunk-K4MZY4ME.mjs +2 -0
  30. package/dist/browser/chunk-K4MZY4ME.mjs.map +1 -0
  31. package/dist/browser/chunk-OFKV5GNB.mjs +3 -0
  32. package/dist/browser/chunk-OFKV5GNB.mjs.map +1 -0
  33. package/dist/browser/chunk-QATIN7CO.mjs +3 -0
  34. package/dist/browser/chunk-QATIN7CO.mjs.map +1 -0
  35. package/dist/browser/chunk-QBBQ37P3.mjs +2 -0
  36. package/dist/browser/chunk-QBBQ37P3.mjs.map +1 -0
  37. package/dist/browser/chunk-VDVJWU5T.mjs +2 -0
  38. package/dist/browser/chunk-VDVJWU5T.mjs.map +1 -0
  39. package/dist/browser/chunk-X3C4I6YJ.mjs +2 -0
  40. package/dist/browser/chunk-X3C4I6YJ.mjs.map +1 -0
  41. package/dist/browser/chunk-ZVCTU2DN.mjs +3 -0
  42. package/dist/browser/chunk-ZVCTU2DN.mjs.map +1 -0
  43. package/dist/browser/core.d.mts +97 -0
  44. package/dist/browser/core.mjs +2 -0
  45. package/dist/browser/core.mjs.map +1 -0
  46. package/dist/browser/crypto.d.mts +35 -0
  47. package/dist/browser/crypto.mjs +2 -0
  48. package/dist/browser/crypto.mjs.map +1 -0
  49. package/dist/browser/definition.d.mts +13 -0
  50. package/dist/browser/definition.mjs +2 -0
  51. package/dist/browser/definition.mjs.map +1 -0
  52. package/dist/browser/dynamic-feature.d.mts +10 -0
  53. package/dist/browser/dynamic-feature.mjs +2 -0
  54. package/dist/browser/dynamic-feature.mjs.map +1 -0
  55. package/dist/browser/dynamic-structure.d.mts +12 -0
  56. package/dist/browser/dynamic-structure.mjs +2 -0
  57. package/dist/browser/dynamic-structure.mjs.map +1 -0
  58. package/dist/browser/env.d.mts +2 -0
  59. package/dist/browser/env.mjs +2 -0
  60. package/dist/browser/env.mjs.map +1 -0
  61. package/dist/browser/frame-index.d.mts +95 -0
  62. package/dist/browser/frame-index.mjs +2 -0
  63. package/dist/browser/frame-index.mjs.map +1 -0
  64. package/dist/browser/index.browser-CZlhzfSP.d.mts +22 -0
  65. package/dist/browser/index.d.mts +1 -144
  66. package/dist/browser/index.mjs +1 -1
  67. package/dist/browser/index.mjs.map +1 -1
  68. package/dist/browser/logger.d.mts +41 -0
  69. package/dist/browser/logger.mjs +2 -0
  70. package/dist/browser/logger.mjs.map +1 -0
  71. package/dist/browser/namespace.d.mts +13 -0
  72. package/dist/browser/namespace.mjs +2 -0
  73. package/dist/browser/namespace.mjs.map +1 -0
  74. package/dist/browser/storage.d.mts +194 -0
  75. package/dist/browser/storage.mjs +2 -0
  76. package/dist/browser/storage.mjs.map +1 -0
  77. package/dist/browser/vector.d.mts +15 -0
  78. package/dist/browser/vector.mjs +2 -0
  79. package/dist/browser/vector.mjs.map +1 -0
  80. package/dist/index.cjs +0 -0
  81. package/dist/node/A-FrameChannel.component-BfBcs734.d.ts +62 -0
  82. package/dist/node/A-FrameChannel.component-NNKcFViw.d.mts +62 -0
  83. package/dist/node/A-FrameChannel.types-DQF-IiRq.d.mts +146 -0
  84. package/dist/node/A-FrameChannel.types-DQF-IiRq.d.ts +146 -0
  85. package/dist/node/A-FrameDefinition.entity-CAUOdEvU.d.ts +329 -0
  86. package/dist/node/A-FrameDefinition.entity-DWGN_Ujr.d.mts +329 -0
  87. package/dist/node/A-FrameDynamicStructure.entity-DaBgSRCR.d.mts +188 -0
  88. package/dist/node/A-FrameDynamicStructure.entity-DaBgSRCR.d.ts +188 -0
  89. package/dist/node/A-FrameNamespace.entity-D3fZBGDx.d.ts +125 -0
  90. package/dist/node/A-FrameNamespace.entity-rCm1AavP.d.mts +125 -0
  91. package/dist/node/A-FrameStorage.component-BYjHfHJJ.d.mts +107 -0
  92. package/dist/node/A-FrameStorage.component-CT01fs-t.d.ts +107 -0
  93. package/dist/node/bundle.cjs +101 -0
  94. package/dist/node/bundle.cjs.map +1 -0
  95. package/dist/node/bundle.d.mts +69 -0
  96. package/dist/node/bundle.d.ts +69 -0
  97. package/dist/node/bundle.mjs +76 -0
  98. package/dist/node/bundle.mjs.map +1 -0
  99. package/dist/node/channel.cjs +60 -0
  100. package/dist/node/channel.cjs.map +1 -0
  101. package/dist/node/channel.d.mts +61 -0
  102. package/dist/node/channel.d.ts +61 -0
  103. package/dist/node/channel.mjs +11 -0
  104. package/dist/node/channel.mjs.map +1 -0
  105. package/dist/node/chunk-3LOMGNWA.cjs +8 -0
  106. package/dist/node/chunk-3LOMGNWA.cjs.map +1 -0
  107. package/dist/node/chunk-3ONWH75E.mjs +257 -0
  108. package/dist/node/chunk-3ONWH75E.mjs.map +1 -0
  109. package/dist/node/chunk-3TD2PEDZ.mjs +53 -0
  110. package/dist/node/chunk-3TD2PEDZ.mjs.map +1 -0
  111. package/dist/node/chunk-442DXGOD.mjs +16 -0
  112. package/dist/node/chunk-442DXGOD.mjs.map +1 -0
  113. package/dist/node/chunk-6EFXNUL4.mjs +6 -0
  114. package/dist/node/chunk-6EFXNUL4.mjs.map +1 -0
  115. package/dist/node/chunk-7A6XGT5J.cjs +541 -0
  116. package/dist/node/chunk-7A6XGT5J.cjs.map +1 -0
  117. package/dist/node/chunk-AOQRXZPC.mjs +207 -0
  118. package/dist/node/chunk-AOQRXZPC.mjs.map +1 -0
  119. package/dist/node/chunk-APRYHBEF.mjs +171 -0
  120. package/dist/node/chunk-APRYHBEF.mjs.map +1 -0
  121. package/dist/node/chunk-B7BXP7K4.mjs +253 -0
  122. package/dist/node/chunk-B7BXP7K4.mjs.map +1 -0
  123. package/dist/node/chunk-B7ZDJXD3.cjs +35 -0
  124. package/dist/node/chunk-B7ZDJXD3.cjs.map +1 -0
  125. package/dist/node/chunk-CP6JHUU6.cjs +541 -0
  126. package/dist/node/chunk-CP6JHUU6.cjs.map +1 -0
  127. package/dist/node/chunk-DDCEMKBP.mjs +655 -0
  128. package/dist/node/chunk-DDCEMKBP.mjs.map +1 -0
  129. package/dist/node/chunk-DMY44VUG.mjs +655 -0
  130. package/dist/node/chunk-DMY44VUG.mjs.map +1 -0
  131. package/dist/node/chunk-F4UCOZW5.mjs +33 -0
  132. package/dist/node/chunk-F4UCOZW5.mjs.map +1 -0
  133. package/dist/node/chunk-GBTFMT3K.cjs +256 -0
  134. package/dist/node/chunk-GBTFMT3K.cjs.map +1 -0
  135. package/dist/node/chunk-GNVXVK2B.cjs +8 -0
  136. package/dist/node/chunk-GNVXVK2B.cjs.map +1 -0
  137. package/dist/node/chunk-IIVYTS5M.mjs +239 -0
  138. package/dist/node/chunk-IIVYTS5M.mjs.map +1 -0
  139. package/dist/node/chunk-JQBYDEMW.mjs +33 -0
  140. package/dist/node/chunk-JQBYDEMW.mjs.map +1 -0
  141. package/dist/node/chunk-K4MZY4ME.mjs +3 -0
  142. package/dist/node/chunk-K4MZY4ME.mjs.map +1 -0
  143. package/dist/node/chunk-KK64VLZN.cjs +4 -0
  144. package/dist/node/chunk-KK64VLZN.cjs.map +1 -0
  145. package/dist/node/chunk-KLG6HKFU.cjs +175 -0
  146. package/dist/node/chunk-KLG6HKFU.cjs.map +1 -0
  147. package/dist/node/chunk-LJIZ47HO.cjs +688 -0
  148. package/dist/node/chunk-LJIZ47HO.cjs.map +1 -0
  149. package/dist/node/chunk-NIXKAQVP.cjs +35 -0
  150. package/dist/node/chunk-NIXKAQVP.cjs.map +1 -0
  151. package/dist/node/chunk-OI76LHVT.mjs +21 -0
  152. package/dist/node/chunk-OI76LHVT.mjs.map +1 -0
  153. package/dist/node/chunk-OJGCQNAH.mjs +529 -0
  154. package/dist/node/chunk-OJGCQNAH.mjs.map +1 -0
  155. package/dist/node/chunk-QFHZIG7Y.cjs +25 -0
  156. package/dist/node/chunk-QFHZIG7Y.cjs.map +1 -0
  157. package/dist/node/chunk-QFUZVN4Y.cjs +259 -0
  158. package/dist/node/chunk-QFUZVN4Y.cjs.map +1 -0
  159. package/dist/node/chunk-RRLTGGM7.cjs +209 -0
  160. package/dist/node/chunk-RRLTGGM7.cjs.map +1 -0
  161. package/dist/node/chunk-TO4BPKCY.mjs +6 -0
  162. package/dist/node/chunk-TO4BPKCY.mjs.map +1 -0
  163. package/dist/node/chunk-UKKCN7CQ.cjs +688 -0
  164. package/dist/node/chunk-UKKCN7CQ.cjs.map +1 -0
  165. package/dist/node/chunk-UPA7VN4R.mjs +153 -0
  166. package/dist/node/chunk-UPA7VN4R.mjs.map +1 -0
  167. package/dist/node/chunk-UTJ7CVVB.cjs +248 -0
  168. package/dist/node/chunk-UTJ7CVVB.cjs.map +1 -0
  169. package/dist/node/chunk-YVX4W6SI.cjs +155 -0
  170. package/dist/node/chunk-YVX4W6SI.cjs.map +1 -0
  171. package/dist/node/chunk-YWWGJ6EJ.cjs +55 -0
  172. package/dist/node/chunk-YWWGJ6EJ.cjs.map +1 -0
  173. package/dist/node/chunk-Z4HUCRK2.mjs +529 -0
  174. package/dist/node/chunk-Z4HUCRK2.mjs.map +1 -0
  175. package/dist/node/chunk-ZM2RLVVH.cjs +18 -0
  176. package/dist/node/chunk-ZM2RLVVH.cjs.map +1 -0
  177. package/dist/node/core.cjs +261 -0
  178. package/dist/node/core.cjs.map +1 -0
  179. package/dist/node/core.d.mts +76 -0
  180. package/dist/node/core.d.ts +76 -0
  181. package/dist/node/core.mjs +250 -0
  182. package/dist/node/core.mjs.map +1 -0
  183. package/dist/node/crypto.cjs +13 -0
  184. package/dist/node/crypto.cjs.map +1 -0
  185. package/dist/node/crypto.d.mts +44 -0
  186. package/dist/node/crypto.d.ts +44 -0
  187. package/dist/node/crypto.mjs +4 -0
  188. package/dist/node/crypto.mjs.map +1 -0
  189. package/dist/node/definition.cjs +19 -0
  190. package/dist/node/definition.cjs.map +1 -0
  191. package/dist/node/definition.d.mts +13 -0
  192. package/dist/node/definition.d.ts +13 -0
  193. package/dist/node/definition.mjs +6 -0
  194. package/dist/node/definition.mjs.map +1 -0
  195. package/dist/node/dynamic-feature.cjs +14 -0
  196. package/dist/node/dynamic-feature.cjs.map +1 -0
  197. package/dist/node/dynamic-feature.d.mts +10 -0
  198. package/dist/node/dynamic-feature.d.ts +10 -0
  199. package/dist/node/dynamic-feature.mjs +12 -0
  200. package/dist/node/dynamic-feature.mjs.map +1 -0
  201. package/dist/node/dynamic-structure.cjs +143 -0
  202. package/dist/node/dynamic-structure.cjs.map +1 -0
  203. package/dist/node/dynamic-structure.d.mts +12 -0
  204. package/dist/node/dynamic-structure.d.ts +12 -0
  205. package/dist/node/dynamic-structure.mjs +138 -0
  206. package/dist/node/dynamic-structure.mjs.map +1 -0
  207. package/dist/node/env.cjs +14 -0
  208. package/dist/node/env.cjs.map +1 -0
  209. package/dist/node/env.d.mts +22 -0
  210. package/dist/node/env.d.ts +22 -0
  211. package/dist/node/env.mjs +5 -0
  212. package/dist/node/env.mjs.map +1 -0
  213. package/dist/node/frame-index.cjs +16 -0
  214. package/dist/node/frame-index.cjs.map +1 -0
  215. package/dist/node/frame-index.d.mts +95 -0
  216. package/dist/node/frame-index.d.ts +95 -0
  217. package/dist/node/frame-index.mjs +7 -0
  218. package/dist/node/frame-index.mjs.map +1 -0
  219. package/dist/node/index.cjs +0 -288
  220. package/dist/node/index.cjs.map +1 -1
  221. package/dist/node/index.d.mts +1 -144
  222. package/dist/node/index.d.ts +1 -144
  223. package/dist/node/index.mjs +0 -284
  224. package/dist/node/index.mjs.map +1 -1
  225. package/dist/node/logger.cjs +41 -0
  226. package/dist/node/logger.cjs.map +1 -0
  227. package/dist/node/logger.d.mts +150 -0
  228. package/dist/node/logger.d.ts +150 -0
  229. package/dist/node/logger.mjs +4 -0
  230. package/dist/node/logger.mjs.map +1 -0
  231. package/dist/node/namespace.cjs +24 -0
  232. package/dist/node/namespace.cjs.map +1 -0
  233. package/dist/node/namespace.d.mts +13 -0
  234. package/dist/node/namespace.d.ts +13 -0
  235. package/dist/node/namespace.mjs +7 -0
  236. package/dist/node/namespace.mjs.map +1 -0
  237. package/dist/node/storage.cjs +42 -0
  238. package/dist/node/storage.cjs.map +1 -0
  239. package/dist/node/storage.d.mts +110 -0
  240. package/dist/node/storage.d.ts +110 -0
  241. package/dist/node/storage.mjs +13 -0
  242. package/dist/node/storage.mjs.map +1 -0
  243. package/dist/node/vector.cjs +13 -0
  244. package/dist/node/vector.cjs.map +1 -0
  245. package/dist/node/vector.d.mts +15 -0
  246. package/dist/node/vector.d.ts +15 -0
  247. package/dist/node/vector.mjs +4 -0
  248. package/dist/node/vector.mjs.map +1 -0
  249. package/jest.config.browser.ts +41 -0
  250. package/jest.config.ts +18 -8
  251. package/package.json +125 -13
  252. package/{index.ts → src/concept.ts} +5 -2
  253. package/src/helpers/Hash.helper.ts +14 -0
  254. package/src/index.ts +0 -24
  255. package/src/lib/A-Frame/A-Frame.component.env-browser.ts +124 -0
  256. package/src/lib/A-Frame/A-Frame.component.env-node.ts +106 -0
  257. package/src/lib/A-Frame/A-Frame.component.ts +62 -0
  258. package/src/lib/A-Frame/A-Frame.context.ts +40 -0
  259. package/src/lib/{components/Index.component.ts/Index.error.ts → A-Frame/A-Frame.error.ts} +1 -1
  260. package/src/lib/{components/Index.component.ts/Index.guard.ts → A-Frame/A-Frame.guard.ts} +9 -6
  261. package/src/lib/A-Frame/A-Frame.meta.ts +27 -0
  262. package/src/lib/{components/Index.component.ts/Index.types.ts → A-Frame/A-Frame.types.ts} +52 -17
  263. package/src/lib/A-Frame/decorators/A-FrameDefine.decorator.ts +104 -0
  264. package/src/lib/A-Frame/decorators/A-FrameNamespace.decorator.ts +33 -0
  265. package/src/lib/A-Frame/index.browser.ts +10 -0
  266. package/src/lib/A-Frame/index.ts +10 -0
  267. package/src/lib/A-FrameBundle/A-FrameBundle.builder.env-node.ts +95 -0
  268. package/src/lib/A-FrameBundle/A-FrameBundle.constants.ts +5 -0
  269. package/src/lib/A-FrameBundle/A-FrameBundle.types.ts +31 -0
  270. package/src/lib/A-FrameBundle/index.browser.ts +6 -0
  271. package/src/lib/A-FrameBundle/index.ts +7 -0
  272. package/src/lib/A-FrameCLI/A-FrameCLI.container.ts +333 -0
  273. package/src/lib/A-FrameChannel/A-FrameChannel.component.env-browser.ts +63 -0
  274. package/src/lib/A-FrameChannel/A-FrameChannel.component.env-node.ts +586 -0
  275. package/src/lib/A-FrameChannel/A-FrameChannel.component.ts +273 -0
  276. package/src/lib/A-FrameChannel/A-FrameChannel.constants.ts +39 -0
  277. package/src/lib/A-FrameChannel/A-FrameChannel.error.ts +10 -0
  278. package/src/lib/A-FrameChannel/A-FrameChannel.types.ts +143 -0
  279. package/src/lib/A-FrameChannel/A-FrameChannelEvent.context.ts +28 -0
  280. package/src/lib/A-FrameChannel/A-FrameChannelRequest.context.ts +36 -0
  281. package/src/lib/A-FrameChannel/A-FrameChannelSocket.entity.ts +189 -0
  282. package/src/lib/A-FrameChannel/A-FrameChannelStream.entity.ts +144 -0
  283. package/src/lib/A-FrameChannel/index.browser.ts +3 -0
  284. package/src/lib/A-FrameChannel/index.ts +10 -0
  285. package/src/lib/A-FrameCrypto/A-FrameCrypto.component.env-browser.ts +123 -0
  286. package/src/lib/A-FrameCrypto/A-FrameCrypto.component.env-node.ts +204 -0
  287. package/src/lib/A-FrameCrypto/index.browser.ts +1 -0
  288. package/src/lib/A-FrameCrypto/index.ts +1 -0
  289. package/src/lib/A-FrameDefinition/A-FrameDefinition.constants.ts +8 -0
  290. package/src/lib/A-FrameDefinition/A-FrameDefinition.entity.ts +290 -0
  291. package/src/lib/A-FrameDefinition/A-FrameDefinition.types.ts +109 -0
  292. package/src/lib/A-FrameDefinition/index.ts +3 -0
  293. package/src/lib/A-FrameDynamicFeature/A-FrameDynamicFeature.entity.ts +13 -0
  294. package/src/lib/A-FrameDynamicFeature/A-FrameDynamicFeature.types.ts +10 -0
  295. package/src/lib/A-FrameDynamicFeature/index.ts +2 -0
  296. package/src/lib/A-FrameDynamicPatch/A-FrameDynamicPatch.entity.ts +38 -0
  297. package/src/lib/A-FrameDynamicPatch/A-FrameDynamicPatch.types.ts +20 -0
  298. package/src/lib/A-FrameDynamicSession/A-FrameDynamicSession.constants.ts +9 -0
  299. package/src/lib/A-FrameDynamicSession/A-FrameDynamicSession.entity.ts +91 -0
  300. package/src/lib/A-FrameDynamicSession/A-FrameDynamicSession.types.ts +18 -0
  301. package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.constants.ts +13 -0
  302. package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.entity.ts +187 -0
  303. package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.error.ts +13 -0
  304. package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructure.types.ts +128 -0
  305. package/src/lib/A-FrameDynamicStructure/A-FrameDynamicStructureOperation.context.ts +32 -0
  306. package/src/lib/A-FrameDynamicStructure/index.ts +5 -0
  307. package/src/lib/A-FrameEnv/A-FrameEnv.fragment.env-browser.ts +31 -0
  308. package/src/lib/A-FrameEnv/A-FrameEnv.fragment.env-node.ts +39 -0
  309. package/src/lib/A-FrameEnv/A-FrameEnv.types.ts +7 -0
  310. package/src/lib/A-FrameEnv/index.browser.ts +1 -0
  311. package/src/lib/A-FrameEnv/index.ts +1 -0
  312. package/src/lib/A-FrameIndex/A-FrameIndex.context.ts +321 -0
  313. package/src/lib/A-FrameIndex/A-FrameIndex.types.ts +63 -0
  314. package/src/lib/A-FrameIndex/index.browser.ts +3 -0
  315. package/src/lib/A-FrameIndex/index.ts +3 -0
  316. package/src/lib/A-FrameLogger/A-FrameLogger.component.env-browser.ts +99 -0
  317. package/src/lib/A-FrameLogger/A-FrameLogger.component.env-node.ts +129 -0
  318. package/src/lib/A-FrameLogger/A-FrameLogger.component.ts +123 -0
  319. package/src/lib/A-FrameLogger/A-FrameLogger.constants.ts +66 -0
  320. package/src/lib/A-FrameLogger/A-FrameLogger.types.ts +67 -0
  321. package/src/lib/A-FrameLogger/index.browser.ts +4 -0
  322. package/src/lib/A-FrameLogger/index.ts +4 -0
  323. package/src/lib/A-FrameNamespace/A-FrameNamespace.constants.ts +12 -0
  324. package/src/lib/A-FrameNamespace/A-FrameNamespace.entity.ts +211 -0
  325. package/src/lib/A-FrameNamespace/A-FrameNamespace.types.ts +72 -0
  326. package/src/lib/A-FrameNamespace/index.ts +3 -0
  327. package/src/lib/A-FrameStorage/A-FrameStorage.codec.ts +338 -0
  328. package/src/lib/A-FrameStorage/A-FrameStorage.component.ts +191 -0
  329. package/src/lib/A-FrameStorage/A-FrameStorage.constants.ts +11 -0
  330. package/src/lib/A-FrameStorage/A-FrameStorage.error.ts +13 -0
  331. package/src/lib/A-FrameStorage/A-FrameStorage.types.ts +98 -0
  332. package/src/lib/A-FrameStorage/A-FrameStorageOperation.context.ts +59 -0
  333. package/src/lib/A-FrameStorage/browser/A-FrameBrowserStorage.component.ts +312 -0
  334. package/src/lib/A-FrameStorage/browser/A-FrameBrowserStorageBlobs.context.ts +77 -0
  335. package/src/lib/A-FrameStorage/index.browser.ts +11 -0
  336. package/src/lib/A-FrameStorage/index.ts +10 -0
  337. package/src/lib/A-FrameStorage/node/A-FrameNodeStorage.component.ts +464 -0
  338. package/src/lib/A-FrameStorage/server/A-FrameServerStorage.component.ts +177 -0
  339. package/src/lib/{entities/A_FrameVector/A_FrameVector.entity.ts → A-FrameVector/A-FrameVector.entity.ts} +10 -0
  340. package/src/lib/A-FrameVector/index.ts +3 -0
  341. package/tests/A-Frame.browser.test.ts +94 -0
  342. package/tests/A-Frame.test.ts +73 -68
  343. package/tests/jest.browser-environment.js +30 -0
  344. package/tests/jest.polyfills.browser.ts +13 -0
  345. package/tests/jest.setup.browser.ts +33 -0
  346. package/tsconfig.browser.json +54 -0
  347. package/tsconfig.json +16 -0
  348. package/tsup.config.ts +32 -2
  349. package/src/lib/components/Builder.component.ts/Builder.component.ts +0 -0
  350. package/src/lib/components/Index.component.ts/Index.component.ts +0 -79
  351. package/src/lib/components/Index.component.ts/Index.constants.ts +0 -0
  352. package/src/lib/components/Index.component.ts/Index.meta.ts +0 -28
  353. package/src/lib/components/Index.component.ts/IndexConfigurations.meta.ts +0 -78
  354. package/src/lib/components/Index.component.ts/decorators/IndexComponent.decorator.ts +0 -97
  355. package/src/lib/components/Index.component.ts/decorators/IndexDescribe.decorator.ts +0 -59
  356. package/src/lib/components/Index.component.ts/decorators/IndexNamespace.decorator.ts +0 -57
  357. package/src/lib/components/Search/A_FrameSearch.component.ts +0 -66
  358. package/src/lib/containers/CLI.container.ts +0 -27
  359. package/src/lib/entities/Namespace/Namespace.entity.ts +0 -8
@@ -0,0 +1,273 @@
1
+ import { A_Caller, A_Component, A_Context, A_Feature, A_Inject, A_Scope } from "@adaas/a-concept";
2
+ import { IA_Frame_Channel, A_Frame_EmbedResponse, A_Frame_GenerateResponse, A_Frame_CredentialResponse } from "./A-FrameChannel.types";
3
+ import { A_FrameEnv } from "../A-FrameEnv/A-FrameEnv.fragment.env-node";
4
+ import { A_FrameFeatures } from "./A-FrameChannel.constants";
5
+ import { A_FrameChannelRequest } from "./A-FrameChannelRequest.context";
6
+ import { A_FrameChannelError } from "./A-FrameChannel.error";
7
+ import { A_FrameDefinition } from "../A-FrameDefinition";
8
+ import { A_FrameDefinitionFeatures } from "../A-FrameDefinition/A-FrameDefinition.constants";
9
+ import { A_FrameNamespaceFeatures } from "../A-FrameNamespace/A-FrameNamespace.constants";
10
+ import { A_FrameNamespace } from "../A-FrameNamespace";
11
+ import { A_FrameDynamicStructure } from "../A-FrameDynamicStructure/A-FrameDynamicStructure.entity";
12
+ import { A_FrameDynamicSession } from "../A-FrameDynamicSession/A-FrameDynamicSession.entity";
13
+ import { A_FrameDynamicStructureOperation } from "../A-FrameDynamicStructure/A-FrameDynamicStructureOperation.context";
14
+ import { A_FrameChannelSocket } from "./A-FrameChannelSocket.entity";
15
+
16
+ /**
17
+ * A_FrameChannel — Node.js environment
18
+ *
19
+ * HTTP client for the embed-server API.
20
+ * Configuration is resolved from process.env via A_FrameEnv injected at
21
+ * feature execution time — no state is stored on the component itself.
22
+ *
23
+ * Uses the global fetch (available in Node 18+; no extra dependency needed).
24
+ */
25
+ export class A_FrameChannel extends A_Component implements IA_Frame_Channel {
26
+
27
+ async generate(prompt: string): Promise<A_FrameChannelRequest<A_Frame_GenerateResponse>> {
28
+ const request = new A_FrameChannelRequest<A_Frame_GenerateResponse>('POST', '/api/completions', { prompt, max_tokens: 512 });
29
+
30
+ const executionScope = new A_Scope({
31
+ name: 'A_FrameChannel.generate',
32
+ fragments: [request],
33
+ })
34
+ .inherit(A_Context.scope(this));
35
+
36
+
37
+ try {
38
+ await this.call(A_FrameFeatures.Request, executionScope);
39
+ executionScope.destroy();
40
+
41
+ return request;
42
+ } catch (err) {
43
+ executionScope.destroy();
44
+ throw new A_FrameChannelError({
45
+ title: A_FrameChannelError.RequestFailed,
46
+ description: `Failed to generate completion: ${err instanceof Error ? err.message : String(err)}`,
47
+ });
48
+ }
49
+ }
50
+
51
+ async embed(input: string | string[]): Promise<A_FrameChannelRequest<A_Frame_EmbedResponse>> {
52
+ const request = new A_FrameChannelRequest<A_Frame_EmbedResponse>('POST', '/api/embeddings', { input });
53
+
54
+ const executionScope = new A_Scope({
55
+ name: 'A_FrameChannel.embed',
56
+ fragments: [request],
57
+ })
58
+ .inherit(A_Context.scope(this));
59
+
60
+ try {
61
+ await this.call(A_FrameFeatures.Request, executionScope);
62
+ executionScope.destroy();
63
+
64
+ return request;
65
+ } catch (err) {
66
+ executionScope.destroy();
67
+ throw new A_FrameChannelError({
68
+ title: A_FrameChannelError.RequestFailed,
69
+ description: `Failed to embed input: ${err instanceof Error ? err.message : String(err)}`,
70
+ });
71
+ }
72
+ }
73
+
74
+ async getCredentials(): Promise<A_FrameChannelRequest<A_Frame_CredentialResponse>> {
75
+ const request = new A_FrameChannelRequest<A_Frame_CredentialResponse>('GET', '/api/credentials/me');
76
+
77
+ const executionScope = new A_Scope({
78
+ name: 'A_FrameChannel.getCredentials',
79
+ fragments: [request],
80
+ })
81
+ .inherit(A_Context.scope(this));
82
+
83
+ try {
84
+ await this.call(A_FrameFeatures.Request, executionScope);
85
+ executionScope.destroy();
86
+
87
+ return request;
88
+ } catch (err) {
89
+ executionScope.destroy();
90
+ throw new A_FrameChannelError({
91
+ title: A_FrameChannelError.RequestFailed,
92
+ description: `Failed to get credentials: ${err instanceof Error ? err.message : String(err)}`,
93
+ });
94
+ }
95
+ }
96
+
97
+ async ping(): Promise<A_FrameChannelRequest<boolean>> {
98
+ const request = new A_FrameChannelRequest<boolean>('GET', '/health');
99
+
100
+ const executionScope = new A_Scope({
101
+ name: 'A_FrameChannel.ping',
102
+ fragments: [request],
103
+ })
104
+ .inherit(A_Context.scope(this));
105
+
106
+ try {
107
+ await this.call(A_FrameFeatures.Request, executionScope);
108
+ executionScope.destroy();
109
+
110
+ return request;
111
+
112
+ } catch {
113
+ executionScope.destroy();
114
+
115
+ return request;
116
+ }
117
+ }
118
+
119
+
120
+
121
+ // ─── Feature implementation ───────────────────────────────────────────────
122
+ @A_Feature.Extend({
123
+ name: A_FrameDefinitionFeatures.Embed,
124
+ scope: [A_FrameDefinition],
125
+ })
126
+ async embedDefinition(
127
+ @A_Inject(A_Caller) definition: A_FrameDefinition,
128
+ @A_Inject(A_FrameEnv) env: A_FrameEnv,
129
+ ) {
130
+ const request = new A_FrameChannelRequest<A_Frame_EmbedResponse>('POST', '/api/v1/definition/embed', {
131
+ definition: definition.toJSON(),
132
+ });
133
+
134
+ const executionScope = new A_Scope({
135
+ name: 'A_FrameChannel.embedDefinition',
136
+ fragments: [request]
137
+ })
138
+ .inherit(A_Context.scope(this));
139
+
140
+ try {
141
+ await this.call(A_FrameFeatures.Request, executionScope) as A_Frame_EmbedResponse;
142
+ executionScope.destroy();
143
+
144
+ const response = request.response!;
145
+ if (!response.data || !response.data[0] || !response.data[0].embedding) {
146
+ throw new A_FrameChannelError({
147
+ title: A_FrameChannelError.InvalidRequest,
148
+ description: `Invalid embedding response for definition "${definition.name}"`,
149
+ });
150
+ }
151
+
152
+ const vector = new Float32Array(response.data[0].embedding);
153
+
154
+ definition.hydrateFromEmbedding(vector, {
155
+ model: response.model,
156
+ dimensions: response.meta.dimensions,
157
+ inputCount: response.meta.input_count,
158
+ aFrameServerVersion: response.meta.server_version!,
159
+ aFrameVersion: env.A_FRAME_VERSION!,
160
+ credentialId: response.meta.credential_id!,
161
+ date: response.date,
162
+ });
163
+ } catch (err) {
164
+ throw new A_FrameChannelError({
165
+ title: A_FrameChannelError.RequestFailed,
166
+ description: `Failed to embed definition "${definition.name}": ${err instanceof Error ? err.message : String(err)}`,
167
+ });
168
+ }
169
+
170
+ }
171
+
172
+
173
+
174
+ @A_Feature.Extend({
175
+ name: A_FrameNamespaceFeatures.Embed,
176
+ scope: [A_FrameNamespace],
177
+ })
178
+ async embedNamespace(
179
+ @A_Inject(A_Caller) namespace: A_FrameNamespace,
180
+ @A_Inject(A_FrameEnv) env: A_FrameEnv,
181
+ ) {
182
+
183
+ const request = new A_FrameChannelRequest<A_Frame_EmbedResponse>('POST', '/api/v1/namespace/embed', {
184
+ namespace: namespace.toJSON(),
185
+ });
186
+
187
+ const executionScope = new A_Scope({
188
+ name: 'A_FrameChannel.embedNamespace',
189
+ fragments: [request]
190
+ })
191
+ .inherit(A_Context.scope(this));
192
+
193
+
194
+ try {
195
+ await this.call(A_FrameFeatures.Request, executionScope) as A_Frame_EmbedResponse;
196
+ executionScope.destroy();
197
+
198
+ const response = request.response!;
199
+ if (!response.data || !response.data[0] || !response.data[0].embedding) {
200
+ throw new A_FrameChannelError({
201
+ title: A_FrameChannelError.InvalidRequest,
202
+ description: `Invalid embedding response for namespace "${namespace.name}"`,
203
+ });
204
+ }
205
+
206
+ const vector = new Float32Array(response.data[0].embedding);
207
+
208
+ namespace.hydrateFromEmbedding(vector, {
209
+ model: response.model,
210
+ dimensions: response.meta.dimensions,
211
+ inputCount: response.meta.input_count,
212
+ aFrameServerVersion: response.meta.server_version!,
213
+ aFrameVersion: env.A_FRAME_VERSION!,
214
+ credentialId: response.meta.credential_id!,
215
+ date: response.date,
216
+ });
217
+ } catch (err) {
218
+ throw new A_FrameChannelError({
219
+ title: A_FrameChannelError.RequestFailed,
220
+ description: `Failed to embed namespace "${namespace.name}": ${err instanceof Error ? err.message : String(err)}`,
221
+ });
222
+ }
223
+
224
+ }
225
+
226
+
227
+
228
+
229
+
230
+
231
+ async generateDynamicStructure(
232
+ @A_Inject(A_Caller) structure: A_FrameDynamicStructure,
233
+ @A_Inject(A_FrameDynamicSession) session: A_FrameDynamicSession,
234
+ @A_Inject(A_FrameDynamicStructureOperation) operation: A_FrameDynamicStructureOperation,
235
+ ) {
236
+
237
+ }
238
+
239
+
240
+ // /**
241
+ // * Open a bidirectional WebSocket connection to the server.
242
+ // *
243
+ // * The method resolves once the connection is closed (server close frame or
244
+ // * transport end). While it is pending, call `socket.send(event)` to push
245
+ // * frames to the server. Incoming frames are dispatched automatically to
246
+ // * any `@A_FrameChannelSocket.onEvent()` handlers registered on `socket`.
247
+ // *
248
+ // * @param socket - Pre-configured socket entity (optionally a subclass with
249
+ // * event handlers pre-registered via `@onEvent` decorators).
250
+ // */
251
+ // async connect(socket: A_FrameChannelSocket): Promise<void> {
252
+ // const executionScope = new A_Scope({
253
+ // name: 'A_FrameChannel.connect',
254
+ // entities: [socket],
255
+ // }).inherit(A_Context.scope(this));
256
+
257
+ // try {
258
+ // await this.call(A_FrameFeatures.Socket, executionScope);
259
+ // executionScope.destroy();
260
+ // } catch (err) {
261
+ // executionScope.destroy();
262
+ // throw new A_FrameChannelError({
263
+ // title: A_FrameChannelError.RequestFailed,
264
+ // description: `WebSocket connection to ${socket.path} failed: ${err instanceof Error ? err.message : String(err)}`,
265
+ // });
266
+ // }
267
+ // }
268
+
269
+ }
270
+
271
+
272
+
273
+
@@ -0,0 +1,39 @@
1
+
2
+
3
+ export const A_FrameFeatures = {
4
+ Request: '_A_FRAME_REQUEST',
5
+ Socket: '_A_FRAME_SOCKET',
6
+ } as const;
7
+
8
+
9
+
10
+ export const A_FrameChannelStreamStatuses = {
11
+ Open: 'open',
12
+ Closed: 'closed',
13
+ } as const;
14
+
15
+
16
+ export const A_FrameChannelStreamFeatures = {
17
+ open: '_A_FRAME_CHANNEL_STREAM_OPEN',
18
+ send: '_A_FRAME_CHANNEL_STREAM_SEND',
19
+ onEvent: '_A_FRAME_CHANNEL_STREAM_ON_EVENT',
20
+ onError: '_A_FRAME_CHANNEL_STREAM_ON_ERROR',
21
+ onComplete: '_A_FRAME_CHANNEL_STREAM_ON_COMPLETE',
22
+ onClose: '_A_FRAME_CHANNEL_STREAM_ON_CLOSE',
23
+ } as const;
24
+
25
+
26
+ // ─── WebSocket socket entity constants ───────────────────────────────────────
27
+
28
+ export const A_FrameChannelSocketStatuses = {
29
+ Connecting: 'connecting',
30
+ Open: 'open',
31
+ Closed: 'closed',
32
+ } as const;
33
+
34
+ export const A_FrameChannelSocketFeatures = {
35
+ onEvent: '_A_FRAME_CHANNEL_SOCKET_ON_EVENT',
36
+ onError: '_A_FRAME_CHANNEL_SOCKET_ON_ERROR',
37
+ onOpen: '_A_FRAME_CHANNEL_SOCKET_ON_OPEN',
38
+ onClose: '_A_FRAME_CHANNEL_SOCKET_ON_CLOSE',
39
+ } as const;
@@ -0,0 +1,10 @@
1
+ import { A_Error } from "@adaas/a-concept";
2
+
3
+
4
+
5
+ export class A_FrameChannelError extends A_Error{
6
+ static readonly InvalidRequest = 'InvalidRequest';
7
+ static readonly Timeout = 'Timeout';
8
+ static readonly RequestFailed = 'RequestFailed';
9
+ }
10
+
@@ -0,0 +1,143 @@
1
+ import { A_TYPES__Entity_Serialized, A_TYPES__Error_Serialized } from "@adaas/a-concept";
2
+ import { A_FrameChannelRequest } from "./A-FrameChannelRequest.context";
3
+ import {
4
+ A_FrameChannelStreamStatuses,
5
+ A_FrameChannelStreamFeatures,
6
+ A_FrameChannelSocketStatuses,
7
+ A_FrameChannelSocketFeatures,
8
+ } from "./A-FrameChannel.constants";
9
+
10
+ export interface A_Frame_EmbedResponse {
11
+ data: Array<{ embedding: number[]; index: number }>;
12
+ model: string;
13
+ /**
14
+ * Execution backend reported by the server ("local" | "remote" | …)
15
+ */
16
+ backend?: string;
17
+ /**
18
+ * ISO timestamp of when the embedding was generated, as reported by the server. Useful for cache validation and staleness checks.
19
+ */
20
+ date: string;
21
+ meta: {
22
+ dimensions: number;
23
+ input_count: number;
24
+ /** Embed-server (a-frame-mcp) package version */
25
+ server_version: string;
26
+ /** ID of the credential (API key) used for this request */
27
+ credential_id: string | null;
28
+ };
29
+ }
30
+
31
+
32
+ export interface A_Frame_GenerateResponse {
33
+ data: { text: string };
34
+ model: string;
35
+ /**
36
+ * Execution backend reported by the server ("local" | "remote" | …)
37
+ */
38
+ backend?: string;
39
+ /**
40
+ * ISO timestamp of when the embedding was generated, as reported by the server. Useful for cache validation and staleness checks.
41
+ */
42
+ date: string;
43
+ meta: {
44
+ /** Embed-server (a-frame-mcp) package version */
45
+ server_version: string;
46
+ /** ID of the credential (API key) used for this request */
47
+ credential_id: string | null;
48
+ };
49
+ }
50
+
51
+ export interface A_Frame_CredentialResponse {
52
+ /** Unique identifier for the credential */
53
+ id: string;
54
+ /** Name of the credential */
55
+ name: string;
56
+ /** Optional description of the credential */
57
+ description: string | null;
58
+ /** The encryption key in base64 format */
59
+ encryption_key: string;
60
+ /** Encryption algorithm used (e.g., "AES-256-GCM") */
61
+ algorithm: string;
62
+ /** Encoding format of the encryption key (e.g., "base64") */
63
+ key_encoding: string;
64
+ /** Usage instructions for the encryption key */
65
+ usage_note: string;
66
+ /** Version of the a-frame-mcp server */
67
+ server_version: string;
68
+ }
69
+
70
+
71
+ // ─── Channel interface ────────────────────────────────────────────────────────
72
+
73
+ export interface IA_Frame_Channel {
74
+
75
+ generate(prompt: string): Promise<A_FrameChannelRequest<A_Frame_GenerateResponse>>;
76
+
77
+ /** Embed one or more raw text strings and return the server response */
78
+ embed(inputs: string | string[]): Promise<A_FrameChannelRequest<A_Frame_EmbedResponse>>;
79
+
80
+ /** Fetch credential details (incl. encryption key) for the authenticated API key */
81
+ getCredentials(): Promise<A_FrameChannelRequest<A_Frame_CredentialResponse>>;
82
+
83
+ /** Returns true if the embed server is reachable */
84
+ ping(): Promise<A_FrameChannelRequest<boolean>>;
85
+ }
86
+
87
+
88
+ // ==================================================================================
89
+ // A_Frame ChannelStream entity types
90
+ // ==================================================================================
91
+ export type A_FrameChannelStreamStatusNames = typeof A_FrameChannelStreamStatuses[keyof typeof A_FrameChannelStreamStatuses];
92
+
93
+ export type A_FrameChannelStreamFeatureNames = typeof A_FrameChannelStreamFeatures[keyof typeof A_FrameChannelStreamFeatures];
94
+
95
+ export type A_FrameChannelStream_Init<
96
+ T extends Record<string, any> = Record<string, any>
97
+ > = {
98
+ method: string;
99
+ path: string;
100
+ body?: T;
101
+ }
102
+
103
+ export type A_FrameChannelStream_Serialized<
104
+ T extends Record<string, any> = Record<string, any>
105
+ > = {
106
+
107
+ method: string;
108
+ path: string;
109
+ body?: T;
110
+
111
+ initDate: string;
112
+ status: A_FrameChannelStreamStatusNames;
113
+ error?: A_TYPES__Error_Serialized;
114
+
115
+ } & A_TYPES__Entity_Serialized
116
+
117
+
118
+ // ==================================================================================
119
+ // A_Frame ChannelSocket entity types
120
+ // ==================================================================================
121
+ export type A_FrameChannelSocketStatusNames = typeof A_FrameChannelSocketStatuses[keyof typeof A_FrameChannelSocketStatuses];
122
+
123
+ export type A_FrameChannelSocketFeatureNames = typeof A_FrameChannelSocketFeatures[keyof typeof A_FrameChannelSocketFeatures];
124
+
125
+ export type A_FrameChannelSocket_Init<
126
+ T extends Record<string, any> = Record<string, any>
127
+ > = {
128
+ method: string;
129
+ path: string;
130
+ /** Optional JSON body sent as the X-A-Frame-Init header during the upgrade request. */
131
+ body?: T;
132
+ }
133
+
134
+ export type A_FrameChannelSocket_Serialized<
135
+ T extends Record<string, any> = Record<string, any>
136
+ > = {
137
+ method: string;
138
+ path: string;
139
+ body?: T;
140
+ initDate: string;
141
+ status: A_FrameChannelSocketStatusNames;
142
+ error?: A_TYPES__Error_Serialized;
143
+ } & A_TYPES__Entity_Serialized
@@ -0,0 +1,28 @@
1
+ import { A_Error, A_Fragment } from "@adaas/a-concept";
2
+
3
+
4
+ export class A_FrameChannelEvent<
5
+ T extends Record<string, any> = any,
6
+ > extends A_Fragment {
7
+
8
+ protected _data?: T;
9
+ protected _eventName!: string;
10
+
11
+ constructor(
12
+ name: string,
13
+ data?: T
14
+ ) {
15
+ super({ name: 'a-frame-channel-event-' + name });
16
+ this._data = data as T;
17
+ this._eventName = name;
18
+ }
19
+
20
+ get name(): string {
21
+ return this._eventName;
22
+ }
23
+
24
+ get data(): T | undefined {
25
+ return this._data;
26
+ }
27
+
28
+ }
@@ -0,0 +1,36 @@
1
+ import { A_Error, A_Fragment } from "@adaas/a-concept";
2
+
3
+
4
+ export class A_FrameChannelRequest<
5
+ _Response = any
6
+ > extends A_Fragment {
7
+
8
+ protected _response?: _Response;
9
+
10
+ protected _error?: A_Error;
11
+
12
+
13
+ constructor(
14
+ public method: string,
15
+ public path: string,
16
+ public body?: unknown
17
+ ) {
18
+ super({ name: 'a-frame-channel-request' });
19
+ }
20
+
21
+ complete(response: _Response): void {
22
+ this._response = response;
23
+ }
24
+
25
+ fail(error: A_Error): void {
26
+ this._error = error;
27
+ }
28
+
29
+ get response(): _Response | undefined {
30
+ return this._response;
31
+ }
32
+
33
+ get error(): A_Error | undefined {
34
+ return this._error;
35
+ }
36
+ }