@tangle-network/agent-app 0.57.3 → 0.57.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.
Files changed (43) hide show
  1. package/dist/{DesignCanvasEditor-JSEDIQWF.js → DesignCanvasEditor-HB7HTZUT.js} +3 -3
  2. package/dist/agent-profiles/d1.d.ts +12 -1
  3. package/dist/agent-profiles/d1.js +20 -7
  4. package/dist/agent-profiles/d1.js.map +1 -1
  5. package/dist/agent-profiles/index.d.ts +12 -9
  6. package/dist/agent-profiles/index.js +1 -1
  7. package/dist/assistant/index.js +1 -1
  8. package/dist/chat-routes/index.js +4 -4
  9. package/dist/{chunk-HNVWTWU5.js → chunk-6KZ4ZTLG.js} +2 -2
  10. package/dist/{chunk-APZ4W7HJ.js → chunk-6ZFXAW6J.js} +51 -9
  11. package/dist/chunk-6ZFXAW6J.js.map +1 -0
  12. package/dist/{chunk-2BD7VZKN.js → chunk-GDATBYU4.js} +2 -2
  13. package/dist/{chunk-J5EBGZTD.js → chunk-KELJZHID.js} +2 -2
  14. package/dist/{chunk-M63EUBSH.js → chunk-OP6Y4DWQ.js} +5 -5
  15. package/dist/{chunk-M63EUBSH.js.map → chunk-OP6Y4DWQ.js.map} +1 -1
  16. package/dist/{chunk-TZ4PEQOH.js → chunk-RWMGUVW7.js} +3 -3
  17. package/dist/chunk-RWMGUVW7.js.map +1 -0
  18. package/dist/{chunk-IVE3T73T.js → chunk-WQLC6IOD.js} +4 -4
  19. package/dist/{chunk-GPRTXOBI.js → chunk-YPP6OJGC.js} +2 -2
  20. package/dist/{chunk-GDB3YCNS.js → chunk-ZBZA7KSL.js} +28 -28
  21. package/dist/chunk-ZBZA7KSL.js.map +1 -0
  22. package/dist/design-canvas-react/index.js +3 -3
  23. package/dist/design-canvas-react/lazy.js +1 -1
  24. package/dist/preset-cloudflare/index.js +2 -2
  25. package/dist/sandbox/index.js +4 -4
  26. package/dist/stories/chat/fixtures.d.ts +20 -0
  27. package/dist/theme/brand.generated.d.ts +28 -28
  28. package/dist/theme/index.js +1 -1
  29. package/dist/theme/tokens.css +150 -110
  30. package/dist/tools/index.js +4 -4
  31. package/dist/web-react/index.d.ts +14 -2
  32. package/dist/web-react/index.js +1 -1
  33. package/dist/work-product/index.js +2 -2
  34. package/package.json +4 -4
  35. package/dist/chunk-APZ4W7HJ.js.map +0 -1
  36. package/dist/chunk-GDB3YCNS.js.map +0 -1
  37. package/dist/chunk-TZ4PEQOH.js.map +0 -1
  38. /package/dist/{DesignCanvasEditor-JSEDIQWF.js.map → DesignCanvasEditor-HB7HTZUT.js.map} +0 -0
  39. /package/dist/{chunk-HNVWTWU5.js.map → chunk-6KZ4ZTLG.js.map} +0 -0
  40. /package/dist/{chunk-2BD7VZKN.js.map → chunk-GDATBYU4.js.map} +0 -0
  41. /package/dist/{chunk-J5EBGZTD.js.map → chunk-KELJZHID.js.map} +0 -0
  42. /package/dist/{chunk-IVE3T73T.js.map → chunk-WQLC6IOD.js.map} +0 -0
  43. /package/dist/{chunk-GPRTXOBI.js.map → chunk-YPP6OJGC.js.map} +0 -0
@@ -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: ba2f212c39d2e271aacad642df566bad7871b0a4addcb44a7744e9e7f58276c7
10
+ * SHA-256: 6376234ba229d9bd8fc0be766a9998b61146de56ee8dc9d5bb5a0ba2206951f0
11
11
  * Light-default compatibility; all explicit modes remain canonical.
12
12
  */
13
13
  :where(:root),
@@ -31,15 +31,15 @@
31
31
  .light,
