@tangle-network/agent-app 0.51.6 → 0.51.8
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-ZHKJIDOB.js → DesignCanvasEditor-Z6UUPJKS.js} +3 -3
- package/dist/chat-routes/index.d.ts +1 -0
- package/dist/chat-routes/index.js +106 -4
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/intelligence.d.ts +32 -0
- package/dist/{chunk-KU5YAGLB.js → chunk-2YSXWBBL.js} +2 -2
- package/dist/chunk-C4V2LIUC.js +150 -0
- package/dist/chunk-C4V2LIUC.js.map +1 -0
- package/dist/{chunk-CBRYWGUO.js → chunk-D3OYEEHO.js} +2 -2
- package/dist/{chunk-CBRYWGUO.js.map → chunk-D3OYEEHO.js.map} +1 -1
- package/dist/{chunk-2PDKWV2S.js → chunk-E4SBLZRW.js} +2 -2
- package/dist/{chunk-PF3AZD5G.js → chunk-EYTU3Z7T.js} +4 -4
- package/dist/{chunk-SYIV74NB.js → chunk-KGUC7S72.js} +2 -2
- package/dist/{chunk-IYLPQKAH.js → chunk-SOGWOBFF.js} +2 -2
- package/dist/{chunk-QGSVF6DZ.js → chunk-ZVNPAJ7Z.js} +18 -8
- package/dist/chunk-ZVNPAJ7Z.js.map +1 -0
- 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 +91 -0
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/tailwind-preset.d.ts +13 -17
- package/dist/theme/tailwind-preset.js +24 -64
- package/dist/theme/tailwind-preset.js.map +1 -1
- package/dist/theme/theme.d.ts +3 -15
- package/dist/theme/tokens.css +1051 -608
- package/dist/theme-contract/cli.js +1 -1
- package/dist/theme-contract/index.js +1 -1
- package/dist/tools/index.js +4 -4
- package/dist/work-product/index.js +2 -2
- package/package.json +7 -4
- package/dist/chunk-Q2QKEV6J.js +0 -144
- package/dist/chunk-Q2QKEV6J.js.map +0 -1
- package/dist/chunk-QGSVF6DZ.js.map +0 -1
- /package/dist/{DesignCanvasEditor-ZHKJIDOB.js.map → DesignCanvasEditor-Z6UUPJKS.js.map} +0 -0
- /package/dist/{chunk-KU5YAGLB.js.map → chunk-2YSXWBBL.js.map} +0 -0
- /package/dist/{chunk-2PDKWV2S.js.map → chunk-E4SBLZRW.js.map} +0 -0
- /package/dist/{chunk-PF3AZD5G.js.map → chunk-EYTU3Z7T.js.map} +0 -0
- /package/dist/{chunk-SYIV74NB.js.map → chunk-KGUC7S72.js.map} +0 -0
- /package/dist/{chunk-IYLPQKAH.js.map → chunk-SOGWOBFF.js.map} +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IntelligenceClient } from '@tangle-network/agent-runtime/intelligence';
|
|
2
|
+
import type { ChatTurnRouteProducer } from './turn-routes';
|
|
3
|
+
/** Host-resolved metadata only. Neither input nor output content is exported. */
|
|
4
|
+
export interface ChatTurnIntelligenceOptions {
|
|
5
|
+
client: () => Pick<IntelligenceClient, 'traceRun'>;
|
|
6
|
+
sessionId: string;
|
|
7
|
+
userId?: string;
|
|
8
|
+
workspaceId?: string;
|
|
9
|
+
/** Exact execution identity, when retained by the execution owner. */
|
|
10
|
+
runId?: string;
|
|
11
|
+
traceId?: string;
|
|
12
|
+
/** Requested model. This is not a receipt for the model that served. */
|
|
13
|
+
model?: string;
|
|
14
|
+
/** Existing transport cancellation evidence; grants no new abort authority. */
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
/** Receives no exception text, which may contain private customer material. */
|
|
17
|
+
onObservationError?: () => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Observe the source iterator without an execution loop, relay, queue or eager
|
|
21
|
+
* pull. The source still owns cancellation and serializes its own operations.
|
|
22
|
+
* Stream termination is not task correctness, reviewer acceptance or delivery.
|
|
23
|
+
*/
|
|
24
|
+
export declare function observeChatTurnStream<TEvent>(source: AsyncGenerator<TEvent, void, unknown>, options: ChatTurnIntelligenceOptions): AsyncGenerator<TEvent, void, unknown>;
|
|
25
|
+
/**
|
|
26
|
+
* Adapter for product producer factories. It preserves every declared
|
|
27
|
+
* ChatTurnRouteProducer projection, lazily bound to the original receiver,
|
|
28
|
+
* including class-backed or frozen producers. No output is read.
|
|
29
|
+
*/
|
|
30
|
+
export declare function produceChatTurnWithIntelligence(options: ChatTurnIntelligenceOptions & {
|
|
31
|
+
produce: () => ChatTurnRouteProducer | Promise<ChatTurnRouteProducer>;
|
|
32
|
+
}): Promise<ChatTurnRouteProducer>;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-YJYPXMDL.js";
|
|
8
8
|
import {
|
|
9
9
|
lightTheme
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C4V2LIUC.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-2YSXWBBL.js.map
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
// src/theme/brand.generated.ts
|
|
2
|
+
var brandThemes = {
|
|
3
|
+
"light": {
|
|
4
|
+
"background": "0 0% 91.7647%",
|
|
5
|
+
"foreground": "0 0% 17.6471%",
|
|
6
|
+
"card": "0 0% 100%",
|
|
7
|
+
"cardForeground": "0 0% 17.6471%",
|
|
8
|
+
"popover": "0 0% 100%",
|
|
9
|
+
"popoverForeground": "0 0% 17.6471%",
|
|
10
|
+
"primary": "243.2927 80.3922% 60%",
|
|
11
|
+
"primaryForeground": "0 0% 100%",
|
|
12
|
+
"secondary": "0 0% 94.902%",
|
|
13
|
+
"secondaryForeground": "0 0% 17.6471%",
|
|
14
|
+
"muted": "0 0% 94.902%",
|
|
15
|
+
"mutedForeground": "0 0% 29.8039%",
|
|
16
|
+
"accent": "0 0% 94.902%",
|
|
17
|
+
"accentForeground": "0 0% 17.6471%",
|
|
18
|
+
"destructive": "0 73.7089% 41.7647%",
|
|
19
|
+
"destructiveForeground": "0 0% 100%",
|
|
20
|
+
"border": "0 0% 81.5686%",
|
|
21
|
+
"input": "0 0% 29.8039%",
|
|
22
|
+
"ring": "246 54% 51%",
|
|
23
|
+
"success": "162.931 93.5484% 24.3137%",
|
|
24
|
+
"warning": "41 96% 50%",
|
|
25
|
+
"successForeground": "0 0% 100%",
|
|
26
|
+
"warningForeground": "0 0% 0%",
|
|
27
|
+
"warningStrong": "25.9259 90% 35.2941%",
|
|
28
|
+
"inputFill": "hsl(0 0% 96.0784%)",
|
|
29
|
+
"canvasBackdrop": "#dadada",
|
|
30
|
+
"borderSoft": "rgba(0, 0, 0, 0.10)",
|
|
31
|
+
"cardEdge": "rgba(0, 0, 0, 0.14)",
|
|
32
|
+
"canvasRender": {
|
|
33
|
+
"grid": "#d0d0d0",
|
|
34
|
+
"snapGrid": "#787878",
|
|
35
|
+
"snapGuide": "#0369a1",
|
|
36
|
+
"snapPage": "#ab4f09",
|
|
37
|
+
"snapElement": "#b91c1c",
|
|
38
|
+
"selectionStroke": "#5047eb",
|
|
39
|
+
"selectionAnchorFill": "#ffffff",
|
|
40
|
+
"placeholderFill": "#f7f7f7",
|
|
41
|
+
"placeholderStroke": "#d0d0d0",
|
|
42
|
+
"brokenFill": "#f2f2f2",
|
|
43
|
+
"brokenStroke": "#787878"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"dark": {
|
|
47
|
+
"background": "0 0% 8.6275%",
|
|
48
|
+
"foreground": "0 0% 90.1961%",
|
|
49
|
+
"card": "0 0% 18.8235%",
|
|
50
|
+
"cardForeground": "0 0% 90.1961%",
|
|
51
|
+
"popover": "0 0% 20.7843%",
|
|
52
|
+
"popoverForeground": "0 0% 90.1961%",
|
|
53
|
+
"primary": "229.6552 93.5484% 81.7647%",
|
|
54
|
+
"primaryForeground": "0 0% 0%",
|
|
55
|
+
"secondary": "0 0% 20.7843%",
|
|
56
|
+
"secondaryForeground": "0 0% 90.1961%",
|
|
57
|
+
"muted": "0 0% 20.7843%",
|
|
58
|
+
"mutedForeground": "0 0% 70.9804%",
|
|
59
|
+
"accent": "0 0% 20.7843%",
|
|
60
|
+
"accentForeground": "0 0% 90.1961%",
|
|
61
|
+
"destructive": "2.7907 100% 83.1373%",
|
|
62
|
+
"destructiveForeground": "0 0% 0%",
|
|
63
|
+
"border": "0 0% 29.8039%",
|
|
64
|
+
"input": "0 0% 70.9804%",
|
|
65
|
+
"ring": "233 100% 87%",
|
|
66
|
+
"success": "154.7107 60.199% 60.5882%",
|
|
67
|
+
"warning": "40 94% 56%",
|
|
68
|
+
"successForeground": "0 0% 0%",
|
|
69
|
+
"warningForeground": "0 0% 0%",
|
|
70
|
+
"warningStrong": "41.4545 88.2353% 63.3333%",
|
|
71
|
+
"inputFill": "hsl(0 0% 12.1569%)",
|
|
72
|
+
"canvasBackdrop": "#101010",
|
|
73
|
+
"borderSoft": "rgba(255, 255, 255, 0.10)",
|
|
74
|
+
"cardEdge": "rgba(255, 255, 255, 0.16)",
|
|
75
|
+
"canvasRender": {
|
|
76
|
+
"grid": "#4c4c4c",
|
|
77
|
+
"snapGrid": "#8e8e8e",
|
|
78
|
+
"snapGuide": "#67cdff",
|
|
79
|
+
"snapPage": "#f4c14f",
|
|
80
|
+
"snapElement": "#ffada9",
|
|
81
|
+
"selectionStroke": "#a5b4fc",
|
|
82
|
+
"selectionAnchorFill": "#3b3b3b",
|
|
83
|
+
"placeholderFill": "#242424",
|
|
84
|
+
"placeholderStroke": "#4c4c4c",
|
|
85
|
+
"brokenFill": "#353535",
|
|
86
|
+
"brokenStroke": "#8e8e8e"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// src/theme/theme.ts
|
|
92
|
+
var lightTheme = brandThemes.light;
|
|
93
|
+
var darkTheme = brandThemes.dark;
|
|
94
|
+
function themeColor(value) {
|
|
95
|
+
return /^(hsl|rgb|oklch|oklab|lch|lab|color|color-mix|#)/.test(value) ? value : `hsl(${value})`;
|
|
96
|
+
}
|
|
97
|
+
function themeToCssVars(theme) {
|
|
98
|
+
return {
|
|
99
|
+
"--background": theme.background,
|
|
100
|
+
"--foreground": theme.foreground,
|
|
101
|
+
"--card": theme.card,
|
|
102
|
+
"--card-foreground": theme.cardForeground,
|
|
103
|
+
"--popover": theme.popover,
|
|
104
|
+
"--popover-foreground": theme.popoverForeground,
|
|
105
|
+
"--primary": theme.primary,
|
|
106
|
+
"--primary-foreground": theme.primaryForeground,
|
|
107
|
+
"--secondary": theme.secondary,
|
|
108
|
+
"--secondary-foreground": theme.secondaryForeground,
|
|
109
|
+
"--muted": theme.muted,
|
|
110
|
+
"--muted-foreground": theme.mutedForeground,
|
|
111
|
+
"--accent": theme.accent,
|
|
112
|
+
"--accent-foreground": theme.accentForeground,
|
|
113
|
+
"--destructive": theme.destructive,
|
|
114
|
+
"--destructive-foreground": theme.destructiveForeground,
|
|
115
|
+
"--border": theme.border,
|
|
116
|
+
"--input": theme.input,
|
|
117
|
+
"--ring": theme.ring,
|
|
118
|
+
"--success": theme.success,
|
|
119
|
+
"--success-foreground": theme.successForeground,
|
|
120
|
+
"--warning": theme.warning,
|
|
121
|
+
"--warning-foreground": theme.warningForeground,
|
|
122
|
+
// Falls back to the pairing the tinted surfaces used before this token
|
|
123
|
+
// existed, so an unset value restores the previous look rather than an
|
|
124
|
+
// unthemed one.
|
|
125
|
+
"--warning-strong": theme.warningStrong ?? theme.warningForeground,
|
|
126
|
+
"--bg-input": theme.inputFill ?? `hsl(${theme.card})`,
|
|
127
|
+
"--text-primary": `hsl(${theme.foreground})`,
|
|
128
|
+
"--text-secondary": `hsl(${theme.secondaryForeground})`,
|
|
129
|
+
"--text-muted": `hsl(${theme.mutedForeground})`,
|
|
130
|
+
"--text-danger": `hsl(${theme.destructive})`,
|
|
131
|
+
"--text-warning": `hsl(${theme.warningStrong ?? theme.warningForeground})`,
|
|
132
|
+
"--border-default": `hsl(${theme.border})`,
|
|
133
|
+
"--brand-primary": `hsl(${theme.primary})`,
|
|
134
|
+
"--editor-selection-background": `hsl(${theme.primary})`,
|
|
135
|
+
"--editor-selection-foreground": `hsl(${theme.primaryForeground})`,
|
|
136
|
+
"--canvas-backdrop": theme.canvasBackdrop,
|
|
137
|
+
// Full strength is the safe default: an unset tier can under-draw an edge,
|
|
138
|
+
// never erase one.
|
|
139
|
+
"--border-soft": theme.borderSoft ?? `hsl(${theme.border})`,
|
|
140
|
+
"--card-edge": theme.cardEdge ?? `hsl(${theme.border})`
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export {
|
|
145
|
+
lightTheme,
|
|
146
|
+
darkTheme,
|
|
147
|
+
themeColor,
|
|
148
|
+
themeToCssVars
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=chunk-C4V2LIUC.js.map
|
|
@@ -0,0 +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":"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","names":[]}
|
|
@@ -10,7 +10,7 @@ var ToolInputError = class extends Error {
|
|
|
10
10
|
status;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@tangle-network+ui@11.12.0_@hocuspocus+provider@4.6.0_y-protocols@1.0.7_yjs@13.6.
|
|
13
|
+
// node_modules/.pnpm/@tangle-network+ui@11.12.0_@hocuspocus+provider@4.6.0_y-protocols@1.0.7_yjs@13.6.32__yj_78c898f7394c8a02b431a4c94033b1f3/node_modules/@tangle-network/ui/dist/schema-BpW9rSSG.js
|
|
14
14
|
var __defProp = Object.defineProperty;
|
|
15
15
|
var __exportAll = (all, no_symbols) => {
|
|
16
16
|
let target = {};
|
|
@@ -9726,4 +9726,4 @@ export {
|
|
|
9726
9726
|
OPENUI_NODE_JSON_SCHEMA,
|
|
9727
9727
|
validateOpenUIJsonNode
|
|
9728
9728
|
};
|
|
9729
|
-
//# sourceMappingURL=chunk-
|
|
9729
|
+
//# sourceMappingURL=chunk-D3OYEEHO.js.map
|