@minhluudev/ai-tools 1.0.22 → 1.0.25

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.
@@ -1,3 +1,4 @@
1
+ import { AGENT_SELECTION_CHOICES, isAgentOptionSelected, toggleAgentOption, toggleAllAgents } from "./agent-selection.js";
1
2
  import { resolveInstallRoot } from "./install.js";
2
3
  import { canRun, createTabbedLayout, DEBOUNCE_MOVE_MS, DEBOUNCE_SELECT_MS, renderBannerHeader, renderKeycaps, renderListRow, renderListContent, renderStepSummary, renderTabBar, selectionArray } from "./tui-utils.js";
3
4
  const TAB_ORDER = ["skills", "locations", "agents", "review"];
@@ -32,32 +33,22 @@ function currentTabItems(state, selectionCatalog) {
32
33
  {
33
34
  id: "global",
34
35
  label: "⊙ Global",
35
- description: "Install into the current user's home directory (~/.claude / ~/.codex).",
36
+ description: "Install into the current user's home directory (~/.claude / ~/.codex / ~/.pi/agent).",
36
37
  kind: "locations"
37
38
  },
38
39
  {
39
40
  id: "local",
40
41
  label: "⊕ Local",
41
- description: "Install into this project's dot directories (.claude / .codex).",
42
+ description: "Install into this project's dot directories (.claude / .codex / .pi).",
42
43
  kind: "locations"
43
44
  }
44
45
  ];
45
46
  }
46
47
  if (state.activeTab === "agents") {
47
- return [
48
- {
49
- id: "codex",
50
- label: "◇ Codex",
51
- description: "Install as Codex skills.",
52
- kind: "agents"
53
- },
54
- {
55
- id: "claude",
56
- label: "◇ Claude",
57
- description: "Install as Claude custom agents.",
58
- kind: "agents"
59
- }
60
- ];
48
+ return AGENT_SELECTION_CHOICES.map((choice) => ({
49
+ ...choice,
50
+ kind: "agents"
51
+ }));
61
52
  }
