@infinitedusky/indusk-mcp 0.6.1 → 0.6.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/dist/bin/cli.js
CHANGED
|
@@ -16,12 +16,14 @@ program
|
|
|
16
16
|
.option("-f, --force", "Overwrite existing files (except CLAUDE.md and planning/)")
|
|
17
17
|
.option("--skills <list>", "Comma-separated domain skills to install (e.g., nextjs,tailwind)")
|
|
18
18
|
.option("--no-domain-skills", "Skip domain skill detection and installation")
|
|
19
|
+
.option("--no-index", "Skip code graph indexing")
|
|
19
20
|
.action(async (opts) => {
|
|
20
21
|
const { init } = await import("./commands/init.js");
|
|
21
22
|
await init(process.cwd(), {
|
|
22
23
|
force: opts.force ?? false,
|
|
23
24
|
skills: opts.skills,
|
|
24
25
|
noDomainSkills: opts.domainSkills === false,
|
|
26
|
+
noIndex: opts.index === false,
|
|
25
27
|
});
|
|
26
28
|
});
|
|
27
29
|
program
|
|
@@ -119,7 +119,7 @@ function detectDomainSkills(projectRoot) {
|
|
|
119
119
|
return detections;
|
|
120
120
|
}
|
|
121
121
|
export async function init(projectRoot, options = {}) {
|
|
122
|
-
const { force = false, skills, noDomainSkills = false } = options;
|
|
122
|
+
const { force = false, skills, noDomainSkills = false, noIndex = false } = options;
|
|
123
123
|
const projectName = basename(projectRoot);
|
|
124
124
|
console.info(`Initializing InDusk dev system...${force ? " (--force)" : ""}\n`);
|
|
125
125
|
// 1. Copy skills
|
|
@@ -371,7 +371,11 @@ export async function init(projectRoot, options = {}) {
|
|
|
371
371
|
}
|
|
372
372
|
const cgcInstalled = checkCGC();
|
|
373
373
|
// 9. Auto-index the codebase into the graph
|
|
374
|
-
if (
|
|
374
|
+
if (noIndex) {
|
|
375
|
+
console.info("\n[Code Graph]");
|
|
376
|
+
console.info(" skipped (--no-index)");
|
|
377
|
+
}
|
|
378
|
+
else if (dockerAvailable && cgcInstalled) {
|
|
375
379
|
console.info("\n[Code Graph]");
|
|
376
380
|
console.info(" indexing: scanning codebase...");
|
|
377
381
|
const { indexProject } = await import("../../tools/graph-tools.js");
|