@hachej/boring-agent 0.1.67 → 0.1.69
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.
|
@@ -2453,7 +2453,7 @@ function createRuntimeLoader(config, options) {
|
|
|
2453
2453
|
};
|
|
2454
2454
|
}
|
|
2455
2455
|
async function createRuntime(config, options) {
|
|
2456
|
-
const harnessFactory = config.harnessFactory ?? (await import("./createHarness-
|
|
2456
|
+
const harnessFactory = config.harnessFactory ?? (await import("./createHarness-B3MYGFVB.js")).createPiCodingAgentHarness;
|
|
2457
2457
|
const harnessInput = {
|
|
2458
2458
|
tools: config.tools ?? [],
|
|
2459
2459
|
cwd: config.workdir ?? DEFAULT_WORKDIR,
|
|
@@ -1121,7 +1121,7 @@ function readApiKeyEnv(candidates) {
|
|
|
1121
1121
|
function buildOpenAICompatibleProviderConfig(opts) {
|
|
1122
1122
|
return {
|
|
1123
1123
|
baseUrl: opts.baseUrl,
|
|
1124
|
-
apiKey: opts.apiKeyEnv
|
|
1124
|
+
apiKey: `$${opts.apiKeyEnv}`,
|
|
1125
1125
|
api: "openai-completions",
|
|
1126
1126
|
models: opts.models.map((model) => ({
|
|
1127
1127
|
id: model.id,
|
|
@@ -1387,10 +1387,7 @@ function resolveDefaultModel(modelRegistry) {
|
|
|
1387
1387
|
const configured = readConfiguredDefaultModel();
|
|
1388
1388
|
if (configured) {
|
|
1389
1389
|
const model = modelRegistry.find(configured.provider, configured.id);
|
|
1390
|
-
|
|
1391
|
-
if (!model || typeof getAvailable !== "function") return model;
|
|
1392
|
-
const available = getAvailable.call(modelRegistry);
|
|
1393
|
-
if (available.some((m) => m.provider === model.provider && m.id === model.id)) return model;
|
|
1390
|
+
if (model) return model;
|
|
1394
1391
|
}
|
|
1395
1392
|
return void 0;
|
|
1396
1393
|
}
|
|
@@ -1444,11 +1441,10 @@ function createResourceSettingsManager(cwd, agentDir, piPackages) {
|
|
|
1444
1441
|
}
|
|
1445
1442
|
async function applyRequestedSessionOptions(handle, input, options = {}) {
|
|
1446
1443
|
const requestedModel = resolveRequestedModel(handle.modelRegistry, input, { strict: options.strictModelResolution });
|
|
1447
|
-
|
|
1448
|
-
if (nextModel) {
|
|
1444
|
+
if (requestedModel) {
|
|
1449
1445
|
const current = handle.piSession.model;
|
|
1450
|
-
if (!current || current.provider !==
|
|
1451
|
-
await handle.piSession.setModel(
|
|
1446
|
+
if (!current || current.provider !== requestedModel.provider || current.id !== requestedModel.id) {
|
|
1447
|
+
await handle.piSession.setModel(requestedModel);
|
|
1452
1448
|
}
|
|
1453
1449
|
}
|
|
1454
1450
|
if (input.thinkingLevel) {
|
package/dist/core/index.js
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createAgent,
|
|
8
8
|
createAgentRuntimeBridge,
|
|
9
9
|
normalizeMeteringUsage
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-AQVEZYLH.js";
|
|
11
11
|
import "../chunk-WSQ5QNIY.js";
|
|
12
12
|
import {
|
|
13
13
|
FollowUpPayloadSchema,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
registerConfiguredModelProviders,
|
|
32
32
|
setEnvDefault,
|
|
33
33
|
withPiHarnessDefaults
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-FDGWCMJD.js";
|
|
35
35
|
import {
|
|
36
36
|
safeCapture
|
|
37
37
|
} from "../chunk-AQBXNPMD.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hachej/boring-agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.69",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Pane-embeddable coding agent. Ships direct/local/vercel-sandbox execution modes behind one interface.",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"use-stick-to-bottom": "^1.1.6",
|
|
80
80
|
"yaml": "^2.9.0",
|
|
81
81
|
"zod": "^3.25.76",
|
|
82
|
-
"@hachej/boring-ui-kit": "0.1.
|
|
82
|
+
"@hachej/boring-ui-kit": "0.1.69"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@antithesishq/bombadil": "0.6.1",
|