@probelabs/probe 0.6.0-rc114 → 0.6.0-rc116
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/bin/probe +3 -3
- package/build/agent/index.js +3452 -27
- package/build/agent/schemaUtils.js +3 -1
- package/build/mcp/index.js +5 -5
- package/build/mcp/index.ts +5 -5
- package/cjs/agent/ProbeAgent.cjs +3450 -25
- package/cjs/index.cjs +3450 -25
- package/package.json +2 -2
- package/src/agent/index.js +2 -2
- package/src/agent/schemaUtils.js +3 -1
- package/src/mcp/index.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@probelabs/probe",
|
|
3
|
-
"version": "0.6.0-
|
|
3
|
+
"version": "0.6.0-rc116",
|
|
4
4
|
"description": "Node.js wrapper for the probe code search tool",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@opentelemetry/sdk-node": "^0.203.0",
|
|
81
81
|
"@opentelemetry/sdk-trace-base": "^1.30.0",
|
|
82
82
|
"@opentelemetry/semantic-conventions": "^1.36.0",
|
|
83
|
-
"@probelabs/maid": "^0.0.
|
|
83
|
+
"@probelabs/maid": "^0.0.7",
|
|
84
84
|
"ai": "^5.0.0",
|
|
85
85
|
"axios": "^1.8.3",
|
|
86
86
|
"fs-extra": "^11.1.1",
|
package/src/agent/index.js
CHANGED
|
@@ -214,7 +214,7 @@ function parseArgs() {
|
|
|
214
214
|
|
|
215
215
|
// Show help message
|
|
216
216
|
function showHelp() {
|
|
217
|
-
console.
|
|
217
|
+
console.error(`
|
|
218
218
|
probe agent - AI-powered code exploration tool
|
|
219
219
|
|
|
220
220
|
Usage:
|
|
@@ -696,7 +696,7 @@ async function main() {
|
|
|
696
696
|
}
|
|
697
697
|
|
|
698
698
|
if (config.verbose) {
|
|
699
|
-
console.
|
|
699
|
+
console.error('Bash command execution enabled');
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
|
package/src/agent/schemaUtils.js
CHANGED
|
@@ -777,6 +777,7 @@ FIXING METHODOLOGY:
|
|
|
777
777
|
- Incorrect formatting for diagram-specific elements
|
|
778
778
|
- **Parentheses in node labels or subgraph names**: Wrap text containing parentheses in double quotes to prevent GitHub parsing errors
|
|
779
779
|
- Single quotes in node labels (GitHub's parser expects double quotes)
|
|
780
|
+
- **Edge/Arrow labels with spaces**: MUST use pipe syntax like "A --|Label Text|--> B" or "A -- |Label Text| --> B". NEVER use double quotes like "A -- \\"Label\\" --> B" which is INVALID
|
|
780
781
|
4. **Preserve semantic meaning** - never change the intended flow or relationships
|
|
781
782
|
5. **Use proper escaping** for special characters and spaces
|
|
782
783
|
6. **Ensure consistency** in naming conventions and formatting
|
|
@@ -812,7 +813,8 @@ When presented with a broken Mermaid diagram, analyze it thoroughly and provide
|
|
|
812
813
|
debug: this.options.debug,
|
|
813
814
|
tracer: this.options.tracer,
|
|
814
815
|
allowEdit: this.options.allowEdit,
|
|
815
|
-
maxIterations: 2 // Limit mermaid fixing to 2 iterations to prevent long loops
|
|
816
|
+
maxIterations: 2, // Limit mermaid fixing to 2 iterations to prevent long loops
|
|
817
|
+
disableMermaidValidation: true // CRITICAL: Disable mermaid validation in nested agent to prevent infinite recursion
|
|
816
818
|
});
|
|
817
819
|
}
|
|
818
820
|
|
package/src/mcp/index.ts
CHANGED
|
@@ -36,7 +36,7 @@ function parseArgs(): { timeout?: number; format?: string } {
|
|
|
36
36
|
console.error(`Format set to ${config.format}`);
|
|
37
37
|
i++; // Skip the next argument
|
|
38
38
|
} else if (args[i] === '--help' || args[i] === '-h') {
|
|
39
|
-
console.
|
|
39
|
+
console.error(`
|
|
40
40
|
Probe MCP Server
|
|
41
41
|
|
|
42
42
|
Usage:
|
|
@@ -72,11 +72,11 @@ const possiblePaths = [
|
|
|
72
72
|
for (const packageJsonPath of possiblePaths) {
|
|
73
73
|
try {
|
|
74
74
|
if (fs.existsSync(packageJsonPath)) {
|
|
75
|
-
console.
|
|
75
|
+
console.error(`Found package.json at: ${packageJsonPath}`);
|
|
76
76
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
77
77
|
if (packageJson.version) {
|
|
78
78
|
packageVersion = packageJson.version;
|
|
79
|
-
console.
|
|
79
|
+
console.error(`Using version from package.json: ${packageVersion}`);
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -93,7 +93,7 @@ if (packageVersion === '0.0.0') {
|
|
|
93
93
|
const npmList = JSON.parse(result.stdout);
|
|
94
94
|
if (npmList.dependencies && npmList.dependencies['@probelabs/probe']) {
|
|
95
95
|
packageVersion = npmList.dependencies['@probelabs/probe'].version;
|
|
96
|
-
console.
|
|
96
|
+
console.error(`Using version from npm list: ${packageVersion}`);
|
|
97
97
|
}
|
|
98
98
|
} catch (error) {
|
|
99
99
|
console.error('Error getting version from npm:', error);
|
|
@@ -104,7 +104,7 @@ import { existsSync } from 'fs';
|
|
|
104
104
|
|
|
105
105
|
// Get the path to the bin directory
|
|
106
106
|
const binDir = path.resolve(__dirname, '..', 'bin');
|
|
107
|
-
console.
|
|
107
|
+
console.error(`Bin directory: ${binDir}`);
|
|
108
108
|
|
|
109
109
|
// The @probelabs/probe package now handles binary path management internally
|
|
110
110
|
// We don't need to manage the binary path in the MCP server anymore
|