truemap-cli 0.1.0 → 0.2.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.
@@ -1,158 +1,209 @@
1
+ @font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/__truemap/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
2
+ @font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/__truemap/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
3
+ @font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/__truemap/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
4
+ @font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/__truemap/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
5
+
1
6
  :root {
2
- --paper: #f6f7f5;
7
+ --paper: #f6f7f4;
8
+ --chrome: #fbfbfa;
3
9
  --sheet: #ffffff;
4
- --wash: #eef0ed;
5
- --ink: #1d2733;
6
- --graphite: #5a6472;
7
- --pencil: #8a929c;
8
- --rule: #dfe2dd;
9
- --rule-strong: #c4c9c3;
10
- --route: #2c5a8c;
11
- --route-wash: #e6edf5;
12
- --changed: #9c6c12;
13
- --broken: #a23b2c;
14
- --fine: #2f6b4f;
15
- --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
16
- --code: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
17
- --chat-w: 360px;
10
+ --wash: #eef0ec;
11
+ --ink: #17202b;
12
+ --text: #2a3441;
13
+ --graphite: #5b6573;
14
+ --pencil: #8a939e;
15
+ --rule: #e2e5e0;
16
+ --rule-strong: #c2c8c1;
17
+ --route: #2453c4;
18
+ --route-ink: #1b3f96;
19
+ --route-wash: #e9eefb;
20
+ --action: #2453c4;
21
+ --action-hover: #1b3f96;
22
+ --changed: #a2690a;
23
+ --broken: #b03a2e;
24
+ --fine: #2c7550;
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;
18
28
  color-scheme: light dark;
19
29
  }
20
30
  @media (prefers-color-scheme: dark) {
21
31
  :root {
22
- --paper: #14181d; --sheet: #1a1f25; --wash: #20262d; --ink: #e3e6e9; --graphite: #a2aab4; --pencil: #77808b;
23
- --rule: #2a3138; --rule-strong: #3d464f; --route: #8db0dc; --route-wash: #1f2d3d;
24
- --changed: #d4a24a; --broken: #e07a66; --fine: #74b894;
32
+ --paper: #121519; --chrome: #16191e; --sheet: #191d23; --wash: #1f242b;
33
+ --ink: #edf0f3; --text: #d0d6dd; --graphite: #9ba4af; --pencil: #707a86;
34
+ --rule: #262c34; --rule-strong: #3d4651;
35
+ --route: #7ea3ff; --route-ink: #a9c0ff; --route-wash: #1b2440; --action: #3a66d6; --action-hover: #2f57bd;
36
+ --changed: #d9a54a; --broken: #ec8170; --fine: #73bd95;
25
37
  }
26
38
  }
27
39
 
28
40
  * { box-sizing: border-box; }
29
41
  html, body { height: 100%; }
30
- body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
42
+ body { margin: 0; background: var(--paper); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
31
43
  button { font: inherit; color: inherit; }
32
- [hidden] { display: none !important; }
33
44
  :focus-visible { outline: 2px solid var(--route); outline-offset: 2px; }
34
- svg { display: block; }
45
+ code { font-family: var(--code); font-size: 0.9em; }
46
+ [hidden] { display: none !important; }
35
47
 
36
- .app { height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) var(--chat-w); }
37
- .app.chat-closed { grid-template-columns: minmax(0, 1fr) 0; }
38
- .app.chat-closed .chat { display: none; }
48
+ .app { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); grid-template-rows: 48px minmax(0, 1fr); height: 100vh; height: 100dvh; }
49
+ .app.panel-closed { grid-template-columns: minmax(0, 1fr) 0; }
50
+ .app.panel-closed .panel { display: none; }
39
51
 
40
52
  /* ---------- top bar ---------- */