32
32
  .dark {
33
33
  color-scheme: dark;
34
- --md3-surface: #161616;
35
- --md3-surface-dim: #101010;
36
- --md3-surface-bright: #3b3b3b;
37
- --md3-surface-container-lowest: #101010;
38
- --md3-surface-container-low: #242424;
39
- --md3-surface-container: #303030;
40
- --md3-surface-container-high: #353535;
41
- --md3-surface-container-highest: #3b3b3b;
42
- --md3-surface-variant: #353535;
34
+ --md3-surface: #0a0a14;
35
+ --md3-surface-dim: #060610;
36
+ --md3-surface-bright: #232238;
37
+ --md3-surface-container-lowest: #050509;
38
+ --md3-surface-container-low: #12111f;
39
+ --md3-surface-container: #191826;
40
+ --md3-surface-container-high: #221f33;
41
+ --md3-surface-container-highest: #2c2942;
42
+ --md3-surface-variant: #221f33;
43
43
  --md3-on-surface: #e6e6e6;
44
44
  --md3-on-surface-variant: #b5b5b5;
45
45
  --md3-primary: #A5B4FC;
@@ -57,7 +57,7 @@
57
57
  --md3-tertiary: #10B981;
58
58
  --md3-tertiary-container: var(--surface-success-bg);
59
59
  --md3-outline: #8e8e8e;
60
- --md3-outline-variant: #4c4c4c;
60
+ --md3-outline-variant: #2a293d;
61
61
  --md3-error: #ff5277;
62
62
  --md3-error-dim: #eb2855;
63
63
  --md3-error-container: #82042b;
@@ -67,24 +67,24 @@
67
67
  --md3-inverse-primary: #4C3FC5;
68
68
  --md3-inverse-on-surface: #000000;
69
69
  --md3-surface-tint: #A5B4FC;
70
- --hsl-background: 0 0% 8.6275%;
70
+ --hsl-background: 240 33% 6%;
71
71
  --hsl-foreground: 0 0% 90.1961%;
72
- --hsl-card: 0 0% 18.8235%;
72
+ --hsl-card: 244 23% 12%;
73
73
  --hsl-card-foreground: 0 0% 90.1961%;
74
- --hsl-popover: 0 0% 20.7843%;
74
+ --hsl-popover: 247 23% 21%;
75
75
  --hsl-popover-foreground: 0 0% 90.1961%;
76
76
  --hsl-primary: 246 54% 51%;
77
77
  --hsl-primary-foreground: 0 0% 100%;
78
- --hsl-secondary: 0 0% 20.7843%;
78
+ --hsl-secondary: 249 24% 16%;
79
79
  --hsl-secondary-foreground: 0 0% 90.1961%;
80
- --hsl-muted: 0 0% 20.7843%;
81
- --hsl-muted-foreground: 0 0% 70.9804%;
82
- --hsl-accent: 0 0% 20.7843%;
80
+ --hsl-muted: 249 24% 16%;
81
+ --hsl-muted-foreground: 240 5% 68%;
82
+ --hsl-accent: 249 24% 16%;
83
83
  --hsl-accent-foreground: 0 0% 90.1961%;
84
84
  --hsl-destructive: 348 74% 48%;
85
85
  --hsl-destructive-foreground: 0 0% 100%;
86
- --hsl-border: 0 0% 29.8039%;
87
- --hsl-input: 0 0% 12.1569%;
86
+ --hsl-border: 243 20% 20%;
87
+ --hsl-input: 244 29% 9%;
88
88
  --hsl-ring: 233 100% 87%;
89
89
  --hsl-success: 160 84% 39%;
90
90
  --hsl-warning: 40 94% 56%;
@@ -112,7 +112,7 @@
112
112
  --warning: var(--hsl-warning);
113
113
  --error: var(--hsl-destructive);
114
114
  --info: var(--hsl-info);
115
- --sidebar-background: 0 0% 6.2745%;
115
+ --sidebar-background: 244 29% 9%;
116
116
  --sidebar-foreground: 0 0% 90.1961%;
117
117
  --sidebar-primary: 246 54% 51%;
118
118
  --sidebar-primary-foreground: 0 0% 100%;
@@ -120,10 +120,10 @@
120
120
  --sidebar-accent-foreground: 0 0% 90.1961%;
121
121
  --sidebar-border: 0 0% 29.8039%;
122
122
  --sidebar-ring: 233 100% 87%;
123
- --depth-1: #161616;
124
- --depth-2: #303030;
125
- --depth-3: #353535;
126
- --depth-4: #3b3b3b;
123
+ --depth-1: #0a0a14;
124
+ --depth-2: #191826;
125
+ --depth-3: #221f33;
126
+ --depth-4: #2c2942;
127
127
  --status-running: #10B981;
128
128
  --status-creating: #A5B4FC;
129
129
  --status-stopped: #FFB800;
@@ -143,69 +143,69 @@
143
143
  --surface-info-bg: #2d4e67;
144
144
  --surface-info-border: #3d7292;
145
145
  --surface-info-text: #67cdff;
146
- --tone-violet-bg: #4e3a60;
147
- --tone-violet-bg-hover: #583d71;
148
- --tone-violet-bg-selected: #624080;
146
+ --tone-violet-bg: #392751;
147
+ --tone-violet-bg-hover: #432b60;
148
+ --tone-violet-bg-selected: #4c306c;
149
149
  --tone-violet-border: #8457aa;
150
150
  --tone-violet-border-selected: #d19dff;
151
151
  --tone-violet-text: #ecd9fa;
152
152
  --tone-violet-icon: #d19dff;
153
- --tone-orange-bg: #583c2b;
154
- --tone-orange-bg-hover: #664029;
155
- --tone-orange-bg-selected: #724327;
153
+ --tone-orange-bg: #432823;
154
+ --tone-orange-bg-hover: #512d22;
155
+ --tone-orange-bg-selected: #5e3221;
156
156
  --tone-orange-border: #a35829;
157
- --tone-orange-border-selected: #ff801f;
157
+ --tone-orange-border-selected: #f76b15;
158
158
  --tone-orange-text: #ffe0c2;
159
- --tone-orange-icon: #ff801f;
160
- --tone-teal-bg: #2a4744;
161
- --tone-teal-bg-hover: #28504b;
162
- --tone-teal-bg-selected: #265751;
159
+ --tone-orange-icon: #f76b15;
160
+ --tone-teal-bg: #18333b;
161
+ --tone-teal-bg-hover: #173b42;
162
+ --tone-teal-bg-selected: #174448;
163
163
  --tone-teal-border: #207e73;
164
- --tone-teal-border-selected: #0eb39e;
164
+ --tone-teal-border-selected: #12a594;
165
165
  --tone-teal-text: #adf0dd;
166
- --tone-teal-icon: #0eb39e;
167
- --tone-blue-bg: #25455e;
168
- --tone-blue-bg-hover: #224c6c;
169
- --tone-blue-bg-selected: #1f537b;
166
+ --tone-teal-icon: #12a594;
167
+ --tone-blue-bg: #143051;
168
+ --tone-blue-bg-hover: #123861;
169
+ --tone-blue-bg-selected: #113e6b;
170
170
  --tone-blue-border: #2870bd;
171
- --tone-blue-border-selected: #70b8ff;
171
+ --tone-blue-border-selected: #0090ff;
172
172
  --tone-blue-text: #c2e6ff;
173
- --tone-blue-icon: #70b8ff;
174
- --tone-pink-bg: #5e344f;
175
- --tone-pink-bg-hover: #6d3659;
176
- --tone-pink-bg-selected: #7b3762;
173
+ --tone-blue-icon: #0090ff;
174
+ --tone-pink-bg: #462243;
175
+ --tone-pink-bg-hover: #55254d;
176
+ --tone-pink-bg-selected: #612754;
177
177
  --tone-pink-border: #a84885;
178
- --tone-pink-border-selected: #ff8dcc;
178
+ --tone-pink-border-selected: #de51a8;
179
179
  --tone-pink-text: #fdd1ea;
180
- --tone-pink-icon: #ff8dcc;
181
- --tone-brown-bg: #494038;
182
- --tone-brown-bg-hover: #54473c;
183
- --tone-brown-bg-selected: #5c4c3e;
180
+ --tone-pink-icon: #de51a8;
181
+ --tone-brown-bg: #372d30;
182
+ --tone-brown-bg-hover: #413434;
183
+ --tone-brown-bg-selected: #4a3a37;
184
184
  --tone-brown-border: #7c5f46;
185
- --tone-brown-border-selected: #dbb594;
185
+ --tone-brown-border-selected: #ad7f58;
186
186
  --tone-brown-text: #f2e1ca;
187
- --tone-brown-icon: #dbb594;
188
- --tone-cyan-bg: #27464d;
189
- --tone-cyan-bg-hover: #234f59;
190
- --tone-cyan-bg-selected: #205662;
187
+ --tone-brown-icon: #ad7f58;
188
+ --tone-cyan-bg: #143245;
189
+ --tone-cyan-bg-hover: #133b4e;
190
+ --tone-cyan-bg-selected: #114358;
191
191
  --tone-cyan-border: #11809c;
192
- --tone-cyan-border-selected: #23afd0;
192
+ --tone-cyan-border-selected: #00a2c7;
193
193
  --tone-cyan-text: #b6ecf7;
194
- --tone-cyan-icon: #23afd0;
195
- --tone-lime-bg: #404536;
196
- --tone-lime-bg-hover: #444b37;
197
- --tone-lime-bg-selected: #495239;
194
+ --tone-cyan-icon: #00a2c7;
195
+ --tone-lime-bg: #2b302d;
196
+ --tone-lime-bg-hover: #32382f;
197
+ --tone-lime-bg-selected: #384132;
198
198
  --tone-lime-border: #577538;
199
199
  --tone-lime-border-selected: #bdee63;
200
200
  --tone-lime-text: #e3f7ba;
201
201
  --tone-lime-icon: #bdee63;
202
- --surface-violet-bg: #4e3a60;
202
+ --surface-violet-bg: #392751;
203
203
  --surface-violet-border: #8457aa;
204
204
  --surface-violet-text: #d19dff;
205
- --surface-orange-bg: #583c2b;
205
+ --surface-orange-bg: #432823;
206
206
  --surface-orange-border: #a35829;
207
207
  --surface-orange-text: #ffa057;
208
- --surface-teal-bg: #2a4744;
208
+ --surface-teal-bg: #18333b;
209
209
  --surface-teal-border: #207e73;
210
210
  --surface-teal-text: #0bd8b6;
211
211
  --run-mix-succeeded: #76edb9;
@@ -230,7 +230,7 @@
230
230
  --accent-surface-soft: rgba(165, 180, 252, 0.07);
231
231
  --accent-surface-strong: rgba(76, 63, 197, 0.30);
232
232
  --accent-text: #A5B4FC;
233
- --bg-root: #161616;
233
+ --bg-root: #0a0a14;
234
234
  --bg-dark: var(--depth-1);
235
235
  --bg-card: var(--depth-2);
236
236
  --bg-elevated: var(--depth-4);
@@ -379,24 +379,24 @@
379
379
  :where(:root) {
380
380
  color-scheme: light;
381
381
  --code-header-bg: color-mix(in srgb, hsl(var(--hsl-muted)) 50%, transparent);
382
- --syntax-foreground: #24292f;
383
- --syntax-comment: #57606a;
384
- --syntax-keyword: #6d28d9;
382
+ --syntax-foreground: #24243a;
383
+ --syntax-comment: #6b7280;
384
+ --syntax-keyword: #7c3aed;
385
385
  --syntax-string: #047857;
386
- --syntax-function: #1d4ed8;
387
- --syntax-number: #92400e;
388
- --syntax-meta: #7c3aed;
389
- --syntax-variable: #24292f;
390
- --syntax-error: #b91c1c;
391
- --md3-surface: #eaeaea;
392
- --md3-surface-dim: #dadada;
386
+ --syntax-function: #2563eb;
387
+ --syntax-number: #b45309;
388
+ --syntax-meta: #6d28d9;
389
+ --syntax-variable: #334155;
390
+ --syntax-error: #dc2626;
391
+ --md3-surface: #eceef3;
392
+ --md3-surface-dim: #dcdee6;
393
393
  --md3-surface-bright: #ffffff;
394
394
  --md3-surface-container-lowest: #ffffff;
395
- --md3-surface-container-low: #f7f7f7;
395
+ --md3-surface-container-low: #f6f7fa;
396
396
  --md3-surface-container: #ffffff;
397
- --md3-surface-container-high: #f2f2f2;
397
+ --md3-surface-container-high: #f1f2f7;
398
398
  --md3-surface-container-highest: #ffffff;
399
- --md3-surface-variant: #f2f2f2;
399
+ --md3-surface-variant: #f1f2f7;
400
400
  --md3-on-surface: #2d2d2d;
401
401
  --md3-on-surface-variant: #4c4c4c;
402
402
  --md3-primary: #3E349E;
@@ -414,7 +414,7 @@
414
414
  --md3-tertiary: #065F46;
415
415
  --md3-tertiary-container: #D1FAE5;
416
416
  --md3-outline: #787878;
417
- --md3-outline-variant: #d0d0d0;
417
+ --md3-outline-variant: #c7c6d6;
418
418
  --md3-error: #ba1a1a;
419
419
  --md3-error-dim: #93000a;
420
420
  --md3-error-container: #ffdad6;
@@ -424,7 +424,7 @@
424
424
  --md3-inverse-primary: #A5AAFC;
425
425
  --md3-inverse-on-surface: #f0f1f4;
426
426
  --md3-surface-tint: #6366F1;
427
- --hsl-background: 0 0% 91.7647%;
427
+ --hsl-background: 223 23% 94%;
428
428
  --hsl-foreground: 0 0% 17.6471%;
429
429
  --hsl-card: 0 0% 100%;
430
430
  --hsl-card-foreground: 0 0% 17.6471%;
@@ -432,23 +432,23 @@
432
432
  --hsl-popover-foreground: 0 0% 17.6471%;
433
433
  --hsl-primary: 246 54% 51%;
434
434
  --hsl-primary-foreground: 0 0% 100%;
435
- --hsl-secondary: 0 0% 94.902%;
435
+ --hsl-secondary: 230 27% 96%;
436
436
  --hsl-secondary-foreground: 0 0% 17.6471%;
437
- --hsl-muted: 0 0% 94.902%;
437
+ --hsl-muted: 230 27% 96%;
438
438
  --hsl-muted-foreground: 0 0% 29.8039%;
439
- --hsl-accent: 0 0% 94.902%;
439
+ --hsl-accent: 230 27% 96%;
440
440
  --hsl-accent-foreground: 0 0% 17.6471%;
441
441
  --hsl-destructive: 0 72% 41%;
442
442
  --hsl-destructive-foreground: 0 0% 100%;
443
- --hsl-border: 0 0% 81.5686%;
444
- --hsl-input: 0 0% 96.0784%;
443
+ --hsl-border: 244 16% 81%;
444
+ --hsl-input: 225 29% 97%;
445
445
  --hsl-ring: 246 54% 51%;
446
446
  --hsl-success: 160 84% 30%;
447
447
  --hsl-warning: 41 96% 50%;
448
448
  --hsl-info: 212 80% 50%;
449
- --depth-1: #eaeaea;
449
+ --depth-1: #eceef3;
450
450
  --depth-2: #ffffff;
451
- --depth-3: #f2f2f2;
451
+ --depth-3: #f1f2f7;
452
452
  --depth-4: #ffffff;
453
453
  --status-running: #059669;
454
454
  --status-creating: #3E349E;
@@ -557,7 +557,7 @@
557
557
  --mesh-teal: transparent;
558
558
  --mesh-violet: transparent;
559
559
  --mesh-blue: transparent;
560
- --bg-root: #eaeaea;
560
+ --bg-root: #eceef3;
561
561
  --bg-dark: var(--depth-1);
562
562
  --bg-card: var(--depth-2);
563
563
  --bg-elevated: var(--depth-4);
@@ -1125,38 +1125,38 @@
1125
1125
  --md3-on-surface-variant: var(--text-muted);
1126
1126
  }
1127
1127
  [data-theme="tangle-dark"] {
1128
- --hsl-background: 0 0% 8.6275%;
1128
+ --hsl-background: 240 33% 6%;
1129
1129
  --hsl-foreground: 0 0% 90.1961%;
1130
- --hsl-card: 0 0% 18.8235%;
1130
+ --hsl-card: 244 23% 12%;
1131
1131
  --hsl-card-foreground: 0 0% 90.1961%;
1132
- --hsl-popover: 0 0% 20.7843%;
1132
+ --hsl-popover: 247 23% 21%;
1133
1133
  --hsl-popover-foreground: 0 0% 90.1961%;
1134
1134
  --hsl-primary: 246 54% 51%;
1135
1135
  --hsl-primary-foreground: 0 0% 100%;
1136
- --hsl-secondary: 0 0% 20.7843%;
1136
+ --hsl-secondary: 249 24% 16%;
1137
1137
  --hsl-secondary-foreground: 0 0% 90.1961%;
1138
- --hsl-muted: 0 0% 20.7843%;
1139
- --hsl-muted-foreground: 0 0% 70.9804%;
1140
- --hsl-accent: 0 0% 20.7843%;
1138
+ --hsl-muted: 249 24% 16%;
1139
+ --hsl-muted-foreground: 240 5% 68%;
1140
+ --hsl-accent: 249 24% 16%;
1141
1141
  --hsl-accent-foreground: 0 0% 90.1961%;
1142
1142
  --hsl-destructive: 348 74% 48%;
1143
1143
  --hsl-destructive-foreground: 0 0% 100%;
1144
- --hsl-border: 0 0% 29.8039%;
1145
- --hsl-input: 0 0% 12.1569%;
1144
+ --hsl-border: 243 20% 20%;
1145
+ --hsl-input: 244 29% 9%;
1146
1146
  --hsl-ring: 233 100% 87%;
1147
- --depth-1: #161616;
1148
- --depth-2: #303030;
1149
- --depth-3: #353535;
1150
- --depth-4: #3b3b3b;
1151
- --bg-root: #161616;
1147
+ --depth-1: #0a0a14;
1148
+ --depth-2: #191826;
1149
+ --depth-3: #221f33;
1150
+ --depth-4: #2c2942;
1151
+ --bg-root: #0a0a14;
1152
1152
  --bg-card: var(--depth-2);
1153
1153
  --bg-input: hsl(var(--hsl-input));
1154
- --md3-surface-container-lowest: #101010;
1155
- --md3-surface-container-low: #242424;
1156
- --md3-surface-container: #303030;
1157
- --md3-surface-container-high: #353535;
1158
- --md3-surface-container-highest: #3b3b3b;
1159
- --md3-outline-variant: #4c4c4c;
1154
+ --md3-surface-container-lowest: #050509;
1155
+ --md3-surface-container-low: #12111f;
1156
+ --md3-surface-container: #191826;
1157
+ --md3-surface-container-high: #221f33;
1158
+ --md3-surface-container-highest: #2c2942;
1159
+ --md3-outline-variant: #2a293d;
1160
1160
  --border-subtle: rgba(255, 255, 255, 0.10);
1161
1161
  --border-default: rgba(255, 255, 255, 0.16);
1162
1162
  --border-hover: rgba(255, 255, 255, 0.28);
@@ -1602,7 +1602,7 @@
1602
1602
  }
1603
1603
  }
