@probelabs/probe 0.6.0-rc196 → 0.6.0-rc197
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/binaries/{probe-v0.6.0-rc196-aarch64-apple-darwin.tar.gz → probe-v0.6.0-rc197-aarch64-apple-darwin.tar.gz} +0 -0
- package/bin/binaries/probe-v0.6.0-rc197-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc197-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc197-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/{probe-v0.6.0-rc196-x86_64-unknown-linux-musl.tar.gz → probe-v0.6.0-rc197-x86_64-unknown-linux-musl.tar.gz} +0 -0
- package/build/agent/ProbeAgent.js +6 -2
- package/build/agent/index.js +132 -97
- package/build/tools/bash.js +9 -3
- package/build/tools/common.js +71 -4
- package/build/tools/index.js +4 -2
- package/build/tools/vercel.js +28 -19
- package/cjs/agent/ProbeAgent.cjs +324 -250
- package/cjs/index.cjs +329 -253
- package/package.json +1 -1
- package/src/agent/ProbeAgent.js +6 -2
- package/src/tools/bash.js +9 -3
- package/src/tools/common.js +71 -4
- package/src/tools/index.js +4 -2
- package/src/tools/vercel.js +28 -19
- package/bin/binaries/probe-v0.6.0-rc196-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc196-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc196-x86_64-pc-windows-msvc.zip +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2458,9 +2458,13 @@ Follow these instructions carefully:
|
|
|
2458
2458
|
try {
|
|
2459
2459
|
// Add sessionId and workingDirectory to params for tool execution
|
|
2460
2460
|
// Validate and resolve workingDirectory
|
|
2461
|
-
|
|
2461
|
+
// Priority: explicit cwd > first allowed folder > process.cwd()
|
|
2462
|
+
let resolvedWorkingDirectory = this.cwd || (this.allowedFolders && this.allowedFolders[0]) || process.cwd();
|
|
2462
2463
|
if (params.workingDirectory) {
|
|
2463
|
-
|
|
2464
|
+
// Resolve relative paths against the current working directory context, not process.cwd()
|
|
2465
|
+
const requestedDir = isAbsolute(params.workingDirectory)
|
|
2466
|
+
? resolve(params.workingDirectory)
|
|
2467
|
+
: resolve(resolvedWorkingDirectory, params.workingDirectory);
|
|
2464
2468
|
// Check if the requested directory is within allowed folders
|
|
2465
2469
|
const isWithinAllowed = !this.allowedFolders || this.allowedFolders.length === 0 ||
|
|
2466
2470
|
this.allowedFolders.some(folder => {
|