@ultrst-armada/kloks 1.26.3 → 1.26.4

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 (267) hide show
  1. package/README.md +39 -0
  2. package/index.d.ts +16 -10
  3. package/index.js +3 -0
  4. package/package.json +60 -7
  5. package/packages/audio-midi/dist/{audioClipEngine-BOT33JKI.js → audioClipEngine-LKZRWTJ3.js} +2 -2
  6. package/packages/audio-midi/dist/{audioInputManager-BLDGGLAR.js → audioInputManager-5BNHLOJM.js} +1 -1
  7. package/packages/audio-midi/dist/{chunk-N55BWOC6.js → chunk-M4JFGTHE.js} +1 -1
  8. package/packages/audio-midi/dist/{chunk-3GRGELA4.js → chunk-OUOFTYHY.js} +50 -11
  9. package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Compressor/manifest.json +7 -0
  10. package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Delay/manifest.json +7 -0
  11. package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Equalizer/manifest.json +7 -0
  12. package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Limiter/manifest.json +7 -0
  13. package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/MultibandCompressor/manifest.json +7 -0
  14. package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Reverb/manifest.json +7 -0
  15. package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Saturation/manifest.json +7 -0
  16. package/packages/audio-midi/dist/index.d.ts +10 -1
  17. package/packages/audio-midi/dist/index.js +36 -20
  18. package/packages/audio-midi/package.json +8 -0
  19. package/packages/backend/dist/ai-models/index.js +2 -2
  20. package/packages/backend/dist/ai-routing/index.js +3 -3
  21. package/packages/backend/dist/api/BaseApiRoute.d.ts +1 -1
  22. package/packages/backend/dist/api/index.js +1 -1
  23. package/packages/backend/dist/auth/CanonicalAuthClient.d.ts +6 -6
  24. package/packages/backend/dist/auth/index.js +2 -1
  25. package/packages/backend/dist/chunk-2Y2EXYDK.js +0 -0
  26. package/packages/backend/dist/{chunk-3S2NSIFA.js → chunk-3FZSYSJC.js} +16 -10
  27. package/packages/backend/dist/chunk-5F5V7NAG.js +54 -0
  28. package/packages/backend/dist/{chunk-WAQDOIGQ.js → chunk-BVXGUHLZ.js} +1 -1
  29. package/packages/backend/dist/chunk-DAG2L4RN.js +0 -0
  30. package/packages/backend/dist/{chunk-KPZQUA7R.js → chunk-G7PPVOFP.js} +16 -53
  31. package/packages/backend/dist/{chunk-GKQ42CYW.js → chunk-H6ET362U.js} +3 -3
  32. package/packages/backend/dist/chunk-HUY4272L.js +69 -0
  33. package/packages/backend/dist/chunk-JQKKMUCT.js +0 -0
  34. package/packages/backend/dist/{chunk-PT6J6UEU.js → chunk-LMAU62ZG.js} +4 -4
  35. package/packages/backend/dist/{chunk-EDKCP5CQ.js → chunk-MZK362U4.js} +16 -16
  36. package/packages/backend/dist/{chunk-U4UI6KK4.js → chunk-NGEB3CF5.js} +3 -35
  37. package/packages/backend/dist/{chunk-3VWBZEMG.js → chunk-NTKUQVCQ.js} +4 -5
  38. package/packages/backend/dist/chunk-NY2SQOXI.js +34 -0
  39. package/packages/backend/dist/{chunk-JOTDEFRG.js → chunk-OXEP3AP6.js} +5 -4
  40. package/packages/backend/dist/chunk-RABSY2JU.js +0 -0
  41. package/packages/backend/dist/{chunk-GWCLYVJT.js → chunk-RFPGUJAZ.js} +9 -9
  42. package/packages/backend/dist/{chunk-TWCEVES2.js → chunk-WC6EPW3A.js} +1 -1
  43. package/packages/backend/dist/{chunk-FU6TYLI2.js → chunk-Y5ENDXU2.js} +72 -129
  44. package/packages/backend/dist/{chunk-EO5VUYYU.js → chunk-Y7ZE6D5H.js} +4 -4
  45. package/packages/backend/dist/{chunk-RCCQ7IRM.js → chunk-ZBNSK26X.js} +2 -2
  46. package/packages/backend/dist/control-plane/AuditLogger.d.ts +1 -1
  47. package/packages/backend/dist/control-plane/ControlPlaneManager.d.ts +1 -1
  48. package/packages/backend/dist/control-plane/index.js +1 -1
  49. package/packages/backend/dist/core/dynamicRouteResolver.d.ts +1 -1
  50. package/packages/backend/dist/core/routesCore.d.ts +1 -1
  51. package/packages/backend/dist/core/vercelTransformer.d.ts +1 -1
  52. package/packages/backend/dist/core/workspaceCore.d.ts +2 -2
  53. package/packages/backend/dist/data/BaseDataProvider.d.ts +1 -1
  54. package/packages/backend/dist/development/index.js +30 -17
  55. package/packages/backend/dist/development/playwrightInspectionService.js +1 -2
  56. package/packages/backend/dist/development/webContainerService.js +1 -2
  57. package/packages/backend/dist/index.d.ts +4 -24
  58. package/packages/backend/dist/index.js +12 -4655
  59. package/packages/backend/dist/krnl-ai-services.d.ts +9 -9
  60. package/packages/backend/dist/krnl-ai-services.js +5 -6
  61. package/packages/backend/dist/krnl-services.js +8 -7
  62. package/packages/backend/dist/node.d.ts +28 -0
  63. package/packages/backend/dist/node.js +4754 -0
  64. package/packages/backend/dist/resourceEngine/BaseResourceFetcher.d.ts +3 -3
  65. package/packages/backend/dist/resourceEngine/CloudflareResourceFetcher.d.ts +3 -3
  66. package/packages/backend/dist/resourceEngine/ResourceFetcherRegistry.d.ts +5 -5
  67. package/packages/backend/dist/resourceEngine/VercelResourceFetcher.d.ts +3 -3
  68. package/packages/backend/dist/resourceEngine/adapters/CloudflareResourceAdapter.d.ts +2 -2
  69. package/packages/backend/dist/resourceEngine/adapters/VercelResourceAdapter.d.ts +2 -2
  70. package/packages/backend/dist/resourceEngine/calculator/UniversalResourceCalculator.d.ts +1 -1
  71. package/packages/backend/dist/resourceEngine/calculator/types.d.ts +1 -1
  72. package/packages/backend/dist/resourceEngine/index.d.ts +6 -6
  73. package/packages/backend/dist/resourceEngine/types/depm/entities.d.ts +2 -2
  74. package/packages/backend/dist/resourceEngine/types.d.ts +1 -1
  75. package/packages/backend/dist/resourceEngine/weightEngine/helpers.d.ts +1 -1
  76. package/packages/backend/dist/resourceEngine/weightEngine/index.d.ts +2 -2
  77. package/packages/backend/dist/resourceEngine/weightEngine/weightEngine.d.ts +1 -1
  78. package/packages/backend/dist/resourceEngine/weightEngine.d.ts +1 -1
  79. package/packages/backend/dist/server/services/assetPoolService/assetPoolService.d.ts +3 -3
  80. package/packages/backend/dist/server/services/projectService/projectService.d.ts +3 -3
  81. package/packages/backend/dist/services/index.d.ts +2 -10
  82. package/packages/backend/dist/services/index.js +1 -37
  83. package/packages/backend/dist/services/node.d.ts +10 -0
  84. package/packages/backend/dist/services/node.js +38 -0
  85. package/packages/backend/dist/srkl/index.js +1 -1
  86. package/packages/backend/dist/storage/BaseStorageAdapter.d.ts +1 -1
  87. package/packages/backend/dist/storage/S3Adapter.d.ts +5 -0
  88. package/packages/backend/dist/storage/googleDriveSdk.d.ts +1 -7
  89. package/packages/backend/dist/storage/index.d.ts +1 -10
  90. package/packages/backend/dist/storage/index.js +5 -40
  91. package/packages/backend/dist/storage/node.d.ts +14 -0
  92. package/packages/backend/dist/storage/node.js +66 -0
  93. package/packages/backend/dist/workspace/WorkspaceCloneSyncEngine.d.ts +1 -1
  94. package/packages/backend/dist/workspace/index.d.ts +1 -5
  95. package/packages/backend/dist/workspace/index.js +4 -24
  96. package/packages/backend/dist/workspace/node.d.ts +8 -0
  97. package/packages/backend/dist/workspace/node.js +30 -0
  98. package/packages/backend/package.json +35 -3
  99. package/packages/functions/dist/base-DDYO-DzM.d.ts +64 -0
  100. package/packages/functions/dist/base.d.ts +1 -0
  101. package/packages/functions/dist/base.js +6 -0
  102. package/packages/functions/dist/chunk-6EHIZHO4.js +555 -0
  103. package/packages/functions/dist/chunk-Z4LM5TOJ.js +114 -0
  104. package/packages/functions/dist/index.d.ts +4 -373
  105. package/packages/functions/dist/index.js +53 -1693
  106. package/packages/functions/dist/node.d.ts +110 -0
  107. package/packages/functions/dist/node.js +442 -0
  108. package/packages/functions/dist/portable.d.ts +207 -0
  109. package/packages/functions/dist/portable.js +94 -0
  110. package/packages/functions/package.json +23 -1
  111. package/packages/{functions/dist/chunk-K6H7T3EP.js → services/dist/chunk-P54QSKOQ.js} +1 -3
  112. package/packages/{state-graph/dist/dist-es-TLPJYZTE.js → services/dist/dist-es-2P6LFFZL.js} +1 -1
  113. package/packages/{state-graph/dist/dist-es-5IACWOIO.js → services/dist/dist-es-OZCE67MW.js} +1 -1
  114. package/packages/services/dist/{dist-es-3DGJJFOU.js → dist-es-RUJB3ALN.js} +3 -3
  115. package/packages/{state-graph/dist/dist-es-QZ6GKMM7.js → services/dist/dist-es-SSJGP5AI.js} +4 -4
  116. package/packages/services/dist/{loadSso-M3ZIZDGO.js → loadSso-3PZYFUB7.js} +1 -1
  117. package/packages/{functions/dist/signin-YXALFRYB.js → services/dist/signin-WYPGSXHF.js} +1 -1
  118. package/packages/{state-graph/dist/sso-oidc-NXFKRL6O.js → services/dist/sso-oidc-PQMIMLJU.js} +1 -1
  119. package/packages/{state-graph/dist/sts-MICPT37B.js → services/dist/sts-Z7LR3AZH.js} +1 -1
  120. package/packages/state-graph/dist/browser.d.ts +8 -18
  121. package/packages/state-graph/dist/browser.js +334 -23
  122. package/packages/state-graph/dist/browser.test.d.ts +1 -0
  123. package/packages/state-graph/dist/{chunk-KG6QYS26.js → chunk-5KP74NMF.js} +80 -80
  124. package/packages/state-graph/dist/{chunk-4UVGXFEM.js → chunk-LVULR5M4.js} +1 -1
  125. package/packages/state-graph/dist/{chunk-S22PMERU.js → chunk-OXUDG6HE.js} +1 -1
  126. package/packages/state-graph/dist/{chunk-2CQQGFMF.js → chunk-UKTICGGV.js} +2616 -432
  127. package/packages/state-graph/dist/domain/index.js +2 -3
  128. package/packages/state-graph/dist/engine/AudioConcepts.d.ts +1 -1
  129. package/packages/state-graph/dist/engine/GraphConcepts.d.ts +1 -1
  130. package/packages/state-graph/dist/engine/core/archetypes/audioArchetypes.d.ts +1 -1
  131. package/packages/state-graph/dist/engine/core/archetypes/effectArchetypes.d.ts +1 -1
  132. package/packages/state-graph/dist/engine/core/archetypes/primitiveArchetypes.d.ts +1 -1
  133. package/packages/state-graph/dist/engine/core/archetypes/routingArchetypes.d.ts +1 -1
  134. package/packages/state-graph/dist/engine/core/archetypes/triggerModuleArchetypes.d.ts +1 -1
  135. package/packages/state-graph/dist/engine/core/assets/containerSprites.d.ts +1 -1
  136. package/packages/state-graph/dist/engine/core/assets/effectSprites.d.ts +1 -1
  137. package/packages/state-graph/dist/engine/core/assets/primitiveSprites.d.ts +1 -1
  138. package/packages/state-graph/dist/engine/core/assets/routingSprites.d.ts +1 -1
  139. package/packages/state-graph/dist/engine/core/canonicalIo/CanonicalAudioInputEndpoint.d.ts +1 -1
  140. package/packages/state-graph/dist/engine/core/canonicalIo/CanonicalMidiInputEndpoint.d.ts +1 -1
  141. package/packages/state-graph/dist/engine/core/canonicalIo/topLevelIoRegistry.d.ts +6 -6
  142. package/packages/state-graph/dist/engine/core/canonicalIo/types.d.ts +1 -1
  143. package/packages/state-graph/dist/engine/core/graphDataService.d.ts +1 -1
  144. package/packages/state-graph/dist/engine/core/hierarchy/index.d.ts +11 -11
  145. package/packages/state-graph/dist/engine/core/hierarchy/nodes/GraphNodeParent.d.ts +3 -3
  146. package/packages/state-graph/dist/engine/core/hierarchy/nodes/GraphNodeTypes.d.ts +1 -1
  147. package/packages/state-graph/dist/engine/core/hierarchy/sockets/GraphSocketParent.d.ts +2 -2
  148. package/packages/state-graph/dist/engine/core/hierarchy/sockets/GraphSocketTypes.d.ts +1 -1
  149. package/packages/state-graph/dist/engine/core/hierarchy/ui/UIElementBase.d.ts +3 -3
  150. package/packages/state-graph/dist/engine/core/hierarchy/wires/GraphWireParent.d.ts +2 -2
  151. package/packages/state-graph/dist/engine/core/hierarchy/wires/GraphWireTypes.d.ts +1 -1
  152. package/packages/state-graph/dist/engine/core/nodeArchetypeRegistry.d.ts +1 -1
  153. package/packages/state-graph/dist/engine/core/socketRegistry/containersSockets.d.ts +1 -1
  154. package/packages/state-graph/dist/engine/core/socketRegistry/customRegistry.d.ts +1 -1
  155. package/packages/state-graph/dist/engine/core/socketRegistry/landmarksSockets.d.ts +1 -1
  156. package/packages/state-graph/dist/engine/core/socketRegistry/primitivesSockets.d.ts +1 -1
  157. package/packages/state-graph/dist/engine/core/socketRegistry/processorsSockets.d.ts +1 -1
  158. package/packages/state-graph/dist/engine/core/sockets/arrangementControlSockets.d.ts +1 -1
  159. package/packages/state-graph/dist/engine/core/sockets/audioSockets.d.ts +1 -1
  160. package/packages/state-graph/dist/engine/core/sockets/folderButtonSockets.d.ts +1 -1
  161. package/packages/state-graph/dist/engine/core/sockets/moduleSockets.d.ts +1 -1
  162. package/packages/state-graph/dist/engine/core/sockets/playbackSockets.d.ts +1 -1
  163. package/packages/state-graph/dist/engine/core/sockets/primitiveSockets.d.ts +1 -1
  164. package/packages/state-graph/dist/engine/core/sockets/routingSockets.d.ts +1 -1
  165. package/packages/state-graph/dist/engine/core/sockets/samplerSockets.d.ts +1 -1
  166. package/packages/state-graph/dist/engine/core/sockets/stripSockets.d.ts +1 -1
  167. package/packages/state-graph/dist/engine/functions/arrangementFactory.d.ts +1 -1
  168. package/packages/state-graph/dist/engine/functions/codeNodeParser/codeNodeParser.d.ts +2 -2
  169. package/packages/state-graph/dist/engine/functions/codeNodeParser/helpers.d.ts +1 -1
  170. package/packages/state-graph/dist/engine/functions/connection/portMatching.d.ts +1 -1
  171. package/packages/state-graph/dist/engine/functions/connection/signalCompatibility/helpers.d.ts +1 -1
  172. package/packages/state-graph/dist/engine/functions/connection/signalCompatibility/signalCompatibility.d.ts +1 -1
  173. package/packages/state-graph/dist/engine/functions/connection/signalCompatibility.d.ts +1 -1
  174. package/packages/state-graph/dist/engine/functions/connection/wireValidation.d.ts +1 -1
  175. package/packages/state-graph/dist/engine/functions/containerClipSync.d.ts +1 -1
  176. package/packages/state-graph/dist/engine/functions/containerFactory/containerFactory.d.ts +1 -1
  177. package/packages/state-graph/dist/engine/functions/effectLogic.d.ts +1 -1
  178. package/packages/state-graph/dist/engine/functions/graphManager/graphManager.d.ts +1 -1
  179. package/packages/state-graph/dist/engine/functions/graphManager.d.ts +1 -1
  180. package/packages/state-graph/dist/engine/functions/nodeFactory/nodeFactory.d.ts +8 -8
  181. package/packages/state-graph/dist/engine/functions/nodeFactory.d.ts +2 -2
  182. package/packages/state-graph/dist/engine/functions/signalTable/audioMidiSignals.d.ts +1 -1
  183. package/packages/state-graph/dist/engine/functions/signalTable/canonicalEffectsTable.d.ts +1 -1
  184. package/packages/state-graph/dist/engine/functions/signalTable/dataSignals.d.ts +1 -1
  185. package/packages/state-graph/dist/engine/functions/socketCompatibilitySpawner/helpers.d.ts +1 -1
  186. package/packages/state-graph/dist/engine/functions/socketCompatibilitySpawner/socketCompatibilitySpawner.d.ts +1 -1
  187. package/packages/state-graph/dist/engine/functions/socketCompatibilitySpawner.d.ts +1 -1
  188. package/packages/state-graph/dist/engine/functions/spawnNodeFactory.d.ts +1 -1
  189. package/packages/state-graph/dist/engine/predictive/predictiveGraphEngine/helpers.d.ts +1 -1
  190. package/packages/state-graph/dist/engine/predictive/predictiveGraphEngine.d.ts +2 -2
  191. package/packages/state-graph/dist/engine/types/auth.d.ts +1 -1
  192. package/packages/state-graph/dist/engine/types/hardwareBus.d.ts +1 -1
  193. package/packages/state-graph/dist/engine/types/legacyTypes.d.ts +1 -1
  194. package/packages/state-graph/dist/engine/types/nodesArrangement.d.ts +2 -2
  195. package/packages/state-graph/dist/engine/types/nodesAudio.d.ts +5 -5
  196. package/packages/state-graph/dist/engine/types/nodesControl.d.ts +2 -2
  197. package/packages/state-graph/dist/engine/types/nodesPlayback.d.ts +2 -2
  198. package/packages/state-graph/dist/engine/types/nodesPrimitives.d.ts +6 -6
  199. package/packages/state-graph/dist/engine/types/nodesRouting.d.ts +2 -2
  200. package/packages/state-graph/dist/engine/types/sceneData.d.ts +2 -2
  201. package/packages/state-graph/dist/engine/types/sceneState.d.ts +4 -4
  202. package/packages/state-graph/dist/engine/types/signals.d.ts +2 -2
  203. package/packages/state-graph/dist/engine/types/stripsTypes.d.ts +2 -2
  204. package/packages/state-graph/dist/index.js +110 -2850
  205. package/packages/state-graph/dist/rules/index.js +0 -1
  206. package/packages/state-graph/dist/spatial/index.js +0 -1
  207. package/packages/state-graph/dist/state/index.js +0 -1
  208. package/packages/state-graph/dist/store/CommandApi.d.ts +2 -2
  209. package/packages/state-graph/dist/store/index.js +2 -3
  210. package/packages/state-graph/package.json +7 -2
  211. package/scripts/normalize-package-declarations.mjs +63 -0
  212. package/packages/backend/dist/chunk-SXDYW3QA.js +0 -579
  213. package/packages/functions/dist/bowser-F6LIZBYW.js +0 -2821
  214. package/packages/functions/dist/chunk-34KJBG4F.js +0 -357
  215. package/packages/functions/dist/chunk-EAQYK3U2.js +0 -41
  216. package/packages/functions/dist/chunk-IOAPEUC7.js +0 -3424
  217. package/packages/functions/dist/chunk-J64ZDIIX.js +0 -2753
  218. package/packages/functions/dist/chunk-N3MSTUJN.js +0 -4785
  219. package/packages/functions/dist/chunk-VP26OHBN.js +0 -480
  220. package/packages/functions/dist/chunk-VRLVLNLG.js +0 -1727
  221. package/packages/functions/dist/dist-TKZ5TDRN.js +0 -1124
  222. package/packages/functions/dist/dist-W7ZJS3LZ.js +0 -899
  223. package/packages/functions/dist/dist-es-3DGJJFOU.js +0 -338
  224. package/packages/functions/dist/dist-es-5IACWOIO.js +0 -69
  225. package/packages/functions/dist/dist-es-BWLDIBIA.js +0 -47
  226. package/packages/functions/dist/dist-es-DO3F4OBN.js +0 -377
  227. package/packages/functions/dist/dist-es-NN7AKU7P.js +0 -175
  228. package/packages/functions/dist/dist-es-QZ6GKMM7.js +0 -220
  229. package/packages/functions/dist/dist-es-R3VEGXOP.js +0 -87
  230. package/packages/functions/dist/dist-es-TLPJYZTE.js +0 -294
  231. package/packages/functions/dist/event-streams-DRE6QVD6.js +0 -940
  232. package/packages/functions/dist/loadSso-M3ZIZDGO.js +0 -586
  233. package/packages/functions/dist/multipart-parser-YYFFJ4QD.js +0 -371
  234. package/packages/functions/dist/src-2QCYQXYH.js +0 -1396
  235. package/packages/functions/dist/sso-oidc-NXFKRL6O.js +0 -847
  236. package/packages/functions/dist/sts-MICPT37B.js +0 -1253
  237. package/packages/functions/dist/transformers.node-R6VHTGC2.js +0 -43879
  238. package/packages/services/dist/chunk-K6H7T3EP.js +0 -1991
  239. package/packages/services/dist/dist-es-5IACWOIO.js +0 -69
  240. package/packages/services/dist/dist-es-QZ6GKMM7.js +0 -220
  241. package/packages/services/dist/dist-es-TLPJYZTE.js +0 -294
  242. package/packages/services/dist/signin-YXALFRYB.js +0 -831
  243. package/packages/services/dist/sso-oidc-NXFKRL6O.js +0 -847
  244. package/packages/services/dist/sts-MICPT37B.js +0 -1253
  245. package/packages/state-graph/dist/bowser-F6LIZBYW.js +0 -2821
  246. package/packages/state-graph/dist/chunk-34KJBG4F.js +0 -357
  247. package/packages/state-graph/dist/chunk-EAQYK3U2.js +0 -41
  248. package/packages/state-graph/dist/chunk-IOAPEUC7.js +0 -3424
  249. package/packages/state-graph/dist/chunk-J64ZDIIX.js +0 -2753
  250. package/packages/state-graph/dist/chunk-K6H7T3EP.js +0 -1991
  251. package/packages/state-graph/dist/chunk-N3MSTUJN.js +0 -4785
  252. package/packages/state-graph/dist/chunk-VP26OHBN.js +0 -480
  253. package/packages/state-graph/dist/chunk-VRLVLNLG.js +0 -1727
  254. package/packages/state-graph/dist/dist-TKZ5TDRN.js +0 -1124
  255. package/packages/state-graph/dist/dist-W7ZJS3LZ.js +0 -899
  256. package/packages/state-graph/dist/dist-es-3DGJJFOU.js +0 -338
  257. package/packages/state-graph/dist/dist-es-BWLDIBIA.js +0 -47
  258. package/packages/state-graph/dist/dist-es-DO3F4OBN.js +0 -377
  259. package/packages/state-graph/dist/dist-es-NN7AKU7P.js +0 -175
  260. package/packages/state-graph/dist/dist-es-R3VEGXOP.js +0 -87
  261. package/packages/state-graph/dist/event-streams-DRE6QVD6.js +0 -940
  262. package/packages/state-graph/dist/loadSso-M3ZIZDGO.js +0 -586
  263. package/packages/state-graph/dist/multipart-parser-YYFFJ4QD.js +0 -371
  264. package/packages/state-graph/dist/signin-YXALFRYB.js +0 -831
  265. package/packages/state-graph/dist/src-2QCYQXYH.js +0 -1396
  266. package/packages/state-graph/dist/transformers.node-R6VHTGC2.js +0 -43879
  267. package/packages/backend/dist/{chunk-LMWXONZG.js → chunk-EREYT3WJ.js} +3 -3
