@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.
- package/dist/{chunk-X4WT3TPU.js → chunk-24VL7G32.js} +9 -2
- package/dist/{chunk-LCEBDU6G.js → chunk-2AVRA73A.js} +13 -7
- package/dist/{chunk-P23XFC4W.js → chunk-3RSYCAHO.js} +1 -1
- package/dist/{chunk-RFHSFIHF.js → chunk-I7JNWIYM.js} +585 -96
- package/dist/{chunk-Q42DWR3T.js → chunk-S2HYQYJP.js} +3 -1
- package/dist/{chunk-YVON2BHN.js → chunk-YV6D7GCQ.js} +10 -0
- package/dist/core/index.d.ts +5 -4
- package/dist/core/index.js +2 -2
- package/dist/{createHarness-XHMR3QN3.js → createHarness-4VZW2XEV.js} +2 -2
- package/dist/front/index.d.ts +1 -1
- package/dist/front/index.js +2 -2
- package/dist/{harness-DD0zj704.d.ts → harness-If4r1n-K.d.ts} +8 -2
- package/dist/{piChatEvent-D0yuLiJh.d.ts → piChatEvent-DtqYMcID.d.ts} +23 -14
- package/dist/server/index.d.ts +103 -19
- package/dist/server/index.js +10 -6
- package/dist/server/worker/index.js +6 -6
- package/dist/shared/index.d.ts +285 -25
- package/dist/shared/index.js +173 -3
- package/dist/{workspaceAgentDispatcher-D3ZEBsH1.d.ts → workspaceAgentDispatcher-BbNd3y7u.d.ts} +6 -3
- package/docs/ERROR_CODES.md +3 -0
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-AQBXNPMD.js";
|
|
5
5
|
import {
|
|
6
6
|
ErrorCode
|
|
7
|
-
} from "./chunk-
|
|
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
|
-
|
|
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-
|
|
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
|
|
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
|
-
|
|
234
|
-
key
|
|
235
|
-
|
|
236
|
-
|
|
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
|
}
|