41
- .stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
42
- .bar { height: 44px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 8px; border-bottom: 1px solid var(--rule); background: var(--paper); }
53
+ .bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px; background: var(--chrome); border-bottom: 1px solid var(--rule); min-width: 0; }
54
+ .brand { display: flex; align-items: center; gap: 8px; flex: none; }
55
+ .mark { width: 19px; height: 19px; }
56
+ .mark-line { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
57
+ .mark-fill { fill: var(--route); }
58
+ .wordmark { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }
59
+ .slash { color: var(--rule-strong); font-size: 18px; font-weight: 300; margin: 0 -2px; }
43
60
  .switcher { position: relative; min-width: 0; }
44
- .page-btn { display: flex; align-items: center; gap: 8px; max-width: 46vw; border: 0; background: none; padding: 5px 8px; border-radius: 5px; cursor: pointer; }
61
+ .page-btn { display: flex; align-items: center; gap: 6px; max-width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; min-width: 0; }
45
62
  .page-btn:hover, .page-btn[aria-expanded="true"] { background: var(--wash); }
46
- .mark { width: 18px; height: 18px; flex: none; }
47
- .mark rect { fill: none; stroke: var(--ink); stroke-width: 2.5; }
48
- .mark path { fill: var(--route); }
49
- .page-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
63
+ .page-name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
50
64
  .chev { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--graphite); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
51
65
  .path { font: 12px var(--code); color: var(--pencil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
52
66
  .spacer { flex: 1; }
53
- .state-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
54
- .state-dot.changed { background: var(--changed); }
55
- .state-dot.broken { background: var(--broken); }
56
-
57
- .menu {
58
- position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: min(340px, 86vw); max-height: min(70vh, 520px);
59
- display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 6px;
60
- box-shadow: 0 10px 30px -12px rgba(16, 24, 34, .28);
61
- }
62
- .menu-head { padding: 10px 12px 6px; display: grid; gap: 8px; }
63
- .menu-head span { font-size: 12px; color: var(--pencil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
64
- .menu-head input { width: 100%; border: 1px solid var(--rule); border-radius: 4px; padding: 6px 8px; background: var(--paper); color: var(--ink); font: inherit; }
65
- .menu-list { overflow: auto; padding: 2px 6px 6px; }
66
- .page-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 7px 8px; border-radius: 4px; cursor: pointer; }
67
+
68
+ .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(--sheet); border: 1px solid var(--rule-strong); border-radius: 10px; box-shadow: 0 16px 40px -16px rgba(23, 32, 43, .3); overflow: hidden; }
70
+ .menu-head { padding: 10px 12px 6px; font-size: 12px; color: var(--pencil); display: grid; gap: 8px; }
71
+ .menu-head input { width: 100%; font: 13.5px var(--font); color: var(--text); padding: 7px 9px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); outline: none; }
72
+ .menu-head input:focus { border-color: var(--route); }
73
+ .menu-list { overflow-y: auto; padding: 2px 6px 6px; }
74
+ .menu-gap { height: 1px; background: var(--rule); margin: 4px 8px; }
75
+ .page-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
67
76
  .page-item:hover, .page-item:focus-visible { background: var(--wash); outline: none; }
68
77
  .page-item.active .pi-title { color: var(--route); }
69
- .pi-text { flex: 1; min-width: 0; }
70
- .pi-title { display: block; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
71
- .pi-file { display: block; font: 11.5px var(--code); color: var(--pencil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
72
- .menu-gap { height: 1px; background: var(--rule); margin: 4px 8px; }
73
- .menu-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--pencil); }
78
+ .pi-text { display: grid; min-width: 0; flex: 1; }
79
+ .pi-title { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
80
+ .pi-file { font: 11.5px var(--code); color: var(--pencil); }
81
+ .menu-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--pencil); }
74
82
  .text-btn { border: 0; background: none; padding: 0; color: var(--route); cursor: pointer; font-size: 12.5px; }
75
83
  .text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
76
84
 
77
- .check-chip { flex: none; border: 0; background: none; padding: 4px 8px; border-radius: 4px; font-size: 12.5px; color: var(--graphite); display: inline-flex; align-items: center; gap: 6px; cursor: default; }
78
- .check-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fine); }
79
- .check-chip[data-state="changed"] { color: var(--changed); cursor: pointer; }
80
- .check-chip[data-state="changed"]::before { background: var(--changed); }
81
- .check-chip[data-state="broken"] { color: var(--broken); cursor: pointer; }
82
- .check-chip[data-state="broken"]::before { background: var(--broken); }
83
- .check-chip:not([data-state="ok"]):hover { background: var(--wash); }
84
- .icon-btn { position: relative; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: 5px; cursor: pointer; }
85
- .icon-btn:hover { background: var(--wash); }
86
- .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
87
- .icon-btn.quiet svg { stroke: var(--graphite); }
88
- .unread { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 2px var(--paper); }
89
-
90
- .frame-wrap { position: relative; flex: 1; min-height: 0; }
91
- #frame { width: 100%; height: 100%; border: 0; display: block; background: var(--paper); }
92
- .empty { position: absolute; inset: 0; padding: 18vh 32px 32px; max-width: 560px; margin: 0 auto; }
93
- .empty h1 { font-size: 22px; letter-spacing: -.01em; margin: 0 0 8px; font-weight: 640; }
94
- .empty p { margin: 0 0 20px; color: var(--graphite); font-size: 15px; line-height: 1.6; }
95
- .primary { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 4px; font-weight: 600; cursor: pointer; }
96
-
97
- /* ---------- chat ---------- */
98
- .chat { border-left: 1px solid var(--rule); background: var(--sheet); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
99
- .chat-head { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; border-bottom: 1px solid var(--rule); }
100
- .agent-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--graphite); }
101
- .agent-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--pencil); }
102
- .agent-pill[data-state="listening"] i { background: var(--fine); }
103
- .agent-pill[data-state="working"] i { background: var(--changed); animation: blink 1.2s ease-in-out infinite; }
104
- @keyframes blink { 50% { opacity: .3; } }
105
-
106
- .msgs { flex: 1; overflow: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 14px; }
107
- .intro { color: var(--graphite); font-size: 13px; line-height: 1.55; margin: 0; }
108
- .msg { max-width: 94%; }
109
- .msg.user { align-self: flex-end; }
110
- .msg.agent { align-self: stretch; max-width: 100%; }
111
- .bubble { overflow-wrap: anywhere; }
112
- .msg.user .bubble { padding: 8px 11px; border-radius: 8px; background: var(--route-wash); white-space: pre-wrap; }
113
- .msg.agent .bubble { padding: 2px 0; font-size: 14px; line-height: 1.6; }
114
- .msg.answer .bubble { background: color-mix(in srgb, var(--fine) 12%, var(--sheet)); }
115
- .msg .meta { font-size: 11px; color: var(--pencil); margin-top: 3px; display: flex; gap: 8px; }
116
- .msg.user .meta { justify-content: flex-end; }
117
- .meta .pending { color: var(--changed); }
118
- .msg .ctx { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; justify-content: flex-end; }
119
- .msg .ctx span { font-size: 11.5px; padding: 1px 6px; border-radius: 3px; background: var(--wash); color: var(--graphite); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
120
- .answer-q { display: block; font-size: 12px; color: var(--graphite); margin-top: 2px; }
121
- .bubble p { margin: 0 0 8px; } .bubble p:last-child { margin-bottom: 0; }
122
- .bubble ul, .bubble ol { margin: 4px 0 8px; padding-left: 18px; }
123
- .bubble li { margin: 2px 0; }
124
- .bubble h4 { margin: 10px 0 4px; font-size: 14px; }
125
- .bubble code { font: 12.5px var(--code); background: var(--wash); padding: 0 4px; border-radius: 3px; }
126
- .bubble pre { margin: 6px 0; padding: 9px 11px; background: var(--wash); border-radius: 4px; overflow: auto; font: 12.5px/1.5 var(--code); }
127
- .bubble pre code { background: none; padding: 0; }
128
- .bubble a { color: var(--route); }
129
-
130
- .progress { margin: 0 14px 8px; font-size: 12.5px; color: var(--graphite); }
131
- .offline-hint { margin: 0 14px 8px; font-size: 12.5px; color: var(--graphite); line-height: 1.5; }
132
- .offline-hint code { font: 12px var(--code); }
133
-
134
- .composer { flex: none; padding: 8px 12px 12px; border-top: 1px solid var(--rule); }
135
- .chips { display: flex; flex-wrap: wrap; gap: 6px; }
136
- .chips:not(:empty) { margin-bottom: 8px; }
137
- .chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 4px 2px 8px; border-radius: 4px; background: var(--route-wash); color: var(--route); font-size: 12.5px; }
138
- .chip-label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
139
- .chip-src { font: 11.5px var(--code); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
140
- .chip button { border: 0; background: none; cursor: pointer; color: inherit; opacity: .6; padding: 0 4px; font-size: 15px; line-height: 1; }
141
- .chip button:hover { opacity: 1; }
142
- .quick { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; }
143
- .quick button { border: 0; background: none; padding: 0; cursor: pointer; font-size: 12.5px; color: var(--route); }
144
- .quick button:hover { text-decoration: underline; text-underline-offset: 3px; }
145
- .input-row { display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 5px 5px 5px 10px; background: var(--paper); }
146
- .input-row:focus-within { border-color: var(--route); background: var(--sheet); }
147
- #input { flex: 1; border: 0; outline: 0; resize: none; overflow: hidden; background: transparent; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5; max-height: 180px; padding: 4px 0; }
85
+ .tri { display: inline-block; width: 8px; height: 7px; flex: none; background: var(--fine); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
86
+ .tri.changed { background: var(--changed); }
87
+ .tri.broken { background: var(--broken); }
88
+
89
+ .check { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 6px 8px; border-radius: 6px; font-size: 13px; color: var(--graphite); white-space: nowrap; cursor: default; }
90
+ .check i { display: inline-block; width: 8px; height: 7px; background: var(--fine); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
91
+ .check[data-state="changed"] { color: var(--changed); cursor: pointer; }
92
+ .check[data-state="changed"] i { background: var(--changed); }
93
+ .check[data-state="broken"] { color: var(--broken); cursor: pointer; }
94
+ .check[data-state="broken"] i { background: var(--broken); }
95
+ .check[data-state="changed"]:hover, .check[data-state="broken"]:hover { background: var(--wash); }
96
+
97
+ .annotate { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--graphite); }
98
+ .annotate:hover { background: var(--wash); color: var(--ink); }
99
+ .annotate .track { position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--rule-strong); transition: background-color 140ms ease; }
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; }
109
+ .icon-btn .panel-fill { fill: currentColor; stroke: none; opacity: 0; }
110
+ .icon-btn[aria-pressed="true"] .panel-fill { opacity: .28; }
111
+ .unread { position: absolute; top: 6px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 2px var(--chrome); }
112
+ .unread.count { top: 2px; right: 0; width: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--action); color: #fff; font: 600 10px/16px var(--code); text-align: center; }
113
+
114
+ /* ---------- stage ---------- */
115
+ .stage { position: relative; min-width: 0; min-height: 0; background: var(--paper); }
116
+ #frame { display: block; width: 100%; height: 100%; border: 0; background: var(--paper); }
117
+ .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: 30px; height: 30px; margin-bottom: 20px; }
119
+ .empty h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 10px; font-weight: 600; }
120
+ .empty p { font-size: 15.5px; color: var(--graphite); margin: 0 0 22px; line-height: 1.55; }
121
+ .primary { border: 0; background: var(--action); color: #fff; font-weight: 500; padding: 10px 16px; border-radius: 6px; cursor: pointer; }
122
+ .primary:hover { background: var(--action-hover); }
123
+
124
+ /* ---------- conversation panel ---------- */
125
+ .panel { display: flex; flex-direction: column; min-height: 0; background: var(--chrome); border-left: 1px solid var(--rule); }
126
+ .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 10px; border-bottom: 1px solid var(--rule); }
127
+ .agent-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--graphite); min-width: 0; }
128
+ .agent-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); flex: none; }
129
+ .agent-state[data-state="listening"] i { background: var(--fine); }
130
+ .agent-state[data-state="working"] i { background: var(--route); animation: pulse 1.4s ease-in-out infinite; }
131
+ .agent-state[data-state="idle"] i, .agent-state[data-state="stale"] i { background: var(--changed); }
132
+ .agent-state[data-state="closed"] i { background: var(--broken); }
133
+ @keyframes pulse { 50% { opacity: .35; } }
134
+ .elapsed { font: 12px var(--code); color: var(--pencil); }
135
+
136
+ .msgs { flex: 1; overflow-y: auto; padding: 14px 16px 18px; min-height: 0; }
137
+ .intro h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 6px 0 10px; }
138
+ .intro ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
139
+ .intro li { counter-increment: s; position: relative; padding-left: 26px; margin: 0 0 10px; color: var(--graphite); font-size: 13.5px; line-height: 1.5; }
140
+ .intro li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--rule-strong); font: 500 10.5px/15px var(--code); text-align: center; color: var(--graphite); }
141
+ .intro kbd { font: 11.5px var(--code); padding: 0 4px; border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 4px; color: var(--ink); background: var(--sheet); }
142
+
143
+ .who { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; font-size: 12px; color: var(--pencil); }
144
+ .who b { font-weight: 600; color: var(--graphite); }
145
+ .msgs > .who:first-child { margin-top: 2px; }
146
+ .msg { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
147
+ .msg.user { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 9px 12px; }
148
+ .msg.user .from-page { font-size: 11.5px; color: var(--changed); margin-top: 4px; }
149
+ .msg.user .waiting { font-size: 11.5px; color: var(--pencil); margin-top: 4px; }
150
+ .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: 2px 0; }
152
+ .msg h4 { font-size: 14px; margin: 12px 0 4px; color: var(--ink); }
153
+ .msg :not(pre) > code { background: var(--wash); padding: 1px 4px; border-radius: 4px; color: var(--ink); }
154
+ .msg pre { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px; overflow-x: auto; font-size: 12.5px; }
155
+ .msg a { color: var(--route); text-underline-offset: 3px; }
156
+ .msg strong { color: var(--ink); font-weight: 600; }
157
+ .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(--rule); }
159
+ .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(--action); color: #fff; font: 600 10px/18px var(--code); text-align: center; margin-top: 1px; }
161
+ .mn-what { font-size: 12px; color: var(--pencil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
162
+ .mn-what b { color: var(--graphite); font-weight: 500; }
163
+ .answer-q { display: block; font-size: 12px; color: var(--pencil); margin-bottom: 2px; }
164
+
165
+ .working { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--graphite); }
166
+ .working i { width: 7px; height: 7px; border-radius: 50%; background: var(--route); animation: pulse 1.4s ease-in-out infinite; }
167
+
168
+ .notice { margin: 0 12px 10px; padding: 11px 13px; border-radius: 8px; background: var(--wash); font-size: 13px; color: var(--graphite); line-height: 1.5; }
169
+ .notice b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; font-size: 13.5px; }
170
+ .notice .after { margin: 8px 0 0; }
171
+ .notice .cmd { display: flex; align-items: center; gap: 6px; margin-top: 8px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 5px 5px 5px 9px; }
172
+ .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(--route); font-size: 12px; font-weight: 500; padding: 3px 6px; border-radius: 4px; cursor: pointer; }
174
+ .notice .copy:hover { background: var(--route-wash); }
175
+
176
+ .composer { padding: 0 12px 12px; }
177
+ .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(--sheet); border: 1px solid var(--rule); border-radius: 7px; cursor: pointer; }
179
+ .note:hover { border-color: var(--rule-strong); }
180
+ .note .mn-num { grid-row: 1 / span 2; }
181
+ .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(--pencil); cursor: pointer; width: 22px; height: 22px; border-radius: 4px; font-size: 16px; line-height: 1; }
183
+ .note-x:hover { background: var(--wash); color: var(--ink); }
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; }
148
188
  #input::placeholder { color: var(--pencil); }
