@probelabs/probe 0.6.0-rc147 → 0.6.0-rc149

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 CHANGED
@@ -119,10 +119,19 @@ async function main() {
119
119
  const child = spawn('node', [mcpPath, ...mcpArgs], { stdio: 'inherit' });
120
120
  child.on('exit', (code) => process.exit(code || 0));
121
121
  } else if (process.argv[2] === 'agent') {
122
- // Launch Agent server instead of binary
123
- const agentPath = join(__dirname, '..', 'src', 'agent', 'index.js');
122
+ // Launch Agent server instead of binary (use bundled version to reduce dependencies)
123
+ const agentPath = join(__dirname, '..', 'build', 'agent', 'index.js');
124
+
125
+ // Verify bundled agent exists
126
+ try {
127
+ await accessAsync(agentPath, constants.F_OK);
128
+ } catch {
129
+ console.error('Error: Bundled agent not found at', agentPath);
130
+ console.error('Please run: npm run build:agent');
131
+ process.exit(1);
132
+ }
133
+
124
134
  const agentArgs = process.argv.slice(3); // Remove 'node', 'probe', and 'agent'
125
-
126
135
  const child = spawn('node', [agentPath, ...agentArgs], { stdio: 'inherit' });
127
136
  child.on('exit', (code) => process.exit(code || 0));
128
137
  } else {
@@ -920,9 +920,7 @@ Examples:
920
920
  </search>
921
921
 
922
922
  <extract>
923
- <path>src/config.js</path>
924
- <start_line>15</start_line>
925
- <end_line>25</end_line>
923
+ <targets>src/config.js:15-25</targets>
926
924
  </extract>
927
925
 
928
926
  <attempt_completion>