@minhluudev/ai-tools 1.0.14 → 1.0.15
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/dist/src/lib/ai-libs.js
CHANGED
|
@@ -5,6 +5,7 @@ import { spawn } from "node:child_process";
|
|
|
5
5
|
const ICM_INSTALL_COMMAND = "curl -fsSL https://raw.githubusercontent.com/rtk-ai/icm/main/install.sh | sh";
|
|
6
6
|
const RTK_INSTALL_COMMAND = "curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh";
|
|
7
7
|
const ECC_REPO_URL = "https://github.com/affaan-m/ECC.git";
|
|
8
|
+
const CODEGRAPH_REPO_URL = "https://github.com/colbymchenry/codegraph";
|
|
8
9
|
const ECC_TEMP_DIR_PREFIX = "ai-tools-ecc-";
|
|
9
10
|
const ICM_MARKER_START = "<!-- icm:start -->";
|
|
10
11
|
const ICM_MARKER_END = "<!-- icm:end -->";
|
|
@@ -193,6 +194,32 @@ function buildEccInstallSteps(agents) {
|
|
|
193
194
|
}
|
|
194
195
|
return steps;
|
|
195
196
|
}
|
|
197
|
+
function buildCodegraphInstallSteps() {
|
|
198
|
+
return [
|
|
199
|
+
{
|
|
200
|
+
id: "codegraph-install",
|
|
201
|
+
library: "codegraph",
|
|
202
|
+
phase: "install",
|
|
203
|
+
title: "Install CodeGraph binary",
|
|
204
|
+
description: `Install the CodeGraph CLI globally from the upstream GitHub repo (${CODEGRAPH_REPO_URL}).`,
|
|
205
|
+
command: `npm install -g ${CODEGRAPH_REPO_URL}`,
|
|
206
|
+
runner: "shell"
|
|
207
|
+
}
|
|
208
|
+
];
|
|
209
|
+
}
|
|
210
|
+
function buildCodegraphUninstallSteps() {
|
|
211
|
+
return [
|
|
212
|
+
{
|
|
213
|
+
id: "codegraph-uninstall",
|
|
214
|
+
library: "codegraph",
|
|
215
|
+
phase: "uninstall",
|
|
216
|
+
title: "Uninstall CodeGraph binary",
|
|
217
|
+
description: "Remove the globally installed CodeGraph CLI.",
|
|
218
|
+
command: "npm uninstall -g codegraph",
|
|
219
|
+
runner: "shell"
|
|
220
|
+
}
|
|
221
|
+
];
|
|
222
|
+
}
|
|
196
223
|
export function buildLibInstallPlan(input) {
|
|
197
224
|
const agents = uniq(input.agents);
|
|
198
225
|
const libraries = uniq(input.libraries);
|
|
@@ -250,6 +277,18 @@ export function buildLibInstallPlan(input) {
|
|
|
250
277
|
notes.push("Automatic ECC uninstall is not supported in this CLI. Upstream documents repo-root lifecycle commands such as `node scripts/uninstall.js --dry-run` followed by `node scripts/uninstall.js` for manual cleanup.");
|
|
251
278
|
notes.push("If ECC was installed through the Claude plugin path, remove the plugin first and then delete only the specific ECC rule folders you copied manually.");
|
|
252
279
|
}
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
if (library === "codegraph") {
|
|
283
|
+
if (input.mode === "install") {
|
|
284
|
+
steps.push(...buildCodegraphInstallSteps());
|
|
285
|
+
notes.push("CodeGraph is a project-level indexer. After installing the CLI, run `codegraph init` in each project you want to index — indexing is intentionally per-project and not run automatically here.");
|
|
286
|
+
notes.push("The MCP tools (codegraph_explore, codegraph_node) become available only after a project has been indexed with `codegraph init`.");
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
steps.push(...buildCodegraphUninstallSteps());
|
|
290
|
+
notes.push("CodeGraph uninstall removes only the global CLI binary. Existing `.codegraph/` index directories in your projects are not removed and can be deleted manually with `rm -rf .codegraph`.");
|
|
291
|
+
}
|
|
253
292
|
}
|
|
254
293
|
}
|
|
255
294
|
if (input.mode === "install" && libraries.some((library) => library === "rtk" || library === "icm")) {
|
|
@@ -41,6 +41,12 @@ function currentTabItems(state) {
|
|
|
41
41
|
label: "◈ affaan-m/ECC",
|
|
42
42
|
description: "Coding rules, agent instructions, hooks, and skills library for Claude Code and Codex.",
|
|
43
43
|
kind: "library"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: "codegraph",
|
|
47
|
+
label: "◈ colbymchenry/codegraph",
|
|
48
|
+
description: "Codebase indexer that maps symbols and call paths — enables fast semantic code exploration via MCP or CLI.",
|
|
49
|
+
kind: "library"
|
|
44
50
|
}
|
|
45
51
|
];
|
|
46
52
|
}
|
|
@@ -401,7 +407,7 @@ export async function runAiLibsWizard() {
|
|
|
401
407
|
mode: state.selectedMode,
|
|
402
408
|
review: state.notice || "Ready for confirmation"
|
|
403
409
|
}[state.activeTab];
|
|
404
|
-
headerBox.setContent(renderBannerHeader("Install libs for AI", "Run upstream installers and init commands for RTK, ICM, and
|
|
410
|
+
headerBox.setContent(renderBannerHeader("Install libs for AI", "Run upstream installers and init commands for RTK, ICM, ECC, and CodeGraph.", [
|
|
405
411
|
{ label: `${state.selectedLibraries.size} libraries`, tone: "accent" },
|
|
406
412
|
{ label: `${state.selectedAgents.size} agents`, tone: "success" },
|
|
407
413
|
{ label: state.selectedOs ?? "OS pending", tone: "muted" },
|
package/package.json
CHANGED
package/selection-catalog.json
CHANGED
|
@@ -63,6 +63,13 @@
|
|
|
63
63
|
"description": "Full TDD agent team — spec → testcases → tests → implement → verify → review. Leader and Tester agents included.",
|
|
64
64
|
"sourceBranch": "agent-skills",
|
|
65
65
|
"sourcePath": "team-full"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "make-task",
|
|
69
|
+
"label": "Make Task",
|
|
70
|
+
"description": "Create or update structured task documents from Jira, Trello, Notion, Linear, GitHub Issues, or plain descriptions.",
|
|
71
|
+
"sourceBranch": "agent-skills",
|
|
72
|
+
"sourcePath": "make-task"
|
|
66
73
|
}
|
|
67
74
|
]
|
|
68
75
|
}
|