@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 +12 -3
- package/build/agent/ProbeAgent.js +1 -3
- package/build/agent/index.js +58 -477
- package/build/extract.js +1 -1
- package/build/index.js +1 -7
- package/build/mcp/index.js +3 -3
- package/build/mcp/index.ts +3 -3
- package/build/tools/common.js +58 -49
- package/cjs/agent/ProbeAgent.cjs +699 -770
- package/cjs/index.cjs +650 -1347
- package/package.json +1 -12
- package/src/agent/ProbeAgent.js +1 -3
- package/src/extract.js +1 -1
- package/src/index.js +1 -7
- package/src/mcp/index.ts +3 -3
- package/src/tools/common.js +58 -49
- package/bin/binaries/probe-v0.6.0-rc147-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc147-aarch64-unknown-linux-gnu.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc147-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc147-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc147-x86_64-unknown-linux-gnu.tar.gz +0 -0
- package/build/agent/appTracer.js +0 -360
- package/build/agent/fileSpanExporter.js +0 -167
- package/build/agent/telemetry.js +0 -219
- package/cjs/agent/telemetry.cjs +0 -358
- package/src/agent/appTracer.js +0 -360
- package/src/agent/fileSpanExporter.js +0 -167
- package/src/agent/telemetry.js +0 -219
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, '..', '
|
|
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 {
|