@codexhost/cli-darwin-x64 0.18.0-beta.3 → 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 +102 -57
- package/app/console-web.js +168 -123
- package/app/desktop-controller.mjs +292 -117
- package/app/host-runtime.mjs +5875 -3270
- package/app/plugins/antigravity/plugin.mjs +796 -307
- package/app/plugins/claude-code/plugin.mjs +214 -103
- package/app/plugins/codebuddy/plugin.mjs +108 -63
- package/app/plugins/codex-usage/plugin.mjs +94 -49
- package/app/plugins/copilot/plugin.mjs +99 -54
- package/app/plugins/cursor-cli/plugin.mjs +122 -77
- package/app/plugins/deepseek-harness/plugin.mjs +125 -80
- package/app/plugins/devin/plugin.mjs +99 -54
- package/app/plugins/grok/plugin.mjs +105 -60
- package/app/plugins/hermes/plugin.mjs +86 -41
- package/app/plugins/kimi-code/plugin.mjs +103 -58
- package/app/plugins/kiro-cli/plugin.mjs +99 -54
- package/app/plugins/omp/plugin.mjs +90 -45
- package/app/plugins/opencode/plugin.mjs +87 -42
- package/app/plugins/pi/plugin.mjs +103 -58
- package/app/plugins/qoder/plugin.mjs +115 -70
- package/app/plugins/qoder-cn/plugin.mjs +115 -70
- package/app/plugins/qwen-code/plugin.mjs +110 -65
- package/app/plugins/workbuddy/plugin.mjs +108 -63
- package/app/plugins/zcode/plugin.mjs +91 -46
- package/app/renderer-extension.js +362 -299
- package/app/web/assets/index-C0aXz2jD.js +199 -0
- package/app/web/codex-agent.png +0 -0
- package/app/web/codexhost-settings.js +163 -118
- package/app/web/index.html +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-gateway/client.js +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-connection/client.js +1 -1
- 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 +63 -63
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +12 -12
- package/app/web/plugins/deepseek-ai__dsh-client-ui-layout/client.js +2 -2
- 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-settings-general/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar/client.js +2 -2
- 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 +9 -13
- package/app/web/plugins.json +4 -0
- package/app/web/sw.js +1 -6
- package/app/web-modules/server.mjs +2443 -1345
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
- package/app/web/assets/index-aKvkfNJN.js +0 -199
|
@@ -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
|
|
@@ -1119,8 +1119,8 @@ function defineLazy(object2, key, getter) {
|
|
|
1119
1119
|
function objectClone(obj) {
|
|
1120
1120
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
1121
1121
|
}
|
|
1122
|
-
function assignProp(
|
|
1123
|
-
Object.defineProperty(
|
|
1122
|
+
function assignProp(target2, prop, value) {
|
|
1123
|
+
Object.defineProperty(target2, prop, {
|
|
1124
1124
|
value,
|
|
1125
1125
|
writable: true,
|
|
1126
1126
|
enumerable: true,
|
|
@@ -1303,35 +1303,35 @@ function normalizeParams(_params) {
|
|
|
1303
1303
|
return params;
|
|
1304
1304
|
}
|
|
1305
1305
|
function createTransparentProxy(getter) {
|
|
1306
|
-
let
|
|
1306
|
+
let target2;
|
|
1307
1307
|
return new Proxy({}, {
|
|
1308
1308
|
get(_, prop, receiver) {
|
|
1309
|
-
|
|
1310
|
-
return Reflect.get(
|
|
1309
|
+
target2 ?? (target2 = getter());
|
|
1310
|
+
return Reflect.get(target2, prop, receiver);
|
|
1311
1311
|
},
|
|
1312
1312
|
set(_, prop, value, receiver) {
|
|
1313
|
-
|
|
1314
|
-
return Reflect.set(
|
|
1313
|
+
target2 ?? (target2 = getter());
|
|
1314
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
1315
1315
|
},
|
|
1316
1316
|
has(_, prop) {
|
|
1317
|
-
|
|
1318
|
-
return Reflect.has(
|
|
1317
|
+
target2 ?? (target2 = getter());
|
|
1318
|
+
return Reflect.has(target2, prop);
|
|
1319
1319
|
},
|
|
1320
1320
|
deleteProperty(_, prop) {
|
|
1321
|
-
|
|
1322
|
-
return Reflect.deleteProperty(
|
|
1321
|
+
target2 ?? (target2 = getter());
|
|
1322
|
+
return Reflect.deleteProperty(target2, prop);
|
|
1323
1323
|
},
|
|
1324
1324
|
ownKeys(_) {
|
|
1325
|
-
|
|
1326
|
-
return Reflect.ownKeys(
|
|
1325
|
+
target2 ?? (target2 = getter());
|
|
1326
|
+
return Reflect.ownKeys(target2);
|
|
1327
1327
|
},
|
|
1328
1328
|
getOwnPropertyDescriptor(_, prop) {
|
|
1329
|
-
|
|
1330
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
1329
|
+
target2 ?? (target2 = getter());
|
|
1330
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
1331
1331
|
},
|
|
1332
1332
|
defineProperty(_, prop, descriptor) {
|
|
1333
|
-
|
|
1334
|
-
return Reflect.defineProperty(
|
|
1333
|
+
target2 ?? (target2 = getter());
|
|
1334
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
1335
1335
|
}
|
|
1336
1336
|
});
|
|
1337
1337
|
}
|
|
@@ -11783,15 +11783,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11783
11783
|
|
|
11784
11784
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
11785
11785
|
function initializeContext(params) {
|
|
11786
|
-
let
|
|
11787
|
-
if (
|
|
11788
|
-
|
|
11789
|
-
if (
|
|
11790
|
-
|
|
11786
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
11787
|
+
if (target2 === "draft-4")
|
|
11788
|
+
target2 = "draft-04";
|
|
11789
|
+
if (target2 === "draft-7")
|
|
11790
|
+
target2 = "draft-07";
|
|
11791
11791
|
return {
|
|
11792
11792
|
processors: params.processors ?? {},
|
|
11793
11793
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
11794
|
-
target,
|
|
11794
|
+
target: target2,
|
|
11795
11795
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
11796
11796
|
override: params?.override ?? (() => {
|
|
11797
11797
|
}),
|
|
@@ -12133,8 +12133,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
12133
12133
|
return finalize(ctx, schema);
|
|
12134
12134
|
};
|
|
12135
12135
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
12136
|
-
const { libraryOptions, target } = params ?? {};
|
|
12137
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
12136
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
12137
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
12138
12138
|
process2(schema, ctx);
|
|
12139
12139
|
extractDefs(ctx, schema);
|
|
12140
12140
|
return finalize(ctx, schema);
|
|
@@ -13193,8 +13193,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
13193
13193
|
catch(params) {
|
|
13194
13194
|
return _catch2(this, params);
|
|
13195
13195
|
},
|
|
13196
|
-
pipe(
|
|
13197
|
-
return pipe(this,
|
|
13196
|
+
pipe(target2) {
|
|
13197
|
+
return pipe(this, target2);
|
|
13198
13198
|
},
|
|
13199
13199
|
readonly() {
|
|
13200
13200
|
return readonly(this);
|
|
@@ -15424,15 +15424,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15424
15424
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15425
15425
|
}).strict().superRefine(({ threads }, context) => {
|
|
15426
15426
|
const seen = /* @__PURE__ */ new Set();
|
|
15427
|
-
for (const [index,
|
|
15428
|
-
if (seen.has(
|
|
15427
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15428
|
+
if (seen.has(thread2.threadId)) {
|
|
15429
15429
|
context.addIssue({
|
|
15430
15430
|
code: "custom",
|
|
15431
15431
|
message: "Thread ownership-list results must be unique",
|
|
15432
15432
|
path: ["threads", index, "threadId"]
|
|
15433
15433
|
});
|
|
15434
15434
|
}
|
|
15435
|
-
seen.add(
|
|
15435
|
+
seen.add(thread2.threadId);
|
|
15436
15436
|
}
|
|
15437
15437
|
});
|
|
15438
15438
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -15641,13 +15641,18 @@ var clientChannelResponseSchema = external_exports.object({
|
|
|
15641
15641
|
});
|
|
15642
15642
|
|
|
15643
15643
|
// ../../shared-contracts/dist/thread-catalog.js
|
|
15644
|
-
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15644
|
+
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15645
|
+
includeArchived: external_exports.boolean().optional(),
|
|
15646
|
+
/** Absent means first page; null means this branch is exhausted. Native cursors only. */
|
|
15647
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15648
|
+
}).strict();
|
|
15645
15649
|
var threadCatalogReadResultSchema = external_exports.object({
|
|
15646
15650
|
threads: external_exports.array(jsonObjectSchema),
|
|
15647
15651
|
ownership: external_exports.array(threadOwnershipSchema),
|
|
15648
15652
|
/** Known archived IDs, including visible local external records even when their rows are
|
|
15649
|
-
* excluded. Native archived IDs
|
|
15650
|
-
archivedThreadIds: external_exports.array(hostThreadIdSchema)
|
|
15653
|
+
* excluded. Native archived IDs describe only the returned page, never a complete set. */
|
|
15654
|
+
archivedThreadIds: external_exports.array(hostThreadIdSchema),
|
|
15655
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15651
15656
|
}).strict();
|
|
15652
15657
|
|
|
15653
15658
|
// ../../shared-contracts/dist/voice.js
|
|
@@ -15862,7 +15867,7 @@ var idleReleaseSettingsSchema = external_exports.strictObject({
|
|
|
15862
15867
|
});
|
|
15863
15868
|
var DEFAULT_IDLE_RELEASE_SETTINGS = Object.freeze({
|
|
15864
15869
|
enabled: false,
|
|
15865
|
-
timeoutMinutes:
|
|
15870
|
+
timeoutMinutes: 10
|
|
15866
15871
|
});
|
|
15867
15872
|
|
|
15868
15873
|
// ../../shared-contracts/dist/harness-preferences.js
|
|
@@ -16765,6 +16770,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
16765
16770
|
}).strict();
|
|
16766
16771
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16767
16772
|
|
|
16773
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
16774
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
16775
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
16776
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
16777
|
+
var thread = { ...target, threadId: identity };
|
|
16778
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16779
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16780
|
+
external_exports.strictObject({
|
|
16781
|
+
kind: external_exports.literal("list"),
|
|
16782
|
+
...target,
|
|
16783
|
+
cursor: external_exports.string().nullable(),
|
|
16784
|
+
archived: external_exports.boolean()
|
|
16785
|
+
}),
|
|
16786
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16787
|
+
external_exports.strictObject({
|
|
16788
|
+
kind: external_exports.literal("prompt"),
|
|
16789
|
+
...thread,
|
|
16790
|
+
epoch: identity,
|
|
16791
|
+
text: external_exports.string().min(1).max(8e3),
|
|
16792
|
+
requestId: identity.optional()
|
|
16793
|
+
}),
|
|
16794
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
16795
|
+
external_exports.strictObject({
|
|
16796
|
+
kind: external_exports.literal("rename"),
|
|
16797
|
+
...thread,
|
|
16798
|
+
epoch: identity,
|
|
16799
|
+
name: external_exports.string().min(1).max(512)
|
|
16800
|
+
}),
|
|
16801
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
16802
|
+
external_exports.strictObject({
|
|
16803
|
+
kind: external_exports.literal("respond"),
|
|
16804
|
+
...thread,
|
|
16805
|
+
epoch: identity,
|
|
16806
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
16807
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
16808
|
+
})
|
|
16809
|
+
]);
|
|
16810
|
+
|
|
16768
16811
|
// ../../shared-contracts/dist/remote-connections.js
|
|
16769
16812
|
var hostId = external_exports.string().min(1).max(1024);
|
|
16770
16813
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -16785,7 +16828,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16785
16828
|
identity: external_exports.string().max(4096).nullable()
|
|
16786
16829
|
});
|
|
16787
16830
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16831
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16788
16832
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16833
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16789
16834
|
external_exports.strictObject({
|
|
16790
16835
|
action: external_exports.literal("read-thread"),
|
|
16791
16836
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -17366,8 +17411,8 @@ async function venvPythonFromShim(hermesExecutable, platform = process.platform)
|
|
|
17366
17411
|
try {
|
|
17367
17412
|
const shim = await readFile(hermesExecutable, "utf8");
|
|
17368
17413
|
if (platform === "win32") {
|
|
17369
|
-
const
|
|
17370
|
-
return
|
|
17414
|
+
const target2 = WINDOWS_VENV_HERMES_SHIM_PATTERN.exec(shim)?.[1];
|
|
17415
|
+
return target2 ? path4.win32.join(path4.win32.dirname(target2), "python.exe") : null;
|
|
17371
17416
|
}
|
|
17372
17417
|
return POSIX_VENV_PYTHON_SHIM_PATTERN.exec(shim)?.[1] ?? null;
|
|
17373
17418
|
} catch {
|
|
@@ -18011,11 +18056,11 @@ function hermesCommandsFromCompletion(items, value) {
|
|
|
18011
18056
|
const entry = gatewayRecord(category);
|
|
18012
18057
|
if (!Array.isArray(entry.pairs))
|
|
18013
18058
|
continue;
|
|
18014
|
-
const
|
|
18015
|
-
if (
|
|
18059
|
+
const target2 = entry.name === "Plugin commands" ? plugins : entry.name === "User commands" ? quick : null;
|
|
18060
|
+
if (target2) {
|
|
18016
18061
|
for (const pair of entry.pairs)
|
|
18017
18062
|
if (Array.isArray(pair) && typeof pair[0] === "string")
|
|
18018
|
-
|
|
18063
|
+
target2.add(pair[0]);
|
|
18019
18064
|
}
|
|
18020
18065
|
}
|
|
18021
18066
|
const reviewed = /* @__PURE__ */ new Set(["status", "diff", "egress", "whoami", "insights", "bundles"]);
|
|
@@ -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);
|
|
@@ -1239,8 +1239,8 @@ function defineLazy(object2, key, getter) {
|
|
|
1239
1239
|
function objectClone(obj) {
|
|
1240
1240
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
1241
1241
|
}
|
|
1242
|
-
function assignProp(
|
|
1243
|
-
Object.defineProperty(
|
|
1242
|
+
function assignProp(target2, prop, value) {
|
|
1243
|
+
Object.defineProperty(target2, prop, {
|
|
1244
1244
|
value,
|
|
1245
1245
|
writable: true,
|
|
1246
1246
|
enumerable: true,
|
|
@@ -1423,35 +1423,35 @@ function normalizeParams(_params) {
|
|
|
1423
1423
|
return params;
|
|
1424
1424
|
}
|
|
1425
1425
|
function createTransparentProxy(getter) {
|
|
1426
|
-
let
|
|
1426
|
+
let target2;
|
|
1427
1427
|
return new Proxy({}, {
|
|
1428
1428
|
get(_, prop, receiver) {
|
|
1429
|
-
|
|
1430
|
-
return Reflect.get(
|
|
1429
|
+
target2 ?? (target2 = getter());
|
|
1430
|
+
return Reflect.get(target2, prop, receiver);
|
|
1431
1431
|
},
|
|
1432
1432
|
set(_, prop, value, receiver) {
|
|
1433
|
-
|
|
1434
|
-
return Reflect.set(
|
|
1433
|
+
target2 ?? (target2 = getter());
|
|
1434
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
1435
1435
|
},
|
|
1436
1436
|
has(_, prop) {
|
|
1437
|
-
|
|
1438
|
-
return Reflect.has(
|
|
1437
|
+
target2 ?? (target2 = getter());
|
|
1438
|
+
return Reflect.has(target2, prop);
|
|
1439
1439
|
},
|
|
1440
1440
|
deleteProperty(_, prop) {
|
|
1441
|
-
|
|
1442
|
-
return Reflect.deleteProperty(
|
|
1441
|
+
target2 ?? (target2 = getter());
|
|
1442
|
+
return Reflect.deleteProperty(target2, prop);
|
|
1443
1443
|
},
|
|
1444
1444
|
ownKeys(_) {
|
|
1445
|
-
|
|
1446
|
-
return Reflect.ownKeys(
|
|
1445
|
+
target2 ?? (target2 = getter());
|
|
1446
|
+
return Reflect.ownKeys(target2);
|
|
1447
1447
|
},
|
|
1448
1448
|
getOwnPropertyDescriptor(_, prop) {
|
|
1449
|
-
|
|
1450
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
1449
|
+
target2 ?? (target2 = getter());
|
|
1450
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
1451
1451
|
},
|
|
1452
1452
|
defineProperty(_, prop, descriptor) {
|
|
1453
|
-
|
|
1454
|
-
return Reflect.defineProperty(
|
|
1453
|
+
target2 ?? (target2 = getter());
|
|
1454
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
1455
1455
|
}
|
|
1456
1456
|
});
|
|
1457
1457
|
}
|
|
@@ -11903,15 +11903,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11903
11903
|
|
|
11904
11904
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
11905
11905
|
function initializeContext(params) {
|
|
11906
|
-
let
|
|
11907
|
-
if (
|
|
11908
|
-
|
|
11909
|
-
if (
|
|
11910
|
-
|
|
11906
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
11907
|
+
if (target2 === "draft-4")
|
|
11908
|
+
target2 = "draft-04";
|
|
11909
|
+
if (target2 === "draft-7")
|
|
11910
|
+
target2 = "draft-07";
|
|
11911
11911
|
return {
|
|
11912
11912
|
processors: params.processors ?? {},
|
|
11913
11913
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
11914
|
-
target,
|
|
11914
|
+
target: target2,
|
|
11915
11915
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
11916
11916
|
override: params?.override ?? (() => {
|
|
11917
11917
|
}),
|
|
@@ -12253,8 +12253,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
12253
12253
|
return finalize(ctx, schema);
|
|
12254
12254
|
};
|
|
12255
12255
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
12256
|
-
const { libraryOptions, target } = params ?? {};
|
|
12257
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
12256
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
12257
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
12258
12258
|
process2(schema, ctx);
|
|
12259
12259
|
extractDefs(ctx, schema);
|
|
12260
12260
|
return finalize(ctx, schema);
|
|
@@ -13313,8 +13313,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
13313
13313
|
catch(params) {
|
|
13314
13314
|
return _catch2(this, params);
|
|
13315
13315
|
},
|
|
13316
|
-
pipe(
|
|
13317
|
-
return pipe(this,
|
|
13316
|
+
pipe(target2) {
|
|
13317
|
+
return pipe(this, target2);
|
|
13318
13318
|
},
|
|
13319
13319
|
readonly() {
|
|
13320
13320
|
return readonly(this);
|
|
@@ -15544,15 +15544,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15544
15544
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15545
15545
|
}).strict().superRefine(({ threads }, context) => {
|
|
15546
15546
|
const seen = /* @__PURE__ */ new Set();
|
|
15547
|
-
for (const [index,
|
|
15548
|
-
if (seen.has(
|
|
15547
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15548
|
+
if (seen.has(thread2.threadId)) {
|
|
15549
15549
|
context.addIssue({
|
|
15550
15550
|
code: "custom",
|
|
15551
15551
|
message: "Thread ownership-list results must be unique",
|
|
15552
15552
|
path: ["threads", index, "threadId"]
|
|
15553
15553
|
});
|
|
15554
15554
|
}
|
|
15555
|
-
seen.add(
|
|
15555
|
+
seen.add(thread2.threadId);
|
|
15556
15556
|
}
|
|
15557
15557
|
});
|
|
15558
15558
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -15761,13 +15761,18 @@ var clientChannelResponseSchema = external_exports.object({
|
|
|
15761
15761
|
});
|
|
15762
15762
|
|
|
15763
15763
|
// ../../shared-contracts/dist/thread-catalog.js
|
|
15764
|
-
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15764
|
+
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15765
|
+
includeArchived: external_exports.boolean().optional(),
|
|
15766
|
+
/** Absent means first page; null means this branch is exhausted. Native cursors only. */
|
|
15767
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15768
|
+
}).strict();
|
|
15765
15769
|
var threadCatalogReadResultSchema = external_exports.object({
|
|
15766
15770
|
threads: external_exports.array(jsonObjectSchema),
|
|
15767
15771
|
ownership: external_exports.array(threadOwnershipSchema),
|
|
15768
15772
|
/** Known archived IDs, including visible local external records even when their rows are
|
|
15769
|
-
* excluded. Native archived IDs
|
|
15770
|
-
archivedThreadIds: external_exports.array(hostThreadIdSchema)
|
|
15773
|
+
* excluded. Native archived IDs describe only the returned page, never a complete set. */
|
|
15774
|
+
archivedThreadIds: external_exports.array(hostThreadIdSchema),
|
|
15775
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15771
15776
|
}).strict();
|
|
15772
15777
|
|
|
15773
15778
|
// ../../shared-contracts/dist/voice.js
|
|
@@ -15982,7 +15987,7 @@ var idleReleaseSettingsSchema = external_exports.strictObject({
|
|
|
15982
15987
|
});
|
|
15983
15988
|
var DEFAULT_IDLE_RELEASE_SETTINGS = Object.freeze({
|
|
15984
15989
|
enabled: false,
|
|
15985
|
-
timeoutMinutes:
|
|
15990
|
+
timeoutMinutes: 10
|
|
15986
15991
|
});
|
|
15987
15992
|
|
|
15988
15993
|
// ../../shared-contracts/dist/harness-preferences.js
|
|
@@ -16885,6 +16890,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
16885
16890
|
}).strict();
|
|
16886
16891
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16887
16892
|
|
|
16893
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
16894
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
16895
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
16896
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
16897
|
+
var thread = { ...target, threadId: identity };
|
|
16898
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16899
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16900
|
+
external_exports.strictObject({
|
|
16901
|
+
kind: external_exports.literal("list"),
|
|
16902
|
+
...target,
|
|
16903
|
+
cursor: external_exports.string().nullable(),
|
|
16904
|
+
archived: external_exports.boolean()
|
|
16905
|
+
}),
|
|
16906
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16907
|
+
external_exports.strictObject({
|
|
16908
|
+
kind: external_exports.literal("prompt"),
|
|
16909
|
+
...thread,
|
|
16910
|
+
epoch: identity,
|
|
16911
|
+
text: external_exports.string().min(1).max(8e3),
|
|
16912
|
+
requestId: identity.optional()
|
|
16913
|
+
}),
|
|
16914
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
16915
|
+
external_exports.strictObject({
|
|
16916
|
+
kind: external_exports.literal("rename"),
|
|
16917
|
+
...thread,
|
|
16918
|
+
epoch: identity,
|
|
16919
|
+
name: external_exports.string().min(1).max(512)
|
|
16920
|
+
}),
|
|
16921
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
16922
|
+
external_exports.strictObject({
|
|
16923
|
+
kind: external_exports.literal("respond"),
|
|
16924
|
+
...thread,
|
|
16925
|
+
epoch: identity,
|
|
16926
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
16927
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
16928
|
+
})
|
|
16929
|
+
]);
|
|
16930
|
+
|
|
16888
16931
|
// ../../shared-contracts/dist/remote-connections.js
|
|
16889
16932
|
var hostId = external_exports.string().min(1).max(1024);
|
|
16890
16933
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -16905,7 +16948,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16905
16948
|
identity: external_exports.string().max(4096).nullable()
|
|
16906
16949
|
});
|
|
16907
16950
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16951
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16908
16952
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16953
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16909
16954
|
external_exports.strictObject({
|
|
16910
16955
|
action: external_exports.literal("read-thread"),
|
|
16911
16956
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -20708,11 +20753,11 @@ var AgentApp = class {
|
|
|
20708
20753
|
[runAgentConnectHandlers](connection) {
|
|
20709
20754
|
runConnectHandlers(connection, this.connectHandlers);
|
|
20710
20755
|
}
|
|
20711
|
-
connect(
|
|
20712
|
-
return this.connectConnection(
|
|
20756
|
+
connect(target2, options = {}) {
|
|
20757
|
+
return this.connectConnection(target2, options).connection;
|
|
20713
20758
|
}
|
|
20714
|
-
connectWith(
|
|
20715
|
-
const { rawConnection, connection } = this.connectConnection(
|
|
20759
|
+
connectWith(target2, op) {
|
|
20760
|
+
const { rawConnection, connection } = this.connectConnection(target2);
|
|
20716
20761
|
return rawConnection.runUntil(() => op(connection.client));
|
|
20717
20762
|
}
|
|
20718
20763
|
/**
|
|
@@ -20753,22 +20798,22 @@ var AgentApp = class {
|
|
|
20753
20798
|
registerAppNotification(this.builder, spec, (params, cx, signal) => agentNotificationContext(params, AgentContext.create(cx), signal), handler);
|
|
20754
20799
|
return this;
|
|
20755
20800
|
}
|
|
20756
|
-
connectConnection(
|
|
20757
|
-
if (isStream(
|
|
20758
|
-
const state2 = this.openStreamConnection(
|
|
20801
|
+
connectConnection(target2, options = {}) {
|
|
20802
|
+
if (isStream(target2)) {
|
|
20803
|
+
const state2 = this.openStreamConnection(target2);
|
|
20759
20804
|
if (!options.deferConnectHandlers) {
|
|
20760
20805
|
this[runAgentConnectHandlers](state2.connection);
|
|
20761
20806
|
}
|
|
20762
20807
|
return state2;
|
|
20763
20808
|
}
|
|
20764
20809
|
const [thisStream, peerStream] = memoryStreamPair();
|
|
20765
|
-
const peerRawConnection =
|
|
20810
|
+
const peerRawConnection = target2[appBuilder]().connect(peerStream, stableConnectionOptions);
|
|
20766
20811
|
const peerConnection = clientConnection(peerRawConnection);
|
|
20767
20812
|
const state = this.openStreamConnection(thisStream);
|
|
20768
20813
|
void state.rawConnection.closed.then(() => peerConnection.close());
|
|
20769
20814
|
void peerRawConnection.closed.then(() => state.connection.close());
|
|
20770
20815
|
try {
|
|
20771
|
-
|
|
20816
|
+
target2[runClientConnectHandlers](peerConnection);
|
|
20772
20817
|
this[runAgentConnectHandlers](state.connection);
|
|
20773
20818
|
} catch (error51) {
|
|
20774
20819
|
peerConnection.close(error51);
|
|
@@ -20808,11 +20853,11 @@ var ClientApp = class {
|
|
|
20808
20853
|
[runClientConnectHandlers](connection) {
|
|
20809
20854
|
runConnectHandlers(connection, this.connectHandlers);
|
|
20810
20855
|
}
|
|
20811
|
-
connect(
|
|
20812
|
-
return this.connectConnection(
|
|
20856
|
+
connect(target2) {
|
|
20857
|
+
return this.connectConnection(target2).connection;
|
|
20813
20858
|
}
|
|
20814
|
-
connectWith(
|
|
20815
|
-
const { rawConnection, connection } = this.connectConnection(
|
|
20859
|
+
connectWith(target2, op) {
|
|
20860
|
+
const { rawConnection, connection } = this.connectConnection(target2);
|
|
20816
20861
|
return rawConnection.runUntil(() => op(connection.agent));
|
|
20817
20862
|
}
|
|
20818
20863
|
/**
|
|
@@ -20853,20 +20898,20 @@ var ClientApp = class {
|
|
|
20853
20898
|
registerAppNotification(this.builder, spec, (params, cx, signal) => clientNotificationContext(params, ClientContext.create(cx), signal), handler);
|
|
20854
20899
|
return this;
|
|
20855
20900
|
}
|
|
20856
|
-
connectConnection(
|
|
20857
|
-
if (isStream(
|
|
20858
|
-
const state2 = this.openStreamConnection(
|
|
20901
|
+
connectConnection(target2) {
|
|
20902
|
+
if (isStream(target2)) {
|
|
20903
|
+
const state2 = this.openStreamConnection(target2);
|
|
20859
20904
|
this[runClientConnectHandlers](state2.connection);
|
|
20860
20905
|
return state2;
|
|
20861
20906
|
}
|
|
20862
20907
|
const [thisStream, peerStream] = memoryStreamPair();
|
|
20863
|
-
const peerRawConnection =
|
|
20908
|
+
const peerRawConnection = target2[appBuilder]().connect(peerStream, stableConnectionOptions);
|
|
20864
20909
|
const peerConnection = agentConnection(peerRawConnection);
|
|
20865
20910
|
const state = this.openStreamConnection(thisStream);
|
|
20866
20911
|
void state.rawConnection.closed.then(() => peerConnection.close());
|
|
20867
20912
|
void peerRawConnection.closed.then(() => state.connection.close());
|
|
20868
20913
|
try {
|
|
20869
|
-
|
|
20914
|
+
target2[runAgentConnectHandlers](peerConnection);
|
|
20870
20915
|
this[runClientConnectHandlers](state.connection);
|
|
20871
20916
|
} catch (error51) {
|
|
20872
20917
|
peerConnection.close(error51);
|