@zixt/host 0.0.159 → 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 +19 -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({
|
|
@@ -43970,6 +43973,18 @@ function delay2(ms) {
|
|
|
43970
43973
|
timer.unref?.();
|
|
43971
43974
|
});
|
|
43972
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
|
+
}
|
|
43973
43988
|
async function reportCodexRuntime(args) {
|
|
43974
43989
|
const { task, runner, env, command, commandPrefixArgs } = args.input;
|
|
43975
43990
|
for (let attempt = 0; attempt < RUNTIME_READ_ATTEMPTS; attempt += 1) {
|
|
@@ -44072,7 +44087,7 @@ function createCodexAppServerParser(onStream, options) {
|
|
|
44072
44087
|
0,
|
|
44073
44088
|
2e3
|
|
44074
44089
|
);
|
|
44075
|
-
onStream("action",
|
|
44090
|
+
onStream("action", toolCallLabel(tool, args, parameter), {
|
|
44076
44091
|
tool,
|
|
44077
44092
|
...parameter ? { parameter } : {},
|
|
44078
44093
|
ephemeral: true
|
|
@@ -44298,7 +44313,7 @@ function createCodexStreamParser(onStream, hooks = {}) {
|
|
|
44298
44313
|
0,
|
|
44299
44314
|
2e3
|
|
44300
44315
|
);
|
|
44301
|
-
onStream("action",
|
|
44316
|
+
onStream("action", toolCallLabel(tool, args, parameter), {
|
|
44302
44317
|
tool,
|
|
44303
44318
|
...parameter ? { parameter } : {},
|
|
44304
44319
|
ephemeral: true
|