@zixt/host 0.0.158 → 0.0.160
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 +28 -4
- 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.160",
|
|
32
32
|
type: "module",
|
|
33
33
|
exports: {
|
|
34
34
|
".": "./src/client.ts",
|
|
@@ -21128,7 +21128,10 @@ var ApiError = external_exports.object({
|
|
|
21128
21128
|
})
|
|
21129
21129
|
});
|
|
21130
21130
|
var CreateOrgRequest = external_exports.object({
|
|
21131
|
-
|
|
21131
|
+
// Trimmed before the length checks, exactly like RenameOrgRequest below: a
|
|
21132
|
+
// whitespace-only name passed min(1) here and created a real organization
|
|
21133
|
+
// that rendered blank everywhere (QA-003, 2026-08-30).
|
|
21134
|
+
name: external_exports.string().trim().pipe(Org.shape.name),
|
|
21132
21135
|
slug: Org.shape.slug
|
|
21133
21136
|
});
|
|
21134
21137
|
var RenameOrgRequest = external_exports.object({
|
|
@@ -31500,6 +31503,15 @@ async function launchHostSupervisor(options = {}) {
|
|
|
31500
31503
|
child = null;
|
|
31501
31504
|
if (stopEscalation) clearTimeout(stopEscalation);
|
|
31502
31505
|
stopEscalation = void 0;
|
|
31506
|
+
if (!stopping && ownershipDirectory !== null && !await access2(ownershipDirectory).then(
|
|
31507
|
+
() => true,
|
|
31508
|
+
() => false
|
|
31509
|
+
)) {
|
|
31510
|
+
log2(
|
|
31511
|
+
"Zixt Host launcher: another Zixt Host launcher took over this Machine; leaving it in charge"
|
|
31512
|
+
);
|
|
31513
|
+
return 0;
|
|
31514
|
+
}
|
|
31503
31515
|
if (!await cleanupSupervisorBoundary(
|
|
31504
31516
|
exited,
|
|
31505
31517
|
childExited,
|
|
@@ -43961,6 +43973,18 @@ function delay2(ms) {
|
|
|
43961
43973
|
timer.unref?.();
|
|
43962
43974
|
});
|
|
43963
43975
|
}
|
|
43976
|
+
function toolCallLabel(tool, args, rawParameter) {
|
|
43977
|
+
if (args && typeof args === "object" && !Array.isArray(args)) {
|
|
43978
|
+
const record2 = args;
|
|
43979
|
+
for (const key of ["title", "question", "url", "query", "path", "name"]) {
|
|
43980
|
+
const value = record2[key];
|
|
43981
|
+
if (typeof value === "string" && value.trim()) {
|
|
43982
|
+
return `${tool}: ${value.trim().slice(0, 100)}`;
|
|
43983
|
+
}
|
|
43984
|
+
}
|
|
43985
|
+
}
|
|
43986
|
+
return `${tool}${rawParameter ? `: ${rawParameter.slice(0, 100)}` : ""}`;
|
|
43987
|
+
}
|
|
43964
43988
|
async function reportCodexRuntime(args) {
|
|
43965
43989
|
const { task, runner, env, command, commandPrefixArgs } = args.input;
|
|
43966
43990
|
for (let attempt = 0; attempt < RUNTIME_READ_ATTEMPTS; attempt += 1) {
|
|
@@ -44063,7 +44087,7 @@ function createCodexAppServerParser(onStream, options) {
|
|
|
44063
44087
|
0,
|
|
44064
44088
|
2e3
|
|
44065
44089
|
);
|
|
44066
|
-
onStream("action",
|
|
44090
|
+
onStream("action", toolCallLabel(tool, args, parameter), {
|
|
44067
44091
|
tool,
|
|
44068
44092
|
...parameter ? { parameter } : {},
|
|
44069
44093
|
ephemeral: true
|
|
@@ -44289,7 +44313,7 @@ function createCodexStreamParser(onStream, hooks = {}) {
|
|
|
44289
44313
|
0,
|
|
44290
44314
|
2e3
|
|
44291
44315
|
);
|
|
44292
|
-
onStream("action",
|
|
44316
|
+
onStream("action", toolCallLabel(tool, args, parameter), {
|
|
44293
44317
|
tool,
|
|
44294
44318
|
...parameter ? { parameter } : {},
|
|
44295
44319
|
ephemeral: true
|