149
- .send { flex: none; width: 28px; height: 28px; border-radius: 4px; border: 0; background: var(--ink); cursor: pointer; display: grid; place-items: center; }
150
- .send svg { width: 15px; height: 15px; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
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; }
151
194
 
152
- /* ---------- narrow screens: chat becomes a sheet ---------- */
195
+ /* the server is gone */
196
+ .app[data-conn="closed"] .composer, .app[data-conn="closed"] .annotate { opacity: .5; pointer-events: none; }
197
+
198
+ /* ---------- small screens: the conversation becomes a bottom sheet ---------- */
153
199
  @media (max-width: 860px) {
154
- .app, .app.chat-closed { grid-template-columns: minmax(0, 1fr); }
155
- .path { display: none; }
156
- .chat { position: fixed; z-index: 40; inset: auto 0 0 0; height: 72vh; border-left: 0; border-top: 1px solid var(--rule-strong); border-radius: 10px 10px 0 0; box-shadow: 0 -12px 40px -16px rgba(16, 24, 34, .35); }
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; }
157
208
  }
158
- @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
209
+ .app[data-conn="closed"] .empty .primary { display: none; }
@@ -5,64 +5,67 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <meta name="referrer" content="no-referrer">
7
7
  <title>truemap</title>
8
- <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='26' height='26' rx='4' fill='none' stroke='%231d2733' stroke-width='2.5'/%3E%3Cpath d='M17 3h12v12z' fill='%232c5a8c'/%3E%3C/svg%3E">
8
+ <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 2.2 15.6 17.6 10 14.4 4.4 17.6z%27 fill=%27%23fff%27 stroke=%27%2317202b%27 stroke-width=%271.5%27 stroke-linejoin=%27round%27/%3E%3Cpath d=%27M10 2.2V14.4L4.4 17.6z%27 fill=%27%232453c4%27/%3E%3C/svg%3E">
9
9
  <link rel="stylesheet" href="/__truemap/workspace.css">