62
53
  return [
63
54
  {
@@ -88,7 +79,7 @@ function isItemSelected(item, state) {
88
79
  return state.selectedLocations.has(item.id);
89
80
  }
90
81
  if (item.kind === "agents") {
91
- return state.selectedAgents.has(item.id);
82
+ return isAgentOptionSelected(item.id, state.selectedAgents);
92
83
  }
93
84
  return state.reviewAction === item.id;
94
85
  }
@@ -113,13 +104,7 @@ function toggleItem(item, state) {
113
104
  return;
114
105
  }
115
106
  if (item.kind === "agents") {
116
- const agent = item.id;
117
- if (state.selectedAgents.has(agent)) {
118
- state.selectedAgents.delete(agent);
119
- }
120
- else {
121
- state.selectedAgents.add(agent);
122
- }
107
+ toggleAgentOption(state.selectedAgents, item.id);
123
108
  return;
124
109
  }
125
110
  state.reviewAction = item.id;
@@ -372,6 +357,11 @@ export async function runTabbedWizard(selectionCatalog, headerTitle = "Install a
372
357
  if (items.length === 0) {
373
358
  return;
374
359
  }
360
+ if (state.activeTab === "agents") {
361
+ toggleAllAgents(state.selectedAgents);
362
+ render();
363
+ return;
364
+ }
375
365
  const allSelected = items.every((item) => isItemSelected(item, state));
376
366
  for (const item of items) {
377
367
  const selected = isItemSelected(item, state);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@minhluudev/ai-tools",
3
- "version": "1.0.22",
4
- "description": "CLI to install AI skills from GitHub branches into Codex and Claude.",
3
+ "version": "1.0.25",
4
+ "description": "CLI to install AI skills from GitHub branches for Codex, Claude, and Pi.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {
@@ -18,13 +18,15 @@
18
18
  "files": [
19
19
  "dist/src",
20
20
  "selection-catalog.json",
21
- "project-docs-catalog.json",
22
21
  "README.md"
23
22
  ],
24
23
  "scripts": {
25
- "build": "tsc -p tsconfig.json",
24
+ "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
25
+ "build": "npm run clean && tsc -p tsconfig.json",
26
26
  "prepack": "npm run build",
27
- "test": "npm run build && node --test dist/test/*.test.js"
27
+ "test": "npm run build && node --test dist/test/*.test.js",
28
+ "install:global": "npm pack && npm install -g ./minhluudev-ai-tools-$(npm pkg get version | tr -d '\"').tgz",
29
+ "new-version": "npm version patch"
28
30
  },
29
31
  "publishConfig": {
30
32
  "access": "public"
@@ -39,13 +41,11 @@
39
41
  },
40
42
  "aiTools": {
41
43
  "selectionCatalogPath": "selection-catalog.json",
42
- "projectDocsCatalogPath": "project-docs-catalog.json",
43
44
  "github": {
44
45
  "owner": "minhluudev",
45
46
  "repo": "ai-tools",
46
47
  "defaultBranch": "main",
47
48
  "skillsBranch": "skill-general",
48
- "pluginsBranch": "plugins",
49
49
  "manifestPath": "ai-tools.catalog.json",
50
50
  "excludeBranches": [
51
51
  "main",
@@ -1,34 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
3
  "skills": [
4
- {
5
- "id": "bugfix",
6
- "label": "Bugfix",
7
- "description": "Trace, isolate, and fix bugs — regressions, runtime errors, flaky issues, and performance defects.",
8
- "sourceBranch": "agent-skills",
9
- "sourcePath": "bugfix"
10
- },
11
- {
12
- "id": "debugger",
13
- "label": "Debugger",
14
- "description": "Investigate code defects without applying a fix — root cause analysis and debugging handoff.",
15
- "sourceBranch": "agent-skills",
16
- "sourcePath": "debugger"
17
- },
18
- {
19
- "id": "backend-testcase-writer",
20
- "label": "Backend testcase writer",
21
- "description": "Write detailed backend testcase documents for API endpoints, services, repositories, and workers/consumers.",
22
- "sourceBranch": "agent-skills",
23
- "sourcePath": "backend-testcase-writer"
24
- },
25
- {
26
- "id": "business-analyst",
27
- "label": "Business analyst",
28
- "description": "Analyze requirements and produce SRS documentation.",
29
- "sourceBranch": "agent-skills",
30
- "sourcePath": "business-analyst"
31
- },
32
4
  {
33
5
  "id": "domain-driven-design",
34
6
  "label": "Domain Driven Design",
@@ -36,6 +8,13 @@
36
8
  "sourceBranch": "agent-skills",
37
9
  "sourcePath": "domain-driven-design"
38
10
  },
11
+ {
12
+ "id": "generate-flow",
13
+ "label": "Generate Flow",
14
+ "description": "Trace a feature's data and logic end-to-end through source code layers — from trigger to persistence, event emission, response, or failure.",
15
+ "sourceBranch": "agent-skills",
16
+ "sourcePath": "generate-flow"
17
+ },
39
18
  {
40
19
  "id": "git-workflow",
41
20
  "label": "Git workflow",
@@ -44,32 +23,25 @@
44
23
  "sourcePath": "git-workflow"
45
24
  },
46
25
  {
47
- "id": "review-code",
48
- "label": "Review code",
49
- "description": "Structured code review for backend services, APIs, and server-side code.",
50
- "sourceBranch": "agent-skills",
51
- "sourcePath": "review-code"
52
- },
53
- {
54
- "id": "team-mini",
55
- "label": "Team Mini",
56
- "description": "Boot a Claude Code + Codex agent team (Leader + on-demand Coder). Waits for user task before running.",
26
+ "id": "react-component-generator",
27
+ "label": "React Component Generator",
28
+ "description": "Create or refactor repo-aligned React components under components/**, with index.tsx, controller.ts, and style.module.css conventions.",
57
29
  "sourceBranch": "agent-skills",
58
- "sourcePath": "team-mini"
30
+ "sourcePath": "react-component-generator"
59
31
  },
60
32
  {
61
- "id": "team-full",
62
- "label": "Team Full",
63
- "description": "Full TDD agent team — spec → testcases → tests → implement → verify → review. Leader and Tester agents included.",
33
+ "id": "refine-antd",
34
+ "label": "Refine + Ant Design",
35
+ "description": "Guides building and modifying admin panels, dashboards, and internal CRUD tools with the Refine framework and Ant Design.",
64
36
  "sourceBranch": "agent-skills",
65
- "sourcePath": "team-full"
37
+ "sourcePath": "refine-antd"
66
38
  },
67
39
  {
68
- "id": "team-sp",
69
- "label": "Team SP",
70
- "description": "Superpowers-native agent team — Planner (brainstorming + writing-plans), Leader (executing-plans), Coder (Codex + verification). Best for complex or ambiguous tasks.",
40
+ "id": "review-code",
41
+ "label": "Review code",
42
+ "description": "Structured code review for backend services, APIs, and server-side code.",
71
43
  "sourceBranch": "agent-skills",
72
- "sourcePath": "team-sp"
44
+ "sourcePath": "review-code"
73
45
  },
74
46
  {
75
47
  "id": "task-creator",
@@ -79,32 +51,25 @@
79
51
  "sourcePath": "task-creator"
80
52
  },
81
53
  {
82
- "id": "generate-flow",
83
- "label": "Generate Flow",
84
- "description": "Trace a feature's data and logic end-to-end through source code layers — from trigger to persistence, event emission, response, or failure.",
85
- "sourceBranch": "agent-skills",
86
- "sourcePath": "generate-flow"
87
- },
88
- {
89
- "id": "coding-rules",
90
- "label": "Coding Rules",
91
- "description": "Mandatory coding rules for JavaScript, TypeScript, PHP, ReactJS, Laravel, Docker, and SQL, plus SOLID/OOP/Clean Code baselines.",
54
+ "id": "team-mini",
55
+ "label": "Team Mini",
56
+ "description": "Boot a Claude Code + Codex agent team (Leader + on-demand Coder). Waits for user task before running.",
92
57
  "sourceBranch": "agent-skills",
93
- "sourcePath": "coding-rules"
58
+ "sourcePath": "team-mini"
94
59
  },
95
60
  {
96
- "id": "react-component-generator",
97
- "label": "React Component Generator",
98
- "description": "Create or refactor repo-aligned React components under components/**, with index.tsx, controller.ts, and style.module.css conventions.",
61
+ "id": "team-sp",
62
+ "label": "Team SP",
63
+ "description": "Superpowers-native agent team — Planner (brainstorming + writing-plans), Leader (executing-plans), Coder (Codex + verification). Best for complex or ambiguous tasks.",
99
64
  "sourceBranch": "agent-skills",
100
- "sourcePath": "react-component-generator"
65
+ "sourcePath": "team-sp"
101
66
  },
102
67
  {
103
- "id": "vercel-react-best-practices",
104
- "label": "Vercel React Best Practices",
105
- "description": "React and Next.js performance optimization guidelines from Vercel Engineering — 70 rules across waterfalls, bundle size, server/client rendering, re-renders, and JS performance.",
68
+ "id": "testcase-creator",
69
+ "label": "Testcase Creator",
70
+ "description": "Create or expand per-feature Markdown test case suites covering frontend and backend from specifications, designs, and the built-in QA checklists.",
106
71
  "sourceBranch": "agent-skills",
107
- "sourcePath": "vercel-react-best-practices"
72
+ "sourcePath": "testcase-creator"
108
73
  }
109
74
  ]
110
75
  }