1604
1604
  @layer theme{/* GENERATED from @tangle-network/brand/styles/legacy-light.css
1605
- * SHA-256: 14616a7bcbdcbb3587912f566c71803ac5dd1d48adc5a36e8f3fc2f3ab7a6fe6
1605
+ * SHA-256: f806a1a96207921493e506e2007b883eba7138639d396a1af91c7abe4cb3d901
1606
1606
  * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
1607
1607
  :where(:root),
1608
1608
  [data-sandbox-ui],
@@ -1749,7 +1749,12 @@
1749
1749
  /* Old app names, canonical role decisions. Keep the MD3 surface ladder
1750
1750
  intact: card/container/high/highest are not interchangeable. */
1751
1751
  --border-soft: var(--border-subtle);
1752
- --card-edge: var(--border-default);
1752
+ /* GTM's card edge: a softened --border, so cards separate from the canvas
1753
+ without a hard rule. Dark keeps more of it (below). */
1754
+ --card-edge: color-mix(in oklch, hsl(var(--border)) 60%, transparent);
1755
+ /* The tertiary container is a neutral nested tier, as GTM renders it,
1756
+ not Brand's success tint. */
1757
+ --md3-tertiary-container: var(--md3-surface-container-high);
1753
1758
  --shadow-raised: var(--shadow-card);
1754
1759
  --focus-ring-width: 2px;
1755
1760
  --focus-ring-offset: 2px;
@@ -1771,9 +1776,44 @@
1771
1776
  .dark,
1772
1777
  [data-theme='dark'] {
1773
1778
  --studio-notice-bg: color-mix(in srgb, hsl(var(--primary)) 15%, hsl(var(--card)));
1779
+ --card-edge: color-mix(in oklch, hsl(var(--border)) 80%, transparent);
1774
1780
  }
1775
1781
  }
