claudeup 0.1.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 +91 -0
- package/bin/claudeup.js +6 -0
- package/dist/data/cli-tools.d.ts +13 -0
- package/dist/data/cli-tools.d.ts.map +1 -0
- package/dist/data/cli-tools.js +91 -0
- package/dist/data/cli-tools.js.map +1 -0
- package/dist/data/marketplaces.d.ts +4 -0
- package/dist/data/marketplaces.d.ts.map +1 -0
- package/dist/data/marketplaces.js +26 -0
- package/dist/data/marketplaces.js.map +1 -0
- package/dist/data/mcp-servers.d.ts +8 -0
- package/dist/data/mcp-servers.d.ts.map +1 -0
- package/dist/data/mcp-servers.js +421 -0
- package/dist/data/mcp-servers.js.map +1 -0
- package/dist/data/statuslines.d.ts +10 -0
- package/dist/data/statuslines.d.ts.map +1 -0
- package/dist/data/statuslines.js +160 -0
- package/dist/data/statuslines.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/services/claude-settings.d.ts +31 -0
- package/dist/services/claude-settings.d.ts.map +1 -0
- package/dist/services/claude-settings.js +177 -0
- package/dist/services/claude-settings.js.map +1 -0
- package/dist/services/mcp-registry.d.ts +10 -0
- package/dist/services/mcp-registry.d.ts.map +1 -0
- package/dist/services/mcp-registry.js +88 -0
- package/dist/services/mcp-registry.js.map +1 -0
- package/dist/services/plugin-manager.d.ts +22 -0
- package/dist/services/plugin-manager.d.ts.map +1 -0
- package/dist/services/plugin-manager.js +115 -0
- package/dist/services/plugin-manager.js.map +1 -0
- package/dist/types/index.d.ts +83 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/ui/app.d.ts +28 -0
- package/dist/ui/app.d.ts.map +1 -0
- package/dist/ui/app.js +408 -0
- package/dist/ui/app.js.map +1 -0
- package/dist/ui/screens/cli-tools.d.ts +3 -0
- package/dist/ui/screens/cli-tools.d.ts.map +1 -0
- package/dist/ui/screens/cli-tools.js +314 -0
- package/dist/ui/screens/cli-tools.js.map +1 -0
- package/dist/ui/screens/main-menu.d.ts +3 -0
- package/dist/ui/screens/main-menu.d.ts.map +1 -0
- package/dist/ui/screens/main-menu.js +110 -0
- package/dist/ui/screens/main-menu.js.map +1 -0
- package/dist/ui/screens/marketplace.d.ts +3 -0
- package/dist/ui/screens/marketplace.d.ts.map +1 -0
- package/dist/ui/screens/marketplace.js +132 -0
- package/dist/ui/screens/marketplace.js.map +1 -0
- package/dist/ui/screens/mcp-registry.d.ts +10 -0
- package/dist/ui/screens/mcp-registry.d.ts.map +1 -0
- package/dist/ui/screens/mcp-registry.js +310 -0
- package/dist/ui/screens/mcp-registry.js.map +1 -0
- package/dist/ui/screens/mcp-setup.d.ts +4 -0
- package/dist/ui/screens/mcp-setup.d.ts.map +1 -0
- package/dist/ui/screens/mcp-setup.js +417 -0
- package/dist/ui/screens/mcp-setup.js.map +1 -0
- package/dist/ui/screens/plugins.d.ts +3 -0
- package/dist/ui/screens/plugins.d.ts.map +1 -0
- package/dist/ui/screens/plugins.js +330 -0
- package/dist/ui/screens/plugins.js.map +1 -0
- package/dist/ui/screens/statusline.d.ts +5 -0
- package/dist/ui/screens/statusline.d.ts.map +1 -0
- package/dist/ui/screens/statusline.js +235 -0
- package/dist/ui/screens/statusline.js.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import blessed from 'neo-blessed';
|
|
2
|
+
import { createHeader, createFooter, showMessage, showConfirm } from '../app.js';
|
|
3
|
+
import { defaultMarketplaces } from '../../data/marketplaces.js';
|
|
4
|
+
import { addMarketplace, removeMarketplace, getConfiguredMarketplaces, enablePlugin, } from '../../services/claude-settings.js';
|
|
5
|
+
import { saveInstalledPluginVersion, removeInstalledPluginVersion, clearMarketplaceCache, getAvailablePlugins, } from '../../services/plugin-manager.js';
|
|
6
|
+
export async function createPluginsScreen(state) {
|
|
7
|
+
createHeader(state, 'Plugins');
|
|
8
|
+
const configuredMarketplaces = await getConfiguredMarketplaces(state.projectPath);
|
|
9
|
+
// Fetch all available plugins
|
|
10
|
+
let allPlugins = [];
|
|
11
|
+
try {
|
|
12
|
+
allPlugins = await getAvailablePlugins(state.projectPath);
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
// Continue with empty plugins
|
|
16
|
+
}
|
|
17
|
+
// Group plugins by marketplace
|
|
18
|
+
const pluginsByMarketplace = new Map();
|
|
19
|
+
for (const plugin of allPlugins) {
|
|
20
|
+
const existing = pluginsByMarketplace.get(plugin.marketplace) || [];
|
|
21
|
+
existing.push(plugin);
|
|
22
|
+
pluginsByMarketplace.set(plugin.marketplace, existing);
|
|
23
|
+
}
|
|
24
|
+
// Build unified list
|
|
25
|
+
const listItems = [];
|
|
26
|
+
for (const marketplace of defaultMarketplaces) {
|
|
27
|
+
const isEnabled = configuredMarketplaces[marketplace.name] !== undefined;
|
|
28
|
+
const plugins = pluginsByMarketplace.get(marketplace.name) || [];
|
|
29
|
+
// Marketplace header
|
|
30
|
+
const enabledBadge = isEnabled ? '{green-fg}✓{/green-fg}' : '{gray-fg}○{/gray-fg}';
|
|
31
|
+
const officialBadge = marketplace.official ? ' {cyan-fg}[Official]{/cyan-fg}' : '';
|
|
32
|
+
const pluginCount = plugins.length > 0 ? ` {gray-fg}(${plugins.length}){/gray-fg}` : '';
|
|
33
|
+
listItems.push({
|
|
34
|
+
label: `${enabledBadge} {bold}${marketplace.displayName}{/bold}${officialBadge}${pluginCount}`,
|
|
35
|
+
type: 'marketplace',
|
|
36
|
+
marketplace,
|
|
37
|
+
marketplaceEnabled: isEnabled,
|
|
38
|
+
});
|
|
39
|
+
// Plugins under this marketplace (if enabled)
|
|
40
|
+
if (isEnabled && plugins.length > 0) {
|
|
41
|
+
for (const plugin of plugins) {
|
|
42
|
+
let status = '{gray-fg}○{/gray-fg}';
|
|
43
|
+
if (plugin.enabled) {
|
|
44
|
+
status = '{green-fg}●{/green-fg}';
|
|
45
|
+
}
|
|
46
|
+
else if (plugin.installedVersion) {
|
|
47
|
+
status = '{yellow-fg}●{/yellow-fg}';
|
|
48
|
+
}
|
|
49
|
+
let versionDisplay = `{gray-fg}v${plugin.version}{/gray-fg}`;
|
|
50
|
+
if (plugin.hasUpdate) {
|
|
51
|
+
versionDisplay = `{yellow-fg}v${plugin.installedVersion} → v${plugin.version}{/yellow-fg}`;
|
|
52
|
+
}
|
|
53
|
+
else if (plugin.installedVersion) {
|
|
54
|
+
versionDisplay = `{green-fg}v${plugin.installedVersion}{/green-fg}`;
|
|
55
|
+
}
|
|
56
|
+
const updateBadge = plugin.hasUpdate ? ' {yellow-fg}⬆{/yellow-fg}' : '';
|
|
57
|
+
listItems.push({
|
|
58
|
+
label: ` ${status} ${plugin.name} ${versionDisplay}${updateBadge}`,
|
|
59
|
+
type: 'plugin',
|
|
60
|
+
plugin,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
else if (isEnabled) {
|
|
65
|
+
listItems.push({
|
|
66
|
+
label: ' {gray-fg}No plugins available{/gray-fg}',
|
|
67
|
+
type: 'empty',
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
// Empty line between marketplaces
|
|
71
|
+
listItems.push({ label: '', type: 'empty' });
|
|
72
|
+
}
|
|
73
|
+
// List
|
|
74
|
+
const list = blessed.list({
|
|
75
|
+
parent: state.screen,
|
|
76
|
+
top: 3,
|
|
77
|
+
left: 2,
|
|
78
|
+
width: '50%-2',
|
|
79
|
+
height: '100%-5',
|
|
80
|
+
items: listItems.map((item) => item.label),
|
|
81
|
+
keys: true,
|
|
82
|
+
vi: false,
|
|
83
|
+
mouse: true,
|
|
84
|
+
tags: true,
|
|
85
|
+
scrollable: true,
|
|
86
|
+
border: { type: 'line' },
|
|
87
|
+
style: {
|
|
88
|
+
selected: { bg: 'blue', fg: 'white' },
|
|
89
|
+
border: { fg: 'gray' },
|
|
90
|
+
},
|
|
91
|
+
scrollbar: { ch: '│', style: { bg: 'gray' } },
|
|
92
|
+
label: ' Marketplaces & Plugins ',
|
|
93
|
+
});
|
|
94
|
+
// Detail panel
|
|
95
|
+
const detailBox = blessed.box({
|
|
96
|
+
parent: state.screen,
|
|
97
|
+
top: 3,
|
|
98
|
+
right: 2,
|
|
99
|
+
width: '50%-2',
|
|
100
|
+
height: '100%-5',
|
|
101
|
+
content: '',
|
|
102
|
+
tags: true,
|
|
103
|
+
border: { type: 'line' },
|
|
104
|
+
style: { border: { fg: 'gray' } },
|
|
105
|
+
label: ' Details ',
|
|
106
|
+
});
|
|
107
|
+
// Update detail panel
|
|
108
|
+
const updateDetail = () => {
|
|
109
|
+
const selected = list.selected;
|
|
110
|
+
const item = listItems[selected];
|
|
111
|
+
if (!item || item.type === 'empty') {
|
|
112
|
+
detailBox.setContent('{gray-fg}Select an item to see details{/gray-fg}');
|
|
113
|
+
state.screen.render();
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (item.type === 'marketplace' && item.marketplace) {
|
|
117
|
+
const mp = item.marketplace;
|
|
118
|
+
const statusText = item.marketplaceEnabled
|
|
119
|
+
? '{green-fg}● Enabled{/green-fg}'
|
|
120
|
+
: '{gray-fg}○ Not added{/gray-fg}';
|
|
121
|
+
const plugins = pluginsByMarketplace.get(mp.name) || [];
|
|
122
|
+
const pluginInfo = plugins.length > 0
|
|
123
|
+
? `{bold}Plugins:{/bold} ${plugins.length} available`
|
|
124
|
+
: '{gray-fg}Enable to see plugins{/gray-fg}';
|
|
125
|
+
const actionText = item.marketplaceEnabled
|
|
126
|
+
? '{red-fg}Press Enter to remove{/red-fg}'
|
|
127
|
+
: '{green-fg}Press Enter to add{/green-fg}';
|
|
128
|
+
const content = `
|
|
129
|
+
{bold}{cyan-fg}${mp.displayName}{/cyan-fg}{/bold}${mp.official ? ' {cyan-fg}[Official]{/cyan-fg}' : ''}
|
|
130
|
+
|
|
131
|
+
${mp.description}
|
|
132
|
+
|
|
133
|
+
{bold}Status:{/bold} ${statusText}
|
|
134
|
+
${pluginInfo}
|
|
135
|
+
|
|
136
|
+
{bold}Source:{/bold}
|
|
137
|
+
{gray-fg}github.com/${mp.source.repo}{/gray-fg}
|
|
138
|
+
|
|
139
|
+
${actionText}
|
|
140
|
+
`.trim();
|
|
141
|
+
detailBox.setContent(content);
|
|
142
|
+
}
|
|
143
|
+
else if (item.type === 'plugin' && item.plugin) {
|
|
144
|
+
const plugin = item.plugin;
|
|
145
|
+
let statusText = '{gray-fg}Not installed{/gray-fg}';
|
|
146
|
+
if (plugin.enabled) {
|
|
147
|
+
statusText = '{green-fg}● Enabled{/green-fg}';
|
|
148
|
+
}
|
|
149
|
+
else if (plugin.installedVersion) {
|
|
150
|
+
statusText = '{yellow-fg}● Installed (disabled){/yellow-fg}';
|
|
151
|
+
}
|
|
152
|
+
let versionInfo = `{bold}Latest:{/bold} v${plugin.version}`;
|
|
153
|
+
if (plugin.installedVersion) {
|
|
154
|
+
versionInfo = `{bold}Installed:{/bold} v${plugin.installedVersion}\n{bold}Latest:{/bold} v${plugin.version}`;
|
|
155
|
+
if (plugin.hasUpdate) {
|
|
156
|
+
versionInfo += '\n{yellow-fg}⬆ Update available{/yellow-fg}';
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
let actions = '';
|
|
160
|
+
if (plugin.installedVersion) {
|
|
161
|
+
actions = plugin.enabled
|
|
162
|
+
? '{cyan-fg}[Enter]{/cyan-fg} Disable'
|
|
163
|
+
: '{cyan-fg}[Enter]{/cyan-fg} Enable';
|
|
164
|
+
if (plugin.hasUpdate) {
|
|
165
|
+
actions += ' {green-fg}[u]{/green-fg} Update';
|
|
166
|
+
}
|
|
167
|
+
actions += ' {red-fg}[d]{/red-fg} Uninstall';
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
actions = '{green-fg}[Enter]{/green-fg} Install & Enable';
|
|
171
|
+
}
|
|
172
|
+
const content = `
|
|
173
|
+
{bold}{cyan-fg}${plugin.name}{/cyan-fg}{/bold}
|
|
174
|
+
|
|
175
|
+
${plugin.description}
|
|
176
|
+
|
|
177
|
+
{bold}Status:{/bold} ${statusText}
|
|
178
|
+
|
|
179
|
+
${versionInfo}
|
|
180
|
+
|
|
181
|
+
{bold}ID:{/bold} ${plugin.id}
|
|
182
|
+
|
|
183
|
+
${actions}
|
|
184
|
+
`.trim();
|
|
185
|
+
detailBox.setContent(content);
|
|
186
|
+
}
|
|
187
|
+
state.screen.render();
|
|
188
|
+
};
|
|
189
|
+
list.on('select item', updateDetail);
|
|
190
|
+
setTimeout(updateDetail, 0);
|
|
191
|
+
// Handle selection (Enter)
|
|
192
|
+
list.on('select', async (_item, index) => {
|
|
193
|
+
const selected = listItems[index];
|
|
194
|
+
if (!selected || selected.type === 'empty')
|
|
195
|
+
return;
|
|
196
|
+
if (selected.type === 'marketplace' && selected.marketplace) {
|
|
197
|
+
const mp = selected.marketplace;
|
|
198
|
+
if (selected.marketplaceEnabled) {
|
|
199
|
+
// Remove marketplace
|
|
200
|
+
const confirm = await showConfirm(state, `Remove ${mp.displayName}?`, 'Plugins from this marketplace will no longer be available.');
|
|
201
|
+
if (confirm) {
|
|
202
|
+
await removeMarketplace(mp.name, state.projectPath);
|
|
203
|
+
clearMarketplaceCache();
|
|
204
|
+
await showMessage(state, 'Removed', `${mp.displayName} removed.`, 'success');
|
|
205
|
+
createPluginsScreen(state);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
// Add marketplace
|
|
210
|
+
await addMarketplace(mp, state.projectPath);
|
|
211
|
+
clearMarketplaceCache();
|
|
212
|
+
await showMessage(state, 'Added', `${mp.displayName} added.\nPlugins are now available below.`, 'success');
|
|
213
|
+
createPluginsScreen(state);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
else if (selected.type === 'plugin' && selected.plugin) {
|
|
217
|
+
const plugin = selected.plugin;
|
|
218
|
+
if (plugin.installedVersion) {
|
|
219
|
+
// Toggle enabled/disabled
|
|
220
|
+
const newState = !plugin.enabled;
|
|
221
|
+
await enablePlugin(plugin.id, newState, state.projectPath);
|
|
222
|
+
clearMarketplaceCache();
|
|
223
|
+
await showMessage(state, newState ? 'Enabled' : 'Disabled', `${plugin.name} ${newState ? 'enabled' : 'disabled'}.\nRestart Claude Code to apply.`, 'success');
|
|
224
|
+
createPluginsScreen(state);
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
// Install plugin
|
|
228
|
+
await enablePlugin(plugin.id, true, state.projectPath);
|
|
229
|
+
await saveInstalledPluginVersion(plugin.id, plugin.version, state.projectPath);
|
|
230
|
+
clearMarketplaceCache();
|
|
231
|
+
await showMessage(state, 'Installed', `${plugin.name} v${plugin.version} installed.\nRestart Claude Code to apply.`, 'success');
|
|
232
|
+
createPluginsScreen(state);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
// Update plugin (u key)
|
|
237
|
+
state.screen.key(['u'], async () => {
|
|
238
|
+
if (state.isSearching)
|
|
239
|
+
return;
|
|
240
|
+
const selected = list.selected;
|
|
241
|
+
const item = listItems[selected];
|
|
242
|
+
if (!item || item.type !== 'plugin' || !item.plugin)
|
|
243
|
+
return;
|
|
244
|
+
const plugin = item.plugin;
|
|
245
|
+
if (!plugin.hasUpdate) {
|
|
246
|
+
await showMessage(state, 'No Update', `${plugin.name} is at the latest version.`, 'info');
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
const confirm = await showConfirm(state, 'Update Plugin?', `Update ${plugin.name} to v${plugin.version}?`);
|
|
250
|
+
if (confirm) {
|
|
251
|
+
await saveInstalledPluginVersion(plugin.id, plugin.version, state.projectPath);
|
|
252
|
+
clearMarketplaceCache();
|
|
253
|
+
await showMessage(state, 'Updated', `${plugin.name} updated.\nRestart Claude Code to apply.`, 'success');
|
|
254
|
+
createPluginsScreen(state);
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
// Uninstall plugin (d key)
|
|
258
|
+
state.screen.key(['d'], async () => {
|
|
259
|
+
if (state.isSearching)
|
|
260
|
+
return;
|
|
261
|
+
const selected = list.selected;
|
|
262
|
+
const item = listItems[selected];
|
|
263
|
+
if (!item || item.type !== 'plugin' || !item.plugin)
|
|
264
|
+
return;
|
|
265
|
+
const plugin = item.plugin;
|
|
266
|
+
if (!plugin.installedVersion) {
|
|
267
|
+
await showMessage(state, 'Not Installed', `${plugin.name} is not installed.`, 'info');
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
const confirm = await showConfirm(state, 'Uninstall?', `Remove ${plugin.name}?`);
|
|
271
|
+
if (confirm) {
|
|
272
|
+
await enablePlugin(plugin.id, false, state.projectPath);
|
|
273
|
+
await removeInstalledPluginVersion(plugin.id, state.projectPath);
|
|
274
|
+
clearMarketplaceCache();
|
|
275
|
+
await showMessage(state, 'Uninstalled', `${plugin.name} removed.\nRestart Claude Code to apply.`, 'success');
|
|
276
|
+
createPluginsScreen(state);
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
// Refresh (r key)
|
|
280
|
+
state.screen.key(['r'], async () => {
|
|
281
|
+
if (state.isSearching)
|
|
282
|
+
return;
|
|
283
|
+
clearMarketplaceCache();
|
|
284
|
+
createPluginsScreen(state);
|
|
285
|
+
});
|
|
286
|
+
// Update all plugins (a key)
|
|
287
|
+
state.screen.key(['a'], async () => {
|
|
288
|
+
if (state.isSearching)
|
|
289
|
+
return;
|
|
290
|
+
const updatable = allPlugins.filter((p) => p.hasUpdate);
|
|
291
|
+
if (updatable.length === 0) {
|
|
292
|
+
await showMessage(state, 'All Up to Date', 'All plugins are at the latest version.', 'info');
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
const confirm = await showConfirm(state, 'Update All?', `Update ${updatable.length} plugin(s)?`);
|
|
296
|
+
if (confirm) {
|
|
297
|
+
for (const plugin of updatable) {
|
|
298
|
+
await saveInstalledPluginVersion(plugin.id, plugin.version, state.projectPath);
|
|
299
|
+
}
|
|
300
|
+
clearMarketplaceCache();
|
|
301
|
+
await showMessage(state, 'Updated', `Updated ${updatable.length} plugin(s).\nRestart Claude Code to apply.`, 'success');
|
|
302
|
+
createPluginsScreen(state);
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
// Navigation
|
|
306
|
+
list.key(['j'], () => {
|
|
307
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
308
|
+
list.down();
|
|
309
|
+
state.screen.render();
|
|
310
|
+
});
|
|
311
|
+
list.key(['k'], () => {
|
|
312
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
313
|
+
list.up();
|
|
314
|
+
state.screen.render();
|
|
315
|
+
});
|
|
316
|
+
// Legend
|
|
317
|
+
blessed.box({
|
|
318
|
+
parent: state.screen,
|
|
319
|
+
bottom: 1,
|
|
320
|
+
right: 2,
|
|
321
|
+
width: 45,
|
|
322
|
+
height: 1,
|
|
323
|
+
content: '{green-fg}●{/green-fg} Enabled {yellow-fg}●{/yellow-fg} Disabled {gray-fg}○{/gray-fg} Not installed',
|
|
324
|
+
tags: true,
|
|
325
|
+
});
|
|
326
|
+
createFooter(state, '↑↓ Navigate │ Enter Toggle │ u Update │ d Uninstall │ a Update All │ r Refresh');
|
|
327
|
+
list.focus();
|
|
328
|
+
state.screen.render();
|
|
329
|
+
}
|
|
330
|
+
//# sourceMappingURL=plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/ui/screens/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,YAAY,GACb,MAAM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C7D,IAAY,CAAC,IAAI,EAAE,CAAC;QACrB,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE;QACnB,8DAA8D;QAC7D,IAAY,CAAC,EAAE,EAAE,CAAC;QACnB,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,SAAS;IACT,OAAO,CAAC,GAAG,CAAC;QACV,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,uGAAuG;QAChH,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IAEH,YAAY,CAAC,KAAK,EAAE,gFAAgF,CAAC,CAAC;IAEtG,IAAI,CAAC,KAAK,EAAE,CAAC;IACb,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statusline.d.ts","sourceRoot":"","sources":["../../../src/ui/screens/statusline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAY1C,KAAK,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElC,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,GAAE,KAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8R5G"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import blessed from 'neo-blessed';
|
|
2
|
+
import { createHeader, createFooter, showMessage, showInput } from '../app.js';
|
|
3
|
+
import { statusLineCategories } from '../../data/statuslines.js';
|
|
4
|
+
import { setStatusLine, getStatusLine, setGlobalStatusLine, getGlobalStatusLine, getEffectiveStatusLine, } from '../../services/claude-settings.js';
|
|
5
|
+
export async function createStatusLineScreen(state, initialScope = 'project') {
|
|
6
|
+
createHeader(state, 'Status Line Configuration');
|
|
7
|
+
let currentScope = initialScope;
|
|
8
|
+
const projectStatusLine = await getStatusLine(state.projectPath);
|
|
9
|
+
const globalStatusLine = await getGlobalStatusLine();
|
|
10
|
+
const effective = await getEffectiveStatusLine(state.projectPath);
|
|
11
|
+
const getCurrentStatusLine = () => {
|
|
12
|
+
return currentScope === 'project' ? projectStatusLine : globalStatusLine;
|
|
13
|
+
};
|
|
14
|
+
// Scope indicator
|
|
15
|
+
const scopeBox = blessed.box({
|
|
16
|
+
parent: state.screen,
|
|
17
|
+
top: 3,
|
|
18
|
+
left: 2,
|
|
19
|
+
width: '100%-4',
|
|
20
|
+
height: 3,
|
|
21
|
+
tags: true,
|
|
22
|
+
border: {
|
|
23
|
+
type: 'line',
|
|
24
|
+
},
|
|
25
|
+
style: {
|
|
26
|
+
border: {
|
|
27
|
+
fg: 'cyan',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
const updateScopeBox = () => {
|
|
32
|
+
const projectLabel = currentScope === 'project'
|
|
33
|
+
? '{bold}{cyan-fg}[P] 📁 Project{/cyan-fg}{/bold}'
|
|
34
|
+
: '{gray-fg}[P] 📁 Project{/gray-fg}';
|
|
35
|
+
const globalLabel = currentScope === 'global'
|
|
36
|
+
? '{bold}{cyan-fg}[G] 🌍 Global{/cyan-fg}{/bold}'
|
|
37
|
+
: '{gray-fg}[G] 🌍 Global{/gray-fg}';
|
|
38
|
+
const projectStatus = projectStatusLine ? '{green-fg}✓{/green-fg}' : '{gray-fg}○{/gray-fg}';
|
|
39
|
+
const globalStatus = globalStatusLine ? '{green-fg}✓{/green-fg}' : '{gray-fg}○{/gray-fg}';
|
|
40
|
+
scopeBox.setContent(` ${projectLabel} ${projectStatus} ${globalLabel} ${globalStatus} ` +
|
|
41
|
+
`{gray-fg}│{/gray-fg} Active: {yellow-fg}${effective.source}{/yellow-fg}`);
|
|
42
|
+
};
|
|
43
|
+
updateScopeBox();
|
|
44
|
+
// Info box
|
|
45
|
+
blessed.box({
|
|
46
|
+
parent: state.screen,
|
|
47
|
+
top: 6,
|
|
48
|
+
left: 2,
|
|
49
|
+
width: '100%-4',
|
|
50
|
+
height: 2,
|
|
51
|
+
content: `{gray-fg}Current ${currentScope}: {/gray-fg}{bold}${getCurrentStatusLine() || '(not set)'}{/bold}`,
|
|
52
|
+
tags: true,
|
|
53
|
+
});
|
|
54
|
+
const buildListItems = () => {
|
|
55
|
+
const currentForScope = getCurrentStatusLine();
|
|
56
|
+
const items = [];
|
|
57
|
+
for (const category of statusLineCategories) {
|
|
58
|
+
// Add category header
|
|
59
|
+
items.push({
|
|
60
|
+
label: `{${category.color}-fg}{bold}${category.name}{/bold}{/${category.color}-fg}`,
|
|
61
|
+
isHeader: true,
|
|
62
|
+
});
|
|
63
|
+
// Add presets in this category
|
|
64
|
+
for (const preset of category.presets) {
|
|
65
|
+
const isActive = currentForScope === preset.template;
|
|
66
|
+
const status = isActive ? '{green-fg}✓{/green-fg}' : ' ';
|
|
67
|
+
items.push({
|
|
68
|
+
label: ` ${status} ${preset.name} {gray-fg}- ${preset.description}{/gray-fg}`,
|
|
69
|
+
preset,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// Add custom option at the end
|
|
74
|
+
items.push({
|
|
75
|
+
label: '{cyan-fg}{bold}+ Custom Status Line{/bold}{/cyan-fg}',
|
|
76
|
+
isCustom: true,
|
|
77
|
+
});
|
|
78
|
+
return items;
|
|
79
|
+
};
|
|
80
|
+
const listItems = buildListItems();
|
|
81
|
+
const list = blessed.list({
|
|
82
|
+
parent: state.screen,
|
|
83
|
+
top: 9,
|
|
84
|
+
left: 2,
|
|
85
|
+
width: '100%-4',
|
|
86
|
+
height: '50%-6',
|
|
87
|
+
items: listItems.map((item) => item.label),
|
|
88
|
+
keys: true,
|
|
89
|
+
vi: true,
|
|
90
|
+
mouse: true,
|
|
91
|
+
tags: true,
|
|
92
|
+
scrollable: true,
|
|
93
|
+
border: {
|
|
94
|
+
type: 'line',
|
|
95
|
+
},
|
|
96
|
+
style: {
|
|
97
|
+
selected: {
|
|
98
|
+
bg: 'blue',
|
|
99
|
+
fg: 'white',
|
|
100
|
+
},
|
|
101
|
+
border: {
|
|
102
|
+
fg: 'cyan',
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
scrollbar: {
|
|
106
|
+
ch: '|',
|
|
107
|
+
style: {
|
|
108
|
+
bg: 'gray',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
label: ' 🎨 Themes ',
|
|
112
|
+
});
|
|
113
|
+
// Preview box - positioned at the bottom
|
|
114
|
+
const previewBox = blessed.box({
|
|
115
|
+
parent: state.screen,
|
|
116
|
+
top: '50%+4',
|
|
117
|
+
left: 2,
|
|
118
|
+
width: '100%-4',
|
|
119
|
+
height: '50%-6',
|
|
120
|
+
content: '',
|
|
121
|
+
tags: true,
|
|
122
|
+
border: {
|
|
123
|
+
type: 'line',
|
|
124
|
+
},
|
|
125
|
+
label: ' Preview ',
|
|
126
|
+
style: {
|
|
127
|
+
border: {
|
|
128
|
+
fg: 'gray',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
});
|
|
132
|
+
// Update preview on selection change
|
|
133
|
+
const updatePreview = () => {
|
|
134
|
+
const selected = list.selected;
|
|
135
|
+
const item = listItems[selected];
|
|
136
|
+
if (item?.isHeader) {
|
|
137
|
+
previewBox.setContent('{gray-fg}Select a preset below{/gray-fg}');
|
|
138
|
+
state.screen.render();
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
if (item?.preset) {
|
|
142
|
+
// Build colorful preview with highlighted values
|
|
143
|
+
const example = item.preset.template
|
|
144
|
+
.replace('{model}', '{green-fg}claude-sonnet-4{/green-fg}')
|
|
145
|
+
.replace('{model_short}', '{green-fg}sonnet{/green-fg}')
|
|
146
|
+
.replace('{cost}', '{yellow-fg}0.42{/yellow-fg}')
|
|
147
|
+
.replace('{cwd}', '{blue-fg}~/myapp{/blue-fg}')
|
|
148
|
+
.replace('{git_branch}', '{magenta-fg}main{/magenta-fg}')
|
|
149
|
+
.replace('{input_tokens}', '{cyan-fg}1.2k{/cyan-fg}')
|
|
150
|
+
.replace('{output_tokens}', '{cyan-fg}850{/cyan-fg}')
|
|
151
|
+
.replace('{session_duration}', '{red-fg}12m{/red-fg}');
|
|
152
|
+
const content = `{bold}{cyan-fg}${item.preset.name}{/cyan-fg}{/bold}\n` +
|
|
153
|
+
`{gray-fg}${item.preset.description}{/gray-fg}\n\n` +
|
|
154
|
+
`{yellow-fg}{bold}Preview:{/bold}{/yellow-fg}\n` +
|
|
155
|
+
`{white-fg}${example}{/white-fg}\n\n` +
|
|
156
|
+
`{gray-fg}Template: ${item.preset.template}{/gray-fg}`;
|
|
157
|
+
previewBox.setContent(content);
|
|
158
|
+
}
|
|
159
|
+
else if (item?.isCustom) {
|
|
160
|
+
previewBox.setContent(`{bold}{cyan-fg}+ Custom Status Line{/cyan-fg}{/bold}\n\n` +
|
|
161
|
+
`{white-fg}Create your own unique status line!{/white-fg}\n\n` +
|
|
162
|
+
`{yellow-fg}{bold}Available variables:{/bold}{/yellow-fg}\n\n` +
|
|
163
|
+
`{green-fg}{model}{/green-fg} Model name\n` +
|
|
164
|
+
`{green-fg}{model_short}{/green-fg} Short name\n` +
|
|
165
|
+
`{yellow-fg}{cost}{/yellow-fg} Session cost\n` +
|
|
166
|
+
`{blue-fg}{cwd}{/blue-fg} Working directory\n` +
|
|
167
|
+
`{magenta-fg}{git_branch}{/magenta-fg} Git branch\n` +
|
|
168
|
+
`{cyan-fg}{input_tokens}{/cyan-fg} Input tokens\n` +
|
|
169
|
+
`{cyan-fg}{output_tokens}{/cyan-fg} Output tokens\n` +
|
|
170
|
+
`{red-fg}{session_duration}{/red-fg} Session duration`);
|
|
171
|
+
}
|
|
172
|
+
state.screen.render();
|
|
173
|
+
};
|
|
174
|
+
list.on('select item', updatePreview);
|
|
175
|
+
updatePreview();
|
|
176
|
+
// Save function based on current scope
|
|
177
|
+
const saveStatusLine = async (template) => {
|
|
178
|
+
if (currentScope === 'global') {
|
|
179
|
+
await setGlobalStatusLine(template);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
await setStatusLine(template, state.projectPath);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
// Handle selection
|
|
186
|
+
list.on('select', async (_item, index) => {
|
|
187
|
+
const selected = listItems[index];
|
|
188
|
+
if (!selected || selected.isHeader)
|
|
189
|
+
return;
|
|
190
|
+
const scopeLabel = currentScope === 'global' ? '🌍 Global' : '📁 Project';
|
|
191
|
+
if (selected.isCustom) {
|
|
192
|
+
// Custom status line
|
|
193
|
+
const template = await showInput(state, `Custom Status Line (${scopeLabel})`, 'Enter template (use {model}, {cost}, etc.):', getCurrentStatusLine() || '');
|
|
194
|
+
if (template !== null) {
|
|
195
|
+
await saveStatusLine(template);
|
|
196
|
+
await showMessage(state, 'Saved', `Custom status line saved to ${scopeLabel}.\n\nRestart Claude Code to apply changes.`, 'success');
|
|
197
|
+
createStatusLineScreen(state, currentScope);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
else if (selected.preset) {
|
|
201
|
+
// Apply preset
|
|
202
|
+
await saveStatusLine(selected.preset.template);
|
|
203
|
+
await showMessage(state, 'Applied', `"${selected.preset.name}" applied to ${scopeLabel}.\n\nRestart Claude Code to apply changes.`, 'success');
|
|
204
|
+
createStatusLineScreen(state, currentScope);
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
// Toggle scope with P and G keys - disabled during search
|
|
208
|
+
state.screen.key(['p'], () => {
|
|
209
|
+
if (state.isSearching)
|
|
210
|
+
return;
|
|
211
|
+
if (currentScope !== 'project') {
|
|
212
|
+
createStatusLineScreen(state, 'project');
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
state.screen.key(['g'], () => {
|
|
216
|
+
if (state.isSearching)
|
|
217
|
+
return;
|
|
218
|
+
if (currentScope !== 'global') {
|
|
219
|
+
createStatusLineScreen(state, 'global');
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
// Reset to default - disabled during search
|
|
223
|
+
state.screen.key(['r'], async () => {
|
|
224
|
+
if (state.isSearching)
|
|
225
|
+
return;
|
|
226
|
+
const scopeLabel = currentScope === 'global' ? '🌍 Global' : '📁 Project';
|
|
227
|
+
await saveStatusLine('');
|
|
228
|
+
await showMessage(state, 'Reset', `${scopeLabel} status line has been cleared.`, 'success');
|
|
229
|
+
createStatusLineScreen(state, currentScope);
|
|
230
|
+
});
|
|
231
|
+
createFooter(state, '↑↓ Navigate │ Enter Apply │ P Project │ G Global │ r Reset │ Esc Back');
|
|
232
|
+
list.focus();
|
|
233
|
+
state.screen.render();
|
|
234
|
+
}
|
|
235
|
+
//# sourceMappingURL=statusline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statusline.js","sourceRoot":"","sources":["../../../src/ui/screens/statusline.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EACL,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,mCAAmC,CAAC;AAI3C,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,KAAe,EAAE,eAAsB,SAAS;IAC3F,YAAY,CAAC,KAAK,EAAE,2BAA2B,CAAC,CAAC;IAEjD,IAAI,YAAY,GAAU,YAAY,CAAC;IAEvC,MAAM,iBAAiB,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACjE,MAAM,gBAAgB,GAAG,MAAM,mBA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CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,YAAY,CACV,KAAK,EACL,uEAAuE,CACxE,CAAC;IAEF,IAAI,CAAC,KAAK,EAAE,CAAC;IACb,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;AACxB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "claudeup",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "TUI tool for managing Claude Code plugins, MCPs, and configuration",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"claudeup": "bin/claudeup.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"dev": "tsc -w",
|
|
13
|
+
"start": "node dist/index.js",
|
|
14
|
+
"start:bun": "bun run src/index.ts",
|
|
15
|
+
"lint": "biome check src/",
|
|
16
|
+
"format": "biome format --write src/",
|
|
17
|
+
"prepublishOnly": "npm run build"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"claude",
|
|
21
|
+
"claude-code",
|
|
22
|
+
"mcp",
|
|
23
|
+
"plugins",
|
|
24
|
+
"tui",
|
|
25
|
+
"cli"
|
|
26
|
+
],
|
|
27
|
+
"author": "Jack Rudenko <i@madappgang.com>",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/MadAppGang/claude-code.git",
|
|
32
|
+
"directory": "tools/claudeup"
|
|
33
|
+
},
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/MadAppGang/claude-code/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/MadAppGang/claude-code/tree/main/tools/claudeup#readme",
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=18.0.0"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"bin"
|
|
44
|
+
],
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"neo-blessed": "^0.2.0",
|
|
47
|
+
"chalk": "^5.3.0",
|
|
48
|
+
"fs-extra": "^11.2.0",
|
|
49
|
+
"semver": "^7.6.3"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@biomejs/biome": "^1.9.4",
|
|
53
|
+
"@types/fs-extra": "^11.0.4",
|
|
54
|
+
"@types/node": "^22.9.0",
|
|
55
|
+
"@types/semver": "^7.5.8",
|
|
56
|
+
"typescript": "^5.6.3"
|
|
57
|
+
}
|
|
58
|
+
}
|