@bakapiano/ccsm 0.10.3 → 0.11.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/CLAUDE.md +475 -475
- package/README.md +190 -190
- package/bin/ccsm.js +194 -194
- package/lib/cliSessionWatcher.js +249 -249
- package/lib/config.js +185 -185
- package/lib/folders.js +96 -96
- package/lib/localCliSessions.js +489 -177
- package/lib/persistedSessions.js +134 -134
- package/lib/webTerminal.js +208 -208
- package/lib/workspace.js +230 -255
- package/package.json +57 -57
- package/public/css/base.css +99 -99
- package/public/css/cards.css +183 -183
- package/public/css/feedback.css +303 -303
- package/public/css/forms.css +405 -405
- package/public/css/layout.css +160 -160
- package/public/css/modal.css +190 -183
- package/public/css/responsive.css +10 -10
- package/public/css/sidebar.css +616 -601
- package/public/css/terminals.css +294 -294
- package/public/css/tokens.css +81 -79
- package/public/css/wco.css +98 -98
- package/public/css/widgets.css +1596 -1375
- package/public/index.html +105 -103
- package/public/js/api.js +272 -260
- package/public/js/components/AdoptModal.js +343 -171
- package/public/js/components/App.js +35 -35
- package/public/js/components/DirectoryPicker.js +203 -203
- package/public/js/components/EntityFormModal.js +105 -105
- package/public/js/components/Modal.js +51 -51
- package/public/js/components/OfflineBanner.js +93 -93
- package/public/js/components/PageTitleBar.js +13 -13
- package/public/js/components/Picker.js +179 -179
- package/public/js/components/Popover.js +55 -55
- package/public/js/components/Sidebar.js +270 -270
- package/public/js/components/TerminalView.js +298 -298
- package/public/js/components/useDragSort.js +67 -67
- package/public/js/dialog.js +67 -67
- package/public/js/icons.js +177 -177
- package/public/js/main.js +140 -140
- package/public/js/pages/AboutPage.js +165 -165
- package/public/js/pages/ConfigurePage.js +475 -487
- package/public/js/pages/LaunchPage.js +369 -369
- package/public/js/pages/SessionsPage.js +97 -97
- package/public/js/state.js +231 -231
- package/public/manifest.webmanifest +15 -15
- package/scripts/install.js +137 -137
- package/server.js +1126 -1117
|
@@ -1,369 +1,369 @@
|
|
|
1
|
-
// Launch page. ChatGPT-style centered composer with custom popover
|
|
2
|
-
// pickers for CLI / Folder / Repos. Each picker shares the unified
|
|
3
|
-
// PickerPanel component and can inline-create new entries.
|
|
4
|
-
|
|
5
|
-
import { html } from '../html.js';
|
|
6
|
-
import { useState, useEffect } from 'preact/hooks';
|
|
7
|
-
import { signal } from '@preact/signals';
|
|
8
|
-
import { config, folders, selectSession, selectTab } from '../state.js';
|
|
9
|
-
import { createCli, createFolder, createRepo, reorderFolders, refreshAll } from '../api.js';
|
|
10
|
-
import { setToast } from '../toast.js';
|
|
11
|
-
import { streamNewSession, resetProgress } from '../streaming.js';
|
|
12
|
-
import { PageTitleBar } from '../components/PageTitleBar.js';
|
|
13
|
-
import { ProgressList } from '../components/ProgressList.js';
|
|
14
|
-
import { Modal } from '../components/Modal.js';
|
|
15
|
-
import { PickerPanel } from '../components/Picker.js';
|
|
16
|
-
import { DirectoryPicker } from '../components/DirectoryPicker.js';
|
|
17
|
-
import { AdoptModal } from '../components/AdoptModal.js';
|
|
18
|
-
import { useDragSort } from '../components/useDragSort.js';
|
|
19
|
-
import { BrandMark, IconTerminal, IconFolder, IconFolderOpen, IconBranch, IconChevronDown, IconForCliType, IconClaudeColor, IconCodexColor, IconCopilotColor, IconSparkle, IconWorkspace, IconArrowRight } from '../icons.js';
|
|
20
|
-
|
|
21
|
-
const ROOT_ID = 'newSessionProgress';
|
|
22
|
-
const selectedRepos = signal(new Set());
|
|
23
|
-
|
|
24
|
-
function initRepoSelection(repos) {
|
|
25
|
-
const want = new Set(repos.filter((r) => r.defaultSelected).map((r) => r.name));
|
|
26
|
-
selectedRepos.value = want;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function LaunchHero() {
|
|
30
|
-
const cfg = config.value || {};
|
|
31
|
-
const clis = cfg.clis || [];
|
|
32
|
-
const repos = cfg.repos || [];
|
|
33
|
-
const defaultCli = cfg.defaultCliId || clis[0]?.id || '';
|
|
34
|
-
|
|
35
|
-
const [cliId, setCliId] = useState(defaultCli);
|
|
36
|
-
const [folderId, setFolderId] = useState('');
|
|
37
|
-
const [mode, setMode] = useState('auto'); // 'auto' = workspace + repos, 'cwd' = pick existing dir
|
|
38
|
-
const [cwd, setCwd] = useState(''); // only used when mode === 'cwd'
|
|
39
|
-
const [busy, setBusy] = useState(false);
|
|
40
|
-
const [result, setResult] = useState('');
|
|
41
|
-
const [openPicker, setOpenPicker] = useState(null); // 'cli' | 'folder' | 'workdir' | null
|
|
42
|
-
const [adoptOpen, setAdoptOpen] = useState(false);
|
|
43
|
-
|
|
44
|
-
// If config arrives after first render (cliId === '') OR the saved
|
|
45
|
-
// cli was removed, snap to the current default.
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
if (!clis.length) return;
|
|
48
|
-
if (!cliId || !clis.find((c) => c.id === cliId)) {
|
|
49
|
-
setCliId(defaultCli);
|
|
50
|
-
}
|
|
51
|
-
}, [defaultCli, clis.length]);
|
|
52
|
-
|
|
53
|
-
const folderDnd = useDragSort(
|
|
54
|
-
folders.value.map((f) => f.id),
|
|
55
|
-
async (nextIds) => {
|
|
56
|
-
try { await reorderFolders(nextIds); }
|
|
57
|
-
catch (e) { setToast(e.message, 'error'); }
|
|
58
|
-
},
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
const sig = repos.map((r) => r.name + ':' + r.defaultSelected).join('|');
|
|
62
|
-
useStateOnce(sig, () => initRepoSelection(repos));
|
|
63
|
-
|
|
64
|
-
const cli = clis.find((c) => c.id === cliId) || clis[0];
|
|
65
|
-
const folder = folders.value.find((f) => f.id === folderId);
|
|
66
|
-
|
|
67
|
-
const toggleRepo = (name, on) => {
|
|
68
|
-
const next = new Set(selectedRepos.value);
|
|
69
|
-
if (on) next.add(name); else next.delete(name);
|
|
70
|
-
selectedRepos.value = next;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const onLaunch = async () => {
|
|
74
|
-
const useCwd = mode === 'cwd' && cwd;
|
|
75
|
-
const chosen = useCwd ? [] : [...selectedRepos.value];
|
|
76
|
-
setBusy(true);
|
|
77
|
-
setResult('');
|
|
78
|
-
resetProgress(chosen, ROOT_ID);
|
|
79
|
-
try {
|
|
80
|
-
const final = await streamNewSession(
|
|
81
|
-
{
|
|
82
|
-
repos: chosen,
|
|
83
|
-
cwd: useCwd ? cwd : undefined,
|
|
84
|
-
cliId: cliId || undefined,
|
|
85
|
-
folderId: folderId || undefined,
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
progressRootId: ROOT_ID,
|
|
89
|
-
onMeta: (ev) => {
|
|
90
|
-
if (ev.type === 'workspace') {
|
|
91
|
-
setResult(`workspace · ${ev.workspace.path}${ev.created ? ' · newly created' : ''}`);
|
|
92
|
-
} else if (ev.type === 'launched') {
|
|
93
|
-
setResult(`launched · session ${ev.launched.id}`);
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
);
|
|
98
|
-
if (final.success && final.launched) {
|
|
99
|
-
setToast(`launched · ${final.workspace.name}`);
|
|
100
|
-
await refreshAll();
|
|
101
|
-
selectSession(final.launched.id);
|
|
102
|
-
selectTab('sessions');
|
|
103
|
-
} else if (!final.success) {
|
|
104
|
-
setResult(`error · ${final.error}`);
|
|
105
|
-
setToast(final.error || 'launch failed', 'error');
|
|
106
|
-
}
|
|
107
|
-
} catch (e) {
|
|
108
|
-
setResult(`error · ${e.message}`);
|
|
109
|
-
setToast(e.message, 'error');
|
|
110
|
-
} finally {
|
|
111
|
-
setBusy(false);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
const close = () => setOpenPicker(null);
|
|
116
|
-
|
|
117
|
-
// --- CLI picker config -----------------------------------------------
|
|
118
|
-
const cliItems = clis.map((c) => {
|
|
119
|
-
const Icon = IconForCliType(c.type);
|
|
120
|
-
return {
|
|
121
|
-
id: c.id,
|
|
122
|
-
icon: html`<${Icon} />`,
|
|
123
|
-
label: c.name,
|
|
124
|
-
meta: `${c.command}${c.shell && c.shell !== 'direct' ? ' · ' + c.shell : ''}`,
|
|
125
|
-
};
|
|
126
|
-
});
|
|
127
|
-
const cliCreateFields = [
|
|
128
|
-
{ key: 'type', label: 'Type', type: 'iconRadio', default: 'other', options: [
|
|
129
|
-
{ value: 'claude', label: 'Claude CLI', icon: html`<${IconClaudeColor} />` },
|
|
130
|
-
{ value: 'codex', label: 'Codex CLI', icon: html`<${IconCodexColor} />` },
|
|
131
|
-
{ value: 'copilot', label: 'GitHub Copilot', icon: html`<${IconCopilotColor} />` },
|
|
132
|
-
{ value: 'other', label: 'Other', icon: html`<${IconTerminal} />` },
|
|
133
|
-
],
|
|
134
|
-
onChange: (v, next) => {
|
|
135
|
-
const presets = { claude: { command: 'claude', resumeArgs: '--continue', resumeIdArgs: '--resume <id>', name: 'Claude Code' },
|
|
136
|
-
codex: { command: 'codex', resumeArgs: 'resume --last', resumeIdArgs: 'resume <id>', name: 'OpenAI Codex' },
|
|
137
|
-
copilot: { command: 'copilot', resumeArgs: '--continue', resumeIdArgs: '--resume <id>', name: 'GitHub Copilot' },
|
|
138
|
-
other: {} }[v] || {};
|
|
139
|
-
const patch = {};
|
|
140
|
-
if (presets.resumeArgs != null) patch.resumeArgs = presets.resumeArgs;
|
|
141
|
-
if (presets.resumeIdArgs != null) patch.resumeIdArgs = presets.resumeIdArgs;
|
|
142
|
-
if (!next.command || !next.command.trim()) patch.command = presets.command || '';
|
|
143
|
-
if (!next.name || !next.name.trim()) patch.name = presets.name || '';
|
|
144
|
-
return patch;
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
{ key: 'name', label: 'Name', placeholder: 'My CLI', required: true },
|
|
148
|
-
{ key: 'command', label: 'Command', mono: true, placeholder: 'ccp / claude / ...', required: true },
|
|
149
|
-
{ key: 'args', label: 'Args (space-separated)', mono: true, placeholder: '' },
|
|
150
|
-
{ key: 'resumeArgs', label: 'Resume args (fallback)', mono: true, placeholder: '--continue',
|
|
151
|
-
hint: 'Used when ccsm has no captured upstream session id.' },
|
|
152
|
-
{ key: 'resumeIdArgs', label: 'Resume by id args', mono: true, placeholder: '--resume <id>',
|
|
153
|
-
hint: 'Use <id> as the placeholder for the captured upstream session UUID.' },
|
|
154
|
-
{ key: 'shell', label: 'Shell', type: 'select', default: 'direct', options: [
|
|
155
|
-
{ value: 'direct', label: 'direct (real .exe / .cmd)' },
|
|
156
|
-
{ value: 'pwsh', label: 'pwsh (PowerShell aliases & functions)' },
|
|
157
|
-
{ value: 'cmd', label: 'cmd (doskey)' },
|
|
158
|
-
] },
|
|
159
|
-
];
|
|
160
|
-
|
|
161
|
-
// --- Folder picker config --------------------------------------------
|
|
162
|
-
const folderItems = [
|
|
163
|
-
{ id: '', label: 'Unsorted', meta: 'no folder', undraggable: true },
|
|
164
|
-
...folders.value.map((f) => ({ id: f.id, label: f.name })),
|
|
165
|
-
];
|
|
166
|
-
const folderCreateFields = [
|
|
167
|
-
{ key: 'name', label: 'Folder name', placeholder: 'Work / Personal / ...', autoFocus: true, required: true },
|
|
168
|
-
];
|
|
169
|
-
|
|
170
|
-
// --- Repo picker config ----------------------------------------------
|
|
171
|
-
const repoItems = repos.map((r) => ({
|
|
172
|
-
id: r.name,
|
|
173
|
-
label: r.name,
|
|
174
|
-
meta: r.url,
|
|
175
|
-
}));
|
|
176
|
-
const repoCreateFields = [
|
|
177
|
-
{ key: 'name', label: 'Name', placeholder: 'my-repo', autoFocus: true, required: true },
|
|
178
|
-
{ key: 'url', label: 'URL', mono: true, placeholder: 'https://github.com/me/foo.git', required: true },
|
|
179
|
-
];
|
|
180
|
-
|
|
181
|
-
const selectedRepoCount = selectedRepos.value.size;
|
|
182
|
-
|
|
183
|
-
// Label + title for the unified workdir/repos pill.
|
|
184
|
-
const workdirLabel = (() => {
|
|
185
|
-
if (mode === 'cwd') return cwd ? shortenPath(cwd) : 'Pick folder…';
|
|
186
|
-
if (selectedRepoCount === 0) return 'Auto workspace';
|
|
187
|
-
if (selectedRepoCount === 1) return [...selectedRepos.value][0];
|
|
188
|
-
return `Auto · ${selectedRepoCount} repos`;
|
|
189
|
-
})();
|
|
190
|
-
const workdirTitle = mode === 'cwd'
|
|
191
|
-
? (cwd ? `Working dir · ${cwd}` : 'Pick an existing folder')
|
|
192
|
-
: (selectedRepoCount === 0
|
|
193
|
-
? 'Auto: a fresh workspace under workDir (no repos)'
|
|
194
|
-
: `Auto workspace · clone ${selectedRepoCount} repo(s)`);
|
|
195
|
-
|
|
196
|
-
return html`
|
|
197
|
-
<div class="launch-hero">
|
|
198
|
-
<div class="launch-brand">
|
|
199
|
-
<span class="launch-brand-mark"><${BrandMark} /></span>
|
|
200
|
-
</div>
|
|
201
|
-
<h1 class="launch-tagline">
|
|
202
|
-
One shell. <em>Every CLI.</em>
|
|
203
|
-
</h1>
|
|
204
|
-
|
|
205
|
-
<div class="launch-toolbar">
|
|
206
|
-
<button type="button"
|
|
207
|
-
class=${`pill${openPicker === 'cli' ? ' is-open' : ''}`}
|
|
208
|
-
title="Choose CLI"
|
|
209
|
-
onClick=${() => setOpenPicker(openPicker === 'cli' ? null : 'cli')}>
|
|
210
|
-
<span class="pill-icon">${(() => { const I = IconForCliType(cli?.type); return html`<${I} />`; })()}</span>
|
|
211
|
-
<span class="pill-label">${cli ? cli.name : 'Choose CLI'}</span>
|
|
212
|
-
<span class="pill-chev"><${IconChevronDown} /></span>
|
|
213
|
-
</button>
|
|
214
|
-
${openPicker === 'cli' ? html`
|
|
215
|
-
<${Modal} title="Choose CLI" onClose=${close} width=${440}>
|
|
216
|
-
<${PickerPanel} items=${cliItems} selectedId=${cliId}
|
|
217
|
-
showSearch=${false}
|
|
218
|
-
onSelect=${(id) => setCliId(id)}
|
|
219
|
-
onCreate=${async (v) => {
|
|
220
|
-
try {
|
|
221
|
-
const id = await createCli(v);
|
|
222
|
-
setToast(`created CLI · ${v.name}`);
|
|
223
|
-
return id;
|
|
224
|
-
} catch (e) { setToast(e.message, 'error'); throw e; }
|
|
225
|
-
}}
|
|
226
|
-
createLabel="New CLI" createFields=${cliCreateFields}
|
|
227
|
-
onClose=${close} />
|
|
228
|
-
</${Modal}>` : null}
|
|
229
|
-
|
|
230
|
-
<button type="button"
|
|
231
|
-
class=${`pill${openPicker === 'workdir' ? ' is-open' : ''}${(mode === 'cwd' && cwd) ? ' is-set' : ''}`}
|
|
232
|
-
title=${workdirTitle}
|
|
233
|
-
onClick=${() => setOpenPicker(openPicker === 'workdir' ? null : 'workdir')}>
|
|
234
|
-
<span class="pill-icon"><${IconWorkspace} /></span>
|
|
235
|
-
<span class="pill-label">${workdirLabel}</span>
|
|
236
|
-
<span class="pill-chev"><${IconChevronDown} /></span>
|
|
237
|
-
</button>
|
|
238
|
-
${openPicker === 'workdir' ? html`
|
|
239
|
-
<${Modal} title="Working directory" onClose=${close} width=${640}>
|
|
240
|
-
<div class="workdir-modal">
|
|
241
|
-
<div class="workdir-mode-grid">
|
|
242
|
-
<button type="button"
|
|
243
|
-
class=${`workdir-mode-opt${mode === 'auto' ? ' is-active' : ''}`}
|
|
244
|
-
onClick=${() => setMode('auto')}>
|
|
245
|
-
<span class="workdir-mode-icon"><${IconSparkle} /></span>
|
|
246
|
-
<span class="workdir-mode-name">Auto workspace</span>
|
|
247
|
-
<span class="workdir-mode-sub">Fresh <span class="mono">ws-N</span> + clone repos</span>
|
|
248
|
-
</button>
|
|
249
|
-
<button type="button"
|
|
250
|
-
class=${`workdir-mode-opt${mode === 'cwd' ? ' is-active' : ''}`}
|
|
251
|
-
onClick=${() => setMode('cwd')}>
|
|
252
|
-
<span class="workdir-mode-icon"><${IconFolderOpen} /></span>
|
|
253
|
-
<span class="workdir-mode-name">Existing folder</span>
|
|
254
|
-
<span class="workdir-mode-sub">Launch directly · no clone</span>
|
|
255
|
-
</button>
|
|
256
|
-
</div>
|
|
257
|
-
<div class="workdir-detail">
|
|
258
|
-
${mode === 'auto' ? html`
|
|
259
|
-
<${PickerPanel} items=${repoItems} multi
|
|
260
|
-
showSearch=${false}
|
|
261
|
-
selectedIds=${selectedRepos.value}
|
|
262
|
-
onToggle=${toggleRepo}
|
|
263
|
-
title="Repos to clone"
|
|
264
|
-
emptyHint="No repos configured. Add one below to clone it into the workspace."
|
|
265
|
-
onCreate=${async (v) => {
|
|
266
|
-
try {
|
|
267
|
-
const name = await createRepo(v);
|
|
268
|
-
setToast(`added repo · ${name}`);
|
|
269
|
-
return name;
|
|
270
|
-
} catch (e) { setToast(e.message, 'error'); throw e; }
|
|
271
|
-
}}
|
|
272
|
-
createLabel="New repo" createFields=${repoCreateFields}
|
|
273
|
-
onClose=${close} />
|
|
274
|
-
` : html`
|
|
275
|
-
<${DirectoryPicker} initialPath=${cwd || ''}
|
|
276
|
-
onPick=${(p) => { setCwd(p); }} />
|
|
277
|
-
`}
|
|
278
|
-
</div>
|
|
279
|
-
<div class="workdir-foot">
|
|
280
|
-
<button type="button" class="action subtle" onClick=${close}>Cancel</button>
|
|
281
|
-
<button type="button" class="action primary"
|
|
282
|
-
disabled=${mode === 'cwd' && !cwd}
|
|
283
|
-
onClick=${close}>
|
|
284
|
-
${mode === 'cwd' ? 'Use folder' : 'Done'}
|
|
285
|
-
</button>
|
|
286
|
-
</div>
|
|
287
|
-
</div>
|
|
288
|
-
</${Modal}>` : null}
|
|
289
|
-
|
|
290
|
-
<button type="button"
|
|
291
|
-
class=${`pill${openPicker === 'folder' ? ' is-open' : ''}`}
|
|
292
|
-
title="Choose folder"
|
|
293
|
-
onClick=${() => setOpenPicker(openPicker === 'folder' ? null : 'folder')}>
|
|
294
|
-
<span class="pill-icon"><${IconFolder} /></span>
|
|
295
|
-
<span class="pill-label">${folder ? folder.name : 'Unsorted'}</span>
|
|
296
|
-
<span class="pill-chev"><${IconChevronDown} /></span>
|
|
297
|
-
</button>
|
|
298
|
-
${openPicker === 'folder' ? html`
|
|
299
|
-
<${Modal} title="Choose folder" onClose=${close} width=${400}>
|
|
300
|
-
<${PickerPanel} items=${folderItems} selectedId=${folderId}
|
|
301
|
-
showSearch=${false}
|
|
302
|
-
dnd=${folderDnd}
|
|
303
|
-
onSelect=${(id) => setFolderId(id)}
|
|
304
|
-
onCreate=${async (v) => {
|
|
305
|
-
try {
|
|
306
|
-
const f = await createFolder(v.name);
|
|
307
|
-
setToast(`created folder · ${v.name}`);
|
|
308
|
-
return f?.id;
|
|
309
|
-
} catch (e) { setToast(e.message, 'error'); throw e; }
|
|
310
|
-
}}
|
|
311
|
-
createLabel="New folder" createFields=${folderCreateFields}
|
|
312
|
-
onClose=${close} />
|
|
313
|
-
</${Modal}>` : null}
|
|
314
|
-
</div>
|
|
315
|
-
|
|
316
|
-
<button class="action primary launch-cta"
|
|
317
|
-
disabled=${busy || !cliId || (mode === 'cwd' && !cwd)}
|
|
318
|
-
onClick=${onLaunch}>
|
|
319
|
-
${busy ? 'Launching…' : html`Launch <span class="launch-cta-plane" aria-hidden="true">
|
|
320
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
|
321
|
-
<path d="M22 2 11 13"/>
|
|
322
|
-
<path d="M22 2 15 22l-4-9-9-4Z"/>
|
|
323
|
-
</svg>
|
|
324
|
-
</span>`}
|
|
325
|
-
</button>
|
|
326
|
-
|
|
327
|
-
<button type="button" class="launch-import-link"
|
|
328
|
-
onClick=${() => setAdoptOpen(true)}>
|
|
329
|
-
or import existing<span class="launch-import-arrow" aria-hidden="true"><${IconArrowRight} /></span>
|
|
330
|
-
</button>
|
|
331
|
-
|
|
332
|
-
${adoptOpen ? html`
|
|
333
|
-
<${AdoptModal} onClose=${() => setAdoptOpen(false)}
|
|
334
|
-
onAdopted=${async (id) => {
|
|
335
|
-
setAdoptOpen(false);
|
|
336
|
-
await refreshAll();
|
|
337
|
-
if (id) selectSession(id);
|
|
338
|
-
selectTab('sessions');
|
|
339
|
-
}} />` : null}
|
|
340
|
-
|
|
341
|
-
<${ProgressList} rootId=${ROOT_ID} />
|
|
342
|
-
${result ? html`<div class="launch-status mono">${result}</div>` : null}
|
|
343
|
-
</div>`;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
let lastKey = null;
|
|
347
|
-
function useStateOnce(key, init) {
|
|
348
|
-
if (key !== lastKey) {
|
|
349
|
-
lastKey = key;
|
|
350
|
-
init();
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
// Truncate a long path so it fits the pill nicely.
|
|
355
|
-
// C:\Users\admin\proj\foo\bar → …\foo\bar
|
|
356
|
-
function shortenPath(p) {
|
|
357
|
-
if (!p) return '';
|
|
358
|
-
if (p.length <= 28) return p;
|
|
359
|
-
const sep = p.includes('\\') ? '\\' : '/';
|
|
360
|
-
const parts = p.split(sep).filter(Boolean);
|
|
361
|
-
if (parts.length <= 2) return p;
|
|
362
|
-
return '…' + sep + parts.slice(-2).join(sep);
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
export function LaunchPage() {
|
|
366
|
-
return html`
|
|
367
|
-
<${PageTitleBar} title="New session" />
|
|
368
|
-
<${LaunchHero} />`;
|
|
369
|
-
}
|
|
1
|
+
// Launch page. ChatGPT-style centered composer with custom popover
|
|
2
|
+
// pickers for CLI / Folder / Repos. Each picker shares the unified
|
|
3
|
+
// PickerPanel component and can inline-create new entries.
|
|
4
|
+
|
|
5
|
+
import { html } from '../html.js';
|
|
6
|
+
import { useState, useEffect } from 'preact/hooks';
|
|
7
|
+
import { signal } from '@preact/signals';
|
|
8
|
+
import { config, folders, selectSession, selectTab } from '../state.js';
|
|
9
|
+
import { createCli, createFolder, createRepo, reorderFolders, refreshAll } from '../api.js';
|
|
10
|
+
import { setToast } from '../toast.js';
|
|
11
|
+
import { streamNewSession, resetProgress } from '../streaming.js';
|
|
12
|
+
import { PageTitleBar } from '../components/PageTitleBar.js';
|
|
13
|
+
import { ProgressList } from '../components/ProgressList.js';
|
|
14
|
+
import { Modal } from '../components/Modal.js';
|
|
15
|
+
import { PickerPanel } from '../components/Picker.js';
|
|
16
|
+
import { DirectoryPicker } from '../components/DirectoryPicker.js';
|
|
17
|
+
import { AdoptModal } from '../components/AdoptModal.js';
|
|
18
|
+
import { useDragSort } from '../components/useDragSort.js';
|
|
19
|
+
import { BrandMark, IconTerminal, IconFolder, IconFolderOpen, IconBranch, IconChevronDown, IconForCliType, IconClaudeColor, IconCodexColor, IconCopilotColor, IconSparkle, IconWorkspace, IconArrowRight } from '../icons.js';
|
|
20
|
+
|
|
21
|
+
const ROOT_ID = 'newSessionProgress';
|
|
22
|
+
const selectedRepos = signal(new Set());
|
|
23
|
+
|
|
24
|
+
function initRepoSelection(repos) {
|
|
25
|
+
const want = new Set(repos.filter((r) => r.defaultSelected).map((r) => r.name));
|
|
26
|
+
selectedRepos.value = want;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function LaunchHero() {
|
|
30
|
+
const cfg = config.value || {};
|
|
31
|
+
const clis = cfg.clis || [];
|
|
32
|
+
const repos = cfg.repos || [];
|
|
33
|
+
const defaultCli = cfg.defaultCliId || clis[0]?.id || '';
|
|
34
|
+
|
|
35
|
+
const [cliId, setCliId] = useState(defaultCli);
|
|
36
|
+
const [folderId, setFolderId] = useState('');
|
|
37
|
+
const [mode, setMode] = useState('auto'); // 'auto' = workspace + repos, 'cwd' = pick existing dir
|
|
38
|
+
const [cwd, setCwd] = useState(''); // only used when mode === 'cwd'
|
|
39
|
+
const [busy, setBusy] = useState(false);
|
|
40
|
+
const [result, setResult] = useState('');
|
|
41
|
+
const [openPicker, setOpenPicker] = useState(null); // 'cli' | 'folder' | 'workdir' | null
|
|
42
|
+
const [adoptOpen, setAdoptOpen] = useState(false);
|
|
43
|
+
|
|
44
|
+
// If config arrives after first render (cliId === '') OR the saved
|
|
45
|
+
// cli was removed, snap to the current default.
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
if (!clis.length) return;
|
|
48
|
+
if (!cliId || !clis.find((c) => c.id === cliId)) {
|
|
49
|
+
setCliId(defaultCli);
|
|
50
|
+
}
|
|
51
|
+
}, [defaultCli, clis.length]);
|
|
52
|
+
|
|
53
|
+
const folderDnd = useDragSort(
|
|
54
|
+
folders.value.map((f) => f.id),
|
|
55
|
+
async (nextIds) => {
|
|
56
|
+
try { await reorderFolders(nextIds); }
|
|
57
|
+
catch (e) { setToast(e.message, 'error'); }
|
|
58
|
+
},
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
const sig = repos.map((r) => r.name + ':' + r.defaultSelected).join('|');
|
|
62
|
+
useStateOnce(sig, () => initRepoSelection(repos));
|
|
63
|
+
|
|
64
|
+
const cli = clis.find((c) => c.id === cliId) || clis[0];
|
|
65
|
+
const folder = folders.value.find((f) => f.id === folderId);
|
|
66
|
+
|
|
67
|
+
const toggleRepo = (name, on) => {
|
|
68
|
+
const next = new Set(selectedRepos.value);
|
|
69
|
+
if (on) next.add(name); else next.delete(name);
|
|
70
|
+
selectedRepos.value = next;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const onLaunch = async () => {
|
|
74
|
+
const useCwd = mode === 'cwd' && cwd;
|
|
75
|
+
const chosen = useCwd ? [] : [...selectedRepos.value];
|
|
76
|
+
setBusy(true);
|
|
77
|
+
setResult('');
|
|
78
|
+
resetProgress(chosen, ROOT_ID);
|
|
79
|
+
try {
|
|
80
|
+
const final = await streamNewSession(
|
|
81
|
+
{
|
|
82
|
+
repos: chosen,
|
|
83
|
+
cwd: useCwd ? cwd : undefined,
|
|
84
|
+
cliId: cliId || undefined,
|
|
85
|
+
folderId: folderId || undefined,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
progressRootId: ROOT_ID,
|
|
89
|
+
onMeta: (ev) => {
|
|
90
|
+
if (ev.type === 'workspace') {
|
|
91
|
+
setResult(`workspace · ${ev.workspace.path}${ev.created ? ' · newly created' : ''}`);
|
|
92
|
+
} else if (ev.type === 'launched') {
|
|
93
|
+
setResult(`launched · session ${ev.launched.id}`);
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
);
|
|
98
|
+
if (final.success && final.launched) {
|
|
99
|
+
setToast(`launched · ${final.workspace.name}`);
|
|
100
|
+
await refreshAll();
|
|
101
|
+
selectSession(final.launched.id);
|
|
102
|
+
selectTab('sessions');
|
|
103
|
+
} else if (!final.success) {
|
|
104
|
+
setResult(`error · ${final.error}`);
|
|
105
|
+
setToast(final.error || 'launch failed', 'error');
|
|
106
|
+
}
|
|
107
|
+
} catch (e) {
|
|
108
|
+
setResult(`error · ${e.message}`);
|
|
109
|
+
setToast(e.message, 'error');
|
|
110
|
+
} finally {
|
|
111
|
+
setBusy(false);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const close = () => setOpenPicker(null);
|
|
116
|
+
|
|
117
|
+
// --- CLI picker config -----------------------------------------------
|
|
118
|
+
const cliItems = clis.map((c) => {
|
|
119
|
+
const Icon = IconForCliType(c.type);
|
|
120
|
+
return {
|
|
121
|
+
id: c.id,
|
|
122
|
+
icon: html`<${Icon} />`,
|
|
123
|
+
label: c.name,
|
|
124
|
+
meta: `${c.command}${c.shell && c.shell !== 'direct' ? ' · ' + c.shell : ''}`,
|
|
125
|
+
};
|
|
126
|
+
});
|
|
127
|
+
const cliCreateFields = [
|
|
128
|
+
{ key: 'type', label: 'Type', type: 'iconRadio', default: 'other', options: [
|
|
129
|
+
{ value: 'claude', label: 'Claude CLI', icon: html`<${IconClaudeColor} />` },
|
|
130
|
+
{ value: 'codex', label: 'Codex CLI', icon: html`<${IconCodexColor} />` },
|
|
131
|
+
{ value: 'copilot', label: 'GitHub Copilot', icon: html`<${IconCopilotColor} />` },
|
|
132
|
+
{ value: 'other', label: 'Other', icon: html`<${IconTerminal} />` },
|
|
133
|
+
],
|
|
134
|
+
onChange: (v, next) => {
|
|
135
|
+
const presets = { claude: { command: 'claude', resumeArgs: '--continue', resumeIdArgs: '--resume <id>', name: 'Claude Code' },
|
|
136
|
+
codex: { command: 'codex', resumeArgs: 'resume --last', resumeIdArgs: 'resume <id>', name: 'OpenAI Codex' },
|
|
137
|
+
copilot: { command: 'copilot', resumeArgs: '--continue', resumeIdArgs: '--resume <id>', name: 'GitHub Copilot' },
|
|
138
|
+
other: {} }[v] || {};
|
|
139
|
+
const patch = {};
|
|
140
|
+
if (presets.resumeArgs != null) patch.resumeArgs = presets.resumeArgs;
|
|
141
|
+
if (presets.resumeIdArgs != null) patch.resumeIdArgs = presets.resumeIdArgs;
|
|
142
|
+
if (!next.command || !next.command.trim()) patch.command = presets.command || '';
|
|
143
|
+
if (!next.name || !next.name.trim()) patch.name = presets.name || '';
|
|
144
|
+
return patch;
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
{ key: 'name', label: 'Name', placeholder: 'My CLI', required: true },
|
|
148
|
+
{ key: 'command', label: 'Command', mono: true, placeholder: 'ccp / claude / ...', required: true },
|
|
149
|
+
{ key: 'args', label: 'Args (space-separated)', mono: true, placeholder: '' },
|
|
150
|
+
{ key: 'resumeArgs', label: 'Resume args (fallback)', mono: true, placeholder: '--continue',
|
|
151
|
+
hint: 'Used when ccsm has no captured upstream session id.' },
|
|
152
|
+
{ key: 'resumeIdArgs', label: 'Resume by id args', mono: true, placeholder: '--resume <id>',
|
|
153
|
+
hint: 'Use <id> as the placeholder for the captured upstream session UUID.' },
|
|
154
|
+
{ key: 'shell', label: 'Shell', type: 'select', default: 'direct', options: [
|
|
155
|
+
{ value: 'direct', label: 'direct (real .exe / .cmd)' },
|
|
156
|
+
{ value: 'pwsh', label: 'pwsh (PowerShell aliases & functions)' },
|
|
157
|
+
{ value: 'cmd', label: 'cmd (doskey)' },
|
|
158
|
+
] },
|
|
159
|
+
];
|
|
160
|
+
|
|
161
|
+
// --- Folder picker config --------------------------------------------
|
|
162
|
+
const folderItems = [
|
|
163
|
+
{ id: '', label: 'Unsorted', meta: 'no folder', undraggable: true },
|
|
164
|
+
...folders.value.map((f) => ({ id: f.id, label: f.name })),
|
|
165
|
+
];
|
|
166
|
+
const folderCreateFields = [
|
|
167
|
+
{ key: 'name', label: 'Folder name', placeholder: 'Work / Personal / ...', autoFocus: true, required: true },
|
|
168
|
+
];
|
|
169
|
+
|
|
170
|
+
// --- Repo picker config ----------------------------------------------
|
|
171
|
+
const repoItems = repos.map((r) => ({
|
|
172
|
+
id: r.name,
|
|
173
|
+
label: r.name,
|
|
174
|
+
meta: r.url,
|
|
175
|
+
}));
|
|
176
|
+
const repoCreateFields = [
|
|
177
|
+
{ key: 'name', label: 'Name', placeholder: 'my-repo', autoFocus: true, required: true },
|
|
178
|
+
{ key: 'url', label: 'URL', mono: true, placeholder: 'https://github.com/me/foo.git', required: true },
|
|
179
|
+
];
|
|
180
|
+
|
|
181
|
+
const selectedRepoCount = selectedRepos.value.size;
|
|
182
|
+
|
|
183
|
+
// Label + title for the unified workdir/repos pill.
|
|
184
|
+
const workdirLabel = (() => {
|
|
185
|
+
if (mode === 'cwd') return cwd ? shortenPath(cwd) : 'Pick folder…';
|
|
186
|
+
if (selectedRepoCount === 0) return 'Auto workspace';
|
|
187
|
+
if (selectedRepoCount === 1) return [...selectedRepos.value][0];
|
|
188
|
+
return `Auto · ${selectedRepoCount} repos`;
|
|
189
|
+
})();
|
|
190
|
+
const workdirTitle = mode === 'cwd'
|
|
191
|
+
? (cwd ? `Working dir · ${cwd}` : 'Pick an existing folder')
|
|
192
|
+
: (selectedRepoCount === 0
|
|
193
|
+
? 'Auto: a fresh workspace under workDir (no repos)'
|
|
194
|
+
: `Auto workspace · clone ${selectedRepoCount} repo(s)`);
|
|
195
|
+
|
|
196
|
+
return html`
|
|
197
|
+
<div class="launch-hero">
|
|
198
|
+
<div class="launch-brand">
|
|
199
|
+
<span class="launch-brand-mark"><${BrandMark} /></span>
|
|
200
|
+
</div>
|
|
201
|
+
<h1 class="launch-tagline">
|
|
202
|
+
One shell. <em>Every CLI.</em>
|
|
203
|
+
</h1>
|
|
204
|
+
|
|
205
|
+
<div class="launch-toolbar">
|
|
206
|
+
<button type="button"
|
|
207
|
+
class=${`pill${openPicker === 'cli' ? ' is-open' : ''}`}
|
|
208
|
+
title="Choose CLI"
|
|
209
|
+
onClick=${() => setOpenPicker(openPicker === 'cli' ? null : 'cli')}>
|
|
210
|
+
<span class="pill-icon">${(() => { const I = IconForCliType(cli?.type); return html`<${I} />`; })()}</span>
|
|
211
|
+
<span class="pill-label">${cli ? cli.name : 'Choose CLI'}</span>
|
|
212
|
+
<span class="pill-chev"><${IconChevronDown} /></span>
|
|
213
|
+
</button>
|
|
214
|
+
${openPicker === 'cli' ? html`
|
|
215
|
+
<${Modal} title="Choose CLI" onClose=${close} width=${440}>
|
|
216
|
+
<${PickerPanel} items=${cliItems} selectedId=${cliId}
|
|
217
|
+
showSearch=${false}
|
|
218
|
+
onSelect=${(id) => setCliId(id)}
|
|
219
|
+
onCreate=${async (v) => {
|
|
220
|
+
try {
|
|
221
|
+
const id = await createCli(v);
|
|
222
|
+
setToast(`created CLI · ${v.name}`);
|
|
223
|
+
return id;
|
|
224
|
+
} catch (e) { setToast(e.message, 'error'); throw e; }
|
|
225
|
+
}}
|
|
226
|
+
createLabel="New CLI" createFields=${cliCreateFields}
|
|
227
|
+
onClose=${close} />
|
|
228
|
+
</${Modal}>` : null}
|
|
229
|
+
|
|
230
|
+
<button type="button"
|
|
231
|
+
class=${`pill${openPicker === 'workdir' ? ' is-open' : ''}${(mode === 'cwd' && cwd) ? ' is-set' : ''}`}
|
|
232
|
+
title=${workdirTitle}
|
|
233
|
+
onClick=${() => setOpenPicker(openPicker === 'workdir' ? null : 'workdir')}>
|
|
234
|
+
<span class="pill-icon"><${IconWorkspace} /></span>
|
|
235
|
+
<span class="pill-label">${workdirLabel}</span>
|
|
236
|
+
<span class="pill-chev"><${IconChevronDown} /></span>
|
|
237
|
+
</button>
|
|
238
|
+
${openPicker === 'workdir' ? html`
|
|
239
|
+
<${Modal} title="Working directory" onClose=${close} width=${640}>
|
|
240
|
+
<div class="workdir-modal">
|
|
241
|
+
<div class="workdir-mode-grid">
|
|
242
|
+
<button type="button"
|
|
243
|
+
class=${`workdir-mode-opt${mode === 'auto' ? ' is-active' : ''}`}
|
|
244
|
+
onClick=${() => setMode('auto')}>
|
|
245
|
+
<span class="workdir-mode-icon"><${IconSparkle} /></span>
|
|
246
|
+
<span class="workdir-mode-name">Auto workspace</span>
|
|
247
|
+
<span class="workdir-mode-sub">Fresh <span class="mono">ws-N</span> + clone repos</span>
|
|
248
|
+
</button>
|
|
249
|
+
<button type="button"
|
|
250
|
+
class=${`workdir-mode-opt${mode === 'cwd' ? ' is-active' : ''}`}
|
|
251
|
+
onClick=${() => setMode('cwd')}>
|
|
252
|
+
<span class="workdir-mode-icon"><${IconFolderOpen} /></span>
|
|
253
|
+
<span class="workdir-mode-name">Existing folder</span>
|
|
254
|
+
<span class="workdir-mode-sub">Launch directly · no clone</span>
|
|
255
|
+
</button>
|
|
256
|
+
</div>
|
|
257
|
+
<div class="workdir-detail">
|
|
258
|
+
${mode === 'auto' ? html`
|
|
259
|
+
<${PickerPanel} items=${repoItems} multi
|
|
260
|
+
showSearch=${false}
|
|
261
|
+
selectedIds=${selectedRepos.value}
|
|
262
|
+
onToggle=${toggleRepo}
|
|
263
|
+
title="Repos to clone"
|
|
264
|
+
emptyHint="No repos configured. Add one below to clone it into the workspace."
|
|
265
|
+
onCreate=${async (v) => {
|
|
266
|
+
try {
|
|
267
|
+
const name = await createRepo(v);
|
|
268
|
+
setToast(`added repo · ${name}`);
|
|
269
|
+
return name;
|
|
270
|
+
} catch (e) { setToast(e.message, 'error'); throw e; }
|
|
271
|
+
}}
|
|
272
|
+
createLabel="New repo" createFields=${repoCreateFields}
|
|
273
|
+
onClose=${close} />
|
|
274
|
+
` : html`
|
|
275
|
+
<${DirectoryPicker} initialPath=${cwd || ''}
|
|
276
|
+
onPick=${(p) => { setCwd(p); }} />
|
|
277
|
+
`}
|
|
278
|
+
</div>
|
|
279
|
+
<div class="workdir-foot">
|
|
280
|
+
<button type="button" class="action subtle" onClick=${close}>Cancel</button>
|
|
281
|
+
<button type="button" class="action primary"
|
|
282
|
+
disabled=${mode === 'cwd' && !cwd}
|
|
283
|
+
onClick=${close}>
|
|
284
|
+
${mode === 'cwd' ? 'Use folder' : 'Done'}
|
|
285
|
+
</button>
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
</${Modal}>` : null}
|
|
289
|
+
|
|
290
|
+
<button type="button"
|
|
291
|
+
class=${`pill${openPicker === 'folder' ? ' is-open' : ''}`}
|
|
292
|
+
title="Choose folder"
|
|
293
|
+
onClick=${() => setOpenPicker(openPicker === 'folder' ? null : 'folder')}>
|
|
294
|
+
<span class="pill-icon"><${IconFolder} /></span>
|
|
295
|
+
<span class="pill-label">${folder ? folder.name : 'Unsorted'}</span>
|
|
296
|
+
<span class="pill-chev"><${IconChevronDown} /></span>
|
|
297
|
+
</button>
|
|
298
|
+
${openPicker === 'folder' ? html`
|
|
299
|
+
<${Modal} title="Choose folder" onClose=${close} width=${400}>
|
|
300
|
+
<${PickerPanel} items=${folderItems} selectedId=${folderId}
|
|
301
|
+
showSearch=${false}
|
|
302
|
+
dnd=${folderDnd}
|
|
303
|
+
onSelect=${(id) => setFolderId(id)}
|
|
304
|
+
onCreate=${async (v) => {
|
|
305
|
+
try {
|
|
306
|
+
const f = await createFolder(v.name);
|
|
307
|
+
setToast(`created folder · ${v.name}`);
|
|
308
|
+
return f?.id;
|
|
309
|
+
} catch (e) { setToast(e.message, 'error'); throw e; }
|
|
310
|
+
}}
|
|
311
|
+
createLabel="New folder" createFields=${folderCreateFields}
|
|
312
|
+
onClose=${close} />
|
|
313
|
+
</${Modal}>` : null}
|
|
314
|
+
</div>
|
|
315
|
+
|
|
316
|
+
<button class="action primary launch-cta"
|
|
317
|
+
disabled=${busy || !cliId || (mode === 'cwd' && !cwd)}
|
|
318
|
+
onClick=${onLaunch}>
|
|
319
|
+
${busy ? 'Launching…' : html`Launch <span class="launch-cta-plane" aria-hidden="true">
|
|
320
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
|
321
|
+
<path d="M22 2 11 13"/>
|
|
322
|
+
<path d="M22 2 15 22l-4-9-9-4Z"/>
|
|
323
|
+
</svg>
|
|
324
|
+
</span>`}
|
|
325
|
+
</button>
|
|
326
|
+
|
|
327
|
+
<button type="button" class="launch-import-link"
|
|
328
|
+
onClick=${() => setAdoptOpen(true)}>
|
|
329
|
+
or import existing<span class="launch-import-arrow" aria-hidden="true"><${IconArrowRight} /></span>
|
|
330
|
+
</button>
|
|
331
|
+
|
|
332
|
+
${adoptOpen ? html`
|
|
333
|
+
<${AdoptModal} onClose=${() => setAdoptOpen(false)}
|
|
334
|
+
onAdopted=${async (id) => {
|
|
335
|
+
setAdoptOpen(false);
|
|
336
|
+
await refreshAll();
|
|
337
|
+
if (id) selectSession(id);
|
|
338
|
+
selectTab('sessions');
|
|
339
|
+
}} />` : null}
|
|
340
|
+
|
|
341
|
+
<${ProgressList} rootId=${ROOT_ID} />
|
|
342
|
+
${result ? html`<div class="launch-status mono">${result}</div>` : null}
|
|
343
|
+
</div>`;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
let lastKey = null;
|
|
347
|
+
function useStateOnce(key, init) {
|
|
348
|
+
if (key !== lastKey) {
|
|
349
|
+
lastKey = key;
|
|
350
|
+
init();
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// Truncate a long path so it fits the pill nicely.
|
|
355
|
+
// C:\Users\admin\proj\foo\bar → …\foo\bar
|
|
356
|
+
function shortenPath(p) {
|
|
357
|
+
if (!p) return '';
|
|
358
|
+
if (p.length <= 28) return p;
|
|
359
|
+
const sep = p.includes('\\') ? '\\' : '/';
|
|
360
|
+
const parts = p.split(sep).filter(Boolean);
|
|
361
|
+
if (parts.length <= 2) return p;
|
|
362
|
+
return '…' + sep + parts.slice(-2).join(sep);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export function LaunchPage() {
|
|
366
|
+
return html`
|
|
367
|
+
<${PageTitleBar} title="New session" />
|
|
368
|
+
<${LaunchHero} />`;
|
|
369
|
+
}
|