truemap-cli 0.1.0 → 0.3.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/bin/truemap.js +3 -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 +248 -186
- package/package.json +1 -1
- package/skills/truemap/SKILL.md +4 -3
- package/src/check.js +32 -1
- package/src/cli.js +75 -20
- package/src/export.js +62 -0
- package/src/guide.md +67 -32
- package/src/outline.js +71 -0
- package/src/server.js +453 -394
- package/src/ui/sdk.js +350 -58
- package/src/ui/wires.js +237 -0
- package/src/ui/workspace.css +194 -128
- package/src/ui/workspace.html +59 -45
- package/src/ui/workspace.js +277 -104
package/src/ui/workspace.html
CHANGED
|
@@ -5,64 +5,78 @@
|
|
|
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
|
|
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
|
-
<
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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>
|
|
29
30
|
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
+
<div class="more">
|
|
43
|
+
<button class="icon-btn" id="moreBtn" type="button" aria-haspopup="menu" aria-expanded="false" aria-label="More" title="More">
|
|
44
|
+
<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>
|
|
36
45
|
</button>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
<button class="primary" id="drawBlueprint" type="button">Ask the agent for a blueprint</button>
|
|
44
|
-
</section>
|
|
46
|
+
<div class="menu more-menu" id="moreMenu" role="menu" hidden>
|
|
47
|
+
<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>
|
|
48
|
+
<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>
|
|
49
|
+
<div class="menu-gap"></div>
|
|
50
|
+
<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>
|
|
51
|
+
</div>
|
|
45
52
|
</div>
|
|
53
|
+
</header>
|
|
54
|
+
|
|
55
|
+
<main class="stage">
|
|
56
|
+
<iframe id="frame" title="Page" sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox" referrerpolicy="no-referrer"></iframe>
|
|
57
|
+
<section class="empty" id="empty" hidden>
|
|
58
|
+
<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>
|
|
59
|
+
<h1>No map of this project yet</h1>
|
|
60
|
+
<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>
|
|
61
|
+
<button class="primary" id="drawBlueprint" type="button">Ask the agent for a blueprint</button>
|
|
62
|
+
</section>
|
|
46
63
|
</main>
|
|
47
64
|
|
|
48
|
-
<aside class="
|
|
49
|
-
<
|
|
50
|
-
<span class="agent-
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
</button>
|
|
54
|
-
</header>
|
|
65
|
+
<aside class="panel" id="panel" aria-label="Conversation">
|
|
66
|
+
<div class="panel-head">
|
|
67
|
+
<span class="agent-state" id="agent" data-state="offline"><i aria-hidden="true"></i><span id="agentLabel">No agent listening</span></span>
|
|
68
|
+
<span class="elapsed" id="elapsed" hidden></span>
|
|
69
|
+
</div>
|
|
55
70
|
<div class="msgs" id="msgs" aria-live="polite"></div>
|
|
56
|
-
<div class="
|
|
57
|
-
<div class="offline-hint" id="offlineHint" hidden></div>
|
|
71
|
+
<div class="notice" id="notice" hidden></div>
|
|
58
72
|
<form class="composer" id="composer" autocomplete="off">
|
|
59
|
-
<
|
|
60
|
-
<div class="
|
|
61
|
-
<div class="input-row">
|
|
73
|
+
<ol class="notes" id="notes" hidden></ol>
|
|
74
|
+
<div class="box">
|
|
62
75
|
<textarea id="input" rows="1" aria-label="Message"></textarea>
|
|
63
|
-
<
|
|
64
|
-
<
|
|
65
|
-
|
|
76
|
+
<div class="box-foot">
|
|
77
|
+
<span class="box-hint" id="boxHint">Enter to send</span>
|
|
78
|
+
<button class="send" id="send" type="submit">Send</button>
|
|
79
|
+
</div>
|
|
66
80
|
</div>
|
|
67
81
|
</form>
|
|
68
82
|
</aside>
|