-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
341 lines (300 loc) · 21 KB
/
Copy pathindex.html
File metadata and controls
341 lines (300 loc) · 21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data: blob:; frame-src 'self' blob:; connect-src 'none';" />
<title>TermCanvas</title>
<link rel="stylesheet" href="./node_modules/@xterm/xterm/css/xterm.css" />
<link rel="stylesheet" href="./styles.css" />
</head>
<body class="is-focused-terminal-mode">
<div class="app-shell">
<aside class="app-rail" aria-label="Project rail">
<div class="canvas-brand app-rail-brand" aria-label="TermCanvas brand mark">
<img class="canvas-brand-mark" src="./assets/branding/termcanvas-mark.svg" alt="" />
</div>
<button class="app-rail-action" id="create-canvas-button" type="button" aria-label="New canvas" title="New canvas">+</button>
<section class="canvas-switcher-rail-section" id="canvas-switcher-section" aria-label="Canvas switcher section">
<button class="canvas-strip-overflow-button" id="canvas-strip-prev-button" type="button" aria-label="Show previous canvases" title="Show previous canvases" hidden><</button>
<div class="canvas-strip-list" id="canvas-strip-list" role="toolbar" aria-label="Canvas navigator"></div>
<button class="canvas-strip-overflow-button" id="canvas-strip-next-button" type="button" aria-label="Show more canvases" title="Show more canvases" hidden>></button>
</section>
<div class="app-rail-spacer" aria-hidden="true"></div>
</aside>
<aside class="canvas-sidebar" aria-label="Canvas manager">
<div class="panel-resize-handle sidebar-resize-handle" id="sidebar-resize-handle" aria-hidden="true"></div>
<div class="canvas-sidebar-panel">
<div class="canvas-sidebar-content">
<div class="sidebar-view-switcher" id="sidebar-view-switcher" role="tablist" aria-label="Sidebar view">
<button class="sidebar-view-tab" id="sidebar-view-explorer" type="button" role="tab" aria-selected="true" aria-controls="workspace-browser-section" data-sidebar-view="explorer">Explorer</button>
<button class="sidebar-view-tab" id="sidebar-view-terminals" type="button" role="tab" aria-selected="false" aria-controls="terminal-navigator-section" data-sidebar-view="terminals">Terminals</button>
</div>
<section class="sidebar-section sidebar-primary-section sidebar-view-panel" id="workspace-browser-section" aria-label="Workspace browser section">
<div class="sidebar-section-header-row">
<div class="sidebar-section-header">Explorer</div>
<div class="sidebar-section-header-controls" aria-label="Explorer controls">
<button class="canvas-list-action sidebar-section-action sidebar-section-search-action" id="focus-workspace-search-button" type="button" aria-label="Search workspace files" aria-keyshortcuts="Meta+F Control+F" title="Search workspace files">
<svg class="sidebar-section-icon" viewBox="0 0 16 16" aria-hidden="true">
<circle cx="7" cy="7" r="3.75"></circle>
<path d="m9.75 9.75 3 3"></path>
</svg>
</button>
<div class="sidebar-section-actions sidebar-section-actions-reveal" aria-label="Workspace actions">
<button class="canvas-list-action sidebar-section-action" id="open-workspace-button" type="button" aria-label="Open workspace" title="Open workspace">
<svg class="sidebar-section-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M2.5 5h3.5l1.25-1.5h5.25a1 1 0 0 1 1 1v1"></path>
<path d="M2.5 5h11a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"></path>
</svg>
</button>
<button class="canvas-list-action sidebar-section-action" id="refresh-workspace-button" type="button" aria-label="Refresh workspace" title="Refresh workspace">
<svg class="sidebar-section-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M12.75 5V2.75H10.5"></path>
<path d="M12.75 2.75A5.5 5.5 0 1 0 13.5 9"></path>
</svg>
</button>
<button class="canvas-list-action sidebar-section-action" id="create-workspace-file-button" type="button" aria-label="New file" title="New file">
<svg class="sidebar-section-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M4 2.75h5.25L12.5 6v7.25c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1v-9.5c0-.55.45-1 1-1Z"></path>
<path d="M9.25 2.75V6h3.25"></path>
<path d="M8 8v3.5"></path>
<path d="M6.25 9.75h3.5"></path>
</svg>
</button>
<button class="canvas-list-action sidebar-section-action" id="create-workspace-directory-button" type="button" aria-label="New folder" title="New folder">
<svg class="sidebar-section-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M2.5 5h3.5l1.25-1.5h5.25a1 1 0 0 1 1 1v1"></path>
<path d="M2.5 5h11a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"></path>
<path d="M8 7.5v3"></path>
<path d="M6.5 9h3"></path>
</svg>
</button>
<button class="canvas-list-action sidebar-section-action" id="rename-workspace-entry-button" type="button" aria-label="Rename selected entry" title="Rename selected entry">
<svg class="sidebar-section-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M3.25 12.75h2.5l6-6-2.5-2.5-6 6v2.5Z"></path>
<path d="M8.75 4.25 11.25 6.75"></path>
</svg>
</button>
<button class="canvas-list-action sidebar-section-action" id="delete-workspace-entry-button" type="button" aria-label="Delete selected entry" title="Delete selected entry">
<svg class="sidebar-section-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M3.75 4.5h8.5"></path>
<path d="M6.25 4.5V3.25h3.5V4.5"></path>
<path d="M5 4.5v7.25c0 .55.45 1 1 1h4c.55 0 1-.45 1-1V4.5"></path>
<path d="M6.75 6.75v4"></path>
<path d="M9.25 6.75v4"></path>
</svg>
</button>
</div>
</div>
</div>
<div class="workspace-browser" id="workspace-browser" aria-live="polite"></div>
</section>
<section class="sidebar-section sidebar-primary-section sidebar-view-panel" id="terminal-navigator-section" aria-label="Terminal navigator section" hidden>
<div class="sidebar-section-header-row">
<div class="sidebar-section-header">Terminals</div>
<div class="sidebar-section-header-controls">
<button class="canvas-list-action sidebar-section-action terminal-navigator-create" id="create-terminal-button" type="button" aria-label="New terminal" title="New terminal">
<svg class="sidebar-section-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M8 3v10"></path>
<path d="M3 8h10"></path>
</svg>
</button>
</div>
</div>
<div class="terminal-navigator" id="terminal-navigator" aria-live="polite"></div>
</section>
</div>
</div>
</aside>
<main class="workspace-shell">
<header class="canvas-panel-header" id="canvas-panel-header" aria-label="Canvas overview">
<button class="sidebar-edge-handle rail-toggle-button" id="rail-toggle-button" type="button" aria-label="Hide project rail" aria-pressed="true" title="Hide project rail">
<svg class="rail-toggle-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M3.25 3h3.25v10H3.25Z"></path>
<path d="M8.75 4.25h4"></path>
<path d="M8.75 8h4"></path>
<path d="M8.75 11.75h4"></path>
</svg>
</button>
<button class="sidebar-edge-handle" id="sidebar-toggle-button" type="button" aria-label="Show file navigator with Command+B" aria-pressed="false" title="Show file navigator">
<svg class="sidebar-toggle-icon" viewBox="0 0 16 16" aria-hidden="true">
<path class="sidebar-toggle-panel" d="M3.25 3h9.5v10h-9.5Z"></path>
<path class="sidebar-toggle-divider" d="M6.25 3v10"></path>
<path class="sidebar-toggle-chevron sidebar-toggle-chevron-open" d="m10.25 5.25-2.5 2.75 2.5 2.75"></path>
<path class="sidebar-toggle-chevron sidebar-toggle-chevron-closed" d="m8.25 5.25 2.5 2.75-2.5 2.75"></path>
</svg>
</button>
<div class="canvas-panel-context">
<div class="canvas-breadcrumb" id="canvas-breadcrumb">
<span class="canvas-breadcrumb-project">TermCanvas</span>
</div>
<div class="canvas-panel-title" id="canvas-panel-title">No canvas</div>
<div class="canvas-panel-pills" id="canvas-panel-pills" aria-label="Canvas status"></div>
</div>
<button class="board-attention-chip" id="board-attention-chip" type="button" hidden aria-live="polite" title="Jump to the next agent that needs you"></button>
<div class="canvas-panel-actions" aria-label="Canvas actions">
<button class="canvas-panel-text-button" id="restart-agent-sessions-button" type="button" aria-label="Restart agent sessions" title="Restart every managed agent runtime. Active turns will be interrupted." disabled>Restart agent sessions</button>
<button class="canvas-panel-icon-button" id="create-note-button" type="button" aria-label="Add a note to the canvas" title="Add a note to the canvas" disabled>
<svg class="canvas-panel-action-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M3.5 2.75h9a.75.75 0 0 1 .75.75v6l-3.5 3.75h-6.25a.75.75 0 0 1-.75-.75v-9a.75.75 0 0 1 .75-.75Z"></path>
<path d="M9.75 13.25v-3.75h3.5"></path>
</svg>
</button>
<div class="canvas-panel-menu" id="canvas-actions-menu-root">
<button class="canvas-panel-icon-button" id="canvas-actions-menu-button" type="button" aria-label="Canvas actions" aria-haspopup="menu" aria-expanded="false" aria-controls="canvas-actions-menu" title="Canvas actions" disabled>
<svg class="canvas-panel-action-icon" viewBox="0 0 16 16" aria-hidden="true">
<circle cx="4" cy="8" r="0.85"></circle>
<circle cx="8" cy="8" r="0.85"></circle>
<circle cx="12" cy="8" r="0.85"></circle>
</svg>
</button>
<div class="canvas-panel-menu-popover" id="canvas-actions-menu" role="menu" aria-label="Canvas actions" hidden>
<button class="canvas-panel-menu-item" id="export-canvas-button" type="button" role="menuitem" aria-label="Export canvas" title="Export canvas" disabled>
<svg class="canvas-panel-action-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M8 10.75V3.5"></path>
<path d="M5.25 6.25 8 3.5l2.75 2.75"></path>
<path d="M3.25 12.5h9.5"></path>
</svg>
<span>Export canvas</span>
</button>
<button class="canvas-panel-menu-item" id="import-canvas-button" type="button" role="menuitem" aria-label="Import canvas" title="Import canvas">
<svg class="canvas-panel-action-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M8 3.5v7.25"></path>
<path d="M5.25 8 8 10.75 10.75 8"></path>
<path d="M3.25 12.5h9.5"></path>
</svg>
<span>Import canvas</span>
</button>
<button class="canvas-panel-menu-item" id="install-agent-skill-button" type="button" role="menuitem" aria-label="Install agent skill" title="Install agent skill">
<svg class="canvas-panel-action-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M8 2.75v10.5"></path>
<path d="M4.5 6.25 8 2.75l3.5 3.5"></path>
<path d="M3.25 13.25h9.5"></path>
</svg>
<span>Install agent skill</span>
</button>
<button class="canvas-panel-menu-item" id="select-terminals-button" type="button" role="menuitem" aria-label="Select terminals" title="Select terminals to close in bulk">
<svg class="canvas-panel-action-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M3 3.5h4v4H3z"></path>
<path d="M9 3.5h4v4H9z"></path>
<path d="M3 9.5h4v4H3z"></path>
<path d="M9 9.5h4v4H9z"></path>
</svg>
<span>Select terminals</span>
</button>
<button class="canvas-panel-menu-item canvas-panel-danger-action" id="close-active-canvas-button" type="button" role="menuitem" aria-label="Close current canvas" title="Close current canvas" disabled>
<svg class="canvas-panel-action-icon" viewBox="0 0 16 16" aria-hidden="true">
<path d="M3.75 4.5h8.5"></path>
<path d="M6.25 4.5V3.25h3.5V4.5"></path>
<path d="M5 4.5v7.25c0 .55.45 1 1 1h4c.55 0 1-.45 1-1V4.5"></path>
<path d="M6.75 6.75v4"></path>
<path d="M9.25 6.75v4"></path>
</svg>
<span>Close canvas</span>
</button>
</div>
</div>
</div>
</header>
<section class="board" id="board">
<div class="board-grid" aria-hidden="true"></div>
<div class="board-navigation" id="board-navigation" role="toolbar" aria-label="Canvas navigation" hidden>
<button class="board-nav-button" id="board-zoom-out-button" type="button" aria-label="Zoom canvas out" title="Zoom canvas out">
<svg class="board-nav-icon" viewBox="0 0 16 16" aria-hidden="true">
<circle cx="6.75" cy="6.75" r="4.25"></circle>
<path d="m10 10 3.25 3.25"></path>
<path d="M4.5 6.75H9"></path>
</svg>
</button>
<button class="board-nav-button board-zoom-indicator" id="board-zoom-indicator" type="button" aria-live="polite" aria-atomic="true" aria-label="Reset canvas zoom to 100%" title="Reset canvas zoom to 100%">100%</button>
<button class="board-nav-button" id="board-zoom-in-button" type="button" aria-label="Zoom canvas in" title="Zoom canvas in">
<svg class="board-nav-icon" viewBox="0 0 16 16" aria-hidden="true">
<circle cx="6.75" cy="6.75" r="4.25"></circle>
<path d="m10 10 3.25 3.25"></path>
<path d="M4.5 6.75H9"></path>
<path d="M6.75 4.5V9"></path>
</svg>
</button>
<span class="board-nav-separator" aria-hidden="true"></span>
<button class="board-nav-button" id="board-center-view-button" type="button" aria-label="Center canvas content" title="Center canvas content">
<svg class="board-nav-icon" viewBox="0 0 16 16" aria-hidden="true">
<circle cx="8" cy="3.5" r="1.35"></circle>
<circle cx="4.75" cy="11.5" r="1.35"></circle>
<circle cx="11.25" cy="11.5" r="1.35"></circle>
<path d="M8 4.85v2.4"></path>
<path d="M8 7.25H4.75v2.9"></path>
<path d="M8 7.25h3.25v2.9"></path>
</svg>
</button>
</div>
<button class="board-fullscreen-exit" id="board-fullscreen-exit" type="button" aria-label="Exit terminal fullscreen">
Exit fullscreen
</button>
<div class="board-hud-center" id="board-hud-center">
<button class="board-fleet-chip" id="board-fleet-chip" type="button" hidden title="Spawn a temporary Claude Code terminal with a fleet report">ask fleet</button>
</div>
<div class="board-minimap" id="board-minimap" aria-hidden="true" hidden>
<div class="board-minimap-label">map</div>
<div class="board-minimap-canvas" id="board-minimap-canvas">
<div class="board-minimap-viewport" id="board-minimap-viewport"></div>
</div>
</div>
<div class="board-hints" id="board-hints" aria-live="polite">
<span class="board-hint-chip">Double-click to open a terminal</span>
<span class="board-hint-chip">Drag to move the canvas</span>
<span class="board-hint-chip">Cmd/Ctrl + wheel to zoom</span>
<span class="board-hint-chip">Cmd+B for left drawer</span>
<span class="board-hint-chip">Cmd+L to close preview</span>
</div>
<div class="empty-state" id="empty-state">
<strong class="empty-state-title">No terminals yet</strong>
<span class="empty-state-copy">Use New terminal in the sidebar to start one.</span>
</div>
<div class="board-welcome" id="board-welcome" hidden>
<strong class="board-welcome-title">No project open</strong>
<span class="board-welcome-copy">Pick a folder to start a canvas for your project.</span>
<button class="board-welcome-button" id="board-welcome-open-button" type="button">Open a folder</button>
</div>
<svg class="canvas-edge-layer" id="canvas-edge-layer" aria-hidden="true"></svg>
<div class="board-select-mode-bar" id="board-select-mode-bar" role="status" aria-live="polite" aria-atomic="true" hidden>
<span class="board-select-mode-label" id="board-select-mode-label">Select terminals to close</span>
<span class="board-select-mode-count" id="board-select-mode-count">0 selected</span>
<button class="board-select-mode-action board-select-mode-danger" id="board-select-close-button" type="button" disabled>Close selected</button>
<button class="board-select-mode-action" id="board-select-cancel-button" type="button">Cancel (Esc)</button>
</div>
<section class="nodes-layer" id="nodes-layer" aria-label="Infinite terminal canvas"></section>
</section>
</main>
<div class="panel-resize-handle inspector-resize-handle" id="file-inspector-resize-handle" aria-hidden="true"></div>
<aside class="file-inspector" id="file-inspector" aria-label="File preview"></aside>
<div class="workspace-action-dialog" id="workspace-action-dialog" hidden>
<div class="workspace-action-dialog-backdrop" id="workspace-action-dialog-backdrop"></div>
<form class="workspace-action-dialog-card" id="workspace-action-dialog-form">
<div class="workspace-action-dialog-title" id="workspace-action-dialog-title">Action</div>
<div class="workspace-action-dialog-message" id="workspace-action-dialog-message"></div>
<input class="workspace-action-dialog-input" id="workspace-action-dialog-input" type="text" autocomplete="off" />
<div class="workspace-action-dialog-actions">
<button class="canvas-secondary-button" id="workspace-action-dialog-cancel" type="button">Cancel</button>
<button class="canvas-secondary-button" id="workspace-action-dialog-confirm" type="submit">Confirm</button>
</div>
</form>
</div>
</div>
<script src="./node_modules/@xterm/xterm/lib/xterm.js"></script>
<script src="./node_modules/@xterm/addon-fit/lib/addon-fit.js"></script>
<script src="./node_modules/@xterm/addon-unicode11/lib/addon-unicode11.js"></script>
<script src="./node_modules/@xterm/addon-webgl/lib/addon-webgl.js"></script>
<script src="./renderer_workspace.js"></script>
<script src="./renderer_action_dialog.js"></script>
<script src="./renderer_canvas_switcher.js"></script>
<script src="./renderer_canvas_navigation.js"></script>
<script src="./renderer_canvas_delegation.js"></script>
<script src="./renderer_node_status.js"></script>
<script src="./renderer_canvas_snapshot.js"></script>
<script src="./renderer_canvas_notes.js"></script>
<script src="./renderer_workspace_preview.js"></script>
<script src="./renderer_async_pool.js"></script>
<script src="./renderer_focused_mode.js"></script>
<script src="./renderer.js"></script>
</body>
</html>