@codexhost/cli-linux-arm64 0.18.0-beta.4 → 0.18.0-beta.5
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/README.md +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +93 -53
- package/app/console-web.js +159 -119
- package/app/desktop-controller.mjs +283 -113
- package/app/host-runtime.mjs +2129 -1529
- package/app/plugins/antigravity/plugin.mjs +787 -303
- package/app/plugins/claude-code/plugin.mjs +85 -45
- package/app/plugins/codebuddy/plugin.mjs +99 -59
- package/app/plugins/codex-usage/plugin.mjs +85 -45
- package/app/plugins/copilot/plugin.mjs +90 -50
- package/app/plugins/cursor-cli/plugin.mjs +113 -73
- package/app/plugins/deepseek-harness/plugin.mjs +116 -76
- package/app/plugins/devin/plugin.mjs +90 -50
- package/app/plugins/grok/plugin.mjs +96 -56
- package/app/plugins/hermes/plugin.mjs +77 -37
- package/app/plugins/kimi-code/plugin.mjs +94 -54
- package/app/plugins/kiro-cli/plugin.mjs +90 -50
- package/app/plugins/omp/plugin.mjs +81 -41
- package/app/plugins/opencode/plugin.mjs +78 -38
- package/app/plugins/pi/plugin.mjs +94 -54
- package/app/plugins/qoder/plugin.mjs +106 -66
- package/app/plugins/qoder-cn/plugin.mjs +106 -66
- package/app/plugins/qwen-code/plugin.mjs +101 -61
- package/app/plugins/workbuddy/plugin.mjs +99 -59
- package/app/plugins/zcode/plugin.mjs +82 -42
- package/app/renderer-extension.js +353 -295
- package/app/web/assets/{index-D1dOzBMI.js → index-C0aXz2jD.js} +63 -63
- package/app/web/codex-agent.png +0 -0
- package/app/web/codexhost-settings.js +154 -114
- package/app/web/index.html +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +61 -61
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +8 -8
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +12 -12
- package/app/web/plugins/deepseek-ai__dsh-client-ui-permission-presets/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-settings/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +18 -18
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +8 -8
- package/app/web/sw.js +1 -6
- package/app/web-modules/server.mjs +2079 -1201
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire as __codexhostCreateRequire } from "node:module"; const require = __codexhostCreateRequire(import.meta.url);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __export = (
|
|
3
|
+
var __export = (target2, all) => {
|
|
4
4
|
for (var name in all)
|
|
5
|
-
__defProp(
|
|
5
|
+
__defProp(target2, name, { get: all[name], enumerable: true });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
// ../../harness-discovery/dist/environment.js
|
|
@@ -1301,8 +1301,8 @@ function defineLazy(object2, key, getter) {
|
|
|
1301
1301
|
function objectClone(obj) {
|
|
1302
1302
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
1303
1303
|
}
|
|
1304
|
-
function assignProp(
|
|
1305
|
-
Object.defineProperty(
|
|
1304
|
+
function assignProp(target2, prop, value) {
|
|
1305
|
+
Object.defineProperty(target2, prop, {
|
|
1306
1306
|
value,
|
|
1307
1307
|
writable: true,
|
|
1308
1308
|
enumerable: true,
|
|
@@ -1485,35 +1485,35 @@ function normalizeParams(_params) {
|
|
|
1485
1485
|
return params;
|
|
1486
1486
|
}
|
|
1487
1487
|
function createTransparentProxy(getter) {
|
|
1488
|
-
let
|
|
1488
|
+
let target2;
|
|
1489
1489
|
return new Proxy({}, {
|
|
1490
1490
|
get(_, prop, receiver) {
|
|
1491
|
-
|
|
1492
|
-
return Reflect.get(
|
|
1491
|
+
target2 ?? (target2 = getter());
|
|
1492
|
+
return Reflect.get(target2, prop, receiver);
|
|
1493
1493
|
},
|
|
1494
1494
|
set(_, prop, value, receiver) {
|
|
1495
|
-
|
|
1496
|
-
return Reflect.set(
|
|
1495
|
+
target2 ?? (target2 = getter());
|
|
1496
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
1497
1497
|
},
|
|
1498
1498
|
has(_, prop) {
|
|
1499
|
-
|
|
1500
|
-
return Reflect.has(
|
|
1499
|
+
target2 ?? (target2 = getter());
|
|
1500
|
+
return Reflect.has(target2, prop);
|
|
1501
1501
|
},
|
|
1502
1502
|
deleteProperty(_, prop) {
|
|
1503
|
-
|
|
1504
|
-
return Reflect.deleteProperty(
|
|
1503
|
+
target2 ?? (target2 = getter());
|
|
1504
|
+
return Reflect.deleteProperty(target2, prop);
|
|
1505
1505
|
},
|
|
1506
1506
|
ownKeys(_) {
|
|
1507
|
-
|
|
1508
|
-
return Reflect.ownKeys(
|
|
1507
|
+
target2 ?? (target2 = getter());
|
|
1508
|
+
return Reflect.ownKeys(target2);
|
|
1509
1509
|
},
|
|
1510
1510
|
getOwnPropertyDescriptor(_, prop) {
|
|
1511
|
-
|
|
1512
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
1511
|
+
target2 ?? (target2 = getter());
|
|
1512
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
1513
1513
|
},
|
|
1514
1514
|
defineProperty(_, prop, descriptor) {
|
|
1515
|
-
|
|
1516
|
-
return Reflect.defineProperty(
|
|
1515
|
+
target2 ?? (target2 = getter());
|
|
1516
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
1517
1517
|
}
|
|
1518
1518
|
});
|
|
1519
1519
|
}
|
|
@@ -11965,15 +11965,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11965
11965
|
|
|
11966
11966
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
11967
11967
|
function initializeContext(params) {
|
|
11968
|
-
let
|
|
11969
|
-
if (
|
|
11970
|
-
|
|
11971
|
-
if (
|
|
11972
|
-
|
|
11968
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
11969
|
+
if (target2 === "draft-4")
|
|
11970
|
+
target2 = "draft-04";
|
|
11971
|
+
if (target2 === "draft-7")
|
|
11972
|
+
target2 = "draft-07";
|
|
11973
11973
|
return {
|
|
11974
11974
|
processors: params.processors ?? {},
|
|
11975
11975
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
11976
|
-
target,
|
|
11976
|
+
target: target2,
|
|
11977
11977
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
11978
11978
|
override: params?.override ?? (() => {
|
|
11979
11979
|
}),
|
|
@@ -12315,8 +12315,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
12315
12315
|
return finalize(ctx, schema);
|
|
12316
12316
|
};
|
|
12317
12317
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
12318
|
-
const { libraryOptions, target } = params ?? {};
|
|
12319
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
12318
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
12319
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
12320
12320
|
process2(schema, ctx);
|
|
12321
12321
|
extractDefs(ctx, schema);
|
|
12322
12322
|
return finalize(ctx, schema);
|
|
@@ -13375,8 +13375,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
13375
13375
|
catch(params) {
|
|
13376
13376
|
return _catch2(this, params);
|
|
13377
13377
|
},
|
|
13378
|
-
pipe(
|
|
13379
|
-
return pipe(this,
|
|
13378
|
+
pipe(target2) {
|
|
13379
|
+
return pipe(this, target2);
|
|
13380
13380
|
},
|
|
13381
13381
|
readonly() {
|
|
13382
13382
|
return readonly(this);
|
|
@@ -15606,15 +15606,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15606
15606
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15607
15607
|
}).strict().superRefine(({ threads }, context) => {
|
|
15608
15608
|
const seen = /* @__PURE__ */ new Set();
|
|
15609
|
-
for (const [index,
|
|
15610
|
-
if (seen.has(
|
|
15609
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15610
|
+
if (seen.has(thread2.threadId)) {
|
|
15611
15611
|
context.addIssue({
|
|
15612
15612
|
code: "custom",
|
|
15613
15613
|
message: "Thread ownership-list results must be unique",
|
|
15614
15614
|
path: ["threads", index, "threadId"]
|
|
15615
15615
|
});
|
|
15616
15616
|
}
|
|
15617
|
-
seen.add(
|
|
15617
|
+
seen.add(thread2.threadId);
|
|
15618
15618
|
}
|
|
15619
15619
|
});
|
|
15620
15620
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -16952,6 +16952,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
16952
16952
|
}).strict();
|
|
16953
16953
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16954
16954
|
|
|
16955
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
16956
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
16957
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
16958
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
16959
|
+
var thread = { ...target, threadId: identity };
|
|
16960
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16961
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16962
|
+
external_exports.strictObject({
|
|
16963
|
+
kind: external_exports.literal("list"),
|
|
16964
|
+
...target,
|
|
16965
|
+
cursor: external_exports.string().nullable(),
|
|
16966
|
+
archived: external_exports.boolean()
|
|
16967
|
+
}),
|
|
16968
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16969
|
+
external_exports.strictObject({
|
|
16970
|
+
kind: external_exports.literal("prompt"),
|
|
16971
|
+
...thread,
|
|
16972
|
+
epoch: identity,
|
|
16973
|
+
text: external_exports.string().min(1).max(8e3),
|
|
16974
|
+
requestId: identity.optional()
|
|
16975
|
+
}),
|
|
16976
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
16977
|
+
external_exports.strictObject({
|
|
16978
|
+
kind: external_exports.literal("rename"),
|
|
16979
|
+
...thread,
|
|
16980
|
+
epoch: identity,
|
|
16981
|
+
name: external_exports.string().min(1).max(512)
|
|
16982
|
+
}),
|
|
16983
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
16984
|
+
external_exports.strictObject({
|
|
16985
|
+
kind: external_exports.literal("respond"),
|
|
16986
|
+
...thread,
|
|
16987
|
+
epoch: identity,
|
|
16988
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
16989
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
16990
|
+
})
|
|
16991
|
+
]);
|
|
16992
|
+
|
|
16955
16993
|
// ../../shared-contracts/dist/remote-connections.js
|
|
16956
16994
|
var hostId = external_exports.string().min(1).max(1024);
|
|
16957
16995
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -16972,7 +17010,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16972
17010
|
identity: external_exports.string().max(4096).nullable()
|
|
16973
17011
|
});
|
|
16974
17012
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
17013
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16975
17014
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
17015
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16976
17016
|
external_exports.strictObject({
|
|
16977
17017
|
action: external_exports.literal("read-thread"),
|
|
16978
17018
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -21471,12 +21511,12 @@ var OmpHarnessSession = class {
|
|
|
21471
21511
|
return;
|
|
21472
21512
|
}
|
|
21473
21513
|
try {
|
|
21474
|
-
const
|
|
21514
|
+
const identity2 = await this.#completedTurnIdentity(active, transport);
|
|
21475
21515
|
this.#completeTurn(active, result.cancelled ? {
|
|
21476
21516
|
status: "cancelled",
|
|
21477
21517
|
reason: "Cancelled by user",
|
|
21478
|
-
checkpoint:
|
|
21479
|
-
} : { status: "succeeded", checkpoint:
|
|
21518
|
+
checkpoint: identity2.checkpoint
|
|
21519
|
+
} : { status: "succeeded", checkpoint: identity2.checkpoint }, result.text, identity2.nativeTurnRef);
|
|
21480
21520
|
} catch (error51) {
|
|
21481
21521
|
this.#completeTurn(active, {
|
|
21482
21522
|
status: "failed",
|
|
@@ -21484,16 +21524,16 @@ var OmpHarnessSession = class {
|
|
|
21484
21524
|
});
|
|
21485
21525
|
}
|
|
21486
21526
|
}).catch(async (error51) => {
|
|
21487
|
-
let
|
|
21527
|
+
let identity2;
|
|
21488
21528
|
try {
|
|
21489
|
-
|
|
21529
|
+
identity2 = await this.#completedTurnIdentity(active, transport);
|
|
21490
21530
|
} catch {
|
|
21491
21531
|
}
|
|
21492
21532
|
this.#completeTurn(active, {
|
|
21493
21533
|
status: "failed",
|
|
21494
21534
|
error: normalizedError(error51, "nativeFailure"),
|
|
21495
|
-
...
|
|
21496
|
-
}, void 0,
|
|
21535
|
+
...identity2 ? { checkpoint: identity2.checkpoint } : {}
|
|
21536
|
+
}, void 0, identity2?.nativeTurnRef);
|
|
21497
21537
|
});
|
|
21498
21538
|
return { ok: true, value: { turnId: command.turnId } };
|
|
21499
21539
|
} finally {
|
|
@@ -22967,8 +23007,8 @@ function createOmpInstallation(environment, command) {
|
|
|
22967
23007
|
...environment,
|
|
22968
23008
|
[pathKey]: `${path8.dirname(executable)}${path8.delimiter}${environment[pathKey] ?? ""}`
|
|
22969
23009
|
};
|
|
22970
|
-
const
|
|
22971
|
-
const canUpdate = !selected.includes("/nix/store/") && !!
|
|
23010
|
+
const target2 = resolveHarnessExecutable({ id: "omp", command: "omp", installRoots: { posix: [], windows: [] } }, { environment: env });
|
|
23011
|
+
const canUpdate = !selected.includes("/nix/store/") && !!target2 && await realpath4(target2.executable) === selected;
|
|
22972
23012
|
const output = await runInstallationCommand(executable, ["update", "--check"], env);
|
|
22973
23013
|
const currentVersion = versionFromOutput(output);
|
|
22974
23014
|
const available = output.match(/New version available:\s*(\S+)/i);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire as __codexhostCreateRequire } from "node:module"; const require = __codexhostCreateRequire(import.meta.url);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __export = (
|
|
3
|
+
var __export = (target2, all) => {
|
|
4
4
|
for (var name in all)
|
|
5
|
-
__defProp(
|
|
5
|
+
__defProp(target2, name, { get: all[name], enumerable: true });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
// ../../harness-discovery/dist/environment.js
|
|
@@ -360,9 +360,9 @@ import path4 from "node:path";
|
|
|
360
360
|
function referencesNpmBin(shim, name, bin) {
|
|
361
361
|
if (bin.includes(".."))
|
|
362
362
|
return false;
|
|
363
|
-
const
|
|
363
|
+
const target2 = `node_modules/${name}/${bin.replace(/^\.\//, "")}`.toLowerCase();
|
|
364
364
|
const text = shim.replaceAll("\\", "/").toLowerCase();
|
|
365
|
-
return text.includes(`%dp0%/${
|
|
365
|
+
return text.includes(`%dp0%/${target2}"`) || text.includes(`%~dp0/${target2}"`);
|
|
366
366
|
}
|
|
367
367
|
async function npmInstallation(command, packages, environment) {
|
|
368
368
|
let selected = await realpath(command);
|
|
@@ -401,8 +401,8 @@ async function npmInstallation(command, packages, environment) {
|
|
|
401
401
|
const launchers = await Promise.all(Object.entries(bins).map(async ([bin, entry]) => {
|
|
402
402
|
if (path4.basename(bin) !== bin || entry.includes(".."))
|
|
403
403
|
return false;
|
|
404
|
-
const
|
|
405
|
-
if (
|
|
404
|
+
const target2 = await realpath(path4.join(directory, entry)).catch(() => "");
|
|
405
|
+
if (target2.toLowerCase() !== selected.toLowerCase())
|
|
406
406
|
return false;
|
|
407
407
|
const shim = await readFile(path4.join(prefix, `${bin}.cmd`), "utf8").catch(() => "");
|
|
408
408
|
return referencesNpmBin(shim, name, entry);
|
|
@@ -1298,8 +1298,8 @@ function defineLazy(object2, key, getter) {
|
|
|
1298
1298
|
function objectClone(obj) {
|
|
1299
1299
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
1300
1300
|
}
|
|
1301
|
-
function assignProp(
|
|
1302
|
-
Object.defineProperty(
|
|
1301
|
+
function assignProp(target2, prop, value) {
|
|
1302
|
+
Object.defineProperty(target2, prop, {
|
|
1303
1303
|
value,
|
|
1304
1304
|
writable: true,
|
|
1305
1305
|
enumerable: true,
|
|
@@ -1482,35 +1482,35 @@ function normalizeParams(_params) {
|
|
|
1482
1482
|
return params;
|
|
1483
1483
|
}
|
|
1484
1484
|
function createTransparentProxy(getter) {
|
|
1485
|
-
let
|
|
1485
|
+
let target2;
|
|
1486
1486
|
return new Proxy({}, {
|
|
1487
1487
|
get(_, prop, receiver) {
|
|
1488
|
-
|
|
1489
|
-
return Reflect.get(
|
|
1488
|
+
target2 ?? (target2 = getter());
|
|
1489
|
+
return Reflect.get(target2, prop, receiver);
|
|
1490
1490
|
},
|
|
1491
1491
|
set(_, prop, value, receiver) {
|
|
1492
|
-
|
|
1493
|
-
return Reflect.set(
|
|
1492
|
+
target2 ?? (target2 = getter());
|
|
1493
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
1494
1494
|
},
|
|
1495
1495
|
has(_, prop) {
|
|
1496
|
-
|
|
1497
|
-
return Reflect.has(
|
|
1496
|
+
target2 ?? (target2 = getter());
|
|
1497
|
+
return Reflect.has(target2, prop);
|
|
1498
1498
|
},
|
|
1499
1499
|
deleteProperty(_, prop) {
|
|
1500
|
-
|
|
1501
|
-
return Reflect.deleteProperty(
|
|
1500
|
+
target2 ?? (target2 = getter());
|
|
1501
|
+
return Reflect.deleteProperty(target2, prop);
|
|
1502
1502
|
},
|
|
1503
1503
|
ownKeys(_) {
|
|
1504
|
-
|
|
1505
|
-
return Reflect.ownKeys(
|
|
1504
|
+
target2 ?? (target2 = getter());
|
|
1505
|
+
return Reflect.ownKeys(target2);
|
|
1506
1506
|
},
|
|
1507
1507
|
getOwnPropertyDescriptor(_, prop) {
|
|
1508
|
-
|
|
1509
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
1508
|
+
target2 ?? (target2 = getter());
|
|
1509
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
1510
1510
|
},
|
|
1511
1511
|
defineProperty(_, prop, descriptor) {
|
|
1512
|
-
|
|
1513
|
-
return Reflect.defineProperty(
|
|
1512
|
+
target2 ?? (target2 = getter());
|
|
1513
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
1514
1514
|
}
|
|
1515
1515
|
});
|
|
1516
1516
|
}
|
|
@@ -11962,15 +11962,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11962
11962
|
|
|
11963
11963
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
11964
11964
|
function initializeContext(params) {
|
|
11965
|
-
let
|
|
11966
|
-
if (
|
|
11967
|
-
|
|
11968
|
-
if (
|
|
11969
|
-
|
|
11965
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
11966
|
+
if (target2 === "draft-4")
|
|
11967
|
+
target2 = "draft-04";
|
|
11968
|
+
if (target2 === "draft-7")
|
|
11969
|
+
target2 = "draft-07";
|
|
11970
11970
|
return {
|
|
11971
11971
|
processors: params.processors ?? {},
|
|
11972
11972
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
11973
|
-
target,
|
|
11973
|
+
target: target2,
|
|
11974
11974
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
11975
11975
|
override: params?.override ?? (() => {
|
|
11976
11976
|
}),
|
|
@@ -12312,8 +12312,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
12312
12312
|
return finalize(ctx, schema);
|
|
12313
12313
|
};
|
|
12314
12314
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
12315
|
-
const { libraryOptions, target } = params ?? {};
|
|
12316
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
12315
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
12316
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
12317
12317
|
process2(schema, ctx);
|
|
12318
12318
|
extractDefs(ctx, schema);
|
|
12319
12319
|
return finalize(ctx, schema);
|
|
@@ -13372,8 +13372,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
13372
13372
|
catch(params) {
|
|
13373
13373
|
return _catch2(this, params);
|
|
13374
13374
|
},
|
|
13375
|
-
pipe(
|
|
13376
|
-
return pipe(this,
|
|
13375
|
+
pipe(target2) {
|
|
13376
|
+
return pipe(this, target2);
|
|
13377
13377
|
},
|
|
13378
13378
|
readonly() {
|
|
13379
13379
|
return readonly(this);
|
|
@@ -15603,15 +15603,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15603
15603
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15604
15604
|
}).strict().superRefine(({ threads }, context) => {
|
|
15605
15605
|
const seen = /* @__PURE__ */ new Set();
|
|
15606
|
-
for (const [index,
|
|
15607
|
-
if (seen.has(
|
|
15606
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15607
|
+
if (seen.has(thread2.threadId)) {
|
|
15608
15608
|
context.addIssue({
|
|
15609
15609
|
code: "custom",
|
|
15610
15610
|
message: "Thread ownership-list results must be unique",
|
|
15611
15611
|
path: ["threads", index, "threadId"]
|
|
15612
15612
|
});
|
|
15613
15613
|
}
|
|
15614
|
-
seen.add(
|
|
15614
|
+
seen.add(thread2.threadId);
|
|
15615
15615
|
}
|
|
15616
15616
|
});
|
|
15617
15617
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -16949,6 +16949,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
16949
16949
|
}).strict();
|
|
16950
16950
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16951
16951
|
|
|
16952
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
16953
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
16954
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
16955
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
16956
|
+
var thread = { ...target, threadId: identity };
|
|
16957
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16958
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16959
|
+
external_exports.strictObject({
|
|
16960
|
+
kind: external_exports.literal("list"),
|
|
16961
|
+
...target,
|
|
16962
|
+
cursor: external_exports.string().nullable(),
|
|
16963
|
+
archived: external_exports.boolean()
|
|
16964
|
+
}),
|
|
16965
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16966
|
+
external_exports.strictObject({
|
|
16967
|
+
kind: external_exports.literal("prompt"),
|
|
16968
|
+
...thread,
|
|
16969
|
+
epoch: identity,
|
|
16970
|
+
text: external_exports.string().min(1).max(8e3),
|
|
16971
|
+
requestId: identity.optional()
|
|
16972
|
+
}),
|
|
16973
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
16974
|
+
external_exports.strictObject({
|
|
16975
|
+
kind: external_exports.literal("rename"),
|
|
16976
|
+
...thread,
|
|
16977
|
+
epoch: identity,
|
|
16978
|
+
name: external_exports.string().min(1).max(512)
|
|
16979
|
+
}),
|
|
16980
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
16981
|
+
external_exports.strictObject({
|
|
16982
|
+
kind: external_exports.literal("respond"),
|
|
16983
|
+
...thread,
|
|
16984
|
+
epoch: identity,
|
|
16985
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
16986
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
16987
|
+
})
|
|
16988
|
+
]);
|
|
16989
|
+
|
|
16952
16990
|
// ../../shared-contracts/dist/remote-connections.js
|
|
16953
16991
|
var hostId = external_exports.string().min(1).max(1024);
|
|
16954
16992
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -16969,7 +17007,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16969
17007
|
identity: external_exports.string().max(4096).nullable()
|
|
16970
17008
|
});
|
|
16971
17009
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
17010
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16972
17011
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
17012
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16973
17013
|
external_exports.strictObject({
|
|
16974
17014
|
action: external_exports.literal("read-thread"),
|
|
16975
17015
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -25762,9 +25802,9 @@ var __returnValue = (v) => v;
|
|
|
25762
25802
|
function __exportSetter(name, newValue) {
|
|
25763
25803
|
this[name] = __returnValue.bind(null, newValue);
|
|
25764
25804
|
}
|
|
25765
|
-
var __export2 = (
|
|
25805
|
+
var __export2 = (target2, all) => {
|
|
25766
25806
|
for (var name in all)
|
|
25767
|
-
__defProp2(
|
|
25807
|
+
__defProp2(target2, name, {
|
|
25768
25808
|
get: all[name],
|
|
25769
25809
|
enumerable: true,
|
|
25770
25810
|
configurable: true,
|