@tangle-network/agent-app 0.58.17 → 0.58.18

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 (37) hide show
  1. package/dist/{DesignCanvasEditor-HB7HTZUT.js → DesignCanvasEditor-4FPLJ3YJ.js} +3 -3
  2. package/dist/agent-profiles/d1.js +3 -3
  3. package/dist/agent-profiles/index.js +3 -3
  4. package/dist/assistant/index.js +1 -1
  5. package/dist/chat-routes/index.js +4 -4
  6. package/dist/{chunk-4YHE7PGO.js → chunk-D7WMRSX6.js} +2 -2
  7. package/dist/{chunk-IBTM5SAZ.js → chunk-DP7LKSNA.js} +3 -3
  8. package/dist/{chunk-YPP6OJGC.js → chunk-DWUSVC3U.js} +2 -2
  9. package/dist/{chunk-LYDOZKSX.js → chunk-GJRGCVDV.js} +10 -3
  10. package/dist/{chunk-LYDOZKSX.js.map → chunk-GJRGCVDV.js.map} +1 -1
  11. package/dist/{chunk-4CBU7QIL.js → chunk-HS4Y6CGH.js} +2 -2
  12. package/dist/{chunk-NZNXHCVU.js → chunk-HUPJOCBH.js} +5 -5
  13. package/dist/{chunk-NZNXHCVU.js.map → chunk-HUPJOCBH.js.map} +1 -1
  14. package/dist/{chunk-ZBZA7KSL.js → chunk-VUXCM5ZO.js} +1 -1
  15. package/dist/{chunk-ZBZA7KSL.js.map → chunk-VUXCM5ZO.js.map} +1 -1
  16. package/dist/{chunk-6KZ4ZTLG.js → chunk-XCBDWT5H.js} +2 -2
  17. package/dist/{chunk-4ZMZDE24.js → chunk-ZYK3A2FR.js} +4 -4
  18. package/dist/design-canvas-react/index.js +3 -3
  19. package/dist/design-canvas-react/lazy.js +1 -1
  20. package/dist/preset-cloudflare/index.js +2 -2
  21. package/dist/sandbox/index.js +4 -4
  22. package/dist/theme/brand.generated.d.ts +1 -1
  23. package/dist/theme/index.js +1 -1
  24. package/dist/theme/tokens.css +17 -2
  25. package/dist/tools/index.js +4 -4
  26. package/dist/web-react/index.js +1 -1
  27. package/dist/work-product/index.js +2 -2
  28. package/dist/workspace-react/index.js +11 -7
  29. package/dist/workspace-react/index.js.map +1 -1
  30. package/package.json +5 -5
  31. /package/dist/{DesignCanvasEditor-HB7HTZUT.js.map → DesignCanvasEditor-4FPLJ3YJ.js.map} +0 -0
  32. /package/dist/{chunk-4YHE7PGO.js.map → chunk-D7WMRSX6.js.map} +0 -0
  33. /package/dist/{chunk-IBTM5SAZ.js.map → chunk-DP7LKSNA.js.map} +0 -0
  34. /package/dist/{chunk-YPP6OJGC.js.map → chunk-DWUSVC3U.js.map} +0 -0
  35. /package/dist/{chunk-4CBU7QIL.js.map → chunk-HS4Y6CGH.js.map} +0 -0
  36. /package/dist/{chunk-6KZ4ZTLG.js.map → chunk-XCBDWT5H.js.map} +0 -0
  37. /package/dist/{chunk-4ZMZDE24.js.map → chunk-ZYK3A2FR.js.map} +0 -0
@@ -147,4 +147,4 @@ export {
147
147
  themeColor,
148
148
  themeToCssVars
149
149
  };
