@probelabs/probe 0.6.0-rc228 → 0.6.0-rc229
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-rc229-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc229-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc229-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc229-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc229-x86_64-unknown-linux-musl.tar.gz +0 -0
- package/build/agent/index.js +4 -3
- package/build/tools/vercel.js +7 -3
- package/cjs/agent/ProbeAgent.cjs +8891 -6559
- package/cjs/index.cjs +8894 -6562
- package/package.json +1 -1
- package/src/tools/vercel.js +7 -3
- package/bin/binaries/probe-v0.6.0-rc228-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc228-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc228-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc228-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc228-x86_64-unknown-linux-musl.tar.gz +0 -0
package/package.json
CHANGED
package/src/tools/vercel.js
CHANGED
|
@@ -140,6 +140,7 @@ function buildSearchDelegateTask({ searchQuery, searchPath, exact, language, all
|
|
|
140
140
|
`Options: exact=${exact ? 'true' : 'false'}, language=${language || 'auto'}, allow_tests=${allowTests ? 'true' : 'false'}.`,
|
|
141
141
|
'',
|
|
142
142
|
'Return ONLY valid JSON: {"targets": ["path/to/file.ext#Symbol", "path/to/file.ext:line", "path/to/file.ext:start-end"]}',
|
|
143
|
+
'IMPORTANT: Use ABSOLUTE file paths in targets (e.g., "/full/path/to/file.ext#Symbol"). If you only have relative paths, make them relative to the search path above.',
|
|
143
144
|
'Prefer #Symbol when a function/class name is clear; otherwise use line numbers.',
|
|
144
145
|
'Deduplicate targets. Do NOT explain or answer - ONLY return the JSON targets.'
|
|
145
146
|
].join('\n');
|
|
@@ -267,11 +268,14 @@ export const searchTool = (options = {}) => {
|
|
|
267
268
|
return await runRawSearch();
|
|
268
269
|
}
|
|
269
270
|
|
|
270
|
-
|
|
271
|
-
|
|
271
|
+
// Resolve relative paths against the actual search directory, not the general cwd.
|
|
272
|
+
// The delegate returns paths relative to where the search was performed (searchPaths[0]),
|
|
273
|
+
// which may differ from options.cwd when the user specifies a path parameter.
|
|
274
|
+
const resolutionBase = searchPaths[0] || options.cwd || '.';
|
|
275
|
+
const resolvedTargets = targets.map(target => resolveTargetPath(target, resolutionBase));
|
|
272
276
|
const extractOptions = {
|
|
273
277
|
files: resolvedTargets,
|
|
274
|
-
cwd:
|
|
278
|
+
cwd: resolutionBase,
|
|
275
279
|
allowTests: allow_tests ?? true
|
|
276
280
|
};
|
|
277
281
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|