monomind 1.11.6 → 1.11.8
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 +0 -1
- package/package.json +11 -4
- package/packages/@monomind/cli/README.md +0 -1
- package/packages/@monomind/cli/dist/src/commands/agent.js +8 -1
- package/packages/@monomind/cli/dist/src/commands/index.d.ts +0 -2
- package/packages/@monomind/cli/dist/src/commands/index.js +0 -7
- package/packages/@monomind/cli/dist/src/commands/monograph.js +1 -1
- package/packages/@monomind/cli/dist/src/commands/plugins.js +1 -2
- package/packages/@monomind/cli/dist/src/commands/route.js +9 -1
- package/packages/@monomind/cli/dist/src/index.js +6 -26
- package/packages/@monomind/cli/dist/src/mcp-server.js +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.js +0 -4
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.d.ts +4 -313
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.js +11 -1051
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.js +25 -25
- package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.js +4 -30
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.js +0 -42
- package/packages/@monomind/cli/dist/src/plugins/store/discovery.js +0 -33
- package/packages/@monomind/cli/dist/src/routing/llm-caller.d.ts +24 -0
- package/packages/@monomind/cli/dist/src/routing/llm-caller.js +109 -0
- package/packages/@monomind/cli/dist/src/update/checker.js +0 -1
- package/packages/@monomind/cli/dist/src/update/validator.js +0 -10
- package/packages/@monomind/cli/package.json +4 -10
- package/packages/@monomind/guidance/package.json +1 -2
- package/packages/@monomind/cli/dist/src/commands/embeddings.d.ts +0 -18
- package/packages/@monomind/cli/dist/src/commands/embeddings.js +0 -1628
package/README.md
CHANGED
|
@@ -342,7 +342,6 @@ The workspace ships 16 `@monomind/*` packages:
|
|
|
342
342
|
| `@monomind/security` | Input validation, prompt injection detection, CVE remediation, gVisor sandbox |
|
|
343
343
|
| `@monomind/mcp` | MCP server transport (stdio / http / WebSocket) |
|
|
344
344
|
| `@monomind/routing` | Two-stage LLM + keyword agent routing, confidence scoring |
|
|
345
|
-
| `@monomind/embeddings` | Vector embedding generation and management |
|
|
346
345
|
| `@monomind/performance` | Profiling, benchmarking, latency tracking |
|
|
347
346
|
| `@monomind/plugins` | IPFS/Pinata plugin registry, install/create/list |
|
|
348
347
|
| `@monomind/claims` | Claims-based authorization for agent actions |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monomind",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.8",
|
|
4
4
|
"description": "Monomind - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"test": "vitest",
|
|
52
52
|
"test:ui": "vitest --ui",
|
|
53
53
|
"test:security": "vitest run packages/__tests__/security/",
|
|
54
|
-
"lint": "cd packages/@monomind/cli && npm run lint || true",
|
|
55
54
|
"security:audit": "npm audit --audit-level high",
|
|
56
55
|
"security:fix": "npm audit fix",
|
|
57
56
|
"security:test": "npm run test:security",
|
|
@@ -66,10 +65,18 @@
|
|
|
66
65
|
"overrides": {
|
|
67
66
|
"hono": ">=4.11.4"
|
|
68
67
|
},
|
|
68
|
+
"pnpm": {
|
|
69
|
+
"peerDependencyRules": {
|
|
70
|
+
"allowedVersions": {
|
|
71
|
+
"tree-sitter": "0.22.4",
|
|
72
|
+
"marked": "16",
|
|
73
|
+
"@vitest/coverage-v8": "4.1.8",
|
|
74
|
+
"vitest": "4.1.4"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
69
78
|
"devDependencies": {
|
|
70
|
-
"@types/bcrypt": "^5.0.2",
|
|
71
79
|
"@types/node": "^20.0.0",
|
|
72
|
-
"eslint": "^8.0.0",
|
|
73
80
|
"tsx": "^4.21.0",
|
|
74
81
|
"typescript": "^5.0.0",
|
|
75
82
|
"vitest": "^4.1.4",
|
|
@@ -342,7 +342,6 @@ The workspace ships 16 `@monomind/*` packages:
|
|
|
342
342
|
| `@monomind/security` | Input validation, prompt injection detection, CVE remediation, gVisor sandbox |
|
|
343
343
|
| `@monomind/mcp` | MCP server transport (stdio / http / WebSocket) |
|
|
344
344
|
| `@monomind/routing` | Two-stage LLM + keyword agent routing, confidence scoring |
|
|
345
|
-
| `@monomind/embeddings` | Vector embedding generation and management |
|
|
346
345
|
| `@monomind/performance` | Profiling, benchmarking, latency tracking |
|
|
347
346
|
| `@monomind/plugins` | IPFS/Pinata plugin registry, install/create/list |
|
|
348
347
|
| `@monomind/claims` | Claims-based authorization for agent actions |
|
|
@@ -127,7 +127,14 @@ const spawnCommand = {
|
|
|
127
127
|
if (!agentType && taskDescription) {
|
|
128
128
|
try {
|
|
129
129
|
const { RouteLayer, ALL_ROUTES } = await import('@monomind/routing');
|
|
130
|
-
|
|
130
|
+
// Delegate low-confidence fallback to a headless Claude Code (Haiku)
|
|
131
|
+
// agent when `claude` is available — no API key required.
|
|
132
|
+
const { createClaudeLLMCaller } = await import('../routing/llm-caller.js');
|
|
133
|
+
const llmCaller = createClaudeLLMCaller({ model: 'haiku' });
|
|
134
|
+
const layer = new RouteLayer({
|
|
135
|
+
routes: ALL_ROUTES,
|
|
136
|
+
...(llmCaller ? { llmFallback: { llmCaller, model: 'haiku' } } : {}),
|
|
137
|
+
});
|
|
131
138
|
const routeResult = await layer.route(taskDescription);
|
|
132
139
|
agentType = routeResult.agentSlug;
|
|
133
140
|
process.stderr.write(`[route] ${routeResult.method}: "${agentType}" (confidence: ${(routeResult.confidence * 100).toFixed(1)}%)\n`);
|
|
@@ -21,7 +21,6 @@ export { mcpCommand } from './mcp.js';
|
|
|
21
21
|
export { hooksCommand } from './hooks.js';
|
|
22
22
|
export { daemonCommand } from './daemon.js';
|
|
23
23
|
export { doctorCommand } from './doctor.js';
|
|
24
|
-
export { embeddingsCommand } from './embeddings.js';
|
|
25
24
|
export { neuralCommand } from './neural.js';
|
|
26
25
|
export { performanceCommand } from './performance.js';
|
|
27
26
|
export { securityCommand } from './security.js';
|
|
@@ -46,7 +45,6 @@ export declare function getProvidersCommand(): Promise<Command | undefined>;
|
|
|
46
45
|
export declare function getPluginsCommand(): Promise<Command | undefined>;
|
|
47
46
|
export declare function getDeploymentCommand(): Promise<Command | undefined>;
|
|
48
47
|
export declare function getClaimsCommand(): Promise<Command | undefined>;
|
|
49
|
-
export declare function getEmbeddingsCommand(): Promise<Command | undefined>;
|
|
50
48
|
export declare function getCompletionsCommand(): Promise<Command | undefined>;
|
|
51
49
|
export declare function getAnalyzeCommand(): Promise<Command | undefined>;
|
|
52
50
|
export declare function getRouteCommand(): Promise<Command | undefined>;
|
|
@@ -39,7 +39,6 @@ const commandLoaders = {
|
|
|
39
39
|
plugins: () => import('./plugins.js'),
|
|
40
40
|
deployment: () => import('./deployment.js'),
|
|
41
41
|
claims: () => import('./claims.js'),
|
|
42
|
-
embeddings: () => import('./embeddings.js'),
|
|
43
42
|
// P0 Commands
|
|
44
43
|
completions: () => import('./completions.js'),
|
|
45
44
|
doctor: () => import('./doctor.js'),
|
|
@@ -114,7 +113,6 @@ import { mcpCommand } from './mcp.js';
|
|
|
114
113
|
import { hooksCommand } from './hooks.js';
|
|
115
114
|
import { daemonCommand } from './daemon.js';
|
|
116
115
|
import { doctorCommand } from './doctor.js';
|
|
117
|
-
import { embeddingsCommand } from './embeddings.js';
|
|
118
116
|
import { neuralCommand } from './neural.js';
|
|
119
117
|
import { performanceCommand } from './performance.js';
|
|
120
118
|
import { securityCommand } from './security.js';
|
|
@@ -157,7 +155,6 @@ loadedCommands.set('mcp', mcpCommand);
|
|
|
157
155
|
loadedCommands.set('hooks', hooksCommand);
|
|
158
156
|
loadedCommands.set('daemon', daemonCommand);
|
|
159
157
|
loadedCommands.set('doctor', doctorCommand);
|
|
160
|
-
loadedCommands.set('embeddings', embeddingsCommand);
|
|
161
158
|
loadedCommands.set('neural', neuralCommand);
|
|
162
159
|
loadedCommands.set('performance', performanceCommand);
|
|
163
160
|
loadedCommands.set('security', securityCommand);
|
|
@@ -188,7 +185,6 @@ export { mcpCommand } from './mcp.js';
|
|
|
188
185
|
export { hooksCommand } from './hooks.js';
|
|
189
186
|
export { daemonCommand } from './daemon.js';
|
|
190
187
|
export { doctorCommand } from './doctor.js';
|
|
191
|
-
export { embeddingsCommand } from './embeddings.js';
|
|
192
188
|
export { neuralCommand } from './neural.js';
|
|
193
189
|
export { performanceCommand } from './performance.js';
|
|
194
190
|
export { securityCommand } from './security.js';
|
|
@@ -214,7 +210,6 @@ export async function getProvidersCommand() { return loadCommand('providers'); }
|
|
|
214
210
|
export async function getPluginsCommand() { return loadCommand('plugins'); }
|
|
215
211
|
export async function getDeploymentCommand() { return loadCommand('deployment'); }
|
|
216
212
|
export async function getClaimsCommand() { return loadCommand('claims'); }
|
|
217
|
-
export async function getEmbeddingsCommand() { return loadCommand('embeddings'); }
|
|
218
213
|
export async function getCompletionsCommand() { return loadCommand('completions'); }
|
|
219
214
|
export async function getAnalyzeCommand() { return loadCommand('analyze'); }
|
|
220
215
|
export async function getRouteCommand() { return loadCommand('route'); }
|
|
@@ -243,7 +238,6 @@ export const commands = [
|
|
|
243
238
|
hooksCommand,
|
|
244
239
|
daemonCommand,
|
|
245
240
|
doctorCommand,
|
|
246
|
-
embeddingsCommand,
|
|
247
241
|
neuralCommand,
|
|
248
242
|
performanceCommand,
|
|
249
243
|
securityCommand,
|
|
@@ -275,7 +269,6 @@ export const commandsByCategory = {
|
|
|
275
269
|
neuralCommand,
|
|
276
270
|
securityCommand,
|
|
277
271
|
performanceCommand,
|
|
278
|
-
embeddingsCommand,
|
|
279
272
|
hiveMindCommand,
|
|
280
273
|
monovectorCommand,
|
|
281
274
|
guidanceCommand,
|
|
@@ -278,7 +278,7 @@ const searchCommand = {
|
|
|
278
278
|
// At @monoes/monograph@1.1.0, semanticSearch is not exported. Import from compat.
|
|
279
279
|
// With no embeddings at 1.1.0, --mode semantic and --mode hybrid both degrade to BM25
|
|
280
280
|
// (the RRF block merges bm25 with a sem list that is itself BM25 — harmless).
|
|
281
|
-
const { semanticSearch } = await import('
|
|
281
|
+
const { hybridSearch: semanticSearch } = await import('@monoes/monograph');
|
|
282
282
|
const db = openDb(dbPath);
|
|
283
283
|
let results = [];
|
|
284
284
|
const K = 60;
|
|
@@ -705,7 +705,7 @@ const rateCommand = {
|
|
|
705
705
|
{ name: 'rating', short: 'r', type: 'number', description: 'Rating (1-5)', required: true },
|
|
706
706
|
],
|
|
707
707
|
examples: [
|
|
708
|
-
{ command: 'monomind plugins rate -n
|
|
708
|
+
{ command: 'monomind plugins rate -n my-plugin -r 5', description: 'Rate 5 stars' },
|
|
709
709
|
{ command: 'monomind plugins rate -n my-plugin -r 4', description: 'Rate 4 stars' },
|
|
710
710
|
],
|
|
711
711
|
action: async (ctx) => {
|
|
@@ -780,7 +780,6 @@ export const pluginsCommand = {
|
|
|
780
780
|
output.writeln(output.bold('Official Plugins:'));
|
|
781
781
|
output.printList([
|
|
782
782
|
'@monomind/security - Security scanning and CVE detection',
|
|
783
|
-
'@monomind/embeddings - Vector embeddings with hyperbolic support',
|
|
784
783
|
'@monomind/claims - Claims-based authorization',
|
|
785
784
|
'@monomind/performance - Performance profiling and benchmarks',
|
|
786
785
|
'@monomind/plugin-gastown-bridge - Gas Town orchestrator integration (WASM-accelerated)',
|
|
@@ -787,7 +787,15 @@ const semanticRouteCommand = {
|
|
|
787
787
|
spinner.start();
|
|
788
788
|
try {
|
|
789
789
|
const { RouteLayer, ALL_ROUTES } = await import('@monomind/routing');
|
|
790
|
-
|
|
790
|
+
// Delegate low-confidence fallback to a headless Claude Code (Haiku)
|
|
791
|
+
// agent when `claude` is available — no API key required.
|
|
792
|
+
const { createClaudeLLMCaller } = await import('../routing/llm-caller.js');
|
|
793
|
+
const llmCaller = createClaudeLLMCaller({ model: 'haiku' });
|
|
794
|
+
const layer = new RouteLayer({
|
|
795
|
+
routes: ALL_ROUTES,
|
|
796
|
+
debug,
|
|
797
|
+
...(llmCaller ? { llmFallback: { llmCaller, model: 'haiku' } } : {}),
|
|
798
|
+
});
|
|
791
799
|
const result = await layer.route(taskDescription);
|
|
792
800
|
spinner.succeed(`Routed to ${result.agentSlug}`);
|
|
793
801
|
if (jsonOutput) {
|
|
@@ -490,32 +490,12 @@ export class CLI {
|
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
catch { /* optional */ }
|
|
493
|
-
//
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
if (process.env.ANTHROPIC_API_KEY) {
|
|
500
|
-
const { default: Anthropic } = await import('@anthropic-ai/sdk');
|
|
501
|
-
const anthropic = new Anthropic();
|
|
502
|
-
routerConfig.llmFallback = {
|
|
503
|
-
llmCaller: async (prompt) => {
|
|
504
|
-
const msg = await anthropic.messages.create({
|
|
505
|
-
model: 'claude-haiku-4-5-20251001',
|
|
506
|
-
max_tokens: 100,
|
|
507
|
-
messages: [{ role: 'user', content: prompt }],
|
|
508
|
-
});
|
|
509
|
-
return msg.content[0].type === 'text' ? msg.content[0].text : '';
|
|
510
|
-
},
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
const routeLayer = new RouteLayer(routerConfig);
|
|
514
|
-
await routeLayer.initialize();
|
|
515
|
-
// Expose for router.cjs via process global (router.cjs already checks __monomindRouteLayer)
|
|
516
|
-
process.__monomindRouteLayer = routeLayer;
|
|
517
|
-
}
|
|
518
|
-
catch { /* optional — @monomind/routing may not be installed */ }
|
|
493
|
+
// NOTE: Semantic routing (@monomind/routing) is constructed on-demand by
|
|
494
|
+
// its consumers — `monomind route` and `monomind agent --task` (see
|
|
495
|
+
// commands/route.ts and commands/agent.ts). It is intentionally NOT
|
|
496
|
+
// eagerly initialized here: building all route centroids and probing for
|
|
497
|
+
// the `claude` CLI on every CLI startup would regress the <500ms startup
|
|
498
|
+
// budget for zero benefit (nothing reads a process-global route layer).
|
|
519
499
|
}
|
|
520
500
|
/**
|
|
521
501
|
* Handle errors
|
|
@@ -533,7 +533,7 @@ export class MCPServerManager extends EventEmitter {
|
|
|
533
533
|
try {
|
|
534
534
|
const { join } = await import('path');
|
|
535
535
|
const { openDb, closeDb } = await import('@monoes/monograph');
|
|
536
|
-
const { getProcessesResource, getCommunitiesResource, getSchemaResource, getGraphResource } = await import('
|
|
536
|
+
const { getProcessesResource, getCommunitiesResource, getSchemaResource, getGraphResource } = await import('@monoes/monograph');
|
|
537
537
|
const projectCwd = process.env['MONOMIND_CWD'] || process.cwd();
|
|
538
538
|
const dbPath = join(projectCwd, '.monomind', 'monograph.db');
|
|
539
539
|
const resDb = openDb(dbPath);
|
|
@@ -50,10 +50,6 @@ export declare const OPTIONAL_PACKAGES: {
|
|
|
50
50
|
readonly description: "AI manipulation defense (prompt injection, PII detection)";
|
|
51
51
|
readonly tools: readonly ["aidefence_scan", "aidefence_analyze", "aidefence_stats", "aidefence_learn"];
|
|
52
52
|
};
|
|
53
|
-
readonly '@monomind/embeddings': {
|
|
54
|
-
readonly description: "Vector embeddings with ONNX support";
|
|
55
|
-
readonly tools: readonly ["embeddings_generate", "embeddings_search", "embeddings_batch"];
|
|
56
|
-
};
|
|
57
53
|
readonly 'onnxruntime-node': {
|
|
58
54
|
readonly description: "ONNX runtime for neural network inference";
|
|
59
55
|
readonly tools: readonly ["neural_*"];
|
|
@@ -69,10 +65,6 @@ declare const _default: {
|
|
|
69
65
|
readonly description: "AI manipulation defense (prompt injection, PII detection)";
|
|
70
66
|
readonly tools: readonly ["aidefence_scan", "aidefence_analyze", "aidefence_stats", "aidefence_learn"];
|
|
71
67
|
};
|
|
72
|
-
readonly '@monomind/embeddings': {
|
|
73
|
-
readonly description: "Vector embeddings with ONNX support";
|
|
74
|
-
readonly tools: readonly ["embeddings_generate", "embeddings_search", "embeddings_batch"];
|
|
75
|
-
};
|
|
76
68
|
readonly 'onnxruntime-node': {
|
|
77
69
|
readonly description: "ONNX runtime for neural network inference";
|
|
78
70
|
readonly tools: readonly ["neural_*"];
|
|
@@ -110,10 +110,6 @@ export const OPTIONAL_PACKAGES = {
|
|
|
110
110
|
description: 'AI manipulation defense (prompt injection, PII detection)',
|
|
111
111
|
tools: ['aidefence_scan', 'aidefence_analyze', 'aidefence_stats', 'aidefence_learn'],
|
|
112
112
|
},
|
|
113
|
-
'@monomind/embeddings': {
|
|
114
|
-
description: 'Vector embeddings with ONNX support',
|
|
115
|
-
tools: ['embeddings_generate', 'embeddings_search', 'embeddings_batch'],
|
|
116
|
-
},
|
|
117
113
|
'onnxruntime-node': {
|
|
118
114
|
description: 'ONNX runtime for neural network inference',
|
|
119
115
|
tools: ['neural_*'],
|
|
@@ -1,284 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Monograph
|
|
2
|
+
* Monograph compatibility shim — @monoes/monograph@1.2.0
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* exported by @monoes/monograph@1.
|
|
6
|
-
*
|
|
7
|
-
* All implementations are composed from the real published primitives.
|
|
8
|
-
* Where primitives are insufficient, behaviour degrades honestly with correctly-
|
|
9
|
-
* shaped return values so that handler code that accesses specific fields never throws.
|
|
10
|
-
*
|
|
11
|
-
* Import pattern:
|
|
12
|
-
* - Real primitives: from '@monoes/monograph'
|
|
13
|
-
* - These compat functions: from './monograph-compat.js'
|
|
4
|
+
* Only getGroupContracts and getGroupStatus are kept here because they are not
|
|
5
|
+
* exported by the published @monoes/monograph@1.2.0. Everything else has been
|
|
6
|
+
* moved to the real package.
|
|
14
7
|
*/
|
|
15
|
-
import { openDb } from '@monoes/monograph';
|
|
16
|
-
type Db = ReturnType<typeof openDb>;
|
|
17
|
-
export declare function hybridQuery(db: Db, query: string, opts?: {
|
|
18
|
-
limit?: number;
|
|
19
|
-
label?: string;
|
|
20
|
-
}): Promise<{
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
label: string;
|
|
24
|
-
filePath: string | null;
|
|
25
|
-
score: number;
|
|
26
|
-
}[]>;
|
|
27
|
-
export declare function semanticSearch(db: Db, query: string, limit?: number, label?: string): {
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
label: string;
|
|
31
|
-
normLabel: string;
|
|
32
|
-
filePath: string | null;
|
|
33
|
-
score: number;
|
|
34
|
-
}[];
|
|
35
|
-
export declare function getMonographContext(db: Db, opts: {
|
|
36
|
-
name: string;
|
|
37
|
-
filePath?: string;
|
|
38
|
-
}): {
|
|
39
|
-
target: {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
label: string;
|
|
43
|
-
filePath: string | null;
|
|
44
|
-
communityId?: number;
|
|
45
|
-
};
|
|
46
|
-
callers: {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
label: string;
|
|
50
|
-
filePath: string | null;
|
|
51
|
-
}[];
|
|
52
|
-
callees: {
|
|
53
|
-
id: string;
|
|
54
|
-
name: string;
|
|
55
|
-
label: string;
|
|
56
|
-
filePath: string | null;
|
|
57
|
-
}[];
|
|
58
|
-
imports: {
|
|
59
|
-
id: string;
|
|
60
|
-
name: string;
|
|
61
|
-
label: string;
|
|
62
|
-
filePath: string | null;
|
|
63
|
-
}[];
|
|
64
|
-
importedBy: {
|
|
65
|
-
id: string;
|
|
66
|
-
name: string;
|
|
67
|
-
label: string;
|
|
68
|
-
filePath: string | null;
|
|
69
|
-
}[];
|
|
70
|
-
community: number | null;
|
|
71
|
-
processes: string[];
|
|
72
|
-
};
|
|
73
|
-
export declare function getMonographImpact(db: Db, opts: {
|
|
74
|
-
name: string;
|
|
75
|
-
filePath?: string;
|
|
76
|
-
depth?: number;
|
|
77
|
-
}): {
|
|
78
|
-
target: {
|
|
79
|
-
id: string;
|
|
80
|
-
name: string;
|
|
81
|
-
label: string;
|
|
82
|
-
filePath: string | null;
|
|
83
|
-
};
|
|
84
|
-
impactedSymbols: {
|
|
85
|
-
id: string;
|
|
86
|
-
name: string;
|
|
87
|
-
label: string;
|
|
88
|
-
filePath: string | null;
|
|
89
|
-
depth: number;
|
|
90
|
-
}[];
|
|
91
|
-
totalImpacted: number;
|
|
92
|
-
riskScore: number;
|
|
93
|
-
maxDepthReached: number;
|
|
94
|
-
};
|
|
95
|
-
export declare function getMonographRename(db: Db, opts: {
|
|
96
|
-
oldName: string;
|
|
97
|
-
newName: string;
|
|
98
|
-
filePath?: string;
|
|
99
|
-
dryRun?: boolean;
|
|
100
|
-
}): {
|
|
101
|
-
oldName: string;
|
|
102
|
-
newName: string;
|
|
103
|
-
occurrences: {
|
|
104
|
-
filePath: string | null;
|
|
105
|
-
line: number | null;
|
|
106
|
-
kind: string;
|
|
107
|
-
}[];
|
|
108
|
-
fileCount: number;
|
|
109
|
-
dryRun: true;
|
|
110
|
-
};
|
|
111
|
-
export declare function detectMonographChanges(db: Db, opts: {
|
|
112
|
-
baseBranch?: string;
|
|
113
|
-
includeTests?: boolean;
|
|
114
|
-
}, repoPath: string): {
|
|
115
|
-
baseBranch: string;
|
|
116
|
-
changedFiles: string[];
|
|
117
|
-
affectedSymbols: {
|
|
118
|
-
id: string;
|
|
119
|
-
name: string;
|
|
120
|
-
label: string;
|
|
121
|
-
filePath: string;
|
|
122
|
-
}[];
|
|
123
|
-
symbolCount: number;
|
|
124
|
-
};
|
|
125
|
-
export declare function getMonographRouteMap(db: Db, opts: {
|
|
126
|
-
prefix?: string;
|
|
127
|
-
method?: string;
|
|
128
|
-
includeMiddleware?: boolean;
|
|
129
|
-
}): {
|
|
130
|
-
routes: {
|
|
131
|
-
path: string;
|
|
132
|
-
method: string;
|
|
133
|
-
handler: string | null;
|
|
134
|
-
filePath: string | null;
|
|
135
|
-
line: number | null;
|
|
136
|
-
}[];
|
|
137
|
-
total: number;
|
|
138
|
-
};
|
|
139
|
-
export declare function getMonographApiImpact(db: Db, opts: {
|
|
140
|
-
routePath: string;
|
|
141
|
-
method?: string;
|
|
142
|
-
}): {
|
|
143
|
-
route: string;
|
|
144
|
-
handler: string | null;
|
|
145
|
-
impactedSymbols: {
|
|
146
|
-
id: string;
|
|
147
|
-
name: string;
|
|
148
|
-
label: string;
|
|
149
|
-
filePath: string | null;
|
|
150
|
-
depth: number;
|
|
151
|
-
}[];
|
|
152
|
-
totalImpacted: number;
|
|
153
|
-
riskScore: number;
|
|
154
|
-
};
|
|
155
|
-
export declare function getMonographStaleness(repoPath: string): Promise<{
|
|
156
|
-
isStale: boolean;
|
|
157
|
-
lastCommit: string | null;
|
|
158
|
-
currentHead: string | null;
|
|
159
|
-
commitsBehind: number;
|
|
160
|
-
changedFiles: string[];
|
|
161
|
-
firstDivergingCommitTime?: string;
|
|
162
|
-
}>;
|
|
163
|
-
export declare function runDoctor(repoPath: string): Promise<{
|
|
164
|
-
healthy: boolean;
|
|
165
|
-
checks: {
|
|
166
|
-
name: string;
|
|
167
|
-
status: 'ok' | 'warn' | 'fail';
|
|
168
|
-
message: string;
|
|
169
|
-
}[];
|
|
170
|
-
}>;
|
|
171
|
-
export declare function getProcessesResource(db: Db): {
|
|
172
|
-
processes: {
|
|
173
|
-
id: string;
|
|
174
|
-
name: string;
|
|
175
|
-
steps: {
|
|
176
|
-
id: string;
|
|
177
|
-
name: string;
|
|
178
|
-
filePath: string | null;
|
|
179
|
-
}[];
|
|
180
|
-
}[];
|
|
181
|
-
};
|
|
182
|
-
export declare function getCommunitiesResource(db: Db): {
|
|
183
|
-
communities: {
|
|
184
|
-
id: number;
|
|
185
|
-
label: string;
|
|
186
|
-
size: number;
|
|
187
|
-
cohesionScore: number | null;
|
|
188
|
-
members: string[];
|
|
189
|
-
}[];
|
|
190
|
-
};
|
|
191
|
-
export declare function getSchemaResource(db: Db): {
|
|
192
|
-
labels: string[];
|
|
193
|
-
relations: string[];
|
|
194
|
-
nodeCount: number;
|
|
195
|
-
edgeCount: number;
|
|
196
|
-
communityCount: number;
|
|
197
|
-
};
|
|
198
|
-
export declare function getGraphResource(db: Db): {
|
|
199
|
-
nodes: unknown[];
|
|
200
|
-
edges: unknown[];
|
|
201
|
-
capturedAt: string;
|
|
202
|
-
};
|
|
203
|
-
export declare function getMonographCypher(db: Db, query: string): {
|
|
204
|
-
rows: Record<string, unknown>[];
|
|
205
|
-
error?: string;
|
|
206
|
-
queryTime: number;
|
|
207
|
-
};
|
|
208
|
-
export declare function augmentContext(opts: {
|
|
209
|
-
query: string;
|
|
210
|
-
repoPath: string;
|
|
211
|
-
topK?: number;
|
|
212
|
-
format?: 'markdown' | 'json';
|
|
213
|
-
}): Promise<string>;
|
|
214
|
-
export declare function injectAiContext(opts: {
|
|
215
|
-
repoPath: string;
|
|
216
|
-
targets?: Array<'claude' | 'agents-md'>;
|
|
217
|
-
}): Promise<{
|
|
218
|
-
updated: string[];
|
|
219
|
-
}>;
|
|
220
|
-
export declare function getToolMap(db: Db, opts: {
|
|
221
|
-
tool?: string;
|
|
222
|
-
}): {
|
|
223
|
-
tool: string;
|
|
224
|
-
handler: string | null;
|
|
225
|
-
filePath: string | null;
|
|
226
|
-
line: number | null;
|
|
227
|
-
}[];
|
|
228
|
-
export declare function getShapeCheck(db: Db, _repoPath: string, opts: {
|
|
229
|
-
route?: string;
|
|
230
|
-
file?: string;
|
|
231
|
-
}): {
|
|
232
|
-
mismatches: {
|
|
233
|
-
route: string;
|
|
234
|
-
producerKeys: string[];
|
|
235
|
-
consumerKeys: string[];
|
|
236
|
-
missing: string[];
|
|
237
|
-
}[];
|
|
238
|
-
checked: number;
|
|
239
|
-
ok: boolean;
|
|
240
|
-
};
|
|
241
|
-
export declare function generateSkillFiles(repoPath: string, outputDir?: string): Promise<{
|
|
242
|
-
communityCount: number;
|
|
243
|
-
filesWritten: string[];
|
|
244
|
-
}>;
|
|
245
|
-
export declare function installSkillsForPlatform(repoPath: string, communities: Array<{
|
|
246
|
-
name: string;
|
|
247
|
-
symbols: string[];
|
|
248
|
-
}>, opts: {
|
|
249
|
-
platform: 'claude' | 'cursor' | 'vscode' | 'zed';
|
|
250
|
-
}): Promise<{
|
|
251
|
-
platform: string;
|
|
252
|
-
outputDir: string;
|
|
253
|
-
filesWritten: string[];
|
|
254
|
-
}>;
|
|
255
|
-
export declare function runEmbed(_db: Db, _opts: {
|
|
256
|
-
codeOnly?: boolean;
|
|
257
|
-
force?: boolean;
|
|
258
|
-
}): Promise<{
|
|
259
|
-
model: string;
|
|
260
|
-
embedded: number;
|
|
261
|
-
skipped: number;
|
|
262
|
-
}>;
|
|
263
|
-
export declare function getGroupList(configPath: string): Promise<{
|
|
264
|
-
repo: string;
|
|
265
|
-
path: string;
|
|
266
|
-
nodeCount: number;
|
|
267
|
-
indexedAt: string | null;
|
|
268
|
-
}[]>;
|
|
269
|
-
export declare function runGroupQuery(configPath: string, query: string, limit?: number): Promise<{
|
|
270
|
-
id: string;
|
|
271
|
-
name: string;
|
|
272
|
-
label: string;
|
|
273
|
-
filePath: string | null;
|
|
274
|
-
repo: string;
|
|
275
|
-
score: number;
|
|
276
|
-
}[]>;
|
|
277
|
-
export declare function runGroupSync(configPath: string): Promise<{
|
|
278
|
-
repos: number;
|
|
279
|
-
contracts: number;
|
|
280
|
-
written: string[];
|
|
281
|
-
}>;
|
|
282
8
|
export declare function getGroupContracts(configPath: string): Promise<{
|
|
283
9
|
groupName: string;
|
|
284
10
|
symbol: string;
|
|
@@ -297,39 +23,4 @@ export declare function getGroupStatus(configPath: string): Promise<{
|
|
|
297
23
|
lastSync?: string;
|
|
298
24
|
}[];
|
|
299
25
|
}>;
|
|
300
|
-
export declare function serveMonograph(opts: {
|
|
301
|
-
port?: number;
|
|
302
|
-
open?: boolean;
|
|
303
|
-
db: Db;
|
|
304
|
-
}): Promise<{
|
|
305
|
-
status: 'started' | 'already_running';
|
|
306
|
-
url: string;
|
|
307
|
-
}>;
|
|
308
|
-
export declare function getWikiToolResult(_db: Db, _opts: {
|
|
309
|
-
communityId?: string;
|
|
310
|
-
}): {
|
|
311
|
-
pages: Array<{
|
|
312
|
-
communityId: string;
|
|
313
|
-
title: string;
|
|
314
|
-
markdown: string;
|
|
315
|
-
}>;
|
|
316
|
-
note?: string;
|
|
317
|
-
};
|
|
318
|
-
export declare function runWikiBuildTool(_db: Db, _opts: {
|
|
319
|
-
communityId?: string;
|
|
320
|
-
force?: boolean;
|
|
321
|
-
model?: string;
|
|
322
|
-
}): Promise<{
|
|
323
|
-
generated: number;
|
|
324
|
-
skipped: number;
|
|
325
|
-
note: string;
|
|
326
|
-
}>;
|
|
327
|
-
export declare function listRepos(): {
|
|
328
|
-
name: string;
|
|
329
|
-
path: string;
|
|
330
|
-
lastIndexed?: string;
|
|
331
|
-
nodeCount?: number;
|
|
332
|
-
edgeCount?: number;
|
|
333
|
-
}[];
|
|
334
|
-
export {};
|
|
335
26
|
//# sourceMappingURL=monograph-compat.d.ts.map
|