@codexhost/cli-darwin-x64 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
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @codexhost/cli@0.18.0-beta.
|
|
10
|
+
npm install -g @codexhost/cli@0.18.0-beta.5
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Do not install this package directly. npm selects it through the optional dependencies of `@codexhost/cli`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"version":"0.18.0-beta.
|
|
1
|
+
{"schemaVersion":1,"version":"0.18.0-beta.5","distribution":"npm","target":"macos-x64"}
|
package/app/console-server.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (
|
|
2
|
+
var __export = (target2, all) => {
|
|
3
3
|
for (var name in all)
|
|
4
|
-
__defProp(
|
|
4
|
+
__defProp(target2, name, { get: all[name], enumerable: true });
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// packages/console-server/src/main.ts
|
|
@@ -241,13 +241,13 @@ function compareSemanticVersions(leftValue, rightValue) {
|
|
|
241
241
|
}
|
|
242
242
|
return 0;
|
|
243
243
|
}
|
|
244
|
-
function expectedInstallerAssetName(version2,
|
|
244
|
+
function expectedInstallerAssetName(version2, target2) {
|
|
245
245
|
requireSemanticVersion(version2);
|
|
246
|
-
const extension =
|
|
247
|
-
return `codexhost-${version2}-${
|
|
246
|
+
const extension = target2.startsWith("macos-") ? "dmg" : "exe";
|
|
247
|
+
return `codexhost-${version2}-${target2}.${extension}`;
|
|
248
248
|
}
|
|
249
|
-
function selectInstallerReleaseArtifact(release,
|
|
250
|
-
const name = expectedInstallerAssetName(release.version,
|
|
249
|
+
function selectInstallerReleaseArtifact(release, target2) {
|
|
250
|
+
const name = expectedInstallerAssetName(release.version, target2);
|
|
251
251
|
const matches = release.assets.filter((asset2) => asset2.name === name);
|
|
252
252
|
if (matches.length !== 1)
|
|
253
253
|
throw new Error(`GitHub Release must contain exactly one ${name}`);
|
|
@@ -1716,8 +1716,8 @@ function defineLazy(object3, key, getter) {
|
|
|
1716
1716
|
function objectClone(obj) {
|
|
1717
1717
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
1718
1718
|
}
|
|
1719
|
-
function assignProp(
|
|
1720
|
-
Object.defineProperty(
|
|
1719
|
+
function assignProp(target2, prop, value) {
|
|
1720
|
+
Object.defineProperty(target2, prop, {
|
|
1721
1721
|
value,
|
|
1722
1722
|
writable: true,
|
|
1723
1723
|
enumerable: true,
|
|
@@ -1900,35 +1900,35 @@ function normalizeParams(_params) {
|
|
|
1900
1900
|
return params;
|
|
1901
1901
|
}
|
|
1902
1902
|
function createTransparentProxy(getter) {
|
|
1903
|
-
let
|
|
1903
|
+
let target2;
|
|
1904
1904
|
return new Proxy({}, {
|
|
1905
1905
|
get(_, prop, receiver) {
|
|
1906
|
-
|
|
1907
|
-
return Reflect.get(
|
|
1906
|
+
target2 ?? (target2 = getter());
|
|
1907
|
+
return Reflect.get(target2, prop, receiver);
|
|
1908
1908
|
},
|
|
1909
1909
|
set(_, prop, value, receiver) {
|
|
1910
|
-
|
|
1911
|
-
return Reflect.set(
|
|
1910
|
+
target2 ?? (target2 = getter());
|
|
1911
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
1912
1912
|
},
|
|
1913
1913
|
has(_, prop) {
|
|
1914
|
-
|
|
1915
|
-
return Reflect.has(
|
|
1914
|
+
target2 ?? (target2 = getter());
|
|
1915
|
+
return Reflect.has(target2, prop);
|
|
1916
1916
|
},
|
|
1917
1917
|
deleteProperty(_, prop) {
|
|
1918
|
-
|
|
1919
|
-
return Reflect.deleteProperty(
|
|
1918
|
+
target2 ?? (target2 = getter());
|
|
1919
|
+
return Reflect.deleteProperty(target2, prop);
|
|
1920
1920
|
},
|
|
1921
1921
|
ownKeys(_) {
|
|
1922
|
-
|
|
1923
|
-
return Reflect.ownKeys(
|
|
1922
|
+
target2 ?? (target2 = getter());
|
|
1923
|
+
return Reflect.ownKeys(target2);
|
|
1924
1924
|
},
|
|
1925
1925
|
getOwnPropertyDescriptor(_, prop) {
|
|
1926
|
-
|
|
1927
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
1926
|
+
target2 ?? (target2 = getter());
|
|
1927
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
1928
1928
|
},
|
|
1929
1929
|
defineProperty(_, prop, descriptor) {
|
|
1930
|
-
|
|
1931
|
-
return Reflect.defineProperty(
|
|
1930
|
+
target2 ?? (target2 = getter());
|
|
1931
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
1932
1932
|
}
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
@@ -12380,15 +12380,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
12380
12380
|
|
|
12381
12381
|
// node_modules/zod/v4/core/to-json-schema.js
|
|
12382
12382
|
function initializeContext(params) {
|
|
12383
|
-
let
|
|
12384
|
-
if (
|
|
12385
|
-
|
|
12386
|
-
if (
|
|
12387
|
-
|
|
12383
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
12384
|
+
if (target2 === "draft-4")
|
|
12385
|
+
target2 = "draft-04";
|
|
12386
|
+
if (target2 === "draft-7")
|
|
12387
|
+
target2 = "draft-07";
|
|
12388
12388
|
return {
|
|
12389
12389
|
processors: params.processors ?? {},
|
|
12390
12390
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
12391
|
-
target,
|
|
12391
|
+
target: target2,
|
|
12392
12392
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
12393
12393
|
override: params?.override ?? (() => {
|
|
12394
12394
|
}),
|
|
@@ -12730,8 +12730,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
12730
12730
|
return finalize(ctx, schema);
|
|
12731
12731
|
};
|
|
12732
12732
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
12733
|
-
const { libraryOptions, target } = params ?? {};
|
|
12734
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
12733
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
12734
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
12735
12735
|
process2(schema, ctx);
|
|
12736
12736
|
extractDefs(ctx, schema);
|
|
12737
12737
|
return finalize(ctx, schema);
|
|
@@ -13790,8 +13790,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
13790
13790
|
catch(params) {
|
|
13791
13791
|
return _catch2(this, params);
|
|
13792
13792
|
},
|
|
13793
|
-
pipe(
|
|
13794
|
-
return pipe(this,
|
|
13793
|
+
pipe(target2) {
|
|
13794
|
+
return pipe(this, target2);
|
|
13795
13795
|
},
|
|
13796
13796
|
readonly() {
|
|
13797
13797
|
return readonly(this);
|
|
@@ -16021,15 +16021,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
16021
16021
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
16022
16022
|
}).strict().superRefine(({ threads }, context) => {
|
|
16023
16023
|
const seen = /* @__PURE__ */ new Set();
|
|
16024
|
-
for (const [index,
|
|
16025
|
-
if (seen.has(
|
|
16024
|
+
for (const [index, thread2] of threads.entries()) {
|
|
16025
|
+
if (seen.has(thread2.threadId)) {
|
|
16026
16026
|
context.addIssue({
|
|
16027
16027
|
code: "custom",
|
|
16028
16028
|
message: "Thread ownership-list results must be unique",
|
|
16029
16029
|
path: ["threads", index, "threadId"]
|
|
16030
16030
|
});
|
|
16031
16031
|
}
|
|
16032
|
-
seen.add(
|
|
16032
|
+
seen.add(thread2.threadId);
|
|
16033
16033
|
}
|
|
16034
16034
|
});
|
|
16035
16035
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -17375,6 +17375,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
17375
17375
|
}).strict();
|
|
17376
17376
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
17377
17377
|
|
|
17378
|
+
// packages/shared-contracts/dist/remote-sessions.js
|
|
17379
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
17380
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
17381
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
17382
|
+
var thread = { ...target, threadId: identity };
|
|
17383
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
17384
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
17385
|
+
external_exports.strictObject({
|
|
17386
|
+
kind: external_exports.literal("list"),
|
|
17387
|
+
...target,
|
|
17388
|
+
cursor: external_exports.string().nullable(),
|
|
17389
|
+
archived: external_exports.boolean()
|
|
17390
|
+
}),
|
|
17391
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
17392
|
+
external_exports.strictObject({
|
|
17393
|
+
kind: external_exports.literal("prompt"),
|
|
17394
|
+
...thread,
|
|
17395
|
+
epoch: identity,
|
|
17396
|
+
text: external_exports.string().min(1).max(8e3),
|
|
17397
|
+
requestId: identity.optional()
|
|
17398
|
+
}),
|
|
17399
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
17400
|
+
external_exports.strictObject({
|
|
17401
|
+
kind: external_exports.literal("rename"),
|
|
17402
|
+
...thread,
|
|
17403
|
+
epoch: identity,
|
|
17404
|
+
name: external_exports.string().min(1).max(512)
|
|
17405
|
+
}),
|
|
17406
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
17407
|
+
external_exports.strictObject({
|
|
17408
|
+
kind: external_exports.literal("respond"),
|
|
17409
|
+
...thread,
|
|
17410
|
+
epoch: identity,
|
|
17411
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
17412
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
17413
|
+
})
|
|
17414
|
+
]);
|
|
17415
|
+
|
|
17378
17416
|
// packages/shared-contracts/dist/remote-connections.js
|
|
17379
17417
|
var hostId = external_exports.string().min(1).max(1024);
|
|
17380
17418
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -17395,7 +17433,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
17395
17433
|
identity: external_exports.string().max(4096).nullable()
|
|
17396
17434
|
});
|
|
17397
17435
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
17436
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
17398
17437
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
17438
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
17399
17439
|
external_exports.strictObject({
|
|
17400
17440
|
action: external_exports.literal("read-thread"),
|
|
17401
17441
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -18421,21 +18461,21 @@ function createConsoleUpdates(options) {
|
|
|
18421
18461
|
return false;
|
|
18422
18462
|
}
|
|
18423
18463
|
}
|
|
18424
|
-
async function prepare(metadata,
|
|
18425
|
-
const resourcesRoot = path15.dirname(
|
|
18464
|
+
async function prepare(metadata, target2, release, onPrepared) {
|
|
18465
|
+
const resourcesRoot = path15.dirname(target2.appDirectory);
|
|
18426
18466
|
const common = {
|
|
18427
18467
|
version: release.version,
|
|
18428
18468
|
launcherPid: options.processId ?? process.pid,
|
|
18429
18469
|
launcherExecutable: options.processExecutable ?? process.execPath,
|
|
18430
|
-
runtimeDescriptorPath:
|
|
18470
|
+
runtimeDescriptorPath: target2.runtimeDescriptorPath,
|
|
18431
18471
|
updaterExecutable: path15.join(
|
|
18432
18472
|
resourcesRoot,
|
|
18433
18473
|
"libexec",
|
|
18434
18474
|
platform === "win32" ? "codexhost-updater.exe" : "codexhost-updater"
|
|
18435
18475
|
),
|
|
18436
18476
|
stateDirectory: stateDirectory(),
|
|
18437
|
-
dataDirectory:
|
|
18438
|
-
restartTarget:
|
|
18477
|
+
dataDirectory: target2.dataDirectory ?? dataDirectory(environment),
|
|
18478
|
+
restartTarget: target2.restartTarget ?? "desktop",
|
|
18439
18479
|
onPrepared
|
|
18440
18480
|
};
|
|
18441
18481
|
const kind = installationKind(metadata);
|
|
@@ -18469,9 +18509,9 @@ function createConsoleUpdates(options) {
|
|
|
18469
18509
|
return manager.prepareMacOsDmg({ ...common, artifact, appPath });
|
|
18470
18510
|
}
|
|
18471
18511
|
return Object.freeze({
|
|
18472
|
-
async check(
|
|
18473
|
-
const metadata =
|
|
18474
|
-
const runtime = metadata ? null : await readRuntimeMetadata(path15.join(
|
|
18512
|
+
async check(target2, signal) {
|
|
18513
|
+
const metadata = target2.distribution;
|
|
18514
|
+
const runtime = metadata ? null : await readRuntimeMetadata(path15.join(target2.appDirectory, "main.js"), environment).catch(
|
|
18475
18515
|
() => null
|
|
18476
18516
|
);
|
|
18477
18517
|
const empty = {
|
|
@@ -18511,18 +18551,18 @@ function createConsoleUpdates(options) {
|
|
|
18511
18551
|
return { ...empty, status, error: boundedError(error51) };
|
|
18512
18552
|
}
|
|
18513
18553
|
},
|
|
18514
|
-
async start(
|
|
18515
|
-
if (
|
|
18554
|
+
async start(target2) {
|
|
18555
|
+
if (target2.codexhostRunning) {
|
|
18516
18556
|
throw new ConsoleUpdateError(
|
|
18517
18557
|
"codex-running",
|
|
18518
18558
|
"codexhost is running; update from Codex settings or quit Codex Desktop first"
|
|
18519
18559
|
);
|
|
18520
18560
|
}
|
|
18521
|
-
const metadata =
|
|
18561
|
+
const metadata = target2.distribution;
|
|
18522
18562
|
if (!metadata) {
|
|
18523
18563
|
throw new ConsoleUpdateError("unsupported", "A source checkout cannot update itself");
|
|
18524
18564
|
}
|
|
18525
|
-
if (!
|
|
18565
|
+
if (!target2.runtimeDescriptorPath || !path15.isAbsolute(target2.runtimeDescriptorPath)) {
|
|
18526
18566
|
throw new ConsoleUpdateError("unsupported", "The Launcher runtime path is unavailable");
|
|
18527
18567
|
}
|
|
18528
18568
|
if (handedOff) {
|
|
@@ -18554,7 +18594,7 @@ function createConsoleUpdates(options) {
|
|
|
18554
18594
|
});
|
|
18555
18595
|
const run2 = async () => {
|
|
18556
18596
|
try {
|
|
18557
|
-
const prepared = await prepare(metadata,
|
|
18597
|
+
const prepared = await prepare(metadata, target2, release, async (info) => {
|
|
18558
18598
|
await lock.setStatusPath(info.statusPath);
|
|
18559
18599
|
currentStatusPath = info.statusPath;
|
|
18560
18600
|
resolvePrepared(info.statusPath);
|
|
@@ -19238,9 +19278,9 @@ async function openConsole(options) {
|
|
|
19238
19278
|
}
|
|
19239
19279
|
|
|
19240
19280
|
// packages/console-server/src/update-cli.ts
|
|
19241
|
-
async function runUpdateCommand(
|
|
19281
|
+
async function runUpdateCommand(target2, updates, write = console.log) {
|
|
19242
19282
|
write("Checking for codexhost updates...");
|
|
19243
|
-
const checked = await updates.check(
|
|
19283
|
+
const checked = await updates.check(target2);
|
|
19244
19284
|
if (checked.error) throw new Error(checked.error);
|
|
19245
19285
|
if (!checked.updateAvailable) {
|
|
19246
19286
|
write(`codexhost ${checked.currentVersion} is up to date.`);
|
|
@@ -19248,7 +19288,7 @@ async function runUpdateCommand(target, updates, write = console.log) {
|
|
|
19248
19288
|
}
|
|
19249
19289
|
if (!checked.installationAvailable) throw new Error("No supported update for this installation");
|
|
19250
19290
|
write(`Updating codexhost ${checked.currentVersion} → ${checked.latestVersion}...`);
|
|
19251
|
-
const { status } = await updates.start(
|
|
19291
|
+
const { status } = await updates.start(target2);
|
|
19252
19292
|
if (status.phase === "failed") throw new Error(status.error ?? "Update failed");
|
|
19253
19293
|
write(
|
|
19254
19294
|
`Update ${status.version}: ${status.phase}. The update request was accepted; installation is not complete yet. The background updater will install it and restart codexhost.`
|