@tangle-network/agent-app 0.53.5 → 0.53.7
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.
- package/dist/{DesignCanvasEditor-3R6KODJG.js → DesignCanvasEditor-ZQDWOGRV.js} +3 -3
- package/dist/assistant/index.js +1 -1
- package/dist/chat-routes/index.js +4 -4
- package/dist/{chunk-K3A4GGV6.js → chunk-5GYKS6WT.js} +2 -2
- package/dist/{chunk-3YVSRH26.js → chunk-6JM5EWOP.js} +2 -2
- package/dist/{chunk-WRT5E74D.js → chunk-LFMP73W3.js} +2 -2
- package/dist/{chunk-IN4DXT5F.js → chunk-P2GXQRFR.js} +4 -4
- package/dist/{chunk-QHLQPK2H.js → chunk-QMTZUDDN.js} +6 -2
- package/dist/{chunk-QHLQPK2H.js.map → chunk-QMTZUDDN.js.map} +1 -1
- package/dist/{chunk-RYGNTGEL.js → chunk-T52MKPHE.js} +117 -215
- package/dist/chunk-T52MKPHE.js.map +1 -0
- package/dist/{chunk-C4V2LIUC.js → chunk-TUGR3FCS.js} +1 -1
- package/dist/{chunk-C4V2LIUC.js.map → chunk-TUGR3FCS.js.map} +1 -1
- package/dist/{chunk-2YSXWBBL.js → chunk-YFGV5ZBY.js} +2 -2
- package/dist/design-canvas-react/index.js +3 -3
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/sandbox/index.js +4 -4
- package/dist/theme/brand.generated.d.ts +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/tokens.css +3 -3
- package/dist/tools/index.js +4 -4
- package/dist/web-react/index.js +1 -1
- package/dist/work-product/index.js +2 -2
- package/dist/workspace-react/index.js +14 -5
- package/dist/workspace-react/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-RYGNTGEL.js.map +0 -1
- /package/dist/{DesignCanvasEditor-3R6KODJG.js.map → DesignCanvasEditor-ZQDWOGRV.js.map} +0 -0
- /package/dist/{chunk-K3A4GGV6.js.map → chunk-5GYKS6WT.js.map} +0 -0
- /package/dist/{chunk-3YVSRH26.js.map → chunk-6JM5EWOP.js.map} +0 -0
- /package/dist/{chunk-WRT5E74D.js.map → chunk-LFMP73W3.js.map} +0 -0
- /package/dist/{chunk-IN4DXT5F.js.map → chunk-P2GXQRFR.js.map} +0 -0
- /package/dist/{chunk-2YSXWBBL.js.map → chunk-YFGV5ZBY.js.map} +0 -0
|
@@ -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: ebbcc4fd742c1b1b7f7b64f0fbcfb3d356ecedbde531e58bc221f78f96012f3f\n * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */\nexport const brandThemes = {\n \"light\": {\n \"background\": \"0 0% 91.7647%\",\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.2927 80.3922% 60%\",\n \"primaryForeground\": \"0 0% 100%\",\n \"secondary\": \"0 0% 94.902%\",\n \"secondaryForeground\": \"0 0% 17.6471%\",\n \"muted\": \"0 0% 94.902%\",\n \"mutedForeground\": \"0 0% 29.8039%\",\n \"accent\": \"0 0% 94.902%\",\n \"accentForeground\": \"0 0% 17.6471%\",\n \"destructive\": \"0 73.7089% 41.7647%\",\n \"destructiveForeground\": \"0 0% 100%\",\n \"border\": \"0 0% 81.5686%\",\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(0 0% 96.0784%)\",\n \"canvasBackdrop\": \"#dadada\",\n \"borderSoft\": \"rgba(0, 0, 0, 0.10)\",\n \"cardEdge\": \"rgba(0, 0, 0, 0.14)\",\n \"canvasRender\": {\n \"grid\": \"#d0d0d0\",\n \"snapGrid\": \"#787878\",\n \"snapGuide\": \"#0369a1\",\n \"snapPage\": \"#ab4f09\",\n \"snapElement\": \"#b91c1c\",\n \"selectionStroke\": \"#5047eb\",\n \"selectionAnchorFill\": \"#ffffff\",\n \"placeholderFill\": \"#f7f7f7\",\n \"placeholderStroke\": \"#d0d0d0\",\n \"brokenFill\": \"#f2f2f2\",\n \"brokenStroke\": \"#787878\"\n }\n },\n \"dark\": {\n \"background\": \"0 0% 8.6275%\",\n \"foreground\": \"0 0% 90.1961%\",\n \"card\": \"0 0% 18.8235%\",\n \"cardForeground\": \"0 0% 90.1961%\",\n \"popover\": \"0 0% 20.7843%\",\n \"popoverForeground\": \"0 0% 90.1961%\",\n \"primary\": \"229.6552 93.5484% 81.7647%\",\n \"primaryForeground\": \"0 0% 0%\",\n \"secondary\": \"0 0% 20.7843%\",\n \"secondaryForeground\": \"0 0% 90.1961%\",\n \"muted\": \"0 0% 20.7843%\",\n \"mutedForeground\": \"0 0% 70.9804%\",\n \"accent\": \"0 0% 20.7843%\",\n \"accentForeground\": \"0 0% 90.1961%\",\n \"destructive\": \"2.7907 100% 83.1373%\",\n \"destructiveForeground\": \"0 0% 0%\",\n \"border\": \"0 0% 29.8039%\",\n \"input\": \"0 0% 70.9804%\",\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(0 0% 12.1569%)\",\n \"canvasBackdrop\": \"#101010\",\n \"borderSoft\": \"rgba(255, 255, 255, 0.10)\",\n \"cardEdge\": \"rgba(255, 255, 255, 0.16)\",\n \"canvasRender\": {\n \"grid\": \"#4c4c4c\",\n \"snapGrid\": \"#8e8e8e\",\n \"snapGuide\": \"#67cdff\",\n \"snapPage\": \"#f4c14f\",\n \"snapElement\": \"#ffada9\",\n \"selectionStroke\": \"#a5b4fc\",\n \"selectionAnchorFill\": \"#3b3b3b\",\n \"placeholderFill\": \"#242424\",\n \"placeholderStroke\": \"#4c4c4c\",\n \"brokenFill\": \"#353535\",\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,qBAAqB;AAAA,IACrB,aAAa;AAAA,IACb,uBAAuB;AAAA,IACvB,SAAS;AAAA,IACT,mBAAmB;AAAA,IACnB,UAAU;AAAA,IACV,oBAAoB;AAAA,IACpB,eAAe;AAAA,IACf,yBAAyB;AAAA,IACzB,UAAU;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C,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: c1411109214534804065fd37bb08a206bd2bc3307afd8755765a78c2f8b82177\n * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */\nexport const brandThemes = {\n \"light\": {\n \"background\": \"0 0% 91.7647%\",\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.2927 80.3922% 60%\",\n \"primaryForeground\": \"0 0% 100%\",\n \"secondary\": \"0 0% 94.902%\",\n \"secondaryForeground\": \"0 0% 17.6471%\",\n \"muted\": \"0 0% 94.902%\",\n \"mutedForeground\": \"0 0% 29.8039%\",\n \"accent\": \"0 0% 94.902%\",\n \"accentForeground\": \"0 0% 17.6471%\",\n \"destructive\": \"0 73.7089% 41.7647%\",\n \"destructiveForeground\": \"0 0% 100%\",\n \"border\": \"0 0% 81.5686%\",\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(0 0% 96.0784%)\",\n \"canvasBackdrop\": \"#dadada\",\n \"borderSoft\": \"rgba(0, 0, 0, 0.10)\",\n \"cardEdge\": \"rgba(0, 0, 0, 0.14)\",\n \"canvasRender\": {\n \"grid\": \"#d0d0d0\",\n \"snapGrid\": \"#787878\",\n \"snapGuide\": \"#0369a1\",\n \"snapPage\": \"#ab4f09\",\n \"snapElement\": \"#b91c1c\",\n \"selectionStroke\": \"#5047eb\",\n \"selectionAnchorFill\": \"#ffffff\",\n \"placeholderFill\": \"#f7f7f7\",\n \"placeholderStroke\": \"#d0d0d0\",\n \"brokenFill\": \"#f2f2f2\",\n \"brokenStroke\": \"#787878\"\n }\n },\n \"dark\": {\n \"background\": \"0 0% 8.6275%\",\n \"foreground\": \"0 0% 90.1961%\",\n \"card\": \"0 0% 18.8235%\",\n \"cardForeground\": \"0 0% 90.1961%\",\n \"popover\": \"0 0% 20.7843%\",\n \"popoverForeground\": \"0 0% 90.1961%\",\n \"primary\": \"229.6552 93.5484% 81.7647%\",\n \"primaryForeground\": \"0 0% 0%\",\n \"secondary\": \"0 0% 20.7843%\",\n \"secondaryForeground\": \"0 0% 90.1961%\",\n \"muted\": \"0 0% 20.7843%\",\n \"mutedForeground\": \"0 0% 70.9804%\",\n \"accent\": \"0 0% 20.7843%\",\n \"accentForeground\": \"0 0% 90.1961%\",\n \"destructive\": \"2.7907 100% 83.1373%\",\n \"destructiveForeground\": \"0 0% 0%\",\n \"border\": \"0 0% 29.8039%\",\n \"input\": \"0 0% 70.9804%\",\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(0 0% 12.1569%)\",\n \"canvasBackdrop\": \"#101010\",\n \"borderSoft\": \"rgba(255, 255, 255, 0.10)\",\n \"cardEdge\": \"rgba(255, 255, 255, 0.16)\",\n \"canvasRender\": {\n \"grid\": \"#4c4c4c\",\n \"snapGrid\": \"#8e8e8e\",\n \"snapGuide\": \"#67cdff\",\n \"snapPage\": \"#f4c14f\",\n \"snapElement\": \"#ffada9\",\n \"selectionStroke\": \"#a5b4fc\",\n \"selectionAnchorFill\": \"#3b3b3b\",\n \"placeholderFill\": \"#242424\",\n \"placeholderStroke\": \"#4c4c4c\",\n \"brokenFill\": \"#353535\",\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,qBAAqB;AAAA,IACrB,aAAa;AAAA,IACb,uBAAuB;AAAA,IACvB,SAAS;AAAA,IACT,mBAAmB;AAAA,IACnB,UAAU;AAAA,IACV,oBAAoB;AAAA,IACpB,eAAe;AAAA,IACf,yBAAyB;AAAA,IACzB,UAAU;AAAA,IACV,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,qBAAqB;AAAA,I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AAA,IACxD,eAAe,MAAM,YAAY,OAAO,MAAM,MAAM;AAAA,EACtD;AACF;","names":[]}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-YJYPXMDL.js";
|
|
8
8
|
import {
|
|
9
9
|
lightTheme
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TUGR3FCS.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_INSERT_TEMPLATES,
|
|
13
13
|
collectGridTargets,
|
|
@@ -1948,4 +1948,4 @@ export {
|
|
|
1948
1948
|
Workspace,
|
|
1949
1949
|
DesignCanvasEditor
|
|
1950
1950
|
};
|
|
1951
|
-
//# sourceMappingURL=chunk-
|
|
1951
|
+
//# sourceMappingURL=chunk-YFGV5ZBY.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
downloadDataUrl,
|
|
13
13
|
exportDocumentJson,
|
|
14
14
|
exportPageDataUrl
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-YFGV5ZBY.js";
|
|
16
16
|
import {
|
|
17
17
|
BTN,
|
|
18
18
|
BTN_ACTIVE,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
formatRulerLabel,
|
|
43
43
|
selectTickStep
|
|
44
44
|
} from "../chunk-YJYPXMDL.js";
|
|
45
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-TUGR3FCS.js";
|
|
46
46
|
import "../chunk-ZN5J47UX.js";
|
|
47
47
|
import {
|
|
48
48
|
DEFAULT_INSERT_TEMPLATES,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
import {
|
|
89
89
|
DesignCanvasChromeLazy,
|
|
90
90
|
DesignCanvasLazy
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-6JM5EWOP.js";
|
|
92
92
|
import {
|
|
93
93
|
assertSceneMediaSrc,
|
|
94
94
|
bleedAwareExportBounds,
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "../chunk-4ZJYNI53.js";
|
|
7
7
|
import {
|
|
8
8
|
assertRenderUiSchema
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-LFMP73W3.js";
|
|
10
|
+
import "../chunk-T52MKPHE.js";
|
|
11
11
|
|
|
12
12
|
// src/preset-cloudflare/workflow-instance.ts
|
|
13
13
|
async function ensureCloudflareWorkflowInstance(binding, input) {
|
package/dist/sandbox/index.js
CHANGED
|
@@ -102,13 +102,13 @@ import {
|
|
|
102
102
|
} from "../chunk-2TZLCQ5U.js";
|
|
103
103
|
import "../chunk-MCYJON3F.js";
|
|
104
104
|
import "../chunk-LWSJK546.js";
|
|
105
|
-
import "../chunk-
|
|
105
|
+
import "../chunk-P2GXQRFR.js";
|
|
106
106
|
import "../chunk-6A7MYOUI.js";
|
|
107
|
-
import "../chunk-
|
|
107
|
+
import "../chunk-5GYKS6WT.js";
|
|
108
108
|
import "../chunk-UGWQLQDS.js";
|
|
109
109
|
import "../chunk-S5SRJJQG.js";
|
|
110
|
-
import "../chunk-
|
|
111
|
-
import "../chunk-
|
|
110
|
+
import "../chunk-LFMP73W3.js";
|
|
111
|
+
import "../chunk-T52MKPHE.js";
|
|
112
112
|
import "../chunk-JML7WKWU.js";
|
|
113
113
|
export {
|
|
114
114
|
DEFAULT_FOREGROUND_PROVISION_CLAIM_TTL_SECONDS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** GENERATED from @tangle-network/brand/styles/legacy-light.css
|
|
2
|
-
* SHA-256:
|
|
2
|
+
* SHA-256: c1411109214534804065fd37bb08a206bd2bc3307afd8755765a78c2f8b82177
|
|
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: {
|
package/dist/theme/index.js
CHANGED
package/dist/theme/tokens.css
CHANGED
|
@@ -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:
|
|
10
|
+
* SHA-256: 957b639bc2d9a12d2739d744f33d8e031d4a3eb5ff56541431825335b2b3ad5f
|
|
11
11
|
* Light-default compatibility; all explicit modes remain canonical.
|
|
12
12
|
*/
|
|
13
13
|
:where(:root),
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
--tool-card-py: 0.5rem;
|
|
260
260
|
--tool-icon-size: 1.75rem;
|
|
261
261
|
--code-header-bg: hsl(var(--hsl-background));
|
|
262
|
-
--syntax-comment: #
|
|
262
|
+
--syntax-comment: #9ea2cc;
|
|
263
263
|
--syntax-keyword: #A78FFF;
|
|
264
264
|
--syntax-string: #10b981;
|
|
265
265
|
--syntax-function: #6D9FFF;
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
@layer theme{/* GENERATED from @tangle-network/brand/styles/legacy-light.css
|
|
883
|
-
* SHA-256:
|
|
883
|
+
* SHA-256: c1411109214534804065fd37bb08a206bd2bc3307afd8755765a78c2f8b82177
|
|
884
884
|
* Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
|
|
885
885
|
:where(:root),
|
|
886
886
|
[data-sandbox-ui],
|
package/dist/tools/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
restrictTaxonomy,
|
|
10
10
|
verifyCapabilityToken,
|
|
11
11
|
verifyExpiringCapabilityToken
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-P2GXQRFR.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_APP_TOOL_PATHS,
|
|
15
15
|
DEFAULT_HEADER_NAMES,
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
defineAppTool,
|
|
30
30
|
findCustomTool,
|
|
31
31
|
isAppToolName
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-5GYKS6WT.js";
|
|
33
33
|
import "../chunk-UGWQLQDS.js";
|
|
34
34
|
import "../chunk-S5SRJJQG.js";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-LFMP73W3.js";
|
|
36
36
|
import {
|
|
37
37
|
ToolInputError
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-T52MKPHE.js";
|
|
39
39
|
export {
|
|
40
40
|
APP_TOOL_NAMES,
|
|
41
41
|
DEFAULT_APP_TOOL_PATHS,
|
package/dist/web-react/index.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "../chunk-GEYACSFW.js";
|
|
5
5
|
import {
|
|
6
6
|
defineAppTool
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-5GYKS6WT.js";
|
|
8
8
|
import "../chunk-UGWQLQDS.js";
|
|
9
9
|
import {
|
|
10
10
|
ToolInputError
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-T52MKPHE.js";
|
|
12
12
|
import {
|
|
13
13
|
isWorkProductStatus,
|
|
14
14
|
parseAgentCheckInput,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkspaceInitial,
|
|
3
3
|
WorkspaceSwitcher
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-QMTZUDDN.js";
|
|
5
5
|
import {
|
|
6
6
|
ActionDialog,
|
|
7
7
|
ActionDialogButton
|
|
@@ -501,7 +501,7 @@ function WorkspaceList({
|
|
|
501
501
|
/* @__PURE__ */ jsx3("span", { className: "min-w-0 flex-1", children: "Name" }),
|
|
502
502
|
fields.map((field) => /* @__PURE__ */ jsx3("span", { className: `${FIELD_CELL} truncate`, children: field.label }, field.id)),
|
|
503
503
|
/* @__PURE__ */ jsx3("span", { className: DATE_CELL, children: hasDates ? "Updated" : "" }),
|
|
504
|
-
hasMenu && /* @__PURE__ */ jsx3("span", { className: "w-8 shrink-0" })
|
|
504
|
+
hasMenu && /* @__PURE__ */ jsx3("span", { className: "w-8 shrink-0 [@media(pointer:coarse)]:w-11" })
|
|
505
505
|
] }),
|
|
506
506
|
/* @__PURE__ */ jsx3("ul", { className: "divide-y divide-border", children: visible.map((item) => /* @__PURE__ */ jsx3(ListRow, { item, fields, menu: menuFor(item), reserveMenu: hasMenu, Link, formatDate }, item.id)) })
|
|
507
507
|
] })
|
|
@@ -598,6 +598,7 @@ function UpdatedAt({ value, formatDate, className = "shrink-0" }) {
|
|
|
598
598
|
}
|
|
599
599
|
function ListRow({ item, fields, menu, reserveMenu, Link, formatDate }) {
|
|
600
600
|
const detail = usefulDescription(item);
|
|
601
|
+
const mobileFields = fields.filter((field) => present(item.values?.[field.id]));
|
|
601
602
|
return /* @__PURE__ */ jsxs3("li", { className: "group relative isolate flex min-h-16 items-center gap-3 px-4 py-3 transition-colors hover:bg-accent/60", children: [
|
|
602
603
|
item.avatar ?? /* @__PURE__ */ jsx3(WorkspaceInitial, { name: item.name, size: "lg" }),
|
|
603
604
|
/* @__PURE__ */ jsxs3("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -611,7 +612,15 @@ function ListRow({ item, fields, menu, reserveMenu, Link, formatDate }) {
|
|
|
611
612
|
children: item.name
|
|
612
613
|
}
|
|
613
614
|
),
|
|
614
|
-
detail && /* @__PURE__ */ jsx3("p", { className: "truncate text-xs text-muted-foreground", title: detail, children: detail })
|
|
615
|
+
detail && /* @__PURE__ */ jsx3("p", { className: "truncate text-xs text-muted-foreground", title: detail, children: detail }),
|
|
616
|
+
mobileFields.length > 0 && /* @__PURE__ */ jsx3("p", { className: "truncate text-xs text-muted-foreground md:hidden", children: mobileFields.map((field, index) => /* @__PURE__ */ jsxs3("span", { children: [
|
|
617
|
+
index > 0 && " \xB7 ",
|
|
618
|
+
/* @__PURE__ */ jsxs3("span", { className: "sr-only", children: [
|
|
619
|
+
field.label,
|
|
620
|
+
": "
|
|
621
|
+
] }),
|
|
622
|
+
item.values[field.id]
|
|
623
|
+
] }, field.id)) })
|
|
615
624
|
] }),
|
|
616
625
|
fields.map((field) => /* @__PURE__ */ jsxs3("div", { className: `${FIELD_CELL} truncate text-sm text-muted-foreground`, children: [
|
|
617
626
|
/* @__PURE__ */ jsxs3("span", { className: "sr-only", children: [
|
|
@@ -621,7 +630,7 @@ function ListRow({ item, fields, menu, reserveMenu, Link, formatDate }) {
|
|
|
621
630
|
present(item.values?.[field.id]) ? item.values[field.id] : "\u2014"
|
|
622
631
|
] }, field.id)),
|
|
623
632
|
/* @__PURE__ */ jsx3(UpdatedAt, { value: item.updatedAt, formatDate, className: DATE_CELL }),
|
|
624
|
-
menu.length > 0 ? /* @__PURE__ */ jsx3(ItemMenu, { item, entries: menu }) : reserveMenu ? /* @__PURE__ */ jsx3("span", { className: "w-8 shrink-0" }) : null
|
|
633
|
+
menu.length > 0 ? /* @__PURE__ */ jsx3(ItemMenu, { item, entries: menu }) : reserveMenu ? /* @__PURE__ */ jsx3("span", { className: "w-8 shrink-0 [@media(pointer:coarse)]:w-11" }) : null
|
|
625
634
|
] });
|
|
626
635
|
}
|
|
627
636
|
function GridCard({ item, fields, menu, Link, formatDate }) {
|
|
@@ -668,7 +677,7 @@ function ItemMenu({ item, entries }) {
|
|
|
668
677
|
"aria-label": `Actions for ${item.name}`,
|
|
669
678
|
"aria-controls": open ? panelId : void 0,
|
|
670
679
|
onClick: () => setOpen(!open),
|
|
671
|
-
className: "flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition hover:bg-muted hover:text-foreground focus-visible:opacity-100 aria-expanded:opacity-100 [@media(hover:hover)]:opacity-0 [@media(hover:hover)]:group-hover:opacity-100",
|
|
680
|
+
className: "flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground [@media(pointer:coarse)]:h-11 [@media(pointer:coarse)]:w-11 transition hover:bg-muted hover:text-foreground focus-visible:opacity-100 aria-expanded:opacity-100 [@media(hover:hover)]:opacity-0 [@media(hover:hover)]:group-hover:opacity-100",
|
|
672
681
|
children: /* @__PURE__ */ jsxs3("svg", { "aria-hidden": true, className: "h-4 w-4", viewBox: "0 0 24 24", fill: "currentColor", children: [
|
|
673
682
|
/* @__PURE__ */ jsx3("circle", { cx: "5", cy: "12", r: "1.6" }),
|
|
674
683
|
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "1.6" }),
|