@tangle-network/agent-app 1.0.7 → 1.0.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.
Files changed (39) hide show
  1. package/dist/{DesignCanvasEditor-6SQAQGOY.js → DesignCanvasEditor-CYFFF2LZ.js} +3 -3
  2. package/dist/agent-profiles/d1.js +3 -3
  3. package/dist/agent-profiles/index.js +3 -3
  4. package/dist/chat-routes/index.js +4 -4
  5. package/dist/{chunk-X5BDMSPS.js → chunk-27QO3AXJ.js} +68 -68
  6. package/dist/chunk-27QO3AXJ.js.map +1 -0
  7. package/dist/{chunk-IIAXUKV7.js → chunk-2V7YCTYU.js} +2 -2
  8. package/dist/{chunk-M42DQ6HM.js → chunk-3KJAPMZB.js} +2 -2
  9. package/dist/{chunk-X32H7TXZ.js → chunk-7JUQQEQY.js} +2 -2
  10. package/dist/{chunk-DURND7YS.js → chunk-7MVMNCRP.js} +5 -5
  11. package/dist/{chunk-DURND7YS.js.map → chunk-7MVMNCRP.js.map} +1 -1
  12. package/dist/{chunk-V2BC73KQ.js → chunk-IUAPYE37.js} +2 -2
  13. package/dist/{chunk-DNM5CN3R.js → chunk-UCXB3ZZ3.js} +3 -3
  14. package/dist/{chunk-OWNWWT76.js → chunk-VHDBKP3G.js} +2 -2
  15. package/dist/{chunk-YAIUAUWJ.js → chunk-XU6A5NT2.js} +2 -2
  16. package/dist/design-canvas-react/index.js +3 -3
  17. package/dist/design-canvas-react/lazy.js +1 -1
  18. package/dist/preset-cloudflare/index.js +2 -2
  19. package/dist/public-consultation/index.js +4 -4
  20. package/dist/sandbox/index.js +4 -4
  21. package/dist/theme/brand.generated.d.ts +68 -68
  22. package/dist/theme/dom.js +2 -2
  23. package/dist/theme/index.js +1 -1
  24. package/dist/theme/tailwind-preset.js +2 -4
  25. package/dist/theme/tailwind-preset.js.map +1 -1
  26. package/dist/theme/tokens.css +1383 -984
  27. package/dist/tools/index.js +4 -4
  28. package/dist/web-react/document.js +2 -2
  29. package/dist/work-product/index.js +2 -2
  30. package/package.json +5 -5
  31. package/dist/chunk-X5BDMSPS.js.map +0 -1
  32. /package/dist/{DesignCanvasEditor-6SQAQGOY.js.map → DesignCanvasEditor-CYFFF2LZ.js.map} +0 -0
  33. /package/dist/{chunk-IIAXUKV7.js.map → chunk-2V7YCTYU.js.map} +0 -0
  34. /package/dist/{chunk-M42DQ6HM.js.map → chunk-3KJAPMZB.js.map} +0 -0
  35. /package/dist/{chunk-X32H7TXZ.js.map → chunk-7JUQQEQY.js.map} +0 -0
  36. /package/dist/{chunk-V2BC73KQ.js.map → chunk-IUAPYE37.js.map} +0 -0
  37. /package/dist/{chunk-DNM5CN3R.js.map → chunk-UCXB3ZZ3.js.map} +0 -0
  38. /package/dist/{chunk-OWNWWT76.js.map → chunk-VHDBKP3G.js.map} +0 -0
  39. /package/dist/{chunk-YAIUAUWJ.js.map → chunk-XU6A5NT2.js.map} +0 -0
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-VCG4DQC4.js";
39
39
  import {
40
40
  lightTheme
41
- } from "./chunk-X5BDMSPS.js";
41
+ } from "./chunk-27QO3AXJ.js";
42
42
 
43
43
  // src/design-canvas-react/components/Workspace.tsx