10
10
  <script>window.TRUEMAP_TOKEN = "__TRUEMAP_TOKEN__"; window.TRUEMAP_CONTENT = "__TRUEMAP_CONTENT__";</script>
11
11
  </head>
12
12
  <body>
13
- <div class="app" id="app">
13
+ <div class="app" id="app" data-conn="live">
14
14
 
15
- <main class="stage">
16
- <header class="bar">
17
- <div class="switcher">
18
- <button class="page-btn" id="pageBtn" type="button" aria-haspopup="menu" aria-expanded="false" title="Pages (Ctrl+K)">
19
- <svg class="mark" viewBox="0 0 32 32" aria-hidden="true"><rect x="3" y="3" width="26" height="26" rx="4"/><path d="M17 3h12v12z"/></svg>
20
- <span class="page-name" id="pageTitle">truemap</span>
21
- <span class="state-dot" id="titleDot" hidden></span>
22
- <svg class="chev" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 6l4 4 4-4"/></svg>
23
- </button>
24
- <div class="menu" id="menu" role="menu" hidden>
25
- <div class="menu-head"><span id="project"></span><input id="filter" type="search" placeholder="Find a page" autocomplete="off" hidden></div>
26
- <div class="menu-list" id="pages"></div>
27
- <div class="menu-foot"><button class="text-btn" id="recheck" type="button">Check against code</button><span id="ver"></span></div>
28
- </div>
29
- </div>
30
- <span class="path" id="pagePath"></span>
31
- <span class="spacer"></span>
32
- <button class="check-chip" id="checkChip" type="button" hidden></button>
33
- <button class="icon-btn" id="toggleChat" type="button" aria-label="Show chat" title="Show chat" hidden>
34
- <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 4.5h12a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H9l-3.5 3v-3H4a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1z"/></svg>
35
- <span class="unread" id="unread" hidden></span>
15
+ <header class="bar">
16
+ <div class="brand" title="truemap">
17
+ <svg class="mark" viewBox="0 0 20 20" aria-hidden="true"><path class="mark-line" d="M10 2.2 15.6 17.6 10 14.4 4.4 17.6z"/><path class="mark-fill" d="M10 2.2V14.4L4.4 17.6z"/></svg>
18
+ <span class="wordmark">truemap</span>
19
+ </div>
20
+ <span class="slash" aria-hidden="true">/</span>
21
+ <div class="switcher">
22
+ <button class="page-btn" id="pageBtn" type="button" aria-haspopup="menu" aria-expanded="false" title="Pages (Ctrl+K)">
23
+ <span class="page-name" id="pageTitle">No pages yet</span>
24
+ <svg class="chev" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 6.5 8 10l3.5-3.5"/></svg>
36
25
  </button>
