truemap-cli 0.2.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 -26
- 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 +185 -66
- package/package.json +1 -1
- package/skills/truemap/SKILL.md +9 -5
- package/src/changes.js +155 -0
- package/src/check.js +128 -6
- package/src/cli.js +206 -17
- package/src/common.js +3 -0
- package/src/export.js +62 -0
- package/src/guide.md +128 -102
- package/src/plan.js +185 -0
- package/src/server.js +207 -17
- package/src/snippet.js +63 -0
- package/src/ui/diagram.js +598 -0
- package/src/ui/sdk.js +327 -132
- package/src/ui/wires.js +329 -0
- package/src/ui/workspace.css +340 -145
- package/src/ui/workspace.html +38 -14
- package/src/ui/workspace.js +539 -57
package/src/ui/workspace.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
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=%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%
|
|
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%23141413%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>
|
|
@@ -13,11 +13,18 @@
|
|
|
13
13
|
<div class="app" id="app" data-conn="live">
|
|
14
14
|
|
|
15
15
|
<header class="bar">
|
|
16
|
-
<div class="
|
|
17
|
-
<
|
|
18
|
-
|
|
16
|
+
<div class="projects">
|
|
17
|
+
<button class="brand" id="projBtn" type="button" aria-haspopup="menu" aria-expanded="false" title="Projects">
|
|
18
|
+
<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>
|
|
19
|
+
<span class="wordmark" id="projName">truemap</span>
|
|
20
|
+
<span class="proj-n" id="projCount" hidden></span>
|
|
21
|
+
<svg class="chev" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 6.5 8 10l3.5-3.5"/></svg>
|
|
22
|
+
</button>
|
|
23
|
+
<div class="menu proj-menu" id="projMenu" role="menu" hidden></div>
|
|
19
24
|
</div>
|
|
20
25
|
<span class="slash" aria-hidden="true">/</span>
|
|
26
|
+
<button class="crumb-home" id="crumbHome" type="button" hidden></button>
|
|
27
|
+
<span class="crumb-sep" id="crumbSep" aria-hidden="true" hidden>›</span>
|
|
21
28
|
<div class="switcher">
|
|
22
29
|
<button class="page-btn" id="pageBtn" type="button" aria-haspopup="menu" aria-expanded="false" title="Pages (Ctrl+K)">
|
|
23
30
|
<span class="page-name" id="pageTitle">No pages yet</span>
|
|
@@ -29,19 +36,28 @@
|
|
|
29
36
|
<div class="menu-foot"><button class="text-btn" id="recheck" type="button">Check pages against the code</button><span id="ver"></span></div>
|
|
30
37
|
</div>
|
|
31
38
|
</div>
|
|
32
|
-
<span class="path" id="pagePath"></span>
|
|
33
39
|
<span class="spacer"></span>
|
|
34
40
|
<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
41
|
<button class="icon-btn" id="togglePanel" type="button" aria-pressed="true" aria-controls="panel" title="Hide conversation">
|
|
39
42
|
<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
43
|
<span class="unread" id="unread" hidden></span>
|
|
41
44
|
</button>
|
|
45
|
+
<div class="more">
|
|
46
|
+
<button class="icon-btn" id="moreBtn" type="button" aria-haspopup="menu" aria-expanded="false" aria-label="More" title="More">
|
|
47
|
+
<svg viewBox="0 0 20 20" aria-hidden="true"><circle class="dot" cx="10" cy="4.5" r="1.4"/><circle class="dot" cx="10" cy="10" r="1.4"/><circle class="dot" cx="10" cy="15.5" r="1.4"/></svg>
|
|
48
|
+
</button>
|
|
49
|
+
<div class="menu more-menu" id="moreMenu" role="menu" hidden>
|
|
50
|
+
<div class="more-file"><span class="more-label">This page</span><div class="more-path"><code id="moreFile">No page open</code><button class="text-btn" id="copyPath" type="button">Copy path</button></div></div>
|
|
51
|
+
<button class="more-item" id="exportPage" type="button" role="menuitem"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M10 3.5v9M6 9l4 4 4-4M4 16.5h12"/></svg><span>Export as one HTML file<small>To share it; opens without truemap</small></span></button>
|
|
52
|
+
<div class="menu-gap"></div>
|
|
53
|
+
<button class="more-item" id="endConv" type="button" role="menuitem"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M8 4.5H5a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h3M12.5 6.5 16 10l-3.5 3.5M16 10H8"/></svg><span>End conversation<small id="endHint">Lets the agent go back to the terminal</small></span></button>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
42
56
|
</header>
|
|
43
57
|
|
|
44
58
|
<main class="stage">
|
|
59
|
+
<div class="planbar" id="planbar" hidden></div>
|
|
60
|
+
<div class="lit-pill" id="litPill" hidden><span id="litText"></span><button type="button" id="litClear">Show all</button></div>
|
|
45
61
|
<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
62
|
<section class="empty" id="empty" hidden>
|
|
47
63
|
<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>
|
|
@@ -52,22 +68,30 @@
|
|
|
52
68
|
</main>
|
|
53
69
|
|
|
54
70
|
<aside class="panel" id="panel" aria-label="Conversation">
|
|
71
|
+
<section class="inspector" id="inspector" aria-label="What this box is">
|
|
72
|
+
<div class="insp-head"><button class="insp-back" id="inspBack" type="button"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10 3.5 5.5 8l4.5 4.5"/></svg>Conversation</button></div>
|
|
73
|
+
<div class="insp-body" id="inspBody"></div>
|
|
74
|
+
</section>
|
|
75
|
+
<div class="convo">
|
|
55
76
|
<div class="panel-head">
|
|
56
|
-
<
|
|
57
|
-
|
|
77
|
+
<div class="ptabs" role="tablist">
|
|
78
|
+
<button class="ptab" id="tabConvo" type="button" role="tab" aria-selected="true">Conversation</button>
|
|
79
|
+
<button class="ptab" id="tabChanges" type="button" role="tab" aria-selected="false">Changes<span class="ptab-n" id="changesCount" hidden></span></button>
|
|
80
|
+
</div>
|
|
81
|
+
<span class="agent-state" id="agent" data-state="offline"><i aria-hidden="true"></i><span id="agentLabel">Not listening</span><span class="elapsed" id="elapsed" hidden></span></span>
|
|
58
82
|
</div>
|
|
59
83
|
<div class="msgs" id="msgs" aria-live="polite"></div>
|
|
84
|
+
<div class="changes" id="changes"></div>
|
|
60
85
|
<div class="notice" id="notice" hidden></div>
|
|
61
86
|
<form class="composer" id="composer" autocomplete="off">
|
|
62
87
|
<ol class="notes" id="notes" hidden></ol>
|
|
88
|
+
<div class="about" id="about" hidden></div>
|
|
63
89
|
<div class="box">
|
|
64
90
|
<textarea id="input" rows="1" aria-label="Message"></textarea>
|
|
65
|
-
<
|
|
66
|
-
<span class="box-hint" id="boxHint">Enter to send</span>
|
|
67
|
-
<button class="send" id="send" type="submit">Send</button>
|
|
68
|
-
</div>
|
|
91
|
+
<button class="send" id="send" type="submit">Send</button>
|
|
69
92
|
</div>
|
|
70
93
|
</form>
|
|
94
|
+
</div>
|
|
71
95
|
</aside>
|
|
72
96
|
|
|
73
97
|
</div>
|