@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.
- package/README.md +5 -31
- package/dist/src/bin/ai-tools.js +1 -2
- package/dist/src/cli.js +1 -221
- package/dist/src/lib/agent-selection.js +60 -0
- package/dist/src/lib/catalog.js +4 -1
- package/dist/src/lib/config.js +0 -2
- package/dist/src/lib/install.js +45 -79
- package/dist/src/lib/selection-catalog.js +6 -2
- package/dist/src/lib/tui-entry-menu.js +0 -24
- package/dist/src/lib/tui-skills.js +4 -2
- package/dist/src/lib/tui-wizard.js +14 -24
- package/package.json +7 -7
- package/selection-catalog.json +31 -66
- package/dist/src/lib/ai-libs.js +0 -417
- package/dist/src/lib/mcp.js +0 -665
- package/dist/src/lib/plugins.js +0 -155
- package/dist/src/lib/project-docs-catalog.js +0 -45
- package/dist/src/lib/tui-ai-libs.js +0 -539
- package/dist/src/lib/tui-mcp.js +0 -514
- package/dist/src/lib/tui-plugins.js +0 -408
- package/dist/src/lib/tui-project-docs.js +0 -303
- package/project-docs-catalog.json +0 -19
|
@@ -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
|
-
|
|
50
|
-
|
|
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
|
|
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
|
-
|
|
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.
|
|
4
|
-
"description": "CLI to install AI skills from GitHub branches
|
|
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
|
-
"
|
|
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",
|
package/selection-catalog.json
CHANGED
|
@@ -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": "
|
|
48
|
-
"label": "
|
|
49
|
-
"description": "
|
|
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": "
|
|
30
|
+
"sourcePath": "react-component-generator"
|
|
59
31
|
},
|
|
60
32
|
{
|
|
61
|
-
"id": "
|
|
62
|
-
"label": "
|
|
63
|
-
"description": "
|
|
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": "
|
|
37
|
+
"sourcePath": "refine-antd"
|
|
66
38
|
},
|
|
67
39
|
{
|
|
68
|
-
"id": "
|
|
69
|
-
"label": "
|
|
70
|
-
"description": "
|
|
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": "
|
|
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": "
|
|
83
|
-
"label": "
|
|
84
|
-
"description": "
|
|
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": "
|
|
58
|
+
"sourcePath": "team-mini"
|
|
94
59
|
},
|
|
95
60
|
{
|
|
96
|
-
"id": "
|
|
97
|
-
"label": "
|
|
98
|
-
"description": "
|
|
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": "
|
|
65
|
+
"sourcePath": "team-sp"
|
|
101
66
|
},
|
|
102
67
|
{
|
|
103
|
-
"id": "
|
|
104
|
-
"label": "
|
|
105
|
-
"description": "
|
|
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": "
|
|
72
|
+
"sourcePath": "testcase-creator"
|
|
108
73
|
}
|
|
109
74
|
]
|
|
110
75
|
}
|