@burdenoff/microfe-sandbox 2026.1101.1 → 2026.1109.1

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 (205) hide show
  1. package/dist/dev/Dashboard.d.ts +1 -2
  2. package/dist/dev/SandboxApp.d.ts +1 -2
  3. package/dist/dev/main.d.ts +0 -2
  4. package/dist/generated/global-operations.d.ts +4 -2
  5. package/dist/generated/global-types.d.ts +2 -22
  6. package/dist/generated/wspace-operations.d.ts +525 -438
  7. package/dist/generated/wspace-operations.js +2 -3
  8. package/dist/generated/wspace-operations.js.map +1 -1
  9. package/dist/generated/wspace-types.d.ts +4 -24
  10. package/dist/generated/wspace-types.js +1 -2
  11. package/dist/generated/wspace-types.js.map +1 -1
  12. package/dist/index.d.ts +0 -1
  13. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  14. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  15. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
  16. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  17. package/dist/sandbox/AdminRoutes.d.ts +1 -2
  18. package/dist/sandbox/AdminRoutes.js +1 -2
  19. package/dist/sandbox/AdminRoutes.js.map +1 -1
  20. package/dist/sandbox/SandboxAdminRoot.d.ts +0 -2
  21. package/dist/sandbox/SandboxAdminRoot.js +13 -10
  22. package/dist/sandbox/SandboxAdminRoot.js.map +1 -1
  23. package/dist/sandbox/SandboxRoot.d.ts +0 -2
  24. package/dist/sandbox/SandboxRoot.js +13 -10
  25. package/dist/sandbox/SandboxRoot.js.map +1 -1
  26. package/dist/sandbox/UserRoutes.d.ts +1 -2
  27. package/dist/sandbox/UserRoutes.js +1 -2
  28. package/dist/sandbox/UserRoutes.js.map +1 -1
  29. package/dist/sandbox/components/ContainerImagePicker.d.ts +1 -2
  30. package/dist/sandbox/components/CountdownTimer.d.ts +1 -2
  31. package/dist/sandbox/components/CountdownTimer.js +1 -2
  32. package/dist/sandbox/components/CountdownTimer.js.map +1 -1
  33. package/dist/sandbox/components/ExportSandboxesDialog.d.ts +1 -2
  34. package/dist/sandbox/components/ExportSandboxesDialog.js +22 -23
  35. package/dist/sandbox/components/ExportSandboxesDialog.js.map +1 -1
  36. package/dist/sandbox/components/ExtendTTLModal.d.ts +1 -2
  37. package/dist/sandbox/components/ExtendTTLModal.js +1 -2
  38. package/dist/sandbox/components/ExtendTTLModal.js.map +1 -1
  39. package/dist/sandbox/components/FilesFolderPicker.d.ts +1 -2
  40. package/dist/sandbox/components/FilesFolderPicker.js +1 -2
  41. package/dist/sandbox/components/FilesFolderPicker.js.map +1 -1
  42. package/dist/sandbox/components/PageLayout.d.ts +2 -4
  43. package/dist/sandbox/components/PageLayout.js +1 -2
  44. package/dist/sandbox/components/PageLayout.js.map +1 -1
  45. package/dist/sandbox/components/ResourceDisplay.d.ts +0 -2
  46. package/dist/sandbox/components/ResourceDisplay.js +1 -2
  47. package/dist/sandbox/components/ResourceDisplay.js.map +1 -1
  48. package/dist/sandbox/components/RouteUtils.d.ts +2 -4
  49. package/dist/sandbox/components/RouteUtils.js +2 -7
  50. package/dist/sandbox/components/RouteUtils.js.map +1 -1
  51. package/dist/sandbox/components/SandboxActivityTab.d.ts +1 -2
  52. package/dist/sandbox/components/SandboxActivityTab.js +4 -3
  53. package/dist/sandbox/components/SandboxActivityTab.js.map +1 -1
  54. package/dist/sandbox/components/SandboxAgentAppPanel.d.ts +1 -2
  55. package/dist/sandbox/components/SandboxAgentAppPanel.js +1 -2
  56. package/dist/sandbox/components/SandboxAgentAppPanel.js.map +1 -1
  57. package/dist/sandbox/components/SandboxScriptRunnerPanel.d.ts +0 -1
  58. package/dist/sandbox/components/SandboxScriptRunnerPanel.js +2 -3
  59. package/dist/sandbox/components/SandboxScriptRunnerPanel.js.map +1 -1
  60. package/dist/sandbox/components/SandboxTypeIcon.d.ts +0 -2
  61. package/dist/sandbox/components/SandboxTypeIcon.js +1 -2
  62. package/dist/sandbox/components/SandboxTypeIcon.js.map +1 -1
  63. package/dist/sandbox/components/SandboxTypeSelector.d.ts +1 -2
  64. package/dist/sandbox/components/SandboxUsageBanner.d.ts +1 -2
  65. package/dist/sandbox/components/SandboxUsageBanner.js +1 -2
  66. package/dist/sandbox/components/SandboxUsageBanner.js.map +1 -1
  67. package/dist/sandbox/components/StatusBadge.d.ts +0 -2
  68. package/dist/sandbox/components/StatusBadge.js +1 -2
  69. package/dist/sandbox/components/StatusBadge.js.map +1 -1
  70. package/dist/sandbox/components/TagsInput.d.ts +1 -2
  71. package/dist/sandbox/components/TagsInput.js +1 -2
  72. package/dist/sandbox/components/TagsInput.js.map +1 -1
  73. package/dist/sandbox/components/ui.d.ts +1 -2
  74. package/dist/sandbox/components/ui.js +1 -2
  75. package/dist/sandbox/hooks/useIsSuperAdmin.d.ts +0 -1
  76. package/dist/sandbox/hooks/useRemainingSeconds.d.ts +0 -1
  77. package/dist/sandbox/hooks/useRemainingSeconds.js +1 -2
  78. package/dist/sandbox/hooks/useRemainingSeconds.js.map +1 -1
  79. package/dist/sandbox/hooks/useTr.d.ts +0 -1
  80. package/dist/sandbox/hooks/useTr.js +1 -2
  81. package/dist/sandbox/hooks/useTr.js.map +1 -1
  82. package/dist/sandbox/index.d.ts +0 -1
  83. package/dist/sandbox/index.js +6 -5
  84. package/dist/sandbox/pages/AdminLandingPage.d.ts +1 -2
  85. package/dist/sandbox/pages/AdminLandingPage.js +7 -8
  86. package/dist/sandbox/pages/AdminLandingPage.js.map +1 -1
  87. package/dist/sandbox/pages/AdminPage.d.ts +1 -2
  88. package/dist/sandbox/pages/AdminPage.js +87 -88
  89. package/dist/sandbox/pages/AdminPage.js.map +1 -1
  90. package/dist/sandbox/pages/AdminTemplatesPage.d.ts +1 -2
  91. package/dist/sandbox/pages/AdminTemplatesPage.js +59 -60
  92. package/dist/sandbox/pages/AdminTemplatesPage.js.map +1 -1
  93. package/dist/sandbox/pages/SandboxCreatePage.d.ts +1 -2
  94. package/dist/sandbox/pages/SandboxCreatePage.js +577 -556
  95. package/dist/sandbox/pages/SandboxCreatePage.js.map +1 -1
  96. package/dist/sandbox/pages/SandboxDetailPage.d.ts +1 -2
  97. package/dist/sandbox/pages/SandboxDetailPage.js +453 -454
  98. package/dist/sandbox/pages/SandboxDetailPage.js.map +1 -1
  99. package/dist/sandbox/pages/SandboxListPage.d.ts +1 -2
  100. package/dist/sandbox/pages/SandboxListPage.js +319 -320
  101. package/dist/sandbox/pages/SandboxListPage.js.map +1 -1
  102. package/dist/sandbox/pages/TemplateDetailPage.d.ts +1 -2
  103. package/dist/sandbox/pages/TemplateDetailPage.js +326 -328
  104. package/dist/sandbox/pages/TemplateDetailPage.js.map +1 -1
  105. package/dist/sandbox/pages/UserLandingPage.d.ts +1 -2
  106. package/dist/sandbox/pages/UserLandingPage.js +10 -11
  107. package/dist/sandbox/pages/UserLandingPage.js.map +1 -1
  108. package/dist/sandbox/pages/UserTemplatesPage.d.ts +1 -2
  109. package/dist/sandbox/pages/UserTemplatesPage.js +47 -48
  110. package/dist/sandbox/pages/UserTemplatesPage.js.map +1 -1
  111. package/dist/sandbox/providers/SandboxProvider.d.ts +0 -2
  112. package/dist/sandbox/providers/SandboxProvider.js +5 -12
  113. package/dist/sandbox/providers/SandboxProvider.js.map +1 -1
  114. package/dist/sandbox/store/sandboxStore.d.ts +0 -2
  115. package/dist/sandbox/store/sandboxStore.js +1 -2
  116. package/dist/sandbox/store/sandboxStore.js.map +1 -1
  117. package/dist/sandbox/types/index.d.ts +0 -1
  118. package/dist/sandbox/utils/cn.d.ts +0 -2
  119. package/dist/sandbox/utils/cn.js +2 -3
  120. package/dist/sandbox/utils/cn.js.map +1 -1
  121. package/dist/sandbox/utils/formatters.d.ts +0 -1
  122. package/dist/sandbox/utils/formatters.js +1 -2
  123. package/dist/sandbox/utils/formatters.js.map +1 -1
  124. package/dist/sandbox/utils/i18n.d.ts +0 -2
  125. package/dist/sandbox/utils/i18n.js +1 -2
  126. package/dist/sandbox/utils/i18n.js.map +1 -1
  127. package/dist/sandbox/utils/imageRegistry.d.ts +0 -1
  128. package/dist/sandbox/utils/imageRegistry.js +1 -2
  129. package/dist/sandbox/utils/imageRegistry.js.map +1 -1
  130. package/dist/sandbox/utils/navigation.d.ts +0 -1
  131. package/dist/sandbox/utils/navigation.js +1 -2
  132. package/dist/sandbox/utils/navigation.js.map +1 -1
  133. package/dist/sandbox/utils/sandboxEvents.d.ts +0 -2
  134. package/dist/sandbox/utils/sandboxEvents.js +1 -2
  135. package/dist/sandbox/utils/sandboxEvents.js.map +1 -1
  136. package/dist/translations/en.d.ts +0 -1
  137. package/dist/translations/en.js +1 -2
  138. package/dist/translations/en.js.map +1 -1
  139. package/dist/translations/hi.d.ts +0 -2
  140. package/dist/translations/hi.js +3 -4
  141. package/dist/translations/hi.js.map +1 -1
  142. package/dist/translations/index.d.ts +0 -1
  143. package/dist/translations/index.js +4 -3
  144. package/dist/translations/ta.d.ts +0 -2
  145. package/dist/translations/ta.js +3 -4
  146. package/dist/translations/ta.js.map +1 -1
  147. package/dist/utils/nativeBridge.d.ts +0 -1
  148. package/dist/utils/nativeBridge.js +1 -2
  149. package/package.json +60 -46
  150. package/dist/dev/Dashboard.d.ts.map +0 -1
  151. package/dist/dev/SandboxApp.d.ts.map +0 -1
  152. package/dist/dev/main.d.ts.map +0 -1
  153. package/dist/generated/global-operations.d.ts.map +0 -1
  154. package/dist/generated/global-types.d.ts.map +0 -1
  155. package/dist/generated/wspace-operations.d.ts.map +0 -1
  156. package/dist/generated/wspace-types.d.ts.map +0 -1
  157. package/dist/index.d.ts.map +0 -1
  158. package/dist/sandbox/AdminRoutes.d.ts.map +0 -1
  159. package/dist/sandbox/SandboxAdminRoot.d.ts.map +0 -1
  160. package/dist/sandbox/SandboxRoot.d.ts.map +0 -1
  161. package/dist/sandbox/UserRoutes.d.ts.map +0 -1
  162. package/dist/sandbox/components/ContainerImagePicker.d.ts.map +0 -1
  163. package/dist/sandbox/components/CountdownTimer.d.ts.map +0 -1
  164. package/dist/sandbox/components/ExportSandboxesDialog.d.ts.map +0 -1
  165. package/dist/sandbox/components/ExtendTTLModal.d.ts.map +0 -1
  166. package/dist/sandbox/components/FilesFolderPicker.d.ts.map +0 -1
  167. package/dist/sandbox/components/PageLayout.d.ts.map +0 -1
  168. package/dist/sandbox/components/ResourceDisplay.d.ts.map +0 -1
  169. package/dist/sandbox/components/RouteUtils.d.ts.map +0 -1
  170. package/dist/sandbox/components/SandboxActivityTab.d.ts.map +0 -1
  171. package/dist/sandbox/components/SandboxAgentAppPanel.d.ts.map +0 -1
  172. package/dist/sandbox/components/SandboxScriptRunnerPanel.d.ts.map +0 -1
  173. package/dist/sandbox/components/SandboxTypeIcon.d.ts.map +0 -1
  174. package/dist/sandbox/components/SandboxTypeSelector.d.ts.map +0 -1
  175. package/dist/sandbox/components/SandboxUsageBanner.d.ts.map +0 -1
  176. package/dist/sandbox/components/StatusBadge.d.ts.map +0 -1
  177. package/dist/sandbox/components/TagsInput.d.ts.map +0 -1
  178. package/dist/sandbox/components/ui.d.ts.map +0 -1
  179. package/dist/sandbox/hooks/useIsSuperAdmin.d.ts.map +0 -1
  180. package/dist/sandbox/hooks/useRemainingSeconds.d.ts.map +0 -1
  181. package/dist/sandbox/hooks/useTr.d.ts.map +0 -1
  182. package/dist/sandbox/index.d.ts.map +0 -1
  183. package/dist/sandbox/pages/AdminLandingPage.d.ts.map +0 -1
  184. package/dist/sandbox/pages/AdminPage.d.ts.map +0 -1
  185. package/dist/sandbox/pages/AdminTemplatesPage.d.ts.map +0 -1
  186. package/dist/sandbox/pages/SandboxCreatePage.d.ts.map +0 -1
  187. package/dist/sandbox/pages/SandboxDetailPage.d.ts.map +0 -1
  188. package/dist/sandbox/pages/SandboxListPage.d.ts.map +0 -1
  189. package/dist/sandbox/pages/TemplateDetailPage.d.ts.map +0 -1
  190. package/dist/sandbox/pages/UserLandingPage.d.ts.map +0 -1
  191. package/dist/sandbox/pages/UserTemplatesPage.d.ts.map +0 -1
  192. package/dist/sandbox/providers/SandboxProvider.d.ts.map +0 -1
  193. package/dist/sandbox/store/sandboxStore.d.ts.map +0 -1
  194. package/dist/sandbox/types/index.d.ts.map +0 -1
  195. package/dist/sandbox/utils/cn.d.ts.map +0 -1
  196. package/dist/sandbox/utils/formatters.d.ts.map +0 -1
  197. package/dist/sandbox/utils/i18n.d.ts.map +0 -1
  198. package/dist/sandbox/utils/imageRegistry.d.ts.map +0 -1
  199. package/dist/sandbox/utils/navigation.d.ts.map +0 -1
  200. package/dist/sandbox/utils/sandboxEvents.d.ts.map +0 -1
  201. package/dist/translations/en.d.ts.map +0 -1
  202. package/dist/translations/hi.d.ts.map +0 -1
  203. package/dist/translations/index.d.ts.map +0 -1
  204. package/dist/translations/ta.d.ts.map +0 -1
  205. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"UserTemplatesPage.js","names":[],"sources":["../../../src/sandbox/pages/UserTemplatesPage.tsx"],"sourcesContent":["import { LayoutTemplate, Star, Container, Play, Loader2 } from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Button, Badge, GlassCard } from '../components/ui';\nimport { SandboxTypeIcon } from '../components/SandboxTypeIcon';\nimport { useSandbox } from '../providers/SandboxProvider';\nimport { joinPath } from '../utils/navigation';\nimport { formatTTL } from '../utils/formatters';\nimport { tWithFallback } from '../utils/i18n';\nimport { PageLayout } from '../components/PageLayout';\nimport { IllustratedEmptyState, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useListSandboxTemplatesQuery } from '../../generated/wspace-operations';\nimport type { SandboxTemplate } from '../types';\n\n/**\n * User Templates Page\n * Read-only template catalog for workspace members.\n * Users can browse templates and use them to create sandboxes.\n * Template CRUD (create/edit/delete) is admin-only per spec.\n */\nexport function UserTemplatesPage() {\n const { basePath = '/', navigate, workspaceId } = useSandbox();\n const { t } = useI18n();\n const { data, loading } = useListSandboxTemplatesQuery({\n variables: { context: { workspaceId } },\n skip: !workspaceId,\n });\n const templates = (data?.listSandboxTemplates?.items ?? []) as SandboxTemplate[];\n\n // The \"recommended\" template gets the single emphasis treatment on this page:\n // the workspace default if one is set, otherwise the first template. This is\n // the most-likely starting point for a new user (mirrors the overview's one\n // clear highlight).\n const emphasisTemplateId = (templates.find((tpl) => tpl.isDefault) ?? templates[0])?.id;\n\n const handleUseTemplate = (templateId: string) => {\n navigate?.(joinPath(basePath, `new?template=${templateId}`));\n };\n\n return (\n <PageLayout\n title={tWithFallback(t, 'sandbox.userTemplates.title', 'Templates')}\n subtitle={tWithFallback(\n t,\n 'sandbox.userTemplates.subtitle',\n 'Browse sandbox templates for quick provisioning'\n )}\n icon={<LayoutTemplate size={24} />}\n headerContent={\n <Badge variant=\"secondary\">\n {tWithFallback(t, 'sandbox.userTemplates.header.count', '{count} templates', {\n count: templates.length,\n })}\n </Badge>\n }\n >\n <PagePurpose>\n {tWithFallback(\n t,\n 'sandbox.userTemplates.purpose',\n 'Templates are pre-built sandbox blueprints — a ready-made image, CPU/memory, storage and time-to-live picked by your workspace admins. Pick one to skip the setup and launch a working environment (AI builder, workflow runner, plain shell…) in one click.'\n )}\n </PagePurpose>\n {loading ? (\n <div className=\"flex items-center justify-center min-h-[200px]\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n ) : templates.length > 0 ? (\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {templates.map((template, index) => (\n <GlassCard\n key={template.id}\n treatment={template.id === emphasisTemplateId ? 'glass' : 'insight'}\n glow={template.id === emphasisTemplateId}\n className=\"group animate-in fade-in-0 slide-in-from-bottom-2\"\n style={{ animationDelay: `${index * 50}ms` }}\n >\n <div className=\"p-5\">\n <div className=\"flex items-start justify-between mb-3\">\n <div className=\"flex items-center gap-3\">\n <div className=\"p-2 rounded-lg bg-bg-sunken/50\">\n <SandboxTypeIcon type={template.template} size={20} />\n </div>\n <div>\n <div className=\"flex items-center gap-2\">\n <h3 className=\"font-semibold\">{template.name}</h3>\n {template.isDefault && (\n <Badge\n variant=\"default\"\n className=\"gap-1 text-xs bg-status-warning-bg-subtle text-status-warning-text border-border-default\"\n >\n <Star size={10} />\n {tWithFallback(t, 'sandbox.userTemplates.badges.default', 'Default')}\n </Badge>\n )}\n </div>\n <SandboxTypeIcon\n type={template.template}\n size={12}\n showLabel\n className=\"mt-0.5\"\n />\n </div>\n </div>\n\n {/* Use Template action */}\n <Button\n variant=\"outline\"\n size=\"sm\"\n className=\"opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100 transition-opacity gap-1.5\"\n onClick={() => handleUseTemplate(template.id)}\n aria-label={tWithFallback(\n t,\n 'sandbox.userTemplates.actions.use.ariaLabel',\n 'Use template {name}',\n { name: template.name }\n )}\n >\n <Play size={12} />\n {tWithFallback(t, 'sandbox.userTemplates.actions.use.label', 'Use')}\n </Button>\n </div>\n\n {template.description && (\n <p className=\"text-sm text-text-secondary mb-3 line-clamp-2\">\n {template.description}\n </p>\n )}\n\n {/* Resources & Info */}\n <div className=\"flex flex-wrap items-center gap-2\">\n <Badge variant=\"outline\" className=\"text-xs gap-1\">\n {template.resources?.cpuRequest ?? '?'} CPU\n </Badge>\n <Badge variant=\"outline\" className=\"text-xs gap-1\">\n {template.resources?.memoryRequest ?? '?'} mem\n </Badge>\n <Badge variant=\"outline\" className=\"text-xs gap-1\">\n <Container size={10} />\n {tWithFallback(\n t,\n 'sandbox.userTemplates.meta.containers',\n '{count} containers',\n { count: template.containers?.length ?? 0 }\n )}\n </Badge>\n <Badge variant=\"outline\" className=\"text-xs gap-1\">\n {formatTTL(template.ttlSeconds)} TTL\n </Badge>\n {template.storage?.mode && template.storage.mode !== 'NONE' && (\n <Badge variant=\"outline\" className=\"text-xs gap-1\">\n {template.storage.mode === 'EPHEMERAL'\n ? tWithFallback(t, 'sandbox.userTemplates.storage.ephemeral', 'Ephemeral')\n : tWithFallback(\n t,\n 'sandbox.userTemplates.storage.persistent',\n 'Persistent'\n )}\n {template.storage.sizeGi ? ` ${template.storage.sizeGi}Gi` : ''}\n </Badge>\n )}\n </div>\n </div>\n </GlassCard>\n ))}\n </div>\n ) : (\n <IllustratedEmptyState\n illustration=\"empty-generic\"\n title={tWithFallback(t, 'sandbox.userTemplates.empty.title', 'No templates available')}\n description={tWithFallback(\n t,\n 'sandbox.userTemplates.empty.description',\n 'No sandbox templates have been configured yet. Contact your workspace admin to set up templates.'\n )}\n />\n )}\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAmBA,SAAgB,IAAoB;CAClC,IAAM,EAAE,cAAW,KAAK,aAAU,mBAAgB,GAAY,EACxD,EAAE,SAAM,GAAS,EACjB,EAAE,SAAM,eAAY,EAA6B;EACrD,WAAW,EAAE,SAAS,EAAE,gBAAa,EAAE;EACvC,MAAM,CAAC;EACR,CAAC,EACI,IAAa,GAAM,sBAAsB,SAAS,EAAE,EAMpD,KAAsB,EAAU,MAAM,MAAQ,EAAI,UAAU,IAAI,EAAU,KAAK,IAE/E,KAAqB,MAAuB;AAChD,MAAW,EAAS,GAAU,gBAAgB,IAAa,CAAC;;AAG9D,QACE,kBAAC,GAAD;EACE,OAAO,EAAc,GAAG,+BAA+B,YAAY;EACnE,UAAU,EACR,GACA,kCACA,kDACD;EACD,MAAM,kBAAC,GAAD,EAAgB,MAAM,IAAM,CAAA;EAClC,eACE,kBAAC,GAAD;GAAO,SAAQ;aACZ,EAAc,GAAG,sCAAsC,qBAAqB,EAC3E,OAAO,EAAU,QAClB,CAAC;GACI,CAAA;YAbZ,CAgBE,kBAAC,GAAD,EAAA,UACG,EACC,GACA,iCACA,+PACD,EACW,CAAA,EACb,IACC,kBAAC,OAAD;GAAK,WAAU;aACb,kBAAC,GAAD,EAAS,WAAU,oCAAqC,CAAA;GACpD,CAAA,GACJ,EAAU,SAAS,IACrB,kBAAC,OAAD;GAAK,WAAU;aACZ,EAAU,KAAK,GAAU,MACxB,kBAAC,GAAD;IAEE,WAAW,EAAS,OAA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,GAAD;SAAO,SAAQ;SAAU,WAAU;mBAAnC,CACE,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA,EACtB,EACC,GACA,yCACA,sBACA,EAAE,OAAO,EAAS,YAAY,UAAU,GAAG,CAC5C,CACK;;QACR,kBAAC,GAAD;SAAO,SAAQ;SAAU,WAAU;mBAAnC,CACG,EAAU,EAAS,WAAW,EAAC,OAC1B;;QACP,EAAS,SAAS,QAAQ,EAAS,QAAQ,SAAS,UACnD,kBAAC,GAAD;SAAO,SAAQ;SAAU,WAAU;mBAAnC,CACG,EAAS,QAAQ,SAAS,cACvB,EAAc,GAAG,2CAA2C,YAAY,GACxE,EACE,GACA,4CACA,aACD,EACJ,EAAS,QAAQ,SAAS,IAAI,EAAS,QAAQ,OAAO,MAAM,GACvD;;QAEN;;MACF;;IACI,EA5FL,EAAS,GA4FJ,CACZ;GACE,CAAA,GAEN,kBAAC,GAAD;GACE,cAAa;GACb,OAAO,EAAc,GAAG,qCAAqC,yBAAyB;GACtF,aAAa,EACX,GACA,2CACA,mGACD;GACD,CAAA,CAEO"}
