@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
|
@@ -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/build/mcp/index.js
CHANGED
|
@@ -31,7 +31,7 @@ function parseArgs() {
|
|
|
31
31
|
i++; // Skip the next argument
|
|
32
32
|
}
|
|
33
33
|
else if (args[i] === '--help' || args[i] === '-h') {
|
|
34
|
-
console.
|
|
34
|
+
console.error(`
|
|
35
35
|
Probe MCP Server
|
|
36
36
|
|
|
37
37
|
Usage:
|
|
@@ -61,11 +61,11 @@ const possiblePaths = [
|
|
|
61
61
|
for (const packageJsonPath of possiblePaths) {
|
|
62
62
|
try {
|
|
63
63
|
if (fs.existsSync(packageJsonPath)) {
|
|
64
|
-
console.
|
|
64
|
+
console.error(`Found package.json at: ${packageJsonPath}`);
|
|
65
65
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
66
66
|
if (packageJson.version) {
|
|
67
67
|
packageVersion = packageJson.version;
|
|
68
|
-
console.
|
|
68
|
+
console.error(`Using version from package.json: ${packageVersion}`);
|
|
69
69
|
break;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -82,7 +82,7 @@ if (packageVersion === '0.0.0') {
|
|
|
82
82
|
const npmList = JSON.parse(result.stdout);
|
|
83
83
|
if (npmList.dependencies && npmList.dependencies['@probelabs/probe']) {
|
|
84
84
|
packageVersion = npmList.dependencies['@probelabs/probe'].version;
|
|
85
|
-
console.
|
|
85
|
+
console.error(`Using version from npm list: ${packageVersion}`);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
catch (error) {
|
|
@@ -91,7 +91,7 @@ if (packageVersion === '0.0.0') {
|
|
|
91
91
|
}
|
|
92
92
|
// Get the path to the bin directory
|
|
93
93
|
const binDir = path.resolve(__dirname, '..', 'bin');
|
|
94
|
-
console.
|
|
94
|
+
console.error(`Bin directory: ${binDir}`);
|
|
95
95
|
class ProbeServer {
|
|
96
96
|
constructor(timeout = 30, format) {
|
|
97
97
|
this.defaultTimeout = timeout;
|
package/build/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
|