44
44
  import {
@@ -2123,4 +2123,4 @@ export {
2123
2123
  Workspace,
2124
2124
  DesignCanvasEditor
2125
2125
  };
2126
- //# sourceMappingURL=chunk-V2BC73KQ.js.map
2126
+ //# sourceMappingURL=chunk-IUAPYE37.js.map
@@ -4,12 +4,12 @@ import {
4
4
  } from "./chunk-OY7A6M7S.js";
5
5
  import {
6
6
  parseRenderUiSchema
7
- } from "./chunk-X32H7TXZ.js";
7
+ } from "./chunk-7JUQQEQY.js";
8
8
  import {
9
9
  buildAppToolOpenAITools,
10
10
  findCustomTool,
11
11
  isAppToolName
12
- } from "./chunk-M42DQ6HM.js";
12
+ } from "./chunk-3KJAPMZB.js";
13
13
  import {
14
14
  ToolInputError
15
15
  } from "./chunk-F4XBNR5L.js";
@@ -212,4 +212,4 @@ export {
212
212
  createAppToolRuntimeExecutor,
213
213
  handleAppToolRequest
214
214
  };
215
- //# sourceMappingURL=chunk-DNM5CN3R.js.map
215
+ //# sourceMappingURL=chunk-UCXB3ZZ3.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-3CI35I4X.js";
5
5
  import {
6
6
  defineAppTool
7
- } from "./chunk-M42DQ6HM.js";
7
+ } from "./chunk-3KJAPMZB.js";
8
8
  import {
9
9
  ToolInputError
10
10
  } from "./chunk-F4XBNR5L.js";
@@ -672,4 +672,4 @@ export {
672
672
  PROFILE_MEMORY_PREFIX,
673
673
  profileTools
674
674
  };
675
- //# sourceMappingURL=chunk-OWNWWT76.js.map
675
+ //# sourceMappingURL=chunk-VHDBKP3G.js.map
@@ -1,7 +1,7 @@
1
1
  // src/design-canvas-react/lazy.tsx
2
2
  import { lazy } from "react";
3
3
  var DesignCanvasLazy = lazy(
4
- () => import("./DesignCanvasEditor-6SQAQGOY.js").then((m) => ({ default: m.DesignCanvasEditor }))
4
+ () => import("./DesignCanvasEditor-CYFFF2LZ.js").then((m) => ({ default: m.DesignCanvasEditor }))
5
5
  );
