td-ai-tools 1.1.5 → 1.1.6

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.
Files changed (2) hide show
  1. package/bin/cli.js +8 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -376,8 +376,14 @@ function printSelectionControls(action) {
376
376
  }
377
377
 
378
378
  function buildMenu() {
379
- const skills = getAvailable(SKILLS_DIR).map(name => ({ type: 'skill', name }));
380
- const agents = getAvailable(AGENTS_DIR).map(name => ({ type: 'agent', name }));
379
+ const installedSkills = new Set(getInstalled('skills'));
380
+ const installedAgents = new Set(getInstalled('agents'));
381
+ const skills = getAvailable(SKILLS_DIR)
382
+ .filter(name => !installedSkills.has(name))
383
+ .map(name => ({ type: 'skill', name }));
384
+ const agents = getAvailable(AGENTS_DIR)
385
+ .filter(name => !installedAgents.has(name))
386
+ .map(name => ({ type: 'agent', name }));
381
387
  return [...skills, ...agents];
382
388
  }
383
389
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "td-ai-tools",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Install agent skills and packs into your project",
5
5
  "type": "module",
6
6
  "scripts": {