@botbuddy/cli 1.61.0 → 1.61.1
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/daemon/bin/darwin-arm64/botbuddy-daemon +0 -0
- package/daemon/bin/linux-x64/botbuddy-daemon +0 -0
- package/daemon-release/darwin-arm64.json +4 -4
- package/daemon-release/linux-x64.json +4 -4
- package/daemon-release/manifest.json +5 -5
- package/package.json +1 -1
- package/src/pw/staging-auth.mjs +4 -1
- package/src/staging-pool/cli.mjs +2 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.61.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.61.1",
|
|
3
|
+
"source_commit": "09c797743bed1572794a38c60b99ef0c16fed99e",
|
|
4
|
+
"source_sha256": "d32701d3d5eb48c0702d79aaee49bd699754b1c9ccff5eb6df5a845db4e9b090",
|
|
5
5
|
"target": "darwin-arm64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "d2c3085339320a7911f2e546705f6dbabed4f8a817a85530bcce0db6e3ec1d70"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release_version": "1.61.
|
|
3
|
-
"source_commit": "
|
|
4
|
-
"source_sha256": "
|
|
2
|
+
"release_version": "1.61.1",
|
|
3
|
+
"source_commit": "09c797743bed1572794a38c60b99ef0c16fed99e",
|
|
4
|
+
"source_sha256": "d32701d3d5eb48c0702d79aaee49bd699754b1c9ccff5eb6df5a845db4e9b090",
|
|
5
5
|
"target": "linux-x64",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "7efe991465e7815eed329c1eaace0f7d130b64416034ce9f62863ea2147d6c6c"
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"release_version": "1.61.
|
|
4
|
-
"source_commit": "
|
|
5
|
-
"source_sha256": "
|
|
3
|
+
"release_version": "1.61.1",
|
|
4
|
+
"source_commit": "09c797743bed1572794a38c60b99ef0c16fed99e",
|
|
5
|
+
"source_sha256": "d32701d3d5eb48c0702d79aaee49bd699754b1c9ccff5eb6df5a845db4e9b090",
|
|
6
6
|
"targets": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"goos": "darwin",
|
|
9
9
|
"goarch": "arm64",
|
|
10
10
|
"binary": "daemon/bin/darwin-arm64/botbuddy-daemon",
|
|
11
|
-
"sha256": "
|
|
11
|
+
"sha256": "d2c3085339320a7911f2e546705f6dbabed4f8a817a85530bcce0db6e3ec1d70",
|
|
12
12
|
"mode": "0755"
|
|
13
13
|
},
|
|
14
14
|
"linux-x64": {
|
|
15
15
|
"goos": "linux",
|
|
16
16
|
"goarch": "amd64",
|
|
17
17
|
"binary": "daemon/bin/linux-x64/botbuddy-daemon",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "7efe991465e7815eed329c1eaace0f7d130b64416034ce9f62863ea2147d6c6c",
|
|
19
19
|
"mode": "0755"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/package.json
CHANGED
package/src/pw/staging-auth.mjs
CHANGED
|
@@ -314,7 +314,10 @@ export async function runStagingAuth({ plan, host, env, deps, socketRun, resolve
|
|
|
314
314
|
claim = await poolModule.takeForLane({ persona: persona.email, owner: `lane-${plan.lane}@${host}`, poolId: ctxPool.poolId, tenantHint, ...poolOptions });
|
|
315
315
|
} catch (error) {
|
|
316
316
|
if (error?.code === "pool_empty") {
|
|
317
|
-
|
|
317
|
+
// The refusal's code is the pool's health reason when it is unhealthy (e.g. a
|
|
318
|
+
// count-0 persona is persona_not_configured), so code, message and help agree.
|
|
319
|
+
const reasonCode = typeof error.reason === "string" && error.reason !== "healthy" && isKnownCode(error.reason) ? error.reason : "pool_empty";
|
|
320
|
+
return refuse(io, reasonCode, 3, Object.fromEntries(["reason", "detail", ...GUIDED_FIELDS].filter((key) => error[key] !== undefined).map((key) => [key, error[key]])), vars);
|
|
318
321
|
}
|
|
319
322
|
const code = typeof error?.code === "string" && isKnownCode(error.code) ? error.code : "pool_take_failed";
|
|
320
323
|
return refuse(io, code, 3, { detail: String(error?.message ?? error).slice(0, 300) }, vars);
|
package/src/staging-pool/cli.mjs
CHANGED
|
@@ -359,6 +359,8 @@ export async function refusalFor({ argv, command, error, options = {}, home = ho
|
|
|
359
359
|
// A pool refusal (pool_empty / unhealthy) already carries its health guidance;
|
|
360
360
|
// an ordinary error's own message stays in `detail`.
|
|
361
361
|
if (typeof error?.reason === "string") for (const field of GUIDANCE_FIELDS) if (error[field] !== undefined) record[field] = error[field];
|
|
362
|
+
// An unhealthy pool's refusal carries its health reason's guidance, so its code is that reason.
|
|
363
|
+
if (typeof error?.reason === "string" && error.reason !== code && error.reason !== "healthy" && isKnownCode(error.reason)) record.code = error.reason;
|
|
362
364
|
record.remedy ??= remedyLine(g);
|
|
363
365
|
if (humanOnly) Object.assign(record, { actor: g.actor_label, agentAction: "report_blocker" });
|
|
364
366
|
// An empty pool is explained by its health reason (e.g. job_not_loaded).
|