@zixt/host 0.0.165 → 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 +21 -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. */
|
|
@@ -20835,6 +20842,12 @@ var ManagerTaskRailRepresentative = external_exports.object({
|
|
|
20835
20842
|
id: TaskId,
|
|
20836
20843
|
agentId: AgentId,
|
|
20837
20844
|
status: TaskStatus,
|
|
20845
|
+
/**
|
|
20846
|
+
* The represented Task's own title. The badge must be readable against
|
|
20847
|
+
* the work it belongs to: a thread's frozen title with another Task's
|
|
20848
|
+
* status read as that work's outcome (QA-022).
|
|
20849
|
+
*/
|
|
20850
|
+
title: external_exports.string().nullable().optional(),
|
|
20838
20851
|
gitSummary: TaskGitSummary.nullable(),
|
|
20839
20852
|
createdAt: external_exports.string(),
|
|
20840
20853
|
updatedAt: external_exports.string()
|
|
@@ -46767,12 +46780,15 @@ async function preflightClaudeCode(options = {}) {
|
|
|
46767
46780
|
doctor: doctorFromAuthStatus(parsed),
|
|
46768
46781
|
enforcement: "advisory",
|
|
46769
46782
|
checkedAt,
|
|
46770
|
-
error: parsed === "authenticated" ? null : (auth.error || auth.output || "
|
|
46771
|
-
0,
|
|
46772
|
-
1e3
|
|
46773
|
-
)
|
|
46783
|
+
error: parsed === "authenticated" ? null : humanizeClaudeAuthProbe(auth.error || auth.output || "")
|
|
46774
46784
|
};
|
|
46775
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
|
+
}
|
|
46776
46792
|
async function preflightCodex(options = {}) {
|
|
46777
46793
|
const command = options.command ?? "codex";
|
|
46778
46794
|
const prefixArgs = options.commandPrefixArgs ?? [];
|