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.
@@ -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='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>
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
- <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>
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
- </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>
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="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>
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="progress" id="progress" hidden></div>
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
- <div class="chips" id="chips"></div>
60
- <div class="quick" id="quick" hidden></div>
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
- <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>
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>