td-ai-tools 1.1.1 → 1.1.2
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/bin/cli.js +13 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -215,6 +215,17 @@ function printList() {
|
|
|
215
215
|
p.outro(pc.dim(`${skills.length} skills, ${agents.length} agent packs available.`));
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
function printSelectionControls(action) {
|
|
219
|
+
p.note(
|
|
220
|
+
[
|
|
221
|
+
`Use Up/Down to move through the ${action} list.`,
|
|
222
|
+
'Press Space to select or deselect items.',
|
|
223
|
+
'Press Enter to confirm your choices.'
|
|
224
|
+
].join('\n'),
|
|
225
|
+
'Controls'
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
218
229
|
function buildMenu() {
|
|
219
230
|
const skills = getAvailable(SKILLS_DIR).map(name => ({ type: 'skill', name }));
|
|
220
231
|
const agents = getAvailable(AGENTS_DIR).map(name => ({ type: 'agent', name }));
|
|
@@ -275,6 +286,7 @@ async function interactiveInstall(mode = 'install') {
|
|
|
275
286
|
}
|
|
276
287
|
|
|
277
288
|
p.intro(pc.bgCyan(pc.black(' AgentToolkit ')));
|
|
289
|
+
printSelectionControls(mode);
|
|
278
290
|
|
|
279
291
|
const selection = await p.groupMultiselect({
|
|
280
292
|
message: `Select items to ${mode}`,
|
|
@@ -309,6 +321,7 @@ async function interactiveDelete() {
|
|
|
309
321
|
}
|
|
310
322
|
|
|
311
323
|
p.intro(pc.bgCyan(pc.black(' AgentToolkit ')));
|
|
324
|
+
printSelectionControls('delete');
|
|
312
325
|
|
|
313
326
|
const selection = await p.groupMultiselect({
|
|
314
327
|
message: 'Select items to delete',
|