1776
1782
 
1783
+ /* Typography plugin colors on Brand tokens, as GTM sets them, so markdown and
1784
+ editor prose keeps Brand's ink and contrast in both themes. Unlayered at
1785
+ class specificity so it wins over the plugin's own .prose and .prose-invert
1786
+ values; a host can still scope its own. */
1787
+ .prose {
1788
+ --tw-prose-body: var(--text-primary);
1789
+ --tw-prose-headings: var(--text-primary);
1790
+ --tw-prose-lead: var(--text-primary);
1791
+ --tw-prose-links: var(--brand-strong);
1792
+ --tw-prose-bold: var(--text-primary);
1793
+ --tw-prose-counters: var(--text-secondary);
1794
+ --tw-prose-bullets: var(--text-secondary);
1795
+ --tw-prose-hr: var(--border-default);
1796
+ --tw-prose-quotes: var(--text-primary);
1797
+ --tw-prose-quote-borders: var(--brand-primary);
1798
+ --tw-prose-captions: var(--text-secondary);
1799
+ --tw-prose-code: var(--md3-on-primary-container);
1800
+ --tw-prose-pre-code: var(--text-primary);
1801
+ --tw-prose-pre-bg: var(--bg-input);
1802
+ --tw-prose-th-borders: var(--border-default);
1803
+ --tw-prose-td-borders: var(--border-subtle);
1804
+ --tw-prose-kbd: var(--text-primary);
1805
+ }
1806
+ .dark .prose,
1807
+ [data-theme='dark'] .prose {
1808
+ --tw-prose-links: var(--brand-glow);
1809
+ --tw-prose-counters: var(--text-muted);
1810
+ --tw-prose-bullets: var(--md3-outline);
1811
+ --tw-prose-quote-borders: var(--brand-cool);
1812
+ --tw-prose-captions: var(--text-muted);
1813
+ --tw-prose-code: var(--text-primary);
1814
+ --tw-prose-pre-bg: var(--md3-surface-container-lowest);
1815
+ }
1816
+
1777
1817
  /* Existing focus contract: host utilities can opt out; no unlayered floor. */
