@monoes/monomindcli 1.6.3 → 1.6.5
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/.claude/commands/monomind-createtask.md +3 -3
- package/.claude/commands/monomind-do.md +2 -2
- package/.claude/commands/monomind-idea.md +2 -2
- package/.claude/helpers/graphify-freshen.cjs +15 -6
- package/README.md +307 -553
- package/bundled-graph/dist/src/analyze.d.ts +32 -0
- package/bundled-graph/dist/src/analyze.d.ts.map +1 -0
- package/bundled-graph/dist/src/analyze.js +297 -0
- package/bundled-graph/dist/src/analyze.js.map +1 -0
- package/bundled-graph/dist/src/build.d.ts +8 -0
- package/bundled-graph/dist/src/build.d.ts.map +1 -0
- package/bundled-graph/dist/src/build.js +73 -0
- package/bundled-graph/dist/src/build.js.map +1 -0
- package/bundled-graph/dist/src/cache.d.ts +12 -0
- package/bundled-graph/dist/src/cache.d.ts.map +1 -0
- package/bundled-graph/dist/src/cache.js +43 -0
- package/bundled-graph/dist/src/cache.js.map +1 -0
- package/bundled-graph/dist/src/cluster.d.ts +5 -0
- package/bundled-graph/dist/src/cluster.d.ts.map +1 -0
- package/bundled-graph/dist/src/cluster.js +120 -0
- package/bundled-graph/dist/src/cluster.js.map +1 -0
- package/bundled-graph/dist/src/detect.d.ts +21 -0
- package/bundled-graph/dist/src/detect.d.ts.map +1 -0
- package/bundled-graph/dist/src/detect.js +195 -0
- package/bundled-graph/dist/src/detect.js.map +1 -0
- package/bundled-graph/dist/src/export.d.ts +21 -0
- package/bundled-graph/dist/src/export.d.ts.map +1 -0
- package/bundled-graph/dist/src/export.js +68 -0
- package/bundled-graph/dist/src/export.js.map +1 -0
- package/bundled-graph/dist/src/extract/index.d.ts +20 -0
- package/bundled-graph/dist/src/extract/index.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/index.js +158 -0
- package/bundled-graph/dist/src/extract/index.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/c.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/c.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/c.js +88 -0
- package/bundled-graph/dist/src/extract/languages/c.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/cpp.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/cpp.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/cpp.js +121 -0
- package/bundled-graph/dist/src/extract/languages/cpp.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/csharp.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/csharp.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/csharp.js +121 -0
- package/bundled-graph/dist/src/extract/languages/csharp.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/go.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/go.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/go.js +181 -0
- package/bundled-graph/dist/src/extract/languages/go.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/java.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/java.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/java.js +117 -0
- package/bundled-graph/dist/src/extract/languages/java.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/kotlin.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/kotlin.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/kotlin.js +112 -0
- package/bundled-graph/dist/src/extract/languages/kotlin.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/php.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/php.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/php.js +130 -0
- package/bundled-graph/dist/src/extract/languages/php.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/python.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/python.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/python.js +230 -0
- package/bundled-graph/dist/src/extract/languages/python.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/ruby.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/ruby.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/ruby.js +120 -0
- package/bundled-graph/dist/src/extract/languages/ruby.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/rust.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/rust.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/rust.js +195 -0
- package/bundled-graph/dist/src/extract/languages/rust.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/scala.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/scala.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/scala.js +110 -0
- package/bundled-graph/dist/src/extract/languages/scala.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/swift.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/swift.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/swift.js +122 -0
- package/bundled-graph/dist/src/extract/languages/swift.js.map +1 -0
- package/bundled-graph/dist/src/extract/languages/typescript.d.ts +3 -0
- package/bundled-graph/dist/src/extract/languages/typescript.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/languages/typescript.js +295 -0
- package/bundled-graph/dist/src/extract/languages/typescript.js.map +1 -0
- package/bundled-graph/dist/src/extract/semantic.d.ts +38 -0
- package/bundled-graph/dist/src/extract/semantic.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/semantic.js +242 -0
- package/bundled-graph/dist/src/extract/semantic.js.map +1 -0
- package/bundled-graph/dist/src/extract/tree-sitter-runner.d.ts +48 -0
- package/bundled-graph/dist/src/extract/tree-sitter-runner.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/tree-sitter-runner.js +137 -0
- package/bundled-graph/dist/src/extract/tree-sitter-runner.js.map +1 -0
- package/bundled-graph/dist/src/extract/types.d.ts +7 -0
- package/bundled-graph/dist/src/extract/types.d.ts.map +1 -0
- package/bundled-graph/dist/src/extract/types.js +2 -0
- package/bundled-graph/dist/src/extract/types.js.map +1 -0
- package/bundled-graph/dist/src/index.d.ts +28 -0
- package/bundled-graph/dist/src/index.d.ts.map +1 -0
- package/bundled-graph/dist/src/index.js +26 -0
- package/bundled-graph/dist/src/index.js.map +1 -0
- package/bundled-graph/dist/src/pipeline.d.ts +27 -0
- package/bundled-graph/dist/src/pipeline.d.ts.map +1 -0
- package/bundled-graph/dist/src/pipeline.js +269 -0
- package/bundled-graph/dist/src/pipeline.js.map +1 -0
- package/bundled-graph/dist/src/report.d.ts +26 -0
- package/bundled-graph/dist/src/report.d.ts.map +1 -0
- package/bundled-graph/dist/src/report.js +214 -0
- package/bundled-graph/dist/src/report.js.map +1 -0
- package/bundled-graph/dist/src/types.d.ts +124 -0
- package/bundled-graph/dist/src/types.d.ts.map +1 -0
- package/bundled-graph/dist/src/types.js +2 -0
- package/bundled-graph/dist/src/types.js.map +1 -0
- package/bundled-graph/dist/src/visualize.d.ts +4 -0
- package/bundled-graph/dist/src/visualize.d.ts.map +1 -0
- package/bundled-graph/dist/src/visualize.js +574 -0
- package/bundled-graph/dist/src/visualize.js.map +1 -0
- package/bundled-graph/dist/tsconfig.tsbuildinfo +1 -0
- package/bundled-graph/package.json +57 -0
- package/dist/src/commands/memory.d.ts.map +1 -1
- package/dist/src/commands/memory.js +0 -1
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +6 -1
- package/dist/src/init/executor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -2
- /package/.claude/commands/{monobrain-help.md → monomind-help.md} +0 -0
- /package/.claude/commands/{monobrain-memory.md → monomind-memory.md} +0 -0
- /package/.claude/commands/{monobrain-swarm.md → monomind-swarm.md} +0 -0
|
@@ -73,9 +73,9 @@ Parse `$ARGUMENTS` to determine input type:
|
|
|
73
73
|
|
|
74
74
|
Run ALL of the following in parallel (skip any that error):
|
|
75
75
|
|
|
76
|
-
1. **Knowledge graph — suggest**: Call `
|
|
77
|
-
2. **Knowledge graph — query**: If any specific module/component names appear in `RAW_CONTENT`, call `
|
|
78
|
-
3. **Memory search**: Call `
|
|
76
|
+
1. **Knowledge graph — suggest**: Call `mcp__monomind__graphify_suggest` with the first 200 chars of `RAW_CONTENT`.
|
|
77
|
+
2. **Knowledge graph — query**: If any specific module/component names appear in `RAW_CONTENT`, call `mcp__monomind__graphify_query` for each (up to 5 queries).
|
|
78
|
+
3. **Memory search**: Call `mcp__monomind__memory_search` with a summary of the input. Use top 5 results.
|
|
79
79
|
4. **README**: Read `README.md` (first 200 lines). Skip if missing.
|
|
80
80
|
5. **Package manifest**: Read whichever exists first: `package.json`, `Cargo.toml`, `pyproject.toml`, `go.mod`.
|
|
81
81
|
6. **Repo name**: Run `git remote get-url origin`, extract last path segment, strip `.git`. Fallback: `basename` of cwd. Store as `REPO_NAME`.
|
|
@@ -138,8 +138,8 @@ Collect in parallel (skip any that error):
|
|
|
138
138
|
|
|
139
139
|
1. **README**: Read `README.md` (first 200 lines).
|
|
140
140
|
2. **Package manifest**: Read whichever exists first: `package.json`, `Cargo.toml`, `pyproject.toml`, `go.mod`.
|
|
141
|
-
3. **Memory search**: Call `
|
|
142
|
-
4. **Knowledge graph**: Call `
|
|
141
|
+
3. **Memory search**: Call `mcp__monomind__memory_search` with the card title.
|
|
142
|
+
4. **Knowledge graph**: Call `mcp__monomind__graphify_suggest` with the card title.
|
|
143
143
|
|
|
144
144
|
Bundle into `PROJECT_CONTEXT`.
|
|
145
145
|
|
|
@@ -49,9 +49,9 @@ Collect ALL of the following in parallel (skip any that error):
|
|
|
49
49
|
|
|
50
50
|
3. **Package manifest**: Read whichever exists first: `package.json`, `Cargo.toml`, `pyproject.toml`, `go.mod`. Extract name, description, and keywords/tags.
|
|
51
51
|
|
|
52
|
-
4. **Knowledge graph**: Call `
|
|
52
|
+
4. **Knowledge graph**: Call `mcp__monomind__graphify_suggest` with the user's prompt (`$ARGUMENTS`). Skip if it errors or returns empty.
|
|
53
53
|
|
|
54
|
-
5. **Memory search**: Call `
|
|
54
|
+
5. **Memory search**: Call `mcp__monomind__memory_search` with the user's prompt (`$ARGUMENTS`). Use the top 5 results.
|
|
55
55
|
|
|
56
56
|
Bundle all gathered information into a single `PROJECT_CONTEXT` string for downstream agents.
|
|
57
57
|
|
|
@@ -8,12 +8,21 @@ const projectDir = process.env.CLAUDE_PROJECT_DIR || process.cwd();
|
|
|
8
8
|
const graphDir = path.join(projectDir, '.monomind', 'graph');
|
|
9
9
|
const statsFile = path.join(graphDir, 'stats.json');
|
|
10
10
|
|
|
11
|
-
// Locate @monomind/graph — check
|
|
11
|
+
// Locate @monomind/graph — check local, global npm, bundled-graph, pnpm
|
|
12
12
|
function findGraphPkg(base) {
|
|
13
13
|
const candidates = [
|
|
14
14
|
path.join(base, 'node_modules', '@monomind', 'graph', 'dist', 'src', 'index.js'),
|
|
15
15
|
path.join(base, 'packages', '@monomind', 'cli', 'node_modules', '@monomind', 'graph', 'dist', 'src', 'index.js'),
|
|
16
|
+
path.join(base, 'packages', '@monomind', 'graph', 'dist', 'src', 'index.js'),
|
|
16
17
|
];
|
|
18
|
+
// Check global npm install paths (monomind umbrella ships bundled-graph)
|
|
19
|
+
try {
|
|
20
|
+
const globalRoot = require('child_process').execSync('npm root -g', { encoding: 'utf-8' }).trim();
|
|
21
|
+
candidates.push(
|
|
22
|
+
path.join(globalRoot, 'monomind', 'packages', '@monomind', 'cli', 'bundled-graph', 'dist', 'src', 'index.js'),
|
|
23
|
+
path.join(globalRoot, 'monomind', 'node_modules', '@monoes', 'monomindcli', 'bundled-graph', 'dist', 'src', 'index.js'),
|
|
24
|
+
);
|
|
25
|
+
} catch {}
|
|
17
26
|
for (const c of candidates) {
|
|
18
27
|
if (fs.existsSync(c)) return c;
|
|
19
28
|
}
|
|
@@ -82,14 +91,14 @@ const script = [
|
|
|
82
91
|
` console.log('[graph] normalized: added MCP field aliases to ' + raw.nodes.length + ' nodes');`,
|
|
83
92
|
` }`,
|
|
84
93
|
` } catch (ne) { console.error('[graph] normalize failed:', ne.message); }`,
|
|
85
|
-
// Ensure .
|
|
94
|
+
// Ensure .monomind/graph symlink exists so the MCP server can locate the graph
|
|
86
95
|
` try {`,
|
|
87
|
-
` const
|
|
88
|
-
` fs.mkdirSync(
|
|
89
|
-
` const symlinkTarget = path.join(
|
|
96
|
+
` const monomindDir = path.join(projectDir, '.monomind');`,
|
|
97
|
+
` fs.mkdirSync(monomindDir, { recursive: true });`,
|
|
98
|
+
` const symlinkTarget = path.join(monomindDir, 'graph');`,
|
|
90
99
|
` let exists = false;`,
|
|
91
100
|
` try { fs.lstatSync(symlinkTarget); exists = true; } catch {}`,
|
|
92
|
-
` if (!exists) { fs.symlinkSync(graphDir, symlinkTarget); console.log('[graph] created .
|
|
101
|
+
` if (!exists) { fs.symlinkSync(graphDir, symlinkTarget); console.log('[graph] created .monomind/graph symlink'); }`,
|
|
93
102
|
` } catch (se) { console.error('[graph] symlink setup failed:', se.message); }`,
|
|
94
103
|
`})`,
|
|
95
104
|
`.catch(e => console.error('[graph] build failed:', e.message));`,
|