clideck 1.31.18 → 1.31.19
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/package.json +1 -1
- package/public/js/creator.js +9 -1
package/package.json
CHANGED
package/public/js/creator.js
CHANGED
|
@@ -104,7 +104,15 @@ function sortedPresets() {
|
|
|
104
104
|
const commands = (state.cfg.commands || [])
|
|
105
105
|
.filter(c => c.enabled !== false)
|
|
106
106
|
.map(c => ({ type: 'command', command: c, preset: presetForCommand(c) || { name: c.label, icon: c.icon || 'terminal', isAgent: !!c.isAgent } }));
|
|
107
|
-
const
|
|
107
|
+
const seenShell = new Set();
|
|
108
|
+
const shell = commands.filter(item => {
|
|
109
|
+
if (item.command.isAgent) return false;
|
|
110
|
+
const isBuiltinShell = item.command.presetId === 'shell' || item.preset?.presetId === 'shell';
|
|
111
|
+
if (!isBuiltinShell) return true;
|
|
112
|
+
if (seenShell.has('shell')) return false;
|
|
113
|
+
seenShell.add('shell');
|
|
114
|
+
return true;
|
|
115
|
+
});
|
|
108
116
|
const agents = [...missing, ...commands.filter(item => item.command.isAgent)];
|
|
109
117
|
const lastId = localStorage.getItem(MRU_KEY);
|
|
110
118
|
if (lastId) {
|