@zixt/host 0.0.167 → 0.0.168
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/index.js +16 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import { homedir as homedir6 } from "node:os";
|
|
|
28
28
|
// package.json
|
|
29
29
|
var package_default = {
|
|
30
30
|
name: "@zixt/host",
|
|
31
|
-
version: "0.0.
|
|
31
|
+
version: "0.0.168",
|
|
32
32
|
type: "module",
|
|
33
33
|
exports: {
|
|
34
34
|
".": "./src/client.ts",
|
|
@@ -41039,6 +41039,12 @@ function createAskUserServer() {
|
|
|
41039
41039
|
agentOp: input.agentOp,
|
|
41040
41040
|
..."requestApproval" in input && input.requestApproval ? { requestApproval: input.requestApproval } : {},
|
|
41041
41041
|
..."publishFile" in input && input.publishFile ? { publishFile: input.publishFile } : {},
|
|
41042
|
+
// This rebuild copies fields one by one, so a handler omitted here is
|
|
41043
|
+
// silently absent for every runner: company files shipped wired in
|
|
41044
|
+
// cli-runner but dropped on this line, which made the whole store
|
|
41045
|
+
// answer "unavailable for this runner" on every fetch ever attempted
|
|
41046
|
+
// (QA-056).
|
|
41047
|
+
..."companyAssets" in input && input.companyAssets ? { companyAssets: input.companyAssets } : {},
|
|
41042
41048
|
..."software" in input && input.software ? { software: input.software } : {},
|
|
41043
41049
|
...toolPacks.length > 0 ? { toolPacks } : {}
|
|
41044
41050
|
};
|
|
@@ -42621,6 +42627,10 @@ async function recoverRecordedRunAssignments(registryRoot = defaultRunRegistryRo
|
|
|
42621
42627
|
(left, right) => left.projectId === right.projectId ? left.taskId === right.taskId ? left.epoch - right.epoch : left.taskId.localeCompare(right.taskId) : left.projectId.localeCompare(right.projectId)
|
|
42622
42628
|
);
|
|
42623
42629
|
}
|
|
42630
|
+
function honorDeclaredFailure(result) {
|
|
42631
|
+
if (result.outcome !== "done" || !/^\s*FAILED:\s*/i.test(result.summary)) return result;
|
|
42632
|
+
return { outcome: "failed", summary: result.summary.replace(/^\s*FAILED:\s*/i, "") };
|
|
42633
|
+
}
|
|
42624
42634
|
var MAX_THOUGHT_CHARS = 5e4;
|
|
42625
42635
|
var MAX_RUNNER_OUTPUT_LINE_CHARS = 4 * 1024 * 1024;
|
|
42626
42636
|
var MAX_RUNNER_STDERR_CHARS = 128 * 1024;
|
|
@@ -43324,9 +43334,12 @@ ${attachmentSection}` : prompt;
|
|
|
43324
43334
|
"status",
|
|
43325
43335
|
`${adapter.displayName} finished. Tokens in ${result.usage.inputTokens}, out ${result.usage.outputTokens}` + (result.usage.totalCostUsd !== void 0 ? `, cost $${result.usage.totalCostUsd.toFixed(4)}` : "")
|
|
43326
43336
|
);
|
|
43337
|
+
const declared = honorDeclaredFailure(result);
|
|
43327
43338
|
taskResult = {
|
|
43328
|
-
outcome:
|
|
43329
|
-
summary:
|
|
43339
|
+
outcome: declared.outcome,
|
|
43340
|
+
summary: declared.summary,
|
|
43341
|
+
// A declared failure is still the agent's own claim, not something
|
|
43342
|
+
// this Host observed.
|
|
43330
43343
|
summaryEvidence: result.outcome === "done" ? "agent_claimed" : "host_observed",
|
|
43331
43344
|
usage: result.usage
|
|
43332
43345
|
};
|