truemap-cli 0.0.0-stage → 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.
- package/LICENSE +21 -0
- package/README.md +70 -2
- package/bin/truemap.js +10 -0
- package/kit/fonts/OFL.txt +93 -0
- package/kit/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/kit/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/kit/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/kit/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
- package/kit/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
- package/kit/truemap.css +290 -0
- package/package.json +39 -4
- package/skills/truemap/SKILL.md +23 -0
- package/src/check.js +248 -0
- package/src/cli.js +392 -0
- package/src/common.js +99 -0
- package/src/guide.md +143 -0
- package/src/outline.js +71 -0
- package/src/server.js +440 -0
- package/src/ui/sdk.js +470 -0
- package/src/ui/workspace.css +209 -0
- package/src/ui/workspace.html +76 -0
- package/src/ui/workspace.js +476 -0
|
@@ -0,0 +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
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--paper: #f6f7f4;
|
|
8
|
+
--chrome: #fbfbfa;
|
|
9
|
+
--sheet: #ffffff;
|
|
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;
|
|
28
|
+
color-scheme: light dark;
|
|
29
|
+
}
|
|
30
|
+
@media (prefers-color-scheme: dark) {
|
|
31
|
+
:root {
|
|
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;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
* { box-sizing: border-box; }
|
|
41
|
+
html, body { height: 100%; }
|
|
42
|
+
body { margin: 0; background: var(--paper); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
|
|
43
|
+
button { font: inherit; color: inherit; }
|
|
44
|
+
:focus-visible { outline: 2px solid var(--route); outline-offset: 2px; }
|
|
45
|
+
code { font-family: var(--code); font-size: 0.9em; }
|
|
46
|
+
[hidden] { display: none !important; }
|
|
47
|
+
|
|
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; }
|
|
51
|
+
|
|
52
|
+
/* ---------- top bar ---------- */
|
|
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; }
|
|
60
|
+
.switcher { position: relative; min-width: 0; }
|
|
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; }
|
|
62
|
+
.page-btn:hover, .page-btn[aria-expanded="true"] { background: var(--wash); }
|
|
63
|
+
.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(--graphite); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
|
|
65
|
+
.path { font: 12px var(--code); color: var(--pencil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
66
|
+
.spacer { flex: 1; }
|
|
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; }
|
|
76
|
+
.page-item:hover, .page-item:focus-visible { background: var(--wash); outline: none; }
|
|
77
|
+
.page-item.active .pi-title { color: var(--route); }
|
|
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); }
|
|
82
|
+
.text-btn { border: 0; background: none; padding: 0; color: var(--route); cursor: pointer; font-size: 12.5px; }
|
|
83
|
+
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
84
|
+
|
|
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; }
|
|
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; }
|
|
194
|
+
|
|
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 ---------- */
|
|
199
|
+
@media (max-width: 860px) {
|
|
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
|
+
}
|
|
209
|
+
.app[data-conn="closed"] .empty .primary { display: none; }
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="referrer" content="no-referrer">
|
|
7
|
+
<title>truemap</title>
|
|
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
|
+
<link rel="stylesheet" href="/__truemap/workspace.css">
|
|
10
|
+
<script>window.TRUEMAP_TOKEN = "__TRUEMAP_TOKEN__"; window.TRUEMAP_CONTENT = "__TRUEMAP_CONTENT__";</script>
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div class="app" id="app" data-conn="live">
|
|
14
|
+
|
|
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>
|
|
25
|
+
</button>
|
|
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>
|
|
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>
|
|
52
|
+
</main>
|
|
53
|
+
|
|
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>
|
|
59
|
+
<div class="msgs" id="msgs" aria-live="polite"></div>
|
|
60
|
+
<div class="notice" id="notice" hidden></div>
|
|
61
|
+
<form class="composer" id="composer" autocomplete="off">
|
|
62
|
+
<ol class="notes" id="notes" hidden></ol>
|
|
63
|
+
<div class="box">
|
|
64
|
+
<textarea id="input" rows="1" aria-label="Message"></textarea>
|
|
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>
|
|
69
|
+
</div>
|
|
70
|
+
</form>
|
|
71
|
+
</aside>
|
|
72
|
+
|
|
73
|
+
</div>
|
|
74
|
+
<script src="/__truemap/workspace.js"></script>
|
|
75
|
+
</body>
|
|
76
|
+
</html>
|