6
6
  var DesignCanvasChromeLazy = lazy(
7
7
  () => import("./DesignCanvas-JA5O6Y6C.js").then((m) => ({ default: m.DesignCanvas }))
@@ -11,4 +11,4 @@ export {
11
11
  DesignCanvasLazy,
12
12
  DesignCanvasChromeLazy
13
13
  };
14
- //# sourceMappingURL=chunk-YAIUAUWJ.js.map
14
+ //# sourceMappingURL=chunk-XU6A5NT2.js.map
@@ -11,7 +11,7 @@ import {
11
11
  bakeTextTransform,
12
12
  exportDocumentJson,
13
13
  exportPageDataUrl
14
- } from "../chunk-V2BC73KQ.js";
14
+ } from "../chunk-IUAPYE37.js";
15
15
  import {
16
16
  BTN,
17
17
  BTN_ACTIVE,
@@ -85,7 +85,7 @@ import {
85
85
  import {
86
86
  DesignCanvasChromeLazy,
87
87
  DesignCanvasLazy
88
- } from "../chunk-YAIUAUWJ.js";
88
+ } from "../chunk-XU6A5NT2.js";
89
89
  import {
90
90
  LockGlyph
91
91
  } from "../chunk-P4RRC4AO.js";
@@ -100,7 +100,7 @@ import "../chunk-ALIWB2P3.js";
100
100
  import "../chunk-5VE4IDSU.js";
101
101
  import "../chunk-V42C72V5.js";
102
102
  import "../chunk-TXD5HXLE.js";
103
- import "../chunk-X5BDMSPS.js";
103
+ import "../chunk-27QO3AXJ.js";
104
104
 
105
105
  // src/design-canvas-react/components/CanvasInsertPanel.tsx
106
106
  import { useEffect, useRef, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DesignCanvasChromeLazy,
3
3
  DesignCanvasLazy
4
- } from "../chunk-YAIUAUWJ.js";
4
+ } from "../chunk-XU6A5NT2.js";
5
5
  export {
6
6
  DesignCanvasChromeLazy,
7
7
  DesignCanvasLazy
@@ -35,9 +35,9 @@ import {
35
35
  import "../chunk-K2JPSXKI.js";
36
36
  import {
37
37
  parseRenderUiSchema
38
- } from "../chunk-X32H7TXZ.js";
38
+ } from "../chunk-7JUQQEQY.js";
39
39
  import "../chunk-S5SRJJQG.js";
40
- import "../chunk-DURND7YS.js";
40
+ import "../chunk-7MVMNCRP.js";
41
41
  import {
42
42
  createTurnTrace
43
43
  } from "../chunk-DCPOEDPK.js";
@@ -25,14 +25,14 @@ import "../chunk-K2JPSXKI.js";
25
25
  import "../chunk-L3QR274L.js";
26
26
  import "../chunk-XELWWXJJ.js";
27
27
  import "../chunk-DSMGS4IV.js";
28
- import "../chunk-DNM5CN3R.js";
28
+ import "../chunk-UCXB3ZZ3.js";
29
29
  import "../chunk-OY7A6M7S.js";
30
30
  import "../chunk-O7UX55EU.js";
31
- import "../chunk-X32H7TXZ.js";
31
+ import "../chunk-7JUQQEQY.js";
32
32
  import "../chunk-S5SRJJQG.js";
33
- import "../chunk-M42DQ6HM.js";
33
+ import "../chunk-3KJAPMZB.js";
34
34
  import "../chunk-UGWQLQDS.js";
35
- import "../chunk-DURND7YS.js";
35
+ import "../chunk-7MVMNCRP.js";
36
36
  import "../chunk-SYV7MIVP.js";
37
37
  import "../chunk-D6UJEOZQ.js";
38
38
  import "../chunk-DCPOEDPK.js";
@@ -165,14 +165,14 @@ import "../chunk-K2JPSXKI.js";
165
165
  import "../chunk-L3QR274L.js";
166
166
  import "../chunk-XELWWXJJ.js";
167
167
  import "../chunk-DSMGS4IV.js";
168
- import "../chunk-DNM5CN3R.js";
168
+ import "../chunk-UCXB3ZZ3.js";
169
169
  import "../chunk-OY7A6M7S.js";
170
170
  import "../chunk-O7UX55EU.js";
171
- import "../chunk-X32H7TXZ.js";
171
+ import "../chunk-7JUQQEQY.js";
172
172
  import "../chunk-S5SRJJQG.js";
173
- import "../chunk-M42DQ6HM.js";
173
+ import "../chunk-3KJAPMZB.js";
174
174
  import "../chunk-UGWQLQDS.js";
175
- import "../chunk-DURND7YS.js";
175
+ import "../chunk-7MVMNCRP.js";
176
176
  import "../chunk-D6UJEOZQ.js";
177
177
  import "../chunk-DCPOEDPK.js";
178
178
  import {
@@ -1,91 +1,91 @@
1
1
  /** GENERATED from @tangle-network/brand/styles/legacy-light.css
2
- * SHA-256: f89457b3f243a69b9934010b2def4febe4408eff0be5e69d8847502ee33dbea4
2
+ * SHA-256: 8cff6457f4410070d3fcd2ee9384bb5444b0d6fb632e7b8fb860eb42dd121be2
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: {
6
- readonly background: "223 23% 94%";
7
- readonly foreground: "0 0% 17.6471%";
6
+ readonly background: "225 26.6667% 94.1176%";
7
+ readonly foreground: "0 0% 24.7059%";
8
8
  readonly card: "0 0% 100%";
9
- readonly cardForeground: "0 0% 17.6471%";
9
+ readonly cardForeground: "0 0% 24.7059%";
10
10
  readonly popover: "0 0% 100%";
11
- readonly popoverForeground: "0 0% 17.6471%";
12
- readonly primary: "243.2787 80.6167% 55.4902%";
11
+ readonly popoverForeground: "0 0% 24.7059%";
12
+ readonly primary: "246.2264 92.1739% 54.902%";
13
13
  readonly primaryForeground: "0 0% 100%";
14
- readonly secondary: "228 25% 94.5%";
15
- readonly secondaryForeground: "0 0% 17.6471%";
16
- readonly muted: "228 25% 94.5%";
17
- readonly mutedForeground: "0 0% 29.8039%";
18
- readonly accent: "228 25% 94.5%";
19
- readonly accentForeground: "0 0% 17.6471%";
20
- readonly destructive: "0 73.7% 41.8%";
14
+ readonly secondary: "225 28.5714% 94.5098%";
15
+ readonly secondaryForeground: "0 0% 24.7059%";
16
+ readonly muted: "225 28.5714% 94.5098%";
17
+ readonly mutedForeground: "0 0% 36.4706%";
18
+ readonly accent: "225 28.5714% 94.5098%";
19
+ readonly accentForeground: "0 0% 24.7059%";
20
+ readonly destructive: "0 75.1244% 39.4118%";
21
21
  readonly destructiveForeground: "0 0% 100%";
22
- readonly border: "244 16% 81%";
23
- readonly input: "0 0% 29.8039%";
24
- readonly ring: "246 54% 51%";
25
- readonly success: "162.9 93.5% 24.3%";
26
- readonly warning: "25.9 90% 35.3%";
22
+ readonly border: "222.8571 6.6667% 79.4118%";
23
+ readonly input: "0 0% 36.4706%";
24
+ readonly ring: "245.9504 54.2601% 56.2745%";
25
+ readonly success: "154.8148 64.8% 24.5098%";
26
+ readonly warning: "38.2979 65.2778% 28.2353%";
27
27
  readonly successForeground: "0 0% 100%";
28
28
  readonly warningForeground: "0 0% 100%";
29
- readonly warningStrong: "25.9 90% 35.3%";
30
- readonly inputFill: "hsl(225 29% 97%)";
31
- readonly canvasBackdrop: "#dcdee6";
32
- readonly borderSoft: "hsl(244 16% 81%)";
33
- readonly cardEdge: "hsl(244 16% 81%)";
29
+ readonly warningStrong: "38.2979 65.2778% 28.2353%";
30
+ readonly inputFill: "hsl(231.4286 46.6667% 97.0588%)";
31
+ readonly canvasBackdrop: "hsl(231.4286 11.4754% 88.0392%)";
32
+ readonly borderSoft: "hsl(222.8571 6.6667% 79.4118%)";
33
+ readonly cardEdge: "hsl(222.8571 6.6667% 79.4118%)";
34
34
  readonly canvasRender: {
35
- readonly grid: "#c8c7d6";
36
- readonly snapGrid: "#787878";
37
- readonly snapGuide: "#0369a1";
38
- readonly snapPage: "#ab4f09";
39
- readonly snapElement: "#b91c1c";
40
- readonly selectionStroke: "#3c32e9";
35
+ readonly grid: "#c7c9ce";
36
+ readonly snapGrid: "#5d5d5d";
37
+ readonly snapGuide: "#1c6085";
38
+ readonly snapPage: "#775519";
39
+ readonly snapElement: "#b01919";
40
+ readonly selectionStroke: "#3822f6";
41
41
  readonly selectionAnchorFill: "#ffffff";
42
- readonly placeholderFill: "#f5f6fa";
43
- readonly placeholderStroke: "#c8c7d6";
44
- readonly brokenFill: "#edeff4";
45
- readonly brokenStroke: "#787878";
42
+ readonly placeholderFill: "#f4f5fb";
43
+ readonly placeholderStroke: "#c7c9ce";
44
+ readonly brokenFill: "#edeff5";
45
+ readonly brokenStroke: "#5d5d5d";
46
46
  };
47
47
  };
48
48
  readonly dark: {
49
- readonly background: "240 33% 6%";
50
- readonly foreground: "0 0% 90.1961%";
51
- readonly card: "244 23% 12%";
52
- readonly cardForeground: "0 0% 90.1961%";
53
- readonly popover: "247 21% 23%";
54
- readonly popoverForeground: "0 0% 90.1961%";
55
- readonly primary: "229.6552 93.5484% 81.7647%";
49
+ readonly background: "246.6667 31.0345% 5.6863%";
50
+ readonly foreground: "0 0% 84.3137%";
51
+ readonly card: "244.2857 22.5806% 12.1569%";
52
+ readonly cardForeground: "0 0% 84.3137%";
53
+ readonly popover: "242.7273 18.9655% 22.7451%";
54
+ readonly popoverForeground: "0 0% 84.3137%";
55
+ readonly primary: "245.5556 93.1034% 88.6275%";
56
56
  readonly primaryForeground: "0 0% 0%";
57
- readonly secondary: "249 24% 17.5%";
58
- readonly secondaryForeground: "0 0% 90.1961%";
59
- readonly muted: "249 24% 17.5%";
60
- readonly mutedForeground: "240 5% 68%";
61
- readonly accent: "249 24% 17.5%";
62
- readonly accentForeground: "0 0% 90.1961%";
63
- readonly destructive: "2.8 100% 83.1%";
57
+ readonly secondary: "243.3333 20.4545% 17.2549%";
58
+ readonly secondaryForeground: "0 0% 84.3137%";
59
+ readonly muted: "243.3333 20.4545% 17.2549%";
60
+ readonly mutedForeground: "0 0% 67.0588%";
61
+ readonly accent: "243.3333 20.4545% 17.2549%";
62
+ readonly accentForeground: "0 0% 84.3137%";
63
+ readonly destructive: "0 74.4681% 90.7843%";
64
64
  readonly destructiveForeground: "0 0% 0%";
65
- readonly border: "244 16% 25%";
66
- readonly input: "240 5% 68%";
67
- readonly ring: "233 100% 87%";
68
- readonly success: "154.7 60.2% 60.6%";
69
- readonly warning: "41.5 88.2% 63.3%";
65
+ readonly border: "245 18.4615% 25.4902%";
66
+ readonly input: "0 0% 67.0588%";
67
+ readonly ring: "245.5556 93.1034% 88.6275%";
68
+ readonly success: "155.1429 64.8148% 78.8235%";
69
+ readonly warning: "38.5714 65.1163% 83.1373%";
70
70
  readonly successForeground: "0 0% 0%";
71
71
  readonly warningForeground: "0 0% 0%";
72
- readonly warningStrong: "41.5 88.2% 63.3%";
73
- readonly inputFill: "hsl(244 29% 9%)";
74
- readonly canvasBackdrop: "#040408";
75
- readonly borderSoft: "hsl(244 16% 25%)";
76
- readonly cardEdge: "hsl(244 16% 25%)";
72
+ readonly warningStrong: "38.5714 65.1163% 83.1373%";
73
+ readonly inputFill: "hsl(245 26.087% 9.0196%)";
74
+ readonly canvasBackdrop: "hsl(240 33.3333% 2.3529%)";
75
+ readonly borderSoft: "hsl(245 18.4615% 25.4902%)";
76
+ readonly cardEdge: "hsl(245 18.4615% 25.4902%)";
77
77
  readonly canvasRender: {
78
- readonly grid: "#37364a";
79
- readonly snapGrid: "#8e8e8e";
80
- readonly snapGuide: "#67cdff";
81
- readonly snapPage: "#f4c14f";
82
- readonly snapElement: "#ffada9";
83
- readonly selectionStroke: "#a5b4fc";
84
- readonly selectionAnchorFill: "#232238";
85
- readonly placeholderFill: "#11101e";
86
- readonly placeholderStroke: "#37364a";
87
- readonly brokenFill: "#252237";
88
- readonly brokenStroke: "#8e8e8e";
78
+ readonly grid: "#37354d";
79
+ readonly snapGrid: "#ababab";
80
+ readonly snapGuide: "#c4e2f3";
81
+ readonly snapPage: "#f0dcb8";
82
+ readonly snapElement: "#f9d6d6";
83
+ readonly selectionStroke: "#ccc7fd";
84
+ readonly selectionAnchorFill: "#302f45";
85
+ readonly placeholderFill: "#12111d";
86
+ readonly placeholderStroke: "#37354d";
87
+ readonly brokenFill: "#242335";
88
+ readonly brokenStroke: "#ababab";
89
89
  };
90
90
  };
91
91
  };
package/dist/theme/dom.js CHANGED
@@ -5,8 +5,8 @@ import {
5
5
  applyThemeDom,
6
6
  shouldFollowSystemTheme,
7
7
  syncThemePreference
8
- } from "../chunk-IIAXUKV7.js";
9
- import "../chunk-X5BDMSPS.js";
8
+ } from "../chunk-2V7YCTYU.js";
9
+ import "../chunk-27QO3AXJ.js";
10
10
  export {
11
11
  DARK_THEME_COLOR,
12
12
  LIGHT_THEME_COLOR,
@@ -3,7 +3,7 @@ import {
3
3
  lightTheme,
4
4
  themeColor,
5
5
  themeToCssVars
6
- } from "../chunk-X5BDMSPS.js";
6
+ } from "../chunk-27QO3AXJ.js";
7
7
  export {
8
8
  darkTheme,
9
9
  lightTheme,
@@ -41,10 +41,8 @@ var agentAppPreset = {
41
41
  },
42
42
  // Approval cards use a light tint; their label needs Brand's stronger
43
43
  // warning ink. The solid warning chip keeps its own foreground pairing.
44
- // Brand's --primary is the FILL indigo: white sits on it at 7.4:1, but as
45
- // dark-mode text on the canvas it reads about 2.6:1. Brand keeps the
46
- // bright indigo for accent text in --accent-text (retinted per named
47
- // theme), so text-primary paints that while bg-primary keeps the fill.
44
+ // Primary text follows Brand accent ink. Solid controls use the same
45
+ // generated ink channels with their AA foreground pairing.
48
46
  textColor: {
49
47
  primary: {
50
48
  DEFAULT: tier("--accent-text"),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/theme/tailwind-preset.ts"],"sourcesContent":["/** Agent App's compatibility names over Brand's current tokens. Pair with ./styles. */\nconst withForeground = (name: string) => ({\n DEFAULT: `hsl(var(--${name}))`,\n foreground: `hsl(var(--${name}-foreground))`,\n})\n// Full-color tiers need an explicit alpha placeholder for Tailwind v3 /50 users.\nconst tier = (token: string) => `color-mix(in oklch, var(${token}) calc(<alpha-value> * 100%), transparent)`\n\n// The dark scopes Brand and tokens.css recognise: the `.dark` class (also how\n// Brand spells its dark named themes, `.dark[data-theme=\"hospitality\"]`) and\n// `[data-theme=\"dark\"]`. A `.light` or `*-light` boundary inside a dark scope\n// turns `dark:` off again, and a dark scope inside that light island turns it\n// back on, so a utility follows the nearest boundary for two nested levels.\nconst DARK = ':is(.dark, [data-theme=\"dark\"])'\nconst LIGHT = ':is(.light, [data-theme=\"light\"], [data-theme$=\"-light\"])'\nconst darkVariant = `&:is(${DARK} *:not(${LIGHT} *), ${LIGHT} ${DARK} *)`\n\nconst agentAppPreset = {\n darkMode: ['variant', darkVariant] as [string, string],\n theme: {\n extend: {\n colors: {\n background: 'hsl(var(--background))',\n foreground: 'hsl(var(--foreground))',\n border: 'hsl(var(--border))',\n input: 'hsl(var(--input))',\n 'input-fill': 'var(--bg-input)',\n ring: 'hsl(var(--ring))',\n success: withForeground('success'),\n warning: { ...withForeground('warning'), strong: 'hsl(var(--warning-strong))' },\n card: withForeground('card'),\n popover: withForeground('popover'),\n primary: withForeground('primary'),\n secondary: withForeground('secondary'),\n muted: withForeground('muted'),\n accent: withForeground('accent'),\n destructive: withForeground('destructive'),\n // Do not compress Brand's MD3 ladder onto three shadcn surfaces.\n 'surface-container-lowest': 'var(--md3-surface-container-lowest)',\n 'surface-container-low': 'var(--md3-surface-container-low)',\n 'surface-container': 'var(--md3-surface-container)',\n 'surface-container-high': 'var(--md3-surface-container-high)',\n 'surface-container-highest': 'var(--md3-surface-container-highest)',\n },\n // A field's well and edge are separate Brand roles. Keep border-input\n // on --input while bg-input paints the full-color recessed well.\n backgroundColor: {\n input: 'color-mix(in oklch, var(--bg-input) calc(<alpha-value> * 100%), transparent)',\n },\n // Approval cards use a light tint; their label needs Brand's stronger\n // warning ink. The solid warning chip keeps its own foreground pairing.\n // Brand's --primary is the FILL indigo: white sits on it at 7.4:1, but as\n // dark-mode text on the canvas it reads about 2.6:1. Brand keeps the\n // bright indigo for accent text in --accent-text (retinted per named\n // theme), so text-primary paints that while bg-primary keeps the fill.\n textColor: {\n primary: {\n DEFAULT: tier('--accent-text'),\n foreground: 'hsl(var(--primary-foreground))',\n },\n warning: {\n DEFAULT: 'hsl(var(--warning-strong))',\n foreground: 'hsl(var(--warning-foreground))',\n strong: 'hsl(var(--warning-strong))',\n },\n },\n boxShadow: { raised: 'var(--shadow-raised)', overlay: 'var(--shadow-overlay)' },\n borderColor: {\n border: tier('--border-soft'),\n 'card-edge': tier('--card-edge'),\n strong: 'hsl(var(--border))',\n },\n borderRadius: { control: 'var(--radius-sm)', card: 'var(--radius-lg)', surface: 'var(--radius-2xl)' },\n transitionDuration: {\n instant: 'var(--duration-instant)', fast: 'var(--duration-fast)',\n base: 'var(--duration-base)', slow: 'var(--duration-slow)',\n },\n transitionTimingFunction: {\n standard: 'var(--ease-standard)', entrance: 'var(--ease-entrance)', exit: 'var(--ease-exit)',\n },\n keyframes: {\n slideDown: { from: { height: '0' }, to: { height: 'var(--radix-collapsible-content-height)' } },\n slideUp: { from: { height: 'var(--radix-collapsible-content-height)' }, to: { height: '0' } },\n },\n animation: {\n slideDown: 'slideDown var(--duration-base) var(--ease-entrance)',\n slideUp: 'slideUp var(--duration-fast) var(--ease-exit)',\n },\n },\n },\n}\nexport default agentAppPreset\n"],"mappings":";AACA,IAAM,iBAAiB,CAAC,UAAkB;AAAA,EACxC,SAAS,aAAa,IAAI;AAAA,EAC1B,YAAY,aAAa,IAAI;AAC/B;AAEA,IAAM,OAAO,CAAC,UAAkB,2BAA2B,KAAK;AAOhE,IAAM,OAAO;AACb,IAAM,QAAQ;AACd,IAAM,cAAc,QAAQ,IAAI,UAAU,KAAK,QAAQ,KA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MAAM;AAAA,QAC1C,MAAM;AAAA,QAAwB,MAAM;AAAA,MACtC;AAAA,MACA,0BAA0B;AAAA,QACxB,UAAU;AAAA,QAAwB,UAAU;AAAA,QAAwB,MAAM;AAAA,MAC5E;AAAA,MACA,WAAW;AAAA,QACT,WAAW,EAAE,MAAM,EAAE,QAAQ,IAAI,GAAG,IAAI,EAAE,QAAQ,0CAA0C,EAAE;AAAA,QAC9F,SAAS,EAAE,MAAM,EAAE,QAAQ,0CAA0C,GAAG,IAAI,EAAE,QAAQ,IAAI,EAAE;AAAA,MAC9F;AAAA,MACA,WAAW;AAAA,QACT,WAAW;AAAA,QACX,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AACF;AACA,IAAO,0BAAQ;","names":[]}
1
+ {"version":3,"sources":["../../src/theme/tailwind-preset.ts"],"sourcesContent":["/** Agent App's compatibility names over Brand's current tokens. Pair with ./styles. */\nconst withForeground = (name: string) => ({\n DEFAULT: `hsl(var(--${name}))`,\n foreground: `hsl(var(--${name}-foreground))`,\n})\n// Full-color tiers need an explicit alpha placeholder for Tailwind v3 /50 users.\nconst tier = (token: string) => `color-mix(in oklch, var(${token}) calc(<alpha-value> * 100%), transparent)`\n\n// The dark scopes Brand and tokens.css recognise: the `.dark` class (also how\n// Brand spells its dark named themes, `.dark[data-theme=\"hospitality\"]`) and\n// `[data-theme=\"dark\"]`. A `.light` or `*-light` boundary inside a dark scope\n// turns `dark:` off again, and a dark scope inside that light island turns it\n// back on, so a utility follows the nearest boundary for two nested levels.\nconst DARK = ':is(.dark, [data-theme=\"dark\"])'\nconst LIGHT = ':is(.light, [data-theme=\"light\"], [data-theme$=\"-light\"])'\nconst darkVariant = `&:is(${DARK} *:not(${LIGHT} *), ${LIGHT} ${DARK} *)`\n\nconst agentAppPreset = {\n darkMode: ['variant', darkVariant] as [string, string],\n theme: {\n extend: {\n colors: {\n background: 'hsl(var(--background))',\n foreground: 'hsl(var(--foreground))',\n border: 'hsl(var(--border))',\n input: 'hsl(var(--input))',\n 'input-fill': 'var(--bg-input)',\n ring: 'hsl(var(--ring))',\n success: withForeground('success'),\n warning: { ...withForeground('warning'), strong: 'hsl(var(--warning-strong))' },\n card: withForeground('card'),\n popover: withForeground('popover'),\n primary: withForeground('primary'),\n secondary: withForeground('secondary'),\n muted: withForeground('muted'),\n accent: withForeground('accent'),\n destructive: withForeground('destructive'),\n // Do not compress Brand's MD3 ladder onto three shadcn surfaces.\n 'surface-container-lowest': 'var(--md3-surface-container-lowest)',\n 'surface-container-low': 'var(--md3-surface-container-low)',\n 'surface-container': 'var(--md3-surface-container)',\n 'surface-container-high': 'var(--md3-surface-container-high)',\n 'surface-container-highest': 'var(--md3-surface-container-highest)',\n },\n // A field's well and edge are separate Brand roles. Keep border-input\n // on --input while bg-input paints the full-color recessed well.\n backgroundColor: {\n input: 'color-mix(in oklch, var(--bg-input) calc(<alpha-value> * 100%), transparent)',\n },\n // Approval cards use a light tint; their label needs Brand's stronger\n // warning ink. The solid warning chip keeps its own foreground pairing.\n // Primary text follows Brand accent ink. Solid controls use the same\n // generated ink channels with their AA foreground pairing.\n textColor: {\n primary: {\n DEFAULT: tier('--accent-text'),\n foreground: 'hsl(var(--primary-foreground))',\n },\n warning: {\n DEFAULT: 'hsl(var(--warning-strong))',\n foreground: 'hsl(var(--warning-foreground))',\n strong: 'hsl(var(--warning-strong))',\n },\n },\n boxShadow: { raised: 'var(--shadow-raised)', overlay: 'var(--shadow-overlay)' },\n borderColor: {\n border: tier('--border-soft'),\n 'card-edge': tier('--card-edge'),\n strong: 'hsl(var(--border))',\n },\n borderRadius: { control: 'var(--radius-sm)', card: 'var(--radius-lg)', surface: 'var(--radius-2xl)' },\n transitionDuration: {\n instant: 'var(--duration-instant)', fast: 'var(--duration-fast)',\n base: 'var(--duration-base)', slow: 'var(--duration-slow)',\n },\n transitionTimingFunction: {\n standard: 'var(--ease-standard)', entrance: 'var(--ease-entrance)', exit: 'var(--ease-exit)',\n },\n keyframes: {\n slideDown: { from: { height: '0' }, to: { height: 'var(--radix-collapsible-content-height)' } },\n slideUp: { from: { height: 'var(--radix-collapsible-content-height)' }, to: { height: '0' } },\n },\n animation: {\n slideDown: 'slideDown var(--duration-base) var(--ease-entrance)',\n slideUp: 'slideUp var(--duration-fast) var(--ease-exit)',\n },\n },\n },\n}\nexport default agentAppPreset\n"],"mappings":";AACA,IAAM,iBAAiB,CAAC,UAAkB;AAAA,EACxC,SAAS,aAAa,IAAI;AAAA,EAC1B,YAAY,aAAa,IAAI;AAC/B;AAEA,IAAM,OAAO,CAAC,UAAkB,2BAA2B,KAAK;AAOhE,IAAM,OAAO;AACb,IAAM,QAAQ;AACd,IAAM,cAAc,QAAQ,IAAI,UAAU,KAAK,QAAQ,KAAK,IAAI,IAAI;AAEpE,IAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC,WAAW,WAAW;AAAA,EACjC,OAAO;AAAA,IACL,QAAQ;AAAA,MACN,QAAQ;AAAA,QACN,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,cAAc;AAAA,QACd,MAAM;AAAA,QACN,SAAS,eAAe,SAAS;AAAA,QACjC,SAAS,EAAE,GAAG,eAAe,SAAS,GAAG,QAAQ,6BAA6B;AAAA,QAC9E,MAAM,eAAe,MAAM;AAAA,QAC3B,SAAS,eAAe,SAAS;AAAA,QACjC,SAAS,eAAe,SAAS;AAAA,QACjC,WAAW,eAAe,WAAW;AAAA,QACrC,OAAO,eAAe,OAAO;AAAA,QAC7B,QAAQ,eAAe,QAAQ;AAAA,QAC/B,aAAa,eAAe,aAAa;AAAA;AAAA,QAEzC,4BAA4B;AAAA,QAC5B,yBAAyB;AAAA,QACzB,qBAAqB;AAAA,QACrB,0BAA0B;AAAA,QAC1B,6BAA6B;AAAA,MAC/B;AAAA;AAAA;AAAA,MAGA,iBAAiB;AAAA,QACf,OAAO;AAAA,MACT;AAAA;AAAA;AAAA;AAAA;AAAA,MAKA,WAAW;AAAA,QAC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