@ultrst-armada/floks 1.13.16 → 1.13.19

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 (291) hide show
  1. package/.krusbl-release-attestation.json +3 -3
  2. package/package.json +14 -4
  3. package/packages/canvas-ui/dist/MovableSocketView.d.ts +42 -0
  4. package/packages/canvas-ui/dist/NodeCard.d.ts +43 -0
  5. package/packages/canvas-ui/dist/NodeDetailsPanel.d.ts +11 -0
  6. package/packages/canvas-ui/dist/NodeEmblem.d.ts +5 -0
  7. package/packages/canvas-ui/dist/NodeGraphCanvas.d.ts +17 -0
  8. package/packages/canvas-ui/dist/Viewer2DNodes.d.ts +30 -0
  9. package/packages/canvas-ui/dist/WireRenderer.d.ts +23 -0
  10. package/packages/canvas-ui/dist/aiko/AikoModule.d.ts +62 -0
  11. package/packages/canvas-ui/dist/aiko/AikoModule.test.d.ts +1 -0
  12. package/packages/canvas-ui/dist/aiko/index.d.ts +1 -65
  13. package/packages/canvas-ui/dist/authoring/UiAuthoringBindingEditor.d.ts +6 -0
  14. package/packages/canvas-ui/dist/authoring/UiAuthoringBindingEditor.test.d.ts +1 -0
  15. package/packages/canvas-ui/dist/authoring/UiAuthoringInspector.d.ts +6 -0
  16. package/packages/canvas-ui/dist/authoring/UiAuthoringPreview.d.ts +8 -0
  17. package/packages/canvas-ui/dist/authoring/UiAuthoringPrimitives.test.d.ts +1 -0
  18. package/packages/canvas-ui/dist/authoring/UiAuthoringTree.d.ts +7 -0
  19. package/packages/canvas-ui/dist/authoring/UiAuthoringValidationPanel.d.ts +8 -0
  20. package/packages/canvas-ui/dist/authoring/UiAuthoringWorkspace.d.ts +8 -0
  21. package/packages/canvas-ui/dist/authoring/authoringModel.d.ts +5 -0
  22. package/packages/canvas-ui/dist/authoring/authoringModel.test.d.ts +1 -0
  23. package/packages/canvas-ui/dist/authoring/index.d.ts +8 -97
  24. package/packages/canvas-ui/dist/authoring/types.d.ts +50 -0
  25. package/packages/canvas-ui/dist/canvas/CanvasViewport.d.ts +11 -0
  26. package/packages/canvas-ui/dist/canvas/InfiniteCanvas.d.ts +11 -0
  27. package/packages/canvas-ui/dist/canvas/MiniMap.d.ts +9 -0
  28. package/packages/canvas-ui/dist/canvas/index.d.ts +5 -54
  29. package/packages/canvas-ui/dist/canvas/types.d.ts +14 -0
  30. package/packages/canvas-ui/dist/canvas/useCanvas.d.ts +9 -0
  31. package/packages/canvas-ui/dist/dock/DockBar.d.ts +11 -0
  32. package/packages/canvas-ui/dist/dock/DockItem.d.ts +8 -0
  33. package/packages/canvas-ui/dist/dock/index.d.ts +4 -37
  34. package/packages/canvas-ui/dist/dock/types.d.ts +9 -0
  35. package/packages/canvas-ui/dist/dock/useDock.d.ts +8 -0
  36. package/packages/canvas-ui/dist/editor/MonacoEditor.d.ts +18 -0
  37. package/packages/canvas-ui/dist/editor/MonacoEditor.test.d.ts +1 -0
  38. package/packages/canvas-ui/dist/editor/index.d.ts +4 -55
  39. package/packages/canvas-ui/dist/editor/themes.d.ts +22 -0
  40. package/packages/canvas-ui/dist/editor/types.d.ts +8 -0
  41. package/packages/canvas-ui/dist/editor/useMonaco.d.ts +1 -0
  42. package/packages/canvas-ui/dist/fod/FodModule.d.ts +57 -0
  43. package/packages/canvas-ui/dist/fod/FodModule.test.d.ts +1 -0
  44. package/packages/canvas-ui/dist/fod/index.d.ts +1 -59
  45. package/packages/canvas-ui/dist/frnl-editable-node-graph/FrnlEditableNodeGraph.d.ts +107 -0
  46. package/packages/canvas-ui/dist/frnl-editable-node-graph/FrnlEditableNodeGraph.test.d.ts +1 -0
  47. package/packages/canvas-ui/dist/frnl-editable-node-graph/index.d.ts +1 -110
  48. package/packages/canvas-ui/dist/graph-2d/CanvasBackground2D.d.ts +18 -0
  49. package/packages/canvas-ui/dist/graph-2d/CanvasErrorBoundary.d.ts +20 -0
  50. package/packages/canvas-ui/dist/graph-2d/MagneticTraces2D.d.ts +17 -0
  51. package/packages/canvas-ui/dist/graph-2d/Node2DBase.d.ts +40 -0
  52. package/packages/canvas-ui/dist/graph-2d/NodeRenderer2D.d.ts +34 -0
  53. package/packages/canvas-ui/dist/graph-2d/RecorderWaveformDisplay.d.ts +9 -0
  54. package/packages/canvas-ui/dist/graph-2d/RotaryKnob.d.ts +19 -0
  55. package/packages/canvas-ui/dist/graph-2d/Socket2D.d.ts +30 -0
  56. package/packages/canvas-ui/dist/graph-2d/Wire2D.d.ts +26 -0
  57. package/packages/canvas-ui/dist/graph-2d/index.d.ts +13 -270
  58. package/packages/canvas-ui/dist/graph-2d/socketCoordinates.d.ts +31 -0
  59. package/packages/canvas-ui/dist/{types-D3RRfQUo.d.ts → graph-2d/types.d.ts} +5 -8
  60. package/packages/canvas-ui/dist/graph-2d/useCanvas2DCoordinates.d.ts +16 -0
  61. package/packages/canvas-ui/dist/graph-2d/useCanvas2DMagnetic.d.ts +25 -0
  62. package/packages/canvas-ui/dist/index.d.ts +16 -191
  63. package/packages/canvas-ui/dist/index.js +9 -9
  64. package/packages/canvas-ui/dist/node-graph-ui/ghost/GhostNodeCard.d.ts +8 -0
  65. package/packages/canvas-ui/dist/node-graph-ui/ghost/GhostSolidifyBar.d.ts +10 -0
  66. package/packages/canvas-ui/dist/node-graph-ui/ghost/GhostTraceLayer.d.ts +6 -0
  67. package/packages/canvas-ui/dist/node-graph-ui/ghost/index.d.ts +3 -0
  68. package/packages/canvas-ui/dist/node-graph-ui/index.d.ts +8 -0
  69. package/packages/canvas-ui/dist/node-graph-ui/react-flow/ReactFlowAdapter.d.ts +72 -0
  70. package/packages/canvas-ui/dist/node-graph-ui/toolbar/GraphToolbar.d.ts +12 -0
  71. package/packages/canvas-ui/dist/node-graph-ui/widgets/CanvasContextMenu.d.ts +15 -0
  72. package/packages/canvas-ui/dist/node-graph-ui/widgets/CompatibleNodePicker.d.ts +16 -0
  73. package/packages/canvas-ui/dist/node-graph-ui/widgets/MagneticTraceLayer.d.ts +6 -0
  74. package/packages/canvas-ui/dist/node-graph-ui/widgets/MidpointWidgets.d.ts +9 -0
  75. package/packages/canvas-ui/dist/node-graph-ui/widgets/NodeSearchPalette.d.ts +19 -0
  76. package/packages/canvas-ui/dist/node-graph-ui/widgets/SolidifyWidget.d.ts +6 -0
  77. package/packages/canvas-ui/dist/predictive/PredictiveGhostNodeCard/PredictiveGhostNodeCard.d.ts +4 -0
  78. package/packages/canvas-ui/dist/predictive/PredictiveGhostNodeCard/types.d.ts +12 -0
  79. package/packages/canvas-ui/dist/predictive/PredictiveGhostNodeCard.d.ts +2 -0
  80. package/packages/canvas-ui/dist/predictive/PredictiveHudToolbar.d.ts +14 -0
  81. package/packages/canvas-ui/dist/predictive/PredictiveLayer2D.d.ts +21 -0
  82. package/packages/canvas-ui/dist/predictive/index.d.ts +4 -75
  83. package/packages/canvas-ui/dist/predictive/usePredictiveGraph2D.d.ts +25 -0
  84. package/packages/canvas-ui/dist/tile-menu/Tile.d.ts +11 -0
  85. package/packages/canvas-ui/dist/tile-menu/TileCreateButton.d.ts +3 -0
  86. package/packages/canvas-ui/dist/tile-menu/TileGrid.d.ts +6 -0
  87. package/packages/canvas-ui/dist/tile-menu/index.d.ts +5 -45
  88. package/packages/canvas-ui/dist/tile-menu/types.d.ts +14 -0
  89. package/packages/canvas-ui/dist/tile-menu/useTileMenu.d.ts +7 -0
  90. package/packages/canvas-ui/dist/useGhostRouting.d.ts +22 -0
  91. package/packages/canvas-ui/dist/useNodeGraph.d.ts +38 -0
  92. package/packages/canvas-ui/package.json +4 -3
  93. package/packages/ui/dist/chunk-HXTM3RSQ.js +225 -0
  94. package/packages/ui/dist/{chunk-QTAFR2V6.js → chunk-Z2477Y5G.js} +458 -120
  95. package/packages/ui/dist/components/ai/chat/AgentExecutionCard.d.ts +13 -0
  96. package/packages/ui/dist/components/ai/chat/DirectChatHeader.d.ts +13 -0
  97. package/packages/ui/dist/components/ai/chat/DirectChatInput.d.ts +13 -0
  98. package/packages/ui/dist/components/ai/chat/DirectChatInput.test.d.ts +1 -0
  99. package/packages/ui/dist/components/ai/chat/DirectChatMessageList.d.ts +21 -0
  100. package/packages/ui/dist/components/ai/chat/index.d.ts +8 -0
  101. package/packages/ui/dist/components/ai/execution-status/TimelineScrubber.d.ts +21 -0
  102. package/packages/ui/dist/components/ai/execution-status/index.d.ts +5 -0
  103. package/packages/ui/dist/components/ai/index.d.ts +7 -386
  104. package/packages/ui/dist/components/ai/key-manager/EmailProfileCard.d.ts +3 -0
  105. package/packages/ui/dist/components/ai/key-manager/EmailProfileRegistrationForm.d.ts +3 -0
  106. package/packages/ui/dist/components/ai/key-manager/EmailProviderRow.d.ts +3 -0
  107. package/packages/ui/dist/components/ai/key-manager/ExistingKeyControl.d.ts +3 -0
  108. package/packages/ui/dist/components/ai/key-manager/KeyBackupExportTab.d.ts +6 -0
  109. package/packages/ui/dist/components/ai/key-manager/KeyBackupImportTab.d.ts +11 -0
  110. package/packages/ui/dist/components/ai/key-manager/KeyBackupModal.d.ts +3 -0
  111. package/packages/ui/dist/components/ai/key-manager/KeyListContainer.d.ts +19 -0
  112. package/packages/ui/dist/components/ai/key-manager/KeyModelVerificationSuite.d.ts +11 -0
  113. package/packages/ui/dist/components/ai/key-manager/KeyProviderFilterBar.d.ts +12 -0
  114. package/packages/ui/dist/components/ai/key-manager/SingleKeyCard.d.ts +19 -0
  115. package/packages/ui/dist/components/ai/key-manager/SingleKeyForm.d.ts +16 -0
  116. package/packages/ui/dist/components/ai/key-manager/contracts.d.ts +81 -0
  117. package/packages/ui/dist/components/ai/key-manager/index.d.ts +17 -0
  118. package/packages/ui/dist/components/ai/key-manager/key-management.test.d.ts +1 -0
  119. package/packages/ui/dist/components/ai/model-card/ModelCard.d.ts +22 -0
  120. package/packages/ui/dist/components/ai/model-card/ModelCardFooter.d.ts +13 -0
  121. package/packages/ui/dist/components/ai/model-card/ModelCardHeader.d.ts +17 -0
  122. package/packages/ui/dist/components/ai/model-card/index.d.ts +9 -0
  123. package/packages/ui/dist/components/ai/model-card/providerIconHelper.d.ts +6 -0
  124. package/packages/ui/dist/components/ai/model-card/types.d.ts +23 -0
  125. package/packages/ui/dist/components/ai/model-picker/AIModelPicker.d.ts +13 -0
  126. package/packages/ui/dist/components/ai/model-picker/AIProviderSelector.d.ts +12 -0
  127. package/packages/ui/dist/components/ai/model-picker/index.d.ts +6 -0
  128. package/packages/ui/dist/components/auth/AuthLoadingScreen.d.ts +7 -0
  129. package/packages/ui/dist/components/auth/AuthPage.contract.test.d.ts +1 -0
  130. package/packages/ui/dist/components/auth/AuthPage.d.ts +81 -0
  131. package/packages/ui/dist/components/auth/GoogleSignInButton.d.ts +14 -0
  132. package/packages/ui/dist/components/auth/LoginModal.d.ts +14 -0
  133. package/packages/ui/dist/components/auth/LuthAuthClient.d.ts +6 -0
  134. package/packages/ui/dist/components/auth/LuthAuthPage.d.ts +42 -0
  135. package/packages/ui/dist/components/auth/LuthAuthPage.lifecycle.test.d.ts +1 -0
  136. package/packages/ui/dist/components/auth/LuthAuthPage.test.d.ts +1 -0
  137. package/packages/ui/dist/components/auth/LuthProtectedRoute.d.ts +10 -0
  138. package/packages/ui/dist/components/auth/authContract.test.d.ts +1 -0
  139. package/packages/ui/dist/components/auth/index.d.ts +9 -166
  140. package/packages/ui/dist/components/auth/luthAuthTypes.d.ts +2 -0
  141. package/packages/ui/dist/components/auth/publicExports.test.d.ts +1 -0
  142. package/packages/ui/dist/components/base/BaseBadge.d.ts +6 -0
  143. package/packages/ui/dist/components/base/BaseButton.d.ts +9 -0
  144. package/packages/ui/dist/components/base/BaseCard.d.ts +8 -0
  145. package/packages/ui/dist/components/base/BaseInput.d.ts +7 -0
  146. package/packages/ui/dist/components/base/BaseSelect.d.ts +10 -0
  147. package/packages/ui/dist/components/base/BaseTextarea.d.ts +6 -0
  148. package/packages/ui/dist/components/base/BaseToggle.d.ts +6 -0
  149. package/packages/ui/dist/components/base/BaseTooltip.d.ts +12 -0
  150. package/packages/ui/dist/components/base/CredentialField.d.ts +15 -0
  151. package/packages/ui/dist/components/base/index.d.ts +9 -74
  152. package/packages/ui/dist/components/bottom-strip/ApiCallIndicator.d.ts +5 -0
  153. package/packages/ui/dist/components/bottom-strip/AutoSaveToggle.d.ts +5 -0
  154. package/packages/ui/dist/components/bottom-strip/BottomStrip.d.ts +9 -0
  155. package/packages/ui/dist/components/bottom-strip/BottomStripContext.d.ts +41 -0
  156. package/packages/ui/dist/components/bottom-strip/StatusLight.d.ts +7 -0
  157. package/packages/ui/dist/components/bottom-strip/SystemMessageDisplay.d.ts +5 -0
  158. package/packages/ui/dist/components/bottom-strip/index.d.ts +6 -67
  159. package/packages/ui/dist/components/composite/ConfirmDialog.d.ts +10 -0
  160. package/packages/ui/dist/components/composite/CopyableErrorAlert.d.ts +9 -0
  161. package/packages/ui/dist/components/composite/CopyableLogViewer.d.ts +16 -0
  162. package/packages/ui/dist/components/composite/EmptyState.d.ts +9 -0
  163. package/packages/ui/dist/components/composite/IconOnlyButton.d.ts +13 -0
  164. package/packages/ui/dist/components/composite/LoadingOverlay.d.ts +3 -0
  165. package/packages/ui/dist/components/composite/SearchInput.d.ts +3 -0
  166. package/packages/ui/dist/components/composite/SearchableList.d.ts +16 -0
  167. package/packages/ui/dist/components/composite/StatusIndicator.d.ts +7 -0
  168. package/packages/ui/dist/components/composite/index.d.ts +10 -104
  169. package/packages/ui/dist/components/composite/useSearchKeyboardNavigation.d.ts +21 -0
  170. package/packages/ui/dist/components/containers/DrawerContainer.d.ts +8 -0
  171. package/packages/ui/dist/components/containers/FloatingDetailsPanel.d.ts +19 -0
  172. package/packages/ui/dist/components/containers/ModalContainer.d.ts +7 -0
  173. package/packages/ui/dist/components/containers/PageContainer.d.ts +9 -0
  174. package/packages/ui/dist/components/containers/PanelContainer.d.ts +3 -0
  175. package/packages/ui/dist/components/containers/ResizeHandles.d.ts +6 -0
  176. package/packages/ui/dist/components/containers/SectionContainer.d.ts +7 -0
  177. package/packages/ui/dist/components/containers/SidebarContainer.d.ts +7 -0
  178. package/packages/ui/dist/components/containers/SplitContainer.d.ts +6 -0
  179. package/packages/ui/dist/components/containers/TabContainer.d.ts +10 -0
  180. package/packages/ui/dist/components/containers/index.d.ts +12 -93
  181. package/packages/ui/dist/components/containers/usePanelGeometry.d.ts +11 -0
  182. package/packages/ui/dist/components/containers/usePanelInteraction.d.ts +8 -0
  183. package/packages/ui/dist/components/graph/GraphsMenu.d.ts +19 -0
  184. package/packages/ui/dist/components/graph/index.d.ts +1 -29
  185. package/packages/ui/dist/components/layout/AppShell.d.ts +16 -0
  186. package/packages/ui/dist/components/layout/BreadcrumbNav.d.ts +9 -0
  187. package/packages/ui/dist/components/layout/HeaderBar.d.ts +8 -0
  188. package/packages/ui/dist/components/layout/TopToolbar.d.ts +21 -0
  189. package/packages/ui/dist/components/layout/index.d.ts +4 -53
  190. package/packages/ui/dist/components/layout/index.js +2 -2
  191. package/packages/ui/dist/components/services/ClockServicePanel.d.ts +26 -0
  192. package/packages/ui/dist/components/services/MidiServicePanel.d.ts +31 -0
  193. package/packages/ui/dist/components/services/OscServicePanel.d.ts +22 -0
  194. package/packages/ui/dist/components/settings/AccountsSettingsSection.d.ts +6 -0
  195. package/packages/ui/dist/components/settings/SettingsTab.d.ts +9 -0
  196. package/packages/ui/dist/components/settings/ThemeSettingsSection.d.ts +2 -0
  197. package/packages/ui/dist/components/settings/index.d.ts +3 -20
  198. package/packages/ui/dist/components/tiles/TilesMenu.d.ts +80 -0
  199. package/packages/ui/dist/components/tiles/index.d.ts +1 -83
  200. package/packages/ui/dist/components/timeline/MidiTimeline.d.ts +23 -0
  201. package/packages/ui/dist/components/timeline/MusicalTimeline.d.ts +15 -0
  202. package/packages/ui/dist/components/timeline/index.d.ts +2 -0
  203. package/packages/ui/dist/components/timeline/index.js +14 -0
  204. package/packages/ui/dist/components/timeline/timeline.test.d.ts +1 -0
  205. package/packages/ui/dist/components/workspace/SrklBackblazeTile.d.ts +27 -0
  206. package/packages/ui/dist/components/workspace/StorageOptionTiles.d.ts +27 -0
  207. package/packages/ui/dist/components/workspace/StoragePresetTile.d.ts +8 -0
  208. package/packages/ui/dist/components/workspace/WorkspaceCreateDialog.contract.test.d.ts +1 -0
  209. package/packages/ui/dist/components/workspace/WorkspaceCreateDialog.d.ts +96 -0
  210. package/packages/ui/dist/components/workspace/WorkspaceGate.d.ts +31 -0
  211. package/packages/ui/dist/components/workspace/WorkspaceSecondaryClonesPanel.d.ts +17 -0
  212. package/packages/ui/dist/components/workspace/WorkspaceStorageReadonlyPanel.d.ts +6 -0
  213. package/packages/ui/dist/components/workspace/WorkspaceTilesMenu.d.ts +96 -0
  214. package/packages/ui/dist/components/workspace/index.d.ts +8 -253
  215. package/packages/ui/dist/components/workspace/index.js +5 -3
  216. package/packages/ui/dist/frnl/frnlBottomBar.d.ts +17 -0
  217. package/packages/ui/dist/frnl/frnlButton.d.ts +160 -0
  218. package/packages/ui/dist/frnl/frnlControls.d.ts +160 -0
  219. package/packages/ui/dist/frnl/frnlForceGraph.d.ts +76 -0
  220. package/packages/ui/dist/frnl/frnlNodeGraph.d.ts +105 -0
  221. package/packages/ui/dist/frnl/frnlPage.d.ts +31 -0
  222. package/packages/ui/dist/frnl/frnlTabWindow.d.ts +18 -0
  223. package/packages/ui/dist/frnl/frnlTextInput.d.ts +139 -0
  224. package/packages/ui/dist/frnl/frnlTextInput.test.d.ts +1 -0
  225. package/packages/ui/dist/frnl/frnlTopBar.d.ts +35 -0
  226. package/packages/ui/dist/frnl/graph-theme.test.d.ts +1 -0
  227. package/packages/ui/dist/frnl/graph.test.d.ts +1 -0
  228. package/packages/ui/dist/frnl/index.d.ts +10 -562
  229. package/packages/ui/dist/frnl/store.d.ts +9 -13
  230. package/packages/ui/dist/frnl/store.test.d.ts +1 -0
  231. package/packages/ui/dist/hierarchy/BadgeParent.d.ts +25 -0
  232. package/packages/ui/dist/hierarchy/ButtonParent.d.ts +37 -0
  233. package/packages/ui/dist/hierarchy/InputParent.d.ts +34 -0
  234. package/packages/ui/dist/hierarchy/PanelParent.d.ts +29 -0
  235. package/packages/ui/dist/hierarchy/TileParent.d.ts +26 -0
  236. package/packages/ui/dist/hierarchy/UIElementBase.d.ts +38 -0
  237. package/packages/ui/dist/hierarchy/UIParent.d.ts +8 -0
  238. package/packages/ui/dist/hierarchy/index.d.ts +7 -197
  239. package/packages/ui/dist/hierarchy/index.js +3 -3
  240. package/packages/ui/dist/index.d.ts +21 -24
  241. package/packages/ui/dist/index.js +64 -50
  242. package/packages/ui/dist/palette/ThemeContext.d.ts +21 -0
  243. package/packages/ui/dist/palette/domThemeInjector.d.ts +4 -0
  244. package/packages/ui/dist/palette/index.d.ts +4 -29
  245. package/packages/ui/dist/palette/palettes.d.ts +2 -0
  246. package/packages/ui/dist/palette/palettesBase.d.ts +2 -0
  247. package/packages/ui/dist/palette/palettesExtended.d.ts +2 -0
  248. package/packages/ui/dist/palette/types.d.ts +40 -0
  249. package/packages/ui/dist/serviceUIComponents/index.css +253 -0
  250. package/packages/ui/dist/serviceUIComponents/index.d.ts +4 -0
  251. package/packages/ui/dist/serviceUIComponents/index.js +315 -0
  252. package/packages/ui/dist/theme/SkipoThemeProvider.d.ts +25 -0
  253. package/packages/ui/dist/theme/ThemePackLoader.d.ts +8 -0
  254. package/packages/ui/dist/theme/appSocket.d.ts +22 -0
  255. package/packages/ui/dist/theme/canonicalElements.d.ts +4 -0
  256. package/packages/ui/dist/theme/canonicalElementsBase.d.ts +2 -0
  257. package/packages/ui/dist/theme/canonicalElementsDomain.d.ts +2 -0
  258. package/packages/ui/dist/theme/companionPacks.d.ts +3 -0
  259. package/packages/ui/dist/theme/defaultPacks.d.ts +3 -0
  260. package/packages/ui/dist/theme/docustackPacks.d.ts +2 -0
  261. package/packages/ui/dist/theme/elements.d.ts +17 -0
  262. package/packages/ui/dist/theme/engine.d.ts +35 -0
  263. package/packages/ui/dist/theme/index.d.ts +12 -12063
  264. package/packages/ui/dist/theme/modularPacks.d.ts +1 -0
  265. package/packages/ui/dist/theme/packs/docustack-cyberpunk-neon/elements.d.ts +3 -0
  266. package/packages/ui/dist/theme/packs/docustack-cyberpunk-neon/index.d.ts +8 -0
  267. package/packages/ui/dist/theme/packs/docustack-cyberpunk-neon/tokens.d.ts +3 -0
  268. package/packages/ui/dist/theme/packs/docustack-cyberpunk-neon/typography.d.ts +3 -0
  269. package/packages/ui/dist/theme/packs/docustack-dark-gold/elements.d.ts +3 -0
  270. package/packages/ui/dist/theme/packs/docustack-dark-gold/index.d.ts +8 -0
  271. package/packages/ui/dist/theme/packs/docustack-dark-gold/tokens.d.ts +3 -0
  272. package/packages/ui/dist/theme/packs/docustack-dark-gold/typography.d.ts +3 -0
  273. package/packages/ui/dist/theme/packs/docustack-warm-coffee/elements.d.ts +3 -0
  274. package/packages/ui/dist/theme/packs/docustack-warm-coffee/index.d.ts +8 -0
  275. package/packages/ui/dist/theme/packs/docustack-warm-coffee/tokens.d.ts +3 -0
  276. package/packages/ui/dist/theme/packs/docustack-warm-coffee/typography.d.ts +3 -0
  277. package/packages/ui/dist/theme/packs/index.d.ts +3 -0
  278. package/packages/ui/dist/theme/schema/cascade.d.ts +12 -0
  279. package/packages/ui/dist/theme/schema/index.d.ts +4 -0
  280. package/packages/ui/dist/theme/schema/themePack.schema.d.ts +10160 -0
  281. package/packages/ui/dist/{palettes-De5u5iID.d.ts → theme/schema/tokens.schema.d.ts} +2 -133
  282. package/packages/ui/dist/theme/schema/typography.schema.d.ts +1765 -0
  283. package/packages/ui/dist/theme/socket.d.ts +6 -0
  284. package/packages/ui/dist/theme/status.d.ts +3 -0
  285. package/packages/ui/dist/theme/tokenMapper.d.ts +1 -0
  286. package/packages/ui/dist/theme/types.d.ts +88 -0
  287. package/packages/ui/package.json +15 -4
  288. package/packages/ui/src/styles/services.css +11 -0
  289. package/packages/ui/dist/BottomStrip-DYhAUQR4.d.ts +0 -12
  290. package/packages/ui/dist/{chunk-Q324BMDJ.js → chunk-ECVX6KZM.js} +3 -3
  291. package/packages/ui/dist/{chunk-MYXPGPI3.js → chunk-GWW3BGOB.js} +3 -3