37
- </header>
38
- <div class="frame-wrap">
39
- <iframe id="frame" title="Page" sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox" referrerpolicy="no-referrer"></iframe>
40
- <section class="empty" id="empty" hidden>
41
- <h1>No pages yet</h1>
42
- <p>Ask the agent to read the code and draw the project’s blueprint. Then select anything on it to ask about it.</p>
43
- <button class="primary" id="drawBlueprint" type="button">Ask the agent for a blueprint</button>
44
- </section>
26
+ <div class="menu" id="menu" role="menu" hidden>
27
+ <div class="menu-head"><span id="project"></span><input id="filter" type="search" placeholder="Find a page" autocomplete="off" hidden></div>
28
+ <div class="menu-list" id="pages"></div>
29
+ <div class="menu-foot"><button class="text-btn" id="recheck" type="button">Check pages against the code</button><span id="ver"></span></div>
30
+ </div>
45
31
  </div>
32
+ <span class="path" id="pagePath"></span>
33
+ <span class="spacer"></span>
34
+ <button class="check" id="checkChip" type="button" hidden><i aria-hidden="true"></i><span id="checkText"></span></button>
35
+ <button class="annotate" id="annotate" type="button" role="switch" aria-checked="false" title="Annotate (A)">
36
+ <span>Annotate</span><span class="track" aria-hidden="true"><span class="thumb"></span></span>
37
+ </button>
38
+ <button class="icon-btn" id="togglePanel" type="button" aria-pressed="true" aria-controls="panel" title="Hide conversation">
39
+ <svg viewBox="0 0 20 20" aria-hidden="true"><rect x="2.75" y="3.75" width="14.5" height="12.5" rx="2"/><path d="M12.25 3.75v12.5"/><path class="panel-fill" d="M12.25 4.5h4.25v11h-4.25z"/></svg>
40
+ <span class="unread" id="unread" hidden></span>
41
+ </button>
42
+ </header>
43
+
44
+ <main class="stage">
45
+ <iframe id="frame" title="Page" sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox" referrerpolicy="no-referrer"></iframe>
46
+ <section class="empty" id="empty" hidden>
47
+ <svg class="empty-mark" viewBox="0 0 20 20" aria-hidden="true"><path class="mark-line" d="M10 2.2 15.6 17.6 10 14.4 4.4 17.6z"/><path class="mark-fill" d="M10 2.2V14.4L4.4 17.6z"/></svg>
48
+ <h1>No map of this project yet</h1>
49
+ <p>Ask the agent to read the code and draw the blueprint. Every box on it points to real code, and truemap tells you when the code moves on.</p>
50
+ <button class="primary" id="drawBlueprint" type="button">Ask the agent for a blueprint</button>
51
+ </section>
46
52
  </main>
