@probelabs/probe 0.6.0-rc191 → 0.6.0-rc194

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.
@@ -63088,7 +63088,7 @@ var ProbeAgentMcpServer = class {
63088
63088
  }
63089
63089
  const options = {
63090
63090
  files: args.files,
63091
- path: args.path,
63091
+ cwd: args.path,
63092
63092
  format: "xml",
63093
63093
  allowTests: true
63094
63094
  // Include test files by default
@@ -319,9 +319,10 @@ class ProbeServer {
319
319
  throw new Error("Files array is required and must not be empty");
320
320
  }
321
321
  // Build options with smart defaults
322
+ // Use 'cwd' instead of 'path' - the extract function uses cwd for resolving relative file paths
322
323
  const options = {
323
324
  files: args.files,
324
- path: args.path,
325
+ cwd: args.path,
325
326
  format: 'xml',
326
327
  allowTests: true, // Include test files by default
327
328
  };
@@ -385,9 +385,10 @@ class ProbeServer {
385
385
  }
386
386
 
387
387
  // Build options with smart defaults
388
+ // Use 'cwd' instead of 'path' - the extract function uses cwd for resolving relative file paths
388
389
  const options: any = {
389
390
  files: args.files,
390
- path: args.path,
391
+ cwd: args.path,
391
392
  format: 'xml',
392
393
  allowTests: true, // Include test files by default
393
394
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@probelabs/probe",
3
- "version": "0.6.0-rc191",
3
+ "version": "0.6.0-rc194",
4
4
  "description": "Node.js wrapper for the probe code search tool",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -440,9 +440,10 @@ class ProbeAgentMcpServer {
440
440
  }
441
441
 
442
442
  // Build options with smart defaults
443
+ // Use 'cwd' instead of 'path' - the extract function uses cwd for resolving relative file paths
443
444
  const options = {
444
445
  files: args.files,
445
- path: args.path,
446
+ cwd: args.path,
446
447
  format: 'xml',
447
448
  allowTests: true, // Include test files by default
448
449
  };
package/src/mcp/index.ts CHANGED
@@ -385,9 +385,10 @@ class ProbeServer {
385
385
  }
386
386
 
387
387
  // Build options with smart defaults
388
+ // Use 'cwd' instead of 'path' - the extract function uses cwd for resolving relative file paths
388
389
  const options: any = {
389
390
  files: args.files,
390
- path: args.path,
391
+ cwd: args.path,
391
392
  format: 'xml',
392
393
  allowTests: true, // Include test files by default
393
394
  };