1778
1818
  @layer base {
1779
1819
  :focus-visible {
@@ -9,7 +9,7 @@ import {
9
9
  restrictTaxonomy,
10
10
  verifyCapabilityToken,
11
11
  verifyExpiringCapabilityToken
12
- } from "../chunk-IVE3T73T.js";
12
+ } from "../chunk-WQLC6IOD.js";
13
13
  import {
14
14
  DEFAULT_APP_TOOL_PATHS,
15
15
  DEFAULT_HEADER_NAMES,
@@ -29,12 +29,12 @@ import {
29
29
  defineAppTool,
30
30
  findCustomTool,
31
31
  isAppToolName
32
- } from "../chunk-J5EBGZTD.js";
32
+ } from "../chunk-KELJZHID.js";
33
33
  import "../chunk-UGWQLQDS.js";
34
- import "../chunk-2BD7VZKN.js";
34
+ import "../chunk-GDATBYU4.js";
35
35
  import {
36
36
  ToolInputError
37
- } from "../chunk-M63EUBSH.js";
37
+ } from "../chunk-OP6Y4DWQ.js";
38
38
  import "../chunk-S5SRJJQG.js";
39
39
  export {
40
40
  APP_TOOL_NAMES,
@@ -23,7 +23,7 @@
23
23
  * `@tangle-network/ui` a peer of this subpath.
24
24
  */
25
25
  import { type ReactNode } from 'react';
26
- import type { ToolPart } from '@tangle-network/ui/types';
26
+ import type { ChatAuthor, ToolPart } from '@tangle-network/ui/types';
27
27
  import { type DurableChatCardsProps } from './durable-chat-cards';
28
28
  import { type ChatAttachmentPart } from './chat-attachments';
29
29
  import type { WorkProductPersistedPart } from '../work-product/types';
@@ -162,6 +162,12 @@ export interface ChatUiMessage extends ChatMessageMetrics {
162
162
  /** Persisted assistant parts. When `ChatMessages.durableCards` is supplied,
163
163
  * shared plan/question cards render directly from these projections. */
164
164
  parts?: Array<Record<string, unknown>>;
165
+ /** Who wrote the message, when more than one person shares the thread: a
166
+ * client, an attorney and the agent. A user message whose author is not
167
+ * `ChatMessages.viewerId` is someone else's: start-aligned on a card under
168
+ * their avatar, name and role. An assistant message's author replaces the
169
+ * agent label. Absent → today's rendering, byte-identical. */
170
+ author?: ChatAuthor;
165
171
  }
166
172
  /** Define properties for rendering chat messages with optional models, markdown, extras, and durable cards */
167
173
  export interface ChatMessagesProps {
@@ -230,6 +236,9 @@ export interface ChatMessagesProps {
230
236
  workProductCards?: {
231
237
  onOpen?: (part: WorkProductPersistedPart) => void;
232
238
  };
239
+ /** The reader's participant id, compared with each user message's
240
+ * `author.id`. A user message without an author is always the reader's. */
241
+ viewerId?: string;
233
242
  }
234
243
  /** One starting "door" in the chat first-run state — a concrete, labeled action
235
244
  * (start from a template, do it by hand, ask the agent), not a placeholder. */
@@ -286,8 +295,11 @@ export declare function useThinkingSeconds(active: boolean): number;
286
295
  * model id, tokens/sec, and cost, plus a collapsible thinking section and
287
296
  * tool rows. `chrome="quiet"` opts into the label-free variant: the
288
297
  * label/meta row becomes a hover-revealed meta lane under each row.
298
+ * A thread shared by several people passes each message's `author` and the
299
+ * reader's `viewerId`: the reader's own messages stay right-aligned, everyone
300
+ * else's are named, and a named agent replaces the agent label.
289
301
  */
290
- export declare function ChatMessages({ messages, messageSize, chrome, models, renderMarkdown, renderExtras, durableCards, userLabel, agentLabel, loading, approval, onToolCallClick, toolRenderers, error, onRetry, renderEmpty, emptyState, header, resolveAttachmentUrl, workProductCards, }: ChatMessagesProps): import("react").JSX.Element;
302
+ export declare function ChatMessages({ messages, messageSize, chrome, models, renderMarkdown, renderExtras, durableCards, userLabel, agentLabel, loading, approval, onToolCallClick, toolRenderers, error, onRetry, renderEmpty, emptyState, header, resolveAttachmentUrl, workProductCards, viewerId, }: ChatMessagesProps): import("react").JSX.Element;
291
303
  export * from './api-access-panel';
292
304
  export * from './agent-settings-popover';
293
305
  export * from './workspace-switcher';
@@ -134,7 +134,7 @@ import {
134
134
  withoutRecordGridCreated,
135
135
  withoutRecordGridRemoved,
136
136
  withoutRecordGridUpdate
137
- } from "../chunk-APZ4W7HJ.js";
137
+ } from "../chunk-6ZFXAW6J.js";
138
138
  import {
139
139
  SessionHistoryPanel,
140
140
  formatSessionTimestamp,
@@ -4,11 +4,11 @@ import {
4
4
  } from "../chunk-GEYACSFW.js";
5
5
  import {
6
6
  defineAppTool
7
- } from "../chunk-J5EBGZTD.js";
7
+ } from "../chunk-KELJZHID.js";
8
8
  import "../chunk-UGWQLQDS.js";
9
9
  import {
10
10
  ToolInputError
11
- } from "../chunk-M63EUBSH.js";
11
+ } from "../chunk-OP6Y4DWQ.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.57.3",
3
+ "version": "0.57.7",
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": [
@@ -602,11 +602,11 @@
602
602
  "@tangle-network/agent-knowledge": "19.0.1",