@@ -440,41 +440,164 @@ var WorkspaceSecondaryClonesPanel = ({ workspace, onClonesUpdated, onClose }) =>
440
440
  };
441
441
 
442
442
  // src/components/workspace/WorkspaceCreateDialog.tsx
443
- import { useEffect as useEffect3, useState as useState5 } from "react";
444
- import { Cloud as Cloud5, HardDrive as HardDrive5, Loader2 } from "lucide-react";
443
+ import { useEffect as useEffect3, useMemo, useState as useState5 } from "react";
444
+ import { HardDrive as HardDrive5, Loader2 } from "lucide-react";
445
445
  import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
446
- var WORKSPACE_CREATE_DIALOG_REQUIRED_SERVICES = ["workspace", "storage", "srkl"];
447
- var defaultWorkspaceStorageService = {
448
- listBackblazeAccounts: async (userId) => {
449
- try {
450
- const uId = encodeURIComponent(userId);
451
- const res = await fetch(`/api/srkl/accounts?service=backblaze&userId=${uId}`);
452
- const data = await res.json().catch(() => ({}));
453
- return Array.isArray(data?.accounts) ? data.accounts : [];
454
- } catch {
455
- return [];
456
- }
457
- },
458
- listBackblazeBuckets: async (accountId, userId) => {
446
+ var LOCAL_STORAGE_OPTION = {
447
+ id: "local_fs",
448
+ provider: "local_fs",
449
+ label: "Local Folder"
450
+ };
451
+ var PROVIDER_LABELS = {
452
+ local_fs: "Local Folder",
453
+ backblaze_b2: "Backblaze B2",
454
+ google_drive: "Google Drive",
455
+ cloudflare_r2: "Cloudflare R2",
456
+ aws_s3: "Amazon S3",
457
+ supabase_storage: "Supabase Storage"
458
+ };
459
+ function providerLabel(option) {
460
+ return PROVIDER_LABELS[option.provider] || option.provider.replace(/[_-]+/g, " ");
461
+ }
462
+ function slug(value) {
463
+ return value.toLowerCase().trim().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "") || "workspace";
464
+ }
465
+ function formatWorkspaceFolderPreview(appName, userName, workspaceName) {
466
+ return "ultrst_" + slug(appName) + "_" + slug(userName) + "_" + slug(workspaceName);
467
+ }
468
+ function buildWorkspaceCreateInput(name, description, option) {
469
+ const provider = option.provider || "local_fs";
470
+ const connectionId = option.id && option.id !== "local_fs" ? option.id : void 0;
471
+ const localFolderName = provider === "local_fs" ? option.localFolderName || name.trim() : void 0;
472
+ const b2BucketName = option.b2BucketName || option.bucketName;
473
+ const b2Endpoint = option.b2Endpoint || option.endpoint;
474
+ const b2Region = option.b2Region || option.region;
475
+ const storage = {
476
+ provider,
477
+ connectionId,
478
+ localFolderName,
479
+ localFolderKey: provider === "local_fs" ? option.localFolderKey : void 0,
480
+ b2BucketName,
481
+ b2Endpoint,
482
+ b2Region,
483
+ googleEmail: option.googleEmail,
484
+ googleRootFolderId: option.googleRootFolderId,
485
+ googleRootFolderName: option.googleRootFolderName
486
+ };
487
+ return {
488
+ name: name.trim(),
489
+ description: description.trim() || void 0,
490
+ storage,
491
+ storageProvider: provider,
492
+ storageConnectionId: connectionId,
493
+ localFolderName,
494
+ localFolderKey: storage.localFolderKey,
495
+ b2BucketName,
496
+ b2Endpoint,
497
+ b2Region,
498
+ googleEmail: option.googleEmail,
499
+ googleRootFolderId: option.googleRootFolderId,
500
+ googleRootFolderName: option.googleRootFolderName,
501
+ storageConnection: connectionId ? option : void 0
502
+ };
503
+ }
504
+ async function fetchStorageConnections(userId) {
505
+ const headers = new Headers({ "Content-Type": "application/json", "X-User-Id": userId });
506
+ for (const endpoint of ["/api/auth/storage/connections", "/api/storage/connections"]) {
459
507
  try {
460
- const res = await fetch("/api/srkl/backblaze/buckets", {
461
- method: "POST",
462
- headers: { "Content-Type": "application/json" },
463
- body: JSON.stringify({ accountId, userId })
464
- });
465
- const data = await res.json().catch(() => ({}));
466
- return Array.isArray(data?.buckets) ? data.buckets : [];
508
+ const response = await fetch(endpoint, { headers, credentials: "include" });
509
+ if (!response.ok) continue;
510
+ const data = await response.json();
511
+ const connections = Array.isArray(data?.connections) ? data.connections : Array.isArray(data?.storage_connections) ? data.storage_connections : [];
512
+ if (connections.length > 0) {
513
+ return connections.filter((item) => item && typeof item.id === "string" && typeof item.provider === "string");
514
+ }
467
515
  } catch {
468
- return [];
469
516
  }
470
517
  }
518
+ return [];
519
+ }
520
+ async function fetchBackblazeAccounts(userId) {
521
+ try {
522
+ const response = await fetch("/api/srkl/accounts?service=backblaze&userId=" + encodeURIComponent(userId));
523
+ const data = await response.json().catch(() => ({}));
524
+ return Array.isArray(data?.accounts) ? data.accounts : [];
525
+ } catch {
526
+ return [];
527
+ }
528
+ }
529
+ async function fetchBackblazeBuckets(accountId, userId) {
530
+ try {
531
+ const response = await fetch("/api/srkl/backblaze/buckets", {
532
+ method: "POST",
533
+ headers: { "Content-Type": "application/json" },
534
+ body: JSON.stringify({ accountId, userId })
535
+ });
536
+ const data = await response.json().catch(() => ({}));
537
+ return Array.isArray(data?.buckets) ? data.buckets : [];
538
+ } catch {
539
+ return [];
540
+ }
541
+ }
542
+ async function fetchDefaultStorageOptions(userId) {
543
+ const stored = await fetchStorageConnections(userId);
544
+ if (stored.length > 0) return stored;
545
+ const [backblaze, googleDrive] = await Promise.all([
546
+ fetchBackblazeAccounts(userId),
547
+ fetch("/api/srkl/accounts?service=google_drive&userId=" + encodeURIComponent(userId)).then((response) => response.ok ? response.json() : {}).then((data) => Array.isArray(data?.accounts) ? data.accounts : []).catch(() => [])
548
+ ]);
549
+ return [...backblaze, ...googleDrive].map((account) => {
550
+ const credentials = account.credentials || {};
551
+ const value = (key, alternate) => {
552
+ const item = credentials[key] ?? (alternate ? credentials[alternate] : void 0);
553
+ return typeof item === "string" && item.length > 0 ? item : void 0;
554
+ };
555
+ return {
556
+ id: String(account.id),
557
+ provider: String(account.provider || account.serviceId || "backblaze_b2"),
558
+ label: String(account.label || account.name || account.id),
559
+ b2BucketName: value("bucketName", "b2BucketName"),
560
+ b2Endpoint: value("endpoint", "b2Endpoint"),
561
+ b2Region: value("region", "b2Region"),
562
+ googleEmail: value("email", "googleEmail"),
563
+ googleRootFolderId: value("rootFolderId", "googleRootFolderId"),
564
+ googleRootFolderName: value("rootFolderName", "googleRootFolderName")
565
+ };
566
+ });
567
+ }
568
+ var defaultWorkspaceStorageService = {
569
+ listStorageConnections: fetchDefaultStorageOptions,
570
+ listBackblazeAccounts: fetchBackblazeAccounts,
571
+ listBackblazeBuckets: fetchBackblazeBuckets
471
572
  };
472
573
  function createKloksWorkspaceStorageService(invoker) {
574
+ const listSrklAccounts = async (userId, service) => {
575
+ const result = await invoker.invoke("srkl", "getAccounts", { userId, service });
576
+ return Array.isArray(result?.accounts) ? result.accounts : [];
577
+ };
473
578
  return {
474
- listBackblazeAccounts: async (userId) => {
475
- const result = await invoker.invoke("srkl", "getAccounts", { userId, service: "backblaze" });
476
- return Array.isArray(result?.accounts) ? result.accounts : [];
579
+ listStorageConnections: async (userId) => {
580
+ const accounts = await listSrklAccounts(userId);
581
+ return accounts.map((account) => {
582
+ const credentials = account.credentials || {};
583
+ const value = (key, alternate) => {
584
+ const item = credentials[key] ?? (alternate ? credentials[alternate] : void 0);
585
+ return typeof item === "string" && item.length > 0 ? item : void 0;
586
+ };
587
+ return {
588
+ id: String(account.id),
589
+ provider: String(account.provider || account.serviceId || "backblaze_b2"),
590
+ label: String(account.name || account.label || account.id),
591
+ b2BucketName: value("bucketName", "b2BucketName"),
592
+ b2Endpoint: value("endpoint", "b2Endpoint"),
593
+ b2Region: value("region", "b2Region"),
594
+ googleEmail: value("email", "googleEmail"),
595
+ googleRootFolderId: value("rootFolderId", "googleRootFolderId"),
596
+ googleRootFolderName: value("rootFolderName", "googleRootFolderName")
597
+ };
598
+ });
477
599
  },
600
+ listBackblazeAccounts: (userId) => listSrklAccounts(userId, "backblaze"),
478
601
  listBackblazeBuckets: async (accountId, userId) => {
479
602
  const result = await invoker.invoke("srkl", "listBackblazeBuckets", { accountId, userId });
480
603
  return Array.isArray(result?.buckets) ? result.buckets : [];
@@ -485,117 +608,329 @@ function WorkspaceCreateDialog({
485
608
  open,
486
609
  userId = "system",
487
610
  currentUser,
611
+ appName = "app",
612
+ storageOptions,
488
613
  storageService = defaultWorkspaceStorageService,
614
+ onManageStorage,
489
615
  onClose,
490
616
  onSubmit
491
617
  }) {
618
+ const [loadedOptions, setLoadedOptions] = useState5([]);
492
619
  const [name, setName] = useState5("");
493
620
  const [description, setDescription] = useState5("");
494
- const [provider, setProvider] = useState5("local_fs");
495
- const [accounts, setAccounts] = useState5([]);
496
- const [buckets, setBuckets] = useState5([]);
497
- const [accountId, setAccountId] = useState5("");
498
- const [bucketName, setBucketName] = useState5("");
499
- const [loading, setLoading] = useState5(false);
500
- const [loadingBuckets, setLoadingBuckets] = useState5(false);
621
+ const [localFolderName, setLocalFolderName] = useState5("");
622
+ const [selectedStorageId, setSelectedStorageId] = useState5("local_fs");
623
+ const [defaultStorageApplied, setDefaultStorageApplied] = useState5(false);
624
+ const [backblazeMode, setBackblazeMode] = useState5(false);
625
+ const [backblazeAccounts, setBackblazeAccounts] = useState5([]);
626
+ const [backblazeAccountId, setBackblazeAccountId] = useState5("");
627
+ const [backblazeBuckets, setBackblazeBuckets] = useState5([]);
628
+ const [backblazeBucketName, setBackblazeBucketName] = useState5("");
629
+ const [loadingBackblazeAccounts, setLoadingBackblazeAccounts] = useState5(false);
630
+ const [loadingBackblazeBuckets, setLoadingBackblazeBuckets] = useState5(false);
631
+ const [loadingStorage, setLoadingStorage] = useState5(false);
632
+ const [submitting, setSubmitting] = useState5(false);
501
633
  const [error, setError] = useState5(null);
502
634
  const effectiveUserId = userId || currentUser?.id || "system";
503
635
  useEffect3(() => {
504
- if (!open || !effectiveUserId) return;
636
+ if (!open) return;
637
+ setName("");
638
+ setDescription("");
639
+ setLocalFolderName("");
505
640
  setError(null);
506
- storageService.listBackblazeAccounts(effectiveUserId).then(setAccounts).catch((e) => setError(e instanceof Error ? e.message : "Failed to load SRKL accounts."));
507
- }, [open, effectiveUserId, storageService]);
641
+ setSelectedStorageId("local_fs");
642
+ setDefaultStorageApplied(false);
643
+ setBackblazeMode(false);
644
+ setBackblazeAccounts([]);
645
+ setBackblazeAccountId("");
646
+ setBackblazeBuckets([]);
647
+ setBackblazeBucketName("");
648
+ }, [open]);
649
+ useEffect3(() => {
650
+ if (!open || storageOptions) return;
651
+ let active = true;
652
+ const listConnections = storageService.listStorageConnections;
653
+ if (!listConnections) {
654
+ setLoadingStorage(false);
655
+ return () => {
656
+ active = false;
657
+ };
658
+ }
659
+ setLoadingStorage(true);
660
+ listConnections(effectiveUserId).then((options) => {
661
+ if (active) setLoadedOptions(Array.isArray(options) ? options : []);
662
+ }).catch((reason) => {
663
+ if (active) setError(reason instanceof Error ? reason.message : "Unable to load storage connections.");
664
+ }).finally(() => {
665
+ if (active) setLoadingStorage(false);
666
+ });
667
+ return () => {
668
+ active = false;
669
+ };
670
+ }, [open, effectiveUserId, storageOptions, storageService]);
671
+ const availableOptions = useMemo(() => {
672
+ const supplied = storageOptions ?? loadedOptions;
673
+ const enabled = supplied.filter((option) => option && option.enabled !== false && typeof option.id === "string");
674
+ const local = enabled.find((option) => option.provider === "local_fs") || LOCAL_STORAGE_OPTION;
675
+ const external = enabled.filter((option) => option.provider !== "local_fs");
676
+ return [local, ...external];
677
+ }, [storageOptions, loadedOptions]);
678
+ useEffect3(() => {
679
+ if (!open || loadingStorage || defaultStorageApplied) return;
680
+ const primary = availableOptions.find((option) => option.role === "primary") || availableOptions.find((option) => option.provider !== "local_fs");
681
+ if (primary) setSelectedStorageId(primary.id);
682
+ setDefaultStorageApplied(true);
683
+ }, [open, loadingStorage, availableOptions, defaultStorageApplied]);
508
684
  useEffect3(() => {
509
- if (provider !== "backblaze_b2" || !accountId) return;
510
- setLoadingBuckets(true);
511
- storageService.listBackblazeBuckets(accountId, effectiveUserId).then((items) => {
512
- setBuckets(items);
513
- setBucketName("");
514
- }).catch((e) => setError(e instanceof Error ? e.message : "Failed to load Backblaze buckets.")).finally(() => setLoadingBuckets(false));
515
- }, [provider, accountId, effectiveUserId, storageService]);
685
+ if (!open) return;
686
+ const selectedStillExists = backblazeMode || availableOptions.some((option) => option.id === selectedStorageId);
687
+ if (!selectedStillExists) {
688
+ const primary = availableOptions.find((option) => option.role === "primary");
689
+ setSelectedStorageId(primary?.id || "local_fs");
690
+ }
691
+ }, [open, availableOptions, selectedStorageId, backblazeMode]);
516
692
  if (!open) return null;
517
- const submit = async (e) => {
518
- e.preventDefault();
519
- if (!name.trim()) return setError("Workspace name is required.");
520
- if (provider === "backblaze_b2" && (!accountId || !bucketName)) return setError("Select an SRKL Backblaze account and bucket.");
521
- setLoading(true);
693
+ const selectedOption = availableOptions.find((option) => option.id === selectedStorageId) || LOCAL_STORAGE_OPTION;
694
+ const userName = currentUser?.username || currentUser?.name || currentUser?.email?.split("@")[0] || "user";
695
+ const folderPreview = formatWorkspaceFolderPreview(appName, userName, name || "workspace");
696
+ const handleSelectBackblaze = async () => {
697
+ setBackblazeMode(true);
698
+ setSelectedStorageId("backblaze_srkl");
699
+ setBackblazeAccountId("");
700
+ setBackblazeBuckets([]);
701
+ setBackblazeBucketName("");
702
+ setError(null);
703
+ if (!storageService.listBackblazeAccounts) {
704
+ setBackblazeAccounts([]);
705
+ return;
706
+ }
707
+ setLoadingBackblazeAccounts(true);
522
708
  try {
523
- const account = accounts.find((a) => a.id === accountId);
524
- const storageObj = {
525
- provider,
526
- connectionId: accountId || void 0,
527
- b2BucketName: provider === "backblaze_b2" ? bucketName : void 0,
528
- b2Endpoint: account?.credentials?.endpoint,
529
- b2Region: account?.credentials?.region,
530
- localFolderName: provider === "local_fs" ? name.trim() : void 0
531
- };
532
- await onSubmit({
533
- name: name.trim(),
534
- description: description.trim() || void 0,
535
- storage: storageObj,
536
- storageProvider: provider,
537
- storageConnectionId: accountId || void 0,
538
- localFolderName: provider === "local_fs" ? name.trim() : void 0,
539
- b2BucketName: provider === "backblaze_b2" ? bucketName : void 0,
540
- b2Endpoint: account?.credentials?.endpoint,
541
- b2Region: account?.credentials?.region
542
- });
543
- setName("");
544
- setDescription("");
545
- setProvider("local_fs");
546
- setAccountId("");
547
- setBucketName("");
709
+ const accounts = await storageService.listBackblazeAccounts(effectiveUserId);
710
+ setBackblazeAccounts(Array.isArray(accounts) ? accounts : []);
711
+ } catch (reason) {
712
+ setError(reason instanceof Error ? reason.message : "Failed to load SRKL Backblaze accounts.");
713
+ } finally {
714
+ setLoadingBackblazeAccounts(false);
715
+ }
716
+ };
717
+ const handleBackblazeAccountChange = async (accountId) => {
718
+ setBackblazeAccountId(accountId);
719
+ setBackblazeBuckets([]);
720
+ setBackblazeBucketName("");
721
+ if (!accountId || !storageService.listBackblazeBuckets) return;
722
+ setLoadingBackblazeBuckets(true);
723
+ try {
724
+ const buckets = await storageService.listBackblazeBuckets(accountId, effectiveUserId);
725
+ setBackblazeBuckets(Array.isArray(buckets) ? buckets : []);
726
+ } catch (reason) {
727
+ setError(reason instanceof Error ? reason.message : "Failed to load Backblaze buckets.");
728
+ } finally {
729
+ setLoadingBackblazeBuckets(false);
730
+ }
731
+ };
732
+ const submit = async (event) => {
733
+ event.preventDefault();
734
+ if (!name.trim()) {
735
+ setError("Workspace name is required.");
736
+ return;
737
+ }
738
+ if (backblazeMode && (!backblazeAccountId || !backblazeBucketName)) {
739
+ setError("Select an SRKL Backblaze account and bucket.");
740
+ return;
741
+ }
742
+ if (loadingStorage || loadingBackblazeAccounts || loadingBackblazeBuckets || submitting) return;
743
+ setSubmitting(true);
744
+ setError(null);
745
+ try {
746
+ const backblazeAccount = backblazeAccounts.find((account) => account.id === backblazeAccountId);
747
+ const option = backblazeMode ? {
748
+ id: backblazeAccountId,
749
+ provider: "backblaze_b2",
750
+ label: backblazeAccount?.name || "SRKL Backblaze B2",
751
+ b2BucketName: backblazeBucketName,
752
+ bucketName: backblazeBucketName,
753
+ b2Endpoint: backblazeAccount?.credentials?.endpoint,
754
+ endpoint: backblazeAccount?.credentials?.endpoint,
755
+ b2Region: backblazeAccount?.credentials?.region,
756
+ region: backblazeAccount?.credentials?.region
757
+ } : selectedOption.provider === "local_fs" ? { ...selectedOption, localFolderName: localFolderName.trim() || selectedOption.localFolderName || name.trim() } : selectedOption;
758
+ await onSubmit(buildWorkspaceCreateInput(name, description, option));
548
759
  onClose();
549
- } catch (e2) {
550
- setError(e2 instanceof Error ? e2.message : "Workspace creation failed.");
760
+ } catch (reason) {
761
+ setError(reason instanceof Error ? reason.message : "Workspace creation failed.");
551
762
  } finally {
552
- setLoading(false);
763
+ setSubmitting(false);
553
764
  }
554
765
  };
555
- return /* @__PURE__ */ jsx6("div", { className: "fixed inset-0 z-[70] bg-black/75 backdrop-blur-sm flex items-center justify-center p-4", children: /* @__PURE__ */ jsxs6("form", { onSubmit: submit, className: "w-full max-w-xl bg-[var(--skipo-surface)] border-2 border-[var(--skipo-border-color)] shadow-[7px_7px_0px_var(--skipo-border-color)] p-5 font-mono", children: [
556
- /* @__PURE__ */ jsx6("h2", { className: "text-sm font-black uppercase", children: "Create Workspace" }),
557
- /* @__PURE__ */ jsx6("p", { className: "mt-1 text-[10px] text-[var(--skipo-text-muted)]", children: "Storage is selected from the authenticated user's SRKL-backed accounts." }),
558
- error && /* @__PURE__ */ jsx6("div", { className: "mt-3 border border-red-500 p-2 text-xs text-red-300", children: error }),
559
- /* @__PURE__ */ jsxs6("div", { className: "mt-4 space-y-3", children: [
560
- /* @__PURE__ */ jsx6("input", { "aria-label": "Workspace name", value: name, onChange: (e) => setName(e.target.value), placeholder: "Workspace name", className: "w-full h-9 bg-[var(--skipo-bg)] border border-[var(--skipo-border-color)] px-3 text-xs" }),
561
- /* @__PURE__ */ jsx6("textarea", { "aria-label": "Workspace description", value: description, onChange: (e) => setDescription(e.target.value), placeholder: "Description", rows: 3, className: "w-full bg-[var(--skipo-bg)] border border-[var(--skipo-border-color)] p-3 text-xs" }),
562
- /* @__PURE__ */ jsxs6("div", { className: "grid grid-cols-2 gap-2", children: [
563
- /* @__PURE__ */ jsxs6("button", { type: "button", onClick: () => setProvider("local_fs"), className: `p-3 border text-left text-xs ${provider === "local_fs" ? "border-[var(--skipo-accent)]" : "border-[var(--skipo-border-color)]"}`, children: [
564
- /* @__PURE__ */ jsx6(HardDrive5, { size: 15 }),
565
- " LOCAL FILESYSTEM"
766
+ const surface = "var(--skipo-surface, var(--color-surface, #1e1e24))";
767
+ const background = "var(--skipo-bg, var(--color-bg, #121116))";
768
+ const border = "var(--skipo-border-color, var(--color-border, #383838))";
769
+ const accent = "var(--skipo-accent, var(--color-accent, #d4af37))";
770
+ const muted = "var(--skipo-text-muted, var(--color-text-muted, #999))";
771
+ return /* @__PURE__ */ jsx6("div", { className: "fixed inset-0 z-[70] flex items-center justify-center bg-black/75 p-4 backdrop-blur-sm", role: "presentation", children: /* @__PURE__ */ jsxs6(
772
+ "form",
773
+ {
774
+ onSubmit: submit,
775
+ "aria-label": "Create workspace",
776
+ className: "w-full max-w-xl max-h-[90vh] overflow-y-auto border-2 p-5 font-mono shadow-[7px_7px_0px_var(--skipo-border-color,var(--color-border,#383838))]",
777
+ style: { backgroundColor: surface, borderColor: border },
778
+ children: [
779
+ /* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between gap-3 border-b pb-3", style: { borderColor: border }, children: [
780
+ /* @__PURE__ */ jsxs6("div", { children: [
781
+ /* @__PURE__ */ jsx6("h2", { className: "text-sm font-black uppercase", children: "Create Workspace" }),
782
+ /* @__PURE__ */ jsx6("p", { className: "mt-1 text-[10px]", style: { color: muted }, children: "Create an isolated workspace and select its persistent storage." })
783
+ ] }),
784
+ /* @__PURE__ */ jsx6(HardDrive5, { size: 18, style: { color: accent } })
566
785
  ] }),
567
- /* @__PURE__ */ jsxs6("button", { type: "button", onClick: () => setProvider("backblaze_b2"), className: `p-3 border text-left text-xs ${provider === "backblaze_b2" ? "border-[var(--skipo-accent)]" : "border-[var(--skipo-border-color)]"}`, children: [
568
- /* @__PURE__ */ jsx6(Cloud5, { size: 15 }),
569
- " BACKBLAZE B2 / SRKL"
570
- ] })
571
- ] }),
572
- provider === "backblaze_b2" && /* @__PURE__ */ jsxs6("div", { className: "space-y-2 border-t border-[var(--skipo-border-color)] pt-3", children: [
573
- /* @__PURE__ */ jsxs6("select", { "aria-label": "Backblaze account", value: accountId, onChange: (e) => setAccountId(e.target.value), className: "w-full h-9 bg-[var(--skipo-bg)] border border-[var(--skipo-border-color)] px-2 text-xs", children: [
574
- /* @__PURE__ */ jsx6("option", { value: "", children: "Select SRKL Backblaze account" }),
575
- accounts.map((a) => /* @__PURE__ */ jsx6("option", { value: a.id, children: a.name }, a.id))
786
+ error && /* @__PURE__ */ jsx6("div", { role: "alert", className: "mt-3 border border-red-500 p-2 text-xs text-red-300", children: error }),
787
+ /* @__PURE__ */ jsxs6("div", { className: "mt-4 space-y-3", children: [
788
+ /* @__PURE__ */ jsxs6("label", { className: "block space-y-1", children: [
789
+ /* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", children: "Workspace Name *" }),
790
+ /* @__PURE__ */ jsx6(
791
+ "input",
792
+ {
793
+ "aria-label": "Workspace name",
794
+ autoFocus: true,
795
+ required: true,
796
+ value: name,
797
+ onChange: (event) => setName(event.target.value),
798
+ placeholder: "e.g. Production Matrix",
799
+ className: "h-9 w-full border px-3 text-xs",
800
+ style: { backgroundColor: background, borderColor: border }
801
+ }
802
+ )
803
+ ] }),
804
+ /* @__PURE__ */ jsxs6("label", { className: "block space-y-1", children: [
805
+ /* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", children: "Description" }),
806
+ /* @__PURE__ */ jsx6(
807
+ "textarea",
808
+ {
809
+ "aria-label": "Workspace description",
810
+ value: description,
811
+ onChange: (event) => setDescription(event.target.value),
812
+ placeholder: "What is this workspace for?",
813
+ rows: 2,
814
+ className: "w-full border p-3 text-xs",
815
+ style: { backgroundColor: background, borderColor: border }
816
+ }
817
+ )
818
+ ] }),
819
+ /* @__PURE__ */ jsxs6("div", { className: "space-y-1", children: [
820
+ /* @__PURE__ */ jsx6("label", { htmlFor: "floks-workspace-storage", className: "block text-[10px] font-black uppercase", children: "Persistent Storage" }),
821
+ /* @__PURE__ */ jsxs6("div", { className: "flex gap-2", children: [
822
+ /* @__PURE__ */ jsx6(
823
+ "select",
824
+ {
825
+ id: "floks-workspace-storage",
826
+ "aria-label": "Workspace storage",
827
+ value: selectedStorageId,
828
+ onChange: (event) => {
829
+ setBackblazeMode(false);
830
+ setSelectedStorageId(event.target.value);
831
+ },
832
+ disabled: loadingStorage || submitting,
833
+ className: "h-10 min-w-0 flex-1 border px-2 text-xs",
834
+ style: { backgroundColor: background, borderColor: border },
835
+ children: availableOptions.map((option) => /* @__PURE__ */ jsx6("option", { value: option.id, children: providerLabel(option) + " \u2014 " + (option.label || option.name || option.id) }, option.id))
836
+ }
837
+ ),
838
+ /* @__PURE__ */ jsx6(
839
+ "button",
840
+ {
841
+ type: "button",
842
+ onClick: handleSelectBackblaze,
843
+ disabled: submitting || loadingBackblazeAccounts,
844
+ "aria-pressed": backblazeMode,
845
+ className: "shrink-0 border px-3 text-[10px] font-black uppercase disabled:opacity-50",
846
+ style: { borderColor: backblazeMode ? accent : border, color: backblazeMode ? accent : void 0 },
847
+ children: "Backblaze B2 / SRKL"
848
+ }
849
+ ),
850
+ onManageStorage && /* @__PURE__ */ jsx6("button", { type: "button", onClick: onManageStorage, className: "shrink-0 border px-3 text-[10px] font-black uppercase", style: { borderColor: border }, children: "Manage" })
851
+ ] }),
852
+ backblazeMode && /* @__PURE__ */ jsxs6("div", { className: "mt-3 space-y-2 border-t pt-3", style: { borderColor: border }, children: [
853
+ /* @__PURE__ */ jsxs6("label", { className: "block space-y-1", children: [
854
+ /* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", children: "Backblaze account" }),
855
+ /* @__PURE__ */ jsxs6(
856
+ "select",
857
+ {
858
+ "aria-label": "Backblaze account",
859
+ value: backblazeAccountId,
860
+ onChange: (event) => handleBackblazeAccountChange(event.target.value),
861
+ disabled: loadingBackblazeAccounts || submitting,
862
+ className: "h-9 w-full border px-2 text-xs",
863
+ style: { backgroundColor: background, borderColor: border },
864
+ children: [
865
+ /* @__PURE__ */ jsx6("option", { value: "", children: "Select SRKL Backblaze account" }),
866
+ backblazeAccounts.map((account) => /* @__PURE__ */ jsx6("option", { value: account.id, children: account.name }, account.id))
867
+ ]
868
+ }
869
+ ),
870
+ loadingBackblazeAccounts && /* @__PURE__ */ jsx6("span", { className: "text-[10px]", style: { color: muted }, children: "Loading SRKL accounts\u2026" })
871
+ ] }),
872
+ /* @__PURE__ */ jsxs6("label", { className: "block space-y-1", children: [
873
+ /* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", children: "Backblaze bucket" }),
874
+ /* @__PURE__ */ jsxs6(
875
+ "select",
876
+ {
877
+ "aria-label": "Backblaze bucket",
878
+ value: backblazeBucketName,
879
+ onChange: (event) => setBackblazeBucketName(event.target.value),
880
+ disabled: !backblazeAccountId || loadingBackblazeBuckets || submitting,
881
+ className: "h-9 w-full border px-2 text-xs",
882
+ style: { backgroundColor: background, borderColor: border },
883
+ children: [
884
+ /* @__PURE__ */ jsx6("option", { value: "", children: "Select bucket" }),
885
+ backblazeBuckets.map((bucket) => {
886
+ const bucketName = bucket.bucketName || bucket.name || "";
887
+ return /* @__PURE__ */ jsx6("option", { value: bucketName, children: bucketName }, bucket.bucketId || bucket.id || bucketName);
888
+ })
889
+ ]
890
+ }
891
+ ),
892
+ loadingBackblazeBuckets && /* @__PURE__ */ jsx6("span", { className: "text-[10px]", style: { color: muted }, children: "Loading buckets\u2026" })
893
+ ] })
894
+ ] }),
895
+ loadingStorage ? /* @__PURE__ */ jsxs6("p", { className: "flex items-center gap-2 text-[10px]", style: { color: muted }, children: [
896
+ /* @__PURE__ */ jsx6(Loader2, { size: 12, className: "animate-spin" }),
897
+ " Loading storage connections\u2026"
898
+ ] }) : availableOptions.length === 1 && availableOptions[0].provider === "local_fs" ? /* @__PURE__ */ jsx6("p", { className: "text-[10px]", style: { color: muted }, children: "No cloud storage connection is available yet. You can create a local workspace or manage storage connections." }) : /* @__PURE__ */ jsx6("p", { className: "text-[10px]", style: { color: muted }, children: "Cloud storage is selected from connections already authorized for this account." })
899
+ ] }),
900
+ selectedOption.provider === "local_fs" && /* @__PURE__ */ jsxs6("label", { className: "block space-y-1", children: [
901
+ /* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", children: "Local Folder Name" }),
902
+ /* @__PURE__ */ jsx6(
903
+ "input",
904
+ {
905
+ "aria-label": "Local folder name",
906
+ value: localFolderName,
907
+ onChange: (event) => setLocalFolderName(event.target.value),
908
+ placeholder: name.trim() || "Workspace folder",
909
+ className: "h-9 w-full border px-3 text-xs",
910
+ style: { backgroundColor: background, borderColor: border }
911
+ }
912
+ )
913
+ ] }),
914
+ /* @__PURE__ */ jsxs6("div", { className: "border p-3", style: { borderColor: border, backgroundColor: background }, children: [
915
+ /* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between gap-2", children: [
916
+ /* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", style: { color: accent }, children: "Canonical Workspace Folder" }),
917
+ /* @__PURE__ */ jsx6("span", { className: "text-[9px] uppercase", style: { color: muted }, children: "Ecosystem Standard" })
918
+ ] }),
919
+ /* @__PURE__ */ jsx6("code", { className: "mt-1 block truncate text-xs font-bold text-emerald-400", children: folderPreview })
920
+ ] })
576
921
  ] }),
577
- loadingBuckets ? /* @__PURE__ */ jsxs6("div", { className: "text-xs flex items-center gap-2", children: [
578
- /* @__PURE__ */ jsx6(Loader2, { size: 13, className: "animate-spin" }),
579
- " Loading buckets..."
580
- ] }) : /* @__PURE__ */ jsxs6("select", { "aria-label": "Backblaze bucket", value: bucketName, onChange: (e) => setBucketName(e.target.value), className: "w-full h-9 bg-[var(--skipo-bg)] border border-[var(--skipo-border-color)] px-2 text-xs", children: [
581
- /* @__PURE__ */ jsx6("option", { value: "", children: "Select bucket" }),
582
- buckets.map((b) => {
583
- const n = b.bucketName ?? b.name ?? "";
584
- return /* @__PURE__ */ jsx6("option", { value: n, children: n }, b.bucketId ?? b.id ?? n);
585
- })
922
+ /* @__PURE__ */ jsxs6("div", { className: "mt-5 flex justify-end gap-2 border-t pt-3", style: { borderColor: border }, children: [
923
+ /* @__PURE__ */ jsx6("button", { type: "button", onClick: onClose, disabled: submitting, className: "h-9 border px-3 text-xs", style: { borderColor: border }, children: "Cancel" }),
924
+ /* @__PURE__ */ jsx6("button", { type: "submit", disabled: submitting || loadingStorage || loadingBackblazeAccounts || loadingBackblazeBuckets || !name.trim(), className: "h-9 px-4 text-xs font-black uppercase text-black disabled:opacity-50", style: { backgroundColor: accent }, children: submitting ? "Creating\u2026" : "Create Workspace" })
586
925
  ] })
587
- ] })
588
- ] }),
589
- /* @__PURE__ */ jsxs6("div", { className: "mt-5 flex justify-end gap-2", children: [
590
- /* @__PURE__ */ jsx6("button", { type: "button", onClick: onClose, className: "h-8 px-3 border border-[var(--skipo-border-color)] text-xs", children: "CANCEL" }),
591
- /* @__PURE__ */ jsx6("button", { type: "submit", disabled: loading, className: "h-8 px-3 bg-[var(--skipo-accent)] text-black text-xs font-black", children: loading ? "CREATING..." : "CREATE WORKSPACE" })
592
- ] })
593
- ] }) });
926
+ ]
927
+ }
928
+ ) });
594
929
  }
595
930
 
596
931
  // src/components/workspace/WorkspaceTilesMenu.tsx
597
- import { useId, useMemo, useState as useState6 } from "react";
598
- import { FolderOpen, HardDrive as HardDrive6, Cloud as Cloud6, LogOut } from "lucide-react";
932
+ import { useId, useMemo as useMemo2, useState as useState6 } from "react";
933
+ import { FolderOpen, HardDrive as HardDrive6, Cloud as Cloud5, LogOut } from "lucide-react";
599
934
  import { defineFrnlComponent } from "@ultrst-armada/frnlts";
600
935
  import { useFrnlComponent } from "@ultrst-armada/frnlts/react";
601
936
  import { Fragment, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
@@ -612,6 +947,8 @@ function WorkspaceTilesMenu({
612
947
  workspaces,
613
948
  userId,
614
949
  currentUser,
950
+ storageOptions,
951
+ onManageStorage,
615
952
  activeWorkspaceId = null,
616
953
  appName = "Workspaces",
617
954
  storageService = defaultWorkspaceStorageService,
@@ -628,7 +965,7 @@ function WorkspaceTilesMenu({
628
965
  const generated = useId().replace(/[:/]/g, "");
629
966
  const componentId = `workspaceTilesMenu.${generated}`;
630
967
  const [creating, setCreating] = useState6(false);
631
- const handlers = useMemo(() => ({
968
+ const handlers = useMemo2(() => ({
632
969
  "workspaceTilesMenu.idle.select": (value) => onSelectWorkspace(value),
633
970
  "workspaceTilesMenu.idle.create": () => setCreating(true),
634
971
  "workspaceTilesMenu.idle.logout": () => onLogout?.()
@@ -660,7 +997,7 @@ function WorkspaceTilesMenu({
660
997
  onCreate: () => frnl.events.create(void 0),
661
998
  renderTile: (ws, selected) => /* @__PURE__ */ jsxs7(Fragment, { children: [
662
999
  /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-2 text-xs font-black uppercase", children: [
663
- ws.storageProvider === "backblaze_b2" ? /* @__PURE__ */ jsx7(Cloud6, { size: 14 }) : /* @__PURE__ */ jsx7(HardDrive6, { size: 14 }),
1000
+ ws.storageProvider === "backblaze_b2" ? /* @__PURE__ */ jsx7(Cloud5, { size: 14 }) : /* @__PURE__ */ jsx7(HardDrive6, { size: 14 }),
664
1001
  ws.title || ws.name || "Workspace"
665
1002
  ] }),
666
1003
  /* @__PURE__ */ jsx7("p", { className: "mt-2 text-[11px] text-[var(--skipo-text-muted)]", children: ws.description }),
@@ -671,12 +1008,12 @@ function WorkspaceTilesMenu({
671
1008
  ] })
672
1009
  }
673
1010
  ),
674
- /* @__PURE__ */ jsx7(WorkspaceCreateDialog, { open: creating, userId: effectiveUserId, currentUser, storageService, onClose: () => setCreating(false), onSubmit: onCreateWorkspace })
1011
+ /* @__PURE__ */ jsx7(WorkspaceCreateDialog, { open: creating, userId: effectiveUserId, currentUser, appName, storageOptions, storageService, onManageStorage, onClose: () => setCreating(false), onSubmit: onCreateWorkspace })
675
1012
  ] });
676
1013
  }
677
1014
 
678
1015
  // src/components/workspace/WorkspaceGate.tsx
679
- import { useMemo as useMemo2 } from "react";
1016
+ import { useMemo as useMemo3 } from "react";
680
1017
  import { LogOut as LogOut2, ArrowLeft } from "lucide-react";
681
1018
  import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
682
1019
  var WorkspaceGate = ({
@@ -697,7 +1034,7 @@ var WorkspaceGate = ({
697
1034
  loading = false,
698
1035
  error = null
699
1036
  }) => {
700
- const normalizedWorkspaces = useMemo2(() => {
1037
+ const normalizedWorkspaces = useMemo3(() => {
701
1038
  return (workspaces || []).map((w) => ({
702
1039
  id: w.id,
703
1040
  title: w.title || w.name || "Workspace",
@@ -781,7 +1118,8 @@ export {
781
1118
  StorageOptionTiles,
782
1119
  WorkspaceStorageReadonlyPanel,
783
1120
  WorkspaceSecondaryClonesPanel,
784
- WORKSPACE_CREATE_DIALOG_REQUIRED_SERVICES,
1121
+ formatWorkspaceFolderPreview,
1122
+ buildWorkspaceCreateInput,
785
1123
  defaultWorkspaceStorageService,
786
1124
  createKloksWorkspaceStorageService,
787
1125
  WorkspaceCreateDialog,