agentix-cli 0.182.0 → 0.183.0
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/{App-XWSSUYKF.js → App-777XBP22.js} +2 -2
- package/dist/{ChatApp-UT2BRHYE.js → ChatApp-ZYMF5HSR.js} +2 -2
- package/dist/{absorb-eval-SFGUURBD.js → absorb-eval-HYGBAPXS.js} +2 -2
- package/dist/{adapter-UHR7FVM7.js → adapter-VV626IYN.js} +2 -2
- package/dist/{agent-5NTFSCEO.js → agent-BS5VSO5T.js} +2 -2
- package/dist/{board-dashboard-7HIME2W4.js → board-dashboard-3CMB3NPI.js} +543 -2158
- package/dist/board-dashboard-3CMB3NPI.js.map +1 -0
- package/dist/{chunk-IFHVAHQM.js → chunk-3ENH7HAS.js} +2 -2
- package/dist/chunk-5ELIX7BQ.js +3 -0
- package/dist/chunk-5ELIX7BQ.js.map +1 -0
- package/dist/{chunk-YX4R2VGD.js → chunk-6D4RGQCU.js} +2 -2
- package/dist/{chunk-FYFJ7IQJ.js → chunk-6KWHQAXS.js} +2 -2
- package/dist/{chunk-FDX4IGLK.js → chunk-6MY7VXQV.js} +2 -2
- package/dist/chunk-CZMVJP7O.js +2 -0
- package/dist/chunk-CZMVJP7O.js.map +1 -0
- package/dist/{chunk-4KNHLHE3.js → chunk-DOCAWXV5.js} +2 -2
- package/dist/{chunk-5NGQQOVK.js → chunk-DYNXOYFN.js} +2 -2
- package/dist/{chunk-RDWDDPBI.js → chunk-GXOKZSCS.js} +2 -2
- package/dist/{chunk-Y4TVCWWF.js → chunk-JJ2WRGKI.js} +2 -2
- package/dist/{chunk-XI2HH5NR.js → chunk-KLWCVTBM.js} +2 -2
- package/dist/{chunk-MD2HCGSC.js → chunk-M7V7NCX6.js} +2 -2
- package/dist/chunk-M7V7NCX6.js.map +1 -0
- package/dist/chunk-MLNA54RW.js +888 -0
- package/dist/chunk-MLNA54RW.js.map +1 -0
- package/dist/{chunk-7WGJZLVJ.js → chunk-OIECBQ45.js} +2 -2
- package/dist/{chunk-XHJ5SVO5.js → chunk-OTITQCEQ.js} +271 -271
- package/dist/chunk-OTITQCEQ.js.map +1 -0
- package/dist/{chunk-QGNV2HA4.js → chunk-PIVIOIEC.js} +2 -2
- package/dist/{chunk-QB6UPODO.js → chunk-QSJA6S66.js} +2 -2
- package/dist/{chunk-IGBW4VVM.js → chunk-R2QFKEX5.js} +2 -2
- package/dist/{chunk-NIPMVM3G.js → chunk-RG6MO7G5.js} +2 -2
- package/dist/{chunk-5YG2ZQQW.js → chunk-RQOMUGUM.js} +2 -2
- package/dist/{chunk-Z4XVPGPZ.js → chunk-SBJHIBWX.js} +3 -3
- package/dist/{chunk-GEFZMDDX.js → chunk-TD2D4TGI.js} +2 -2
- package/dist/{chunk-H2KOXGDX.js → chunk-UNZVDS3P.js} +2 -2
- package/dist/{chunk-YSPBVLTZ.js → chunk-VDUMYEJH.js} +2 -2
- package/dist/{chunk-BY3AUZYM.js → chunk-XBQISUBE.js} +2 -2
- package/dist/chunk-XPE2WKPF.js +2903 -0
- package/dist/chunk-XPE2WKPF.js.map +1 -0
- package/dist/{chunk-JNWXHOJE.js → chunk-YH7NALJ4.js} +2 -2
- package/dist/{chunk-Y5TBOMHY.js → chunk-YZCQDZCA.js} +5 -5
- package/dist/{chunk-343MPMLD.js → chunk-ZOCRNNNG.js} +2 -2
- package/dist/{chunk-4WSJKKSA.js → chunk-ZSS3GL5A.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/{client-SQMU25PS.js → client-CMQZO22V.js} +2 -2
- package/dist/{config-56NBA4SF.js → config-BMYFEAO5.js} +2 -2
- package/dist/{config-mutate-PD4O3HZ7.js → config-mutate-N6W52YXB.js} +2 -2
- package/dist/config-mutator-S5SGBNOG.js +2 -0
- package/dist/{contributions-DKTJ623L.js → contributions-KRES5F2V.js} +2 -2
- package/dist/{doctor-OI6GJZR5.js → doctor-2KACCIZU.js} +2 -2
- package/dist/{follow-up-tool-DYSLS6ZI.js → follow-up-tool-M57XXTPX.js} +2 -2
- package/dist/{hub-4HDMTSR7.js → hub-FVAPTKTF.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{program-4GDIWCDM.js → program-BHDAV67G.js} +260 -259
- package/dist/program-BHDAV67G.js.map +1 -0
- package/dist/{promote-3272TZNI.js → promote-LXKF6A24.js} +2 -2
- package/dist/push-bridge-NR7SLHGX.js +1 -1
- package/dist/{query-7XM6V4QG.js → query-W7OBMMVM.js} +2 -2
- package/dist/{query-settings-HHVBIIVQ.js → query-settings-PTA2SA63.js} +2 -2
- package/dist/{registry-QL3AM3UH.js → registry-OHUOHAD2.js} +2 -2
- package/dist/{request-planner-WNEDEA7X.js → request-planner-T44RMVNO.js} +2 -2
- package/dist/{review-candidates-TGPDJMWJ.js → review-candidates-LKFIKTY6.js} +2 -2
- package/dist/{routing-ALXY25NE.js → routing-7HEUMP4R.js} +2 -2
- package/dist/schedule-tool-W6KPENHW.js +2 -0
- package/dist/{scheduler-5PHNW243.js → scheduler-I3UNKBBJ.js} +2 -2
- package/dist/{seat-ZYVVEILY.js → seat-DAMUB3CU.js} +2 -2
- package/dist/{select-6QLEV6AC.js → select-PMNHXNKI.js} +2 -2
- package/dist/self-SO6GCVYD.js +2 -0
- package/dist/{set-enabled-SYYTKJPC.js → set-enabled-36JN5ZRJ.js} +2 -2
- package/dist/signal-exit-C5EUGHKI.js +3 -0
- package/dist/signal-exit-C5EUGHKI.js.map +1 -0
- package/dist/{sprint-tool-PYVHPHR2.js → sprint-tool-Z4RRPK6I.js} +2 -2
- package/dist/{tool-TDOUM3BJ.js → tool-B6I22BG2.js} +2 -2
- package/dist/{tool-ZKZ4KYJT.js → tool-KTL4TLZP.js} +2 -2
- package/dist/{tool-GIYOYXXM.js → tool-SK3AAQYW.js} +2 -2
- package/dist/{wiki-ZRGLGMII.js → wiki-H2CBE4SM.js} +2 -2
- package/dist/wiki-enrich-GTUSSLCD.js +2 -0
- package/package.json +4 -1
- package/dist/board-dashboard-7HIME2W4.js.map +0 -1
- package/dist/chunk-7PQQZC6B.js +0 -310
- package/dist/chunk-7PQQZC6B.js.map +0 -1
- package/dist/chunk-MD2HCGSC.js.map +0 -1
- package/dist/chunk-NRUUT5TL.js +0 -256
- package/dist/chunk-NRUUT5TL.js.map +0 -1
- package/dist/chunk-OKADR5QO.js +0 -869
- package/dist/chunk-OKADR5QO.js.map +0 -1
- package/dist/chunk-R3CDFSNF.js +0 -580
- package/dist/chunk-R3CDFSNF.js.map +0 -1
- package/dist/chunk-XHJ5SVO5.js.map +0 -1
- package/dist/chunk-ZRALOFEG.js +0 -2035
- package/dist/chunk-ZRALOFEG.js.map +0 -1
- package/dist/config-mutator-ITL64FBW.js +0 -2
- package/dist/processes-M7YPWX7H.js +0 -2
- package/dist/program-4GDIWCDM.js.map +0 -1
- package/dist/schedule-tool-22UBZXCG.js +0 -2
- package/dist/signal-exit-WL7G3EEZ.js +0 -2
- package/dist/signal-exit-WL7G3EEZ.js.map +0 -1
- package/dist/wiki-enrich-CTID7JQW.js +0 -2
- /package/dist/{App-XWSSUYKF.js.map → App-777XBP22.js.map} +0 -0
- /package/dist/{ChatApp-UT2BRHYE.js.map → ChatApp-ZYMF5HSR.js.map} +0 -0
- /package/dist/{absorb-eval-SFGUURBD.js.map → absorb-eval-HYGBAPXS.js.map} +0 -0
- /package/dist/{adapter-UHR7FVM7.js.map → adapter-VV626IYN.js.map} +0 -0
- /package/dist/{agent-5NTFSCEO.js.map → agent-BS5VSO5T.js.map} +0 -0
- /package/dist/{chunk-IFHVAHQM.js.map → chunk-3ENH7HAS.js.map} +0 -0
- /package/dist/{chunk-YX4R2VGD.js.map → chunk-6D4RGQCU.js.map} +0 -0
- /package/dist/{chunk-FYFJ7IQJ.js.map → chunk-6KWHQAXS.js.map} +0 -0
- /package/dist/{chunk-FDX4IGLK.js.map → chunk-6MY7VXQV.js.map} +0 -0
- /package/dist/{chunk-4KNHLHE3.js.map → chunk-DOCAWXV5.js.map} +0 -0
- /package/dist/{chunk-5NGQQOVK.js.map → chunk-DYNXOYFN.js.map} +0 -0
- /package/dist/{chunk-RDWDDPBI.js.map → chunk-GXOKZSCS.js.map} +0 -0
- /package/dist/{chunk-Y4TVCWWF.js.map → chunk-JJ2WRGKI.js.map} +0 -0
- /package/dist/{chunk-XI2HH5NR.js.map → chunk-KLWCVTBM.js.map} +0 -0
- /package/dist/{chunk-7WGJZLVJ.js.map → chunk-OIECBQ45.js.map} +0 -0
- /package/dist/{chunk-QGNV2HA4.js.map → chunk-PIVIOIEC.js.map} +0 -0
- /package/dist/{chunk-QB6UPODO.js.map → chunk-QSJA6S66.js.map} +0 -0
- /package/dist/{chunk-IGBW4VVM.js.map → chunk-R2QFKEX5.js.map} +0 -0
- /package/dist/{chunk-NIPMVM3G.js.map → chunk-RG6MO7G5.js.map} +0 -0
- /package/dist/{chunk-5YG2ZQQW.js.map → chunk-RQOMUGUM.js.map} +0 -0
- /package/dist/{chunk-Z4XVPGPZ.js.map → chunk-SBJHIBWX.js.map} +0 -0
- /package/dist/{chunk-GEFZMDDX.js.map → chunk-TD2D4TGI.js.map} +0 -0
- /package/dist/{chunk-H2KOXGDX.js.map → chunk-UNZVDS3P.js.map} +0 -0
- /package/dist/{chunk-YSPBVLTZ.js.map → chunk-VDUMYEJH.js.map} +0 -0
- /package/dist/{chunk-BY3AUZYM.js.map → chunk-XBQISUBE.js.map} +0 -0
- /package/dist/{chunk-JNWXHOJE.js.map → chunk-YH7NALJ4.js.map} +0 -0
- /package/dist/{chunk-Y5TBOMHY.js.map → chunk-YZCQDZCA.js.map} +0 -0
- /package/dist/{chunk-343MPMLD.js.map → chunk-ZOCRNNNG.js.map} +0 -0
- /package/dist/{chunk-4WSJKKSA.js.map → chunk-ZSS3GL5A.js.map} +0 -0
- /package/dist/{client-SQMU25PS.js.map → client-CMQZO22V.js.map} +0 -0
- /package/dist/{config-56NBA4SF.js.map → config-BMYFEAO5.js.map} +0 -0
- /package/dist/{config-mutate-PD4O3HZ7.js.map → config-mutate-N6W52YXB.js.map} +0 -0
- /package/dist/{config-mutator-ITL64FBW.js.map → config-mutator-S5SGBNOG.js.map} +0 -0
- /package/dist/{contributions-DKTJ623L.js.map → contributions-KRES5F2V.js.map} +0 -0
- /package/dist/{doctor-OI6GJZR5.js.map → doctor-2KACCIZU.js.map} +0 -0
- /package/dist/{follow-up-tool-DYSLS6ZI.js.map → follow-up-tool-M57XXTPX.js.map} +0 -0
- /package/dist/{hub-4HDMTSR7.js.map → hub-FVAPTKTF.js.map} +0 -0
- /package/dist/{processes-M7YPWX7H.js.map → promote-LXKF6A24.js.map} +0 -0
- /package/dist/{promote-3272TZNI.js.map → query-W7OBMMVM.js.map} +0 -0
- /package/dist/{query-settings-HHVBIIVQ.js.map → query-settings-PTA2SA63.js.map} +0 -0
- /package/dist/{query-7XM6V4QG.js.map → registry-OHUOHAD2.js.map} +0 -0
- /package/dist/{request-planner-WNEDEA7X.js.map → request-planner-T44RMVNO.js.map} +0 -0
- /package/dist/{review-candidates-TGPDJMWJ.js.map → review-candidates-LKFIKTY6.js.map} +0 -0
- /package/dist/{registry-QL3AM3UH.js.map → routing-7HEUMP4R.js.map} +0 -0
- /package/dist/{routing-ALXY25NE.js.map → schedule-tool-W6KPENHW.js.map} +0 -0
- /package/dist/{schedule-tool-22UBZXCG.js.map → scheduler-I3UNKBBJ.js.map} +0 -0
- /package/dist/{scheduler-5PHNW243.js.map → seat-DAMUB3CU.js.map} +0 -0
- /package/dist/{select-6QLEV6AC.js.map → select-PMNHXNKI.js.map} +0 -0
- /package/dist/{seat-ZYVVEILY.js.map → self-SO6GCVYD.js.map} +0 -0
- /package/dist/{set-enabled-SYYTKJPC.js.map → set-enabled-36JN5ZRJ.js.map} +0 -0
- /package/dist/{sprint-tool-PYVHPHR2.js.map → sprint-tool-Z4RRPK6I.js.map} +0 -0
- /package/dist/{tool-TDOUM3BJ.js.map → tool-B6I22BG2.js.map} +0 -0
- /package/dist/{tool-ZKZ4KYJT.js.map → tool-KTL4TLZP.js.map} +0 -0
- /package/dist/{tool-GIYOYXXM.js.map → tool-SK3AAQYW.js.map} +0 -0
- /package/dist/{wiki-ZRGLGMII.js.map → wiki-H2CBE4SM.js.map} +0 -0
- /package/dist/{wiki-enrich-CTID7JQW.js.map → wiki-enrich-GTUSSLCD.js.map} +0 -0
package/dist/chunk-ZRALOFEG.js
DELETED
|
@@ -1,2035 +0,0 @@
|
|
|
1
|
-
import{a as r,d as l,e as c,f as p,h as g}from"./chunk-7PQQZC6B.js";import{a as d}from"./chunk-IMLAPB7G.js";var n=`:root {
|
|
2
|
-
/* --- Brand (agentina) --------------------------------------------- */
|
|
3
|
-
--ax-blue: #2979FF;
|
|
4
|
-
--ax-blue-d: #1B5FD9;
|
|
5
|
-
--ax-blue-t: #E7F0FF;
|
|
6
|
-
--ax-blue-e: #A9CBFF;
|
|
7
|
-
--ax-green: #22B573;
|
|
8
|
-
--ax-green-d: #178F58;
|
|
9
|
-
--ax-green-e: #A9E8C9;
|
|
10
|
-
--ax-amber: #FFB300;
|
|
11
|
-
--ax-amber-e: #FFE08A;
|
|
12
|
-
--ax-amber-t: #FFFCF5;
|
|
13
|
-
--ax-red: #F23A3A;
|
|
14
|
-
--ax-red-t: #FEECEC;
|
|
15
|
-
--ax-red-e: #F9C1C1;
|
|
16
|
-
|
|
17
|
-
/* Ink steps. Amber and red are legible as FILLS, not as small text:
|
|
18
|
-
#FFB300 on white is ~1.8:1 and #F23A3A ~3.6:1, both under 4.5:1. Use
|
|
19
|
-
these wherever the colour carries words rather than area. */
|
|
20
|
-
--ax-amber-ink: #8a5a00;
|
|
21
|
-
--ax-red-ink: #a52020;
|
|
22
|
-
|
|
23
|
-
/* --- Surfaces + text ---------------------------------------------- */
|
|
24
|
-
--ax-bg: #f8f9fa;
|
|
25
|
-
--ax-bg-elev: #f1f3f4;
|
|
26
|
-
--ax-surface: #ffffff;
|
|
27
|
-
--ax-surface-2: #f8f9fa;
|
|
28
|
-
--ax-surface-3: #f1f3f4;
|
|
29
|
-
--ax-border: #e8eaed;
|
|
30
|
-
--ax-border-2: #dadce0;
|
|
31
|
-
--ax-text: #202124;
|
|
32
|
-
--ax-text-2: #5f6368;
|
|
33
|
-
--ax-muted: #9aa0a6;
|
|
34
|
-
|
|
35
|
-
/* --- Semantic ------------------------------------------------------ */
|
|
36
|
-
--ax-accent: var(--ax-blue);
|
|
37
|
-
--ax-accent-2: var(--ax-blue-d);
|
|
38
|
-
--ax-accent-t: var(--ax-blue-t);
|
|
39
|
-
--ax-ok: var(--ax-green);
|
|
40
|
-
--ax-warn: var(--ax-amber);
|
|
41
|
-
--ax-err: var(--ax-red);
|
|
42
|
-
--ax-info: var(--ax-blue);
|
|
43
|
-
|
|
44
|
-
/* --- Shape ---------------------------------------------------------
|
|
45
|
-
The offset shadow is the signature move: a solid, un-blurred drop in a
|
|
46
|
-
darker shade of the element's own colour. It reads as a physical edge
|
|
47
|
-
rather than a glow, and it is what stops flat 2px-bordered boxes from
|
|
48
|
-
looking like a wireframe. */
|
|
49
|
-
--ax-border-w: 2px;
|
|
50
|
-
--ax-radius: 16px;
|
|
51
|
-
--ax-radius-lg: 20px;
|
|
52
|
-
--ax-radius-sm: 12px;
|
|
53
|
-
--ax-radius-pill: 999px;
|
|
54
|
-
--ax-shadow: 0 3px 0 var(--ax-border);
|
|
55
|
-
--ax-shadow-lg: 0 4px 0 var(--ax-border-2);
|
|
56
|
-
--ax-shadow-accent: 0 4px 0 var(--ax-blue-d);
|
|
57
|
-
--ax-shadow-ok: 0 4px 0 var(--ax-green-d);
|
|
58
|
-
|
|
59
|
-
/* --- Spacing ------------------------------------------------------- */
|
|
60
|
-
/* Width of the ask-an-agent drawer. Lives here because pages reflow
|
|
61
|
-
around it; the drawer overwrites it on :root when resized. */
|
|
62
|
-
--ax-as-w: 420px;
|
|
63
|
-
--ax-pad: 16px;
|
|
64
|
-
--ax-pad-sm: 10px;
|
|
65
|
-
--ax-gap: 12px;
|
|
66
|
-
|
|
67
|
-
/* --- Type ---------------------------------------------------------- */
|
|
68
|
-
--ax-font: "Outfit", -apple-system, "Segoe UI", system-ui, sans-serif;
|
|
69
|
-
--ax-mono: "Roboto Mono", ui-monospace, "SF Mono", Consolas, monospace;
|
|
70
|
-
--ax-fs: 14px;
|
|
71
|
-
--ax-fs-sm: 13px;
|
|
72
|
-
--ax-fs-xs: 12px;
|
|
73
|
-
|
|
74
|
-
/* Legacy aliases so older CSS blocks keep rendering until they're ported. */
|
|
75
|
-
--bg: var(--ax-bg);
|
|
76
|
-
--card: var(--ax-surface);
|
|
77
|
-
--node: var(--ax-bg-elev);
|
|
78
|
-
--border: var(--ax-border);
|
|
79
|
-
--text: var(--ax-text);
|
|
80
|
-
--muted: var(--ax-muted);
|
|
81
|
-
--accent: var(--ax-accent);
|
|
82
|
-
--yellow: var(--ax-warn);
|
|
83
|
-
--red: var(--ax-err);
|
|
84
|
-
--blue: var(--ax-info);
|
|
85
|
-
--gray: var(--ax-muted);
|
|
86
|
-
color-scheme: light;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* Dark is not a tint of light \u2014 the brand colours are lifted toward their
|
|
90
|
-
tints so they keep contrast against a dark ground, and the offset shadow
|
|
91
|
-
goes DARKER than the surface instead of lighter. Same shape language,
|
|
92
|
-
inverted physics. */
|
|
93
|
-
[data-theme="dark"] {
|
|
94
|
-
--ax-blue: #6BA5FF;
|
|
95
|
-
--ax-blue-d: #1B5FD9;
|
|
96
|
-
--ax-blue-t: #16233d;
|
|
97
|
-
--ax-blue-e: #2f4d7a;
|
|
98
|
-
--ax-green: #4ED89B;
|
|
99
|
-
--ax-green-d: #178F58;
|
|
100
|
-
--ax-green-e: #1e4a36;
|
|
101
|
-
--ax-amber: #FFC948;
|
|
102
|
-
--ax-amber-e: #4a3a12;
|
|
103
|
-
--ax-amber-t: #2a2313;
|
|
104
|
-
--ax-red: #FF6B6B;
|
|
105
|
-
--ax-red-t: #3a1c1c;
|
|
106
|
-
--ax-red-e: #6b2f2f;
|
|
107
|
-
--ax-amber-ink: #FFC948;
|
|
108
|
-
--ax-red-ink: #FF8A8A;
|
|
109
|
-
|
|
110
|
-
--ax-bg: #14161a;
|
|
111
|
-
--ax-bg-elev: #191c21;
|
|
112
|
-
--ax-surface: #1e2228;
|
|
113
|
-
--ax-surface-2: #23272e;
|
|
114
|
-
--ax-surface-3: #2a2f37;
|
|
115
|
-
--ax-border: #2f353e;
|
|
116
|
-
--ax-border-2: #3d444f;
|
|
117
|
-
--ax-text: #f1f3f4;
|
|
118
|
-
--ax-text-2: #b6bcc4;
|
|
119
|
-
--ax-muted: #858c96;
|
|
120
|
-
|
|
121
|
-
--ax-shadow: 0 3px 0 #0e1013;
|
|
122
|
-
--ax-shadow-lg: 0 4px 0 #0e1013;
|
|
123
|
-
--ax-shadow-accent: 0 4px 0 #14396e;
|
|
124
|
-
--ax-shadow-ok: 0 4px 0 #11402c;
|
|
125
|
-
color-scheme: dark;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/* Base element resets shared across every page. */
|
|
129
|
-
* { box-sizing: border-box; }
|
|
130
|
-
html, body {
|
|
131
|
-
margin: 0; min-height: 100vh;
|
|
132
|
-
background: var(--ax-bg); color: var(--ax-text);
|
|
133
|
-
font-family: var(--ax-font); font-size: var(--ax-fs);
|
|
134
|
-
-webkit-font-smoothing: antialiased;
|
|
135
|
-
}
|
|
136
|
-
pre, code, .ax-mono {
|
|
137
|
-
font-family: var(--ax-mono); font-variant-numeric: tabular-nums;
|
|
138
|
-
letter-spacing: -0.01em;
|
|
139
|
-
}
|
|
140
|
-
a { color: var(--ax-accent); text-decoration: none; font-weight: 600; }
|
|
141
|
-
a:hover { color: var(--ax-accent-2); text-decoration: underline; }
|
|
142
|
-
.ax-muted { color: var(--ax-muted); }
|
|
143
|
-
.ax-accent { color: var(--ax-accent); }`;var b=`
|
|
144
|
-
.ax-as-dock{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:59;
|
|
145
|
-
display:flex;flex-direction:column;align-items:center;
|
|
146
|
-
width:min(620px,calc(100vw - 36px));transition:transform 160ms ease}
|
|
147
|
-
/* Centred in the space that is left, not in the space the drawer covers. */
|
|
148
|
-
body.ax-as-open .ax-as-dock{left:calc((100vw - var(--ax-as-w)) / 2)}
|
|
149
|
-
/* Tucked: slide out of the way but leave the grip, or there is nothing to
|
|
150
|
-
click to bring it back. */
|
|
151
|
-
.ax-as-dock.is-tucked{transform:translateX(-50%) translateY(calc(100% - 26px))}
|
|
152
|
-
body.ax-as-open .ax-as-dock.is-tucked{transform:translateX(-50%) translateY(calc(100% - 26px))}
|
|
153
|
-
@media (prefers-reduced-motion:reduce){.ax-as-dock{transition:none}}
|
|
154
|
-
.ax-as-dock__grip{width:56px;height:20px;margin-bottom:-2px;cursor:pointer;
|
|
155
|
-
background:var(--ax-surface);border:var(--ax-border-w) solid var(--ax-border);
|
|
156
|
-
border-bottom:none;border-radius:var(--ax-radius) var(--ax-radius) 0 0;padding:0;
|
|
157
|
-
display:flex;align-items:center;justify-content:center}
|
|
158
|
-
.ax-as-dock__grip::before{content:"";width:22px;height:3px;border-radius:2px;
|
|
159
|
-
background:var(--ax-border-2)}
|
|
160
|
-
.ax-as-dock__grip:hover::before{background:var(--ax-accent)}
|
|
161
|
-
.ax-as-bar{display:flex;gap:8px;align-items:center;width:100%;padding:8px;
|
|
162
|
-
background:var(--ax-surface);border:var(--ax-border-w) solid var(--ax-border);
|
|
163
|
-
border-radius:var(--ax-radius-lg) var(--ax-radius-lg) 0 0;border-bottom:none;
|
|
164
|
-
box-shadow:var(--ax-shadow-lg)}
|
|
165
|
-
.ax-as-bar input{flex:1;min-width:0;font:inherit;font-size:13px;padding:7px 10px;
|
|
166
|
-
border-radius:var(--ax-radius-sm);border:var(--ax-border-w) solid var(--ax-border-2);
|
|
167
|
-
background:var(--ax-bg);color:var(--ax-text)}
|
|
168
|
-
.ax-as-bar button{flex:none}
|
|
169
|
-
/* Keep the last row of a page clear of the dock. */
|
|
170
|
-
body{padding-bottom:86px}
|
|
171
|
-
@media (max-width:640px){.ax-as-dock{width:calc(100vw - 24px)}
|
|
172
|
-
body.ax-as-open .ax-as-dock{left:50%}}
|
|
173
|
-
.ax-as-handle{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:60;
|
|
174
|
-
display:flex;align-items:center;gap:6px;writing-mode:vertical-rl;
|
|
175
|
-
background:var(--ax-surface);color:var(--ax-text);cursor:pointer;
|
|
176
|
-
border:var(--ax-border-w) solid var(--ax-border);border-right:none;
|
|
177
|
-
border-radius:var(--ax-radius) 0 0 var(--ax-radius);padding:14px 7px;
|
|
178
|
-
font:inherit;font-size:12px;font-weight:600;box-shadow:var(--ax-shadow)}
|
|
179
|
-
.ax-as-handle:hover{background:var(--ax-surface-2)}
|
|
180
|
-
/* Open pushes the page over rather than covering it: a drawer that hides the
|
|
181
|
-
rows you are asking about is worse than no drawer. Below 900px there is no
|
|
182
|
-
room to give, so it overlays. */
|
|
183
|
-
body.ax-as-open{padding-right:var(--ax-as-w)}
|
|
184
|
-
@media (max-width:900px){body.ax-as-open{padding-right:0}}
|
|
185
|
-
.ax-as{position:fixed;top:0;right:0;height:100vh;width:var(--ax-as-w);max-width:92vw;z-index:61;
|
|
186
|
-
display:flex;flex-direction:column;background:var(--ax-surface);
|
|
187
|
-
border-left:var(--ax-border-w) solid var(--ax-border);
|
|
188
|
-
transform:translateX(100%);transition:transform 160ms ease}
|
|
189
|
-
.ax-as.is-open{transform:translateX(0)}
|
|
190
|
-
@media (prefers-reduced-motion:reduce){.ax-as{transition:none}}
|
|
191
|
-
.ax-as__grip{position:absolute;left:0;top:0;bottom:0;width:6px;cursor:col-resize;
|
|
192
|
-
background:transparent}
|
|
193
|
-
.ax-as__grip:hover,.ax-as__grip:focus-visible{background:var(--ax-accent)}
|
|
194
|
-
.ax-as__head{display:flex;align-items:center;gap:8px;padding:12px 14px;
|
|
195
|
-
border-bottom:var(--ax-border-w) solid var(--ax-border)}
|
|
196
|
-
.ax-as__title{font-size:13px;font-weight:600;flex:1}
|
|
197
|
-
.ax-as__x{background:none;border:none;color:var(--ax-text-2);cursor:pointer;font:inherit;
|
|
198
|
-
font-size:18px;line-height:1;padding:0 4px}
|
|
199
|
-
.ax-as__icon{background:var(--ax-surface-2);border:1px solid var(--ax-border-2);color:var(--ax-text-2);
|
|
200
|
-
cursor:pointer;font:inherit;font-size:11.5px;font-weight:600;padding:3px 9px;
|
|
201
|
-
border-radius:var(--ax-radius-pill)}
|
|
202
|
-
.ax-as__icon:hover{color:var(--ax-text);background:var(--ax-surface-3)}
|
|
203
|
-
.ax-as__icon.is-on{background:var(--ax-blue-t);border-color:var(--ax-blue-e);color:var(--ax-blue-d)}
|
|
204
|
-
.ax-as__hist{border-bottom:var(--ax-border-w) solid var(--ax-border);max-height:44vh;overflow:auto}
|
|
205
|
-
.ax-as__hist-empty{padding:12px 14px;font-size:12px;color:var(--ax-text-2)}
|
|
206
|
-
.ax-as__hist-list{list-style:none;margin:0;padding:0}
|
|
207
|
-
.ax-as__hist-list li{display:flex;align-items:center;gap:8px;padding:9px 14px;
|
|
208
|
-
border-bottom:1px solid var(--ax-border);cursor:pointer}
|
|
209
|
-
.ax-as__hist-list li:hover{background:var(--ax-surface-2)}
|
|
210
|
-
.ax-as__hist-list li.is-on{background:var(--ax-blue-t)}
|
|
211
|
-
.ax-as__hist-t{flex:1;min-width:0;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
212
|
-
.ax-as__hist-m{font-family:var(--ax-mono);font-size:10.5px;color:var(--ax-text-2);flex:none}
|
|
213
|
-
.ax-as__hist-x{background:none;border:none;color:var(--ax-text-2);cursor:pointer;font-size:15px;
|
|
214
|
-
line-height:1;padding:0 2px;flex:none}
|
|
215
|
-
.ax-as__pending{opacity:0.75}
|
|
216
|
-
/* Rendered markdown inside a bubble: tight enough not to look like a page. */
|
|
217
|
-
.ax-as__md{white-space:normal}
|
|
218
|
-
.ax-as__md p{margin:0 0 8px}
|
|
219
|
-
.ax-as__md p:last-child{margin-bottom:0}
|
|
220
|
-
.ax-as__md ul,.ax-as__md ol{margin:0 0 8px;padding-left:20px}
|
|
221
|
-
.ax-as__md li{margin:2px 0}
|
|
222
|
-
.ax-as__md code{font-family:var(--ax-mono);font-size:11.5px;background:var(--ax-surface-3);
|
|
223
|
-
border:1px solid var(--ax-border);border-radius:4px;padding:0 4px}
|
|
224
|
-
.ax-as__md pre{margin:0 0 8px;padding:9px 11px;overflow-x:auto;background:var(--ax-surface-3);
|
|
225
|
-
border:1px solid var(--ax-border);border-radius:var(--ax-radius-sm)}
|
|
226
|
-
.ax-as__md pre code{background:none;border:none;padding:0;font-size:11.5px}
|
|
227
|
-
.ax-as__md h1,.ax-as__md h2,.ax-as__md h3,.ax-as__md h4{font-size:13px;margin:10px 0 6px}
|
|
228
|
-
.ax-as__md blockquote{margin:0 0 8px;padding-left:10px;border-left:3px solid var(--ax-border-2);
|
|
229
|
-
color:var(--ax-text-2)}
|
|
230
|
-
.ax-as__md hr{border:none;border-top:1px solid var(--ax-border);margin:10px 0}
|
|
231
|
-
/* Tables get their own scroller so a wide one cannot stretch the drawer. */
|
|
232
|
-
.ax-as__md table{display:block;overflow-x:auto;border-collapse:collapse;margin:0 0 8px;font-size:12px}
|
|
233
|
-
.ax-as__md th,.ax-as__md td{border:1px solid var(--ax-border);padding:4px 8px;text-align:left;
|
|
234
|
-
white-space:nowrap}
|
|
235
|
-
.ax-as__md th{background:var(--ax-surface-3);font-weight:600}
|
|
236
|
-
.ax-as__pick{display:flex;gap:8px;padding:10px 14px;border-bottom:1px solid var(--ax-border)}
|
|
237
|
-
.ax-as__pick select{flex:1;min-width:0;font:inherit;font-size:12px;padding:5px 8px;
|
|
238
|
-
border-radius:var(--ax-radius-sm);border:var(--ax-border-w) solid var(--ax-border-2);
|
|
239
|
-
background:var(--ax-bg);color:var(--ax-text)}
|
|
240
|
-
.ax-as__ctx{padding:8px 14px;font-size:11.5px;color:var(--ax-text-2);
|
|
241
|
-
border-bottom:1px solid var(--ax-border);display:flex;align-items:center;gap:7px;flex-wrap:wrap}
|
|
242
|
-
.ax-as__ctx code{font-family:var(--ax-mono);font-size:11px}
|
|
243
|
-
.ax-as__log{flex:1;overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
|
|
244
|
-
.ax-as__msg{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;
|
|
245
|
-
padding:9px 12px;border-radius:var(--ax-radius);border:var(--ax-border-w) solid var(--ax-border)}
|
|
246
|
-
.ax-as__msg--me{background:var(--ax-blue-t);border-color:var(--ax-blue-e);align-self:flex-end;max-width:88%}
|
|
247
|
-
.ax-as__msg--them{background:var(--ax-surface-2)}
|
|
248
|
-
.ax-as__msg--err{background:var(--ax-red-t);border-color:var(--ax-red-e);color:var(--ax-red-ink)}
|
|
249
|
-
.ax-as__empty{color:var(--ax-text-2);font-size:12.5px;line-height:1.5}
|
|
250
|
-
.ax-as__foot{padding:10px 14px;border-top:var(--ax-border-w) solid var(--ax-border);
|
|
251
|
-
display:flex;gap:8px;align-items:flex-end}
|
|
252
|
-
.ax-as__foot textarea{flex:1;resize:none;font:inherit;font-size:13px;padding:8px 10px;
|
|
253
|
-
min-height:38px;max-height:140px;border-radius:var(--ax-radius-sm);
|
|
254
|
-
border:var(--ax-border-w) solid var(--ax-border-2);background:var(--ax-bg);color:var(--ax-text)}
|
|
255
|
-
`,h=`
|
|
256
|
-
<div class="ax-as-dock" id="ax-as-dock">
|
|
257
|
-
<button class="ax-as-dock__grip" id="ax-as-bar-toggle" type="button"
|
|
258
|
-
aria-expanded="true" aria-controls="ax-as-bar" title="Hide the composer"></button>
|
|
259
|
-
<form class="ax-as-bar" id="ax-as-bar">
|
|
260
|
-
<input id="ax-as-bar-input" autocomplete="off" placeholder="Ask an agent about this page…" aria-label="Ask an agent about this page">
|
|
261
|
-
<button class="ax-btn ax-btn--primary ax-btn--sm" type="submit" id="ax-as-bar-send">Ask</button>
|
|
262
|
-
</form>
|
|
263
|
-
</div>
|
|
264
|
-
<button class="ax-as-handle" id="ax-as-handle" aria-expanded="false" aria-controls="ax-as">Ask an agent</button>
|
|
265
|
-
<aside class="ax-as" id="ax-as" aria-label="Ask an agent" aria-hidden="true">
|
|
266
|
-
<div class="ax-as__grip" id="ax-as-grip" role="separator" aria-orientation="vertical"
|
|
267
|
-
tabindex="0" aria-label="Resize panel \u2014 arrow keys adjust"></div>
|
|
268
|
-
<div class="ax-as__head">
|
|
269
|
-
<span class="ax-as__title" id="ax-as-title">Ask an agent</span>
|
|
270
|
-
<button class="ax-as__icon" id="ax-as-hist" title="Past conversations">History</button>
|
|
271
|
-
<button class="ax-as__icon" id="ax-as-new" title="Start a new conversation">New</button>
|
|
272
|
-
<button class="ax-as__x" id="ax-as-close" title="Close">×</button>
|
|
273
|
-
</div>
|
|
274
|
-
<div class="ax-as__hist" id="ax-as-hist-panel" hidden>
|
|
275
|
-
<div class="ax-as__hist-empty" id="ax-as-hist-empty">No past conversations yet.</div>
|
|
276
|
-
<ul class="ax-as__hist-list" id="ax-as-hist-list"></ul>
|
|
277
|
-
</div>
|
|
278
|
-
<div class="ax-as__pick">
|
|
279
|
-
<select id="ax-as-agent" aria-label="Agent"><option value="">Loading agents…</option></select>
|
|
280
|
-
<select id="ax-as-node" aria-label="Node"><option value="">This node</option></select>
|
|
281
|
-
</div>
|
|
282
|
-
<div class="ax-as__ctx" id="ax-as-ctx"></div>
|
|
283
|
-
<div class="ax-as__log" id="ax-as-log">
|
|
284
|
-
<p class="ax-as__empty">Ask about what is on this page. What you are looking at — the page, its filters and the rows in view — goes with the question.</p>
|
|
285
|
-
</div>
|
|
286
|
-
</aside>`,v=String.raw`
|
|
287
|
-
(function(){
|
|
288
|
-
const $=id=>document.getElementById(id);
|
|
289
|
-
const panel=$('ax-as'), handle=$('ax-as-handle');
|
|
290
|
-
if(!panel||!handle)return;
|
|
291
|
-
const esc=s=>String(s==null?'':s).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
|
292
|
-
let busy=false;
|
|
293
|
-
|
|
294
|
-
const WMIN=320,WMAX=760;
|
|
295
|
-
function setWidth(px){
|
|
296
|
-
const w=Math.max(WMIN,Math.min(WMAX,Math.round(px)));
|
|
297
|
-
document.documentElement.style.setProperty('--ax-as-w',w+'px');
|
|
298
|
-
try{localStorage.setItem('ax-assistant-w',String(w))}catch{}
|
|
299
|
-
}
|
|
300
|
-
try{const w=Number(localStorage.getItem('ax-assistant-w'));if(w)setWidth(w)}catch{}
|
|
301
|
-
|
|
302
|
-
/* '0' means the operator closed it on purpose; null means they simply have
|
|
303
|
-
not opened it yet, and auto-open is still welcome. */
|
|
304
|
-
function userHid(){try{return localStorage.getItem('ax-assistant-open')==='0'}catch{return false}}
|
|
305
|
-
function open(v){
|
|
306
|
-
document.body.classList.toggle('ax-as-open',v);
|
|
307
|
-
panel.classList.toggle('is-open',v);
|
|
308
|
-
panel.setAttribute('aria-hidden',String(!v));
|
|
309
|
-
handle.setAttribute('aria-expanded',String(v));
|
|
310
|
-
try{localStorage.setItem('ax-assistant-open',v?'1':'0')}catch{}
|
|
311
|
-
if(v)paintCtx();
|
|
312
|
-
}
|
|
313
|
-
handle.onclick=()=>open(!panel.classList.contains('is-open'));
|
|
314
|
-
$('ax-as-close').onclick=()=>open(false);
|
|
315
|
-
document.addEventListener('keydown',e=>{if(e.key==='Escape'&&panel.classList.contains('is-open'))open(false);});
|
|
316
|
-
try{if(localStorage.getItem('ax-assistant-open')==='1')open(true)}catch{}
|
|
317
|
-
|
|
318
|
-
/* What the agent is told about where you are. Pages publish their own slice;
|
|
319
|
-
everything else still gets the path, so the question is never contextless. */
|
|
320
|
-
function pageContext(){
|
|
321
|
-
const base={path:location.pathname,tab:document.querySelector('.ax-topbar__tab.is-active')?.textContent?.trim()||null};
|
|
322
|
-
try{ if(typeof window.axPageContext==='function') return {...base,...(window.axPageContext()||{})}; }catch(e){}
|
|
323
|
-
return base;
|
|
324
|
-
}
|
|
325
|
-
function paintCtx(){
|
|
326
|
-
const c=pageContext();
|
|
327
|
-
// A page that names itself makes the raw path noise, and tab just
|
|
328
|
-
// repeats the nav — so drop both when the page supplies its own name.
|
|
329
|
-
const shownCtx={...c};
|
|
330
|
-
if(shownCtx.page){delete shownCtx.path;delete shownCtx.tab;}
|
|
331
|
-
const bits=Object.entries(shownCtx).filter(([k,v])=>v!=null&&v!=='').slice(0,4)
|
|
332
|
-
.map(([k,v])=>'<code>'+esc(k)+'='+esc(typeof v==='object'?(Array.isArray(v)?v.length+' items':JSON.stringify(v).slice(0,28)):v)+'</code>');
|
|
333
|
-
$('ax-as-ctx').innerHTML='Sending with your question: '+(bits.join(' ')||'<code>this page</code>');
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/* A one-off line in the log, for errors raised before a thread exists. */
|
|
337
|
-
function add(kind,text){
|
|
338
|
-
const log=$('ax-as-log');
|
|
339
|
-
const empty=log.querySelector('.ax-as__empty'); if(empty)empty.remove();
|
|
340
|
-
const el=document.createElement('div');
|
|
341
|
-
el.className='ax-as__msg ax-as__msg--'+kind;
|
|
342
|
-
el.textContent=text;
|
|
343
|
-
log.appendChild(el); log.scrollTop=log.scrollHeight;
|
|
344
|
-
return el;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
/* Who can answer, and where. Both pickers degrade to a plain statement
|
|
348
|
-
rather than an empty dropdown that looks like it is still loading. */
|
|
349
|
-
fetch('/api/agents').then(r=>r.json()).then(d=>{
|
|
350
|
-
const list=(Array.isArray(d)?d:(d.agents||[])).map(a=>a.id||a.name).filter(Boolean);
|
|
351
|
-
$('ax-as-agent').innerHTML=list.length
|
|
352
|
-
?list.map(a=>'<option value="'+esc(a)+'">'+esc(a)+'</option>').join('')
|
|
353
|
-
:'<option value="">no agents on this node</option>';
|
|
354
|
-
}).catch(()=>{$('ax-as-agent').innerHTML='<option value="">agents unavailable</option>';});
|
|
355
|
-
|
|
356
|
-
fetch('/api/monitor').then(r=>r.json()).then(d=>{
|
|
357
|
-
const ns=(d.nodes||[]).filter(n=>n.ok);
|
|
358
|
-
if(ns.length>1)$('ax-as-node').innerHTML=ns.map(n=>'<option value="'+esc(n.url)+'">'+esc(n.name)+'</option>').join('');
|
|
359
|
-
}).catch(()=>{});
|
|
360
|
-
|
|
361
|
-
/* --- Conversation state ---------------------------------------------------
|
|
362
|
-
The thread lives on the daemon; the page only remembers which one it was
|
|
363
|
-
looking at. That is what survives a navigation: a turn started here keeps
|
|
364
|
-
running even after this page is gone, and the answer is waiting in the
|
|
365
|
-
thread when you come back. */
|
|
366
|
-
let threadId=null, poll=null;
|
|
367
|
-
try{threadId=localStorage.getItem('ax-assistant-thread')||null}catch{}
|
|
368
|
-
function setThread(id){
|
|
369
|
-
threadId=id;
|
|
370
|
-
try{id?localStorage.setItem('ax-assistant-thread',id):localStorage.removeItem('ax-assistant-thread')}catch{}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
function bubble(m){
|
|
374
|
-
const el=document.createElement('div');
|
|
375
|
-
const kind=m.role==='user'?'me':(m.status==='error'?'err':'them');
|
|
376
|
-
el.className='ax-as__msg ax-as__msg--'+kind+(m.status==='pending'?' ax-as__pending':'');
|
|
377
|
-
if(m.status==='pending'){el.textContent='Thinking…';return el;}
|
|
378
|
-
const body=m.content||'(no reply)';
|
|
379
|
-
// The reply is markdown. markdownToHtml escapes before it marks up, which
|
|
380
|
-
// matters here: this text came from a model, not from us.
|
|
381
|
-
if(m.role==='assistant'&&m.status==='done'&&typeof markdownToHtml==='function'){
|
|
382
|
-
el.classList.add('ax-as__md');
|
|
383
|
-
try{el.innerHTML=markdownToHtml(body);}catch(e){el.textContent=body;}
|
|
384
|
-
}else el.textContent=body;
|
|
385
|
-
return el;
|
|
386
|
-
}
|
|
387
|
-
function renderMessages(msgs){
|
|
388
|
-
const log=$('ax-as-log');
|
|
389
|
-
log.innerHTML='';
|
|
390
|
-
if(!msgs.length){
|
|
391
|
-
log.innerHTML='<p class="ax-as__empty">Ask about what is on this page. What you are looking at — the page, its filters and the rows in view — goes with the question.</p>';
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
for(const m of msgs)log.appendChild(bubble(m));
|
|
395
|
-
log.scrollTop=log.scrollHeight;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
async function loadThread(id,{quiet}={}){
|
|
399
|
-
if(!id){renderMessages([]);$('ax-as-title').textContent='Ask an agent';return;}
|
|
400
|
-
try{
|
|
401
|
-
const r=await fetch('/api/assistant/thread?id='+encodeURIComponent(id));
|
|
402
|
-
if(!r.ok){setThread(null);renderMessages([]);return;}
|
|
403
|
-
const d=await r.json();
|
|
404
|
-
$('ax-as-title').textContent=d.thread.title||'Ask an agent';
|
|
405
|
-
if(d.thread.agentId)$('ax-as-agent').value=d.thread.agentId;
|
|
406
|
-
renderMessages(d.messages||[]);
|
|
407
|
-
const pending=(d.messages||[]).some(m=>m.status==='pending');
|
|
408
|
-
clearTimeout(poll);
|
|
409
|
-
if(pending)poll=setTimeout(()=>loadThread(id,{quiet:true}),1500);
|
|
410
|
-
else if(!quiet)loadHistory();
|
|
411
|
-
}catch(e){}
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
async function loadHistory(){
|
|
415
|
-
try{
|
|
416
|
-
const r=await fetch('/api/assistant/threads');
|
|
417
|
-
const d=await r.json();
|
|
418
|
-
const list=d.threads||[];
|
|
419
|
-
$('ax-as-hist-empty').hidden=list.length>0;
|
|
420
|
-
$('ax-as-hist-list').innerHTML=list.map(t=>
|
|
421
|
-
'<li data-thread="'+esc(t.id)+'"'+(t.id===threadId?' class="is-on"':'')+'>'
|
|
422
|
-
+'<span class="ax-as__hist-t">'+esc(t.title)+'</span>'
|
|
423
|
-
+'<span class="ax-as__hist-m">'+esc(t.agentId)+'</span>'
|
|
424
|
-
+'<button class="ax-as__hist-x" data-del="'+esc(t.id)+'" title="Delete">×</button></li>').join('');
|
|
425
|
-
}catch(e){}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
$('ax-as-hist').onclick=()=>{
|
|
429
|
-
const panel2=$('ax-as-hist-panel');
|
|
430
|
-
const show=panel2.hidden;
|
|
431
|
-
panel2.hidden=!show;
|
|
432
|
-
$('ax-as-hist').classList.toggle('is-on',show);
|
|
433
|
-
if(show)loadHistory();
|
|
434
|
-
};
|
|
435
|
-
$('ax-as-new').onclick=()=>{
|
|
436
|
-
setThread(null);renderMessages([]);$('ax-as-title').textContent='Ask an agent';
|
|
437
|
-
$('ax-as-hist-panel').hidden=true;$('ax-as-hist').classList.remove('is-on');
|
|
438
|
-
$('ax-as-bar-input').focus();
|
|
439
|
-
};
|
|
440
|
-
$('ax-as-hist-list').addEventListener('click',async e=>{
|
|
441
|
-
const del=e.target.closest('[data-del]');
|
|
442
|
-
if(del){e.stopPropagation();
|
|
443
|
-
await fetch('/api/assistant/delete',{method:'POST',headers:{'Content-Type':'application/json'},
|
|
444
|
-
body:JSON.stringify({threadId:del.dataset.del})});
|
|
445
|
-
if(del.dataset.del===threadId){setThread(null);renderMessages([]);}
|
|
446
|
-
loadHistory();return;}
|
|
447
|
-
const li=e.target.closest('[data-thread]');
|
|
448
|
-
if(!li)return;
|
|
449
|
-
setThread(li.dataset.thread);
|
|
450
|
-
$('ax-as-hist-panel').hidden=true;$('ax-as-hist').classList.remove('is-on');
|
|
451
|
-
loadThread(threadId);loadHistory();
|
|
452
|
-
});
|
|
453
|
-
|
|
454
|
-
async function send(){
|
|
455
|
-
const input=$('ax-as-bar-input'); const text=input.value.trim();
|
|
456
|
-
if(!text||busy)return;
|
|
457
|
-
const agent=$('ax-as-agent').value;
|
|
458
|
-
if(!agent&&!threadId){add('err','Pick an agent first.');return;}
|
|
459
|
-
busy=true; $('ax-as-bar-send').disabled=true;
|
|
460
|
-
input.value='';
|
|
461
|
-
try{
|
|
462
|
-
const r=await fetch('/api/assistant',{method:'POST',headers:{'Content-Type':'application/json'},
|
|
463
|
-
body:JSON.stringify({threadId:threadId||undefined,agentId:agent,node:$('ax-as-node').value||undefined,
|
|
464
|
-
message:text,context:pageContext()})});
|
|
465
|
-
const d=await r.json();
|
|
466
|
-
if(!r.ok||d.error)throw new Error(d.error||('HTTP '+r.status));
|
|
467
|
-
setThread(d.threadId);
|
|
468
|
-
await loadThread(d.threadId);
|
|
469
|
-
}catch(e){add('err',e.message);}
|
|
470
|
-
finally{busy=false;$('ax-as-bar-send').disabled=false;input.focus();}
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
/* The floating bar is the fast path: type from anywhere on the page, and the
|
|
474
|
-
drawer opens to show the answer arriving. It shares one send(), so a
|
|
475
|
-
question asked here continues the same conversation as one asked there. */
|
|
476
|
-
$('ax-as-bar').addEventListener('submit',e=>{e.preventDefault();open(true);send();});
|
|
477
|
-
|
|
478
|
-
/* Focusing the composer is a statement of intent: show the conversation it
|
|
479
|
-
belongs to — unless the operator has deliberately closed the drawer, in
|
|
480
|
-
which case reopening it under them is the opposite of helpful. */
|
|
481
|
-
$('ax-as-bar-input').addEventListener('focus',()=>{if(!userHid())open(true);});
|
|
482
|
-
|
|
483
|
-
/* Tuck the whole dock away, and remember it. */
|
|
484
|
-
const dock=$('ax-as-dock');
|
|
485
|
-
function tuck(v){
|
|
486
|
-
dock.classList.toggle('is-tucked',v);
|
|
487
|
-
$('ax-as-bar-toggle').setAttribute('aria-expanded',String(!v));
|
|
488
|
-
$('ax-as-bar-toggle').title=v?'Show the composer':'Hide the composer';
|
|
489
|
-
try{localStorage.setItem('ax-assistant-bar',v?'0':'1')}catch{}
|
|
490
|
-
}
|
|
491
|
-
$('ax-as-bar-toggle').onclick=()=>tuck(!dock.classList.contains('is-tucked'));
|
|
492
|
-
try{if(localStorage.getItem('ax-assistant-bar')==='0')tuck(true)}catch{}
|
|
493
|
-
|
|
494
|
-
/* Restore whatever was in flight when the last page unloaded, and surface it:
|
|
495
|
-
an answer landing while you are on another page is the whole point. */
|
|
496
|
-
loadThread(threadId).then(()=>{
|
|
497
|
-
if(threadId&&!userHid()&&$('ax-as-log').querySelector('.ax-as__pending'))open(true);
|
|
498
|
-
});
|
|
499
|
-
loadHistory();
|
|
500
|
-
})();
|
|
501
|
-
`;function m(a){return"globalThis.__axBind=globalThis.__axBind||((n,f)=>{globalThis[f.name]=f;globalThis[n]=f;return f});"+Object.entries(a).map(([t,o])=>`const ${t}=globalThis.__axBind(${JSON.stringify(t)},${o.toString()});`).join("")}var s=`
|
|
502
|
-
/* --- Dots --- */
|
|
503
|
-
.ax-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ax-muted); }
|
|
504
|
-
.ax-dot--ok, .ax-dot--live { background: var(--ax-accent); }
|
|
505
|
-
.ax-dot--warn { background: var(--ax-warn); }
|
|
506
|
-
.ax-dot--err { background: var(--ax-err); }
|
|
507
|
-
.ax-dot--off { background: var(--ax-border-2); }
|
|
508
|
-
.ax-dot--pulse {
|
|
509
|
-
box-shadow: 0 0 0 0 currentColor;
|
|
510
|
-
animation: ax-pulse 1.8s infinite;
|
|
511
|
-
color: var(--ax-accent);
|
|
512
|
-
}
|
|
513
|
-
@keyframes ax-pulse {
|
|
514
|
-
0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ax-accent) 70%, transparent); }
|
|
515
|
-
70% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--ax-accent) 0%, transparent); }
|
|
516
|
-
100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ax-accent) 0%, transparent); }
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
/* --- Badges --- */
|
|
520
|
-
.ax-badge {
|
|
521
|
-
display: inline-flex; align-items: center; gap: 4px;
|
|
522
|
-
padding: 2px 10px; border-radius: var(--ax-radius-pill); font-size: var(--ax-fs-xs); line-height: 18px;
|
|
523
|
-
border: var(--ax-border-w) solid var(--ax-border-2); color: var(--ax-text-2);
|
|
524
|
-
background: var(--ax-surface); font-weight: 600;
|
|
525
|
-
}
|
|
526
|
-
.ax-badge--mono {
|
|
527
|
-
font-family: var(--ax-mono); letter-spacing: 0.02em;
|
|
528
|
-
text-transform: uppercase; font-size: 10px;
|
|
529
|
-
}
|
|
530
|
-
.ax-badge--accent {
|
|
531
|
-
color: var(--ax-accent);
|
|
532
|
-
border-color: color-mix(in oklch, var(--ax-accent) 50%, transparent);
|
|
533
|
-
}
|
|
534
|
-
.ax-badge--live {
|
|
535
|
-
color: var(--ax-accent);
|
|
536
|
-
background: color-mix(in oklch, var(--ax-accent) 14%, transparent);
|
|
537
|
-
border-color: color-mix(in oklch, var(--ax-accent) 60%, transparent);
|
|
538
|
-
font-weight: 600; letter-spacing: 0.06em;
|
|
539
|
-
}
|
|
540
|
-
.ax-badge--warn {
|
|
541
|
-
color: var(--ax-warn);
|
|
542
|
-
border-color: color-mix(in oklch, var(--ax-warn) 50%, transparent);
|
|
543
|
-
}
|
|
544
|
-
.ax-badge--err {
|
|
545
|
-
color: var(--ax-err);
|
|
546
|
-
border-color: color-mix(in oklch, var(--ax-err) 50%, transparent);
|
|
547
|
-
}
|
|
548
|
-
.ax-badge--ghost {
|
|
549
|
-
color: var(--ax-muted); border-color: var(--ax-border); background: var(--ax-surface-2);
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
/* --- Buttons --- */
|
|
553
|
-
.ax-btn {
|
|
554
|
-
background: var(--ax-surface); color: var(--ax-text-2);
|
|
555
|
-
border: var(--ax-border-w) solid var(--ax-border-2); border-radius: var(--ax-radius);
|
|
556
|
-
padding: 8px 16px; font: inherit; font-size: var(--ax-fs); font-weight: 600;
|
|
557
|
-
cursor: pointer; line-height: 1.4;
|
|
558
|
-
box-shadow: var(--ax-shadow);
|
|
559
|
-
transition: border-color 0.1s, color 0.1s, background 0.1s, transform 0.06s, box-shadow 0.06s;
|
|
560
|
-
}
|
|
561
|
-
.ax-btn:hover:not(:disabled) { color: var(--ax-text); border-color: var(--ax-accent); }
|
|
562
|
-
/* The offset shadow collapses on press so the control physically sinks \u2014
|
|
563
|
-
the whole point of an un-blurred drop rather than a glow. */
|
|
564
|
-
.ax-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ax-border); }
|
|
565
|
-
.ax-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
|
|
566
|
-
|
|
567
|
-
.ax-btn--primary {
|
|
568
|
-
background: color-mix(in oklch, var(--ax-accent) 15%, var(--ax-surface));
|
|
569
|
-
color: var(--ax-accent);
|
|
570
|
-
border-color: color-mix(in oklch, var(--ax-accent) 50%, var(--ax-border-2));
|
|
571
|
-
font-weight: 700;
|
|
572
|
-
box-shadow: var(--ax-shadow-accent);
|
|
573
|
-
}
|
|
574
|
-
.ax-btn--primary:hover:not(:disabled) {
|
|
575
|
-
background: color-mix(in oklch, var(--ax-accent) 25%, var(--ax-surface));
|
|
576
|
-
border-color: var(--ax-accent);
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
.ax-btn--ghost {
|
|
580
|
-
background: transparent; color: var(--ax-muted);
|
|
581
|
-
border-color: var(--ax-border); box-shadow: none;
|
|
582
|
-
}
|
|
583
|
-
.ax-btn--ghost:active:not(:disabled) { transform: none; }
|
|
584
|
-
|
|
585
|
-
.ax-btn--danger {
|
|
586
|
-
color: var(--ax-err);
|
|
587
|
-
border-color: var(--ax-red-e);
|
|
588
|
-
box-shadow: 0 4px 0 var(--ax-red-e);
|
|
589
|
-
}
|
|
590
|
-
.ax-btn--danger:hover:not(:disabled) {
|
|
591
|
-
background: color-mix(in oklch, var(--ax-err) 12%, var(--ax-surface));
|
|
592
|
-
border-color: var(--ax-err);
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
/* --- Chips (read-only labels used in kanban filters, etc.) --- */
|
|
596
|
-
.ax-chip {
|
|
597
|
-
display: inline-block; padding: 0 6px; font-family: var(--ax-mono);
|
|
598
|
-
font-size: 11px; line-height: 18px; border-radius: var(--ax-radius-pill); color: var(--ax-text-2);
|
|
599
|
-
border: var(--ax-border-w) solid var(--ax-border); background: var(--ax-surface); font-weight: 600;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
/* --- Cards --- */
|
|
603
|
-
.ax-card {
|
|
604
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
605
|
-
border-radius: var(--ax-radius-lg); padding: var(--ax-pad);
|
|
606
|
-
box-shadow: var(--ax-shadow);
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
/* Step cards used by the setup wizard / onboarding-style flows. */
|
|
610
|
-
.ax-step {
|
|
611
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
612
|
-
border-radius: var(--ax-radius); padding: 20px 22px; margin: 14px 0;
|
|
613
|
-
}
|
|
614
|
-
.ax-step__head {
|
|
615
|
-
font-size: var(--ax-fs-xs); font-weight: 600; text-transform: uppercase;
|
|
616
|
-
letter-spacing: 0.08em; color: var(--ax-muted);
|
|
617
|
-
margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
|
|
618
|
-
}
|
|
619
|
-
.ax-step__num {
|
|
620
|
-
width: 22px; height: 22px; border-radius: var(--ax-radius-sm);
|
|
621
|
-
background: color-mix(in oklch, var(--ax-accent) 15%, var(--ax-surface));
|
|
622
|
-
border: 1px solid color-mix(in oklch, var(--ax-accent) 45%, var(--ax-border-2));
|
|
623
|
-
color: var(--ax-accent);
|
|
624
|
-
display: inline-flex; align-items: center; justify-content: center;
|
|
625
|
-
font-family: var(--ax-mono); font-size: 11px; font-weight: 700;
|
|
626
|
-
letter-spacing: 0; text-transform: none;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
/* --- Stat strip (the "COUNT / label" cards across the top of Live) --- */
|
|
630
|
-
.ax-statstrip {
|
|
631
|
-
display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
|
|
632
|
-
gap: var(--ax-gap); padding: var(--ax-pad) var(--ax-pad) 0;
|
|
633
|
-
}
|
|
634
|
-
.ax-stat {
|
|
635
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
636
|
-
border-radius: var(--ax-radius); padding: 14px 16px;
|
|
637
|
-
}
|
|
638
|
-
.ax-stat__label {
|
|
639
|
-
font-size: var(--ax-fs-xs); text-transform: uppercase; letter-spacing: 0.06em;
|
|
640
|
-
color: var(--ax-muted); display: flex; align-items: center; gap: 6px;
|
|
641
|
-
}
|
|
642
|
-
.ax-stat__value {
|
|
643
|
-
font-size: 24px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em;
|
|
644
|
-
font-family: var(--ax-mono); font-variant-numeric: tabular-nums;
|
|
645
|
-
}
|
|
646
|
-
.ax-stat__sub {
|
|
647
|
-
font-size: var(--ax-fs-xs); color: var(--ax-muted); margin-top: 2px;
|
|
648
|
-
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
649
|
-
}
|
|
650
|
-
.ax-stat--live .ax-stat__value { color: var(--ax-accent); }
|
|
651
|
-
.ax-stat--warn .ax-stat__value { color: var(--ax-warn); }
|
|
652
|
-
.ax-stat--err .ax-stat__value { color: var(--ax-err); }
|
|
653
|
-
|
|
654
|
-
/* --- Forms --- */
|
|
655
|
-
.ax-field { margin: 10px 0 0; }
|
|
656
|
-
.ax-field:first-child { margin-top: 0; }
|
|
657
|
-
.ax-field label {
|
|
658
|
-
display: block; margin-bottom: 5px;
|
|
659
|
-
font-size: var(--ax-fs-xs); color: var(--ax-muted);
|
|
660
|
-
text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
|
|
661
|
-
}
|
|
662
|
-
.ax-field label .ax-hint {
|
|
663
|
-
text-transform: none; letter-spacing: 0; color: var(--ax-muted);
|
|
664
|
-
font-weight: 400; font-size: var(--ax-fs-xs); margin-left: 6px;
|
|
665
|
-
}
|
|
666
|
-
.ax-field input, .ax-field textarea, .ax-field select {
|
|
667
|
-
width: 100%;
|
|
668
|
-
background: var(--ax-bg); color: var(--ax-text);
|
|
669
|
-
border: var(--ax-border-w) solid var(--ax-border-2); border-radius: var(--ax-radius);
|
|
670
|
-
padding: 11px 14px; font: inherit; font-size: var(--ax-fs);
|
|
671
|
-
transition: border-color 0.1s ease;
|
|
672
|
-
}
|
|
673
|
-
.ax-field input:focus, .ax-field textarea:focus, .ax-field select:focus {
|
|
674
|
-
outline: none; border-color: var(--ax-accent);
|
|
675
|
-
box-shadow: 0 0 0 2px color-mix(in oklch, var(--ax-accent) 18%, transparent);
|
|
676
|
-
}
|
|
677
|
-
.ax-field textarea { resize: vertical; min-height: 72px; font-family: var(--ax-font); }
|
|
678
|
-
.ax-field input::placeholder, .ax-field textarea::placeholder {
|
|
679
|
-
color: var(--ax-muted); opacity: 0.7;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
.ax-row { display: flex; gap: 12px; }
|
|
683
|
-
.ax-row > * { flex: 1; }
|
|
684
|
-
|
|
685
|
-
/* --- Section titles shared across pages --- */
|
|
686
|
-
.ax-section-title {
|
|
687
|
-
display: flex; justify-content: space-between; align-items: center;
|
|
688
|
-
margin-bottom: 12px;
|
|
689
|
-
}
|
|
690
|
-
.ax-section-title__label {
|
|
691
|
-
font-size: var(--ax-fs-xs); text-transform: uppercase;
|
|
692
|
-
letter-spacing: 0.08em; color: var(--ax-muted);
|
|
693
|
-
}
|
|
694
|
-
.ax-section-title__right {
|
|
695
|
-
display: flex; align-items: center; gap: 8px;
|
|
696
|
-
font-size: var(--ax-fs-xs); color: var(--ax-muted);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
/* ============================================================
|
|
700
|
-
* Settings-page design system (also reusable on other pages).
|
|
701
|
-
* Ported from the Stitch redesign mockup so the primitives can
|
|
702
|
-
* be consumed by any page \u2014 not just /admin. Sections:
|
|
703
|
-
* page-head \u2014 kicker + h1 + lead paragraph
|
|
704
|
-
* health-strip \u2014 4-up status cards with coloured dot
|
|
705
|
-
* wit \u2014 dismissable "what is this?" info banner
|
|
706
|
-
* section-head \u2014 icon chip + title + lead + right-aligned CTA
|
|
707
|
-
* row-card \u2014 list row with avatar + info + actions + expand
|
|
708
|
-
* avatar \u2014 coloured-initial square (teal/coral/amber/blue)
|
|
709
|
-
* pill \u2014 small status pill with coloured dot (chip-flavor)
|
|
710
|
-
* connectors \u2014 2-up grid of connector cards
|
|
711
|
-
* tab-count \u2014 mono count bubble on a tab
|
|
712
|
-
* toast \u2014 bottom-right ephemeral notification
|
|
713
|
-
* modal \u2014 simple centred dialog + backdrop
|
|
714
|
-
* sec-label \u2014 uppercase mini-heading with optional CTA
|
|
715
|
-
* ============================================================ */
|
|
716
|
-
|
|
717
|
-
/* --- Page head --- */
|
|
718
|
-
.ax-page-head {
|
|
719
|
-
max-width: 1040px; margin: 0 auto; padding: 28px 24px 12px;
|
|
720
|
-
}
|
|
721
|
-
.ax-page-head .ax-kicker {
|
|
722
|
-
display: inline-block; font-size: 10px; letter-spacing: 0.1em;
|
|
723
|
-
color: var(--ax-muted); text-transform: uppercase; margin-bottom: 6px;
|
|
724
|
-
font-family: var(--ax-mono);
|
|
725
|
-
}
|
|
726
|
-
.ax-page-head h1 {
|
|
727
|
-
font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
|
|
728
|
-
margin: 0 0 4px; display: flex; align-items: center; gap: 10px;
|
|
729
|
-
}
|
|
730
|
-
.ax-page-head .ax-lead {
|
|
731
|
-
color: var(--ax-text-2); margin: 0; font-size: 13px;
|
|
732
|
-
max-width: 640px; line-height: 1.6;
|
|
733
|
-
}
|
|
734
|
-
.ax-page-head .ax-lead code {
|
|
735
|
-
font-family: var(--ax-mono); font-size: 11.5px;
|
|
736
|
-
background: var(--ax-surface-2); padding: 1px 6px; border-radius: var(--ax-radius-sm);
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
/* --- Health strip --- */
|
|
740
|
-
.ax-health-strip {
|
|
741
|
-
max-width: 1040px; margin: 18px auto 22px; padding: 0 24px;
|
|
742
|
-
display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
|
|
743
|
-
}
|
|
744
|
-
.ax-health-card {
|
|
745
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
746
|
-
border-radius: var(--ax-radius-sm); padding: 12px 14px;
|
|
747
|
-
display: flex; align-items: center; gap: 11px;
|
|
748
|
-
transition: border-color 120ms;
|
|
749
|
-
}
|
|
750
|
-
.ax-health-card:hover { border-color: var(--ax-border-2); }
|
|
751
|
-
.ax-health-card .ax-hc-dot {
|
|
752
|
-
width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
|
|
753
|
-
}
|
|
754
|
-
.ax-health-card .ax-hc-dot--ok {
|
|
755
|
-
background: var(--ax-accent);
|
|
756
|
-
box-shadow: 0 0 8px color-mix(in oklch, var(--ax-accent) 50%, transparent);
|
|
757
|
-
}
|
|
758
|
-
.ax-health-card .ax-hc-dot--warn { background: var(--ax-warn); }
|
|
759
|
-
.ax-health-card .ax-hc-dot--off { background: var(--ax-border-2); }
|
|
760
|
-
.ax-health-card .ax-hc-txt { flex: 1; min-width: 0; }
|
|
761
|
-
.ax-health-card .ax-hc-num {
|
|
762
|
-
font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
|
|
763
|
-
}
|
|
764
|
-
.ax-health-card .ax-hc-lbl {
|
|
765
|
-
font-size: 11px; color: var(--ax-muted); margin-top: 1px;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
/* --- "What is this?" info banner (dismissable) --- */
|
|
769
|
-
.ax-wit {
|
|
770
|
-
background: color-mix(in oklch, var(--ax-info) 6%, var(--ax-bg-elev));
|
|
771
|
-
border: 1px solid color-mix(in oklch, var(--ax-info) 22%, var(--ax-border));
|
|
772
|
-
border-radius: var(--ax-radius-sm); padding: 12px 14px; margin-bottom: 18px;
|
|
773
|
-
font-size: 12.5px; color: var(--ax-text-2); line-height: 1.6;
|
|
774
|
-
display: flex; gap: 10px; align-items: flex-start;
|
|
775
|
-
}
|
|
776
|
-
.ax-wit__icon {
|
|
777
|
-
width: 18px; height: 18px; border-radius: 50%;
|
|
778
|
-
background: color-mix(in oklch, var(--ax-info) 18%, transparent);
|
|
779
|
-
color: var(--ax-info);
|
|
780
|
-
display: grid; place-items: center;
|
|
781
|
-
font-size: 11px; font-weight: 600; flex-shrink: 0; margin-top: 1px;
|
|
782
|
-
}
|
|
783
|
-
.ax-wit b { color: var(--ax-text); font-weight: 600; }
|
|
784
|
-
.ax-wit code {
|
|
785
|
-
font-family: var(--ax-mono); font-size: 11.5px;
|
|
786
|
-
background: var(--ax-bg); padding: 1px 5px; border-radius: var(--ax-radius-sm);
|
|
787
|
-
border: var(--ax-border-w) solid var(--ax-border);
|
|
788
|
-
}
|
|
789
|
-
.ax-wit .ax-wit__dismiss {
|
|
790
|
-
background: transparent; border: 0; color: var(--ax-muted);
|
|
791
|
-
font-size: 16px; cursor: pointer; margin-left: auto;
|
|
792
|
-
padding: 0 4px; line-height: 1;
|
|
793
|
-
}
|
|
794
|
-
.ax-wit .ax-wit__dismiss:hover { color: var(--ax-text); }
|
|
795
|
-
|
|
796
|
-
/* --- Section head (icon + title + lead + right CTA) --- */
|
|
797
|
-
.ax-section-head {
|
|
798
|
-
display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px;
|
|
799
|
-
}
|
|
800
|
-
.ax-section-head__icon {
|
|
801
|
-
width: 44px; height: 44px; border-radius: var(--ax-radius);
|
|
802
|
-
background: color-mix(in oklch, var(--ax-accent) 10%, var(--ax-surface));
|
|
803
|
-
border: 1px solid color-mix(in oklch, var(--ax-accent) 25%, var(--ax-border));
|
|
804
|
-
display: grid; place-items: center; flex-shrink: 0;
|
|
805
|
-
color: var(--ax-accent);
|
|
806
|
-
}
|
|
807
|
-
.ax-section-head__icon svg { width: 22px; height: 22px; }
|
|
808
|
-
.ax-section-head__text { flex: 1; }
|
|
809
|
-
.ax-section-head h2 {
|
|
810
|
-
font-size: 18px; margin: 0 0 3px;
|
|
811
|
-
font-weight: 600; letter-spacing: -0.01em;
|
|
812
|
-
}
|
|
813
|
-
.ax-section-head .ax-lead {
|
|
814
|
-
color: var(--ax-text-2); margin: 0; font-size: 13px; line-height: 1.55;
|
|
815
|
-
max-width: 640px;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
/* --- Row cards (collapsible list items) --- */
|
|
819
|
-
.ax-stack { display: flex; flex-direction: column; gap: 10px; }
|
|
820
|
-
.ax-row-card {
|
|
821
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
822
|
-
border-radius: var(--ax-radius-lg); padding: 14px 16px;
|
|
823
|
-
transition: border-color 160ms, transform 160ms;
|
|
824
|
-
}
|
|
825
|
-
.ax-row-card:hover { border-color: var(--ax-border-2); }
|
|
826
|
-
.ax-row-card__top { display: flex; align-items: center; gap: 12px; }
|
|
827
|
-
.ax-row-card__info { flex: 1; min-width: 0; }
|
|
828
|
-
.ax-row-card__info .ax-name {
|
|
829
|
-
font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
|
|
830
|
-
display: flex; align-items: center; gap: 8px;
|
|
831
|
-
}
|
|
832
|
-
.ax-row-card__info .ax-slug {
|
|
833
|
-
font-family: var(--ax-mono); font-size: 11px;
|
|
834
|
-
color: var(--ax-muted); margin-left: 4px;
|
|
835
|
-
}
|
|
836
|
-
.ax-row-card__info .ax-sub {
|
|
837
|
-
font-size: 12px; color: var(--ax-text-2); margin-top: 3px;
|
|
838
|
-
line-height: 1.5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
|
|
839
|
-
}
|
|
840
|
-
.ax-row-card__actions { display: flex; gap: 6px; align-items: center; }
|
|
841
|
-
.ax-row-card__details {
|
|
842
|
-
display: none; margin-top: 14px; padding-top: 14px;
|
|
843
|
-
border-top: 1px dashed var(--ax-border);
|
|
844
|
-
font-size: 12.5px; color: var(--ax-text-2); line-height: 1.6;
|
|
845
|
-
}
|
|
846
|
-
.ax-row-card.is-open .ax-row-card__details { display: block; }
|
|
847
|
-
.ax-row-card.is-open .ax-chev { transform: rotate(180deg); }
|
|
848
|
-
.ax-chev { transition: transform 160ms; }
|
|
849
|
-
|
|
850
|
-
.ax-detail-grid {
|
|
851
|
-
display: grid; grid-template-columns: repeat(2, 1fr);
|
|
852
|
-
gap: 12px 20px; margin-bottom: 12px;
|
|
853
|
-
}
|
|
854
|
-
.ax-detail-grid dt {
|
|
855
|
-
font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
|
|
856
|
-
color: var(--ax-muted); margin-bottom: 3px; font-family: var(--ax-mono);
|
|
857
|
-
}
|
|
858
|
-
.ax-detail-grid dd {
|
|
859
|
-
margin: 0; font-size: 12.5px; color: var(--ax-text);
|
|
860
|
-
}
|
|
861
|
-
.ax-triggers { display: flex; gap: 4px; flex-wrap: wrap; }
|
|
862
|
-
.ax-trigger-pill {
|
|
863
|
-
font-family: var(--ax-mono); font-size: 11px;
|
|
864
|
-
padding: 2px 8px; background: var(--ax-bg);
|
|
865
|
-
border: var(--ax-border-w) solid var(--ax-border); border-radius: var(--ax-radius-sm);
|
|
866
|
-
color: var(--ax-text);
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
/* --- Avatars (coloured initial square) --- */
|
|
870
|
-
.ax-avatar {
|
|
871
|
-
width: 36px; height: 36px; border-radius: var(--ax-radius); flex-shrink: 0;
|
|
872
|
-
background: var(--ax-surface-2); border: var(--ax-border-w) solid var(--ax-border-2);
|
|
873
|
-
display: grid; place-items: center;
|
|
874
|
-
font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
|
|
875
|
-
color: var(--ax-text);
|
|
876
|
-
}
|
|
877
|
-
.ax-avatar--teal {
|
|
878
|
-
background: color-mix(in oklch, var(--ax-accent) 18%, var(--ax-surface));
|
|
879
|
-
border-color: color-mix(in oklch, var(--ax-accent) 35%, var(--ax-border));
|
|
880
|
-
color: var(--ax-accent);
|
|
881
|
-
}
|
|
882
|
-
.ax-avatar--coral {
|
|
883
|
-
background: color-mix(in oklch, var(--ax-err) 14%, var(--ax-surface));
|
|
884
|
-
border-color: color-mix(in oklch, var(--ax-err) 30%, var(--ax-border));
|
|
885
|
-
color: var(--ax-err);
|
|
886
|
-
}
|
|
887
|
-
.ax-avatar--amber {
|
|
888
|
-
background: color-mix(in oklch, var(--ax-warn) 14%, var(--ax-surface));
|
|
889
|
-
border-color: color-mix(in oklch, var(--ax-warn) 30%, var(--ax-border));
|
|
890
|
-
color: var(--ax-warn);
|
|
891
|
-
}
|
|
892
|
-
.ax-avatar--blue {
|
|
893
|
-
background: color-mix(in oklch, var(--ax-info) 14%, var(--ax-surface));
|
|
894
|
-
border-color: color-mix(in oklch, var(--ax-info) 30%, var(--ax-border));
|
|
895
|
-
color: var(--ax-info);
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
/* --- Pills (status indicator with coloured dot) ---
|
|
899
|
-
*
|
|
900
|
-
* Different from .ax-badge: pills have a rounded (10px) shape, a small
|
|
901
|
-
* leading coloured dot, and stronger semantics (ok/warn/off/info). Use
|
|
902
|
-
* for "live", "idle", "receiving", "stale" states next to a name.
|
|
903
|
-
*/
|
|
904
|
-
.ax-pill {
|
|
905
|
-
display: inline-flex; align-items: center; gap: 5px;
|
|
906
|
-
font-size: 11px; padding: 2px 8px; line-height: 16px;
|
|
907
|
-
border-radius: var(--ax-radius); background: var(--ax-surface-2);
|
|
908
|
-
color: var(--ax-text-2); border: var(--ax-border-w) solid var(--ax-border);
|
|
909
|
-
white-space: nowrap;
|
|
910
|
-
}
|
|
911
|
-
.ax-pill .ax-pill__dot {
|
|
912
|
-
width: 6px; height: 6px; border-radius: 50%; background: currentColor;
|
|
913
|
-
}
|
|
914
|
-
.ax-pill--ok {
|
|
915
|
-
background: color-mix(in oklch, var(--ax-accent) 14%, transparent);
|
|
916
|
-
color: var(--ax-accent);
|
|
917
|
-
border-color: color-mix(in oklch, var(--ax-accent) 30%, transparent);
|
|
918
|
-
}
|
|
919
|
-
.ax-pill--warn {
|
|
920
|
-
background: color-mix(in oklch, var(--ax-warn) 14%, transparent);
|
|
921
|
-
color: var(--ax-warn);
|
|
922
|
-
border-color: color-mix(in oklch, var(--ax-warn) 30%, transparent);
|
|
923
|
-
}
|
|
924
|
-
.ax-pill--off { color: var(--ax-muted); }
|
|
925
|
-
.ax-pill--info {
|
|
926
|
-
background: color-mix(in oklch, var(--ax-info) 14%, transparent);
|
|
927
|
-
color: var(--ax-info);
|
|
928
|
-
border-color: color-mix(in oklch, var(--ax-info) 30%, transparent);
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
/* --- Connectors grid (Channels tab) --- */
|
|
932
|
-
.ax-connectors {
|
|
933
|
-
display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
|
|
934
|
-
}
|
|
935
|
-
.ax-connector {
|
|
936
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
937
|
-
border-radius: var(--ax-radius-lg); padding: 18px 18px 16px;
|
|
938
|
-
cursor: pointer; position: relative;
|
|
939
|
-
transition: border-color 160ms, transform 160ms, background 160ms;
|
|
940
|
-
}
|
|
941
|
-
.ax-connector:hover { border-color: var(--ax-border-2); background: var(--ax-surface-2); }
|
|
942
|
-
.ax-connector.is-on {
|
|
943
|
-
border-color: color-mix(in oklch, var(--ax-accent) 40%, var(--ax-border));
|
|
944
|
-
}
|
|
945
|
-
.ax-connector.is-active {
|
|
946
|
-
border-color: var(--ax-accent);
|
|
947
|
-
background: color-mix(in oklch, var(--ax-accent) 8%, var(--ax-surface));
|
|
948
|
-
}
|
|
949
|
-
.ax-connector__top {
|
|
950
|
-
display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
|
|
951
|
-
}
|
|
952
|
-
.ax-connector__logo {
|
|
953
|
-
width: 40px; height: 40px; border-radius: var(--ax-radius);
|
|
954
|
-
display: grid; place-items: center;
|
|
955
|
-
font-weight: 700; font-size: 15px; letter-spacing: -0.02em; flex-shrink: 0;
|
|
956
|
-
background: var(--ax-surface-2); border: var(--ax-border-w) solid var(--ax-border-2);
|
|
957
|
-
color: var(--ax-text); font-family: var(--ax-mono);
|
|
958
|
-
}
|
|
959
|
-
.ax-connector__meta { flex: 1; }
|
|
960
|
-
.ax-connector__name {
|
|
961
|
-
font-weight: 600; font-size: 14px; letter-spacing: -0.005em;
|
|
962
|
-
}
|
|
963
|
-
.ax-connector__sub {
|
|
964
|
-
font-size: 11.5px; color: var(--ax-muted); margin-top: 2px;
|
|
965
|
-
}
|
|
966
|
-
.ax-connector__status { margin-left: auto; }
|
|
967
|
-
.ax-connector__desc {
|
|
968
|
-
font-size: 12.5px; color: var(--ax-text-2); line-height: 1.5; min-height: 36px;
|
|
969
|
-
}
|
|
970
|
-
.ax-connector__foot {
|
|
971
|
-
margin-top: 12px; display: flex; align-items: center; justify-content: space-between;
|
|
972
|
-
font-size: 11.5px; color: var(--ax-muted);
|
|
973
|
-
}
|
|
974
|
-
.ax-connector__cta {
|
|
975
|
-
color: var(--ax-accent); font-weight: 500;
|
|
976
|
-
display: inline-flex; align-items: center; gap: 4px;
|
|
977
|
-
}
|
|
978
|
-
.ax-connector__cta svg { width: 12px; height: 12px; }
|
|
979
|
-
|
|
980
|
-
/* --- Tab counts + warn indicator --- */
|
|
981
|
-
.ax-tab-count {
|
|
982
|
-
font-family: var(--ax-mono); font-size: 10px;
|
|
983
|
-
padding: 1px 6px; background: var(--ax-surface-2);
|
|
984
|
-
color: var(--ax-muted); border-radius: var(--ax-radius); line-height: 14px;
|
|
985
|
-
margin-left: 6px;
|
|
986
|
-
}
|
|
987
|
-
.is-active .ax-tab-count {
|
|
988
|
-
background: color-mix(in oklch, var(--ax-accent) 18%, transparent);
|
|
989
|
-
color: var(--ax-accent);
|
|
990
|
-
}
|
|
991
|
-
.ax-tab-warn {
|
|
992
|
-
width: 6px; height: 6px; border-radius: 50%; background: var(--ax-warn);
|
|
993
|
-
display: inline-block; margin-left: 6px;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
/* --- Section mini-labels --- */
|
|
997
|
-
.ax-sec-label {
|
|
998
|
-
display: flex; align-items: center; justify-content: space-between;
|
|
999
|
-
margin: 22px 0 10px;
|
|
1000
|
-
}
|
|
1001
|
-
.ax-sec-label h3 {
|
|
1002
|
-
font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
|
|
1003
|
-
text-transform: uppercase; color: var(--ax-muted);
|
|
1004
|
-
margin: 0; font-family: var(--ax-mono);
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
/* --- Toast --- */
|
|
1008
|
-
.ax-toast {
|
|
1009
|
-
position: fixed; bottom: 24px; right: 24px;
|
|
1010
|
-
background: var(--ax-surface-2);
|
|
1011
|
-
border: var(--ax-border-w) solid var(--ax-accent); color: var(--ax-text);
|
|
1012
|
-
padding: 10px 16px; border-radius: var(--ax-radius); font-size: 12.5px;
|
|
1013
|
-
display: flex; align-items: center; gap: 10px;
|
|
1014
|
-
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
|
|
1015
|
-
opacity: 0; transform: translateY(10px); pointer-events: none;
|
|
1016
|
-
transition: opacity 200ms, transform 200ms; z-index: 100;
|
|
1017
|
-
}
|
|
1018
|
-
.ax-toast.is-show { opacity: 1; transform: none; }
|
|
1019
|
-
.ax-toast__icon { color: var(--ax-accent); }
|
|
1020
|
-
|
|
1021
|
-
/* --- Modal (centred dialog + backdrop) --- */
|
|
1022
|
-
.ax-modal-bd {
|
|
1023
|
-
position: fixed; inset: 0;
|
|
1024
|
-
background: color-mix(in oklch, var(--ax-bg) 60%, black);
|
|
1025
|
-
display: none; align-items: center; justify-content: center;
|
|
1026
|
-
z-index: 200; padding: 24px;
|
|
1027
|
-
}
|
|
1028
|
-
.ax-modal-bd.is-show { display: flex; }
|
|
1029
|
-
.ax-modal {
|
|
1030
|
-
width: min(560px, 94vw); max-height: 86vh; overflow: auto;
|
|
1031
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border-2);
|
|
1032
|
-
border-radius: var(--ax-radius-lg); padding: 0;
|
|
1033
|
-
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
|
|
1034
|
-
}
|
|
1035
|
-
.ax-modal > header {
|
|
1036
|
-
padding: 18px 22px 10px; border-bottom: var(--ax-border-w) solid var(--ax-border);
|
|
1037
|
-
display: flex; align-items: center; gap: 10px;
|
|
1038
|
-
}
|
|
1039
|
-
.ax-modal > header h3 {
|
|
1040
|
-
margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; flex: 1;
|
|
1041
|
-
}
|
|
1042
|
-
.ax-modal > header .ax-modal__close {
|
|
1043
|
-
background: transparent; border: 0; color: var(--ax-muted);
|
|
1044
|
-
font-size: 22px; cursor: pointer; line-height: 1; padding: 0 6px;
|
|
1045
|
-
}
|
|
1046
|
-
.ax-modal__body { padding: 18px 22px; }
|
|
1047
|
-
.ax-modal__foot {
|
|
1048
|
-
padding: 12px 22px 18px;
|
|
1049
|
-
display: flex; justify-content: flex-end; gap: 8px;
|
|
1050
|
-
border-top: var(--ax-border-w) solid var(--ax-border);
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
/* --- Mesh hero (enable toggle + SVG network viz) --- */
|
|
1054
|
-
.ax-mesh-hero {
|
|
1055
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
1056
|
-
border-radius: var(--ax-radius-lg); padding: 20px;
|
|
1057
|
-
display: grid; grid-template-columns: 1fr 240px; gap: 24px;
|
|
1058
|
-
align-items: center; margin-bottom: 18px;
|
|
1059
|
-
}
|
|
1060
|
-
.ax-mesh-hero h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
|
|
1061
|
-
.ax-mesh-hero p { margin: 0 0 12px; font-size: 12.5px; color: var(--ax-text-2); line-height: 1.5; }
|
|
1062
|
-
.ax-mesh-viz { position: relative; width: 240px; height: 140px; }
|
|
1063
|
-
.ax-mesh-dot {
|
|
1064
|
-
position: absolute; width: 44px; height: 44px; border-radius: 50%;
|
|
1065
|
-
background: var(--ax-surface-2); border: 2px solid var(--ax-border-2);
|
|
1066
|
-
display: grid; place-items: center;
|
|
1067
|
-
font-family: var(--ax-mono); font-size: 10px; font-weight: 600;
|
|
1068
|
-
color: var(--ax-text-2);
|
|
1069
|
-
}
|
|
1070
|
-
.ax-mesh-dot.self {
|
|
1071
|
-
background: color-mix(in oklch, var(--ax-accent) 18%, var(--ax-surface));
|
|
1072
|
-
border-color: var(--ax-accent); color: var(--ax-accent);
|
|
1073
|
-
}
|
|
1074
|
-
.ax-mesh-dot.empty {
|
|
1075
|
-
border-style: dashed; color: var(--ax-muted); font-size: 14px;
|
|
1076
|
-
}
|
|
1077
|
-
.ax-mesh-wires { position: absolute; inset: 0; }
|
|
1078
|
-
.ax-mesh-wires line { stroke: var(--ax-border-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
|
|
1079
|
-
.ax-mesh-wires line.live { stroke: var(--ax-accent); stroke-dasharray: 0; opacity: 0.6; }
|
|
1080
|
-
|
|
1081
|
-
/* Pill-shaped toggle (used for the mesh enable switch + similar binary actions). */
|
|
1082
|
-
.ax-mesh-toggle {
|
|
1083
|
-
display: inline-flex; align-items: center; gap: 10px;
|
|
1084
|
-
background: var(--ax-bg-elev); border: var(--ax-border-w) solid var(--ax-border);
|
|
1085
|
-
border-radius: 20px; padding: 4px 14px 4px 5px;
|
|
1086
|
-
cursor: pointer; user-select: none; font-size: 12px;
|
|
1087
|
-
}
|
|
1088
|
-
.ax-mesh-switch {
|
|
1089
|
-
width: 32px; height: 18px; background: var(--ax-surface-3);
|
|
1090
|
-
border-radius: var(--ax-radius); position: relative; transition: background 160ms;
|
|
1091
|
-
}
|
|
1092
|
-
.ax-mesh-switch::after {
|
|
1093
|
-
content: ""; position: absolute; top: 2px; left: 2px;
|
|
1094
|
-
width: 14px; height: 14px; border-radius: 50%;
|
|
1095
|
-
background: var(--ax-text-2); transition: all 160ms;
|
|
1096
|
-
}
|
|
1097
|
-
.ax-mesh-toggle.is-on .ax-mesh-switch {
|
|
1098
|
-
background: color-mix(in oklch, var(--ax-accent) 80%, transparent);
|
|
1099
|
-
}
|
|
1100
|
-
.ax-mesh-toggle.is-on .ax-mesh-switch::after {
|
|
1101
|
-
left: 16px; background: var(--ax-bg);
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
/* --- Schedule builder: sentence-builder + pill picks + day picker --- */
|
|
1105
|
-
.ax-builder {
|
|
1106
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
1107
|
-
border-radius: var(--ax-radius-lg); padding: 20px;
|
|
1108
|
-
}
|
|
1109
|
-
.ax-builder h3 {
|
|
1110
|
-
margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
|
|
1111
|
-
}
|
|
1112
|
-
.ax-builder__hint { margin: 0 0 16px; font-size: 12.5px; color: var(--ax-muted); }
|
|
1113
|
-
.ax-builder__lbl {
|
|
1114
|
-
display: block; font-size: 11px; color: var(--ax-muted);
|
|
1115
|
-
letter-spacing: 0.03em; text-transform: uppercase; margin: 12px 0 5px;
|
|
1116
|
-
font-weight: 500;
|
|
1117
|
-
}
|
|
1118
|
-
.ax-builder__lbl .opt {
|
|
1119
|
-
text-transform: none; letter-spacing: 0; font-weight: 400;
|
|
1120
|
-
opacity: 0.75; margin-left: 6px;
|
|
1121
|
-
}
|
|
1122
|
-
.ax-builder__inp {
|
|
1123
|
-
width: 100%; background: var(--ax-bg); color: var(--ax-text);
|
|
1124
|
-
border: var(--ax-border-w) solid var(--ax-border); border-radius: var(--ax-radius-sm);
|
|
1125
|
-
padding: 8px 11px; font: inherit; font-size: 13px;
|
|
1126
|
-
transition: border-color 120ms, box-shadow 120ms;
|
|
1127
|
-
}
|
|
1128
|
-
.ax-builder__inp:focus {
|
|
1129
|
-
outline: none; border-color: var(--ax-accent);
|
|
1130
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--ax-accent) 18%, transparent);
|
|
1131
|
-
}
|
|
1132
|
-
textarea.ax-builder__inp { min-height: 80px; line-height: 1.5; resize: vertical; }
|
|
1133
|
-
|
|
1134
|
-
.ax-mode-switch {
|
|
1135
|
-
display: inline-flex; background: var(--ax-surface-2);
|
|
1136
|
-
border: var(--ax-border-w) solid var(--ax-border); border-radius: var(--ax-radius); padding: 3px;
|
|
1137
|
-
margin-bottom: 14px;
|
|
1138
|
-
}
|
|
1139
|
-
.ax-mode-switch button {
|
|
1140
|
-
background: transparent; border: 0; color: var(--ax-muted);
|
|
1141
|
-
padding: 6px 14px; font: inherit; font-size: 12px; cursor: pointer;
|
|
1142
|
-
border-radius: var(--ax-radius-sm); font-weight: 500;
|
|
1143
|
-
}
|
|
1144
|
-
.ax-mode-switch button.is-active {
|
|
1145
|
-
background: var(--ax-surface); color: var(--ax-text);
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
.ax-sentence {
|
|
1149
|
-
display: flex; align-items: center; gap: 8px;
|
|
1150
|
-
font-size: 16px; line-height: 1.9; flex-wrap: wrap;
|
|
1151
|
-
margin-bottom: 14px; padding: 14px 16px;
|
|
1152
|
-
background: var(--ax-bg-elev); border: var(--ax-border-w) solid var(--ax-border);
|
|
1153
|
-
border-radius: var(--ax-radius-sm);
|
|
1154
|
-
}
|
|
1155
|
-
.ax-sentence > span { color: var(--ax-text-2); }
|
|
1156
|
-
.ax-pill-pick {
|
|
1157
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border-2);
|
|
1158
|
-
color: var(--ax-accent); padding: 3px 10px; border-radius: var(--ax-radius);
|
|
1159
|
-
font-size: 14px; font-family: inherit; cursor: pointer; font-weight: 500;
|
|
1160
|
-
}
|
|
1161
|
-
.ax-pill-pick:hover { background: var(--ax-surface-2); border-color: var(--ax-accent); }
|
|
1162
|
-
.ax-pill-pick--sm { font-size: 13px; padding: 3px 8px; }
|
|
1163
|
-
|
|
1164
|
-
.ax-day-picker { display: flex; gap: 4px; }
|
|
1165
|
-
.ax-day-picker button {
|
|
1166
|
-
width: 30px; height: 30px; border-radius: var(--ax-radius);
|
|
1167
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
1168
|
-
color: var(--ax-muted); font: inherit; font-size: 11px; font-weight: 500;
|
|
1169
|
-
cursor: pointer;
|
|
1170
|
-
}
|
|
1171
|
-
.ax-day-picker button:hover { border-color: var(--ax-border-2); color: var(--ax-text); }
|
|
1172
|
-
.ax-day-picker button.is-active {
|
|
1173
|
-
background: color-mix(in oklch, var(--ax-accent) 20%, var(--ax-surface));
|
|
1174
|
-
border-color: var(--ax-accent); color: var(--ax-accent);
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
.ax-preview-box {
|
|
1178
|
-
background: color-mix(in oklch, var(--ax-accent) 5%, var(--ax-bg-elev));
|
|
1179
|
-
border: 1px solid color-mix(in oklch, var(--ax-accent) 20%, var(--ax-border));
|
|
1180
|
-
border-radius: var(--ax-radius-sm); padding: 12px 14px; margin-top: 12px;
|
|
1181
|
-
font-size: 12.5px; color: var(--ax-text-2);
|
|
1182
|
-
display: flex; align-items: center; gap: 10px;
|
|
1183
|
-
}
|
|
1184
|
-
.ax-preview-box svg { width: 15px; height: 15px; color: var(--ax-accent); flex-shrink: 0; }
|
|
1185
|
-
.ax-preview-box b { color: var(--ax-text); font-weight: 600; }
|
|
1186
|
-
|
|
1187
|
-
.ax-cron-hints {
|
|
1188
|
-
display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px;
|
|
1189
|
-
margin-top: 10px; font-size: 11.5px; color: var(--ax-muted);
|
|
1190
|
-
}
|
|
1191
|
-
.ax-cron-hints code {
|
|
1192
|
-
font-family: var(--ax-mono); color: var(--ax-text);
|
|
1193
|
-
background: var(--ax-bg); border: var(--ax-border-w) solid var(--ax-border);
|
|
1194
|
-
padding: 1px 6px; border-radius: var(--ax-radius-sm); margin-right: 6px;
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
/* --- JSON tree viewer (Advanced tab) --- */
|
|
1198
|
-
.ax-jv-toolbar {
|
|
1199
|
-
display: flex; align-items: center; gap: 8px;
|
|
1200
|
-
padding: 8px 12px; background: var(--ax-bg-elev);
|
|
1201
|
-
border: var(--ax-border-w) solid var(--ax-border); border-bottom: 0;
|
|
1202
|
-
border-radius: var(--ax-radius) var(--ax-radius) 0 0;
|
|
1203
|
-
}
|
|
1204
|
-
.ax-jv-toolbar .ax-jv-spacer { flex: 1; }
|
|
1205
|
-
.ax-jv-toolbar .ax-jv-seg {
|
|
1206
|
-
display: inline-flex; background: var(--ax-surface);
|
|
1207
|
-
border: var(--ax-border-w) solid var(--ax-border); border-radius: var(--ax-radius-sm); padding: 2px;
|
|
1208
|
-
}
|
|
1209
|
-
.ax-jv-toolbar .ax-jv-seg button {
|
|
1210
|
-
background: transparent; border: 0; color: var(--ax-muted);
|
|
1211
|
-
padding: 4px 10px; font: inherit; font-size: 11px;
|
|
1212
|
-
cursor: pointer; border-radius: var(--ax-radius-sm);
|
|
1213
|
-
}
|
|
1214
|
-
.ax-jv-toolbar .ax-jv-seg button.is-active { background: var(--ax-surface-2); color: var(--ax-text); }
|
|
1215
|
-
.ax-jv-search {
|
|
1216
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
1217
|
-
border-radius: var(--ax-radius-sm); padding: 4px 9px; font: inherit; font-size: 12px;
|
|
1218
|
-
color: var(--ax-text); width: 180px;
|
|
1219
|
-
}
|
|
1220
|
-
.ax-jv-search:focus { outline: none; border-color: var(--ax-accent); }
|
|
1221
|
-
|
|
1222
|
-
.ax-jv-viewer {
|
|
1223
|
-
background: var(--ax-bg-elev); border: var(--ax-border-w) solid var(--ax-border);
|
|
1224
|
-
border-top: 0; border-radius: 0 0 var(--ax-radius) var(--ax-radius);
|
|
1225
|
-
font-family: var(--ax-mono); font-size: 12.5px; line-height: 1.75;
|
|
1226
|
-
padding: 14px 18px; max-height: 620px; overflow: auto;
|
|
1227
|
-
}
|
|
1228
|
-
.ax-jv-line {
|
|
1229
|
-
display: flex; align-items: flex-start; padding: 1px 0; gap: 0;
|
|
1230
|
-
position: relative; border-radius: var(--ax-radius-sm); white-space: nowrap;
|
|
1231
|
-
}
|
|
1232
|
-
.ax-jv-line:hover { background: color-mix(in oklch, var(--ax-accent) 5%, transparent); }
|
|
1233
|
-
.ax-jv-line.is-match { background: color-mix(in oklch, var(--ax-warn) 16%, transparent); }
|
|
1234
|
-
.ax-jv-toggle {
|
|
1235
|
-
width: 12px; display: inline-block; color: var(--ax-muted);
|
|
1236
|
-
cursor: pointer; user-select: none; text-align: center;
|
|
1237
|
-
font-size: 9px; line-height: 1.75;
|
|
1238
|
-
}
|
|
1239
|
-
/* Settings also styles a bare .empty as an empty-state box; a leaf's
|
|
1240
|
-
* toggle must stay a plain 12px spacer. */
|
|
1241
|
-
.ax-jv-toggle.empty {
|
|
1242
|
-
cursor: default; padding: 0; border: 0; border-radius: 0;
|
|
1243
|
-
font-size: 9px; font-style: normal; text-align: center;
|
|
1244
|
-
}
|
|
1245
|
-
.ax-jv-key { color: var(--ax-info); margin-right: 0; }
|
|
1246
|
-
.ax-jv-punc { color: var(--ax-muted); }
|
|
1247
|
-
.ax-jv-string { color: var(--ax-accent); }
|
|
1248
|
-
.ax-jv-number { color: var(--ax-warn); }
|
|
1249
|
-
.ax-jv-bool { color: var(--ax-info); font-weight: 500; }
|
|
1250
|
-
.ax-jv-null { color: var(--ax-muted); font-style: italic; }
|
|
1251
|
-
.ax-jv-comment {
|
|
1252
|
-
color: var(--ax-muted); font-family: var(--ax-font);
|
|
1253
|
-
font-style: italic; font-size: 11.5px; margin-left: 8px; opacity: 0.8;
|
|
1254
|
-
}
|
|
1255
|
-
.ax-jv-children {
|
|
1256
|
-
padding-left: 18px;
|
|
1257
|
-
border-left: 1px dashed color-mix(in oklch, var(--ax-border) 80%, transparent);
|
|
1258
|
-
margin-left: 4px;
|
|
1259
|
-
}
|
|
1260
|
-
.ax-jv-children.is-collapsed { display: none; }
|
|
1261
|
-
.ax-jv-collapsed-note {
|
|
1262
|
-
color: var(--ax-muted); font-size: 11px; font-style: italic; margin-left: 4px;
|
|
1263
|
-
}
|
|
1264
|
-
.ax-jv-empty-brace { color: var(--ax-muted); }
|
|
1265
|
-
|
|
1266
|
-
/* ============================================================
|
|
1267
|
-
* Detail-page primitives (Agent manage, and any future
|
|
1268
|
-
* detail-view). Built around a 3-col layout:
|
|
1269
|
-
*
|
|
1270
|
-
* [rail 200px] [main] [test-drive 360px]
|
|
1271
|
-
*
|
|
1272
|
-
* Scales down: test-drive hides at 1180px, rail hides at 780px.
|
|
1273
|
-
* ============================================================ */
|
|
1274
|
-
|
|
1275
|
-
/* Crumb */
|
|
1276
|
-
.ax-crumb {
|
|
1277
|
-
max-width: 1400px; margin: 0 auto; padding: 16px 24px 0;
|
|
1278
|
-
font-size: 12px; color: var(--ax-muted);
|
|
1279
|
-
display: flex; align-items: center; gap: 6px;
|
|
1280
|
-
}
|
|
1281
|
-
.ax-crumb a { color: var(--ax-muted); }
|
|
1282
|
-
.ax-crumb a:hover { color: var(--ax-accent); text-decoration: none; }
|
|
1283
|
-
.ax-crumb .ax-crumb__sep { color: var(--ax-border-2); }
|
|
1284
|
-
.ax-crumb .ax-crumb__cur { color: var(--ax-text); }
|
|
1285
|
-
|
|
1286
|
-
/* Hero \u2014 large avatar + editable name + chip row + actions */
|
|
1287
|
-
.ax-hero {
|
|
1288
|
-
max-width: 1400px; margin: 0 auto; padding: 14px 24px 18px;
|
|
1289
|
-
display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
|
|
1290
|
-
}
|
|
1291
|
-
.ax-hero__ava {
|
|
1292
|
-
width: 64px; height: 64px; border-radius: 14px;
|
|
1293
|
-
background: color-mix(in oklch, var(--ax-accent) 20%, var(--ax-surface));
|
|
1294
|
-
border: 1px solid color-mix(in oklch, var(--ax-accent) 40%, var(--ax-border));
|
|
1295
|
-
display: grid; place-items: center;
|
|
1296
|
-
font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
|
|
1297
|
-
color: var(--ax-accent); flex-shrink: 0; position: relative;
|
|
1298
|
-
}
|
|
1299
|
-
.ax-hero__on {
|
|
1300
|
-
position: absolute; bottom: -2px; right: -2px;
|
|
1301
|
-
width: 16px; height: 16px; border-radius: 50%;
|
|
1302
|
-
background: var(--ax-accent); border: 3px solid var(--ax-bg);
|
|
1303
|
-
}
|
|
1304
|
-
.ax-hero__title { flex: 1; min-width: 260px; }
|
|
1305
|
-
.ax-hero h1 {
|
|
1306
|
-
margin: 0 0 3px; font-size: 22px; font-weight: 600;
|
|
1307
|
-
letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px;
|
|
1308
|
-
}
|
|
1309
|
-
.ax-hero h1 input {
|
|
1310
|
-
background: transparent; border: 0; color: var(--ax-text);
|
|
1311
|
-
font: inherit; padding: 0; border-bottom: 1px dashed transparent;
|
|
1312
|
-
transition: border-color 120ms; max-width: 260px;
|
|
1313
|
-
}
|
|
1314
|
-
.ax-hero h1 input:hover { border-color: var(--ax-border-2); }
|
|
1315
|
-
.ax-hero h1 input:focus { outline: none; border-color: var(--ax-accent); }
|
|
1316
|
-
.ax-hero__sub {
|
|
1317
|
-
color: var(--ax-text-2); font-size: 13px; margin-top: 2px;
|
|
1318
|
-
display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
|
|
1319
|
-
}
|
|
1320
|
-
.ax-hero__sub .ax-hero__dot {
|
|
1321
|
-
width: 3px; height: 3px; background: var(--ax-border-2); border-radius: 50%;
|
|
1322
|
-
}
|
|
1323
|
-
.ax-hero__actions { display: flex; gap: 8px; align-items: center; }
|
|
1324
|
-
|
|
1325
|
-
/* Inline stats strip (smaller than the settings health strip \u2014 fits in
|
|
1326
|
-
* the detail page hero below the hero title). */
|
|
1327
|
-
.ax-stats-inline {
|
|
1328
|
-
max-width: 1400px; margin: 0 auto; padding: 0 24px;
|
|
1329
|
-
display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
|
|
1330
|
-
}
|
|
1331
|
-
.ax-stat-inline {
|
|
1332
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
1333
|
-
border-radius: var(--ax-radius-sm); padding: 10px 12px;
|
|
1334
|
-
display: flex; align-items: center; gap: 11px;
|
|
1335
|
-
}
|
|
1336
|
-
.ax-stat-inline__icon {
|
|
1337
|
-
width: 26px; height: 26px; border-radius: var(--ax-radius);
|
|
1338
|
-
background: color-mix(in oklch, var(--ax-accent) 12%, var(--ax-surface-2));
|
|
1339
|
-
display: grid; place-items: center;
|
|
1340
|
-
color: var(--ax-accent); flex-shrink: 0;
|
|
1341
|
-
}
|
|
1342
|
-
.ax-stat-inline__icon svg { width: 14px; height: 14px; }
|
|
1343
|
-
.ax-stat-inline__v {
|
|
1344
|
-
font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1;
|
|
1345
|
-
}
|
|
1346
|
-
.ax-stat-inline__l {
|
|
1347
|
-
font-size: 11px; color: var(--ax-muted); margin-top: 1px;
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
/* Detail layout \u2014 2-col rail + main. Overlays (test-drive, history, etc.)
|
|
1351
|
-
* dock separately via fixed positioning. */
|
|
1352
|
-
.ax-layout {
|
|
1353
|
-
max-width: 1400px; margin: 22px auto 0; padding: 0 24px 60px;
|
|
1354
|
-
display: grid; grid-template-columns: 200px 1fr;
|
|
1355
|
-
gap: 22px; align-items: flex-start;
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
/* Left rail \u2014 sticky nav list with grouped items */
|
|
1359
|
-
.ax-rail {
|
|
1360
|
-
position: sticky; top: 72px;
|
|
1361
|
-
display: flex; flex-direction: column; gap: 1px;
|
|
1362
|
-
}
|
|
1363
|
-
.ax-rail a {
|
|
1364
|
-
display: flex; align-items: center; gap: 10px;
|
|
1365
|
-
padding: 9px 11px; border-radius: var(--ax-radius);
|
|
1366
|
-
color: var(--ax-text-2); font-size: 13px; font-weight: 500;
|
|
1367
|
-
cursor: pointer; position: relative;
|
|
1368
|
-
transition: background 120ms, color 120ms;
|
|
1369
|
-
}
|
|
1370
|
-
.ax-rail a svg {
|
|
1371
|
-
width: 15px; height: 15px; flex-shrink: 0; color: var(--ax-muted);
|
|
1372
|
-
}
|
|
1373
|
-
.ax-rail a:hover {
|
|
1374
|
-
background: var(--ax-surface); color: var(--ax-text); text-decoration: none;
|
|
1375
|
-
}
|
|
1376
|
-
.ax-rail a:hover svg { color: var(--ax-text); }
|
|
1377
|
-
.ax-rail a.is-active {
|
|
1378
|
-
background: color-mix(in oklch, var(--ax-accent) 12%, var(--ax-surface));
|
|
1379
|
-
color: var(--ax-accent);
|
|
1380
|
-
}
|
|
1381
|
-
.ax-rail a.is-active svg { color: var(--ax-accent); }
|
|
1382
|
-
.ax-rail a.is-active::before {
|
|
1383
|
-
content: ""; position: absolute; left: -3px; top: 7px; bottom: 7px;
|
|
1384
|
-
width: 2px; border-radius: var(--ax-radius-sm); background: var(--ax-accent);
|
|
1385
|
-
}
|
|
1386
|
-
.ax-rail__count {
|
|
1387
|
-
margin-left: auto; font-family: var(--ax-mono);
|
|
1388
|
-
font-size: 10px; padding: 1px 6px; background: var(--ax-surface-2);
|
|
1389
|
-
color: var(--ax-muted); border-radius: var(--ax-radius); line-height: 14px;
|
|
1390
|
-
}
|
|
1391
|
-
.ax-rail a.is-active .ax-rail__count {
|
|
1392
|
-
background: color-mix(in oklch, var(--ax-accent) 22%, transparent);
|
|
1393
|
-
color: var(--ax-accent);
|
|
1394
|
-
}
|
|
1395
|
-
.ax-rail__sep { height: 1px; background: var(--ax-border); margin: 8px 4px; }
|
|
1396
|
-
.ax-rail__label {
|
|
1397
|
-
font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
|
|
1398
|
-
color: var(--ax-muted); padding: 6px 11px 4px; font-family: var(--ax-mono);
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
/* Main panel containers (one per section) */
|
|
1402
|
-
.ax-panel {
|
|
1403
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
1404
|
-
border-radius: var(--ax-radius-lg); padding: 22px;
|
|
1405
|
-
}
|
|
1406
|
-
.ax-panel + .ax-panel { margin-top: 12px; }
|
|
1407
|
-
.ax-panel h2 {
|
|
1408
|
-
margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
|
|
1409
|
-
}
|
|
1410
|
-
.ax-panel .ax-lead {
|
|
1411
|
-
margin: 0 0 16px; font-size: 12.5px; color: var(--ax-text-2); line-height: 1.55;
|
|
1412
|
-
}
|
|
1413
|
-
.ax-panel__head {
|
|
1414
|
-
display: flex; align-items: flex-start; justify-content: space-between;
|
|
1415
|
-
gap: 12px; margin-bottom: 14px;
|
|
1416
|
-
}
|
|
1417
|
-
.ax-panel__head h2 { margin: 0 0 3px; }
|
|
1418
|
-
.ax-panel__tab { display: none; animation: ax-fade 180ms ease; }
|
|
1419
|
-
.ax-panel__tab.is-active { display: block; }
|
|
1420
|
-
@keyframes ax-fade {
|
|
1421
|
-
from { opacity: 0; transform: translateY(4px); }
|
|
1422
|
-
to { opacity: 1; transform: none; }
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
/* Grids for form rows */
|
|
1426
|
-
.ax-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
1427
|
-
.ax-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
|
|
1428
|
-
|
|
1429
|
-
/* Slider-style setting row \u2014 label + hint + segmented options */
|
|
1430
|
-
.ax-slider-row {
|
|
1431
|
-
display: grid; grid-template-columns: 140px 1fr auto;
|
|
1432
|
-
gap: 12px; align-items: center;
|
|
1433
|
-
padding: 10px 0; border-bottom: 1px dashed var(--ax-border);
|
|
1434
|
-
}
|
|
1435
|
-
.ax-slider-row:last-child { border-bottom: 0; }
|
|
1436
|
-
.ax-slider-row label { font-size: 12.5px; color: var(--ax-text); margin: 0; }
|
|
1437
|
-
.ax-slider-row .ax-hint {
|
|
1438
|
-
margin: 0; color: var(--ax-muted); font-size: 11.5px;
|
|
1439
|
-
}
|
|
1440
|
-
.ax-slider-row .ax-opts {
|
|
1441
|
-
display: flex; gap: 4px; background: var(--ax-bg);
|
|
1442
|
-
border: var(--ax-border-w) solid var(--ax-border); border-radius: var(--ax-radius-sm); padding: 2px;
|
|
1443
|
-
}
|
|
1444
|
-
.ax-slider-row .ax-opts button {
|
|
1445
|
-
background: transparent; border: 0; color: var(--ax-muted);
|
|
1446
|
-
padding: 5px 11px; font: inherit; font-size: 11.5px;
|
|
1447
|
-
cursor: pointer; border-radius: var(--ax-radius-sm); white-space: nowrap;
|
|
1448
|
-
}
|
|
1449
|
-
.ax-slider-row .ax-opts button.is-active {
|
|
1450
|
-
background: var(--ax-surface-2); color: var(--ax-text);
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
/* Sub-tabs (Guided/Freeform, CLAUDE.md/SOUL.md/IDENTITY.md) */
|
|
1454
|
-
.ax-subtabs {
|
|
1455
|
-
display: inline-flex; background: var(--ax-bg);
|
|
1456
|
-
border: var(--ax-border-w) solid var(--ax-border); border-radius: var(--ax-radius);
|
|
1457
|
-
padding: 3px; margin-bottom: 16px;
|
|
1458
|
-
}
|
|
1459
|
-
.ax-subtabs button {
|
|
1460
|
-
background: transparent; border: 0; color: var(--ax-muted);
|
|
1461
|
-
padding: 6px 14px; font: inherit; font-size: 12px;
|
|
1462
|
-
cursor: pointer; border-radius: var(--ax-radius-sm); font-weight: 500;
|
|
1463
|
-
}
|
|
1464
|
-
.ax-subtabs button.is-active {
|
|
1465
|
-
background: var(--ax-surface-2); color: var(--ax-text);
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
/* Trigger-word chips with inline input (for Wake words field) */
|
|
1469
|
-
.ax-triggers-edit {
|
|
1470
|
-
display: flex; flex-wrap: wrap; gap: 6px;
|
|
1471
|
-
background: var(--ax-bg); border: var(--ax-border-w) solid var(--ax-border);
|
|
1472
|
-
padding: 7px; border-radius: var(--ax-radius-sm); min-height: 38px;
|
|
1473
|
-
align-items: center; cursor: text;
|
|
1474
|
-
}
|
|
1475
|
-
.ax-triggers-edit:focus-within {
|
|
1476
|
-
border-color: var(--ax-accent);
|
|
1477
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--ax-accent) 18%, transparent);
|
|
1478
|
-
}
|
|
1479
|
-
.ax-trig-pill {
|
|
1480
|
-
display: inline-flex; align-items: center; gap: 6px;
|
|
1481
|
-
font-family: var(--ax-mono); font-size: 11px;
|
|
1482
|
-
padding: 3px 4px 3px 9px;
|
|
1483
|
-
background: color-mix(in oklch, var(--ax-accent) 16%, var(--ax-surface));
|
|
1484
|
-
border: 1px solid color-mix(in oklch, var(--ax-accent) 30%, var(--ax-border));
|
|
1485
|
-
border-radius: var(--ax-radius-sm); color: var(--ax-accent);
|
|
1486
|
-
}
|
|
1487
|
-
.ax-trig-pill button {
|
|
1488
|
-
background: transparent; border: 0; color: currentColor;
|
|
1489
|
-
opacity: 0.6; cursor: pointer; font-size: 13px; line-height: 1;
|
|
1490
|
-
padding: 0 2px; border-radius: var(--ax-radius-sm);
|
|
1491
|
-
}
|
|
1492
|
-
.ax-trig-pill button:hover {
|
|
1493
|
-
opacity: 1;
|
|
1494
|
-
background: color-mix(in oklch, var(--ax-accent) 20%, transparent);
|
|
1495
|
-
}
|
|
1496
|
-
.ax-triggers-edit input {
|
|
1497
|
-
flex: 1; min-width: 120px;
|
|
1498
|
-
background: transparent; border: 0; color: var(--ax-text);
|
|
1499
|
-
font: inherit; font-size: 12.5px;
|
|
1500
|
-
padding: 4px 6px; font-family: var(--ax-mono);
|
|
1501
|
-
}
|
|
1502
|
-
.ax-triggers-edit input:focus { outline: none; }
|
|
1503
|
-
|
|
1504
|
-
/* Prompt editor (freeform CLAUDE.md) */
|
|
1505
|
-
.ax-prompt-edit { position: relative; }
|
|
1506
|
-
.ax-prompt-edit textarea { min-height: 220px; line-height: 1.6; }
|
|
1507
|
-
.ax-prompt-badges {
|
|
1508
|
-
position: absolute; top: 8px; right: 8px; display: flex; gap: 6px;
|
|
1509
|
-
}
|
|
1510
|
-
.ax-prompt-badges .ax-pbadge {
|
|
1511
|
-
font-size: 10px; padding: 3px 7px; border-radius: var(--ax-radius-sm);
|
|
1512
|
-
background: var(--ax-surface-2); color: var(--ax-muted);
|
|
1513
|
-
font-family: var(--ax-mono); letter-spacing: 0.03em;
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
/* Skill gallery */
|
|
1517
|
-
.ax-skill-toolbar {
|
|
1518
|
-
display: flex; gap: 10px; align-items: center;
|
|
1519
|
-
margin-bottom: 14px; flex-wrap: wrap;
|
|
1520
|
-
}
|
|
1521
|
-
.ax-search {
|
|
1522
|
-
position: relative; flex: 1; min-width: 220px;
|
|
1523
|
-
}
|
|
1524
|
-
.ax-search svg {
|
|
1525
|
-
position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
|
|
1526
|
-
width: 13px; height: 13px; color: var(--ax-muted); pointer-events: none;
|
|
1527
|
-
}
|
|
1528
|
-
.ax-search input { width: 100%; padding-left: 30px; }
|
|
1529
|
-
.ax-skill-filter {
|
|
1530
|
-
display: flex; gap: 4px; background: var(--ax-bg);
|
|
1531
|
-
border: var(--ax-border-w) solid var(--ax-border); border-radius: var(--ax-radius-sm); padding: 2px;
|
|
1532
|
-
}
|
|
1533
|
-
.ax-skill-filter button {
|
|
1534
|
-
background: transparent; border: 0; color: var(--ax-muted);
|
|
1535
|
-
padding: 5px 10px; font: inherit; font-size: 11.5px;
|
|
1536
|
-
cursor: pointer; border-radius: var(--ax-radius-sm);
|
|
1537
|
-
}
|
|
1538
|
-
.ax-skill-filter button.is-active {
|
|
1539
|
-
background: var(--ax-surface-2); color: var(--ax-text);
|
|
1540
|
-
}
|
|
1541
|
-
.ax-skill-grid {
|
|
1542
|
-
display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
1543
|
-
gap: 10px;
|
|
1544
|
-
}
|
|
1545
|
-
.ax-skill-card {
|
|
1546
|
-
background: var(--ax-bg-elev); border: var(--ax-border-w) solid var(--ax-border);
|
|
1547
|
-
border-radius: var(--ax-radius-lg); padding: 14px;
|
|
1548
|
-
display: flex; flex-direction: column; gap: 8px;
|
|
1549
|
-
cursor: pointer; position: relative; overflow: hidden;
|
|
1550
|
-
transition: border-color 160ms, transform 160ms, background 160ms;
|
|
1551
|
-
}
|
|
1552
|
-
.ax-skill-card:hover { border-color: var(--ax-border-2); transform: translateY(-1px); }
|
|
1553
|
-
.ax-skill-card.is-on {
|
|
1554
|
-
border-color: color-mix(in oklch, var(--ax-accent) 40%, var(--ax-border));
|
|
1555
|
-
background: color-mix(in oklch, var(--ax-accent) 5%, var(--ax-bg-elev));
|
|
1556
|
-
}
|
|
1557
|
-
.ax-skill-card.is-on::after {
|
|
1558
|
-
content: ""; position: absolute; top: 0; right: 0;
|
|
1559
|
-
width: 0; height: 0;
|
|
1560
|
-
border-left: 26px solid transparent;
|
|
1561
|
-
border-top: 26px solid var(--ax-accent);
|
|
1562
|
-
}
|
|
1563
|
-
.ax-skill-card.is-on::before {
|
|
1564
|
-
content: ""; position: absolute; top: 5px; right: 3px;
|
|
1565
|
-
width: 7px; height: 4px;
|
|
1566
|
-
border-left: 2px solid var(--ax-bg);
|
|
1567
|
-
border-bottom: 2px solid var(--ax-bg);
|
|
1568
|
-
transform: rotate(-45deg); z-index: 2;
|
|
1569
|
-
}
|
|
1570
|
-
.ax-skill-card__top { display: flex; align-items: center; gap: 10px; }
|
|
1571
|
-
.ax-skill-card__icon {
|
|
1572
|
-
width: 32px; height: 32px; border-radius: var(--ax-radius);
|
|
1573
|
-
background: var(--ax-surface-2);
|
|
1574
|
-
display: grid; place-items: center; flex-shrink: 0;
|
|
1575
|
-
color: var(--ax-accent);
|
|
1576
|
-
}
|
|
1577
|
-
.ax-skill-card__icon svg { width: 16px; height: 16px; }
|
|
1578
|
-
.ax-skill-card__name {
|
|
1579
|
-
font-weight: 600; font-size: 13px; letter-spacing: -0.005em;
|
|
1580
|
-
}
|
|
1581
|
-
.ax-skill-card__slug {
|
|
1582
|
-
font-family: var(--ax-mono); font-size: 10.5px;
|
|
1583
|
-
color: var(--ax-muted); margin-top: 1px;
|
|
1584
|
-
}
|
|
1585
|
-
.ax-skill-card__desc {
|
|
1586
|
-
font-size: 12px; color: var(--ax-text-2); line-height: 1.5;
|
|
1587
|
-
flex: 1; min-height: 32px;
|
|
1588
|
-
}
|
|
1589
|
-
.ax-skill-card__foot {
|
|
1590
|
-
display: flex; align-items: center; justify-content: space-between;
|
|
1591
|
-
font-size: 11px; color: var(--ax-muted);
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
/* Info callout (similar to wit but inline inside panels) */
|
|
1595
|
-
.ax-callout {
|
|
1596
|
-
background: color-mix(in oklch, var(--ax-info) 5%, var(--ax-bg-elev));
|
|
1597
|
-
border: 1px solid color-mix(in oklch, var(--ax-info) 20%, var(--ax-border));
|
|
1598
|
-
border-radius: var(--ax-radius-sm); padding: 12px 14px;
|
|
1599
|
-
font-size: 12.5px; color: var(--ax-text-2); line-height: 1.6;
|
|
1600
|
-
display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px;
|
|
1601
|
-
}
|
|
1602
|
-
.ax-callout__icon {
|
|
1603
|
-
width: 18px; height: 18px; border-radius: 50%;
|
|
1604
|
-
background: color-mix(in oklch, var(--ax-info) 18%, transparent);
|
|
1605
|
-
color: var(--ax-info); display: grid; place-items: center;
|
|
1606
|
-
font-size: 11px; font-weight: 600; flex-shrink: 0; margin-top: 1px;
|
|
1607
|
-
}
|
|
1608
|
-
.ax-callout b { color: var(--ax-text); }
|
|
1609
|
-
.ax-callout code {
|
|
1610
|
-
font-family: var(--ax-mono); font-size: 11.5px;
|
|
1611
|
-
background: var(--ax-bg); padding: 1px 5px; border-radius: var(--ax-radius-sm);
|
|
1612
|
-
border: var(--ax-border-w) solid var(--ax-border);
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
|
-
/* Channel-binding rows (agent-specific view) */
|
|
1616
|
-
.ax-chan-row {
|
|
1617
|
-
background: var(--ax-bg-elev); border: var(--ax-border-w) solid var(--ax-border);
|
|
1618
|
-
border-radius: var(--ax-radius-lg); padding: 12px 14px;
|
|
1619
|
-
display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
|
|
1620
|
-
}
|
|
1621
|
-
.ax-chan-row__logo {
|
|
1622
|
-
width: 32px; height: 32px; border-radius: var(--ax-radius);
|
|
1623
|
-
display: grid; place-items: center;
|
|
1624
|
-
font-weight: 700; font-size: 13px; color: white; flex-shrink: 0;
|
|
1625
|
-
font-family: var(--ax-mono);
|
|
1626
|
-
}
|
|
1627
|
-
.ax-chan-row__info { flex: 1; }
|
|
1628
|
-
.ax-chan-row__name { font-size: 13px; font-weight: 600; }
|
|
1629
|
-
.ax-chan-row__desc {
|
|
1630
|
-
font-size: 12px; color: var(--ax-muted);
|
|
1631
|
-
margin-top: 2px; font-family: var(--ax-mono);
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
|
-
/* Handover viz (from-agent \u2192 to-agent arrow) */
|
|
1635
|
-
.ax-handover-viz {
|
|
1636
|
-
display: flex; align-items: center; justify-content: space-between;
|
|
1637
|
-
gap: 14px; padding: 16px 18px;
|
|
1638
|
-
background: var(--ax-bg-elev); border: var(--ax-border-w) solid var(--ax-border);
|
|
1639
|
-
border-radius: var(--ax-radius-lg); margin-bottom: 14px;
|
|
1640
|
-
}
|
|
1641
|
-
.ax-ho-side {
|
|
1642
|
-
display: flex; flex-direction: column; align-items: center;
|
|
1643
|
-
gap: 6px; flex: 0 0 130px;
|
|
1644
|
-
}
|
|
1645
|
-
.ax-ho-side__av {
|
|
1646
|
-
width: 42px; height: 42px; border-radius: var(--ax-radius);
|
|
1647
|
-
display: grid; place-items: center;
|
|
1648
|
-
font-weight: 600; font-size: 15px;
|
|
1649
|
-
}
|
|
1650
|
-
.ax-ho-side--from .ax-ho-side__av {
|
|
1651
|
-
background: color-mix(in oklch, var(--ax-accent) 18%, var(--ax-surface));
|
|
1652
|
-
border: 1px solid color-mix(in oklch, var(--ax-accent) 35%, var(--ax-border));
|
|
1653
|
-
color: var(--ax-accent);
|
|
1654
|
-
}
|
|
1655
|
-
.ax-ho-side--to .ax-ho-side__av {
|
|
1656
|
-
background: var(--ax-surface-2); border: var(--ax-border-w) solid var(--ax-border-2);
|
|
1657
|
-
color: var(--ax-text);
|
|
1658
|
-
}
|
|
1659
|
-
.ax-ho-side__nm { font-size: 12px; font-weight: 600; }
|
|
1660
|
-
.ax-ho-side__rl {
|
|
1661
|
-
font-size: 10px; color: var(--ax-muted);
|
|
1662
|
-
text-transform: uppercase; letter-spacing: 0.06em;
|
|
1663
|
-
font-family: var(--ax-mono);
|
|
1664
|
-
}
|
|
1665
|
-
.ax-ho-wire {
|
|
1666
|
-
flex: 1; height: 2px; position: relative;
|
|
1667
|
-
background: repeating-linear-gradient(90deg,
|
|
1668
|
-
var(--ax-border-2) 0, var(--ax-border-2) 4px,
|
|
1669
|
-
transparent 4px, transparent 8px);
|
|
1670
|
-
}
|
|
1671
|
-
.ax-ho-wire svg {
|
|
1672
|
-
position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
|
|
1673
|
-
width: 16px; height: 16px; color: var(--ax-accent);
|
|
1674
|
-
}
|
|
1675
|
-
.ax-ho-list-row {
|
|
1676
|
-
display: flex; align-items: center; gap: 10px;
|
|
1677
|
-
padding: 10px 12px;
|
|
1678
|
-
background: var(--ax-bg-elev); border: var(--ax-border-w) solid var(--ax-border);
|
|
1679
|
-
border-radius: var(--ax-radius-sm); margin-bottom: 6px;
|
|
1680
|
-
font-size: 12.5px;
|
|
1681
|
-
}
|
|
1682
|
-
.ax-ho-list-row .ax-who { flex: 1; color: var(--ax-text-2); }
|
|
1683
|
-
.ax-ho-list-row .ax-who b {
|
|
1684
|
-
color: var(--ax-text); font-family: var(--ax-mono); font-weight: 500;
|
|
1685
|
-
}
|
|
1686
|
-
.ax-ho-list-row .ax-when { color: var(--ax-muted); font-size: 11px; }
|
|
1687
|
-
|
|
1688
|
-
/* Activity cells + spark + session rows */
|
|
1689
|
-
.ax-activity-grid {
|
|
1690
|
-
display: grid; grid-template-columns: repeat(4, 1fr);
|
|
1691
|
-
gap: 10px; margin-bottom: 18px;
|
|
1692
|
-
}
|
|
1693
|
-
.ax-activity-cell {
|
|
1694
|
-
background: var(--ax-bg-elev); border: var(--ax-border-w) solid var(--ax-border);
|
|
1695
|
-
border-radius: var(--ax-radius-sm); padding: 14px;
|
|
1696
|
-
}
|
|
1697
|
-
.ax-activity-cell .ax-v {
|
|
1698
|
-
font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
|
|
1699
|
-
}
|
|
1700
|
-
.ax-activity-cell .ax-l {
|
|
1701
|
-
font-size: 11px; color: var(--ax-muted); margin-top: 2px;
|
|
1702
|
-
}
|
|
1703
|
-
.ax-activity-cell .ax-delta {
|
|
1704
|
-
font-size: 11px; margin-top: 6px;
|
|
1705
|
-
display: inline-flex; align-items: center; gap: 3px;
|
|
1706
|
-
}
|
|
1707
|
-
.ax-activity-cell .ax-delta--up { color: var(--ax-accent); }
|
|
1708
|
-
.ax-activity-cell .ax-delta--down { color: var(--ax-muted); }
|
|
1709
|
-
|
|
1710
|
-
.ax-spark { width: 100%; height: 100px; margin: 10px 0 14px; }
|
|
1711
|
-
|
|
1712
|
-
.ax-session {
|
|
1713
|
-
display: flex; align-items: center; gap: 10px;
|
|
1714
|
-
padding: 10px 12px;
|
|
1715
|
-
background: var(--ax-bg-elev); border: var(--ax-border-w) solid var(--ax-border);
|
|
1716
|
-
border-radius: var(--ax-radius-sm); margin-bottom: 6px;
|
|
1717
|
-
font-size: 12.5px;
|
|
1718
|
-
}
|
|
1719
|
-
.ax-session__ch {
|
|
1720
|
-
width: 24px; height: 24px; border-radius: var(--ax-radius-sm);
|
|
1721
|
-
display: grid; place-items: center;
|
|
1722
|
-
font-weight: 700; font-size: 10px; color: white;
|
|
1723
|
-
flex-shrink: 0; font-family: var(--ax-mono);
|
|
1724
|
-
}
|
|
1725
|
-
.ax-session__body { flex: 1; min-width: 0; }
|
|
1726
|
-
.ax-session__txt {
|
|
1727
|
-
color: var(--ax-text); overflow: hidden; text-overflow: ellipsis;
|
|
1728
|
-
white-space: nowrap;
|
|
1729
|
-
}
|
|
1730
|
-
.ax-session__meta {
|
|
1731
|
-
font-size: 11px; color: var(--ax-muted);
|
|
1732
|
-
margin-top: 1px; font-family: var(--ax-mono);
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
/* Log row (Conversations tab) */
|
|
1736
|
-
.ax-log-head {
|
|
1737
|
-
display: grid; grid-template-columns: 24px 90px 160px 1fr auto;
|
|
1738
|
-
gap: 12px; padding: 8px 10px;
|
|
1739
|
-
border-bottom: var(--ax-border-w) solid var(--ax-border-2);
|
|
1740
|
-
font-size: 10px; color: var(--ax-muted);
|
|
1741
|
-
text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--ax-mono);
|
|
1742
|
-
}
|
|
1743
|
-
.ax-log-row {
|
|
1744
|
-
display: grid; grid-template-columns: 24px 90px 160px 1fr auto;
|
|
1745
|
-
gap: 12px; align-items: center; padding: 9px 10px;
|
|
1746
|
-
border-bottom: var(--ax-border-w) solid var(--ax-border); font-size: 12px;
|
|
1747
|
-
}
|
|
1748
|
-
.ax-log-row:hover { background: color-mix(in oklch, var(--ax-accent) 4%, transparent); }
|
|
1749
|
-
.ax-log-row .ax-sev {
|
|
1750
|
-
width: 8px; height: 8px; border-radius: 50%; margin-left: 8px;
|
|
1751
|
-
}
|
|
1752
|
-
.ax-log-row .ax-sev--ok { background: var(--ax-accent); }
|
|
1753
|
-
.ax-log-row .ax-sev--warn { background: var(--ax-warn); }
|
|
1754
|
-
.ax-log-row .ax-sev--err { background: var(--ax-err); }
|
|
1755
|
-
.ax-log-row .ax-t {
|
|
1756
|
-
font-family: var(--ax-mono); color: var(--ax-muted); font-size: 11px;
|
|
1757
|
-
}
|
|
1758
|
-
.ax-log-row .ax-who {
|
|
1759
|
-
font-family: var(--ax-mono); font-size: 11px; color: var(--ax-text-2);
|
|
1760
|
-
}
|
|
1761
|
-
.ax-log-row .ax-msg {
|
|
1762
|
-
color: var(--ax-text); overflow: hidden;
|
|
1763
|
-
text-overflow: ellipsis; white-space: nowrap;
|
|
1764
|
-
}
|
|
1765
|
-
.ax-log-row .ax-ms {
|
|
1766
|
-
color: var(--ax-muted); font-family: var(--ax-mono); font-size: 11px;
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
/* Danger zone */
|
|
1770
|
-
.ax-panel--danger {
|
|
1771
|
-
border-color: color-mix(in oklch, var(--ax-err) 30%, var(--ax-border));
|
|
1772
|
-
}
|
|
1773
|
-
.ax-danger-item {
|
|
1774
|
-
display: flex; align-items: center; gap: 14px;
|
|
1775
|
-
padding: 14px 0; border-bottom: 1px dashed var(--ax-border);
|
|
1776
|
-
}
|
|
1777
|
-
.ax-danger-item:last-child { border-bottom: 0; padding-bottom: 0; }
|
|
1778
|
-
.ax-danger-item:first-child { padding-top: 4px; }
|
|
1779
|
-
.ax-danger-item__info { flex: 1; }
|
|
1780
|
-
.ax-danger-item__name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
|
|
1781
|
-
.ax-danger-item__desc { font-size: 12px; color: var(--ax-muted); line-height: 1.5; }
|
|
1782
|
-
|
|
1783
|
-
/* Test-drive panel \u2014 docked to the right edge, slides in from outside
|
|
1784
|
-
* the viewport when toggled. Similar to the Live page history-panel. */
|
|
1785
|
-
.ax-td-panel {
|
|
1786
|
-
position: fixed; top: 0; right: 0; bottom: 0; width: 420px;
|
|
1787
|
-
background: var(--ax-bg-elev); border-left: var(--ax-border-w) solid var(--ax-border);
|
|
1788
|
-
z-index: 900;
|
|
1789
|
-
display: flex; flex-direction: column;
|
|
1790
|
-
box-shadow: -8px 0 24px rgba(0,0,0,0.4);
|
|
1791
|
-
transform: translateX(100%); transition: transform 0.22s ease;
|
|
1792
|
-
}
|
|
1793
|
-
.ax-td-panel.is-open { transform: translateX(0); }
|
|
1794
|
-
@media (max-width: 520px) {
|
|
1795
|
-
.ax-td-panel { width: 100vw; }
|
|
1796
|
-
}
|
|
1797
|
-
.ax-td-head {
|
|
1798
|
-
padding: 12px 14px; border-bottom: var(--ax-border-w) solid var(--ax-border);
|
|
1799
|
-
background: var(--ax-bg-elev);
|
|
1800
|
-
display: flex; align-items: center; gap: 10px;
|
|
1801
|
-
}
|
|
1802
|
-
.ax-td-head__dot {
|
|
1803
|
-
width: 8px; height: 8px; border-radius: 50%;
|
|
1804
|
-
background: var(--ax-accent);
|
|
1805
|
-
box-shadow: 0 0 8px color-mix(in oklch, var(--ax-accent) 60%, transparent);
|
|
1806
|
-
animation: ax-pulse 2.2s infinite;
|
|
1807
|
-
}
|
|
1808
|
-
.ax-td-head__t { flex: 1; font-size: 12px; font-weight: 600; }
|
|
1809
|
-
.ax-td-head__sub {
|
|
1810
|
-
font-size: 11px; color: var(--ax-muted); font-family: var(--ax-mono);
|
|
1811
|
-
}
|
|
1812
|
-
.ax-td-head__seg {
|
|
1813
|
-
display: inline-flex; background: var(--ax-surface);
|
|
1814
|
-
border: var(--ax-border-w) solid var(--ax-border); border-radius: var(--ax-radius-sm); padding: 2px;
|
|
1815
|
-
}
|
|
1816
|
-
.ax-td-head__seg button {
|
|
1817
|
-
background: transparent; border: 0; color: var(--ax-muted);
|
|
1818
|
-
padding: 3px 8px; font: inherit; font-size: 10.5px;
|
|
1819
|
-
cursor: pointer; border-radius: var(--ax-radius-sm); font-family: var(--ax-mono);
|
|
1820
|
-
}
|
|
1821
|
-
.ax-td-head__seg button.is-active {
|
|
1822
|
-
background: var(--ax-surface-2); color: var(--ax-text);
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
.ax-td-scenarios {
|
|
1826
|
-
padding: 10px 14px; background: var(--ax-bg-elev);
|
|
1827
|
-
border-bottom: var(--ax-border-w) solid var(--ax-border);
|
|
1828
|
-
display: flex; gap: 5px; flex-wrap: wrap;
|
|
1829
|
-
}
|
|
1830
|
-
.ax-td-scenarios__lbl {
|
|
1831
|
-
font-size: 10px; color: var(--ax-muted);
|
|
1832
|
-
text-transform: uppercase; letter-spacing: 0.06em;
|
|
1833
|
-
font-family: var(--ax-mono); width: 100%; margin-bottom: 3px;
|
|
1834
|
-
}
|
|
1835
|
-
.ax-td-scenario {
|
|
1836
|
-
font-size: 11px; padding: 3px 8px;
|
|
1837
|
-
background: var(--ax-surface); border: var(--ax-border-w) solid var(--ax-border);
|
|
1838
|
-
border-radius: var(--ax-radius); color: var(--ax-text-2);
|
|
1839
|
-
cursor: pointer; transition: all 120ms;
|
|
1840
|
-
}
|
|
1841
|
-
.ax-td-scenario:hover { border-color: var(--ax-accent); color: var(--ax-accent); }
|
|
1842
|
-
|
|
1843
|
-
.ax-td-model {
|
|
1844
|
-
padding: 12px 14px; background: var(--ax-bg-elev);
|
|
1845
|
-
border-bottom: var(--ax-border-w) solid var(--ax-border);
|
|
1846
|
-
display: flex; flex-direction: column; gap: 8px;
|
|
1847
|
-
}
|
|
1848
|
-
.ax-td-model[hidden], .ax-td-model form[hidden] { display: none; }
|
|
1849
|
-
.ax-td-model__t { font-weight: 600; font-size: 13px; }
|
|
1850
|
-
.ax-td-model__hint { margin: 0; font-size: 12px; color: var(--ax-text-2); }
|
|
1851
|
-
.ax-td-model form { display: flex; gap: 6px; }
|
|
1852
|
-
.ax-td-model form .inp { flex: 1; min-width: 0; }
|
|
1853
|
-
.ax-td-model__err { font-size: 12px; color: var(--ax-danger, #c0392b); }
|
|
1854
|
-
.ax-td-model__err:empty { display: none; }
|
|
1855
|
-
|
|
1856
|
-
.ax-td-chat {
|
|
1857
|
-
flex: 1; overflow-y: auto; padding: 14px;
|
|
1858
|
-
display: flex; flex-direction: column; gap: 8px;
|
|
1859
|
-
background: var(--ax-bg);
|
|
1860
|
-
}
|
|
1861
|
-
.ax-td-chat__msg-wrap {
|
|
1862
|
-
display: flex; flex-direction: column; gap: 2px; max-width: 86%;
|
|
1863
|
-
}
|
|
1864
|
-
.ax-td-chat__msg-wrap.is-user { align-self: flex-end; align-items: flex-end; }
|
|
1865
|
-
.ax-td-chat__msg-wrap.is-bot { align-self: flex-start; }
|
|
1866
|
-
.ax-td-chat__bubble {
|
|
1867
|
-
padding: 8px 12px; border-radius: var(--ax-radius-lg);
|
|
1868
|
-
font-size: 12.5px; line-height: 1.55; word-wrap: break-word;
|
|
1869
|
-
}
|
|
1870
|
-
.ax-td-chat__bubble.is-user {
|
|
1871
|
-
background: var(--ax-accent); color: var(--ax-bg);
|
|
1872
|
-
border-bottom-right-radius: 3px; font-weight: 500;
|
|
1873
|
-
}
|
|
1874
|
-
.ax-td-chat__bubble.is-bot {
|
|
1875
|
-
background: var(--ax-surface-2); color: var(--ax-text);
|
|
1876
|
-
border-bottom-left-radius: 3px; border: var(--ax-border-w) solid var(--ax-border);
|
|
1877
|
-
}
|
|
1878
|
-
.ax-td-chat__meta {
|
|
1879
|
-
font-size: 9.5px; color: var(--ax-muted);
|
|
1880
|
-
font-family: var(--ax-mono); padding: 0 4px;
|
|
1881
|
-
}
|
|
1882
|
-
.ax-td-chat__typing {
|
|
1883
|
-
align-self: flex-start; padding: 10px 14px;
|
|
1884
|
-
background: var(--ax-surface-2); border: var(--ax-border-w) solid var(--ax-border);
|
|
1885
|
-
border-radius: var(--ax-radius-lg); border-bottom-left-radius: 3px;
|
|
1886
|
-
display: inline-flex; gap: 4px;
|
|
1887
|
-
}
|
|
1888
|
-
.ax-td-chat__typing span {
|
|
1889
|
-
width: 6px; height: 6px; background: var(--ax-muted);
|
|
1890
|
-
border-radius: 50%; animation: axTypingBounce 1.2s infinite;
|
|
1891
|
-
}
|
|
1892
|
-
.ax-td-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
|
|
1893
|
-
.ax-td-chat__typing span:nth-child(3) { animation-delay: 0.3s; }
|
|
1894
|
-
@keyframes axTypingBounce {
|
|
1895
|
-
0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
|
|
1896
|
-
30% { transform: translateY(-5px); opacity: 1; }
|
|
1897
|
-
}
|
|
1898
|
-
.ax-td-input {
|
|
1899
|
-
padding: 10px; border-top: var(--ax-border-w) solid var(--ax-border);
|
|
1900
|
-
background: var(--ax-bg-elev); display: flex; gap: 6px;
|
|
1901
|
-
}
|
|
1902
|
-
.ax-td-input input {
|
|
1903
|
-
flex: 1; background: var(--ax-bg); border: var(--ax-border-w) solid var(--ax-border);
|
|
1904
|
-
border-radius: var(--ax-radius); padding: 8px 11px;
|
|
1905
|
-
color: var(--ax-text); font: inherit; font-size: 12.5px;
|
|
1906
|
-
}
|
|
1907
|
-
.ax-td-input input:focus { outline: none; border-color: var(--ax-accent); }
|
|
1908
|
-
.ax-td-input button {
|
|
1909
|
-
background: var(--ax-accent); color: var(--ax-bg); border: 0;
|
|
1910
|
-
border-radius: var(--ax-radius); padding: 0 12px;
|
|
1911
|
-
cursor: pointer; font-weight: 600;
|
|
1912
|
-
}
|
|
1913
|
-
.ax-td-input button:hover {
|
|
1914
|
-
background: color-mix(in oklch, var(--ax-accent) 88%, white);
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
/* Inline task-queue chip on bot messages */
|
|
1918
|
-
.ax-td-task-chip {
|
|
1919
|
-
display: inline-flex; align-items: center; gap: 5px;
|
|
1920
|
-
margin-top: 5px; padding: 3px 8px;
|
|
1921
|
-
background: color-mix(in oklch, var(--ax-accent) 10%, var(--ax-surface));
|
|
1922
|
-
border: 1px solid color-mix(in oklch, var(--ax-accent) 35%, var(--ax-border));
|
|
1923
|
-
border-radius: var(--ax-radius); font-size: 10px; color: var(--ax-accent);
|
|
1924
|
-
font-family: var(--ax-mono); letter-spacing: 0.04em;
|
|
1925
|
-
cursor: default; user-select: none;
|
|
1926
|
-
}
|
|
1927
|
-
.ax-td-task-chip__dot {
|
|
1928
|
-
width: 6px; height: 6px; border-radius: 50%;
|
|
1929
|
-
background: var(--ax-accent); flex-shrink: 0;
|
|
1930
|
-
}
|
|
1931
|
-
.ax-td-task-chip--queued .ax-td-task-chip__dot {
|
|
1932
|
-
background: var(--ax-muted);
|
|
1933
|
-
}
|
|
1934
|
-
.ax-td-task-chip__id {
|
|
1935
|
-
font-family: var(--ax-mono); opacity: 0.7; font-size: 9px;
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
/* Section mini-label used throughout detail pages */
|
|
1939
|
-
.ax-sec-label-d {
|
|
1940
|
-
display: flex; align-items: center; justify-content: space-between;
|
|
1941
|
-
margin: 20px 0 10px;
|
|
1942
|
-
}
|
|
1943
|
-
.ax-sec-label-d h3 {
|
|
1944
|
-
font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
|
|
1945
|
-
text-transform: uppercase; color: var(--ax-muted);
|
|
1946
|
-
margin: 0; font-family: var(--ax-mono);
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
/* --- Responsive collapses for the settings primitives --- */
|
|
1950
|
-
@media (max-width: 1180px) {
|
|
1951
|
-
.ax-layout { grid-template-columns: 180px 1fr; }
|
|
1952
|
-
}
|
|
1953
|
-
@media (max-width: 760px) {
|
|
1954
|
-
.ax-health-strip { grid-template-columns: repeat(2, 1fr); }
|
|
1955
|
-
.ax-connectors { grid-template-columns: 1fr; }
|
|
1956
|
-
.ax-detail-grid { grid-template-columns: 1fr; }
|
|
1957
|
-
.ax-mesh-hero { grid-template-columns: 1fr; }
|
|
1958
|
-
.ax-mesh-viz { margin: 0 auto; }
|
|
1959
|
-
.ax-cron-hints { grid-template-columns: 1fr; }
|
|
1960
|
-
.ax-layout { grid-template-columns: 1fr; }
|
|
1961
|
-
.ax-rail { display: none; }
|
|
1962
|
-
.ax-stats-inline { grid-template-columns: repeat(2, 1fr); }
|
|
1963
|
-
.ax-activity-grid { grid-template-columns: repeat(2, 1fr); }
|
|
1964
|
-
.ax-log-head, .ax-log-row { grid-template-columns: 8px 80px 1fr auto; }
|
|
1965
|
-
.ax-log-head span:nth-child(3), .ax-log-row .ax-who { display: none; }
|
|
1966
|
-
.ax-grid-2, .ax-grid-3 { grid-template-columns: 1fr; }
|
|
1967
|
-
}`;function f(a){let e=`${n}
|
|
1968
|
-
${s}
|
|
1969
|
-
${c}
|
|
1970
|
-
${b}${a.css?`
|
|
1971
|
-
`+a.css:""}`,t=a.customHeader??(a.activeTab==="custom"?"":g({activeTab:a.activeTab,subtitle:a.subtitle,subheader:a.subheader,peers:a.peers,currentPeerId:a.currentPeerId})),o=a.noMain?a.body:`<main>${a.body}</main>`;return`<!DOCTYPE html>
|
|
1972
|
-
<html lang="en">
|
|
1973
|
-
<head>
|
|
1974
|
-
<meta charset="utf-8">
|
|
1975
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
1976
|
-
<title>${w(a.title)}</title>
|
|
1977
|
-
${l}
|
|
1978
|
-
${a.headExtras||""}
|
|
1979
|
-
<style>${e}</style>
|
|
1980
|
-
</head>
|
|
1981
|
-
<body>
|
|
1982
|
-
${t}
|
|
1983
|
-
${o}
|
|
1984
|
-
${a.noAssistant?"":h}
|
|
1985
|
-
${p}
|
|
1986
|
-
${a.scripts||""}
|
|
1987
|
-
${a.noAssistant?"":`<script>${m({markdownToHtml:d})}${v}</script>`}
|
|
1988
|
-
</body>
|
|
1989
|
-
</html>`}function w(a){return String(a||"").replace(/[<>&]/g,e=>({"<":"<",">":">","&":"&"})[e])}function _(a,e={}){let t=["ax-btn",e.primary?"ax-btn--primary":"",e.ghost?"ax-btn--ghost":"",e.danger?"ax-btn--danger":"",e.extraClass||""].filter(Boolean).join(" ");return`<button ${[`type="${e.type||"button"}"`,`class="${t}"`,e.id?`id="${r(e.id)}"`:"",e.disabled?"disabled":"",e.onclick?`onclick="${r(e.onclick)}"`:""].filter(Boolean).join(" ")}>${r(a)}</button>`}function k(a){let e=`<label>${r(a.label)}${a.hint?` <span class="ax-hint">${a.hint}</span>`:""}</label>`,t="",o=[`name="${r(a.name)}"`,a.required?"required":"",a.readonly?"readonly":"",a.placeholder?`placeholder="${r(a.placeholder)}"`:"",a.extraAttrs||""].filter(Boolean).join(" ");if(a.type==="textarea")t=`<textarea ${o} rows="${a.rows||3}">${r(a.value||"")}</textarea>`;else if(a.type==="select"&&a.options){let x=a.options.map(i=>`<option value="${r(i.value)}"${i.selected?" selected":""}>${r(i.label)}</option>`).join("");t=`<select ${o}>${x}</select>`}else t=`<input type="${a.type||"text"}" ${o}`+(a.value!==void 0?` value="${r(a.value)}"`:"")+(a.pattern?` pattern="${r(a.pattern)}"`:"")+" />";return`<div class="ax-field">${e}${t}</div>`}function y(a){return`<div class="ax-row">${a.join("")}</div>`}function z(a,e,t){return`<section class="ax-step">
|
|
1990
|
-
<div class="ax-step__head"><span class="ax-step__num">${r(String(a))}</span>${r(e)}</div>
|
|
1991
|
-
${t}
|
|
1992
|
-
</section>`}function $(a){return`<div class="ax-page-head">
|
|
1993
|
-
${a.kicker?`<div class="ax-kicker">${r(a.kicker)}</div>`:""}
|
|
1994
|
-
<h1>${r(a.title)}</h1>
|
|
1995
|
-
${a.lead?`<p class="ax-lead">${a.lead}</p>`:""}
|
|
1996
|
-
</div>`}function u(a){return`<div class="ax-health-card">
|
|
1997
|
-
<div class="ax-hc-dot ax-hc-dot--${a.kind||"off"}"></div>
|
|
1998
|
-
<div class="ax-hc-txt">
|
|
1999
|
-
<div class="ax-hc-num">${r(a.num)}</div>
|
|
2000
|
-
<div class="ax-hc-lbl">${r(a.label)}</div>
|
|
2001
|
-
</div>
|
|
2002
|
-
</div>`}function S(a){return`<div class="ax-health-strip">${a.map(u).join("")}</div>`}function T(a){return`<div class="ax-wit"${a.persistKey?` data-wit="${r(a.persistKey)}"`:""}>
|
|
2003
|
-
<span class="ax-wit__icon">${r(a.icon||"?")}</span>
|
|
2004
|
-
<div>${a.bodyHtml}</div>
|
|
2005
|
-
<button class="ax-wit__dismiss" onclick="this.parentElement.style.display='none'">\xD7</button>
|
|
2006
|
-
</div>`}function C(a){return`<div class="ax-section-head">
|
|
2007
|
-
<div class="ax-section-head__icon">${a.icon}</div>
|
|
2008
|
-
<div class="ax-section-head__text">
|
|
2009
|
-
<h2>${r(a.title)}</h2>
|
|
2010
|
-
${a.lead?`<p class="ax-lead">${r(a.lead)}</p>`:""}
|
|
2011
|
-
</div>
|
|
2012
|
-
${a.actionHtml||""}
|
|
2013
|
-
</div>`}function A(a){return`<div class="ax-sec-label"><h3>${r(a.label)}</h3>${a.rightHtml||""}</div>`}var H=`<div class="ax-toast" id="ax-toast">
|
|
2014
|
-
<svg class="ax-toast__icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 6L9 17l-5-5"/></svg>
|
|
2015
|
-
<span id="ax-toast-msg">Copied</span>
|
|
2016
|
-
</div>`,O=`
|
|
2017
|
-
let __axToastTimer;
|
|
2018
|
-
window.showToast = function(msg) {
|
|
2019
|
-
const el = document.getElementById('ax-toast');
|
|
2020
|
-
const m = document.getElementById('ax-toast-msg');
|
|
2021
|
-
if (!el || !m) return;
|
|
2022
|
-
m.textContent = msg;
|
|
2023
|
-
el.classList.add('is-show');
|
|
2024
|
-
clearTimeout(__axToastTimer);
|
|
2025
|
-
__axToastTimer = setTimeout(function(){ el.classList.remove('is-show'); }, 1800);
|
|
2026
|
-
};
|
|
2027
|
-
window.copyText = function(_btn, text) {
|
|
2028
|
-
try { navigator.clipboard.writeText(text); } catch (e) {}
|
|
2029
|
-
window.showToast('Copied to clipboard');
|
|
2030
|
-
};`,j=`
|
|
2031
|
-
window.toggleCard = function(btn) {
|
|
2032
|
-
const card = btn.closest('.ax-row-card');
|
|
2033
|
-
if (card) card.classList.toggle('is-open');
|
|
2034
|
-
};`;export{n as a,m as b,f as c,_ as d,k as e,y as f,z as g,$ as h,S as i,T as j,C as k,A as l,H as m,O as n,j as o};
|
|
2035
|
-
//# sourceMappingURL=chunk-ZRALOFEG.js.map
|