minovative-mind-cli 2.1.2 → 2.1.3

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.
@@ -3,7 +3,7 @@
3
3
  "chat": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "Start an interactive AI coding agent session powered by Vertex AI.\n\nInside the chat session, you can use the following commands in the slash menu:\n /models - Select the active model\n /plan - Toggle plan mode to review implementation strategies\n /paste - Enter multi-line paste mode for long snippets\n /clear - Clear conversation history\n /debug - Debug tests or command execution in a sandbox loop\n /auto-approve - Toggle automatic approval of tool/command runs\n /sub-agents - Toggle the MMAAK Engine for parallel investigation and execution\n /semantic-search - Toggle local vector index capabilities\n /workspaces - Manage external workspaces for cross-project development\n /stats - View current session statistics and configuration\n /commit - Commit current workspace changes to Git\n /revert - Revert the last file modification made by the agent\n /chats - View, resume, or delete previous chat sessions\n \nChat Controls:\n - Multi-line Input: End a line with \\ to continue on the next line\n - Stop/Abort: Type \"stop\" to immediately interrupt agent generation\n - Exit Session: Type \"exit\" or \"quit\" to end the agent session",
6
+ "description": "Start an interactive AI coding agent session powered by Vertex AI.\n\nInside the chat session, you can use the following commands in the slash menu:\n /models - Select the active model\n /plan - Toggle plan mode to review implementation strategies\n /paste - Enter multi-line paste mode for long snippets\n /clear - Clear conversation history\n /debug - Debug tests or command execution in a sandbox loop\n /auto-approve - Toggle automatic approval of tool/command runs\n /sub-agents - Toggle the MMAAK Engine for parallel investigation and execution\n /workspaces - Manage external workspaces for cross-project development\n /stats - View current session statistics and configuration\n /commit - Commit current workspace changes to Git\n /revert - Revert the last file modification made by the agent\n /chats - View, resume, or delete previous chat sessions\n \nChat Controls:\n - Multi-line Input: End a line with \\ to continue on the next line\n - Stop/Abort: Type \"stop\" to immediately interrupt agent generation\n - Exit Session: Type \"exit\" or \"quit\" to end the agent session",
7
7
  "examples": [
8
8
  "<%= config.bin %> chat",
9
9
  "<%= config.bin %> chat --help"
@@ -65,5 +65,5 @@
65
65
  ]
66
66
  }
67
67
  },
68
- "version": "2.1.2"
68
+ "version": "2.1.3"
69
69
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minovative-mind-cli",
3
3
  "description": "An automated AI agent powered by Vertex AI that helps you write software",
4
- "version": "2.1.2",
4
+ "version": "2.1.3",
5
5
  "author": "Daniel Ward",
6
6
  "bin": {
7
7
  "minovative-mind-cli": "bin/run.js"
@@ -1,82 +0,0 @@
1
- /**
2
- * A single result from a semantic search query.
3
- */
4
- export interface SearchResult {
5
- filePath: string;
6
- startLine: number;
7
- endLine: number;
8
- label: string;
9
- preview: string;
10
- /** Cosine similarity score between 0.0 and 1.0 */
11
- score: number;
12
- }
13
- /**
14
- * Manages a persistent local vector index for semantic code search.
15
- *
16
- * Lifecycle:
17
- * 1. On first `gatherContext` call, if no index exists on disk, `buildIndex()` is called.
18
- * 2. After the Execution Agent modifies files, `updateIndex()` delta-reindexes only changed files.
19
- * 3. `search()` embeds the query (1 API call) and scans the local index via cosine similarity.
20
- * 4. Index is persisted to `.minovativemind/embeddings/index.json` via atomic writes.
21
- */
22
- export declare class EmbeddingIndex {
23
- private chunks;
24
- private modelVersion;
25
- /**
26
- * Builds the full index for a workspace by scanning all eligible source files,
27
- * chunking them at function/class boundaries, and batch-embedding them.
28
- *
29
- * @param workspaceRoot - Absolute path to the workspace root directory.
30
- * @param onProgress - Optional callback for user-facing progress messages.
31
- */
32
- buildIndex(workspaceRoot: string, onProgress?: (msg: string) => void): Promise<void>;
33
- /**
34
- * Delta-updates the index for files that have changed.
35
- * Removes stale chunks for modified/deleted files, then re-chunks and
36
- * re-embeds only the affected files.
37
- *
38
- * @param workspaceRoot - Absolute path to the workspace root.
39
- * @param changedFiles - Array of relative file paths that were modified.
40
- */
41
- updateIndex(workspaceRoot: string, changedFiles: string[]): Promise<void>;
42
- /**
43
- * Executes a semantic search against the local index.
44
- *
45
- * 1. Embeds the query string (single API call).
46
- * 2. Computes cosine similarity against all indexed chunks.
47
- * 3. Returns the top-K results sorted by descending similarity score.
48
- *
49
- * @param query - Natural language description of what to search for.
50
- * @param topK - Number of results to return (default 5, max 15).
51
- * @returns Array of search results with file paths, line ranges, and scores.
52
- */
53
- search(query: string, topK?: number): Promise<SearchResult[]>;
54
- /**
55
- * Persists the index to disk using the atomic write pattern from projectStorage.
56
- */
57
- save(workspaceRoot: string): Promise<void>;
58
- /**
59
- * Loads the index from disk. Returns false if no index exists or the model
60
- * version has changed (requiring a full rebuild).
61
- */
62
- load(workspaceRoot: string): Promise<boolean>;
63
- /** Check if the index is loaded and contains chunks */
64
- isReady(): boolean;
65
- /** Get the number of chunks in the index */
66
- get size(): number;
67
- /**
68
- * Recursively walks the workspace, reading and chunking eligible files.
69
- * Respects .gitignore patterns and EXCLUDED_EXTENSIONS.
70
- */
71
- private walkAndChunk;
72
- /**
73
- * Generates a content hash for delta-detection.
74
- * Uses SHA-256 of (filePath + content) to detect changes.
75
- */
76
- private hashChunk;
77
- }
78
- /**
79
- * Returns the global singleton EmbeddingIndex instance.
80
- * Lazily created on first access.
81
- */
82
- export declare function getEmbeddingIndex(): EmbeddingIndex;