@hachej/boring-agent 0.1.68 → 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-AKNHI4JZ.js")).createPiCodingAgentHarness;
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,
@@ -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
- const getAvailable = modelRegistry.getAvailable;
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
- const nextModel = requestedModel ?? resolveDefaultModel(handle.modelRegistry);
1448
- if (nextModel) {
1444
+ if (requestedModel) {
1449
1445
  const current = handle.piSession.model;
1450
- if (!current || current.provider !== nextModel.provider || current.id !== nextModel.id) {
1451
- await handle.piSession.setModel(nextModel);
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) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createAgent
3
- } from "../chunk-GP426ZQ3.js";
3
+ } from "../chunk-AQVEZYLH.js";
4
4
  import {
5
5
  AGENT_NOT_IMPLEMENTED_UNTIL_T1,
6
6
  AgentNotImplementedError
@@ -4,7 +4,7 @@ import {
4
4
  deriveSourcePlugin,
5
5
  mergePiPackageSources,
6
6
  withPiHarnessDefaults
7
- } from "./chunk-7Z4K2MMT.js";
7
+ } from "./chunk-FDGWCMJD.js";
8
8
  import "./chunk-AQBXNPMD.js";
9
9
  import "./chunk-AJZHR626.js";
10
10
  import "./chunk-XZKU7FBV.js";
@@ -7,7 +7,7 @@ import {
7
7
  createAgent,
8
8
  createAgentRuntimeBridge,
9
9
  normalizeMeteringUsage
10
- } from "../chunk-GP426ZQ3.js";
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-7Z4K2MMT.js";
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.68",
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.68"
82
+ "@hachej/boring-ui-kit": "0.1.69"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@antithesishq/bombadil": "0.6.1",