@hachej/boring-agent 0.1.79 → 0.1.81

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.
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-AQBXNPMD.js";
5
5
  import {
6
6
  ErrorCode
7
- } from "./chunk-YVON2BHN.js";
7
+ } from "./chunk-YV6D7GCQ.js";
8
8
 
9
9
  // src/server/harness/pi-coding-agent/createHarness.ts
10
10
  import { AsyncLocalStorage } from "async_hooks";
@@ -1201,7 +1201,14 @@ function readApiKeyEnv(candidates) {
1201
1201
  function buildOpenAICompatibleProviderConfig(opts) {
1202
1202
  return {
1203
1203
  baseUrl: opts.baseUrl,
1204
- apiKey: `$${opts.apiKeyEnv}`,
1204
+ // pi-coding-agent's resolveConfigValue (packages/agent's pinned
1205
+ // @mariozechner/pi-coding-agent@0.75.5) resolves a provider apiKey by
1206
+ // looking up `process.env[config]` directly — it does NOT strip a `$`
1207
+ // prefix. A `$`-prefixed value (e.g. "$INFOMANIAK_API_TOKEN") misses the
1208
+ // env lookup and falls back to sending the literal string as the Bearer
1209
+ // token, causing provider 401s. The supported syntax is the bare env var
1210
+ // name.
1211
+ apiKey: opts.apiKeyEnv,
1205
1212
  api: "openai-completions",
1206
1213
  models: opts.models.map((model) => ({
1207
1214
  id: model.id,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WSQ5QNIY.js";
4
4
  import {
5
5
  ErrorCode
6
- } from "./chunk-YVON2BHN.js";
6
+ } from "./chunk-YV6D7GCQ.js";
7
7
 
8
8
  // src/core/createAgent.ts
9
9
  var DEFAULT_LIVE_BUFFER_SIZE = 1e3;
@@ -225,16 +225,22 @@ function createRuntimeLoader(runtimeFactory) {
225
225
  };
226
226
  }
227
227
  function createReadiness(config, assertActive) {
228
- const requirements = [...config.readinessRequirements ?? []];
228
+ const reporter = config.readiness;
229
+ const requirements = [...reporter?.requirements ?? config.readinessRequirements ?? []];
229
230
  return {
230
231
  requirements,
231
232
  async status() {
232
233
  assertActive();
233
- return requirements.map((key) => ({
234
- key,
235
- ready: false,
236
- message: "readiness status is not available in the core facade"
237
- }));
234
+ if (!reporter) {
235
+ return requirements.map((key) => ({
236
+ key,
237
+ ready: false,
238
+ message: "readiness status is not available in the core facade"
239
+ }));
240
+ }
241
+ const statuses = await reporter.status();
242
+ assertActive();
243
+ return statuses;
238
244
  }
239
245
  };
240
246
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ErrorCode
3
- } from "./chunk-YVON2BHN.js";
3
+ } from "./chunk-YV6D7GCQ.js";
4
4
 
5
5
  // src/shared/tool-ui.ts
6
6
  function isRecord(value) {