47
53
 
48
- <aside class="chat" id="chat">
49
- <header class="chat-head">
50
- <span class="agent-pill" id="agent" data-state="offline"><i></i><span id="agentLabel">Agent not connected</span></span>
51
- <button class="icon-btn quiet" id="closeChat" type="button" aria-label="Hide chat" title="Hide chat">
52
- <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M7 5l5 5-5 5"/></svg>
53
- </button>
54
- </header>
54
+ <aside class="panel" id="panel" aria-label="Conversation">
55
+ <div class="panel-head">
56
+ <span class="agent-state" id="agent" data-state="offline"><i aria-hidden="true"></i><span id="agentLabel">No agent listening</span></span>
57
+ <span class="elapsed" id="elapsed" hidden></span>
58
+ </div>
55
59
  <div class="msgs" id="msgs" aria-live="polite"></div>
56
- <div class="progress" id="progress" hidden></div>
57
- <div class="offline-hint" id="offlineHint" hidden></div>
60
+ <div class="notice" id="notice" hidden></div>
58
61
  <form class="composer" id="composer" autocomplete="off">
59
- <div class="chips" id="chips"></div>
60
- <div class="quick" id="quick" hidden></div>
61
- <div class="input-row">
62
+ <ol class="notes" id="notes" hidden></ol>
63
+ <div class="box">
62
64
  <textarea id="input" rows="1" aria-label="Message"></textarea>
63
- <button class="send" id="send" type="submit" aria-label="Send">
64
- <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M10 16V4M5 9l5-5 5 5"/></svg>
65
- </button>
65
+ <div class="box-foot">
66
+ <span class="box-hint" id="boxHint">Enter to send</span>
67
+ <button class="send" id="send" type="submit">Send</button>
68
+ </div>
66
69
  </div>
67
70
  </form>
68
71
  </aside>