truemap-cli 0.3.0 → 0.5.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/README.md +31 -27
- package/kit/fonts/OFL-commit-mono.txt +90 -0
- package/kit/fonts/OFL-instrument-sans.txt +93 -0
- package/kit/fonts/commit-mono-latin-400-normal.woff2 +0 -0
- package/kit/fonts/instrument-sans-latin-400-normal.woff2 +0 -0
- package/kit/fonts/instrument-sans-latin-500-normal.woff2 +0 -0
- package/kit/fonts/instrument-sans-latin-600-normal.woff2 +0 -0
- package/kit/truemap.css +179 -62
- package/package.json +1 -1
- package/skills/truemap/SKILL.md +9 -5
- package/src/changes.js +155 -0
- package/src/check.js +98 -7
- package/src/cli.js +178 -13
- package/src/common.js +3 -0
- package/src/export.js +2 -2
- package/src/guide.md +128 -115
- package/src/plan.js +185 -0
- package/src/server.js +188 -11
- package/src/snippet.js +63 -0
- package/src/ui/diagram.js +598 -0
- package/src/ui/sdk.js +271 -39
- package/src/ui/wires.js +114 -22
- package/src/ui/workspace.css +337 -157
- package/src/ui/workspace.html +27 -14
- package/src/ui/workspace.js +503 -57
package/src/ui/workspace.css
CHANGED
|
@@ -1,224 +1,404 @@
|
|
|
1
|
-
@font-face { font-family: "
|
|
2
|
-
@font-face { font-family: "
|
|
3
|
-
@font-face { font-family: "
|
|
4
|
-
@font-face { font-family: "
|
|
1
|
+
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/__truemap/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
|
|
2
|
+
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("/__truemap/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
|
|
3
|
+
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("/__truemap/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
|
|
4
|
+
@font-face { font-family: "Commit Mono"; font-weight: 400; font-display: swap; src: url("/__truemap/fonts/commit-mono-latin-400-normal.woff2") format("woff2"); }
|
|
5
5
|
|
|
6
|
+
/* One fixed system: neutrals and ink carry structure and selection. The accent (ink by default, the
|
|
7
|
+
project's own colour when truemap finds one) marks the primary action. A highlighter marks what the
|
|
8
|
+
agent points at. Status colours mean status and nothing else. */
|
|
6
9
|
:root {
|
|
7
|
-
--
|
|
8
|
-
--chrome: #
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
25
|
-
--font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
26
|
-
--code: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
|
|
27
|
-
--panel-w: 372px;
|
|
10
|
+
--bg: #ffffff;
|
|
11
|
+
--chrome: #fafaf9;
|
|
12
|
+
--surface: #f2f2ef;
|
|
13
|
+
--line: #e6e6e1;
|
|
14
|
+
--line-strong: #d2d2cb;
|
|
15
|
+
--ink: #141413;
|
|
16
|
+
--text: #2b2b28;
|
|
17
|
+
--muted: #6c6c65;
|
|
18
|
+
--faint: #9a9a92;
|
|
19
|
+
--accent: #141413;
|
|
20
|
+
--accent-text: #ffffff;
|
|
21
|
+
--mark: #ffe27a;
|
|
22
|
+
--changed: #a35f00;
|
|
23
|
+
--broken: #c0392b;
|
|
24
|
+
--fine: #2f7a4f;
|
|
25
|
+
--font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
26
|
+
--code: "Commit Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
|
|
27
|
+
--panel-w: 420px;
|
|
28
28
|
color-scheme: light dark;
|
|
29
29
|
}
|
|
30
30
|
@media (prefers-color-scheme: dark) {
|
|
31
31
|
:root {
|
|
32
|
-
--
|
|
33
|
-
--ink: #
|
|
34
|
-
--
|
|
35
|
-
--
|
|
36
|
-
--changed: #d9a54a; --broken: #ec8170; --fine: #73bd95;
|
|
32
|
+
--bg: #161615; --chrome: #1b1b1a; --surface: #252523; --line: #2f2f2c; --line-strong: #44443f;
|
|
33
|
+
--ink: #f2f2ee; --text: #dadad4; --muted: #a0a098; --faint: #75756e;
|
|
34
|
+
--accent: #f2f2ee; --accent-text: #141413; --mark: #6b5a12;
|
|
35
|
+
--changed: #e0a548; --broken: #ef8574; --fine: #7cc49c;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
* { box-sizing: border-box; }
|
|
41
40
|
html, body { height: 100%; }
|
|
42
|
-
body { margin: 0; background: var(--
|
|
41
|
+
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
|
|
43
42
|
button { font: inherit; color: inherit; }
|
|
44
|
-
:focus-visible { outline: 2px solid var(--
|
|
43
|
+
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
|
|
45
44
|
code { font-family: var(--code); font-size: 0.9em; }
|
|
46
45
|
[hidden] { display: none !important; }
|
|
47
46
|
|
|
48
|
-
.app { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); grid-template-rows:
|
|
47
|
+
.app { transition: grid-template-columns 160ms ease; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); grid-template-rows: 44px minmax(0, 1fr); height: 100vh; height: 100dvh; }
|
|
49
48
|
.app.panel-closed { grid-template-columns: minmax(0, 1fr) 0; }
|
|
50
49
|
.app.panel-closed .panel { display: none; }
|
|
51
50
|
|
|
52
|
-
/* ---------- top bar ---------- */
|
|
53
|
-
.bar { grid-column: 1 / -1; display: flex; align-items: center; gap:
|
|
54
|
-
.
|
|
55
|
-
.
|
|
56
|
-
.
|
|
57
|
-
.
|
|
58
|
-
.
|
|
59
|
-
.
|
|
51
|
+
/* ---------- top bar: where you are, whether it is true, the panel ---------- */
|
|
52
|
+
.bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 14px; background: var(--chrome); border-bottom: 1px solid var(--line); min-width: 0; }
|
|
53
|
+
.projects { position: relative; flex: none; }
|
|
54
|
+
.brand { display: flex; align-items: center; gap: 7px; flex: none; border: 0; background: none; padding: 5px 7px 5px 4px; border-radius: 6px; cursor: pointer; }
|
|
55
|
+
.brand:hover, .brand[aria-expanded="true"] { background: var(--surface); }
|
|
56
|
+
.proj-n { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mark); color: var(--ink); line-height: 18px; text-align: center; }
|
|
57
|
+
.proj-menu { width: 320px; padding: 6px; }
|
|
58
|
+
.proj-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 0 10px; align-items: baseline; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text); text-decoration: none; }
|
|
59
|
+
.proj-item:hover, .proj-item:focus-visible { background: var(--surface); outline: none; }
|
|
60
|
+
.proj-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); align-self: center; }
|
|
61
|
+
.proj-item i.listening { background: var(--fine); } .proj-item i.working { background: var(--ink); } .proj-item i.idle { background: var(--changed); }
|
|
62
|
+
.proj-item b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
63
|
+
.proj-item small { grid-column: 2; font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
64
|
+
.proj-item small em { font-style: normal; color: var(--ink); background: color-mix(in oklab, var(--mark) 70%, transparent); border-radius: 3px; padding: 0 3px; }
|
|
65
|
+
.proj-item.self b::after { content: "this tab"; margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--faint); }
|
|
66
|
+
.proj-foot { padding: 8px 10px 4px; font-size: 12px; color: var(--faint); line-height: 1.45; }
|
|
67
|
+
.mark { width: 17px; height: 17px; }
|
|
68
|
+
.mark-line { fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
|
|
69
|
+
.mark-fill { fill: var(--ink); }
|
|
70
|
+
.wordmark { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
|
|
71
|
+
.slash { color: var(--line-strong); font-size: 16px; margin: 0 2px; }
|
|
60
72
|
.switcher { position: relative; min-width: 0; }
|
|
61
|
-
.
|
|
62
|
-
.
|
|
73
|
+
.crumb-home { border: 0; background: none; padding: 5px 7px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 13px; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
|
|
74
|
+
.crumb-home:hover { background: var(--surface); color: var(--ink); }
|
|
75
|
+
.crumb-sep { color: var(--faint); font-size: 13px; }
|
|
76
|
+
.page-btn { display: flex; align-items: center; gap: 5px; max-width: 100%; border: 0; background: none; padding: 5px 7px; border-radius: 6px; cursor: pointer; min-width: 0; font-size: 13px; }
|
|
77
|
+
.page-btn:hover, .page-btn[aria-expanded="true"] { background: var(--surface); }
|
|
63
78
|
.page-name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
64
|
-
.chev { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--
|
|
65
|
-
.path { font: 12px var(--code); color: var(--pencil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
79
|
+
.chev { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
|
|
66
80
|
.spacer { flex: 1; }
|
|
67
81
|
|
|
68
82
|
.menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 340px; max-height: min(70vh, 520px); display: flex; flex-direction: column;
|
|
69
|
-
background: var(--
|
|
70
|
-
.menu-head { padding: 10px 12px 6px; font-size: 12px; color: var(--
|
|
71
|
-
.menu-head input { width: 100%; font:
|
|
72
|
-
.menu-head input:focus { border-color: var(--
|
|
83
|
+
background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 44px -18px rgba(20, 20, 19, .28); overflow: hidden; }
|
|
84
|
+
.menu-head { padding: 10px 12px 6px; font-size: 12px; color: var(--muted); display: grid; gap: 8px; }
|
|
85
|
+
.menu-head input { width: 100%; font: 13px var(--font); color: var(--text); padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--chrome); outline: none; }
|
|
86
|
+
.menu-head input:focus { border-color: var(--ink); }
|
|
73
87
|
.menu-list { overflow-y: auto; padding: 2px 6px 6px; }
|
|
74
|
-
.menu-gap { height: 1px; background: var(--
|
|
75
|
-
.page-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius:
|
|
76
|
-
.page-item:hover, .page-item:focus-visible { background: var(--
|
|
77
|
-
.page-item.active .pi-title {
|
|
88
|
+
.menu-gap { height: 1px; background: var(--line); margin: 4px 8px; }
|
|
89
|
+
.page-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
|
|
90
|
+
.page-item:hover, .page-item:focus-visible { background: var(--surface); outline: none; }
|
|
91
|
+
.page-item.active .pi-title::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-left: 7px; vertical-align: middle; }
|
|
78
92
|
.pi-text { display: grid; min-width: 0; flex: 1; }
|
|
79
93
|
.pi-title { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
80
|
-
.pi-file { font:
|
|
81
|
-
.menu-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--
|
|
82
|
-
.text-btn { border: 0; background: none; padding: 0; color: var(--
|
|
83
|
-
.text-btn:hover { text-decoration
|
|
94
|
+
.pi-file { font: 12px var(--code); color: var(--faint); }
|
|
95
|
+
.menu-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
|
|
96
|
+
.text-btn { border: 0; background: none; padding: 0; color: var(--ink); cursor: pointer; font-size: 12px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
|
|
97
|
+
.text-btn:hover { text-decoration-color: var(--ink); }
|
|
84
98
|
|
|
85
|
-
.tri { display: inline-block; width:
|
|
99
|
+
.tri { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--fine); }
|
|
86
100
|
.tri.changed { background: var(--changed); }
|
|
87
101
|
.tri.broken { background: var(--broken); }
|
|
88
102
|
|
|
89
|
-
|
|
90
|
-
.check
|
|
103
|
+
/* whether the page still matches the code: a dot, words only when something needs you */
|
|
104
|
+
.check { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 5px 8px; border-radius: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: default; }
|
|
105
|
+
.check i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fine); }
|
|
106
|
+
.check[data-state="ok"] #checkText { color: var(--faint); }
|
|
91
107
|
.check[data-state="changed"] { color: var(--changed); cursor: pointer; }
|
|
92
108
|
.check[data-state="changed"] i { background: var(--changed); }
|
|
93
109
|
.check[data-state="broken"] { color: var(--broken); cursor: pointer; }
|
|
94
110
|
.check[data-state="broken"] i { background: var(--broken); }
|
|
95
|
-
.check[data-state="changed"]:hover, .check[data-state="broken"]:hover { background: var(--
|
|
96
|
-
|
|
97
|
-
.
|
|
98
|
-
.
|
|
99
|
-
.
|
|
100
|
-
.annotate .thumb { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 140ms ease; }
|
|
101
|
-
.annotate[aria-checked="true"] { color: var(--ink); }
|
|
102
|
-
.annotate[aria-checked="true"] .track { background: var(--route); }
|
|
103
|
-
.annotate[aria-checked="true"] .thumb { transform: translateX(12px); }
|
|
104
|
-
.annotate:disabled { opacity: .45; cursor: default; }
|
|
105
|
-
|
|
106
|
-
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--graphite); }
|
|
107
|
-
.icon-btn:hover { background: var(--wash); color: var(--ink); }
|
|
108
|
-
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
|
|
111
|
+
.check[data-state="changed"]:hover, .check[data-state="broken"]:hover { background: var(--surface); }
|
|
112
|
+
|
|
113
|
+
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); }
|
|
114
|
+
.icon-btn:hover { background: var(--surface); color: var(--ink); }
|
|
115
|
+
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
|
|
109
116
|
.icon-btn .panel-fill { fill: currentColor; stroke: none; opacity: 0; }
|
|
110
|
-
.icon-btn[aria-pressed="true"] .panel-fill { opacity: .
|
|
111
|
-
.unread { position: absolute; top:
|
|
112
|
-
.unread.count { top:
|
|
117
|
+
.icon-btn[aria-pressed="true"] .panel-fill { opacity: .22; }
|
|
118
|
+
.unread { position: absolute; top: 5px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--chrome); }
|
|
119
|
+
.unread.count { top: 1px; right: -1px; width: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-text); font: 600 10px/16px var(--font); text-align: center; }
|
|
113
120
|
|
|
114
121
|
/* ---------- stage ---------- */
|
|
115
|
-
.stage { position: relative; min-width: 0; min-height: 0; background: var(--
|
|
116
|
-
#frame { display: block; width: 100%; height:
|
|
122
|
+
.stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
|
|
123
|
+
#frame { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: var(--bg); }
|
|
124
|
+
/* plan review bar: what the agent proposes, and the decision */
|
|
125
|
+
.planbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 12px 8px 16px; background: var(--chrome); border-bottom: 1px solid var(--line); font-size: 13px; }
|
|
126
|
+
.pb-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
|
|
127
|
+
.pb-text b { font-weight: 600; color: var(--ink); border: 1px solid var(--ink); padding: 0 6px; border-radius: 6px; font-size: 12px; }
|
|
128
|
+
.pb-title { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
129
|
+
.pb-meta { color: var(--faint); white-space: nowrap; }
|
|
130
|
+
.pb-acts { display: flex; align-items: center; gap: 6px; }
|
|
131
|
+
.pb-btn { border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 500; height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer; }
|
|
132
|
+
.pb-btn:hover { background: var(--surface); }
|
|
133
|
+
.pb-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
|
|
134
|
+
.pb-btn.primary:hover { opacity: .88; }
|
|
135
|
+
.pb-wait { color: var(--muted); }
|
|
136
|
+
.pb-x { border: 0; background: none; color: var(--faint); font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
|
|
137
|
+
.pb-x:hover { background: var(--surface); color: var(--ink); }
|
|
117
138
|
.empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 520px; margin: 0 auto; padding: 32px; }
|
|
118
|
-
.empty-mark { width:
|
|
119
|
-
.empty h1 { font-size:
|
|
120
|
-
.empty p { font-size:
|
|
121
|
-
.primary { border: 0; background: var(--
|
|
122
|
-
.primary:hover {
|
|
123
|
-
|
|
124
|
-
/* ---------- conversation
|
|
125
|
-
.panel { display: flex; flex-direction: column; min-height: 0; background: var(--chrome); border-left: 1px solid var(--
|
|
126
|
-
.
|
|
127
|
-
.
|
|
128
|
-
.
|
|
139
|
+
.empty-mark { width: 26px; height: 26px; margin-bottom: 18px; }
|
|
140
|
+
.empty h1 { font-size: 22px; line-height: 1.25; letter-spacing: -0.012em; color: var(--ink); margin: 0 0 8px; font-weight: 600; }
|
|
141
|
+
.empty p { font-size: 14px; color: var(--muted); margin: 0 0 20px; line-height: 1.55; }
|
|
142
|
+
.primary { border: 0; background: var(--accent); color: var(--accent-text); font-weight: 500; font-size: 13px; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
|
|
143
|
+
.primary:hover { opacity: .88; }
|
|
144
|
+
|
|
145
|
+
/* ---------- panel: the conversation, or the inspector over it ---------- */
|
|
146
|
+
.panel { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--chrome); border-left: 1px solid var(--line); }
|
|
147
|
+
.convo { display: flex; flex-direction: column; min-height: 0; flex: 1; }
|
|
148
|
+
.panel.inspecting .convo { display: none; }
|
|
149
|
+
.panel-head { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; height: 40px; padding: 0 14px 0 8px; border-bottom: 1px solid var(--line); flex: none; }
|
|
150
|
+
.ptabs { display: flex; gap: 2px; }
|
|
151
|
+
.ptab { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
|
|
152
|
+
.ptab:hover { color: var(--ink); }
|
|
153
|
+
.ptab[aria-selected="true"] { color: var(--ink); font-weight: 500; }
|
|
154
|
+
.ptab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 1px; }
|
|
155
|
+
.ptab-n { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface); color: var(--ink); line-height: 18px; text-align: center; }
|
|
156
|
+
.panel.show-changes .msgs, .panel.show-changes .notice { display: none !important; }
|
|
157
|
+
.panel:not(.show-changes) .changes { display: none !important; }
|
|
158
|
+
.agent-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); min-width: 0; white-space: nowrap; }
|
|
159
|
+
.agent-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none; }
|
|
129
160
|
.agent-state[data-state="listening"] i { background: var(--fine); }
|
|
130
|
-
.agent-state[data-state="working"] i { background: var(--
|
|
161
|
+
.agent-state[data-state="working"] i { background: var(--ink); animation: pulse 1.4s ease-in-out infinite; }
|
|
131
162
|
.agent-state[data-state="idle"] i, .agent-state[data-state="stale"] i { background: var(--changed); }
|
|
132
163
|
.agent-state[data-state="closed"] i { background: var(--broken); }
|
|
133
|
-
@keyframes pulse { 50% { opacity: .
|
|
134
|
-
.elapsed { font: 12px var(--code); color: var(--
|
|
135
|
-
|
|
136
|
-
.msgs { flex: 1; overflow-y: auto; padding:
|
|
137
|
-
.intro
|
|
138
|
-
.intro
|
|
139
|
-
.intro
|
|
140
|
-
|
|
141
|
-
.
|
|
142
|
-
|
|
143
|
-
.
|
|
144
|
-
.who
|
|
145
|
-
.msgs > .who:first-child { margin-top: 2px; }
|
|
164
|
+
@keyframes pulse { 50% { opacity: .3; } }
|
|
165
|
+
.elapsed { font: 12px var(--code); color: var(--faint); }
|
|
166
|
+
|
|
167
|
+
.msgs { flex: 1; overflow-y: auto; padding: 16px 16px 20px; min-height: 0; }
|
|
168
|
+
.intro { color: var(--muted); font-size: 13px; line-height: 1.55; padding-top: 4px; }
|
|
169
|
+
.intro p { margin: 0 0 8px; }
|
|
170
|
+
.intro b { color: var(--text); font-weight: 500; }
|
|
171
|
+
|
|
172
|
+
.who { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; font-size: 12px; color: var(--faint); }
|
|
173
|
+
.who b { font-weight: 500; color: var(--muted); }
|
|
174
|
+
.msgs > .who:first-child { margin-top: 0; }
|
|
175
|
+
.who.you { justify-content: flex-end; }
|
|
146
176
|
.msg { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
|
|
147
|
-
.msg.user {
|
|
148
|
-
.msg.user .from-page { font-size:
|
|
149
|
-
.msg.user .waiting { font-size:
|
|
177
|
+
.msg.user { margin-left: 28px; background: var(--surface); border-radius: 12px; padding: 9px 12px; }
|
|
178
|
+
.msg.user .from-page { font-size: 12px; color: var(--changed); margin-top: 4px; }
|
|
179
|
+
.msg.user .waiting { font-size: 12px; color: var(--faint); margin-top: 4px; }
|
|
150
180
|
.msg p { margin: 0 0 8px; } .msg p:last-child { margin-bottom: 0; }
|
|
151
|
-
.msg ul, .msg ol { margin: 4px 0 8px; padding-left: 18px; } .msg li { margin:
|
|
152
|
-
.msg
|
|
153
|
-
.msg
|
|
154
|
-
.msg pre { background: var(--
|
|
155
|
-
.msg
|
|
181
|
+
.msg ul, .msg ol { margin: 4px 0 8px; padding-left: 18px; } .msg li { margin: 3px 0; }
|
|
182
|
+
.msg li::marker { color: var(--faint); }
|
|
183
|
+
.msg h4 { font-size: 14px; font-weight: 600; margin: 12px 0 4px; color: var(--ink); }
|
|
184
|
+
.msg :not(pre) > code { background: var(--surface); padding: 1px 4px; border-radius: 4px; color: var(--ink); font-size: 12.5px; }
|
|
185
|
+
.msg.user :not(pre) > code { background: var(--bg); }
|
|
186
|
+
.msg pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-x: auto; font-size: 12px; }
|
|
187
|
+
.msg a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
|
|
188
|
+
.msg a:hover { text-decoration-color: var(--ink); }
|
|
156
189
|
.msg strong { color: var(--ink); font-weight: 600; }
|
|
190
|
+
/* a box named in an answer: hover or click lights it on the map */
|
|
191
|
+
.msg a.ref { text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 2px solid color-mix(in oklab, var(--mark) 85%, var(--ink) 15%); border-radius: 0; padding: 0 1px; transition: background-color 120ms ease; }
|
|
192
|
+
.msg a.ref:hover, .msg li.lit a.ref { background: var(--mark); border-radius: 3px; }
|
|
193
|
+
.msg li.has-ref { cursor: default; border-radius: 6px; }
|
|
157
194
|
.msg-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
|
|
158
|
-
.msg-notes + .msg-text { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--
|
|
195
|
+
.msg-notes + .msg-text { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
|
|
159
196
|
.mn { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 8px; }
|
|
160
|
-
.mn-num { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; background: var(--
|
|
161
|
-
.mn-what { font-size: 12px; color: var(--
|
|
162
|
-
.mn-what b { color: var(--
|
|
163
|
-
.answer-q { display: block; font-size: 12px; color: var(--
|
|
197
|
+
.mn-num { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 10.5px/18px var(--font); text-align: center; margin-top: 1px; }
|
|
198
|
+
.mn-what { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
199
|
+
.mn-what b { color: var(--muted); font-weight: 500; }
|
|
200
|
+
.answer-q { display: block; font-size: 12px; color: var(--faint); margin-bottom: 2px; }
|
|
164
201
|
|
|
165
|
-
.working { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--
|
|
166
|
-
.working i { width: 7px; height: 7px; border-radius: 50%; background: var(--
|
|
202
|
+
.working { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
|
|
203
|
+
.working i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 1.4s ease-in-out infinite; }
|
|
167
204
|
|
|
168
|
-
.notice { margin: 0 12px
|
|
169
|
-
.notice b {
|
|
205
|
+
.notice { margin: 0 12px 8px; padding: 9px 10px 8px 12px; border-radius: 10px; background: var(--surface); font-size: 12px; color: var(--muted); line-height: 1.45; }
|
|
206
|
+
.notice b { color: var(--ink); font-weight: 500; }
|
|
170
207
|
.notice .after { margin: 8px 0 0; }
|
|
171
|
-
.notice .cmd { display: flex; align-items: center; gap: 6px; margin-top:
|
|
208
|
+
.notice .cmd { display: flex; align-items: center; gap: 6px; margin-top: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 3px 3px 3px 8px; }
|
|
172
209
|
.notice .cmd code { flex: 1; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
173
|
-
.notice .copy { border: 0; background: none; color: var(--
|
|
174
|
-
.notice .copy:hover { background: var(--
|
|
210
|
+
.notice .copy { border: 0; background: none; color: var(--ink); font-size: 12px; font-weight: 500; padding: 3px 7px; border-radius: 6px; cursor: pointer; }
|
|
211
|
+
.notice .copy:hover { background: var(--surface); }
|
|
175
212
|
|
|
176
|
-
.composer { padding: 0 12px 12px; }
|
|
213
|
+
.composer { padding: 0 12px 12px; flex: none; }
|
|
177
214
|
.notes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; max-height: 34vh; overflow-y: auto; }
|
|
178
|
-
.note { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 1px 8px; align-items: start; padding: 7px 6px 7px 8px; background: var(--
|
|
179
|
-
.note:hover { border-color: var(--
|
|
215
|
+
.note { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 1px 8px; align-items: start; padding: 7px 6px 7px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
|
|
216
|
+
.note:hover { border-color: var(--line-strong); }
|
|
180
217
|
.note .mn-num { grid-row: 1 / span 2; }
|
|
181
218
|
.note-text { font-size: 13px; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
|
|
182
|
-
.note-x { grid-row: 1 / span 2; grid-column: 3; border: 0; background: none; color: var(--
|
|
183
|
-
.note-x:hover { background: var(--
|
|
184
|
-
|
|
185
|
-
.box { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 10px; padding: 9px 10px 8px 12px; }
|
|
186
|
-
.box:focus-within { border-color: var(--route); }
|
|
187
|
-
#input { display: block; width: 100%; resize: none; border: 0; outline: none; background: none; font: 14px/1.5 var(--font); color: var(--text); max-height: 180px; overflow-y: auto; padding: 0; }
|
|
188
|
-
#input::placeholder { color: var(--pencil); }
|
|
189
|
-
.box-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
|
|
190
|
-
.box-hint { font-size: 11.5px; color: var(--pencil); }
|
|
191
|
-
.send { border: 0; background: var(--action); color: #fff; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
|
|
192
|
-
.send:hover { background: var(--action-hover); }
|
|
193
|
-
.send:disabled { background: var(--wash); color: var(--pencil); cursor: default; }
|
|
219
|
+
.note-x { grid-row: 1 / span 2; grid-column: 3; border: 0; background: none; color: var(--faint); cursor: pointer; width: 22px; height: 22px; border-radius: 6px; font-size: 16px; line-height: 1; }
|
|
220
|
+
.note-x:hover { background: var(--surface); color: var(--ink); }
|
|
194
221
|
|
|
195
|
-
|
|
196
|
-
.
|
|
222
|
+
.box { display: flex; align-items: flex-end; gap: 8px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 8px 8px 12px; }
|
|
223
|
+
.box:focus-within { border-color: var(--ink); }
|
|
224
|
+
#input { flex: 1; display: block; width: 100%; resize: none; border: 0; outline: none; background: none; font: 14px/1.5 var(--font); color: var(--text); max-height: 180px; overflow-y: auto; padding: 3px 0; }
|
|
225
|
+
#input::placeholder { color: var(--faint); }
|
|
226
|
+
.send { flex: none; border: 0; background: var(--accent); color: var(--accent-text); font-size: 13px; font-weight: 500; height: 28px; min-width: 28px; padding: 0 10px; border-radius: 8px; cursor: pointer; }
|
|
227
|
+
.send:hover { opacity: .88; }
|
|
228
|
+
.send:disabled { background: var(--surface); color: var(--faint); cursor: default; }
|
|
197
229
|
|
|
198
|
-
/*
|
|
199
|
-
|
|
200
|
-
.app, .app.panel-closed { grid-template-columns: minmax(0, 1fr); }
|
|
201
|
-
.path, .slash, .wordmark, #checkText { display: none; }
|
|
202
|
-
.bar { gap: 4px; padding: 0 6px 0 12px; }
|
|
203
|
-
.panel { position: fixed; left: 0; right: 0; bottom: 0; height: min(70vh, 560px); z-index: 30; border-left: 0; border-top: 1px solid var(--rule-strong); border-radius: 14px 14px 0 0; box-shadow: 0 -18px 40px -24px rgba(23, 32, 43, .45); }
|
|
204
|
-
.menu { width: min(340px, calc(100vw - 24px)); }
|
|
205
|
-
}
|
|
206
|
-
@media (prefers-reduced-motion: reduce) {
|
|
207
|
-
* { animation: none !important; transition: none !important; }
|
|
208
|
-
}
|
|
230
|
+
/* the server is gone */
|
|
231
|
+
.app[data-conn="closed"] .composer, .app[data-conn="closed"] .insp-comment { opacity: .5; pointer-events: none; }
|
|
209
232
|
.app[data-conn="closed"] .empty .primary { display: none; }
|
|
210
233
|
|
|
234
|
+
/* ---------- inspector: what a box is ---------- */
|
|
235
|
+
.inspector { display: none; flex-direction: column; min-height: 0; flex: 1; }
|
|
236
|
+
.panel.inspecting .inspector { display: flex; }
|
|
237
|
+
.insp-head { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; }
|
|
238
|
+
.insp-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 8px 4px 4px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--muted); }
|
|
239
|
+
.insp-back:hover { background: var(--surface); color: var(--ink); }
|
|
240
|
+
.insp-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
|
|
241
|
+
.insp-body { flex: 1; overflow-y: auto; padding: 16px 16px 24px; min-height: 0; font-size: 14px; }
|
|
242
|
+
.insp-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
|
|
243
|
+
.insp-name h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
|
|
244
|
+
.insp-name code { font-size: 12px; color: var(--muted); }
|
|
245
|
+
.insp-plan { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 6px; background: var(--surface); color: var(--ink); }
|
|
246
|
+
.insp-comment { margin: 14px 0 0; display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); padding: 6px 6px 6px 10px; }
|
|
247
|
+
.insp-comment:focus-within { border-color: var(--ink); }
|
|
248
|
+
.insp-comment textarea { flex: 1; resize: none; border: 0; outline: none; background: none; font: 13.5px/1.45 var(--font); color: var(--text); padding: 3px 0; max-height: 140px; }
|
|
249
|
+
.insp-comment textarea::placeholder { color: var(--faint); }
|
|
250
|
+
.insp-comment button { flex: none; border: 0; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 500; height: 26px; padding: 0 10px; border-radius: 7px; cursor: pointer; }
|
|
251
|
+
.insp-comment button:disabled { background: var(--surface); color: var(--faint); cursor: default; }
|
|
252
|
+
.insp-state { margin-top: 12px; padding: 8px 10px; border-radius: 8px; font-size: 13px; background: var(--surface); color: var(--changed); }
|
|
253
|
+
.insp-state.broken { color: var(--broken); }
|
|
254
|
+
.insp-detail { margin-top: 14px; color: var(--text); line-height: 1.55; }
|
|
255
|
+
.insp-detail p { margin: 0 0 8px; }
|
|
256
|
+
.insp-detail ul { margin: 4px 0 8px; padding-left: 18px; }
|
|
257
|
+
.insp-detail li { margin: 3px 0; }
|
|
258
|
+
.insp-detail li::marker { color: var(--faint); }
|
|
259
|
+
.insp-why { margin-top: 10px; padding-left: 10px; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: 13px; line-height: 1.55; }
|
|
260
|
+
.insp-rel { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 6px 8px; margin-top: 16px; font-size: 13px; }
|
|
261
|
+
.insp-rel > span { color: var(--faint); font-size: 12px; padding-top: 3px; }
|
|
262
|
+
.insp-rel > div { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
263
|
+
.chip { display: inline-flex; align-items: baseline; gap: 5px; border: 1px solid var(--line); background: var(--bg); padding: 2px 8px; border-radius: 6px; font-size: 13px; color: var(--ink); cursor: pointer; }
|
|
264
|
+
.chip:hover { border-color: var(--line-strong); background: var(--surface); }
|
|
265
|
+
.chip i { font-style: normal; font: 11px var(--code); color: var(--faint); }
|
|
266
|
+
.insp-code { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
|
|
267
|
+
.insp-code summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; color: var(--ink); }
|
|
268
|
+
.insp-code summary::-webkit-details-marker { display: none; }
|
|
269
|
+
.insp-code summary svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 120ms ease; }
|
|
270
|
+
.insp-code[open] summary svg { transform: rotate(90deg); }
|
|
271
|
+
.insp-code summary code { font-size: 12px; font-weight: 400; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
272
|
+
.insp-code summary .open-ed { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; flex: none; }
|
|
273
|
+
.insp-code summary .open-ed:hover { color: var(--ink); }
|
|
274
|
+
.code-box { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
|
|
275
|
+
.code-meta { font-size: 12px; color: var(--faint); padding: 6px 10px; border-bottom: 1px solid var(--line); }
|
|
276
|
+
.code-box pre { margin: 0; padding: 6px 0; font: 12px/1.6 var(--code); color: var(--text); overflow: auto; max-height: 340px; }
|
|
277
|
+
.code-box pre span { display: block; padding: 0 10px; white-space: pre; width: max-content; min-width: 100%; }
|
|
278
|
+
.code-box pre span i { display: inline-block; width: 3.2em; color: var(--faint); font-style: normal; user-select: none; }
|
|
279
|
+
.code-box pre span.hit { background: color-mix(in oklab, var(--mark) 60%, transparent); }
|
|
280
|
+
.code-box pre span.add { background: color-mix(in oklab, var(--fine) 14%, transparent); }
|
|
281
|
+
.code-box pre span.del { background: color-mix(in oklab, var(--broken) 12%, transparent); }
|
|
282
|
+
.code-box pre span.hunk { color: var(--faint); }
|
|
283
|
+
.code-note { padding: 10px; font-size: 13px; color: var(--faint); }
|
|
284
|
+
.code-note.broken { color: var(--broken); }
|
|
285
|
+
.insp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
|
|
286
|
+
.insp-actions button { border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
|
|
287
|
+
.insp-actions button:hover { background: var(--surface); }
|
|
288
|
+
|
|
211
289
|
/* ---------- more menu ---------- */
|
|
212
290
|
.more { position: relative; }
|
|
213
291
|
.icon-btn .dot { fill: currentColor; stroke: none; }
|
|
214
292
|
.more-menu { left: auto; right: 0; width: 300px; padding: 6px; }
|
|
215
293
|
.more-file { padding: 6px 8px 10px; }
|
|
216
|
-
.more-label { display: block; font-size: 12px; color: var(--
|
|
294
|
+
.more-label { display: block; font-size: 12px; color: var(--faint); margin-bottom: 4px; }
|
|
217
295
|
.more-path { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
218
296
|
.more-path code { flex: 1; min-width: 0; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
|
|
219
|
-
.more-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 8px; border-radius:
|
|
220
|
-
.more-item:hover:not(:disabled), .more-item:focus-visible { background: var(--
|
|
221
|
-
.more-item svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--
|
|
297
|
+
.more-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 13px; }
|
|
298
|
+
.more-item:hover:not(:disabled), .more-item:focus-visible { background: var(--surface); outline: none; }
|
|
299
|
+
.more-item svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
222
300
|
.more-item span { display: grid; gap: 1px; font-weight: 500; }
|
|
223
|
-
.more-item small { font-size: 12px; font-weight: 400; color: var(--
|
|
301
|
+
.more-item small { font-size: 12px; font-weight: 400; color: var(--faint); }
|
|
224
302
|
.more-item:disabled { opacity: .45; cursor: default; }
|
|
303
|
+
|
|
304
|
+
/* ---------- "about this box" and choices in the conversation ---------- */
|
|
305
|
+
.about { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 6px 6px 10px; background: var(--surface); border-radius: 8px; font-size: 12px; color: var(--text); }
|
|
306
|
+
.about span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
307
|
+
.about code { font-size: 11.5px; color: var(--muted); }
|
|
308
|
+
.about button { border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 0 6px; border-radius: 6px; }
|
|
309
|
+
.ask { margin: 10px 0 4px; display: grid; gap: 6px; }
|
|
310
|
+
.ask-q { font-weight: 600; color: var(--ink); }
|
|
311
|
+
.ask-opt { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 10px; padding: 9px 12px; cursor: pointer; font: inherit; color: var(--text); }
|
|
312
|
+
.ask-opt b { color: var(--ink); font-weight: 600; }
|
|
313
|
+
.ask-opt span { font-size: 13px; color: var(--muted); }
|
|
314
|
+
.ask-opt:hover:not(:disabled) { border-color: var(--ink); }
|
|
315
|
+
.ask-opt.chosen { border-color: var(--ink); background: var(--surface); }
|
|
316
|
+
.ask-opt:disabled:not(.chosen) { opacity: .5; cursor: default; }
|
|
317
|
+
|
|
318
|
+
/* ---------- small screens: the panel becomes a bottom sheet ---------- */
|
|
319
|
+
@media (max-width: 860px) {
|
|
320
|
+
.app, .app.panel-closed { grid-template-columns: minmax(0, 1fr); }
|
|
321
|
+
.slash, .wordmark, #checkText, .crumb-home, .crumb-sep { display: none !important; }
|
|
322
|
+
.bar { gap: 2px; padding: 0 6px 0 12px; }
|
|
323
|
+
.panel { position: fixed; left: 0; right: 0; bottom: 0; height: min(70vh, 560px); z-index: 30; border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 14px 14px 0 0; box-shadow: 0 -18px 40px -24px rgba(20, 20, 19, .4); }
|
|
324
|
+
.menu { width: min(340px, calc(100vw - 24px)); }
|
|
325
|
+
}
|
|
326
|
+
@media (prefers-reduced-motion: reduce) {
|
|
327
|
+
* { animation: none !important; transition: none !important; }
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* ---------- changes: what the agent (or anyone) changed, by box ---------- */
|
|
331
|
+
.changes { flex: 1; overflow-y: auto; min-height: 0; padding: 12px 12px 20px; font-size: 13px; }
|
|
332
|
+
.ch-base { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 4px 12px; }
|
|
333
|
+
.ch-base select { appearance: none; -webkit-appearance: none; min-width: 0; max-width: 70%; font: 500 13px var(--font); color: var(--ink); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' fill='none' stroke='%236c6c65' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 2px center / 14px; border: 0; border-radius: 6px; padding: 3px 20px 3px 4px; cursor: pointer; }
|
|
334
|
+
.ch-base select:hover { background-color: var(--surface); }
|
|
335
|
+
.ch-base .ch-sum { margin: 0; white-space: nowrap; }
|
|
336
|
+
.ch-sum { margin: 0 4px 14px; color: var(--muted); font-size: 12px; }
|
|
337
|
+
.delta { font: 12px var(--code); white-space: nowrap; }
|
|
338
|
+
.delta .a { color: var(--fine); } .delta .d { color: var(--broken); }
|
|
339
|
+
.ch-h { margin: 16px 4px 6px; font-size: 12px; font-weight: 500; color: var(--faint); }
|
|
340
|
+
.ch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; cursor: pointer; color: var(--text); }
|
|
341
|
+
.ch-row:hover, .ch-row.on { background: var(--surface); }
|
|
342
|
+
.ch-row b { font-weight: 500; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
343
|
+
.ch-row small { grid-column: 1 / -1; font: 12px var(--code); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
344
|
+
.ch-folder { margin: 2px 0 6px; }
|
|
345
|
+
.ch-folder summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 8px; cursor: pointer; list-style: none; }
|
|
346
|
+
.ch-folder summary::-webkit-details-marker { display: none; }
|
|
347
|
+
.ch-folder summary:hover { background: var(--surface); }
|
|
348
|
+
.ch-folder summary b { font: 500 12.5px var(--code); color: var(--ink); }
|
|
349
|
+
.ch-folder summary span { font-size: 12px; color: var(--faint); }
|
|
350
|
+
.ch-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 4px 8px 4px 20px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; border-radius: 6px; font: 12px var(--code); color: var(--muted); }
|
|
351
|
+
.ch-file:hover { background: var(--surface); color: var(--ink); }
|
|
352
|
+
.ch-file span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
353
|
+
.ch-diff { margin: 4px 0 8px 12px; }
|
|
354
|
+
.ch-empty { margin: 8px 4px; color: var(--muted); line-height: 1.5; }
|
|
355
|
+
.ch-act { margin: 10px 4px 0; }
|
|
356
|
+
.ch-act button { border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
|
|
357
|
+
.ch-act button:hover { background: var(--surface); }
|
|
358
|
+
.insp-change { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 10px; background: var(--bg); }
|
|
359
|
+
.insp-change > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
|
|
360
|
+
.insp-change details { margin-top: 4px; }
|
|
361
|
+
.insp-change summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; font: 12px var(--code); color: var(--ink); padding: 3px 0; }
|
|
362
|
+
.insp-change summary::-webkit-details-marker { display: none; }
|
|
363
|
+
.insp-change .shared { font: 11.5px var(--font); color: var(--faint); margin-left: 6px; }
|
|
364
|
+
|
|
365
|
+
/* boxes are lit: a visible way back */
|
|
366
|
+
.lit-pill { position: absolute; z-index: 12; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: 0 6px 20px -10px rgba(20, 20, 19, .35); font-size: 12px; color: var(--muted); }
|
|
367
|
+
.lit-pill button { border: 0; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
|
|
368
|
+
/* code and diffs get room while they are open */
|
|
369
|
+
.msg .show-map { font-size: 12px; }
|
|
370
|
+
.msg .show-map a { color: var(--muted); }
|
|
371
|
+
.ch-plan { margin: 0 0 6px; padding: 2px 0 8px; border-bottom: 1px solid var(--line); }
|
|
372
|
+
.ch-plan .ch-h { margin-top: 4px; color: var(--ink); }
|
|
373
|
+
.ch-missing { list-style: none; margin: 0 4px 6px; padding: 0; display: grid; gap: 6px; }
|
|
374
|
+
.ch-missing li { padding: 7px 10px; border-radius: 8px; background: color-mix(in oklab, var(--changed) 10%, transparent); color: var(--text); font-size: 13px; }
|
|
375
|
+
.ch-missing b { font-weight: 500; color: var(--ink); }
|
|
376
|
+
.ch-missing small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
|
|
377
|
+
.off-plan { margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--changed); }
|
|
378
|
+
.ch-file em { font: 11.5px var(--font); font-style: normal; color: var(--changed); margin-left: 8px; }
|
|
379
|
+
.insp-planned { margin-top: 12px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--text); }
|
|
380
|
+
.insp-planned b { font-weight: 600; color: var(--ink); }
|
|
381
|
+
.insp-planned span { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
|
|
382
|
+
.ch-want { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
|
|
383
|
+
.insp-back.news::after { content: "New message"; margin-left: 8px; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 8px; background: var(--mark); color: var(--ink); }
|
|
384
|
+
.ch-steps { margin: 4px 4px 10px; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; }
|
|
385
|
+
.ch-steps li::marker { color: var(--faint); }
|
|
386
|
+
.st-text { display: block; color: var(--text); }
|
|
387
|
+
.st-rep { display: inline-block; margin-top: 3px; font-size: 12px; color: var(--faint); }
|
|
388
|
+
.st-rep.st-done { color: var(--fine); }
|
|
389
|
+
.st-rep.st-partly, .st-rep.st-not_built, .st-rep.st-dropped { color: var(--changed); }
|
|
390
|
+
.st-fact { display: block; margin-top: 2px; font-size: 12px; color: var(--changed); }
|
|
391
|
+
.ch-conflicts { margin: 4px 4px 12px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--broken); background: color-mix(in oklab, var(--broken) 8%, var(--bg)); font-size: 13px; color: var(--text); }
|
|
392
|
+
.ch-conflicts b { display: block; color: var(--broken); font-weight: 600; margin-bottom: 4px; }
|
|
393
|
+
.ch-conflicts p { margin: 4px 0 0; }
|
|
394
|
+
.ch-steps li.st-conflict .st-rep { color: var(--broken); font-weight: 500; }
|
|
395
|
+
.st-text code { font-size: 12px; background: var(--surface); padding: 0 4px; border-radius: 4px; }
|
|
396
|
+
.insp-drift { margin-top: 10px; }
|
|
397
|
+
.insp-drift summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink); }
|
|
398
|
+
.insp-drift .code-box { margin-top: 6px; }
|
|
399
|
+
/* diffs wrap: the change matters more than the column */
|
|
400
|
+
.code-box pre span.hunk { color: var(--faint); background: var(--surface); }
|
|
401
|
+
.code-box pre span.hunk i { visibility: hidden; }
|
|
402
|
+
.send.quiet { background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); }
|
|
403
|
+
.code-box pre span em { display: inline-block; width: 1.4em; font-style: normal; color: var(--faint); user-select: none; }
|
|
404
|
+
.code-box pre span.add em { color: var(--fine); } .code-box pre span.del em { color: var(--broken); }
|