@@ -0,0 +1,114 @@
1
+ // src/string.ts
2
+ function toCamelCase(str) {
3
+ return str.replace(/[-_]+/g, " ").replace(/[^\w\s]/g, "").replace(
4
+ /(?:^\w|[A-Z]|\b\w)/g,
5
+ (word, index) => index === 0 ? word.toLowerCase() : word.toUpperCase()
6
+ ).replace(/\s+/g, "");
7
+ }
8
+ function toPascalCase(str) {
9
+ const camel = toCamelCase(str);
10
+ return camel.charAt(0).toUpperCase() + camel.slice(1);
11
+ }
12
+ function toSnakeCase(str) {
13
+ return str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`).replace(/[-_\s]+/g, "_").replace(/^[_\s]+|[_\s]+$/g, "").toLowerCase();
14
+ }
15
+ function toKebabCase(str) {
16
+ return str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`).replace(/[-_\s]+/g, "-").replace(/^[-_\s]+|[-_\s]+$/g, "").toLowerCase();
17
+ }
18
+ function toScreamingSnake(str) {
19
+ return toSnakeCase(str).toUpperCase();
20
+ }
21
+ function toSlug(str) {
22
+ return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9\s-_]/g, "").replace(/[\s-_]+/g, "-").replace(/^-+|-+$/g, "");
23
+ }
24
+ function uuid() {
25
+ if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
26
+ return crypto.randomUUID();
27
+ }
28
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
29
+ const r = Math.random() * 16 | 0;
30
+ const v = c === "x" ? r : r & 3 | 8;
31
+ return v.toString(16);
32
+ });
33
+ }
34
+ function shortId(length = 8) {
35
+ const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
36
+ let result = "";
37
+ for (let i = 0; i < length; i++) {
38
+ result += chars.charAt(Math.random() * chars.length | 0);
39
+ }
40
+ return result;
41
+ }
42
+ function prefixedId(prefix, length = 8) {
43
+ return `${prefix}-${shortId(length)}`;
44
+ }
45
+ function interpolate(tmpl, data) {
46
+ return tmpl.replace(/\{\{\s*(\w+)\s*\}\}/g, (_, key) => {
47
+ return data[key] !== void 0 ? String(data[key]) : `{{${key}}}`;
48
+ });
49
+ }
50
+
51
+ // src/base.ts
52
+ var SkipoBase = class {
53
+ /** Unique instance identifier */
54
+ instanceId;
55
+ /** Human-readable component name */
56
+ name;
57
+ /** Logger instance */
58
+ logger;
59
+ /** Whether this component has been initialized */
60
+ initialized = false;
61
+ /** Whether this component has been disposed */
62
+ disposed = false;
63
+ constructor(config = { name: "SkipoComponent" }) {
64
+ this.instanceId = shortId();
65
+ this.name = config?.name ?? "SkipoComponent";
66
+ this.logger = config?.logger ?? console;
67
+ }
68
+ /** Initialize the component. Call before use. */
69
+ async initialize() {
70
+ if (this.initialized) return;
71
+ this.logger.log(`[${this.name}:${this.instanceId}] Initializing`);
72
+ await this.onInitialize();
73
+ this.initialized = true;
74
+ }
75
+ /** Override to add custom initialization logic */
76
+ async onInitialize() {
77
+ }
78
+ /** Dispose the component and release resources */
79
+ async dispose() {
80
+ if (this.disposed) return;
81
+ this.logger.log(`[${this.name}:${this.instanceId}] Disposing`);
82
+ await this.onDispose();
83
+ this.disposed = true;
84
+ }
85
+ /** Override to add custom cleanup logic */
86
+ async onDispose() {
87
+ }
88
+ /** Guard: throws if not initialized */
89
+ ensureInitialized() {
90
+ if (!this.initialized) {
91
+ throw new Error(`${this.name} has not been initialized. Call initialize() first.`);
92
+ }
93
+ }
94
+ /** Guard: throws if already disposed */
95
+ ensureNotDisposed() {
96
+ if (this.disposed) {
97
+ throw new Error(`${this.name} has been disposed and cannot be used.`);
98
+ }
99
+ }
100
+ };
101
+
102
+ export {
103
+ toCamelCase,
104
+ toPascalCase,
105
+ toSnakeCase,
106
+ toKebabCase,
107
+ toScreamingSnake,
108
+ toSlug,
109
+ uuid,
110
+ shortId,
111
+ prefixedId,
112
+ interpolate,
113
+ SkipoBase
114
+ };
@@ -1,377 +1,8 @@
1
1
  import * as _ultrst_armada_krnl from '@ultrst-armada/krnl';