150
- //# sourceMappingURL=chunk-ZBZA7KSL.js.map
150
+ //# sourceMappingURL=chunk-VUXCM5ZO.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/theme/brand.generated.ts","../src/theme/theme.ts"],"sourcesContent":["/** GENERATED from @tangle-network/brand/styles/legacy-light.css\n * SHA-256: f806a1a96207921493e506e2007b883eba7138639d396a1af91c7abe4cb3d901\n * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */\nexport const brandThemes = {\n \"light\": {\n \"background\": \"223 23% 94%\",\n \"foreground\": \"0 0% 17.6471%\",\n \"card\": \"0 0% 100%\",\n \"cardForeground\": \"0 0% 17.6471%\",\n \"popover\": \"0 0% 100%\",\n \"popoverForeground\": \"0 0% 17.6471%\",\n \"primary\": \"243.2787 80.6167% 55.4902%\",\n \"primaryForeground\": \"0 0% 100%\",\n \"secondary\": \"230 27% 96%\",\n \"secondaryForeground\": \"0 0% 17.6471%\",\n \"muted\": \"230 27% 96%\",\n \"mutedForeground\": \"0 0% 29.8039%\",\n \"accent\": \"230 27% 96%\",\n \"accentForeground\": \"0 0% 17.6471%\",\n \"destructive\": \"0 73.7089% 41.7647%\",\n \"destructiveForeground\": \"0 0% 100%\",\n \"border\": \"244 16% 81%\",\n \"input\": \"0 0% 29.8039%\",\n \"ring\": \"246 54% 51%\",\n \"success\": \"162.931 93.5484% 24.3137%\",\n \"warning\": \"41 96% 50%\",\n \"successForeground\": \"0 0% 100%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"25.9259 90% 35.2941%\",\n \"inputFill\": \"hsl(225 29% 97%)\",\n \"canvasBackdrop\": \"#dcdee6\",\n \"borderSoft\": \"rgba(0, 0, 0, 0.10)\",\n \"cardEdge\": \"rgba(0, 0, 0, 0.14)\",\n \"canvasRender\": {\n \"grid\": \"#c7c6d6\",\n \"snapGrid\": \"#787878\",\n \"snapGuide\": \"#0369a1\",\n \"snapPage\": \"#ab4f09\",\n \"snapElement\": \"#b91c1c\",\n \"selectionStroke\": \"#3c32e9\",\n \"selectionAnchorFill\": \"#ffffff\",\n \"placeholderFill\": \"#f6f7fa\",\n \"placeholderStroke\": \"#c7c6d6\",\n \"brokenFill\": \"#f1f2f7\",\n \"brokenStroke\": \"#787878\"\n }\n },\n \"dark\": {\n \"background\": \"240 33% 6%\",\n \"foreground\": \"0 0% 90.1961%\",\n \"card\": \"244 23% 12%\",\n \"cardForeground\": \"0 0% 90.1961%\",\n \"popover\": \"247 23% 21%\",\n \"popoverForeground\": \"0 0% 90.1961%\",\n \"primary\": \"229.6552 93.5484% 81.7647%\",\n \"primaryForeground\": \"0 0% 0%\",\n \"secondary\": \"249 24% 16%\",\n \"secondaryForeground\": \"0 0% 90.1961%\",\n \"muted\": \"249 24% 16%\",\n \"mutedForeground\": \"240 5% 68%\",\n \"accent\": \"249 24% 16%\",\n \"accentForeground\": \"0 0% 90.1961%\",\n \"destructive\": \"2.7907 100% 83.1373%\",\n \"destructiveForeground\": \"0 0% 0%\",\n \"border\": \"243 20% 20%\",\n \"input\": \"240 5% 68%\",\n \"ring\": \"233 100% 87%\",\n \"success\": \"154.7107 60.199% 60.5882%\",\n \"warning\": \"40 94% 56%\",\n \"successForeground\": \"0 0% 0%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"41.4545 88.2353% 63.3333%\",\n \"inputFill\": \"hsl(244 29% 9%)\",\n \"canvasBackdrop\": \"#060610\",\n \"borderSoft\": \"rgba(255, 255, 255, 0.10)\",\n \"cardEdge\": \"rgba(255, 255, 255, 0.16)\",\n \"canvasRender\": {\n \"grid\": \"#2a293d\",\n \"snapGrid\": \"#8e8e8e\",\n \"snapGuide\": \"#67cdff\",\n \"snapPage\": \"#f4c14f\",\n \"snapElement\": \"#ffada9\",\n \"selectionStroke\": \"#a5b4fc\",\n \"selectionAnchorFill\": \"#232238\",\n \"placeholderFill\": \"#12111f\",\n \"placeholderStroke\": \"#2a293d\",\n \"brokenFill\": \"#221f33\",\n \"brokenStroke\": \"#8e8e8e\"\n }\n }\n} as const\n","/** Brand-derived HSL compatibility and bitmap snapshots. Regenerate with src/theme/build.mjs; never author a second palette here. */\nimport { brandThemes } from './brand.generated'\n\nexport interface AgentAppTheme {\n background: string\n foreground: string\n card: string\n cardForeground: string\n popover: string\n popoverForeground: string\n primary: string\n primaryForeground: string\n secondary: string\n secondaryForeground: string\n muted: string\n mutedForeground: string\n accent: string\n accentForeground: string\n destructive: string\n destructiveForeground: string\n border: string\n input: string\n /** Full field fill, distinct from the input border. Optional for existing custom themes. */\n inputFill?: string\n ring: string\n success: string\n successForeground: string\n warning: string\n warningForeground: string\n /**\n * Warning as TEXT on a warning-TINTED surface, as a channel triple. Optional\n * so a consumer's existing `AgentAppTheme` literal still type-checks;\n * {@link themeToCssVars} falls back to `warningForeground`, which is what the\n * surface used before this token existed.\n */\n warningStrong?: string\n /** Full CSS color (not a triple) — the canvas/scene backdrop. */\n canvasBackdrop: string\n /**\n * Border tiers as FULL CSS colors (they are `color-mix()` results, not\n * triples). Optional so a consumer's existing `AgentAppTheme` literal still\n * type-checks; {@link themeToCssVars} falls back to full-strength\n * `hsl(var(--border))`, which can never erase an edge.\n */\n borderSoft?: string\n /** @see borderSoft */\n cardEdge?: string\n /** Konva render palette — full hex colors the bitmap canvas paints with\n * (it cannot resolve `var(--…)`). NOT emitted by themeToCssVars. */\n canvasRender: CanvasRenderPalette\n}\n\n/**\n * Colors the Konva design-canvas paints directly. Konva renders to a bitmap\n * and cannot read CSS custom properties, so these are full hex strings sourced\n * from the active theme and threaded through the canvas components.\n */\nexport interface CanvasRenderPalette {\n /** Grid line color (GridLayer). */\n grid: string\n /** Grid-snap guide line (SnapGuidesOverlay, kind 'grid'). */\n snapGrid: string\n /** Saved ruler-guide snap line (kind 'guide'). */\n snapGuide: string\n /** Page edge/center snap line (kinds 'page-edge'/'page-center'). */\n snapPage: string\n /** Element edge/center snap line (kinds 'element-edge'/'element-center'). */\n snapElement: string\n /** Transformer border + anchor stroke (SelectionLayer). */\n selectionStroke: string\n /** Transformer anchor fill (SelectionLayer). */\n selectionAnchorFill: string\n /** Video placeholder fill (ElementNode VideoNode). */\n placeholderFill: string\n /** Video placeholder stroke (ElementNode VideoNode). */\n placeholderStroke: string\n /** Broken/loading image placeholder fill (ElementNode ImageNode). */\n brokenFill: string\n /** Broken/loading image placeholder stroke (ElementNode ImageNode). */\n brokenStroke: string\n}\n\n/** Define a light color theme with specific background, foreground, and accent color values */\nexport const lightTheme: AgentAppTheme = brandThemes.light\n\n/** Canonical Brand dark values projected for legacy JS and bitmap callers. */\nexport const darkTheme: AgentAppTheme = brandThemes.dark\n\n/**\n * Wrap a channel triple in `hsl()`; pass through values already in a color form.\n * `oklch(…)` / `oklab(…)` / `color-mix(…)` are recognised because the ramp is\n * authored in oklch and the border tiers are colour mixes — wrapping either in\n * `hsl()` yields an invalid colour that paints as nothing.\n */\nexport function themeColor(value: string): string {\n return /^(hsl|rgb|oklch|oklab|lch|lab|color|color-mix|#)/.test(value) ? value : `hsl(${value})`\n}\n\n/**\n * Map a theme to the full CSS-variable set (shadcn triples + canvas/sequences\n * aliases + canvas surface). Apply at runtime to scope a theme without loading\n * tokens.css: `Object.assign(el.style, themeToCssVars(darkTheme))`.\n */\nexport function themeToCssVars(theme: AgentAppTheme): Record<string, string> {\n return {\n '--background': theme.background,\n '--foreground': theme.foreground,\n '--card': theme.card,\n '--card-foreground': theme.cardForeground,\n '--popover': theme.popover,\n '--popover-foreground': theme.popoverForeground,\n '--primary': theme.primary,\n '--primary-foreground': theme.primaryForeground,\n '--secondary': theme.secondary,\n '--secondary-foreground': theme.secondaryForeground,\n '--muted': theme.muted,\n '--muted-foreground': theme.mutedForeground,\n '--accent': theme.accent,\n '--accent-foreground': theme.accentForeground,\n '--destructive': theme.destructive,\n '--destructive-foreground': theme.destructiveForeground,\n '--border': theme.border,\n '--input': theme.input,\n '--ring': theme.ring,\n '--success': theme.success,\n '--success-foreground': theme.successForeground,\n '--warning': theme.warning,\n '--warning-foreground': theme.warningForeground,\n // Falls back to the pairing the tinted surfaces used before this token\n // existed, so an unset value restores the previous look rather than an\n // unthemed one.\n '--warning-strong': theme.warningStrong ?? theme.warningForeground,\n '--bg-input': theme.inputFill ?? `hsl(${theme.card})`,\n '--text-primary': `hsl(${theme.foreground})`,\n '--text-secondary': `hsl(${theme.secondaryForeground})`,\n '--text-muted': `hsl(${theme.mutedForeground})`,\n '--text-danger': `hsl(${theme.destructive})`,\n '--text-warning': `hsl(${theme.warningStrong ?? theme.warningForeground})`,\n '--border-default': `hsl(${theme.border})`,\n '--brand-primary': `hsl(${theme.primary})`,\n '--editor-selection-background': `hsl(${theme.primary})`,\n '--editor-selection-foreground': `hsl(${theme.primaryForeground})`,\n '--canvas-backdrop': theme.canvasBackdrop,\n // Full strength is the safe default: an unset tier can under-draw an edge,\n // never erase one.\n '--border-soft': theme.borderSoft ?? `hsl(${theme.border})`,\n '--card-edge': theme.cardEdge ?? `hsl(${theme.border})`,\n }\n}\n"],"mappings":";AAGO,I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,IAClD,kBAAkB,OAAO,MAAM,UAAU;AAAA,IACzC,oBAAoB,OAAO,MAAM,mBAAmB;AAAA,IACpD,gBAAgB,OAAO,MAAM,eAAe;AAAA,IAC5C,iBAAiB,OAAO,MAAM,WAAW;AAAA,IACzC,kBAAkB,OAAO,MAAM,iBAAiB,MAAM,iBAAiB;AAAA,IACvE,oBAAoB,OAAO,MAAM,MAAM;AAAA,IACvC,mBAAmB,OAAO,MAAM,OAAO;AAAA,IACvC,iCAAiC,OAAO,MAAM,OAAO;AAAA,IACrD,iCAAiC,OAAO,MAAM,iBAAiB;AAAA,IAC/D,qBAAqB,MAAM;AAAA;AAAA;AAAA,IAG3B,iBAAiB,MAAM,cAAc,OAAO,MAAM,MAAM;AAAA,IACxD,eAAe,MAAM,YAAY,OAAO,MAAM,MAAM;AAAA,EACtD;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/theme/brand.generated.ts","../src/theme/theme.ts"],"sourcesContent":["/** GENERATED from @tangle-network/brand/styles/legacy-light.css\n * SHA-256: cbb8fe7d4441db729bc299cdcecc165a519d0dfe29930b11ade7feb5070007f4\n * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */\nexport const brandThemes = {\n \"light\": {\n \"background\": \"223 23% 94%\",\n \"foreground\": \"0 0% 17.6471%\",\n \"card\": \"0 0% 100%\",\n \"cardForeground\": \"0 0% 17.6471%\",\n \"popover\": \"0 0% 100%\",\n \"popoverForeground\": \"0 0% 17.6471%\",\n \"primary\": \"243.2787 80.6167% 55.4902%\",\n \"primaryForeground\": \"0 0% 100%\",\n \"secondary\": \"230 27% 96%\",\n \"secondaryForeground\": \"0 0% 17.6471%\",\n \"muted\": \"230 27% 96%\",\n \"mutedForeground\": \"0 0% 29.8039%\",\n \"accent\": \"230 27% 96%\",\n \"accentForeground\": \"0 0% 17.6471%\",\n \"destructive\": \"0 73.7089% 41.7647%\",\n \"destructiveForeground\": \"0 0% 100%\",\n \"border\": \"244 16% 81%\",\n \"input\": \"0 0% 29.8039%\",\n \"ring\": \"246 54% 51%\",\n \"success\": \"162.931 93.5484% 24.3137%\",\n \"warning\": \"41 96% 50%\",\n \"successForeground\": \"0 0% 100%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"25.9259 90% 35.2941%\",\n \"inputFill\": \"hsl(225 29% 97%)\",\n \"canvasBackdrop\": \"#dcdee6\",\n \"borderSoft\": \"rgba(0, 0, 0, 0.10)\",\n \"cardEdge\": \"rgba(0, 0, 0, 0.14)\",\n \"canvasRender\": {\n \"grid\": \"#c7c6d6\",\n \"snapGrid\": \"#787878\",\n \"snapGuide\": \"#0369a1\",\n \"snapPage\": \"#ab4f09\",\n \"snapElement\": \"#b91c1c\",\n \"selectionStroke\": \"#3c32e9\",\n \"selectionAnchorFill\": \"#ffffff\",\n \"placeholderFill\": \"#f6f7fa\",\n \"placeholderStroke\": \"#c7c6d6\",\n \"brokenFill\": \"#f1f2f7\",\n \"brokenStroke\": \"#787878\"\n }\n },\n \"dark\": {\n \"background\": \"240 33% 6%\",\n \"foreground\": \"0 0% 90.1961%\",\n \"card\": \"244 23% 12%\",\n \"cardForeground\": \"0 0% 90.1961%\",\n \"popover\": \"247 23% 21%\",\n \"popoverForeground\": \"0 0% 90.1961%\",\n \"primary\": \"229.6552 93.5484% 81.7647%\",\n \"primaryForeground\": \"0 0% 0%\",\n \"secondary\": \"249 24% 16%\",\n \"secondaryForeground\": \"0 0% 90.1961%\",\n \"muted\": \"249 24% 16%\",\n \"mutedForeground\": \"240 5% 68%\",\n \"accent\": \"249 24% 16%\",\n \"accentForeground\": \"0 0% 90.1961%\",\n \"destructive\": \"2.7907 100% 83.1373%\",\n \"destructiveForeground\": \"0 0% 0%\",\n \"border\": \"243 20% 20%\",\n \"input\": \"240 5% 68%\",\n \"ring\": \"233 100% 87%\",\n \"success\": \"154.7107 60.199% 60.5882%\",\n \"warning\": \"40 94% 56%\",\n \"successForeground\": \"0 0% 0%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"41.4545 88.2353% 63.3333%\",\n \"inputFill\": \"hsl(244 29% 9%)\",\n \"canvasBackdrop\": \"#060610\",\n \"borderSoft\": \"rgba(255, 255, 255, 0.10)\",\n \"cardEdge\": \"rgba(255, 255, 255, 0.16)\",\n \"canvasRender\": {\n \"grid\": \"#2a293d\",\n \"snapGrid\": \"#8e8e8e\",\n \"snapGuide\": \"#67cdff\",\n \"snapPage\": \"#f4c14f\",\n \"snapElement\": \"#ffada9\",\n \"selectionStroke\": \"#a5b4fc\",\n \"selectionAnchorFill\": \"#232238\",\n \"placeholderFill\": \"#12111f\",\n \"placeholderStroke\": \"#2a293d\",\n \"brokenFill\": \"#221f33\",\n \"brokenStroke\": \"#8e8e8e\"\n }\n }\n} as const\n","/** Brand-derived HSL compatibility and bitmap snapshots. Regenerate with src/theme/build.mjs; never author a second palette here. */\nimport { brandThemes } from './brand.generated'\n\nexport interface AgentAppTheme {\n background: string\n foreground: string\n card: string\n cardForeground: string\n popover: string\n popoverForeground: string\n primary: string\n primaryForeground: string\n secondary: string\n secondaryForeground: string\n muted: string\n mutedForeground: string\n accent: string\n accentForeground: string\n destructive: string\n destructiveForeground: string\n border: string\n input: string\n /** Full field fill, distinct from the input border. Optional for existing custom themes. */\n inputFill?: string\n ring: string\n success: string\n successForeground: string\n warning: string\n warningForeground: string\n /**\n * Warning as TEXT on a warning-TINTED surface, as a channel triple. Optional\n * so a consumer's existing `AgentAppTheme` literal still type-checks;\n * {@link themeToCssVars} falls back to `warningForeground`, which is what the\n * surface used before this token existed.\n */\n warningStrong?: string\n /** Full CSS color (not a triple) — the canvas/scene backdrop. */\n canvasBackdrop: string\n /**\n * Border tiers as FULL CSS colors (they are `color-mix()` results, not\n * triples). Optional so a consumer's existing `AgentAppTheme` literal still\n * type-checks; {@link themeToCssVars} falls back to full-strength\n * `hsl(var(--border))`, which can never erase an edge.\n */\n borderSoft?: string\n /** @see borderSoft */\n cardEdge?: string\n /** Konva render palette — full hex colors the bitmap canvas paints with\n * (it cannot resolve `var(--…)`). NOT emitted by themeToCssVars. */\n canvasRender: CanvasRenderPalette\n}\n\n/**\n * Colors the Konva design-canvas paints directly. Konva renders to a bitmap\n * and cannot read CSS custom properties, so these are full hex strings sourced\n * from the active theme and threaded through the canvas components.\n */\nexport interface CanvasRenderPalette {\n /** Grid line color (GridLayer). */\n grid: string\n /** Grid-snap guide line (SnapGuidesOverlay, kind 'grid'). */\n snapGrid: string\n /** Saved ruler-guide snap line (kind 'guide'). */\n snapGuide: string\n /** Page edge/center snap line (kinds 'page-edge'/'page-center'). */\n snapPage: string\n /** Element edge/center snap line (kinds 'element-edge'/'element-center'). */\n snapElement: string\n /** Transformer border + anchor stroke (SelectionLayer). */\n selectionStroke: string\n /** Transformer anchor fill (SelectionLayer). */\n selectionAnchorFill: string\n /** Video placeholder fill (ElementNode VideoNode). */\n placeholderFill: string\n /** Video placeholder stroke (ElementNode VideoNode). */\n placeholderStroke: string\n /** Broken/loading image placeholder fill (ElementNode ImageNode). */\n brokenFill: string\n /** Broken/loading image placeholder stroke (ElementNode ImageNode). */\n brokenStroke: string\n}\n\n/** Define a light color theme with specific background, foreground, and accent color values */\nexport const lightTheme: AgentAppTheme = brandThemes.light\n\n/** Canonical Brand dark values projected for legacy JS and bitmap callers. */\nexport const darkTheme: AgentAppTheme = brandThemes.dark\n\n/**\n * Wrap a channel triple in `hsl()`; pass through values already in a color form.\n * `oklch(…)` / `oklab(…)` / `color-mix(…)` are recognised because the ramp is\n * authored in oklch and the border tiers are colour mixes — wrapping either in\n * `hsl()` yields an invalid colour that paints as nothing.\n */\nexport function themeColor(value: string): string {\n return /^(hsl|rgb|oklch|oklab|lch|lab|color|color-mix|#)/.test(value) ? value : `hsl(${value})`\n}\n\n/**\n * Map a theme to the full CSS-variable set (shadcn triples + canvas/sequences\n * aliases + canvas surface). Apply at runtime to scope a theme without loading\n * tokens.css: `Object.assign(el.style, themeToCssVars(darkTheme))`.\n */\nexport function themeToCssVars(theme: AgentAppTheme): Record<string, string> {\n return {\n '--background': theme.background,\n '--foreground': theme.foreground,\n '--card': theme.card,\n '--card-foreground': theme.cardForeground,\n '--popover': theme.popover,\n '--popover-foreground': theme.popoverForeground,\n '--primary': theme.primary,\n '--primary-foreground': theme.primaryForeground,\n '--secondary': theme.secondary,\n '--secondary-foreground': theme.secondaryForeground,\n '--muted': theme.muted,\n '--muted-foreground': theme.mutedForeground,\n '--accent': theme.accent,\n '--accent-foreground': theme.accentForeground,\n '--destructive': theme.destructive,\n '--destructive-foreground': theme.destructiveForeground,\n '--border': theme.border,\n '--input': theme.input,\n '--ring': theme.ring,\n '--success': theme.success,\n '--success-foreground': theme.successForeground,\n '--warning': theme.warning,\n '--warning-foreground': theme.warningForeground,\n // Falls back to the pairing the tinted surfaces used before this token\n // existed, so an unset value restores the previous look rather than an\n // unthemed one.\n '--warning-strong': theme.warningStrong ?? theme.warningForeground,\n '--bg-input': theme.inputFill ?? `hsl(${theme.card})`,\n '--text-primary': `hsl(${theme.foreground})`,\n '--text-secondary': `hsl(${theme.secondaryForeground})`,\n '--text-muted': `hsl(${theme.mutedForeground})`,\n '--text-danger': `hsl(${theme.destructive})`,\n '--text-warning': `hsl(${theme.warningStrong ?? theme.warningForeground})`,\n '--border-default': `hsl(${theme.border})`,\n '--brand-primary': `hsl(${theme.primary})`,\n '--editor-selection-background': `hsl(${theme.primary})`,\n '--editor-selection-foreground': `hsl(${theme.primaryForeground})`,\n '--canvas-backdrop': theme.canvasBackdrop,\n // Full strength is the safe default: an unset tier can under-draw an edge,\n // never erase one.\n '--border-soft': theme.borderSoft ?? `hsl(${theme.border})`,\n '--card-edge': theme.cardEdge ?? `hsl(${theme.border})`,\n }\n}\n"],"mappings":";AAGO,IAAM,cAAc;AAAA,EACzB,SAAS;AAAA,IACP,cAAc;AAAA,IACd,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,kBAAkB;AAAA,IAClB,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,WAAW;AAAA,IACX,qBAA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B,OAAO,MAAM,iBAAiB,MAAM,iBAAiB;AAAA,IACvE,oBAAoB,OAAO,MAAM,MAAM;AAAA,IACvC,mBAAmB,OAAO,MAAM,OAAO;AAAA,IACvC,iCAAiC,OAAO,MAAM,OAAO;AAAA,IACrD,iCAAiC,OAAO,MAAM,iBAAiB;AAAA,IAC/D,qBAAqB,MAAM;AAAA;AAAA;AAAA,IAG3B,iBAAiB,MAAM,cAAc,OAAO,MAAM,MAAM;AAAA,IACxD,eAAe,MAAM,YAAY,OAAO,MAAM,MAAM;AAAA,EACtD;AACF;","names":[]}
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-DKHM4B4A.js";
8
8
  import {
9
9
  lightTheme
10
- } from "./chunk-ZBZA7KSL.js";
10
+ } from "./chunk-VUXCM5ZO.js";
11
11
  import {
12
12
  DEFAULT_INSERT_TEMPLATES,
13
13
  collectGridTargets,
@@ -1937,4 +1937,4 @@ export {
1937
1937
  Workspace,
1938
1938
  DesignCanvasEditor
1939
1939
  };
1940
- //# sourceMappingURL=chunk-6KZ4ZTLG.js.map
1940
+ //# sourceMappingURL=chunk-XCBDWT5H.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-6A7MYOUI.js";
5
5
  import {
6
6
  assertRenderUiSchema
7
- } from "./chunk-4YHE7PGO.js";
7
+ } from "./chunk-D7WMRSX6.js";
8
8
  import {
9
9
  base64UrlDecodeText,
10
10
  base64UrlEncodeText,
@@ -15,10 +15,10 @@ import {
15
15
  buildAppToolOpenAITools,
16
16
  findCustomTool,
17
17
  isAppToolName
18
- } from "./chunk-4CBU7QIL.js";
18
+ } from "./chunk-HS4Y6CGH.js";
19
19
  import {
20
20
  ToolInputError
21
- } from "./chunk-NZNXHCVU.js";
21
+ } from "./chunk-HUPJOCBH.js";
22
22
 
