@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,110 @@
1
+ export { D as Disposable, L as Logger, P as Provider, R as Result, S as SkipoBase, a as SkipoConfig } from './base-DDYO-DzM.js';
2
+ 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';
3
+ import fs from 'fs';
4
+ import { ExecOptions, SpawnOptions } from 'child_process';
5
+ import 'zod';
6
+
7
+ /**
8
+ * @file fs-lock.ts
9
+ * @description File locking primitive for atomic file operations.
10
+ */
11
+ type ReleaseFn = () => void;
12
+ declare class FileLock {
13
+ private static locks;
14
+ static acquire(filePath: string): Promise<ReleaseFn>;
15
+ }
16
+
17
+ /**
18
+ * @file fs.ts
19
+ * @description Robust cross-platform filesystem abstraction layer.
20
+ */
21
+
22
+ declare function readFile(filePath: string, encoding?: BufferEncoding): Promise<string>;
23
+ declare function writeFile(filePath: string, content: string | Buffer): Promise<void>;
24
+ /**
25
+ * Atomic file writing via temp files.
26
+ */
27
+ declare function writeFileAtomic(filePath: string, content: string | Buffer): Promise<void>;
28
+ declare function appendFile(filePath: string, content: string | Buffer): Promise<void>;
29
+ declare function deleteFile(filePath: string): Promise<void>;
30
+ declare function fileExists(filePath: string): Promise<boolean>;
31
+ declare function getFileStat(filePath: string): Promise<{
32
+ size: number;
33
+ createdAt: Date;
34
+ modifiedAt: Date;
35
+ isDir: boolean;
36
+ }>;
37
+ declare function readJSON<T>(filePath: string): Promise<T | null>;
38
+ declare function writeJSON(filePath: string, data: unknown, indent?: number): Promise<void>;
39
+ declare function updateJSON<T>(filePath: string, patch: Partial<T>): Promise<T>;
40
+ declare function ensureDir(dirPath: string): Promise<void>;
41
+ declare function deleteDir(dirPath: string, recursive?: boolean): Promise<void>;
42
+ declare function listDir(dirPath: string): Promise<string[]>;
43
+ declare function walkDir(dirPath: string, filter?: (file: string) => boolean): AsyncIterable<string>;
44
+ declare function dirExists(dirPath: string): Promise<boolean>;
45
+ declare function copyDir(src: string, dest: string): Promise<void>;
46
+ declare function firstExisting(candidates: string[]): Promise<string | null>;
47
+ declare function watchFile(filePath: string, handler: (event: string) => void, debounceMs?: number): fs.FSWatcher;
48
+ declare function watchDir(dirPath: string, handler: (event: string, filename: string | null) => void, debounceMs?: number): fs.FSWatcher;
49
+ declare function createTempFile(prefix?: string): string;
50
+ declare function createTempDir(prefix?: string): string;
51
+ declare function withTempDir<T>(fn: (tempDir: string) => Promise<T>, prefix?: string): Promise<T>;
52
+
53
+ /**
54
+ * @file shell.ts
55
+ * @description Safe promise-based exec and spawn wrappers with cross-platform command routing.
56
+ */
57
+
58
+ interface SpawnHandle {
59
+ pid?: number;
60
+ kill: (signal?: NodeJS.Signals | number) => boolean;
61
+ promise: Promise<{
62
+ code: number | null;
63
+ signal: NodeJS.Signals | null;
64
+ }>;
65
+ }
66
+ /**
67
+ * Promisified command execution.
68
+ */
69
+ declare function execCmd(cmd: string, opts?: ExecOptions & {
70
+ timeout?: number;
71
+ }): Promise<{
72
+ stdout: string;
73
+ stderr: string;
74
+ }>;
75
+ /**
76
+ * Streaming command execution.
77
+ */
78
+ declare function spawnCmd(cmd: string, args: string[], opts?: SpawnOptions): SpawnHandle;
79
+ /**
80
+ * Defines posix vs win32 specific commands.
81
+ */
82
+ declare function platform<T>(routing: {
83
+ posix: T;
84
+ win32: T;
85
+ }): T;
86
+ /**
87
+ * Resolves the full path of a binary.
88
+ */
89
+ declare function which(cmd: string): string | null;
90
+
91
+ declare class FileCache<T> {
92
+ private cacheDir;
93
+ constructor(cacheDir: string);
94
+ private getFilePath;
95
+ get(key: string): T | null;
96
+ set(key: string, value: T): void;
97
+ delete(key: string): void;
98
+ clear(): void;
99
+ }
100
+
101
+ /**
102
+ * @file env-node.ts
103
+ * @description Node-only .env file loading.
104
+ */
105
+ /**
106
+ * Loads a .env file and injects variables into process.env.
107
+ */
108
+ declare function loadEnv(filePath?: string): void;
109
+
110
+ export { FileCache, FileLock, type ReleaseFn, type SpawnHandle, appendFile, copyDir, createTempDir, createTempFile, deleteDir, deleteFile, dirExists, ensureDir, execCmd, fileExists, firstExisting, getFileStat, listDir, loadEnv, platform, readFile, readJSON, spawnCmd, updateJSON, walkDir, watchDir, watchFile, which, withTempDir, writeFile, writeFileAtomic, writeJSON };
@@ -0,0 +1,442 @@
1
+ import {
2
+ LRUCache,
3
+ TTLCache,
4
+ createClient,
5
+ debounce,
6
+ deepClone,
7
+ deepEqual,
8
+ deepMerge,
9
+ del,
10
+ get,
11
+ getEnv,
12
+ getPath,
13
+ getRecentEvents,
14
+ isPlaceholderConnection,
15
+ memoize,
16
+ objectDiff,
17
+ once,
18
+ pLimit,
19
+ post,
20
+ publishRealtimeEvent,
21
+ put,
22
+ request,
23
+ requestRaw,
24
+ requireEnv,
25
+ retry,
26
+ sanitizeDatabaseUrl,
27
+ setPath,
28
+ sleep,
29
+ streamResponse,
30
+ subscribeRealtimeEvents,
31
+ swr,
32
+ throttle,
33
+ validateEnvSchema,
34
+ withTimeout
35
+ } from "./chunk-6EHIZHO4.js";
36
+ import {
37
+ SkipoBase,
38
+ interpolate,
39
+ prefixedId,
40
+ shortId,
41
+ toCamelCase,
42
+ toKebabCase,
43
+ toPascalCase,
44
+ toScreamingSnake,
45
+ toSlug,
46
+ toSnakeCase,
47
+ uuid
48
+ } from "./chunk-Z4LM5TOJ.js";
49
+
50
+ // src/fs-lock.ts
51
+ import path from "path";
52
+ var FileLock = class _FileLock {
53
+ static locks = /* @__PURE__ */ new Map();
54
+ static async acquire(filePath) {
55
+ const resolvedPath = path.resolve(filePath);
56
+ const existing = _FileLock.locks.get(resolvedPath) || Promise.resolve();
57
+ let release = () => {
58
+ };
59
+ const nextLock = new Promise((resolve) => {
60
+ release = () => {
61
+ _FileLock.locks.delete(resolvedPath);
62
+ resolve();
63
+ };
64
+ });
65
+ _FileLock.locks.set(resolvedPath, nextLock);
66
+ await existing;
67
+ return release;
68
+ }
69
+ };
70
+
71
+ // src/fs.ts
72
+ import fs from "fs";
73
+ import fsp from "fs/promises";
74
+ import path2 from "path";
75
+ import os from "os";
76
+ async function readFile(filePath, encoding = "utf8") {
77
+ return await fsp.readFile(filePath, encoding);
78
+ }
79
+ async function writeFile(filePath, content) {
80
+ await fsp.writeFile(filePath, content);
81
+ }
82
+ async function writeFileAtomic(filePath, content) {
83
+ const dir = path2.dirname(filePath);
84
+ await ensureDir(dir);
85
+ const tempFile = path2.join(dir, `.${path2.basename(filePath)}.tmp_${Date.now()}_${Math.random().toString(36).substring(7)}`);
86
+ try {
87
+ await fsp.writeFile(tempFile, content);
88
+ await fsp.rename(tempFile, filePath);
89
+ } catch (e) {
90
+ if (fs.existsSync(tempFile)) {
91
+ await fsp.unlink(tempFile).catch(() => {
92
+ });
93
+ }
94
+ throw e;
95
+ }
96
+ }
97
+ async function appendFile(filePath, content) {
98
+ await fsp.appendFile(filePath, content);
99
+ }
100
+ async function deleteFile(filePath) {
101
+ await fsp.unlink(filePath);
102
+ }
103
+ async function fileExists(filePath) {
104
+ try {
105
+ const stat = await fsp.stat(filePath);
106
+ return stat.isFile();
107
+ } catch (e) {
108
+ return false;
109
+ }
110
+ }
111
+ async function getFileStat(filePath) {
112
+ const stat = await fsp.stat(filePath);
113
+ return {
114
+ size: stat.size,
115
+ createdAt: stat.birthtime,
116
+ modifiedAt: stat.mtime,
117
+ isDir: stat.isDirectory()
118
+ };
119
+ }
120
+ async function readJSON(filePath) {
121
+ try {
122
+ const content = await readFile(filePath, "utf8");
123
+ return JSON.parse(content);
124
+ } catch (e) {
125
+ return null;
126
+ }
127
+ }
128
+ async function writeJSON(filePath, data, indent = 2) {
129
+ const content = JSON.stringify(data, null, indent);
130
+ await writeFileAtomic(filePath, content);
131
+ }
132
+ async function updateJSON(filePath, patch) {
133
+ const release = await FileLock.acquire(filePath);
134
+ try {
135
+ let existing = await readJSON(filePath);
136
+ if (!existing) {
137
+ existing = {};
138
+ }
139
+ const updated = deepMerge(existing, patch);
140
+ await writeJSON(filePath, updated);
141
+ return updated;
142
+ } finally {
143
+ release();
144
+ }
145
+ }
146
+ async function ensureDir(dirPath) {
147
+ await fsp.mkdir(dirPath, { recursive: true });
148
+ }
149
+ async function deleteDir(dirPath, recursive = true) {
150
+ await fsp.rm(dirPath, { recursive, force: true });
151
+ }
152
+ async function listDir(dirPath) {
153
+ return await fsp.readdir(dirPath);
154
+ }
155
+ async function* walkDir(dirPath, filter) {
156
+ const list = await listDir(dirPath);
157
+ for (const item of list) {
158
+ const full = path2.join(dirPath, item);
159
+ const stat = await getFileStat(full);
160
+ if (stat.isDir) {
161
+ yield* walkDir(full, filter);
162
+ } else {
163
+ if (!filter || filter(full)) {
164
+ yield full;
165
+ }
166
+ }
167
+ }
168
+ }
169
+ async function dirExists(dirPath) {
170
+ try {
171
+ const stat = await fsp.stat(dirPath);
172
+ return stat.isDirectory();
173
+ } catch (e) {
174
+ return false;
175
+ }
176
+ }
177
+ async function copyDir(src, dest) {
178
+ await ensureDir(dest);
179
+ const list = await listDir(src);
180
+ for (const item of list) {
181
+ const srcItem = path2.join(src, item);
182
+ const destItem = path2.join(dest, item);
183
+ const stat = await getFileStat(srcItem);
184
+ if (stat.isDir) {
185
+ await copyDir(srcItem, destItem);
186
+ } else {
187
+ await fsp.copyFile(srcItem, destItem);
188
+ }
189
+ }
190
+ }
191
+ async function firstExisting(candidates) {
192
+ for (const cand of candidates) {
193
+ if (await fileExists(cand)) {
194
+ return cand;
195
+ }
196
+ }
197
+ return null;
198
+ }
199
+ function watchFile(filePath, handler, debounceMs = 100) {
200
+ let timer = null;
201
+ return fs.watch(filePath, (event) => {
202
+ if (timer) clearTimeout(timer);
203
+ timer = setTimeout(() => handler(event), debounceMs);
204
+ });
205
+ }
206
+ function watchDir(dirPath, handler, debounceMs = 100) {
207
+ let timer = null;
208
+ return fs.watch(dirPath, (event, filename) => {
209
+ if (timer) clearTimeout(timer);
210
+ timer = setTimeout(() => handler(event, filename), debounceMs);
211
+ });
212
+ }
213
+ function createTempFile(prefix = "tmp-") {
214
+ return path2.join(os.tmpdir(), `${prefix}${Math.random().toString(36).substring(7)}.tmp`);
215
+ }
216
+ function createTempDir(prefix = "tmp-dir-") {
217
+ const dir = path2.join(os.tmpdir(), `${prefix}${Math.random().toString(36).substring(7)}`);
218
+ fs.mkdirSync(dir, { recursive: true });
219
+ return dir;
220
+ }
221
+ async function withTempDir(fn, prefix = "tmp-") {
222
+ const tempDir = createTempDir(prefix);
223
+ try {
224
+ return await fn(tempDir);
225
+ } finally {
226
+ await deleteDir(tempDir, true).catch(() => {
227
+ });
228
+ }
229
+ }
230
+
231
+ // src/shell.ts
232
+ import childProcess from "child_process";
233
+ import path3 from "path";
234
+ import fs2 from "fs";
235
+ function execCmd(cmd, opts = {}) {
236
+ const timeout = opts.timeout || 3e4;
237
+ return new Promise((resolve, reject) => {
238
+ childProcess.exec(cmd, { ...opts, timeout }, (error, stdout, stderr) => {
239
+ if (error) {
240
+ reject(new Error(`[SkipoShellError] Command failed: ${cmd}
241
+ Exit Code: ${error.code}
242
+ Stderr: ${String(stderr)}`));
243
+ } else {
244
+ resolve({ stdout: String(stdout), stderr: String(stderr) });
245
+ }
246
+ });
247
+ });
248
+ }
249
+ function spawnCmd(cmd, args, opts = {}) {
250
+ const child = childProcess.spawn(cmd, args, opts);
251
+ const promise = new Promise((resolve, reject) => {
252
+ child.on("close", (code, signal) => {
253
+ resolve({ code, signal });
254
+ });
255
+ child.on("error", (err) => {
256
+ reject(err);
257
+ });
258
+ });
259
+ return {
260
+ pid: child.pid,
261
+ kill: (signal) => child.kill(signal),
262
+ promise
263
+ };
264
+ }
265
+ function platform(routing) {
266
+ return process.platform === "win32" ? routing.win32 : routing.posix;
267
+ }
268
+ function which(cmd) {
269
+ const envPath = process.env.PATH || "";
270
+ const paths = envPath.split(path3.delimiter);
271
+ const extensions = process.platform === "win32" ? [".exe", ".cmd", ".bat", ""] : [""];
272
+ for (const p of paths) {
273
+ for (const ext of extensions) {
274
+ const fullPath = path3.join(p, `${cmd}${ext}`);
275
+ try {
276
+ if (fs2.existsSync(fullPath) && fs2.statSync(fullPath).isFile()) {
277
+ return fullPath;
278
+ }
279
+ } catch (e) {
280
+ }
281
+ }
282
+ }
283
+ return null;
284
+ }
285
+
286
+ // src/fileCache.ts
287
+ import fs3 from "fs";
288
+ import path4 from "path";
289
+ var FileCache = class {
290
+ cacheDir;
291
+ constructor(cacheDir) {
292
+ this.cacheDir = cacheDir;
293
+ try {
294
+ if (!fs3.existsSync(cacheDir)) {
295
+ fs3.mkdirSync(cacheDir, { recursive: true });
296
+ }
297
+ } catch (e) {
298
+ }
299
+ }
300
+ getFilePath(key) {
301
+ return path4.join(this.cacheDir, `${encodeURIComponent(key)}.json`);
302
+ }
303
+ get(key) {
304
+ const file = this.getFilePath(key);
305
+ if (!fs3.existsSync(file)) return null;
306
+ try {
307
+ const content = fs3.readFileSync(file, "utf8");
308
+ return JSON.parse(content);
309
+ } catch (e) {
310
+ return null;
311
+ }
312
+ }
313
+ set(key, value) {
314
+ const file = this.getFilePath(key);
315
+ try {
316
+ fs3.writeFileSync(file, JSON.stringify(value, null, 2), "utf8");
317
+ } catch (e) {
318
+ }
319
+ }
320
+ delete(key) {
321
+ const file = this.getFilePath(key);
322
+ if (fs3.existsSync(file)) {
323
+ try {
324
+ fs3.unlinkSync(file);
325
+ } catch (e) {
326
+ }
327
+ }
328
+ }
329
+ clear() {
330
+ try {
331
+ const files = fs3.readdirSync(this.cacheDir);
332
+ for (const file of files) {
333
+ fs3.unlinkSync(path4.join(this.cacheDir, file));
334
+ }
335
+ } catch (e) {
336
+ }
337
+ }
338
+ };
339
+
340
+ // src/env-node.ts
341
+ import fs4 from "fs";
342
+ import path5 from "path";
343
+ function loadEnv(filePath) {
344
+ const file = filePath || path5.join(process.cwd(), ".env");
345
+ if (!fs4.existsSync(file)) return;
346
+ try {
347
+ const content = fs4.readFileSync(file, "utf8");
348
+ const lines = content.split(/\r?\n/);
349
+ for (const line of lines) {
350
+ const trimmed = line.trim();
351
+ if (!trimmed || trimmed.startsWith("#")) continue;
352
+ const equalsIndex = trimmed.indexOf("=");
353
+ if (equalsIndex === -1) continue;
354
+ const key = trimmed.slice(0, equalsIndex).trim();
355
+ let value = trimmed.slice(equalsIndex + 1).trim();
356
+ if (value.startsWith('"') && value.endsWith('"')) {
357
+ value = value.slice(1, -1);
358
+ } else if (value.startsWith("'") && value.endsWith("'")) {
359
+ value = value.slice(1, -1);
360
+ }
361
+ if (process.env[key] === void 0) {
362
+ process.env[key] = value;
363
+ }
364
+ }
365
+ } catch {
366
+ }
367
+ }
368
+ export {
369
+ FileCache,
370
+ FileLock,
371
+ LRUCache,
372
+ SkipoBase,
373
+ TTLCache,
374
+ appendFile,
375
+ copyDir,
376
+ createClient,
377
+ createTempDir,
378
+ createTempFile,
379
+ debounce,
380
+ deepClone,
381
+ deepEqual,
382
+ deepMerge,
383
+ del,
384
+ deleteDir,
385
+ deleteFile,
386
+ dirExists,
387
+ ensureDir,
388
+ execCmd,
389
+ fileExists,
390
+ firstExisting,
391
+ get,
392
+ getEnv,
393
+ getFileStat,
394
+ getPath,
395
+ getRecentEvents,
396
+ interpolate,
397
+ isPlaceholderConnection,
398
+ listDir,
399
+ loadEnv,
400
+ memoize,
401
+ objectDiff,
402
+ once,
403
+ pLimit,
404
+ platform,
405
+ post,
406
+ prefixedId,
407
+ publishRealtimeEvent,
408
+ put,
409
+ readFile,
410
+ readJSON,
411
+ request,
412
+ requestRaw,
413
+ requireEnv,
414
+ retry,
415
+ sanitizeDatabaseUrl,
416
+ setPath,
417
+ shortId,
418
+ sleep,
419
+ spawnCmd,
420
+ streamResponse,
421
+ subscribeRealtimeEvents,
422
+ swr,
423
+ throttle,
424
+ toCamelCase,
425
+ toKebabCase,
426
+ toPascalCase,
427
+ toScreamingSnake,
428
+ toSlug,
429
+ toSnakeCase,
430
+ updateJSON,
431
+ uuid,
432
+ validateEnvSchema,
433
+ walkDir,
434
+ watchDir,
435
+ watchFile,
436
+ which,
437
+ withTempDir,
438
+ withTimeout,
439
+ writeFile,
440
+ writeFileAtomic,
441
+ writeJSON
442
+ };