2
2
  import { ServiceDefinition } from '@ultrst-armada/krnl';
3
- import { ZodTypeAny } from 'zod';
4
- import { ExecOptions, SpawnOptions } from 'child_process';
5
- import fs from 'fs';
6
-
7
- /** Standard result type for operations that can fail */
8
- type Result<T, E = Error> = {
9
- ok: true;
10
- value: T;
11
- } | {
12
- ok: false;
13
- error: E;
14
- };
15
- /** Standard logger interface */
16
- interface Logger {
17
- log(message: string, ...args: unknown[]): void;
18
- warn(message: string, ...args: unknown[]): void;
19
- error(message: string, ...args: unknown[]): void;
20
- debug?(message: string, ...args: unknown[]): void;
21
- }
22
- /** Disposable resource interface */
23
- interface Disposable {
24
- dispose(): Promise<void>;
25
- }
26
- /** Generic provider interface */
27
- interface Provider<_T = unknown> {
28
- initialize(): Promise<void>;
29
- dispose(): Promise<void>;
30
- isInitialized(): boolean;
31
- }
32
- /** Configuration for any Skipo component */
33
- interface SkipoConfig {
34
- name: string;
35
- logger?: Logger;
36
- [key: string]: unknown;
37
- }
38
-
39
- /**
40
- * SkipoBase — Abstract foundation class for all Skipo components.
41
- * Provides lifecycle management, logging, and unique identification.
42
- * All @skipo/* classes should extend this.
43
- */
44
- declare abstract class SkipoBase implements Disposable {
45
- /** Unique instance identifier */
46
- readonly instanceId: string;
47
- /** Human-readable component name */
48
- readonly name: string;
49
- /** Logger instance */
50
- protected readonly logger: Logger;
51
- /** Whether this component has been initialized */
52
- protected initialized: boolean;
53
- /** Whether this component has been disposed */
54
- protected disposed: boolean;
55
- constructor(config?: SkipoConfig);
56
- /** Initialize the component. Call before use. */
57
- initialize(): Promise<void>;
58
- /** Override to add custom initialization logic */
59
- protected onInitialize(): Promise<void>;
60
- /** Dispose the component and release resources */
61
- dispose(): Promise<void>;
62
- /** Override to add custom cleanup logic */
63
- protected onDispose(): Promise<void>;
64
- /** Guard: throws if not initialized */
65
- protected ensureInitialized(): void;
66
- /** Guard: throws if already disposed */
67
- protected ensureNotDisposed(): void;
68
- }
69
-
70
- /**
71
- * @file string.ts
72
- * @description String case conversions, UUID & ShortID generators, and minimal template interpolation.
73
- */
74
- declare function toCamelCase(str: string): string;
75
- declare function toPascalCase(str: string): string;
76
- declare function toSnakeCase(str: string): string;
77
- declare function toKebabCase(str: string): string;
78
- declare function toScreamingSnake(str: string): string;
79
- declare function toSlug(str: string): string;
80
- declare function uuid(): string;
81
- declare function shortId(length?: number): string;
82
- declare function prefixedId(prefix: string, length?: number): string;
83
- declare function interpolate(tmpl: string, data: Record<string, any>): string;
84
-
85
- /**
86
- * @file async.ts
87
- * @description sleep, withTimeout, retry, pLimit, debounce, throttle, once, and memoize primitives.
88
- */
89
- /**
90
- * Classic sleep/delay.
91
- */
92
- declare function sleep(ms: number): Promise<void>;
93
- /**
94
- * Rejects if the task does not finish within ms.
95
- */
96
- declare function withTimeout<T>(promise: Promise<T>, ms: number, label?: string): Promise<T>;
97
- /**
98
- * Retries an async execution up to maxAttempts times.
99
- */
100
- declare function retry<T>(fn: () => Promise<T>, maxAttempts: number, delayMs?: number): Promise<T>;
101
- /**
102
- * Limits concurrent async task execution.
103
- */
104
- declare function pLimit<T>(tasks: (() => Promise<T>)[], concurrency: number): Promise<T[]>;
105
- /**
106
- * Debounces a function.
107
- */
108
- declare function debounce<T extends (...args: any[]) => any>(fn: T, ms: number): (...args: Parameters<T>) => void;
109
- /**
110
- * Throttles a function.
111
- */
112
- declare function throttle<T extends (...args: any[]) => any>(fn: T, ms: number): (...args: Parameters<T>) => void;
113
- /**
114
- * Wraps a function to run only once and cache its outcome.
115
- */
116
- declare function once<T extends (...args: any[]) => any>(fn: T): (...args: Parameters<T>) => ReturnType<T>;
117
- /**
118
- * Computational memoization cache helper.
119
- */
120
- declare function memoize<T extends (...args: any[]) => any>(fn: T, keyFn?: (...args: Parameters<T>) => string): (...args: Parameters<T>) => ReturnType<T>;
121
-
122
- /**
123
- * @file object.ts
124
- * @description Deep clone, deep merge, deep equal, object diffing, and dot-notation in-memory path accessor tools.
125
- */
126
- /**
127
- * Structurally deep clones an object with circular dependency check.
128
- */
129
- declare function deepClone<T>(obj: T, seen?: Map<any, any>): T;
130
- /**
131
- * Recursively deep merges override objects into a base.
132
- */
133
- declare function deepMerge(base: any, ...overrides: any[]): any;
134
- /**
135
- * Performs a strict structural equality check.
136
- */
137
- declare function deepEqual(a: any, b: any): boolean;
138
- /**
139
- * Performs an object diff between before and after states.
140
- */
141
- declare function objectDiff(before: any, after: any): {
142
- added: any;
143
- removed: any;
144
- changed: any;
145
- };
146
- /**
147
- * Accesses an in-memory object by dot-notation.
148
- */
149
- declare function getPath(obj: any, path: string, defaultValue?: any): any;
150
- /**
151
- * Mutates or sets an in-memory object by dot-notation.
152
- */
153
- declare function setPath(obj: any, path: string, value: any): any;
154
-
155
- /**
156
- * @file cache.ts
157
- * @description LRU cache, TTL cache, Stale-While-Revalidate, and File-system persistent caching.
158
- */
159
- declare class LRUCache<K, V> {
160
- private maxSize;
161
- private cache;
162
- constructor(maxSize: number);
163
- get(key: K): V | undefined;
164
- set(key: K, value: V): void;
165
- delete(key: K): boolean;
166
- clear(): void;
167
- size(): number;
168
- }
169
- declare class TTLCache<K, V> {
170
- private ttlMs;
171
- private cache;
172
- constructor(ttlMs: number);
173
- get(key: K): V | null;
174
- set(key: K, value: V): void;
175
- delete(key: K): boolean;
176
- clear(): void;
177
- }
178
- /**
179
- * Stale-While-Revalidate utility.
180
- */
181
- declare function swr<K, V>(cache: TTLCache<K, V>, key: K, fetchFn: () => Promise<V>): Promise<V>;
182
- declare class FileCache<T> {
183
- private cacheDir;
184
- constructor(cacheDir: string);
185
- private getFilePath;
186
- get(key: string): T | null;
187
- set(key: string, value: T): void;
188
- delete(key: string): void;
189
- clear(): void;
190
- }
191
-
192
- /**
193
- * @file env.ts
194
- * @description Type-safe environment loading and config validation tool.
195
- */
196
-
197
- /**
198
- * Reads a process environment variable with type coercion and defaults.
199
- */
200
- declare function getEnv<T>(key: string, defaultValue?: T): T;
201
- /**
202
- * Asserts environment variable is set and returns its string value.
203
- */
204
- declare function requireEnv(key: string): string;
205
- /**
206
- * Loads a .env file and injects variables into process.env.
207
- */
208
- declare function loadEnv(filePath?: string): void;
209
- /**
210
- * Validates the entire config using a Zod schema.
211
- */
212
- declare function validateEnvSchema<T extends ZodTypeAny>(zodSchema: T): T['_output'];
213
- /**
214
- * Checks if a connection string is a placeholder or template value.
215
- */
216
- declare function isPlaceholderConnection(url?: string): boolean;
217
- /**
218
- * Sanitizes a database URL, returning undefined if it is empty or a placeholder.
219
- */
220
- declare function sanitizeDatabaseUrl(url?: string): string | undefined;
221
-
222
- /**
223
- * @file http.ts
224
- * @description Safe, type-safe HTTP client wrapper.
225
- */
226
- interface SkipoHTTPOptions extends RequestInit {
227
- timeout?: number;
228
- retries?: number;
229
- }
230
- interface SkipoHTTPResult<T> {
231
- status: "success" | "error";
232
- data?: T;
233
- message?: string;
234
- code?: number;
235
- }
236
- /**
237
- * Helper to perform fetch with timeout and retries.
238
- */
239
- declare function requestRaw(url: string, opts?: SkipoHTTPOptions): Promise<Response>;
240
- declare function request<T>(url: string, opts?: SkipoHTTPOptions): Promise<SkipoHTTPResult<T>>;
241
- declare function get<T>(url: string, opts?: SkipoHTTPOptions): Promise<SkipoHTTPResult<T>>;
242
- declare function post<T>(url: string, body: any, opts?: SkipoHTTPOptions): Promise<SkipoHTTPResult<T>>;
243
- declare function put<T>(url: string, body: any, opts?: SkipoHTTPOptions): Promise<SkipoHTTPResult<T>>;
244
- declare function del<T>(url: string, opts?: SkipoHTTPOptions): Promise<SkipoHTTPResult<T>>;
245
- /**
246
- * Creates a client instance.
247
- */
248
- declare function createClient(baseUrl: string, defaultHeaders?: Record<string, string>): {
249
- get: <T>(path: string, opts?: SkipoHTTPOptions) => Promise<SkipoHTTPResult<T>>;
250
- post: <T>(path: string, body: any, opts?: SkipoHTTPOptions) => Promise<SkipoHTTPResult<T>>;
251
- put: <T>(path: string, body: any, opts?: SkipoHTTPOptions) => Promise<SkipoHTTPResult<T>>;
252
- del: <T>(path: string, opts?: SkipoHTTPOptions) => Promise<SkipoHTTPResult<T>>;
253
- };
254
- /**
255
- * Streaming SSE / Chunk response.
256
- */
257
- declare function streamResponse(url: string, opts?: SkipoHTTPOptions): AsyncIterable<string>;
258
-
259
- /**
260
- * @file shell.ts
261
- * @description Safe promise-based exec and spawn wrappers with cross-platform command routing.
262
- */
263
-
264
- interface SpawnHandle {
265
- pid?: number;
266
- kill: (signal?: NodeJS.Signals | number) => boolean;
267
- promise: Promise<{
268
- code: number | null;
269
- signal: NodeJS.Signals | null;
270
- }>;
271
- }
272
- /**
273
- * Promisified command execution.
274
- */
275
- declare function execCmd(cmd: string, opts?: ExecOptions & {
276
- timeout?: number;
277
- }): Promise<{
278
- stdout: string;
279
- stderr: string;
280
- }>;
281
- /**
282
- * Streaming command execution.
283
- */
284
- declare function spawnCmd(cmd: string, args: string[], opts?: SpawnOptions): SpawnHandle;
285
- /**
286
- * Defines posix vs win32 specific commands.
287
- */
288
- declare function platform<T>(routing: {
289
- posix: T;
290
- win32: T;
291
- }): T;
292
- /**
293
- * Resolves the full path of a binary.
294
- */
295
- declare function which(cmd: string): string | null;
296
-
297
- /**
298
- * @file fs-lock.ts
299
- * @description File locking primitive for atomic file operations.
300
- */
301
- type ReleaseFn = () => void;
302
- declare class FileLock {
303
- private static locks;
304
- static acquire(filePath: string): Promise<ReleaseFn>;
305
- }
306
-
307
- /**
308
- * @file fs.ts
309
- * @description Robust cross-platform filesystem abstraction layer.
310
- */
311
-
312
- declare function readFile(filePath: string, encoding?: BufferEncoding): Promise<string>;
313
- declare function writeFile(filePath: string, content: string | Buffer): Promise<void>;
314
- /**
315
- * Atomic file writing via temp files.
316
- */
317
- declare function writeFileAtomic(filePath: string, content: string | Buffer): Promise<void>;
318
- declare function appendFile(filePath: string, content: string | Buffer): Promise<void>;
319
- declare function deleteFile(filePath: string): Promise<void>;
320
- declare function fileExists(filePath: string): Promise<boolean>;
321
- declare function getFileStat(filePath: string): Promise<{
322
- size: number;
323
- createdAt: Date;
324
- modifiedAt: Date;
325
- isDir: boolean;
326
- }>;
327
- declare function readJSON<T>(filePath: string): Promise<T | null>;
328
- declare function writeJSON(filePath: string, data: unknown, indent?: number): Promise<void>;
329
- declare function updateJSON<T>(filePath: string, patch: Partial<T>): Promise<T>;
330
- declare function ensureDir(dirPath: string): Promise<void>;
331
- declare function deleteDir(dirPath: string, recursive?: boolean): Promise<void>;
332
- declare function listDir(dirPath: string): Promise<string[]>;
333
- declare function walkDir(dirPath: string, filter?: (file: string) => boolean): AsyncIterable<string>;
334
- declare function dirExists(dirPath: string): Promise<boolean>;
335
- declare function copyDir(src: string, dest: string): Promise<void>;
336
- declare function firstExisting(candidates: string[]): Promise<string | null>;
337
- declare function watchFile(filePath: string, handler: (event: string) => void, debounceMs?: number): fs.FSWatcher;
338
- declare function watchDir(dirPath: string, handler: (event: string, filename: string | null) => void, debounceMs?: number): fs.FSWatcher;
339
- declare function createTempFile(prefix?: string): string;
340
- declare function createTempDir(prefix?: string): string;
341
- declare function withTempDir<T>(fn: (tempDir: string) => Promise<T>, prefix?: string): Promise<T>;
342
-
343
- /**
344
- * @file events.ts
345
- * @description Skipo Universal Real-Time Event Bus. Facilitates real-time event broadcasting and streaming.
346
- */
347
- interface RealtimeWorkspaceEvent {
348
- id: string;
349
- timestamp: number;
350
- userId?: string;
351
- workspaceId?: string;
352
- source: 'api' | 'ui';
353
- method?: string;
354
- endpoint?: string;
355
- action: 'DOCUMENT_CREATED' | 'DOCUMENT_UPDATED' | 'DOCUMENT_DELETED' | 'CATEGORY_CREATED' | 'CATEGORY_UPDATED' | 'CATEGORY_DELETED' | 'GRAPH_UPDATED' | 'BIOME_CHANGED' | 'WORKSPACE_UPDATED' | 'WORKSPACE_SWITCHED' | 'GENERIC_ACTION' | string;
356
- details?: string;
357
- payload?: any;
358
- }
359
- type EventListener = (event: RealtimeWorkspaceEvent) => void;
360
- /**
361
- * Publish a new event to all active real-time subscribers and store in buffer.
362
- */
363
- declare function publishRealtimeEvent(eventInput: Omit<RealtimeWorkspaceEvent, 'id' | 'timestamp'> & {
364
- id?: string;
365
- timestamp?: number;
366
- }): RealtimeWorkspaceEvent;
367
- /**
368
- * Subscribe to real-time events. Returns an unsubscribe function.
369
- */
370
- declare function subscribeRealtimeEvents(listener: EventListener): () => void;
371
- /**
372
- * Retrieve recent events since a specified timestamp, optionally filtered by workspaceId or userId.
373
- */
374
- declare function getRecentEvents(sinceTimestamp?: number, workspaceId?: string, userId?: string): RealtimeWorkspaceEvent[];
3
+ export { D as Disposable, L as Logger, P as Provider, R as Result, S as SkipoBase, a as SkipoConfig } from './base-DDYO-DzM.js';
4
+ export { EnvironmentValues, EventListener, LRUCache, RealtimeWorkspaceEvent, SkipoHTTPOptions, SkipoHTTPResult, TTLCache, createClient, debounce, deepClone, deepEqual, deepMerge, del, get, getEnv, getPath, getRecentEvents, interpolate, isPlaceholderConnection, memoize, objectDiff, once, pLimit, post, prefixedId, publishRealtimeEvent, put, request, requestRaw, requireEnv, retry, sanitizeDatabaseUrl, setPath, shortId, sleep, streamResponse, subscribeRealtimeEvents, swr, throttle, toCamelCase, toKebabCase, toPascalCase, toScreamingSnake, toSlug, toSnakeCase, uuid, validateEnvSchema, withTimeout } from './portable.js';
5
+ import 'zod';
375
6
 
