@probelabs/probe 0.6.0-rc276 → 0.6.0-rc277
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-rc277-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc277-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc277-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc277-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/{probe-v0.6.0-rc276-x86_64-unknown-linux-musl.tar.gz → probe-v0.6.0-rc277-x86_64-unknown-linux-musl.tar.gz} +0 -0
- package/build/agent/ProbeAgent.js +4 -0
- package/build/agent/index.js +13 -3
- package/build/tools/vercel.js +2 -2
- package/cjs/agent/ProbeAgent.cjs +94 -84
- package/cjs/index.cjs +94 -84
- package/package.json +1 -1
- package/src/agent/ProbeAgent.js +4 -0
- package/src/agent/index.js +7 -1
- package/src/tools/vercel.js +2 -2
- package/bin/binaries/probe-v0.6.0-rc276-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc276-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc276-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc276-x86_64-pc-windows-msvc.zip +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -197,6 +197,8 @@ export class ProbeAgent {
|
|
|
197
197
|
this.tracer = options.tracer || null;
|
|
198
198
|
this.outline = !!options.outline;
|
|
199
199
|
this.searchDelegate = options.searchDelegate !== undefined ? !!options.searchDelegate : true;
|
|
200
|
+
this.searchDelegateProvider = options.searchDelegateProvider || null;
|
|
201
|
+
this.searchDelegateModel = options.searchDelegateModel || null;
|
|
200
202
|
this.maxResponseTokens = options.maxResponseTokens || (() => {
|
|
201
203
|
const val = parseInt(process.env.MAX_RESPONSE_TOKENS || '0', 10);
|
|
202
204
|
if (isNaN(val) || val < 0 || val > 200000) {
|
|
@@ -788,6 +790,8 @@ export class ProbeAgent {
|
|
|
788
790
|
architectureFileName: this.architectureFileName,
|
|
789
791
|
provider: this.clientApiProvider,
|
|
790
792
|
model: this.clientApiModel,
|
|
793
|
+
searchDelegateProvider: this.searchDelegateProvider,
|
|
794
|
+
searchDelegateModel: this.searchDelegateModel,
|
|
791
795
|
delegationManager: this.delegationManager, // Per-instance delegation limits
|
|
792
796
|
outputBuffer: this._outputBuffer,
|
|
793
797
|
concurrencyLimiter: this.concurrencyLimiter, // Global AI concurrency limiter
|
package/build/agent/index.js
CHANGED
|
@@ -9268,8 +9268,8 @@ var init_vercel = __esm({
|
|
|
9268
9268
|
parentSessionId: sessionId,
|
|
9269
9269
|
path: options.allowedFolders?.[0] || options.cwd || ".",
|
|
9270
9270
|
allowedFolders: options.allowedFolders,
|
|
9271
|
-
provider: options.provider || null,
|
|
9272
|
-
model: options.model || null,
|
|
9271
|
+
provider: options.searchDelegateProvider || process.env.PROBE_SEARCH_DELEGATE_PROVIDER || options.provider || null,
|
|
9272
|
+
model: options.searchDelegateModel || process.env.PROBE_SEARCH_DELEGATE_MODEL || options.model || null,
|
|
9273
9273
|
tracer: options.tracer || null,
|
|
9274
9274
|
enableBash: false,
|
|
9275
9275
|
bashConfig: null,
|
|
@@ -81875,6 +81875,8 @@ var init_ProbeAgent = __esm({
|
|
|
81875
81875
|
this.tracer = options.tracer || null;
|
|
81876
81876
|
this.outline = !!options.outline;
|
|
81877
81877
|
this.searchDelegate = options.searchDelegate !== void 0 ? !!options.searchDelegate : true;
|
|
81878
|
+
this.searchDelegateProvider = options.searchDelegateProvider || null;
|
|
81879
|
+
this.searchDelegateModel = options.searchDelegateModel || null;
|
|
81878
81880
|
this.maxResponseTokens = options.maxResponseTokens || (() => {
|
|
81879
81881
|
const val = parseInt(process.env.MAX_RESPONSE_TOKENS || "0", 10);
|
|
81880
81882
|
if (isNaN(val) || val < 0 || val > 2e5) {
|
|
@@ -82311,6 +82313,8 @@ var init_ProbeAgent = __esm({
|
|
|
82311
82313
|
architectureFileName: this.architectureFileName,
|
|
82312
82314
|
provider: this.clientApiProvider,
|
|
82313
82315
|
model: this.clientApiModel,
|
|
82316
|
+
searchDelegateProvider: this.searchDelegateProvider,
|
|
82317
|
+
searchDelegateModel: this.searchDelegateModel,
|
|
82314
82318
|
delegationManager: this.delegationManager,
|
|
82315
82319
|
// Per-instance delegation limits
|
|
82316
82320
|
outputBuffer: this._outputBuffer,
|
|
@@ -86158,6 +86162,10 @@ function parseArgs() {
|
|
|
86158
86162
|
config.provider = args[++i];
|
|
86159
86163
|
} else if (arg === "--model" && i + 1 < args.length) {
|
|
86160
86164
|
config.model = args[++i];
|
|
86165
|
+
} else if (arg === "--search-delegate-provider" && i + 1 < args.length) {
|
|
86166
|
+
config.searchDelegateProvider = args[++i];
|
|
86167
|
+
} else if (arg === "--search-delegate-model" && i + 1 < args.length) {
|
|
86168
|
+
config.searchDelegateModel = args[++i];
|
|
86161
86169
|
} else if (arg === "--max-iterations" && i + 1 < args.length) {
|
|
86162
86170
|
config.maxIterations = parseInt(args[++i], 10);
|
|
86163
86171
|
} else if (arg === "--max-response-tokens" && i + 1 < args.length) {
|
|
@@ -86736,7 +86744,9 @@ async function main() {
|
|
|
86736
86744
|
enableBash: config.enableBash,
|
|
86737
86745
|
bashConfig,
|
|
86738
86746
|
enableTasks: config.enableTasks,
|
|
86739
|
-
thinkingEffort: config.thinkingEffort
|
|
86747
|
+
thinkingEffort: config.thinkingEffort,
|
|
86748
|
+
searchDelegateProvider: config.searchDelegateProvider,
|
|
86749
|
+
searchDelegateModel: config.searchDelegateModel
|
|
86740
86750
|
};
|
|
86741
86751
|
const agent = new ProbeAgent(agentConfig2);
|
|
86742
86752
|
await agent.initialize();
|
package/build/tools/vercel.js
CHANGED
|
@@ -268,8 +268,8 @@ export const searchTool = (options = {}) => {
|
|
|
268
268
|
parentSessionId: sessionId,
|
|
269
269
|
path: options.allowedFolders?.[0] || options.cwd || '.',
|
|
270
270
|
allowedFolders: options.allowedFolders,
|
|
271
|
-
provider: options.provider || null,
|
|
272
|
-
model: options.model || null,
|
|
271
|
+
provider: options.searchDelegateProvider || process.env.PROBE_SEARCH_DELEGATE_PROVIDER || options.provider || null,
|
|
272
|
+
model: options.searchDelegateModel || process.env.PROBE_SEARCH_DELEGATE_MODEL || options.model || null,
|
|
273
273
|
tracer: options.tracer || null,
|
|
274
274
|
enableBash: false,
|
|
275
275
|
bashConfig: null,
|
package/cjs/agent/ProbeAgent.cjs
CHANGED
|
@@ -17538,7 +17538,7 @@ var require_package2 = __commonJS({
|
|
|
17538
17538
|
module2.exports = {
|
|
17539
17539
|
name: "@aws-sdk/client-bedrock-runtime",
|
|
17540
17540
|
description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
17541
|
-
version: "3.
|
|
17541
|
+
version: "3.1003.0",
|
|
17542
17542
|
scripts: {
|
|
17543
17543
|
build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
17544
17544
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -17550,6 +17550,10 @@ var require_package2 = __commonJS({
|
|
|
17550
17550
|
"extract:docs": "api-extractor run --local",
|
|
17551
17551
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo bedrock-runtime",
|
|
17552
17552
|
test: "yarn g:vitest run --passWithNoTests",
|
|
17553
|
+
"test:browser": "yarn g:vitest run -c vitest.config.browser.e2e.mts",
|
|
17554
|
+
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.e2e.mts",
|
|
17555
|
+
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
|
|
17556
|
+
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
|
|
17553
17557
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs",
|
|
17554
17558
|
"test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
|
|
17555
17559
|
"test:integration:watch": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
|
|
@@ -17562,54 +17566,54 @@ var require_package2 = __commonJS({
|
|
|
17562
17566
|
dependencies: {
|
|
17563
17567
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
17564
17568
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
17565
|
-
"@aws-sdk/core": "^3.973.
|
|
17566
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
17567
|
-
"@aws-sdk/eventstream-handler-node": "^3.972.
|
|
17568
|
-
"@aws-sdk/middleware-eventstream": "^3.972.
|
|
17569
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
17570
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
17571
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
17572
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
17573
|
-
"@aws-sdk/middleware-websocket": "^3.972.
|
|
17574
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
17575
|
-
"@aws-sdk/token-providers": "3.
|
|
17576
|
-
"@aws-sdk/types": "^3.973.
|
|
17577
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
17578
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
17579
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
17580
|
-
"@smithy/config-resolver": "^4.4.
|
|
17581
|
-
"@smithy/core": "^3.23.
|
|
17582
|
-
"@smithy/eventstream-serde-browser": "^4.2.
|
|
17583
|
-
"@smithy/eventstream-serde-config-resolver": "^4.3.
|
|
17584
|
-
"@smithy/eventstream-serde-node": "^4.2.
|
|
17585
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
17586
|
-
"@smithy/hash-node": "^4.2.
|
|
17587
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
17588
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
17589
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
17590
|
-
"@smithy/middleware-retry": "^4.4.
|
|
17591
|
-
"@smithy/middleware-serde": "^4.2.
|
|
17592
|
-
"@smithy/middleware-stack": "^4.2.
|
|
17593
|
-
"@smithy/node-config-provider": "^4.3.
|
|
17594
|
-
"@smithy/node-http-handler": "^4.4.
|
|
17595
|
-
"@smithy/protocol-http": "^5.3.
|
|
17596
|
-
"@smithy/smithy-client": "^4.12.
|
|
17569
|
+
"@aws-sdk/core": "^3.973.18",
|
|
17570
|
+
"@aws-sdk/credential-provider-node": "^3.972.17",
|
|
17571
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.10",
|
|
17572
|
+
"@aws-sdk/middleware-eventstream": "^3.972.7",
|
|
17573
|
+
"@aws-sdk/middleware-host-header": "^3.972.7",
|
|
17574
|
+
"@aws-sdk/middleware-logger": "^3.972.7",
|
|
17575
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.7",
|
|
17576
|
+
"@aws-sdk/middleware-user-agent": "^3.972.18",
|
|
17577
|
+
"@aws-sdk/middleware-websocket": "^3.972.12",
|
|
17578
|
+
"@aws-sdk/region-config-resolver": "^3.972.7",
|
|
17579
|
+
"@aws-sdk/token-providers": "3.1003.0",
|
|
17580
|
+
"@aws-sdk/types": "^3.973.5",
|
|
17581
|
+
"@aws-sdk/util-endpoints": "^3.996.4",
|
|
17582
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.7",
|
|
17583
|
+
"@aws-sdk/util-user-agent-node": "^3.973.3",
|
|
17584
|
+
"@smithy/config-resolver": "^4.4.10",
|
|
17585
|
+
"@smithy/core": "^3.23.8",
|
|
17586
|
+
"@smithy/eventstream-serde-browser": "^4.2.11",
|
|
17587
|
+
"@smithy/eventstream-serde-config-resolver": "^4.3.11",
|
|
17588
|
+
"@smithy/eventstream-serde-node": "^4.2.11",
|
|
17589
|
+
"@smithy/fetch-http-handler": "^5.3.13",
|
|
17590
|
+
"@smithy/hash-node": "^4.2.11",
|
|
17591
|
+
"@smithy/invalid-dependency": "^4.2.11",
|
|
17592
|
+
"@smithy/middleware-content-length": "^4.2.11",
|
|
17593
|
+
"@smithy/middleware-endpoint": "^4.4.22",
|
|
17594
|
+
"@smithy/middleware-retry": "^4.4.39",
|
|
17595
|
+
"@smithy/middleware-serde": "^4.2.12",
|
|
17596
|
+
"@smithy/middleware-stack": "^4.2.11",
|
|
17597
|
+
"@smithy/node-config-provider": "^4.3.11",
|
|
17598
|
+
"@smithy/node-http-handler": "^4.4.14",
|
|
17599
|
+
"@smithy/protocol-http": "^5.3.11",
|
|
17600
|
+
"@smithy/smithy-client": "^4.12.2",
|
|
17597
17601
|
"@smithy/types": "^4.13.0",
|
|
17598
|
-
"@smithy/url-parser": "^4.2.
|
|
17599
|
-
"@smithy/util-base64": "^4.3.
|
|
17600
|
-
"@smithy/util-body-length-browser": "^4.2.
|
|
17601
|
-
"@smithy/util-body-length-node": "^4.2.
|
|
17602
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
17603
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
17604
|
-
"@smithy/util-endpoints": "^3.3.
|
|
17605
|
-
"@smithy/util-middleware": "^4.2.
|
|
17606
|
-
"@smithy/util-retry": "^4.2.
|
|
17607
|
-
"@smithy/util-stream": "^4.5.
|
|
17608
|
-
"@smithy/util-utf8": "^4.2.
|
|
17602
|
+
"@smithy/url-parser": "^4.2.11",
|
|
17603
|
+
"@smithy/util-base64": "^4.3.2",
|
|
17604
|
+
"@smithy/util-body-length-browser": "^4.2.2",
|
|
17605
|
+
"@smithy/util-body-length-node": "^4.2.3",
|
|
17606
|
+
"@smithy/util-defaults-mode-browser": "^4.3.38",
|
|
17607
|
+
"@smithy/util-defaults-mode-node": "^4.2.41",
|
|
17608
|
+
"@smithy/util-endpoints": "^3.3.2",
|
|
17609
|
+
"@smithy/util-middleware": "^4.2.11",
|
|
17610
|
+
"@smithy/util-retry": "^4.2.11",
|
|
17611
|
+
"@smithy/util-stream": "^4.5.17",
|
|
17612
|
+
"@smithy/util-utf8": "^4.2.2",
|
|
17609
17613
|
tslib: "^2.6.2"
|
|
17610
17614
|
},
|
|
17611
17615
|
devDependencies: {
|
|
17612
|
-
"@smithy/snapshot-testing": "^1.0.
|
|
17616
|
+
"@smithy/snapshot-testing": "^1.0.9",
|
|
17613
17617
|
"@tsconfig/node20": "20.1.8",
|
|
17614
17618
|
"@types/node": "^20.14.8",
|
|
17615
17619
|
concurrently: "7.0.0",
|
|
@@ -17622,7 +17626,7 @@ var require_package2 = __commonJS({
|
|
|
17622
17626
|
node: ">=20.0.0"
|
|
17623
17627
|
},
|
|
17624
17628
|
typesVersions: {
|
|
17625
|
-
"<4.
|
|
17629
|
+
"<4.5": {
|
|
17626
17630
|
"dist-types/*": [
|
|
17627
17631
|
"dist-types/ts3.4/*"
|
|
17628
17632
|
]
|
|
@@ -18325,7 +18329,7 @@ var init_package = __esm({
|
|
|
18325
18329
|
"node_modules/@aws-sdk/nested-clients/package.json"() {
|
|
18326
18330
|
package_default = {
|
|
18327
18331
|
name: "@aws-sdk/nested-clients",
|
|
18328
|
-
version: "3.996.
|
|
18332
|
+
version: "3.996.6",
|
|
18329
18333
|
description: "Nested clients for AWS SDK packages.",
|
|
18330
18334
|
main: "./dist-cjs/index.js",
|
|
18331
18335
|
module: "./dist-es/index.js",
|
|
@@ -18354,41 +18358,41 @@ var init_package = __esm({
|
|
|
18354
18358
|
dependencies: {
|
|
18355
18359
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
18356
18360
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
18357
|
-
"@aws-sdk/core": "^3.973.
|
|
18358
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
18359
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
18360
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
18361
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
18362
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
18363
|
-
"@aws-sdk/types": "^3.973.
|
|
18364
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
18365
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
18366
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
18367
|
-
"@smithy/config-resolver": "^4.4.
|
|
18368
|
-
"@smithy/core": "^3.23.
|
|
18369
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
18370
|
-
"@smithy/hash-node": "^4.2.
|
|
18371
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
18372
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
18373
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
18374
|
-
"@smithy/middleware-retry": "^4.4.
|
|
18375
|
-
"@smithy/middleware-serde": "^4.2.
|
|
18376
|
-
"@smithy/middleware-stack": "^4.2.
|
|
18377
|
-
"@smithy/node-config-provider": "^4.3.
|
|
18378
|
-
"@smithy/node-http-handler": "^4.4.
|
|
18379
|
-
"@smithy/protocol-http": "^5.3.
|
|
18380
|
-
"@smithy/smithy-client": "^4.12.
|
|
18361
|
+
"@aws-sdk/core": "^3.973.18",
|
|
18362
|
+
"@aws-sdk/middleware-host-header": "^3.972.7",
|
|
18363
|
+
"@aws-sdk/middleware-logger": "^3.972.7",
|
|
18364
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.7",
|
|
18365
|
+
"@aws-sdk/middleware-user-agent": "^3.972.18",
|
|
18366
|
+
"@aws-sdk/region-config-resolver": "^3.972.7",
|
|
18367
|
+
"@aws-sdk/types": "^3.973.5",
|
|
18368
|
+
"@aws-sdk/util-endpoints": "^3.996.4",
|
|
18369
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.7",
|
|
18370
|
+
"@aws-sdk/util-user-agent-node": "^3.973.3",
|
|
18371
|
+
"@smithy/config-resolver": "^4.4.10",
|
|
18372
|
+
"@smithy/core": "^3.23.8",
|
|
18373
|
+
"@smithy/fetch-http-handler": "^5.3.13",
|
|
18374
|
+
"@smithy/hash-node": "^4.2.11",
|
|
18375
|
+
"@smithy/invalid-dependency": "^4.2.11",
|
|
18376
|
+
"@smithy/middleware-content-length": "^4.2.11",
|
|
18377
|
+
"@smithy/middleware-endpoint": "^4.4.22",
|
|
18378
|
+
"@smithy/middleware-retry": "^4.4.39",
|
|
18379
|
+
"@smithy/middleware-serde": "^4.2.12",
|
|
18380
|
+
"@smithy/middleware-stack": "^4.2.11",
|
|
18381
|
+
"@smithy/node-config-provider": "^4.3.11",
|
|
18382
|
+
"@smithy/node-http-handler": "^4.4.14",
|
|
18383
|
+
"@smithy/protocol-http": "^5.3.11",
|
|
18384
|
+
"@smithy/smithy-client": "^4.12.2",
|
|
18381
18385
|
"@smithy/types": "^4.13.0",
|
|
18382
|
-
"@smithy/url-parser": "^4.2.
|
|
18383
|
-
"@smithy/util-base64": "^4.3.
|
|
18384
|
-
"@smithy/util-body-length-browser": "^4.2.
|
|
18385
|
-
"@smithy/util-body-length-node": "^4.2.
|
|
18386
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
18387
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
18388
|
-
"@smithy/util-endpoints": "^3.3.
|
|
18389
|
-
"@smithy/util-middleware": "^4.2.
|
|
18390
|
-
"@smithy/util-retry": "^4.2.
|
|
18391
|
-
"@smithy/util-utf8": "^4.2.
|
|
18386
|
+
"@smithy/url-parser": "^4.2.11",
|
|
18387
|
+
"@smithy/util-base64": "^4.3.2",
|
|
18388
|
+
"@smithy/util-body-length-browser": "^4.2.2",
|
|
18389
|
+
"@smithy/util-body-length-node": "^4.2.3",
|
|
18390
|
+
"@smithy/util-defaults-mode-browser": "^4.3.38",
|
|
18391
|
+
"@smithy/util-defaults-mode-node": "^4.2.41",
|
|
18392
|
+
"@smithy/util-endpoints": "^3.3.2",
|
|
18393
|
+
"@smithy/util-middleware": "^4.2.11",
|
|
18394
|
+
"@smithy/util-retry": "^4.2.11",
|
|
18395
|
+
"@smithy/util-utf8": "^4.2.2",
|
|
18392
18396
|
tslib: "^2.6.2"
|
|
18393
18397
|
},
|
|
18394
18398
|
devDependencies: {
|
|
@@ -18398,7 +18402,7 @@ var init_package = __esm({
|
|
|
18398
18402
|
typescript: "~5.8.3"
|
|
18399
18403
|
},
|
|
18400
18404
|
typesVersions: {
|
|
18401
|
-
"<4.
|
|
18405
|
+
"<4.5": {
|
|
18402
18406
|
"dist-types/*": [
|
|
18403
18407
|
"dist-types/ts3.4/*"
|
|
18404
18408
|
]
|
|
@@ -18418,8 +18422,10 @@ var init_package = __esm({
|
|
|
18418
18422
|
"dist-*/**"
|
|
18419
18423
|
],
|
|
18420
18424
|
browser: {
|
|
18425
|
+
"./dist-es/submodules/cognito-identity/runtimeConfig": "./dist-es/submodules/cognito-identity/runtimeConfig.browser",
|
|
18421
18426
|
"./dist-es/submodules/signin/runtimeConfig": "./dist-es/submodules/signin/runtimeConfig.browser",
|
|
18422
18427
|
"./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
|
|
18428
|
+
"./dist-es/submodules/sso/runtimeConfig": "./dist-es/submodules/sso/runtimeConfig.browser",
|
|
18423
18429
|
"./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
|
|
18424
18430
|
},
|
|
18425
18431
|
"react-native": {},
|
|
@@ -36642,8 +36648,8 @@ var init_vercel = __esm({
|
|
|
36642
36648
|
parentSessionId: sessionId,
|
|
36643
36649
|
path: options.allowedFolders?.[0] || options.cwd || ".",
|
|
36644
36650
|
allowedFolders: options.allowedFolders,
|
|
36645
|
-
provider: options.provider || null,
|
|
36646
|
-
model: options.model || null,
|
|
36651
|
+
provider: options.searchDelegateProvider || process.env.PROBE_SEARCH_DELEGATE_PROVIDER || options.provider || null,
|
|
36652
|
+
model: options.searchDelegateModel || process.env.PROBE_SEARCH_DELEGATE_MODEL || options.model || null,
|
|
36647
36653
|
tracer: options.tracer || null,
|
|
36648
36654
|
enableBash: false,
|
|
36649
36655
|
bashConfig: null,
|
|
@@ -108815,6 +108821,8 @@ var init_ProbeAgent = __esm({
|
|
|
108815
108821
|
this.tracer = options.tracer || null;
|
|
108816
108822
|
this.outline = !!options.outline;
|
|
108817
108823
|
this.searchDelegate = options.searchDelegate !== void 0 ? !!options.searchDelegate : true;
|
|
108824
|
+
this.searchDelegateProvider = options.searchDelegateProvider || null;
|
|
108825
|
+
this.searchDelegateModel = options.searchDelegateModel || null;
|
|
108818
108826
|
this.maxResponseTokens = options.maxResponseTokens || (() => {
|
|
108819
108827
|
const val = parseInt(process.env.MAX_RESPONSE_TOKENS || "0", 10);
|
|
108820
108828
|
if (isNaN(val) || val < 0 || val > 2e5) {
|
|
@@ -109251,6 +109259,8 @@ var init_ProbeAgent = __esm({
|
|
|
109251
109259
|
architectureFileName: this.architectureFileName,
|
|
109252
109260
|
provider: this.clientApiProvider,
|
|
109253
109261
|
model: this.clientApiModel,
|
|
109262
|
+
searchDelegateProvider: this.searchDelegateProvider,
|
|
109263
|
+
searchDelegateModel: this.searchDelegateModel,
|
|
109254
109264
|
delegationManager: this.delegationManager,
|
|
109255
109265
|
// Per-instance delegation limits
|
|
109256
109266
|
outputBuffer: this._outputBuffer,
|
package/cjs/index.cjs
CHANGED
|
@@ -19395,7 +19395,7 @@ var require_package2 = __commonJS({
|
|
|
19395
19395
|
module2.exports = {
|
|
19396
19396
|
name: "@aws-sdk/client-bedrock-runtime",
|
|
19397
19397
|
description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
19398
|
-
version: "3.
|
|
19398
|
+
version: "3.1003.0",
|
|
19399
19399
|
scripts: {
|
|
19400
19400
|
build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
19401
19401
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -19407,6 +19407,10 @@ var require_package2 = __commonJS({
|
|
|
19407
19407
|
"extract:docs": "api-extractor run --local",
|
|
19408
19408
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo bedrock-runtime",
|
|
19409
19409
|
test: "yarn g:vitest run --passWithNoTests",
|
|
19410
|
+
"test:browser": "yarn g:vitest run -c vitest.config.browser.e2e.mts",
|
|
19411
|
+
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.e2e.mts",
|
|
19412
|
+
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
|
|
19413
|
+
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
|
|
19410
19414
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs",
|
|
19411
19415
|
"test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
|
|
19412
19416
|
"test:integration:watch": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
|
|
@@ -19419,54 +19423,54 @@ var require_package2 = __commonJS({
|
|
|
19419
19423
|
dependencies: {
|
|
19420
19424
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
19421
19425
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
19422
|
-
"@aws-sdk/core": "^3.973.
|
|
19423
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
19424
|
-
"@aws-sdk/eventstream-handler-node": "^3.972.
|
|
19425
|
-
"@aws-sdk/middleware-eventstream": "^3.972.
|
|
19426
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
19427
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
19428
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
19429
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
19430
|
-
"@aws-sdk/middleware-websocket": "^3.972.
|
|
19431
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
19432
|
-
"@aws-sdk/token-providers": "3.
|
|
19433
|
-
"@aws-sdk/types": "^3.973.
|
|
19434
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
19435
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
19436
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
19437
|
-
"@smithy/config-resolver": "^4.4.
|
|
19438
|
-
"@smithy/core": "^3.23.
|
|
19439
|
-
"@smithy/eventstream-serde-browser": "^4.2.
|
|
19440
|
-
"@smithy/eventstream-serde-config-resolver": "^4.3.
|
|
19441
|
-
"@smithy/eventstream-serde-node": "^4.2.
|
|
19442
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
19443
|
-
"@smithy/hash-node": "^4.2.
|
|
19444
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
19445
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
19446
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
19447
|
-
"@smithy/middleware-retry": "^4.4.
|
|
19448
|
-
"@smithy/middleware-serde": "^4.2.
|
|
19449
|
-
"@smithy/middleware-stack": "^4.2.
|
|
19450
|
-
"@smithy/node-config-provider": "^4.3.
|
|
19451
|
-
"@smithy/node-http-handler": "^4.4.
|
|
19452
|
-
"@smithy/protocol-http": "^5.3.
|
|
19453
|
-
"@smithy/smithy-client": "^4.12.
|
|
19426
|
+
"@aws-sdk/core": "^3.973.18",
|
|
19427
|
+
"@aws-sdk/credential-provider-node": "^3.972.17",
|
|
19428
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.10",
|
|
19429
|
+
"@aws-sdk/middleware-eventstream": "^3.972.7",
|
|
19430
|
+
"@aws-sdk/middleware-host-header": "^3.972.7",
|
|
19431
|
+
"@aws-sdk/middleware-logger": "^3.972.7",
|
|
19432
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.7",
|
|
19433
|
+
"@aws-sdk/middleware-user-agent": "^3.972.18",
|
|
19434
|
+
"@aws-sdk/middleware-websocket": "^3.972.12",
|
|
19435
|
+
"@aws-sdk/region-config-resolver": "^3.972.7",
|
|
19436
|
+
"@aws-sdk/token-providers": "3.1003.0",
|
|
19437
|
+
"@aws-sdk/types": "^3.973.5",
|
|
19438
|
+
"@aws-sdk/util-endpoints": "^3.996.4",
|
|
19439
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.7",
|
|
19440
|
+
"@aws-sdk/util-user-agent-node": "^3.973.3",
|
|
19441
|
+
"@smithy/config-resolver": "^4.4.10",
|
|
19442
|
+
"@smithy/core": "^3.23.8",
|
|
19443
|
+
"@smithy/eventstream-serde-browser": "^4.2.11",
|
|
19444
|
+
"@smithy/eventstream-serde-config-resolver": "^4.3.11",
|
|
19445
|
+
"@smithy/eventstream-serde-node": "^4.2.11",
|
|
19446
|
+
"@smithy/fetch-http-handler": "^5.3.13",
|
|
19447
|
+
"@smithy/hash-node": "^4.2.11",
|
|
19448
|
+
"@smithy/invalid-dependency": "^4.2.11",
|
|
19449
|
+
"@smithy/middleware-content-length": "^4.2.11",
|
|
19450
|
+
"@smithy/middleware-endpoint": "^4.4.22",
|
|
19451
|
+
"@smithy/middleware-retry": "^4.4.39",
|
|
19452
|
+
"@smithy/middleware-serde": "^4.2.12",
|
|
19453
|
+
"@smithy/middleware-stack": "^4.2.11",
|
|
19454
|
+
"@smithy/node-config-provider": "^4.3.11",
|
|
19455
|
+
"@smithy/node-http-handler": "^4.4.14",
|
|
19456
|
+
"@smithy/protocol-http": "^5.3.11",
|
|
19457
|
+
"@smithy/smithy-client": "^4.12.2",
|
|
19454
19458
|
"@smithy/types": "^4.13.0",
|
|
19455
|
-
"@smithy/url-parser": "^4.2.
|
|
19456
|
-
"@smithy/util-base64": "^4.3.
|
|
19457
|
-
"@smithy/util-body-length-browser": "^4.2.
|
|
19458
|
-
"@smithy/util-body-length-node": "^4.2.
|
|
19459
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
19460
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
19461
|
-
"@smithy/util-endpoints": "^3.3.
|
|
19462
|
-
"@smithy/util-middleware": "^4.2.
|
|
19463
|
-
"@smithy/util-retry": "^4.2.
|
|
19464
|
-
"@smithy/util-stream": "^4.5.
|
|
19465
|
-
"@smithy/util-utf8": "^4.2.
|
|
19459
|
+
"@smithy/url-parser": "^4.2.11",
|
|
19460
|
+
"@smithy/util-base64": "^4.3.2",
|
|
19461
|
+
"@smithy/util-body-length-browser": "^4.2.2",
|
|
19462
|
+
"@smithy/util-body-length-node": "^4.2.3",
|
|
19463
|
+
"@smithy/util-defaults-mode-browser": "^4.3.38",
|
|
19464
|
+
"@smithy/util-defaults-mode-node": "^4.2.41",
|
|
19465
|
+
"@smithy/util-endpoints": "^3.3.2",
|
|
19466
|
+
"@smithy/util-middleware": "^4.2.11",
|
|
19467
|
+
"@smithy/util-retry": "^4.2.11",
|
|
19468
|
+
"@smithy/util-stream": "^4.5.17",
|
|
19469
|
+
"@smithy/util-utf8": "^4.2.2",
|
|
19466
19470
|
tslib: "^2.6.2"
|
|
19467
19471
|
},
|
|
19468
19472
|
devDependencies: {
|
|
19469
|
-
"@smithy/snapshot-testing": "^1.0.
|
|
19473
|
+
"@smithy/snapshot-testing": "^1.0.9",
|
|
19470
19474
|
"@tsconfig/node20": "20.1.8",
|
|
19471
19475
|
"@types/node": "^20.14.8",
|
|
19472
19476
|
concurrently: "7.0.0",
|
|
@@ -19479,7 +19483,7 @@ var require_package2 = __commonJS({
|
|
|
19479
19483
|
node: ">=20.0.0"
|
|
19480
19484
|
},
|
|
19481
19485
|
typesVersions: {
|
|
19482
|
-
"<4.
|
|
19486
|
+
"<4.5": {
|
|
19483
19487
|
"dist-types/*": [
|
|
19484
19488
|
"dist-types/ts3.4/*"
|
|
19485
19489
|
]
|
|
@@ -20182,7 +20186,7 @@ var init_package = __esm({
|
|
|
20182
20186
|
"node_modules/@aws-sdk/nested-clients/package.json"() {
|
|
20183
20187
|
package_default = {
|
|
20184
20188
|
name: "@aws-sdk/nested-clients",
|
|
20185
|
-
version: "3.996.
|
|
20189
|
+
version: "3.996.6",
|
|
20186
20190
|
description: "Nested clients for AWS SDK packages.",
|
|
20187
20191
|
main: "./dist-cjs/index.js",
|
|
20188
20192
|
module: "./dist-es/index.js",
|
|
@@ -20211,41 +20215,41 @@ var init_package = __esm({
|
|
|
20211
20215
|
dependencies: {
|
|
20212
20216
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
20213
20217
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
20214
|
-
"@aws-sdk/core": "^3.973.
|
|
20215
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
20216
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
20217
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
20218
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
20219
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
20220
|
-
"@aws-sdk/types": "^3.973.
|
|
20221
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
20222
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
20223
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
20224
|
-
"@smithy/config-resolver": "^4.4.
|
|
20225
|
-
"@smithy/core": "^3.23.
|
|
20226
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
20227
|
-
"@smithy/hash-node": "^4.2.
|
|
20228
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
20229
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
20230
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
20231
|
-
"@smithy/middleware-retry": "^4.4.
|
|
20232
|
-
"@smithy/middleware-serde": "^4.2.
|
|
20233
|
-
"@smithy/middleware-stack": "^4.2.
|
|
20234
|
-
"@smithy/node-config-provider": "^4.3.
|
|
20235
|
-
"@smithy/node-http-handler": "^4.4.
|
|
20236
|
-
"@smithy/protocol-http": "^5.3.
|
|
20237
|
-
"@smithy/smithy-client": "^4.12.
|
|
20218
|
+
"@aws-sdk/core": "^3.973.18",
|
|
20219
|
+
"@aws-sdk/middleware-host-header": "^3.972.7",
|
|
20220
|
+
"@aws-sdk/middleware-logger": "^3.972.7",
|
|
20221
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.7",
|
|
20222
|
+
"@aws-sdk/middleware-user-agent": "^3.972.18",
|
|
20223
|
+
"@aws-sdk/region-config-resolver": "^3.972.7",
|
|
20224
|
+
"@aws-sdk/types": "^3.973.5",
|
|
20225
|
+
"@aws-sdk/util-endpoints": "^3.996.4",
|
|
20226
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.7",
|
|
20227
|
+
"@aws-sdk/util-user-agent-node": "^3.973.3",
|
|
20228
|
+
"@smithy/config-resolver": "^4.4.10",
|
|
20229
|
+
"@smithy/core": "^3.23.8",
|
|
20230
|
+
"@smithy/fetch-http-handler": "^5.3.13",
|
|
20231
|
+
"@smithy/hash-node": "^4.2.11",
|
|
20232
|
+
"@smithy/invalid-dependency": "^4.2.11",
|
|
20233
|
+
"@smithy/middleware-content-length": "^4.2.11",
|
|
20234
|
+
"@smithy/middleware-endpoint": "^4.4.22",
|
|
20235
|
+
"@smithy/middleware-retry": "^4.4.39",
|
|
20236
|
+
"@smithy/middleware-serde": "^4.2.12",
|
|
20237
|
+
"@smithy/middleware-stack": "^4.2.11",
|
|
20238
|
+
"@smithy/node-config-provider": "^4.3.11",
|
|
20239
|
+
"@smithy/node-http-handler": "^4.4.14",
|
|
20240
|
+
"@smithy/protocol-http": "^5.3.11",
|
|
20241
|
+
"@smithy/smithy-client": "^4.12.2",
|
|
20238
20242
|
"@smithy/types": "^4.13.0",
|
|
20239
|
-
"@smithy/url-parser": "^4.2.
|
|
20240
|
-
"@smithy/util-base64": "^4.3.
|
|
20241
|
-
"@smithy/util-body-length-browser": "^4.2.
|
|
20242
|
-
"@smithy/util-body-length-node": "^4.2.
|
|
20243
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
20244
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
20245
|
-
"@smithy/util-endpoints": "^3.3.
|
|
20246
|
-
"@smithy/util-middleware": "^4.2.
|
|
20247
|
-
"@smithy/util-retry": "^4.2.
|
|
20248
|
-
"@smithy/util-utf8": "^4.2.
|
|
20243
|
+
"@smithy/url-parser": "^4.2.11",
|
|
20244
|
+
"@smithy/util-base64": "^4.3.2",
|
|
20245
|
+
"@smithy/util-body-length-browser": "^4.2.2",
|
|
20246
|
+
"@smithy/util-body-length-node": "^4.2.3",
|
|
20247
|
+
"@smithy/util-defaults-mode-browser": "^4.3.38",
|
|
20248
|
+
"@smithy/util-defaults-mode-node": "^4.2.41",
|
|
20249
|
+
"@smithy/util-endpoints": "^3.3.2",
|
|
20250
|
+
"@smithy/util-middleware": "^4.2.11",
|
|
20251
|
+
"@smithy/util-retry": "^4.2.11",
|
|
20252
|
+
"@smithy/util-utf8": "^4.2.2",
|
|
20249
20253
|
tslib: "^2.6.2"
|
|
20250
20254
|
},
|
|
20251
20255
|
devDependencies: {
|
|
@@ -20255,7 +20259,7 @@ var init_package = __esm({
|
|
|
20255
20259
|
typescript: "~5.8.3"
|
|
20256
20260
|
},
|
|
20257
20261
|
typesVersions: {
|
|
20258
|
-
"<4.
|
|
20262
|
+
"<4.5": {
|
|
20259
20263
|
"dist-types/*": [
|
|
20260
20264
|
"dist-types/ts3.4/*"
|
|
20261
20265
|
]
|
|
@@ -20275,8 +20279,10 @@ var init_package = __esm({
|
|
|
20275
20279
|
"dist-*/**"
|
|
20276
20280
|
],
|
|
20277
20281
|
browser: {
|
|
20282
|
+
"./dist-es/submodules/cognito-identity/runtimeConfig": "./dist-es/submodules/cognito-identity/runtimeConfig.browser",
|
|
20278
20283
|
"./dist-es/submodules/signin/runtimeConfig": "./dist-es/submodules/signin/runtimeConfig.browser",
|
|
20279
20284
|
"./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
|
|
20285
|
+
"./dist-es/submodules/sso/runtimeConfig": "./dist-es/submodules/sso/runtimeConfig.browser",
|
|
20280
20286
|
"./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
|
|
20281
20287
|
},
|
|
20282
20288
|
"react-native": {},
|
|
@@ -106066,6 +106072,8 @@ var init_ProbeAgent = __esm({
|
|
|
106066
106072
|
this.tracer = options.tracer || null;
|
|
106067
106073
|
this.outline = !!options.outline;
|
|
106068
106074
|
this.searchDelegate = options.searchDelegate !== void 0 ? !!options.searchDelegate : true;
|
|
106075
|
+
this.searchDelegateProvider = options.searchDelegateProvider || null;
|
|
106076
|
+
this.searchDelegateModel = options.searchDelegateModel || null;
|
|
106069
106077
|
this.maxResponseTokens = options.maxResponseTokens || (() => {
|
|
106070
106078
|
const val = parseInt(process.env.MAX_RESPONSE_TOKENS || "0", 10);
|
|
106071
106079
|
if (isNaN(val) || val < 0 || val > 2e5) {
|
|
@@ -106502,6 +106510,8 @@ var init_ProbeAgent = __esm({
|
|
|
106502
106510
|
architectureFileName: this.architectureFileName,
|
|
106503
106511
|
provider: this.clientApiProvider,
|
|
106504
106512
|
model: this.clientApiModel,
|
|
106513
|
+
searchDelegateProvider: this.searchDelegateProvider,
|
|
106514
|
+
searchDelegateModel: this.searchDelegateModel,
|
|
106505
106515
|
delegationManager: this.delegationManager,
|
|
106506
106516
|
// Per-instance delegation limits
|
|
106507
106517
|
outputBuffer: this._outputBuffer,
|
|
@@ -110716,8 +110726,8 @@ var init_vercel = __esm({
|
|
|
110716
110726
|
parentSessionId: sessionId,
|
|
110717
110727
|
path: options.allowedFolders?.[0] || options.cwd || ".",
|
|
110718
110728
|
allowedFolders: options.allowedFolders,
|
|
110719
|
-
provider: options.provider || null,
|
|
110720
|
-
model: options.model || null,
|
|
110729
|
+
provider: options.searchDelegateProvider || process.env.PROBE_SEARCH_DELEGATE_PROVIDER || options.provider || null,
|
|
110730
|
+
model: options.searchDelegateModel || process.env.PROBE_SEARCH_DELEGATE_MODEL || options.model || null,
|
|
110721
110731
|
tracer: options.tracer || null,
|
|
110722
110732
|
enableBash: false,
|
|
110723
110733
|
bashConfig: null,
|
package/package.json
CHANGED
package/src/agent/ProbeAgent.js
CHANGED
|
@@ -197,6 +197,8 @@ export class ProbeAgent {
|
|
|
197
197
|
this.tracer = options.tracer || null;
|
|
198
198
|
this.outline = !!options.outline;
|
|
199
199
|
this.searchDelegate = options.searchDelegate !== undefined ? !!options.searchDelegate : true;
|
|
200
|
+
this.searchDelegateProvider = options.searchDelegateProvider || null;
|
|
201
|
+
this.searchDelegateModel = options.searchDelegateModel || null;
|
|
200
202
|
this.maxResponseTokens = options.maxResponseTokens || (() => {
|
|
201
203
|
const val = parseInt(process.env.MAX_RESPONSE_TOKENS || '0', 10);
|
|
202
204
|
if (isNaN(val) || val < 0 || val > 200000) {
|
|
@@ -788,6 +790,8 @@ export class ProbeAgent {
|
|
|
788
790
|
architectureFileName: this.architectureFileName,
|
|
789
791
|
provider: this.clientApiProvider,
|
|
790
792
|
model: this.clientApiModel,
|
|
793
|
+
searchDelegateProvider: this.searchDelegateProvider,
|
|
794
|
+
searchDelegateModel: this.searchDelegateModel,
|
|
791
795
|
delegationManager: this.delegationManager, // Per-instance delegation limits
|
|
792
796
|
outputBuffer: this._outputBuffer,
|
|
793
797
|
concurrencyLimiter: this.concurrencyLimiter, // Global AI concurrency limiter
|
package/src/agent/index.js
CHANGED
|
@@ -194,6 +194,10 @@ function parseArgs() {
|
|
|
194
194
|
config.provider = args[++i];
|
|
195
195
|
} else if (arg === '--model' && i + 1 < args.length) {
|
|
196
196
|
config.model = args[++i];
|
|
197
|
+
} else if (arg === '--search-delegate-provider' && i + 1 < args.length) {
|
|
198
|
+
config.searchDelegateProvider = args[++i];
|
|
199
|
+
} else if (arg === '--search-delegate-model' && i + 1 < args.length) {
|
|
200
|
+
config.searchDelegateModel = args[++i];
|
|
197
201
|
} else if (arg === '--max-iterations' && i + 1 < args.length) {
|
|
198
202
|
config.maxIterations = parseInt(args[++i], 10);
|
|
199
203
|
} else if (arg === '--max-response-tokens' && i + 1 < args.length) {
|
|
@@ -872,7 +876,9 @@ async function main() {
|
|
|
872
876
|
enableBash: config.enableBash,
|
|
873
877
|
bashConfig: bashConfig,
|
|
874
878
|
enableTasks: config.enableTasks,
|
|
875
|
-
thinkingEffort: config.thinkingEffort
|
|
879
|
+
thinkingEffort: config.thinkingEffort,
|
|
880
|
+
searchDelegateProvider: config.searchDelegateProvider,
|
|
881
|
+
searchDelegateModel: config.searchDelegateModel
|
|
876
882
|
};
|
|
877
883
|
|
|
878
884
|
const agent = new ProbeAgent(agentConfig);
|
package/src/tools/vercel.js
CHANGED
|
@@ -268,8 +268,8 @@ export const searchTool = (options = {}) => {
|
|
|
268
268
|
parentSessionId: sessionId,
|
|
269
269
|
path: options.allowedFolders?.[0] || options.cwd || '.',
|
|
270
270
|
allowedFolders: options.allowedFolders,
|
|
271
|
-
provider: options.provider || null,
|
|
272
|
-
model: options.model || null,
|
|
271
|
+
provider: options.searchDelegateProvider || process.env.PROBE_SEARCH_DELEGATE_PROVIDER || options.provider || null,
|
|
272
|
+
model: options.searchDelegateModel || process.env.PROBE_SEARCH_DELEGATE_MODEL || options.model || null,
|
|
273
273
|
tracer: options.tracer || null,
|
|
274
274
|
enableBash: false,
|
|
275
275
|
bashConfig: null,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|