@probelabs/probe 0.6.0-rc171 → 0.6.0-rc173
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/build/agent/index.js +6 -2
- package/build/tools/vercel.js +12 -3
- package/cjs/agent/ProbeAgent.cjs +9 -4
- package/cjs/index.cjs +9 -4
- package/package.json +1 -1
- package/src/tools/vercel.js +12 -3
package/build/agent/index.js
CHANGED
|
@@ -8372,7 +8372,7 @@ var init_vercel = __esm({
|
|
|
8372
8372
|
});
|
|
8373
8373
|
};
|
|
8374
8374
|
delegateTool = (options = {}) => {
|
|
8375
|
-
const { debug = false, timeout = 300 } = options;
|
|
8375
|
+
const { debug = false, timeout = 300, defaultPath, allowedFolders } = options;
|
|
8376
8376
|
return tool({
|
|
8377
8377
|
name: "delegate",
|
|
8378
8378
|
description: delegateDescription,
|
|
@@ -8402,11 +8402,15 @@ var init_vercel = __esm({
|
|
|
8402
8402
|
if (model !== void 0 && model !== null && typeof model !== "string") {
|
|
8403
8403
|
throw new TypeError("model must be a string, null, or undefined");
|
|
8404
8404
|
}
|
|
8405
|
+
const effectivePath = path8 || defaultPath || allowedFolders && allowedFolders[0];
|
|
8405
8406
|
if (debug) {
|
|
8406
8407
|
console.error(`Executing delegate with task: "${task.substring(0, 100)}${task.length > 100 ? "..." : ""}"`);
|
|
8407
8408
|
if (parentSessionId) {
|
|
8408
8409
|
console.error(`Parent session: ${parentSessionId}`);
|
|
8409
8410
|
}
|
|
8411
|
+
if (effectivePath && effectivePath !== path8) {
|
|
8412
|
+
console.error(`Using inherited path: ${effectivePath}`);
|
|
8413
|
+
}
|
|
8410
8414
|
}
|
|
8411
8415
|
const result = await delegate({
|
|
8412
8416
|
task,
|
|
@@ -8415,7 +8419,7 @@ var init_vercel = __esm({
|
|
|
8415
8419
|
currentIteration: currentIteration || 0,
|
|
8416
8420
|
maxIterations: maxIterations || 30,
|
|
8417
8421
|
parentSessionId,
|
|
8418
|
-
path:
|
|
8422
|
+
path: effectivePath,
|
|
8419
8423
|
provider,
|
|
8420
8424
|
model,
|
|
8421
8425
|
tracer
|
package/build/tools/vercel.js
CHANGED
|
@@ -237,14 +237,16 @@ export const extractTool = (options = {}) => {
|
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* Delegate tool generator
|
|
240
|
-
*
|
|
240
|
+
*
|
|
241
241
|
* @param {Object} [options] - Configuration options
|
|
242
242
|
* @param {boolean} [options.debug=false] - Enable debug logging
|
|
243
243
|
* @param {number} [options.timeout=300] - Default timeout in seconds
|
|
244
|
+
* @param {string} [options.defaultPath] - Default path to use if not specified in call
|
|
245
|
+
* @param {string[]} [options.allowedFolders] - Allowed folders for workspace isolation
|
|
244
246
|
* @returns {Object} Configured delegate tool
|
|
245
247
|
*/
|
|
246
248
|
export const delegateTool = (options = {}) => {
|
|
247
|
-
const { debug = false, timeout = 300 } = options;
|
|
249
|
+
const { debug = false, timeout = 300, defaultPath, allowedFolders } = options;
|
|
248
250
|
|
|
249
251
|
return tool({
|
|
250
252
|
name: 'delegate',
|
|
@@ -286,11 +288,18 @@ export const delegateTool = (options = {}) => {
|
|
|
286
288
|
throw new TypeError('model must be a string, null, or undefined');
|
|
287
289
|
}
|
|
288
290
|
|
|
291
|
+
// Use inherited path if not specified in AI call
|
|
292
|
+
// Priority: explicit path > defaultPath > first allowedFolder
|
|
293
|
+
const effectivePath = path || defaultPath || (allowedFolders && allowedFolders[0]);
|
|
294
|
+
|
|
289
295
|
if (debug) {
|
|
290
296
|
console.error(`Executing delegate with task: "${task.substring(0, 100)}${task.length > 100 ? '...' : ''}"`);
|
|
291
297
|
if (parentSessionId) {
|
|
292
298
|
console.error(`Parent session: ${parentSessionId}`);
|
|
293
299
|
}
|
|
300
|
+
if (effectivePath && effectivePath !== path) {
|
|
301
|
+
console.error(`Using inherited path: ${effectivePath}`);
|
|
302
|
+
}
|
|
294
303
|
}
|
|
295
304
|
|
|
296
305
|
// Execute delegation - let errors propagate naturally
|
|
@@ -301,7 +310,7 @@ export const delegateTool = (options = {}) => {
|
|
|
301
310
|
currentIteration: currentIteration || 0,
|
|
302
311
|
maxIterations: maxIterations || 30,
|
|
303
312
|
parentSessionId,
|
|
304
|
-
path,
|
|
313
|
+
path: effectivePath,
|
|
305
314
|
provider,
|
|
306
315
|
model,
|
|
307
316
|
tracer
|
package/cjs/agent/ProbeAgent.cjs
CHANGED
|
@@ -17051,7 +17051,7 @@ var require_package2 = __commonJS({
|
|
|
17051
17051
|
module2.exports = {
|
|
17052
17052
|
name: "@aws-sdk/client-bedrock-runtime",
|
|
17053
17053
|
description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
17054
|
-
version: "3.
|
|
17054
|
+
version: "3.941.0",
|
|
17055
17055
|
scripts: {
|
|
17056
17056
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
17057
17057
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -25374,7 +25374,8 @@ var require_dist_cjs66 = __commonJS({
|
|
|
25374
25374
|
var ServiceTierType = {
|
|
25375
25375
|
DEFAULT: "default",
|
|
25376
25376
|
FLEX: "flex",
|
|
25377
|
-
PRIORITY: "priority"
|
|
25377
|
+
PRIORITY: "priority",
|
|
25378
|
+
RESERVED: "reserved"
|
|
25378
25379
|
};
|
|
25379
25380
|
var StopReason = {
|
|
25380
25381
|
CONTENT_FILTERED: "content_filtered",
|
|
@@ -34473,7 +34474,7 @@ var init_vercel = __esm({
|
|
|
34473
34474
|
});
|
|
34474
34475
|
};
|
|
34475
34476
|
delegateTool = (options = {}) => {
|
|
34476
|
-
const { debug = false, timeout = 300 } = options;
|
|
34477
|
+
const { debug = false, timeout = 300, defaultPath, allowedFolders } = options;
|
|
34477
34478
|
return (0, import_ai.tool)({
|
|
34478
34479
|
name: "delegate",
|
|
34479
34480
|
description: delegateDescription,
|
|
@@ -34503,11 +34504,15 @@ var init_vercel = __esm({
|
|
|
34503
34504
|
if (model !== void 0 && model !== null && typeof model !== "string") {
|
|
34504
34505
|
throw new TypeError("model must be a string, null, or undefined");
|
|
34505
34506
|
}
|
|
34507
|
+
const effectivePath = path8 || defaultPath || allowedFolders && allowedFolders[0];
|
|
34506
34508
|
if (debug) {
|
|
34507
34509
|
console.error(`Executing delegate with task: "${task.substring(0, 100)}${task.length > 100 ? "..." : ""}"`);
|
|
34508
34510
|
if (parentSessionId) {
|
|
34509
34511
|
console.error(`Parent session: ${parentSessionId}`);
|
|
34510
34512
|
}
|
|
34513
|
+
if (effectivePath && effectivePath !== path8) {
|
|
34514
|
+
console.error(`Using inherited path: ${effectivePath}`);
|
|
34515
|
+
}
|
|
34511
34516
|
}
|
|
34512
34517
|
const result = await delegate({
|
|
34513
34518
|
task,
|
|
@@ -34516,7 +34521,7 @@ var init_vercel = __esm({
|
|
|
34516
34521
|
currentIteration: currentIteration || 0,
|
|
34517
34522
|
maxIterations: maxIterations || 30,
|
|
34518
34523
|
parentSessionId,
|
|
34519
|
-
path:
|
|
34524
|
+
path: effectivePath,
|
|
34520
34525
|
provider,
|
|
34521
34526
|
model,
|
|
34522
34527
|
tracer
|
package/cjs/index.cjs
CHANGED
|
@@ -18493,7 +18493,7 @@ var require_package2 = __commonJS({
|
|
|
18493
18493
|
module2.exports = {
|
|
18494
18494
|
name: "@aws-sdk/client-bedrock-runtime",
|
|
18495
18495
|
description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
18496
|
-
version: "3.
|
|
18496
|
+
version: "3.941.0",
|
|
18497
18497
|
scripts: {
|
|
18498
18498
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
18499
18499
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -26816,7 +26816,8 @@ var require_dist_cjs66 = __commonJS({
|
|
|
26816
26816
|
var ServiceTierType = {
|
|
26817
26817
|
DEFAULT: "default",
|
|
26818
26818
|
FLEX: "flex",
|
|
26819
|
-
PRIORITY: "priority"
|
|
26819
|
+
PRIORITY: "priority",
|
|
26820
|
+
RESERVED: "reserved"
|
|
26820
26821
|
};
|
|
26821
26822
|
var StopReason = {
|
|
26822
26823
|
CONTENT_FILTERED: "content_filtered",
|
|
@@ -85848,7 +85849,7 @@ var init_vercel = __esm({
|
|
|
85848
85849
|
});
|
|
85849
85850
|
};
|
|
85850
85851
|
delegateTool = (options = {}) => {
|
|
85851
|
-
const { debug = false, timeout = 300 } = options;
|
|
85852
|
+
const { debug = false, timeout = 300, defaultPath, allowedFolders } = options;
|
|
85852
85853
|
return (0, import_ai3.tool)({
|
|
85853
85854
|
name: "delegate",
|
|
85854
85855
|
description: delegateDescription,
|
|
@@ -85878,11 +85879,15 @@ var init_vercel = __esm({
|
|
|
85878
85879
|
if (model !== void 0 && model !== null && typeof model !== "string") {
|
|
85879
85880
|
throw new TypeError("model must be a string, null, or undefined");
|
|
85880
85881
|
}
|
|
85882
|
+
const effectivePath = path8 || defaultPath || allowedFolders && allowedFolders[0];
|
|
85881
85883
|
if (debug) {
|
|
85882
85884
|
console.error(`Executing delegate with task: "${task.substring(0, 100)}${task.length > 100 ? "..." : ""}"`);
|
|
85883
85885
|
if (parentSessionId) {
|
|
85884
85886
|
console.error(`Parent session: ${parentSessionId}`);
|
|
85885
85887
|
}
|
|
85888
|
+
if (effectivePath && effectivePath !== path8) {
|
|
85889
|
+
console.error(`Using inherited path: ${effectivePath}`);
|
|
85890
|
+
}
|
|
85886
85891
|
}
|
|
85887
85892
|
const result = await delegate({
|
|
85888
85893
|
task,
|
|
@@ -85891,7 +85896,7 @@ var init_vercel = __esm({
|
|
|
85891
85896
|
currentIteration: currentIteration || 0,
|
|
85892
85897
|
maxIterations: maxIterations || 30,
|
|
85893
85898
|
parentSessionId,
|
|
85894
|
-
path:
|
|
85899
|
+
path: effectivePath,
|
|
85895
85900
|
provider,
|
|
85896
85901
|
model,
|
|
85897
85902
|
tracer
|
package/package.json
CHANGED
package/src/tools/vercel.js
CHANGED
|
@@ -237,14 +237,16 @@ export const extractTool = (options = {}) => {
|
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* Delegate tool generator
|
|
240
|
-
*
|
|
240
|
+
*
|
|
241
241
|
* @param {Object} [options] - Configuration options
|
|
242
242
|
* @param {boolean} [options.debug=false] - Enable debug logging
|
|
243
243
|
* @param {number} [options.timeout=300] - Default timeout in seconds
|
|
244
|
+
* @param {string} [options.defaultPath] - Default path to use if not specified in call
|
|
245
|
+
* @param {string[]} [options.allowedFolders] - Allowed folders for workspace isolation
|
|
244
246
|
* @returns {Object} Configured delegate tool
|
|
245
247
|
*/
|
|
246
248
|
export const delegateTool = (options = {}) => {
|
|
247
|
-
const { debug = false, timeout = 300 } = options;
|
|
249
|
+
const { debug = false, timeout = 300, defaultPath, allowedFolders } = options;
|
|
248
250
|
|
|
249
251
|
return tool({
|
|
250
252
|
name: 'delegate',
|
|
@@ -286,11 +288,18 @@ export const delegateTool = (options = {}) => {
|
|
|
286
288
|
throw new TypeError('model must be a string, null, or undefined');
|
|
287
289
|
}
|
|
288
290
|
|
|
291
|
+
// Use inherited path if not specified in AI call
|
|
292
|
+
// Priority: explicit path > defaultPath > first allowedFolder
|
|
293
|
+
const effectivePath = path || defaultPath || (allowedFolders && allowedFolders[0]);
|
|
294
|
+
|
|
289
295
|
if (debug) {
|
|
290
296
|
console.error(`Executing delegate with task: "${task.substring(0, 100)}${task.length > 100 ? '...' : ''}"`);
|
|
291
297
|
if (parentSessionId) {
|
|
292
298
|
console.error(`Parent session: ${parentSessionId}`);
|
|
293
299
|
}
|
|
300
|
+
if (effectivePath && effectivePath !== path) {
|
|
301
|
+
console.error(`Using inherited path: ${effectivePath}`);
|
|
302
|
+
}
|
|
294
303
|
}
|
|
295
304
|
|
|
296
305
|
// Execute delegation - let errors propagate naturally
|
|
@@ -301,7 +310,7 @@ export const delegateTool = (options = {}) => {
|
|
|
301
310
|
currentIteration: currentIteration || 0,
|
|
302
311
|
maxIterations: maxIterations || 30,
|
|
303
312
|
parentSessionId,
|
|
304
|
-
path,
|
|
313
|
+
path: effectivePath,
|
|
305
314
|
provider,
|
|
306
315
|
model,
|
|
307
316
|
tracer
|