376
7
  declare const FunctionsServiceDefinition: ServiceDefinition;
377
8
  declare const FunctionsServiceFacade: {
@@ -398,4 +29,4 @@ declare const krnlFunctionsServiceFacade: {
398
29
  execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
399
30
  };
400
31
 
401
- export { type Disposable, type EventListener, FileCache, FileLock, FunctionsServiceDefinition, FunctionsServiceFacade, LRUCache, type Logger, type Provider, type RealtimeWorkspaceEvent, type ReleaseFn, type Result, SkipoBase, type SkipoConfig, type SkipoHTTPOptions, type SkipoHTTPResult, type SpawnHandle, TTLCache, appendFile, copyDir, createClient, createTempDir, createTempFile, debounce, deepClone, deepEqual, deepMerge, del, deleteDir, deleteFile, dirExists, ensureDir, execCmd, fileExists, firstExisting, get, getEnv, getFileStat, getPath, getRecentEvents, interpolate, isPlaceholderConnection, krnlFunctionsServiceDefinition, krnlFunctionsServiceFacade, listDir, loadEnv, memoize, objectDiff, once, pLimit, platform, post, prefixedId, publishRealtimeEvent, put, readFile, readJSON, request, requestRaw, requireEnv, retry, sanitizeDatabaseUrl, setPath, shortId, sleep, spawnCmd, streamResponse, subscribeRealtimeEvents, swr, throttle, toCamelCase, toKebabCase, toPascalCase, toScreamingSnake, toSlug, toSnakeCase, updateJSON, uuid, validateEnvSchema, walkDir, watchDir, watchFile, which, withTempDir, withTimeout, writeFile, writeFileAtomic, writeJSON };
32
+ export { FunctionsServiceDefinition, FunctionsServiceFacade, krnlFunctionsServiceDefinition, krnlFunctionsServiceFacade };