@zixt/host 0.0.166 → 0.0.167
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 +15 -5
- 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.167",
|
|
32
32
|
type: "module",
|
|
33
33
|
exports: {
|
|
34
34
|
".": "./src/client.ts",
|
|
@@ -17905,6 +17905,13 @@ var TaskTimingPhase = external_exports.object({
|
|
|
17905
17905
|
var TaskTimingRun = external_exports.object({
|
|
17906
17906
|
epoch: external_exports.number().int().min(1),
|
|
17907
17907
|
status: TaskStatus,
|
|
17908
|
+
/**
|
|
17909
|
+
* The run's own receipt outcome when finalized. A parked run boundary
|
|
17910
|
+
* ends the attempt as done but the receipt says escalated; showing the
|
|
17911
|
+
* bare attempt status painted "Done" over work that was handed back
|
|
17912
|
+
* (QA-052).
|
|
17913
|
+
*/
|
|
17914
|
+
outcome: external_exports.string().max(40).nullable().optional(),
|
|
17908
17915
|
startedAt: IsoDate.nullable(),
|
|
17909
17916
|
finishedAt: IsoDate.nullable(),
|
|
17910
17917
|
/** Waiting for this run's Machine, including re-queue after an earlier run. */
|
|
@@ -46773,12 +46780,15 @@ async function preflightClaudeCode(options = {}) {
|
|
|
46773
46780
|
doctor: doctorFromAuthStatus(parsed),
|
|
46774
46781
|
enforcement: "advisory",
|
|
46775
46782
|
checkedAt,
|
|
46776
|
-
error: parsed === "authenticated" ? null : (auth.error || auth.output || "
|
|
46777
|
-
0,
|
|
46778
|
-
1e3
|
|
46779
|
-
)
|
|
46783
|
+
error: parsed === "authenticated" ? null : humanizeClaudeAuthProbe(auth.error || auth.output || "")
|
|
46780
46784
|
};
|
|
46781
46785
|
}
|
|
46786
|
+
function humanizeClaudeAuthProbe(raw) {
|
|
46787
|
+
const text = raw.trim();
|
|
46788
|
+
const looksLikeAuthAnswer = text.startsWith("{") || /signed|logged|authenticat|token|api key/i.test(text);
|
|
46789
|
+
if (text && looksLikeAuthAnswer) return text.slice(0, 1e3);
|
|
46790
|
+
return "Zixt could not confirm the Claude Code sign-in on this Machine: the local `claude` command answered unexpectedly. Run `claude` there once to check the sign-in; agents using an API key do not need it.";
|
|
46791
|
+
}
|
|
46782
46792
|
async function preflightCodex(options = {}) {
|
|
46783
46793
|
const command = options.command ?? "codex";
|
|
46784
46794
|
const prefixArgs = options.commandPrefixArgs ?? [];
|