603
603
  "@tangle-network/agent-profile-materialize": "0.20.1",
604
604
  "@tangle-network/agent-runtime": "0.293.0",
605
- "@tangle-network/brand": "1.15.7",
605
+ "@tangle-network/brand": "1.17.0",
606
606
  "@tangle-network/hub-sdk": "0.24.0",
607
607
  "@tangle-network/sandbox": "0.60.10",
608
608
  "@tangle-network/sandbox-ui": "0.127.1",
609
- "@tangle-network/ui": "11.19.0",
609
+ "@tangle-network/ui": "11.25.0",
610
610
  "@testing-library/dom": "^10.4.1",
611
611
  "@testing-library/react": "^16.3.3",
612
612
  "@testing-library/user-event": "^14.6.6",
@@ -677,7 +677,7 @@
677
677
  "@tangle-network/hub-sdk": ">=0.19.3 <0.21.0 || >=0.21.0 <0.22.0 || >=0.22.1 <0.25.0",
678
678
  "@tangle-network/sandbox": ">=0.45.0 <0.48.0 || ^0.49.0 || ^0.50.0 || ^0.51.0 || ^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0 || >=0.58.1 <0.60.0 || >=0.60.3 <0.61.0",
679
679
  "@tangle-network/sandbox-ui": ">=0.117.0 <0.118.0 || >=0.119.0 <0.128.0",
680
- "@tangle-network/ui": ">=11.17.0 <12.0.0",
680
+ "@tangle-network/ui": ">=11.25.0 <12.0.0",
681
681
  "@tiptap/core": ">=3.28.0 <4.0.0",
682
682
  "@tiptap/extension-mention": ">=3.28.0 <4.0.0",
683
683
  "@tiptap/pm": ">=3.28.0 <4.0.0",