monomind 1.11.5 → 1.11.7

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.
Files changed (37) hide show
  1. package/README.md +0 -1
  2. package/package.json +11 -4
  3. package/packages/@monomind/cli/README.md +0 -1
  4. package/packages/@monomind/cli/dist/src/commands/agent.js +8 -1
  5. package/packages/@monomind/cli/dist/src/commands/benchmark.js +17 -45
  6. package/packages/@monomind/cli/dist/src/commands/index.d.ts +0 -2
  7. package/packages/@monomind/cli/dist/src/commands/index.js +0 -7
  8. package/packages/@monomind/cli/dist/src/commands/monograph.js +1 -1
  9. package/packages/@monomind/cli/dist/src/commands/plugins.js +1 -2
  10. package/packages/@monomind/cli/dist/src/commands/route.js +27 -36
  11. package/packages/@monomind/cli/dist/src/index.js +6 -26
  12. package/packages/@monomind/cli/dist/src/mcp-server.js +1 -1
  13. package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.d.ts +0 -8
  14. package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.js +0 -4
  15. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.js +2 -7
  16. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.d.ts +4 -313
  17. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.js +11 -1051
  18. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.js +25 -25
  19. package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.d.ts +1 -1
  20. package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.js +4 -30
  21. package/packages/@monomind/cli/dist/src/memory/memory-bridge.d.ts +1 -2
  22. package/packages/@monomind/cli/dist/src/memory/memory-bridge.js +1 -2
  23. package/packages/@monomind/cli/dist/src/memory/memory-initializer.js +7 -115
  24. package/packages/@monomind/cli/dist/src/monovector/index.d.ts +1 -8
  25. package/packages/@monomind/cli/dist/src/monovector/index.js +1 -13
  26. package/packages/@monomind/cli/dist/src/plugins/store/discovery.js +0 -33
  27. package/packages/@monomind/cli/dist/src/routing/llm-caller.d.ts +24 -0
  28. package/packages/@monomind/cli/dist/src/routing/llm-caller.js +109 -0
  29. package/packages/@monomind/cli/dist/src/update/checker.js +0 -1
  30. package/packages/@monomind/cli/dist/src/update/validator.js +0 -10
  31. package/packages/@monomind/cli/package.json +4 -11
  32. package/packages/@monomind/guidance/package.json +1 -2
  33. package/packages/@monomind/cli/bundled-graph/dist/src/build.js +0 -73
  34. package/packages/@monomind/cli/bundled-graph/dist/src/cluster.js +0 -120
  35. package/packages/@monomind/cli/bundled-graph/package.json +0 -57
  36. package/packages/@monomind/cli/dist/src/commands/embeddings.d.ts +0 -18
  37. package/packages/@monomind/cli/dist/src/commands/embeddings.js +0 -1628
@@ -1,284 +1,10 @@
1
1
  /**
2
- * Monograph Compatibility Layer
2
+ * Monograph compatibility shim — @monoes/monograph@1.2.0
3
3
  *
4
- * Provides the ~27 high-level functions that the CLI calls but that are NOT
5
- * exported by @monoes/monograph@1.1.0 (which only exports low-level primitives).
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