23
23
  // src/tools/capability.ts
24
24
  async function createCapabilityToken(userId, opts) {
@@ -270,4 +270,4 @@ export {
270
270
  createAppToolRuntimeExecutor,
271
271
  handleAppToolRequest
272
272
  };
273
- //# sourceMappingURL=chunk-4ZMZDE24.js.map
273
+ //# sourceMappingURL=chunk-ZYK3A2FR.js.map
@@ -11,7 +11,7 @@ import {
11
11
  bakeTextTransform,
12
12
  exportDocumentJson,
13
13
  exportPageDataUrl
14
- } from "../chunk-6KZ4ZTLG.js";
14
+ } from "../chunk-XCBDWT5H.js";
15
15
  import {
16
16
  BTN,
17
17
  BTN_ACTIVE,
@@ -41,7 +41,7 @@ import {
41
41
  formatRulerLabel,
42
42
  selectTickStep
43
43
  } from "../chunk-DKHM4B4A.js";
44
- import "../chunk-ZBZA7KSL.js";
44
+ import "../chunk-VUXCM5ZO.js";
45
45
  import "../chunk-ZN5J47UX.js";
46
46
  import {
47
47
  DEFAULT_INSERT_TEMPLATES,
@@ -92,7 +92,7 @@ import {
92
92
  import {
93
93
  DesignCanvasChromeLazy,
94
94
  DesignCanvasLazy
95
- } from "../chunk-YPP6OJGC.js";
95
+ } from "../chunk-DWUSVC3U.js";
96
96
  import "../chunk-YNSPVKMS.js";
97
97
  import "../chunk-3NCPXNBZ.js";
98
98
  import "../chunk-TXD5HXLE.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DesignCanvasChromeLazy,
3
3
  DesignCanvasLazy
4
- } from "../chunk-YPP6OJGC.js";
4
+ } from "../chunk-DWUSVC3U.js";
5
5
  export {
6
6
  DesignCanvasChromeLazy,
7
7
  DesignCanvasLazy
@@ -6,8 +6,8 @@ import {
6
6
  } from "../chunk-4ZJYNI53.js";
7
7
  import {
8
8
  assertRenderUiSchema
9
- } from "../chunk-4YHE7PGO.js";
10
- import "../chunk-NZNXHCVU.js";
9
+ } from "../chunk-D7WMRSX6.js";
10
+ import "../chunk-HUPJOCBH.js";
11
11
 
