@tangle-network/agent-app 0.55.5 → 0.55.6
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-VJ3R7RM2.js → DesignCanvasEditor-JSEDIQWF.js} +3 -3
- package/dist/chat-routes/index.js +4 -4
- package/dist/{chunk-KLQWU6K5.js → chunk-2BD7VZKN.js} +2 -2
- package/dist/{chunk-2TARCQA2.js → chunk-7YLSF33A.js} +4 -4
- package/dist/{chunk-TMKSWEVQ.js → chunk-GDB3YCNS.js} +3 -3
- package/dist/chunk-GDB3YCNS.js.map +1 -0
- package/dist/{chunk-2N7PDPLC.js → chunk-GPRTXOBI.js} +2 -2
- package/dist/{chunk-YHR2P7FY.js → chunk-HNVWTWU5.js} +2 -2
- package/dist/{chunk-W6LBJNCQ.js → chunk-J5EBGZTD.js} +2 -2
- package/dist/{chunk-CHYGAU4E.js → chunk-M63EUBSH.js} +5 -5
- package/dist/{chunk-CHYGAU4E.js.map → chunk-M63EUBSH.js.map} +1 -1
- 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 +3 -3
- package/dist/theme/index.js +1 -1
- package/dist/theme/tokens.css +31 -13
- package/dist/tools/index.js +4 -4
- package/dist/work-product/index.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-TMKSWEVQ.js.map +0 -1
- /package/dist/{DesignCanvasEditor-VJ3R7RM2.js.map → DesignCanvasEditor-JSEDIQWF.js.map} +0 -0
- /package/dist/{chunk-KLQWU6K5.js.map → chunk-2BD7VZKN.js.map} +0 -0
- /package/dist/{chunk-2TARCQA2.js.map → chunk-7YLSF33A.js.map} +0 -0
- /package/dist/{chunk-2N7PDPLC.js.map → chunk-GPRTXOBI.js.map} +0 -0
- /package/dist/{chunk-YHR2P7FY.js.map → chunk-HNVWTWU5.js.map} +0 -0
- /package/dist/{chunk-W6LBJNCQ.js.map → chunk-J5EBGZTD.js.map} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
bakeTextTransform,
|
|
12
12
|
exportDocumentJson,
|
|
13
13
|
exportPageDataUrl
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-HNVWTWU5.js";
|
|
15
15
|
import {
|
|
16
16
|
BTN,
|
|
17
17
|
BTN_ACTIVE,
|
|
@@ -41,11 +41,11 @@ import {
|
|
|
41
41
|
formatRulerLabel,
|
|
42
42
|
selectTickStep
|
|
43
43
|
} from "../chunk-DKHM4B4A.js";
|
|
44
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-GDB3YCNS.js";
|
|
45
45
|
import {
|
|
46
46
|
DesignCanvasChromeLazy,
|
|
47
47
|
DesignCanvasLazy
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-GPRTXOBI.js";
|
|
49
49
|
import "../chunk-ZN5J47UX.js";
|
|
50
50
|
import {
|
|
51
51
|
DEFAULT_INSERT_TEMPLATES,
|
|
@@ -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-2BD7VZKN.js";
|
|
10
|
+
import "../chunk-M63EUBSH.js";
|
|
11
11
|
|
|
12
12
|
// src/preset-cloudflare/workflow-instance.ts
|
|
13
13
|
async function ensureCloudflareWorkflowInstance(binding, input) {
|
package/dist/sandbox/index.js
CHANGED
|
@@ -103,13 +103,13 @@ import {
|
|
|
103
103
|
} from "../chunk-OXDA7G4E.js";
|
|
104
104
|
import "../chunk-MCYJON3F.js";
|
|
105
105
|
import "../chunk-LWSJK546.js";
|
|
106
|
-
import "../chunk-
|
|
106
|
+
import "../chunk-7YLSF33A.js";
|
|
107
107
|
import "../chunk-6A7MYOUI.js";
|
|
108
|
-
import "../chunk-
|
|
108
|
+
import "../chunk-J5EBGZTD.js";
|
|
109
109
|
import "../chunk-UGWQLQDS.js";
|
|
110
110
|
import "../chunk-S5SRJJQG.js";
|
|
111
|
-
import "../chunk-
|
|
112
|
-
import "../chunk-
|
|
111
|
+
import "../chunk-2BD7VZKN.js";
|
|
112
|
+
import "../chunk-M63EUBSH.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:
|
|
2
|
+
* SHA-256: 14616a7bcbdcbb3587912f566c71803ac5dd1d48adc5a36e8f3fc2f3ab7a6fe6
|
|
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: {
|
|
@@ -9,7 +9,7 @@ export declare const brandThemes: {
|
|
|
9
9
|
readonly cardForeground: "0 0% 17.6471%";
|
|
10
10
|
readonly popover: "0 0% 100%";
|
|
11
11
|
readonly popoverForeground: "0 0% 17.6471%";
|
|
12
|
-
readonly primary: "243.
|
|
12
|
+
readonly primary: "243.2787 80.6167% 55.4902%";
|
|
13
13
|
readonly primaryForeground: "0 0% 100%";
|
|
14
14
|
readonly secondary: "0 0% 94.902%";
|
|
15
15
|
readonly secondaryForeground: "0 0% 17.6471%";
|
|
@@ -37,7 +37,7 @@ export declare const brandThemes: {
|
|
|
37
37
|
readonly snapGuide: "#0369a1";
|
|
38
38
|
readonly snapPage: "#ab4f09";
|
|
39
39
|
readonly snapElement: "#b91c1c";
|
|
40
|
-
readonly selectionStroke: "#
|
|
40
|
+
readonly selectionStroke: "#3c32e9";
|
|
41
41
|
readonly selectionAnchorFill: "#ffffff";
|
|
42
42
|
readonly placeholderFill: "#f7f7f7";
|
|
43
43
|
readonly placeholderStroke: "#d0d0d0";
|
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: ba2f212c39d2e271aacad642df566bad7871b0a4addcb44a7744e9e7f58276c7
|
|
11
11
|
* Light-default compatibility; all explicit modes remain canonical.
|
|
12
12
|
*/
|
|
13
13
|
:where(:root),
|
|
@@ -275,6 +275,9 @@
|
|
|
275
275
|
--shadow-accent: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
276
276
|
--shadow-overlay: 0 2px 6px hsl(var(--hsl-foreground) / 0.1),
|
|
277
277
|
0 16px 40px hsl(var(--hsl-foreground) / 0.16);
|
|
278
|
+
--scrim: rgb(0 0 0 / 0.4);
|
|
279
|
+
--scrim-strong: rgb(0 0 0 / 0.72);
|
|
280
|
+
--on-media: #ffffff;
|
|
278
281
|
--shadow-status-running: none;
|
|
279
282
|
--shadow-status-creating: none;
|
|
280
283
|
--shadow-status-error: none;
|
|
@@ -285,6 +288,12 @@
|
|
|
285
288
|
--radius-pill: 999px;
|
|
286
289
|
--radius-full: 999px;
|
|
287
290
|
--radius-composer: 26px;
|
|
291
|
+
--radius-tag: 4px;
|
|
292
|
+
--radius-chip: 8px;
|
|
293
|
+
--radius-field: 12px;
|
|
294
|
+
--radius-panel: 16px;
|
|
295
|
+
--radius-cover: 20px;
|
|
296
|
+
--radius-sheet: 24px;
|
|
288
297
|
--control-height: 2.25rem;
|
|
289
298
|
--panel-padding: 1rem;
|
|
290
299
|
--content-max-width: 80rem;
|
|
@@ -596,7 +605,7 @@
|
|
|
596
605
|
--accent-gradient-strong: linear-gradient(135deg, #4F46E5, #5B4ED4);
|
|
597
606
|
--accent-surface-soft: rgba(76, 63, 198, 0.05);
|
|
598
607
|
--accent-surface-strong: rgba(76, 63, 198, 0.13);
|
|
599
|
-
--accent-text: #
|
|
608
|
+
--accent-text: #3c32e9;
|
|
600
609
|
--font-sans: "Inter", "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
601
610
|
--font-display: "Inter", "Geist", sans-serif;
|
|
602
611
|
--font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
|
|
@@ -607,6 +616,12 @@
|
|
|
607
616
|
--radius-pill: 999px;
|
|
608
617
|
--radius-full: 999px;
|
|
609
618
|
--radius-composer: 26px;
|
|
619
|
+
--radius-tag: 4px;
|
|
620
|
+
--radius-chip: 8px;
|
|
621
|
+
--radius-field: 12px;
|
|
622
|
+
--radius-panel: 16px;
|
|
623
|
+
--radius-cover: 20px;
|
|
624
|
+
--radius-sheet: 24px;
|
|
610
625
|
}
|
|
611
626
|
:where(:root),
|
|
612
627
|
.dark,
|
|
@@ -764,6 +779,9 @@
|
|
|
764
779
|
--text-page: var(--font-size-3xl);
|
|
765
780
|
--text-section: var(--font-size-xl);
|
|
766
781
|
--text-eyebrow: var(--font-size-sm);
|
|
782
|
+
--color-scrim: var(--scrim);
|
|
783
|
+
--color-scrim-strong: var(--scrim-strong);
|
|
784
|
+
--color-on-media: var(--on-media);
|
|
767
785
|
--color-depth-1: var(--depth-1);
|
|
768
786
|
--color-depth-2: var(--depth-2);
|
|
769
787
|
--color-depth-3: var(--depth-3);
|
|
@@ -882,7 +900,7 @@
|
|
|
882
900
|
--border-subtle: rgba(60,32,110,0.10);
|
|
883
901
|
--border-default: rgba(60,32,110,0.16);
|
|
884
902
|
--border-hover: rgba(60,32,110,0.30);
|
|
885
|
-
--accent-text: #
|
|
903
|
+
--accent-text: #6423c8;
|
|
886
904
|
--brand-primary: #6d28d9;
|
|
887
905
|
--brand-glow: #8b5cf6;
|
|
888
906
|
--text-primary: #160f22;
|
|
@@ -974,7 +992,7 @@
|
|
|
974
992
|
--border-subtle: rgba(6,95,70,0.10);
|
|
975
993
|
--border-default: rgba(6,95,70,0.16);
|
|
976
994
|
--border-hover: rgba(6,95,70,0.30);
|
|
977
|
-
--accent-text: #
|
|
995
|
+
--accent-text: #03674b;
|
|
978
996
|
--brand-primary: #059669;
|
|
979
997
|
--brand-glow: #10b981;
|
|
980
998
|
--text-primary: #06231a;
|
|
@@ -1182,7 +1200,7 @@
|
|
|
1182
1200
|
--border-subtle: rgba(20,20,40,0.08);
|
|
1183
1201
|
--border-default: rgba(20,20,40,0.14);
|
|
1184
1202
|
--border-hover: rgba(20,20,40,0.26);
|
|
1185
|
-
--accent-text: #
|
|
1203
|
+
--accent-text: #453be3;
|
|
1186
1204
|
--brand-primary: #6366f1;
|
|
1187
1205
|
--brand-glow: #818cf8;
|
|
1188
1206
|
--text-primary: #15131f;
|
|
@@ -1342,7 +1360,7 @@
|
|
|
1342
1360
|
--md3-on-surface-variant: #afbbb4;
|
|
1343
1361
|
--md3-outline: #8a938e;
|
|
1344
1362
|
--md3-outline-variant: #48504c;
|
|
1345
|
-
--md3-primary: #
|
|
1363
|
+
--md3-primary: #99caad;
|
|
1346
1364
|
--md3-primary-dim: #396a52;
|
|
1347
1365
|
--md3-primary-container: #396a52;
|
|
1348
1366
|
--md3-on-primary: #11221a;
|
|
@@ -1364,7 +1382,7 @@
|
|
|
1364
1382
|
--border-hover: rgba(227, 233, 229, 0.28);
|
|
1365
1383
|
--border-accent: rgba(118, 183, 145, 0.35);
|
|
1366
1384
|
--border-accent-hover: rgba(118, 183, 145, 0.50);
|
|
1367
|
-
--accent-text: #
|
|
1385
|
+
--accent-text: #99caad;
|
|
1368
1386
|
--accent-surface-soft: rgba(118, 183, 145, 0.07);
|
|
1369
1387
|
--accent-surface-strong: rgba(57, 106, 82, 0.40);
|
|
1370
1388
|
--accent-gradient-strong: linear-gradient(135deg, #396a52, #76b791);
|
|
@@ -1584,7 +1602,7 @@
|
|
|
1584
1602
|
}
|
|
1585
1603
|
}
|
|
1586
1604
|
@layer theme{/* GENERATED from @tangle-network/brand/styles/legacy-light.css
|
|
1587
|
-
* SHA-256:
|
|
1605
|
+
* SHA-256: 14616a7bcbdcbb3587912f566c71803ac5dd1d48adc5a36e8f3fc2f3ab7a6fe6
|
|
1588
1606
|
* Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
|
|
1589
1607
|
:where(:root),
|
|
1590
1608
|
[data-sandbox-ui],
|
|
@@ -1631,7 +1649,7 @@
|
|
|
1631
1649
|
[data-theme="agents-light"],
|
|
1632
1650
|
.light,
|
|
1633
1651
|
:where(:root) {
|
|
1634
|
-
--agent-app-accent-hsl: 243.
|
|
1652
|
+
--agent-app-accent-hsl: 243.2787 80.6167% 55.4902%;
|
|
1635
1653
|
--agent-app-accent-foreground-hsl: 0 0% 100%;
|
|
1636
1654
|
--agent-app-success-hsl: 162.931 93.5484% 24.3137%;
|
|
1637
1655
|
--agent-app-success-foreground-hsl: 0 0% 100%;
|
|
@@ -1649,7 +1667,7 @@
|
|
|
1649
1667
|
--agent-app-accent-foreground-hsl: 0 0% 0%
|
|
1650
1668
|
}
|
|
1651
1669
|
[data-theme="aubergine-light"] {
|
|
1652
|
-
--agent-app-accent-hsl: 263.
|
|
1670
|
+
--agent-app-accent-hsl: 263.6364 70.2128% 46.0784%;
|
|
1653
1671
|
--agent-app-accent-foreground-hsl: 0 0% 100%
|
|
1654
1672
|
}
|
|
1655
1673
|
[data-theme="arena"] {
|
|
@@ -1657,7 +1675,7 @@
|
|
|
1657
1675
|
--agent-app-accent-foreground-hsl: 0 0% 0%
|
|
1658
1676
|
}
|
|
1659
1677
|
[data-theme="arena-light"] {
|
|
1660
|
-
--agent-app-accent-hsl:
|
|
1678
|
+
--agent-app-accent-hsl: 163.2 94.3396% 20.7843%;
|
|
1661
1679
|
--agent-app-accent-foreground-hsl: 0 0% 100%
|
|
1662
1680
|
}
|
|
1663
1681
|
[data-theme="super"] {
|
|
@@ -1673,7 +1691,7 @@
|
|
|
1673
1691
|
--agent-app-accent-foreground-hsl: 0 0% 0%
|
|
1674
1692
|
}
|
|
1675
1693
|
[data-theme="tangle-light"] {
|
|
1676
|
-
--agent-app-accent-hsl: 243.
|
|
1694
|
+
--agent-app-accent-hsl: 243.5714 75% 56.0784%;
|
|
1677
1695
|
--agent-app-accent-foreground-hsl: 0 0% 100%
|
|
1678
1696
|
}
|
|
1679
1697
|
[data-theme="hospitality"]:where(:not(.dark)) {
|
|
@@ -1681,7 +1699,7 @@
|
|
|
1681
1699
|
--agent-app-accent-foreground-hsl: 0 0% 100%
|
|
1682
1700
|
}
|
|
1683
1701
|
.dark[data-theme="hospitality"] {
|
|
1684
|
-
--agent-app-accent-hsl: 144.
|
|
1702
|
+
--agent-app-accent-hsl: 144.4898 31.6129% 69.6078%;
|
|
1685
1703
|
--agent-app-accent-foreground-hsl: 0 0% 0%
|
|
1686
1704
|
}
|
|
1687
1705
|
}
|
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-7YLSF33A.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-J5EBGZTD.js";
|
|
33
33
|
import "../chunk-UGWQLQDS.js";
|
|
34
34
|
import "../chunk-S5SRJJQG.js";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-2BD7VZKN.js";
|
|
36
36
|
import {
|
|
37
37
|
ToolInputError
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-M63EUBSH.js";
|
|
39
39
|
export {
|
|
40
40
|
APP_TOOL_NAMES,
|
|
41
41
|
DEFAULT_APP_TOOL_PATHS,
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "../chunk-GEYACSFW.js";
|
|
5
5
|
import {
|
|
6
6
|
defineAppTool
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-J5EBGZTD.js";
|
|
8
8
|
import "../chunk-UGWQLQDS.js";
|
|
9
9
|
import {
|
|
10
10
|
ToolInputError
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-M63EUBSH.js";
|
|
12
12
|
import {
|
|
13
13
|
isWorkProductStatus,
|
|
14
14
|
parseAgentCheckInput,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-app",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.6",
|
|
4
4
|
"packageManager": "pnpm@11.24.0",
|
|
5
5
|
"description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
|
|
6
6
|
"keywords": [
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
"@tangle-network/agent-knowledge": "19.0.1",
|
|
583
583
|
"@tangle-network/agent-profile-materialize": "0.20.1",
|
|
584
584
|
"@tangle-network/agent-runtime": "0.293.0",
|
|
585
|
-
"@tangle-network/brand": "1.
|
|
585
|
+
"@tangle-network/brand": "1.15.7",
|
|
586
586
|
"@tangle-network/hub-sdk": "0.24.0",
|
|
587
587
|
"@tangle-network/sandbox": "0.60.10",
|
|
588
588
|
"@tangle-network/sandbox-ui": "0.127.1",
|
|
@@ -1 +0,0 @@
|
|
|
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: f4d47f5d42d88810ae850c83e6d0e0a1f7be481d4e07b66ab3e29c796d02950f\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":"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","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|