1
+ {"version":3,"file":"UserTemplatesPage.js","names":["UserTemplatesPage","useSandbox","useI18n","useListSandboxTemplatesQuery","workspaceId","templates","data","emphasisTemplateId","tpl","handleUseTemplate","joinPath","basePath","templateId","PageLayout","tWithFallback","t","LayoutTemplate","Badge","PagePurpose","loading","Loader2","GlassCard","template","index","SandboxTypeIcon","Star","Button","Play","Container","formatTTL","IllustratedEmptyState"],"sources":["../../../src/sandbox/pages/UserTemplatesPage.tsx"],"sourcesContent":["import { LayoutTemplate, Star, Container, Play, Loader2 } from 'lucide-react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Button, Badge, GlassCard } from '../components/ui';\nimport { SandboxTypeIcon } from '../components/SandboxTypeIcon';\nimport { useSandbox } from '../providers/SandboxProvider';\nimport { joinPath } from '../utils/navigation';\nimport { formatTTL } from '../utils/formatters';\nimport { tWithFallback } from '../utils/i18n';\nimport { PageLayout } from '../components/PageLayout';\nimport { IllustratedEmptyState, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useListSandboxTemplatesQuery } from '../../generated/wspace-operations';\nimport type { SandboxTemplate } from '../types';\n\n/**\n * User Templates Page\n * Read-only template catalog for workspace members.\n * Users can browse templates and use them to create sandboxes.\n * Template CRUD (create/edit/delete) is admin-only per spec.\n */\nexport function UserTemplatesPage() {\n const { basePath = '/', navigate, workspaceId } = useSandbox();\n const { t } = useI18n();\n const { data, loading } = useListSandboxTemplatesQuery({\n variables: { context: { workspaceId } },\n skip: !workspaceId,\n });\n const templates = (data?.listSandboxTemplates?.items ?? []) as SandboxTemplate[];\n\n // The \"recommended\" template gets the single emphasis treatment on this page:\n // the workspace default if one is set, otherwise the first template. This is\n // the most-likely starting point for a new user (mirrors the overview's one\n // clear highlight).\n const emphasisTemplateId = (templates.find((tpl) => tpl.isDefault) ?? templates[0])?.id;\n\n const handleUseTemplate = (templateId: string) => {\n navigate?.(joinPath(basePath, `new?template=${templateId}`));\n };\n\n return (\n <PageLayout\n title={tWithFallback(t, 'sandbox.userTemplates.title', 'Templates')}\n subtitle={tWithFallback(\n t,\n 'sandbox.userTemplates.subtitle',\n 'Browse sandbox templates for quick provisioning'\n )}\n icon={<LayoutTemplate size={24} />}\n headerContent={\n <Badge variant=\"secondary\">\n {tWithFallback(t, 'sandbox.userTemplates.header.count', '{count} templates', {\n count: templates.length,\n })}\n </Badge>\n }\n >\n <PagePurpose>\n {tWithFallback(\n t,\n 'sandbox.userTemplates.purpose',\n 'Templates are pre-built sandbox blueprints — a ready-made image, CPU/memory, storage and time-to-live picked by your workspace admins. Pick one to skip the setup and launch a working environment (AI builder, workflow runner, plain shell…) in one click.'\n )}\n </PagePurpose>\n {loading ? (\n <div className=\"flex items-center justify-center min-h-[200px]\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n ) : templates.length > 0 ? (\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {templates.map((template, index) => (\n <GlassCard\n key={template.id}\n treatment={template.id === emphasisTemplateId ? 'glass' : 'insight'}\n glow={template.id === emphasisTemplateId}\n className=\"group animate-in fade-in-0 slide-in-from-bottom-2\"\n style={{ animationDelay: `${index * 50}ms` }}\n >\n <div className=\"p-5\">\n <div className=\"flex items-start justify-between mb-3\">\n <div className=\"flex items-center gap-3\">\n <div className=\"p-2 rounded-lg bg-bg-sunken/50\">\n <SandboxTypeIcon type={template.template} size={20} />\n </div>\n <div>\n <div className=\"flex items-center gap-2\">\n <h3 className=\"font-semibold\">{template.name}</h3>\n {template.isDefault && (\n <Badge\n variant=\"default\"\n className=\"gap-1 text-xs bg-status-warning-bg-subtle text-status-warning-text border-border-default\"\n >\n <Star size={10} />\n {tWithFallback(t, 'sandbox.userTemplates.badges.default', 'Default')}\n </Badge>\n )}\n </div>\n <SandboxTypeIcon\n type={template.template}\n size={12}\n showLabel\n className=\"mt-0.5\"\n />\n </div>\n </div>\n\n {/* Use Template action */}\n <Button\n variant=\"outline\"\n size=\"sm\"\n className=\"opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100 transition-opacity gap-1.5\"\n onClick={() => handleUseTemplate(template.id)}\n aria-label={tWithFallback(\n t,\n 'sandbox.userTemplates.actions.use.ariaLabel',\n 'Use template {name}',\n { name: template.name }\n )}\n >\n <Play size={12} />\n {tWithFallback(t, 'sandbox.userTemplates.actions.use.label', 'Use')}\n </Button>\n </div>\n\n {template.description && (\n <p className=\"text-sm text-text-secondary mb-3 line-clamp-2\">\n {template.description}\n </p>\n )}\n\n {/* Resources & Info */}\n <div className=\"flex flex-wrap items-center gap-2\">\n <Badge variant=\"outline\" className=\"text-xs gap-1\">\n {template.resources?.cpuRequest ?? '?'} CPU\n </Badge>\n <Badge variant=\"outline\" className=\"text-xs gap-1\">\n {template.resources?.memoryRequest ?? '?'} mem\n </Badge>\n <Badge variant=\"outline\" className=\"text-xs gap-1\">\n <Container size={10} />\n {tWithFallback(\n t,\n 'sandbox.userTemplates.meta.containers',\n '{count} containers',\n { count: template.containers?.length ?? 0 }\n )}\n </Badge>\n <Badge variant=\"outline\" className=\"text-xs gap-1\">\n {formatTTL(template.ttlSeconds)} TTL\n </Badge>\n {template.storage?.mode && template.storage.mode !== 'NONE' && (\n <Badge variant=\"outline\" className=\"text-xs gap-1\">\n {template.storage.mode === 'EPHEMERAL'\n ? tWithFallback(t, 'sandbox.userTemplates.storage.ephemeral', 'Ephemeral')\n : tWithFallback(\n t,\n 'sandbox.userTemplates.storage.persistent',\n 'Persistent'\n )}\n {template.storage.sizeGi ? ` ${template.storage.sizeGi}Gi` : ''}\n </Badge>\n )}\n </div>\n </div>\n </GlassCard>\n ))}\n </div>\n ) : (\n <IllustratedEmptyState\n illustration=\"empty-generic\"\n title={tWithFallback(t, 'sandbox.userTemplates.empty.title', 'No templates available')}\n description={tWithFallback(\n t,\n 'sandbox.userTemplates.empty.description',\n 'No sandbox templates have been configured yet. Contact your workspace admin to set up templates.'\n )}\n />\n )}\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAmBA,SAAgBA,IAAoB;CAClC,IAAM,EAAE,cAAW,KAAK,aAAU,mBAAgBC,EAAW,GACvD,EAAE,SAAMC,EAAQ,GAChB,EAAE,SAAM,eAAYC,EAA6B;EACrD,WAAW,EAAE,SAAS,EAAE,eAAY,EAAE;EACtC,MAAM,CAACC;CACT,CAAC,GACKC,IAAaC,GAAM,sBAAsB,SAAS,CAAC,GAMnDC,KAAsBF,EAAU,MAAM,MAAQG,EAAI,SAAS,KAAKH,EAAU,GAAA,EAAK,IAE/EI,KAAqB,MAAuB;EAChD,IAAWC,EAASC,GAAU,gBAAgBC,GAAY,CAAC;CAC7D;CAEA,OACE,kBAACC,GAAD;EACE,OAAOC,EAAcC,GAAG,+BAA+B,WAAW;EAClE,UAAUD,EACRC,GACA,kCACA,iDACF;EACA,MAAM,kBAACC,GAAD,EAAgB,MAAM,GAAK,CAAA;EACjC,eACE,kB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A,kGACF;EACD,CAAA,CAEO;;AAEhB"}
@@ -1,6 +1,5 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  import { SandboxRootProps } from '../types';
3
-
4
3
  /**
5
4
  * Hook to access Sandbox context
6
5
  */
@@ -10,4 +9,3 @@ export declare const useSandbox: () => SandboxRootProps;
10
9
  * Sets up routing, context, Apollo Client, and React Query client
11
10
  */
12
11
  export declare const SandboxProvider: FC<PropsWithChildren<SandboxRootProps>>;
13
- //# sourceMappingURL=SandboxProvider.d.ts.map
@@ -7,7 +7,7 @@ import { ApolloProvider as f } from "@apollo/client/react";
7
7
  import { isAuthNetworkError as p, redirectToLogin as m } from "@burdenoff/fe-libs/shared/utils";
8
8
  import { PermissionProvider as h } from "@burdenoff/fe-libs/shared/providers/shell";
9
9
  import { jsx as g } from "react/jsx-runtime";
10
- //#region src/sandbox/providers/SandboxProvider.tsx
10
+ // src/sandbox/providers/SandboxProvider.tsx
11
11
  function _(e = []) {
12
12
  return e.some((e) => {
13
13
  let t = typeof e.extensions?.code == "string" ? e.extensions.code : "", n = typeof e.extensions?.errorCode == "string" ? e.extensions.errorCode : "", r = (e.message ?? "").toLowerCase();
@@ -35,7 +35,7 @@ var v = e(null), y = () => {
35
35
  defaultOptions: { queries: {
36
36
  retry: 1,
37
37
  refetchOnWindowFocus: !1,
38
- staleTime: 300 * 1e3
38
+ staleTime: 3e5
39
39
  } }
40
40
  });
41
41
  return e;
@@ -45,17 +45,11 @@ var v = e(null), y = () => {
45
45
  let t = new c({
46
46
  uri: S ? `${S}/workspaces/graphql` : "/workspaces/graphql",
47
47
  headers: Object.keys(e).length > 0 ? e : void 0
48
+ }), n = d(({ error: e }) => {
49
+ e && (_("errors" in e && Array.isArray(e.errors) ? e.errors : []) || e instanceof Error && p(e)) && m();
48
50
  });
49
51
  return new s({
50
- link: u([d(({ error: e }) => {
51
- if (e) {
52
- if (_("errors" in e && Array.isArray(e.errors) ? e.errors : [])) {
53
- m();
54
- return;
55
- }
56
- e instanceof Error && p(e) && m();
57
- }
58
- }), t]),
52
+ link: u([n, t]),
59
53
  cache: new l(),
60
54
  defaultOptions: { watchQuery: { fetchPolicy: "cache-and-network" } }
61
55
  });
@@ -80,7 +74,6 @@ var v = e(null), y = () => {
80
74
  children: /* @__PURE__ */ g(r, { children: O })
81
75
  });
82
76
  };
83
- //#endregion
84
77
  export { b as SandboxProvider, y as useSandbox };
85
78
 
86
79
  //# sourceMappingURL=SandboxProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SandboxProvider.js","names":[],"sources":["../../../src/sandbox/providers/SandboxProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport { createContext, use, useMemo } from 'react';\nimport { MemoryRouter } from 'react-router';\nimport { MutationCache, QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { ApolloClient, InMemoryCache, HttpLink, from } from '@apollo/client';\nimport { onError } from '@apollo/client/link/error';\nimport { ApolloProvider } from '@apollo/client/react';\nimport { isAuthNetworkError, redirectToLogin } from '@burdenoff/fe-libs/shared/utils';\nimport { PermissionProvider } from '@burdenoff/fe-libs/shared/providers/shell';\nimport type { SandboxRootProps } from '../types';\n\nfunction hasSessionAuthErrors(\n errors: ReadonlyArray<{ message?: string; extensions?: Record<string, unknown> }> = []\n): boolean {\n return errors.some((error) => {\n const code = typeof error.extensions?.code === 'string' ? error.extensions.code : '';\n const errorCode =\n typeof error.extensions?.errorCode === 'string' ? error.extensions.errorCode : '';\n const message = (error.message ?? '').toLowerCase();\n\n return (\n code === 'UNAUTHENTICATED' ||\n errorCode === 'TOKEN_EXPIRED' ||\n message.includes('token_expired') ||\n message.includes('token expired') ||\n message.includes('session expired') ||\n message.includes('unauthorized') ||\n message.includes('unauthenticated') ||\n message.includes('authentication required') ||\n message.includes('workspace context missing')\n );\n });\n}\n\n/**\n * Context value for Sandbox microfrontend\n */\ntype SandboxContextValue = SandboxRootProps;\n\nconst SandboxContext = createContext<SandboxContextValue | null>(null);\n\n/**\n * Hook to access Sandbox context\n */\nexport const useSandbox = () => {\n const context = use(SandboxContext);\n if (!context) {\n throw new Error('useSandbox must be used within SandboxProvider');\n }\n return context;\n};\n\n/**\n * Provider component for Sandbox microfrontend\n * Sets up routing, context, Apollo Client, and React Query client\n */\nexport const SandboxProvider: FC<PropsWithChildren<SandboxRootProps>> = ({\n children,\n basePath,\n navigate,\n currentUser,\n workspaceId,\n apiGatewayUrl,\n authToken,\n workspaceToken,\n}) => {\n const contextValue: SandboxContextValue = {\n basePath,\n navigate,\n currentUser,\n workspaceId,\n apiGatewayUrl,\n authToken,\n workspaceToken,\n };\n\n // Create QueryClient instance (memoized to avoid recreation on re-renders)\n const queryClient = useMemo(() => {\n const client = new QueryClient({\n mutationCache: new MutationCache({\n onSuccess: () => {\n void client.invalidateQueries();\n },\n }),\n defaultOptions: {\n queries: {\n retry: 1,\n refetchOnWindowFocus: false,\n staleTime: 5 * 60 * 1000, // 5 minutes\n },\n },\n });\n return client;\n }, []);\n\n // Create ApolloClient instance (memoized, recreated when context changes)\n // Auth tokens are sent to the PUBLIC GATEWAY only (never to downstream services).\n // The gateway validates tokens, strips them, and injects context headers\n // (x-actor-id, x-workspace-id, etc.) for downstream subgraph services.\n const apolloClient = useMemo(() => {\n const headers: Record<string, string> = {};\n\n // Auth tokens — consumed by the gateway, never forwarded to subgraphs\n if (authToken) headers['Authorization'] = `Bearer ${authToken}`;\n if (workspaceToken) headers['X-Workspace-Authorization'] = `Bearer ${workspaceToken}`;\n\n // Context headers — forwarded by the gateway to downstream subgraphs.\n // X-Workspace-ID is the primary workspace context and is always sent.\n // This ensures workspace isolation works even when the workspace token\n // issuance fails (gateway uses this header as fallback context).\n if (workspaceId) headers['X-Workspace-ID'] = workspaceId;\n\n const httpLink = new HttpLink({\n uri: apiGatewayUrl ? `${apiGatewayUrl}/workspaces/graphql` : '/workspaces/graphql',\n headers: Object.keys(headers).length > 0 ? headers : undefined,\n });\n\n const errorLink = onError(({ error }) => {\n if (!error) return;\n\n const graphQLErrors = 'errors' in error && Array.isArray(error.errors) ? error.errors : [];\n\n if (hasSessionAuthErrors(graphQLErrors)) {\n redirectToLogin();\n return;\n }\n\n if (error instanceof Error && isAuthNetworkError(error)) {\n redirectToLogin();\n }\n });\n\n return new ApolloClient({\n link: from([errorLink, httpLink]),\n cache: new InMemoryCache(),\n defaultOptions: {\n watchQuery: {\n fetchPolicy: 'cache-and-network',\n },\n },\n });\n }, [apiGatewayUrl, authToken, workspaceToken, workspaceId]);\n\n // Wrap content with QueryClientProvider and Context.Provider\n const content = (\n <QueryClientProvider client={queryClient}>\n <SandboxContext.Provider value={contextValue}>\n <PermissionProvider scopeId={workspaceId ?? null} gateway=\"workspace\">\n {children}\n </PermissionProvider>\n </SandboxContext.Provider>\n </QueryClientProvider>\n );\n\n // When integrated into a shell (basePath provided), the shell already has a router\n // and ApolloProvider so we don't create another one. When standalone (no basePath),\n // use MemoryRouter and ApolloProvider.\n if (basePath) {\n // Integrated mode: shell already has BrowserRouter and ApolloProvider, don't create nested ones\n return content;\n }\n\n // Standalone mode: create MemoryRouter and ApolloProvider for independent operation\n return (\n <ApolloProvider client={apolloClient}>\n <MemoryRouter>{content}</MemoryRouter>\n </ApolloProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAWA,SAAS,EACP,IAAoF,EAAE,EAC7E;AACT,QAAO,EAAO,MAAM,MAAU;EAC5B,IAAM,IAAO,OAAO,EAAM,YAAY,QAAS,WAAW,EAAM,WAAW,OAAO,IAC5E,IACJ,OAAO,EAAM,YAAY,aAAc,WAAW,EAAM,WAAW,YAAY,IAC3E,KAAW,EAAM,WAAW,IAAI,aAAa;AAEnD,SACE,MAAS,qBACT,MAAc,mBACd,EAAQ,SAAS,gBAAgB,IACjC,EAAQ,SAAS,gBAAgB,IACjC,EAAQ,SAAS,kBAAkB,IACnC,EAAQ,SAAS,eAAe,IAChC,EAAQ,SAAS,kBAAkB,IACnC,EAAQ,SAAS,0BAA0B,IAC3C,EAAQ,SAAS,4B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AQ;YAC3B,kBAAC,EAAe,UAAhB;GAAyB,OAAO;aAC9B,kBAAC,GAAD;IAAoB,SAAS,KAAe;IAAM,SAAQ;IACvD;IACkB,CAAA;GACG,CAAA;EACN,CAAA;AAYxB,QANI,IAEK,IAKP,kBAAC,GAAD;EAAgB,QAAQ;YACtB,kBAAC,GAAD,EAAA,UAAe,GAAuB,CAAA;EACvB,CAAA"}
1
+ {"version":3,"file":"SandboxProvider.js","names":["hasSessionAuthErrors","errors","code","error","errorCode","message","SandboxContext","createContext","useSandbox","context","use","SandboxProvider","contextValue","queryClient","useMemo","client","QueryClient","MutationCache","apolloClient","headers","authToken","\"Authorization\"","workspaceToken","workspaceId","httpLink","HttpLink","apiGatewayUrl","errorLink","onError","isAuthNetworkError","redirectToLogin","ApolloClient","from","InMemoryCache","content","QueryClientProvider","PermissionProvider","basePath","ApolloProvider","MemoryRouter"],"sources":["../../../src/sandbox/providers/SandboxProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport { createContext, use, useMemo } from 'react';\nimport { MemoryRouter } from 'react-router';\nimport { MutationCache, QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { ApolloClient, InMemoryCache, HttpLink, from } from '@apollo/client';\nimport { onError } from '@apollo/client/link/error';\nimport { ApolloProvider } from '@apollo/client/react';\nimport { isAuthNetworkError, redirectToLogin } from '@burdenoff/fe-libs/shared/utils';\nimport { PermissionProvider } from '@burdenoff/fe-libs/shared/providers/shell';\nimport type { SandboxRootProps } from '../types';\n\nfunction hasSessionAuthErrors(\n errors: ReadonlyArray<{ message?: string; extensions?: Record<string, unknown> }> = []\n): boolean {\n return errors.some((error) => {\n const code = typeof error.extensions?.code === 'string' ? error.extensions.code : '';\n const errorCode =\n typeof error.extensions?.errorCode === 'string' ? error.extensions.errorCode : '';\n const message = (error.message ?? '').toLowerCase();\n\n return (\n code === 'UNAUTHENTICATED' ||\n errorCode === 'TOKEN_EXPIRED' ||\n message.includes('token_expired') ||\n message.includes('token expired') ||\n message.includes('session expired') ||\n message.includes('unauthorized') ||\n message.includes('unauthenticated') ||\n message.includes('authentication required') ||\n message.includes('workspace context missing')\n );\n });\n}\n\n/**\n * Context value for Sandbox microfrontend\n */\ntype SandboxContextValue = SandboxRootProps;\n\nconst SandboxContext = createContext<SandboxContextValue | null>(null);\n\n/**\n * Hook to access Sandbox context\n */\nexport const useSandbox = () => {\n const context = use(SandboxContext);\n if (!context) {\n throw new Error('useSandbox must be used within SandboxProvider');\n }\n return context;\n};\n\n/**\n * Provider component for Sandbox microfrontend\n * Sets up routing, context, Apollo Client, and React Query client\n */\nexport const SandboxProvider: FC<PropsWithChildren<SandboxRootProps>> = ({\n children,\n basePath,\n navigate,\n currentUser,\n workspaceId,\n apiGatewayUrl,\n authToken,\n workspaceToken,\n}) => {\n const contextValue: SandboxContextValue = {\n basePath,\n navigate,\n currentUser,\n workspaceId,\n apiGatewayUrl,\n authToken,\n workspaceToken,\n };\n\n // Create QueryClient instance (memoized to avoid recreation on re-renders)\n const queryClient = useMemo(() => {\n const client = new QueryClient({\n mutationCache: new MutationCache({\n onSuccess: () => {\n void client.invalidateQueries();\n },\n }),\n defaultOptions: {\n queries: {\n retry: 1,\n refetchOnWindowFocus: false,\n staleTime: 5 * 60 * 1000, // 5 minutes\n },\n },\n });\n return client;\n }, []);\n\n // Create ApolloClient instance (memoized, recreated when context changes)\n // Auth tokens are sent to the PUBLIC GATEWAY only (never to downstream services).\n // The gateway validates tokens, strips them, and injects context headers\n // (x-actor-id, x-workspace-id, etc.) for downstream subgraph services.\n const apolloClient = useMemo(() => {\n const headers: Record<string, string> = {};\n\n // Auth tokens — consumed by the gateway, never forwarded to subgraphs\n if (authToken) headers['Authorization'] = `Bearer ${authToken}`;\n if (workspaceToken) headers['X-Workspace-Authorization'] = `Bearer ${workspaceToken}`;\n\n // Context headers — forwarded by the gateway to downstream subgraphs.\n // X-Workspace-ID is the primary workspace context and is always sent.\n // This ensures workspace isolation works even when the workspace token\n // issuance fails (gateway uses this header as fallback context).\n if (workspaceId) headers['X-Workspace-ID'] = workspaceId;\n\n const httpLink = new HttpLink({\n uri: apiGatewayUrl ? `${apiGatewayUrl}/workspaces/graphql` : '/workspaces/graphql',\n headers: Object.keys(headers).length > 0 ? headers : undefined,\n });\n\n const errorLink = onError(({ error }) => {\n if (!error) return;\n\n const graphQLErrors = 'errors' in error && Array.isArray(error.errors) ? error.errors : [];\n\n if (hasSessionAuthErrors(graphQLErrors)) {\n redirectToLogin();\n return;\n }\n\n if (error instanceof Error && isAuthNetworkError(error)) {\n redirectToLogin();\n }\n });\n\n return new ApolloClient({\n link: from([errorLink, httpLink]),\n cache: new InMemoryCache(),\n defaultOptions: {\n watchQuery: {\n fetchPolicy: 'cache-and-network',\n },\n },\n });\n }, [apiGatewayUrl, authToken, workspaceToken, workspaceId]);\n\n // Wrap content with QueryClientProvider and Context.Provider\n const content = (\n <QueryClientProvider client={queryClient}>\n <SandboxContext.Provider value={contextValue}>\n <PermissionProvider scopeId={workspaceId ?? null} gateway=\"workspace\">\n {children}\n </PermissionProvider>\n </SandboxContext.Provider>\n </QueryClientProvider>\n );\n\n // When integrated into a shell (basePath provided), the shell already has a router\n // and ApolloProvider so we don't create another one. When standalone (no basePath),\n // use MemoryRouter and ApolloProvider.\n if (basePath) {\n // Integrated mode: shell already has BrowserRouter and ApolloProvider, don't create nested ones\n return content;\n }\n\n // Standalone mode: create MemoryRouter and ApolloProvider for independent operation\n return (\n <ApolloProvider client={apolloClient}>\n <MemoryRouter>{content}</MemoryRouter>\n </ApolloProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAWA,SAASA,EACP,IAAoF,CAAC,GAC5E;CACT,OAAOC,EAAO,MAAM,MAAU;EAC5B,IAAMC,IAAO,OAAOC,EAAM,YAAY,QAAS,WAAWA,EAAM,WAAW,OAAO,IAC5EC,IACJ,OAAOD,EAAM,YAAY,aAAc,WAAWA,EAAM,WAAW,YAAY,IAC3EE,KAAWF,EAAM,WAAW,GAAA,C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CA,aAAiB,SAAS0B,EAAmB1B,CAAK,MACpD2B,EAAgB;EAEpB,CAAC;EAED,OAAO,IAAIC,EAAa;GACtB,MAAMC,EAAK,CAACL,GAAWH,CAAQ,CAAC;GAChC,OAAO,IAAIS,EAAc;GACzB,gBAAgB,EACd,YAAY,EACV,aAAa,oBACf,EACF;EACF,CAAC;CACH,GAAG;EAACP;EAAeN;EAAWE;EAAgBC;CAAW,CAAC,GAGpDW,IACJ,kBAACC,GAAD;EAAqB,QAAQtB;EAC3B,UAAA,kBAACP,EAAe,UAAhB;GAAyB,OAAOM;GAC9B,UAAA,kBAACwB,GAAD;IAAoB,SAASb,KAAe;IAAM,SAAQ;IACvD;GACiB,CAAA;EACG,CAAA;CACN,CAAA;CAYvB,OANIc,IAEKH,IAKP,kBAACI,GAAD;EAAgB,QAAQpB;EACtB,UAAA,kBAACqB,GAAD,EAAA,UAAeL,EAAsB,CAAA;CACvB,CAAA;AAEpB"}
@@ -1,5 +1,4 @@
1
1
  import { Sandbox, SandboxTemplate, SandboxFilter, SandboxView } from '../types';
2
-
3
2
  interface SandboxState {
4
3
  selectedSandbox: Sandbox | null;
5
4
  viewMode: SandboxView;
@@ -13,4 +12,3 @@ interface SandboxState {
13
12
  }
14
13
  export declare const useSandboxStore: import('zustand').UseBoundStore<import('zustand').StoreApi<SandboxState>>;
15
14
  export {};
16
- //# sourceMappingURL=sandboxStore.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { create as e } from "zustand";
2
- //#region src/sandbox/store/sandboxStore.ts
2
+ // src/sandbox/store/sandboxStore.ts
3
3
  var t = {
4
4
  search: "",
5
5
  template: "all",
@@ -18,7 +18,6 @@ var t = {
18
18
  resetFilter: () => e({ sandboxFilter: t }),
19
19
  setSelectedTemplate: (t) => e({ selectedTemplate: t })
20
20
  }));
21
- //#endregion
22
21
  export { n as useSandboxStore };
23
22
 
24
23
  //# sourceMappingURL=sandboxStore.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxStore.js","names":[],"sources":["../../../src/sandbox/store/sandboxStore.ts"],"sourcesContent":["import { create } from 'zustand';\nimport type { Sandbox, SandboxTemplate, SandboxFilter, SandboxView } from '../types';\n\ninterface SandboxState {\n // View state\n selectedSandbox: Sandbox | null;\n viewMode: SandboxView;\n selectedTemplate: SandboxTemplate | null;\n\n // Filters\n sandboxFilter: SandboxFilter;\n\n // Actions\n setSelectedSandbox: (sandbox: Sandbox | null) => void;\n setViewMode: (mode: SandboxView) => void;\n updateFilter: (filter: Partial<SandboxFilter>) => void;\n resetFilter: () => void;\n setSelectedTemplate: (template: SandboxTemplate | null) => void;\n}\n\nconst defaultFilter: SandboxFilter = {\n search: '',\n template: 'all',\n status: 'all',\n};\n\nexport const useSandboxStore = create<SandboxState>((set) => ({\n // Initial state\n selectedSandbox: null,\n viewMode: 'list',\n selectedTemplate: null,\n sandboxFilter: defaultFilter,\n\n // Actions\n setSelectedSandbox: (sandbox) => set({ selectedSandbox: sandbox }),\n setViewMode: (mode) => set({ viewMode: mode }),\n updateFilter: (filter) =>\n set((state) => ({\n sandboxFilter: { ...state.sandboxFilter, ...filter },\n })),\n resetFilter: () => set({ sandboxFilter: defaultFilter }),\n setSelectedTemplate: (template) => set({ selectedTemplate: template }),\n}));\n"],"mappings":";;AAoBA,IAAM,IAA+B;CACnC,QAAQ;CACR,UAAU;CACV,QAAQ;CACT,EAEY,IAAkB,GAAsB,OAAS;CAE5D,iBAAiB;CACjB,UAAU;CACV,kBAAkB;CAClB,eAAe;CAGf,qBAAqB,MAAY,EAAI,EAAE,iBAAiB,GAAS,CAAC;CAClE,cAAc,MAAS,EAAI,EAAE,UAAU,GAAM,CAAC;CAC9C,eAAe,MACb,GAAK,OAAW,EACd,eAAe;EAAE,GAAG,EAAM;EAAe,GAAG;EAAQ,EACrD,EAAE;CACL,mBAAmB,EAAI,EAAE,eAAe,GAAe,CAAC;CACxD,sBAAsB,MAAa,EAAI,EAAE,kBAAkB,GAAU,CAAC;CACvE,EAAE"}
1
+ {"version":3,"file":"sandboxStore.js","names":["defaultFilter","useSandboxStore","create","set","sandbox","mode","state","filter","template"],"sources":["../../../src/sandbox/store/sandboxStore.ts"],"sourcesContent":["import { create } from 'zustand';\nimport type { Sandbox, SandboxTemplate, SandboxFilter, SandboxView } from '../types';\n\ninterface SandboxState {\n // View state\n selectedSandbox: Sandbox | null;\n viewMode: SandboxView;\n selectedTemplate: SandboxTemplate | null;\n\n // Filters\n sandboxFilter: SandboxFilter;\n\n // Actions\n setSelectedSandbox: (sandbox: Sandbox | null) => void;\n setViewMode: (mode: SandboxView) => void;\n updateFilter: (filter: Partial<SandboxFilter>) => void;\n resetFilter: () => void;\n setSelectedTemplate: (template: SandboxTemplate | null) => void;\n}\n\nconst defaultFilter: SandboxFilter = {\n search: '',\n template: 'all',\n status: 'all',\n};\n\nexport const useSandboxStore = create<SandboxState>((set) => ({\n // Initial state\n selectedSandbox: null,\n viewMode: 'list',\n selectedTemplate: null,\n sandboxFilter: defaultFilter,\n\n // Actions\n setSelectedSandbox: (sandbox) => set({ selectedSandbox: sandbox }),\n setViewMode: (mode) => set({ viewMode: mode }),\n updateFilter: (filter) =>\n set((state) => ({\n sandboxFilter: { ...state.sandboxFilter, ...filter },\n })),\n resetFilter: () => set({ sandboxFilter: defaultFilter }),\n setSelectedTemplate: (template) => set({ selectedTemplate: template }),\n}));\n"],"mappings":";;AAoBA,IAAMA,IAA+B;CACnC,QAAQ;CACR,UAAU;CACV,QAAQ;AACV,GAEaC,IAAkBC,GAAsB,OAAS;CAE5D,iBAAiB;CACjB,UAAU;CACV,kBAAkB;CAClB,eAAeF;CAGf,qBAAqB,MAAYG,EAAI,EAAE,iBAAiBC,EAAQ,CAAC;CACjE,cAAc,MAASD,EAAI,EAAE,UAAUE,EAAK,CAAC;CAC7C,eAAe,MACbF,GAAK,OAAW,EACd,eAAe;EAAE,GAAGG,EAAM;EAAe,GAAGC;CAAO,EACrD,EAAE;CACJ,mBAAmBJ,EAAI,EAAE,eAAeH,EAAc,CAAC;CACvD,sBAAsB,MAAaG,EAAI,EAAE,kBAAkBK,EAAS,CAAC;AACvE,EAAE"}
@@ -235,4 +235,3 @@ export interface SandboxFilter {
235
235
  * View mode for the sandbox UI
236
236
  */
237
237
  export type SandboxView = 'list' | 'templates' | 'admin';
238
- //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,6 @@
1
1
  import { ClassValue } from 'clsx';
2
-
3
2
  /**
4
3
  * Utility function to merge Tailwind CSS classes
5
4
  * Combines clsx for conditional classes and tailwind-merge for deduplication
6
5
  */
7
6
  export declare function cn(...inputs: ClassValue[]): string;
8
- //# sourceMappingURL=cn.d.ts.map
@@ -1,10 +1,9 @@
1
- import e from "../../node_modules/clsx/dist/clsx.js";
1
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import { twMerge as t } from "../../node_modules/tailwind-merge/dist/bundle-mjs.js";
3
- //#region src/sandbox/utils/cn.ts
3
+ // src/sandbox/utils/cn.ts
4
4
  function n(...n) {
5
5
  return t(e(n));
6
6
  }
7
- //#endregion
8
7
  export { n as cn };
9
8
 
10
9
  //# sourceMappingURL=cn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cn.js","names":[],"sources":["../../../src/sandbox/utils/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * Utility function to merge Tailwind CSS classes\n * Combines clsx for conditional classes and tailwind-merge for deduplication\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;AAOA,SAAgB,EAAG,GAAG,GAAsB;AAC1C,QAAO,EAAQ,EAAK,EAAO,CAAC"}
1
+ {"version":3,"file":"cn.js","names":["cn","inputs","twMerge","clsx"],"sources":["../../../src/sandbox/utils/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * Utility function to merge Tailwind CSS classes\n * Combines clsx for conditional classes and tailwind-merge for deduplication\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;AAOA,SAAgBA,EAAG,GAAGC,GAAsB;CAC1C,OAAOC,EAAQC,EAAKF,CAAM,CAAC;AAC7B"}
@@ -4,4 +4,3 @@
4
4
  * @example formatTTL(5400) → "1h 30m"
5
5
  */
6
6
  export declare function formatTTL(seconds: number | undefined | null): string;
7
- //# sourceMappingURL=formatters.d.ts.map
@@ -1,10 +1,9 @@
1
- //#region src/sandbox/utils/formatters.ts
1
+ // src/sandbox/utils/formatters.ts
2
2
  function e(e) {
3
3
  if (e == null || Number.isNaN(e)) return "—";
4
4
  let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60);
5
5
  return t > 0 && n > 0 ? `${t}h ${n}m` : t > 0 ? `${t}h` : `${n}m`;
6
6
  }
7
- //#endregion
8
7
  export { e as formatTTL };
9
8
 
10
9
  //# sourceMappingURL=formatters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatters.js","names":[],"sources":["../../../src/sandbox/utils/formatters.ts"],"sourcesContent":["/**\n * Format seconds into a human-readable TTL string.\n * @example formatTTL(3600) → \"1h\"\n * @example formatTTL(5400) → \"1h 30m\"\n */\nexport function formatTTL(seconds: number | undefined | null): string {\n if (seconds == null || Number.isNaN(seconds)) return '—';\n const hours = Math.floor(seconds / 3600);\n const minutes = Math.floor((seconds % 3600) / 60);\n if (hours > 0 && minutes > 0) return `${hours}h ${minutes}m`;\n if (hours > 0) return `${hours}h`;\n return `${minutes}m`;\n}\n"],"mappings":";AAKA,SAAgB,EAAU,GAA4C;AACpE,KAAI,KAAW,QAAQ,OAAO,MAAM,EAAQ,CAAE,QAAO;CACrD,IAAM,IAAQ,KAAK,MAAM,IAAU,KAAK,EAClC,IAAU,KAAK,MAAO,IAAU,OAAQ,GAAG;AAGjD,QAFI,IAAQ,KAAK,IAAU,IAAU,GAAG,EAAM,IAAI,EAAQ,KACtD,IAAQ,IAAU,GAAG,EAAM,KACxB,GAAG,EAAQ"}
1
+ {"version":3,"file":"formatters.js","names":["formatTTL","seconds","hours","minutes"],"sources":["../../../src/sandbox/utils/formatters.ts"],"sourcesContent":["/**\n * Format seconds into a human-readable TTL string.\n * @example formatTTL(3600) → \"1h\"\n * @example formatTTL(5400) → \"1h 30m\"\n */\nexport function formatTTL(seconds: number | undefined | null): string {\n if (seconds == null || Number.isNaN(seconds)) return '—';\n const hours = Math.floor(seconds / 3600);\n const minutes = Math.floor((seconds % 3600) / 60);\n if (hours > 0 && minutes > 0) return `${hours}h ${minutes}m`;\n if (hours > 0) return `${hours}h`;\n return `${minutes}m`;\n}\n"],"mappings":";AAKA,SAAgBA,EAAU,GAA4C;CACpE,IAAIC,KAAW,QAAQ,OAAO,MAAMA,CAAO,GAAG,OAAO;CACrD,IAAMC,IAAQ,KAAK,MAAMD,IAAU,IAAI,GACjCE,IAAU,KAAK,MAAOF,IAAU,OAAQ,EAAE;CAGhD,OAFIC,IAAQ,KAAKC,IAAU,IAAU,GAAGD,EAAM,IAAIC,EAAQ,KACtDD,IAAQ,IAAU,GAAGA,EAAM,KACxB,GAAGC,EAAQ;AACpB"}
@@ -1,6 +1,4 @@
1
1
  import { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';
2
-
3
2
  type TranslationParams = Record<string, string | number>;
4
3
  export declare function tWithFallback(t: I18nContextValue['t'], key: string, fallback: string, params?: TranslationParams): string;
5
4
  export {};
6
- //# sourceMappingURL=i18n.d.ts.map
@@ -1,4 +1,4 @@
1
- //#region src/sandbox/utils/i18n.ts
1
+ // src/sandbox/utils/i18n.ts
2
2
  function e(e, t) {
3
3
  return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
4
4
  let r = t[n];
@@ -9,7 +9,6 @@ function t(t, n, r, i) {
9
9
  let a = t(n, i);
10
10
  return a === n ? e(r, i) : a;
11
11
  }
12
- //#endregion
13
12
  export { t as tWithFallback };
14
13
 
15
14
  //# sourceMappingURL=i18n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.js","names":[],"sources":["../../../src/sandbox/utils/i18n.ts"],"sourcesContent":["import type { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\ntype TranslationParams = Record<string, string | number>;\n\nfunction interpolateFallback(fallback: string, params?: TranslationParams): string {\n if (!params) {\n return fallback;\n }\n\n return fallback.replace(/\\{(\\w+)\\}/g, (match, key: string) => {\n const value = params[key];\n return value == null ? match : String(value);\n });\n}\n\nexport function tWithFallback(\n t: I18nContextValue['t'],\n key: string,\n fallback: string,\n params?: TranslationParams\n): string {\n const translated = t(key, params);\n return translated === key ? interpolateFallback(fallback, params) : translated;\n}\n"],"mappings":";AAIA,SAAS,EAAoB,GAAkB,GAAoC;AAKjF,QAJK,IAIE,EAAS,QAAQ,eAAe,GAAO,MAAgB;EAC5D,IAAM,IAAQ,EAAO;AACrB,SAAO,KAAS,OAAO,IAAQ,OAAO,EAAM;GAC5C,GANO;;AASX,SAAgB,EACd,GACA,GACA,GACA,GACQ;CACR,IAAM,IAAa,EAAE,GAAK,EAAO;AACjC,QAAO,MAAe,IAAM,EAAoB,GAAU,EAAO,GAAG"}
1
+ {"version":3,"file":"i18n.js","names":["interpolateFallback","params","fallback","value","key","match","tWithFallback","translated"],"sources":["../../../src/sandbox/utils/i18n.ts"],"sourcesContent":["import type { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\ntype TranslationParams = Record<string, string | number>;\n\nfunction interpolateFallback(fallback: string, params?: TranslationParams): string {\n if (!params) {\n return fallback;\n }\n\n return fallback.replace(/\\{(\\w+)\\}/g, (match, key: string) => {\n const value = params[key];\n return value == null ? match : String(value);\n });\n}\n\nexport function tWithFallback(\n t: I18nContextValue['t'],\n key: string,\n fallback: string,\n params?: TranslationParams\n): string {\n const translated = t(key, params);\n return translated === key ? interpolateFallback(fallback, params) : translated;\n}\n"],"mappings":";AAIA,SAASA,EAAoB,GAAkB,GAAoC;CAKjF,OAJKC,IAIEC,EAAS,QAAQ,eAAe,GAAO,MAAgB;EAC5D,IAAMC,IAAQF,EAAOG;EACrB,OAAOD,KAAS,OAAOE,IAAQ,OAAOF,CAAK;CAC7C,CAAC,IANQD;AAOX;AAEA,SAAgBI,EACd,GACA,GACA,GACA,GACQ;CACR,IAAMC,IAAa,EAAEH,GAAKH,CAAM;CAChC,OAAOM,MAAeH,IAAMJ,EAAoBE,GAAUD,CAAM,IAAIM;AACtE"}
@@ -27,4 +27,3 @@ export declare function stripBurdenoffRegistry(image: string): string;
27
27
  * FQDN) is returned unchanged. Empty/whitespace input returns empty.
28
28
  */
29
29
  export declare function withBurdenoffRegistry(image: string): string;
30
- //# sourceMappingURL=imageRegistry.d.ts.map
@@ -1,4 +1,4 @@
1
- //#region src/sandbox/utils/imageRegistry.ts
1
+ // src/sandbox/utils/imageRegistry.ts
2
2
  var e = "028127330334.dkr.ecr.ap-south-1.amazonaws.com", t = `${e}/sandbox/vibecontrols:2026.815.1`;
3
3
  function n(e) {
4
4
  return e.startsWith("028127330334.dkr.ecr.ap-south-1.amazonaws.com/") ? e.slice(46) : e;
@@ -7,7 +7,6 @@ function r(t) {
7
7
  let n = t.trim();
8
8
  return !n || n.startsWith("028127330334.dkr.ecr.ap-south-1.amazonaws.com/") ? n : `${e}/${n}`;
9
9
  }
10
- //#endregion
11
10
  export { e as BURDENOFF_REGISTRY, t as DEFAULT_SANDBOX_AGENT_IMAGE, n as stripBurdenoffRegistry, r as withBurdenoffRegistry };
12
11
 
13
12
  //# sourceMappingURL=imageRegistry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"imageRegistry.js","names":[],"sources":["../../../src/sandbox/utils/imageRegistry.ts"],"sourcesContent":["/**\n * Burdenoff container-registry prefix helpers for the create-sandbox form.\n *\n * In \"Burdenoff repositories\" mode the registry is rendered as a fixed prefix\n * and the editable field holds only the path-after-registry; on submit the\n * registry is re-added to produce the FQDN that sandbox-svc's registry\n * allowlist requires. Keeping these as pure, separately-tested functions makes\n * the round-trip impossible to get subtly wrong — most importantly, it\n * guarantees a value that already carries the registry is never double-prefixed\n * (`<registry>/<registry>/…`).\n *\n * The registry is Amazon ECR: it is the only first-party registry sandbox-svc\n * allowlists since the Azure decommission (2026-08-15, BOFF-6343).\n */\nexport const BURDENOFF_REGISTRY = '028127330334.dkr.ecr.ap-south-1.amazonaws.com';\n\n/**\n * Default vibecontrols-agent sandbox image (same tag as sandbox-svc's\n * DEFAULT_AGENT_SIDECAR_IMAGE). ECR carries one `sandbox/vibecontrols` repo for\n * both envs; the Azure-era `-alpha` variant was never rebuilt.\n */\nexport const DEFAULT_SANDBOX_AGENT_IMAGE = `${BURDENOFF_REGISTRY}/sandbox/vibecontrols:2026.815.1`;\n\n/** Drop the leading Burdenoff registry if present, else return as-is. */\nexport function stripBurdenoffRegistry(image: string): string {\n return image.startsWith(`${BURDENOFF_REGISTRY}/`)\n ? image.slice(BURDENOFF_REGISTRY.length + 1)\n : image;\n}\n\n/**\n * Prepend the Burdenoff registry, but never double it: a value that already\n * starts with the registry (a loaded template, an edited sandbox, or a pasted\n * FQDN) is returned unchanged. Empty/whitespace input returns empty.\n */\nexport function withBurdenoffRegistry(image: string): string {\n const trimmed = image.trim();\n if (!trimmed) return trimmed;\n if (trimmed.startsWith(`${BURDENOFF_REGISTRY}/`)) return trimmed;\n return `${BURDENOFF_REGISTRY}/${trimmed}`;\n}\n"],"mappings":";AAcA,IAAa,IAAqB,iDAOrB,IAA8B,GAAG,EAAmB;AAGjE,SAAgB,EAAuB,GAAuB;AAC5D,QAAO,EAAM,WAAW,iDAAyB,GAC7C,EAAM,MAAM,GAA8B,GAC1C;;AAQN,SAAgB,EAAsB,GAAuB;CAC3D,IAAM,IAAU,EAAM,MAAM;AAG5B,QAFI,CAAC,KACD,EAAQ,WAAW,iDAAyB,GAAS,IAClD,GAAG,EAAmB,GAAG"}
1
+ {"version":3,"file":"imageRegistry.js","names":["BURDENOFF_REGISTRY","DEFAULT_SANDBOX_AGENT_IMAGE","stripBurdenoffRegistry","image","withBurdenoffRegistry","trimmed"],"sources":["../../../src/sandbox/utils/imageRegistry.ts"],"sourcesContent":["/**\n * Burdenoff container-registry prefix helpers for the create-sandbox form.\n *\n * In \"Burdenoff repositories\" mode the registry is rendered as a fixed prefix\n * and the editable field holds only the path-after-registry; on submit the\n * registry is re-added to produce the FQDN that sandbox-svc's registry\n * allowlist requires. Keeping these as pure, separately-tested functions makes\n * the round-trip impossible to get subtly wrong — most importantly, it\n * guarantees a value that already carries the registry is never double-prefixed\n * (`<registry>/<registry>/…`).\n *\n * The registry is Amazon ECR: it is the only first-party registry sandbox-svc\n * allowlists since the Azure decommission (2026-08-15, BOFF-6343).\n */\nexport const BURDENOFF_REGISTRY = '028127330334.dkr.ecr.ap-south-1.amazonaws.com';\n\n/**\n * Default vibecontrols-agent sandbox image (same tag as sandbox-svc's\n * DEFAULT_AGENT_SIDECAR_IMAGE). ECR carries one `sandbox/vibecontrols` repo for\n * both envs; the Azure-era `-alpha` variant was never rebuilt.\n */\nexport const DEFAULT_SANDBOX_AGENT_IMAGE = `${BURDENOFF_REGISTRY}/sandbox/vibecontrols:2026.815.1`;\n\n/** Drop the leading Burdenoff registry if present, else return as-is. */\nexport function stripBurdenoffRegistry(image: string): string {\n return image.startsWith(`${BURDENOFF_REGISTRY}/`)\n ? image.slice(BURDENOFF_REGISTRY.length + 1)\n : image;\n}\n\n/**\n * Prepend the Burdenoff registry, but never double it: a value that already\n * starts with the registry (a loaded template, an edited sandbox, or a pasted\n * FQDN) is returned unchanged. Empty/whitespace input returns empty.\n */\nexport function withBurdenoffRegistry(image: string): string {\n const trimmed = image.trim();\n if (!trimmed) return trimmed;\n if (trimmed.startsWith(`${BURDENOFF_REGISTRY}/`)) return trimmed;\n return `${BURDENOFF_REGISTRY}/${trimmed}`;\n}\n"],"mappings":";AAcA,IAAaA,IAAqB,iDAOrBC,IAA8B,GAAGD,EAAmB;AAGjE,SAAgBE,EAAuB,GAAuB;CAC5D,OAAOC,EAAM,WAAW,gDAAwB,IAC5CA,EAAM,MAAM,EAA6B,IACzCA;AACN;AAOA,SAAgBC,EAAsB,GAAuB;CAC3D,IAAMC,IAAUF,EAAM,KAAK;CAG3B,OAFI,CAACE,KACDA,EAAQ,WAAW,gDAAwB,IAAUA,IAClD,GAAGL,EAAmB,GAAGK;AAClC"}
@@ -2,4 +2,3 @@
2
2
  * Join base path with a relative path, avoiding double slashes
3
3
  */
4
4
  export declare function joinPath(base: string, path: string): string;
5
- //# sourceMappingURL=navigation.d.ts.map
@@ -1,8 +1,7 @@
1
- //#region src/sandbox/utils/navigation.ts
1
+ // src/sandbox/utils/navigation.ts
2
2
  function e(e, t) {
3
3
  return (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
4
4
  }
5
- //#endregion
6
5
  export { e as joinPath };
7
6
 
8
7
  //# sourceMappingURL=navigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.js","names":[],"sources":["../../../src/sandbox/utils/navigation.ts"],"sourcesContent":["/**\n * Join base path with a relative path, avoiding double slashes\n */\nexport function joinPath(base: string, path: string): string {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n}\n"],"mappings":";AAGA,SAAgB,EAAS,GAAc,GAAsB;AAG3D,SAFkB,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI"}
1
+ {"version":3,"file":"navigation.js","names":["joinPath","base","path"],"sources":["../../../src/sandbox/utils/navigation.ts"],"sourcesContent":["/**\n * Join base path with a relative path, avoiding double slashes\n */\nexport function joinPath(base: string, path: string): string {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n}\n"],"mappings":";AAGA,SAAgBA,EAAS,GAAc,GAAsB;CAG3D,QAFkBC,EAAK,SAAS,GAAG,IAAIA,EAAK,MAAM,GAAG,EAAE,IAAIA,MACzCC,EAAK,WAAW,GAAG,IAAIA,IAAO,IAAIA;AAEtD"}
@@ -1,5 +1,4 @@
1
1
  import { SandboxCreatedPayload, SandboxStartedPayload, SandboxExtendedPayload, SandboxExpiredPayload, SandboxDeletedPayload, SandboxTemplateCreatedPayload, SandboxTemplateDeletedPayload, SandboxExportRequestedPayload } from '@burdenoff/fe-libs/shared/events';
2
-
3
2
  export declare function useSandboxEvents(): {
4
3
  sandboxCreated: (p: SandboxCreatedPayload) => void;
5
4
  sandboxStarted: (p: SandboxStartedPayload) => void;
@@ -10,4 +9,3 @@ export declare function useSandboxEvents(): {
10
9
  sandboxTemplateDeleted: (p: SandboxTemplateDeletedPayload) => void;
11
10
  sandboxExportRequested: (p: SandboxExportRequestedPayload) => void;
12
11
  };
13
- //# sourceMappingURL=sandboxEvents.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { useMemo as e } from "react";
2
2
  import { useEventBus as t } from "@burdenoff/fe-libs/shared/events";
3
- //#region src/sandbox/utils/sandboxEvents.ts
3
+ // src/sandbox/utils/sandboxEvents.ts
4
4
  function n() {
5
5
  let n = t();
6
6
  return e(() => ({
@@ -14,7 +14,6 @@ function n() {
14
14
  sandboxExportRequested: (e) => n.emit("vc.sandbox.export_requested", e)
15
15
  }), [n]);
16
16
  }
17
- //#endregion
18
17
  export { n as useSandboxEvents };
19
18
 
20
19
  //# sourceMappingURL=sandboxEvents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxEvents.js","names":[],"sources":["../../../src/sandbox/utils/sandboxEvents.ts"],"sourcesContent":["/**\n * Sandbox-namespaced wrapper over the platform `useEventBus()`.\n *\n * Event names + payloads are registered in `fe-libs/src/shared/events/index.tsx`\n * and documented in `workspaces-specs/modules/sandbox/specs/16-event-bus.md`.\n */\nimport { useMemo } from 'react';\nimport {\n useEventBus,\n type SandboxCreatedPayload,\n type SandboxStartedPayload,\n type SandboxExtendedPayload,\n type SandboxExpiredPayload,\n type SandboxDeletedPayload,\n type SandboxTemplateCreatedPayload,\n type SandboxTemplateDeletedPayload,\n type SandboxExportRequestedPayload,\n} from '@burdenoff/fe-libs/shared/events';\n\nexport function useSandboxEvents() {\n const bus = useEventBus();\n return useMemo(\n () => ({\n sandboxCreated: (p: SandboxCreatedPayload) => bus.emit('vc.sandbox.created', p),\n sandboxStarted: (p: SandboxStartedPayload) => bus.emit('vc.sandbox.started', p),\n sandboxExtended: (p: SandboxExtendedPayload) => bus.emit('vc.sandbox.extended', p),\n sandboxExpired: (p: SandboxExpiredPayload) => bus.emit('vc.sandbox.expired', p),\n sandboxDeleted: (p: SandboxDeletedPayload) => bus.emit('vc.sandbox.deleted', p),\n sandboxTemplateCreated: (p: SandboxTemplateCreatedPayload) =>\n bus.emit('vc.sandbox.template_created', p),\n sandboxTemplateDeleted: (p: SandboxTemplateDeletedPayload) =>\n bus.emit('vc.sandbox.template_deleted', p),\n sandboxExportRequested: (p: SandboxExportRequestedPayload) =>\n bus.emit('vc.sandbox.export_requested', p),\n }),\n [bus]\n );\n}\n"],"mappings":";;;AAmBA,SAAgB,IAAmB;CACjC,IAAM,IAAM,GAAa;AACzB,QAAO,SACE;EACL,iBAAiB,MAA6B,EAAI,KAAK,sBAAsB,EAAE;EAC/E,iBAAiB,MAA6B,EAAI,KAAK,sBAAsB,EAAE;EAC/E,kBAAkB,MAA8B,EAAI,KAAK,uBAAuB,EAAE;EAClF,iBAAiB,MAA6B,EAAI,KAAK,sBAAsB,EAAE;EAC/E,iBAAiB,MAA6B,EAAI,KAAK,sBAAsB,EAAE;EAC/E,yBAAyB,MACvB,EAAI,KAAK,+BAA+B,EAAE;EAC5C,yBAAyB,MACvB,EAAI,KAAK,+BAA+B,EAAE;EAC5C,yBAAyB,MACvB,EAAI,KAAK,+BAA+B,EAAE;EAC7C,GACD,CAAC,EAAI,CACN"}
1
+ {"version":3,"file":"sandboxEvents.js","names":["useSandboxEvents","bus","useEventBus","useMemo","p"],"sources":["../../../src/sandbox/utils/sandboxEvents.ts"],"sourcesContent":["/**\n * Sandbox-namespaced wrapper over the platform `useEventBus()`.\n *\n * Event names + payloads are registered in `fe-libs/src/shared/events/index.tsx`\n * and documented in `workspaces-specs/modules/sandbox/specs/16-event-bus.md`.\n */\nimport { useMemo } from 'react';\nimport {\n useEventBus,\n type SandboxCreatedPayload,\n type SandboxStartedPayload,\n type SandboxExtendedPayload,\n type SandboxExpiredPayload,\n type SandboxDeletedPayload,\n type SandboxTemplateCreatedPayload,\n type SandboxTemplateDeletedPayload,\n type SandboxExportRequestedPayload,\n} from '@burdenoff/fe-libs/shared/events';\n\nexport function useSandboxEvents() {\n const bus = useEventBus();\n return useMemo(\n () => ({\n sandboxCreated: (p: SandboxCreatedPayload) => bus.emit('vc.sandbox.created', p),\n sandboxStarted: (p: SandboxStartedPayload) => bus.emit('vc.sandbox.started', p),\n sandboxExtended: (p: SandboxExtendedPayload) => bus.emit('vc.sandbox.extended', p),\n sandboxExpired: (p: SandboxExpiredPayload) => bus.emit('vc.sandbox.expired', p),\n sandboxDeleted: (p: SandboxDeletedPayload) => bus.emit('vc.sandbox.deleted', p),\n sandboxTemplateCreated: (p: SandboxTemplateCreatedPayload) =>\n bus.emit('vc.sandbox.template_created', p),\n sandboxTemplateDeleted: (p: SandboxTemplateDeletedPayload) =>\n bus.emit('vc.sandbox.template_deleted', p),\n sandboxExportRequested: (p: SandboxExportRequestedPayload) =>\n bus.emit('vc.sandbox.export_requested', p),\n }),\n [bus]\n );\n}\n"],"mappings":";;;AAmBA,SAAgBA,IAAmB;CACjC,IAAMC,IAAMC,EAAY;CACxB,OAAOC,SACE;EACL,iBAAiB,MAA6BF,EAAI,KAAK,sBAAsBG,CAAC;EAC9E,iBAAiB,MAA6BH,EAAI,KAAK,sBAAsBG,CAAC;EAC9E,kBAAkB,MAA8BH,EAAI,KAAK,uBAAuBG,CAAC;EACjF,iBAAiB,MAA6BH,EAAI,KAAK,sBAAsBG,CAAC;EAC9E,iBAAiB,MAA6BH,EAAI,KAAK,sBAAsBG,CAAC;EAC9E,yBAAyB,MACvBH,EAAI,KAAK,+BAA+BG,CAAC;EAC3C,yBAAyB,MACvBH,EAAI,KAAK,+BAA+BG,CAAC;EAC3C,yBAAyB,MACvBH,EAAI,KAAK,+BAA+BG,CAAC;CAC7C,IACA,CAACH,CAAG,CACN;AACF"}
@@ -874,4 +874,3 @@ export declare const enTranslations: {
874
874
  };
875
875
  };
876
876
  };
877
- //# sourceMappingURL=en.d.ts.map
@@ -1,4 +1,4 @@
1
- //#region src/translations/en.ts
1
+ // src/translations/en.ts
2
2
  var e = { sandbox: {
3
3
  nav: {
4
4
  rootLabel: "Sandbox",
@@ -747,7 +747,6 @@ var e = { sandbox: {
747
747
  } }
748
748
  }
749
749
  } };
750
- //#endregion
751
750
  export { e as enTranslations };
752
751
 
753
752
  //# sourceMappingURL=en.js.map