12
12
  // src/preset-cloudflare/workflow-instance.ts
13
13
  async function ensureCloudflareWorkflowInstance(binding, input) {
@@ -103,13 +103,13 @@ import {
103
103
  } from "../chunk-CJW24QMJ.js";
104
104
  import "../chunk-MCYJON3F.js";
105
105
  import "../chunk-LWSJK546.js";
106
- import "../chunk-4ZMZDE24.js";
106
+ import "../chunk-ZYK3A2FR.js";
107
107
  import "../chunk-6A7MYOUI.js";
108
- import "../chunk-4YHE7PGO.js";
108
+ import "../chunk-D7WMRSX6.js";
109
109
  import "../chunk-S5SRJJQG.js";
110
- import "../chunk-4CBU7QIL.js";
110
+ import "../chunk-HS4Y6CGH.js";
111
111
  import "../chunk-UGWQLQDS.js";
112
- import "../chunk-NZNXHCVU.js";
112
+ import "../chunk-HUPJOCBH.js";
113
113
  import "../chunk-D6UJEOZQ.js";
114
114
  export {
115
115
  DEFAULT_FOREGROUND_PROVISION_CLAIM_TTL_SECONDS,
@@ -1,5 +1,5 @@
1
1
  /** GENERATED from @tangle-network/brand/styles/legacy-light.css
2
- * SHA-256: f806a1a96207921493e506e2007b883eba7138639d396a1af91c7abe4cb3d901
2
+ * SHA-256: cbb8fe7d4441db729bc299cdcecc165a519d0dfe29930b11ade7feb5070007f4
3
3
  * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
4
4
  export declare const brandThemes: {
5
5
  readonly light: {
@@ -3,7 +3,7 @@ import {
3
3
  lightTheme,
4
4
  themeColor,
5
5
  themeToCssVars
6
- } from "../chunk-ZBZA7KSL.js";
6
+ } from "../chunk-VUXCM5ZO.js";
7
7
  export {
8
8
  darkTheme,
9
9
  lightTheme,
@@ -7,7 +7,7 @@
7
7
  @layer theme, base, components, utilities;
8
8
  @layer theme{/* GENERATED by scripts/gen-compat.mjs. Do not edit.
9
9
  * Source: tokens.css + named-themes.css
10
- * SHA-256: 6376234ba229d9bd8fc0be766a9998b61146de56ee8dc9d5bb5a0ba2206951f0
10
+ * SHA-256: 524da3dda08c6fb6130bde802f96d6b961561a900caa939c1eea43ec4495b48d
11
11
  * Light-default compatibility; all explicit modes remain canonical.
12
12
  */
13
13
  :where(:root),
@@ -295,6 +295,13 @@
295
295
  --radius-cover: 20px;
296
296
  --radius-sheet: 24px;
297
297
  --control-height: 2.25rem;
298
+ --control-height-sm: 2rem;
299
+ --control-height-lg: 2.75rem;
300
+ --control-text-sm: 0.75rem;
301
+ --control-text-md: 0.875rem;
302
+ --control-text-lg: 1rem;
303
+ --font-size-label: 0.875rem;
304
+ --font-size-help: 0.75rem;
298
305
  --panel-padding: 1rem;
299
306
  --content-max-width: 80rem;
300
307
  --font-size-xs: 0.6875rem;
@@ -779,6 +786,14 @@
779
786
  --text-page: var(--font-size-3xl);
780
787
  --text-section: var(--font-size-xl);
781
788
  --text-eyebrow: var(--font-size-sm);
789
+ --text-control-sm: var(--control-text-sm);
790
+ --text-control-md: var(--control-text-md);
791
+ --text-control-lg: var(--control-text-lg);
792
+ --text-label: var(--font-size-label);
793
+ --text-help: var(--font-size-help);
794
+ --spacing-control-sm: var(--control-height-sm);
795
+ --spacing-control-md: var(--control-height);
796
+ --spacing-control-lg: var(--control-height-lg);
782
797
  --color-scrim: var(--scrim);
783
798
  --color-scrim-strong: var(--scrim-strong);
784
799
  --color-on-media: var(--on-media);
@@ -1602,7 +1617,7 @@
1602
1617
  }
1603
1618
  }
1604
1619
  @layer theme{/* GENERATED from @tangle-network/brand/styles/legacy-light.css
1605
- * SHA-256: f806a1a96207921493e506e2007b883eba7138639d396a1af91c7abe4cb3d901
1620
+ * SHA-256: cbb8fe7d4441db729bc299cdcecc165a519d0dfe29930b11ade7feb5070007f4
1606
1621
  * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
1607
1622
  :where(:root),
1608
1623
  [data-sandbox-ui],
@@ -9,7 +9,7 @@ import {
9
9
  restrictTaxonomy,
10
10
  verifyCapabilityToken,
11
11
  verifyExpiringCapabilityToken
12
- } from "../chunk-4ZMZDE24.js";
12
+ } from "../chunk-ZYK3A2FR.js";
13
13
  import {
14
14
  DEFAULT_APP_TOOL_PATHS,
15
15
  DEFAULT_HEADER_NAMES,
@@ -22,7 +22,7 @@ import {
22
22
  readToolArgs,
23
23
  unresolvableSurfaceCredential
24
24
  } from "../chunk-6A7MYOUI.js";
25
- import "../chunk-4YHE7PGO.js";
25
+ import "../chunk-D7WMRSX6.js";
26
26
  import "../chunk-S5SRJJQG.js";
27
27
  import {
28
28
  APP_TOOL_NAMES,
@@ -31,11 +31,11 @@ import {
31
31
  defineAppTool,
32
32
  findCustomTool,
33
33
  isAppToolName
34
- } from "../chunk-4CBU7QIL.js";
34
+ } from "../chunk-HS4Y6CGH.js";
35
35
  import "../chunk-UGWQLQDS.js";
36
36
  import {
37
37
  ToolInputError
38
- } from "../chunk-NZNXHCVU.js";
38
+ } from "../chunk-HUPJOCBH.js";
39
39
  export {
40
40
  APP_TOOL_NAMES,
41
41
  DEFAULT_APP_TOOL_PATHS,
@@ -135,7 +135,7 @@ import {
135
135
  withoutRecordGridCreated,
136
136
  withoutRecordGridRemoved,
137
137
  withoutRecordGridUpdate
138
- } from "../chunk-LYDOZKSX.js";
138
+ } from "../chunk-GJRGCVDV.js";
139
139
  import {
140
140
  SessionHistoryPanel,
141
141
  formatSessionTimestamp,
@@ -16,11 +16,11 @@ import {
16
16
  } from "../chunk-3NVVBQ2U.js";
17
17
  import {
18
18
  defineAppTool
19
- } from "../chunk-4CBU7QIL.js";
19
+ } from "../chunk-HS4Y6CGH.js";
20
20
  import "../chunk-UGWQLQDS.js";
21
21
  import {
22
22
  ToolInputError
23
- } from "../chunk-NZNXHCVU.js";
23
+ } from "../chunk-HUPJOCBH.js";
24
24
  import {
25
25
  isWorkProductStatus,
26
26
  parseAgentCheckInput,
@@ -396,6 +396,7 @@ function CompanionTabList({ tabs, active, label }) {
396
396
 
397
397
  // src/workspace-react/workspace-list.tsx
398
398
  import { useId, useMemo, useState as useState3 } from "react";
399
+ import { PageHeader } from "@tangle-network/ui/primitives";
399
400
  import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
400
401
  var SEARCH_THRESHOLD2 = 8;
401
402
  var FIELD_CELL = "hidden w-32 min-w-0 shrink-0 md:block";
@@ -503,13 +504,16 @@ function WorkspaceList({
503
504
  void run(() => rename(renaming, name), () => setRenaming(null));
504
505
  };
505
506
  return /* @__PURE__ */ jsxs3("section", { "aria-labelledby": headingId, className: "mx-auto w-full max-w-5xl px-4 py-6 sm:px-6 sm:py-8 lg:px-8", children: [
506
- /* @__PURE__ */ jsxs3("header", { className: "flex flex-wrap items-start justify-between gap-x-4 gap-y-3", children: [
507
- /* @__PURE__ */ jsxs3("div", { className: "min-w-0 flex-1 [overflow-wrap:anywhere]", children: [
508
- /* @__PURE__ */ jsx3("h1", { id: headingId, className: "text-xl font-semibold tracking-tight text-foreground", children: title ?? capitalize2(noun.plural) }),
509
- description != null && /* @__PURE__ */ jsx3("div", { className: "mt-1 max-w-prose text-sm text-muted-foreground", children: description })
510
- ] }),
511
- items.length > 0 && createControl
512
- ] }),
507
+ /* @__PURE__ */ jsx3(
508
+ PageHeader,
509
+ {
510
+ className: "mb-0",
511
+ titleId: headingId,
512
+ title: title ?? capitalize2(noun.plural),
513
+ description,
514
+ actions: items.length > 0 ? createControl : null
515
+ }
516
+ ),
513
517
  children != null && /* @__PURE__ */ jsx3("div", { className: "mt-6", children }),
514
518
  items.length === 0 ? /* @__PURE__ */ jsxs3("div", { className: "mt-6 flex flex-col items-center rounded-xl border border-dashed border-border px-6 py-14 text-center", children: [
515
519
  /* @__PURE__ */ jsx3("span", { "aria-hidden": true, className: "flex h-10 w-10 items-center justify-center rounded-lg bg-primary/10 text-primary", children: /* @__PURE__ */ jsxs3("svg", { className: "h-5 w-5", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", children: [