@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
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({
|
|
@@ -16238,13 +16238,18 @@ var clientChannelResponseSchema = external_exports.object({
|
|
|
16238
16238
|
});
|
|
16239
16239
|
|
|
16240
16240
|
// packages/shared-contracts/dist/thread-catalog.js
|
|
16241
|
-
var threadCatalogReadParamsSchema = external_exports.object({
|
|
16241
|
+
var threadCatalogReadParamsSchema = external_exports.object({
|
|
16242
|
+
includeArchived: external_exports.boolean().optional(),
|
|
16243
|
+
/** Absent means first page; null means this branch is exhausted. Native cursors only. */
|
|
16244
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
16245
|
+
}).strict();
|
|
16242
16246
|
var threadCatalogReadResultSchema = external_exports.object({
|
|
16243
16247
|
threads: external_exports.array(jsonObjectSchema),
|
|
16244
16248
|
ownership: external_exports.array(threadOwnershipSchema),
|
|
16245
16249
|
/** Known archived IDs, including visible local external records even when their rows are
|
|
16246
|
-
* excluded. Native archived IDs
|
|
16247
|
-
archivedThreadIds: external_exports.array(hostThreadIdSchema)
|
|
16250
|
+
* excluded. Native archived IDs describe only the returned page, never a complete set. */
|
|
16251
|
+
archivedThreadIds: external_exports.array(hostThreadIdSchema),
|
|
16252
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
16248
16253
|
}).strict();
|
|
16249
16254
|
|
|
16250
16255
|
// packages/shared-contracts/dist/voice.js
|
|
@@ -16459,7 +16464,7 @@ var idleReleaseSettingsSchema = external_exports.strictObject({
|
|
|
16459
16464
|
});
|
|
16460
16465
|
var DEFAULT_IDLE_RELEASE_SETTINGS = Object.freeze({
|
|
16461
16466
|
enabled: false,
|
|
16462
|
-
timeoutMinutes:
|
|
16467
|
+
timeoutMinutes: 10
|
|
16463
16468
|
});
|
|
16464
16469
|
|
|
16465
16470
|
// packages/shared-contracts/dist/harness-preferences.js
|
|
@@ -17370,6 +17375,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
17370
17375
|
}).strict();
|
|
17371
17376
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
17372
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
|
+
|
|
17373
17416
|
// packages/shared-contracts/dist/remote-connections.js
|
|
17374
17417
|
var hostId = external_exports.string().min(1).max(1024);
|
|
17375
17418
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -17390,7 +17433,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
17390
17433
|
identity: external_exports.string().max(4096).nullable()
|
|
17391
17434
|
});
|
|
17392
17435
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
17436
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
17393
17437
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
17438
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
17394
17439
|
external_exports.strictObject({
|
|
17395
17440
|
action: external_exports.literal("read-thread"),
|
|
17396
17441
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -18416,21 +18461,21 @@ function createConsoleUpdates(options) {
|
|
|
18416
18461
|
return false;
|
|
18417
18462
|
}
|
|
18418
18463
|
}
|
|
18419
|
-
async function prepare(metadata,
|
|
18420
|
-
const resourcesRoot = path15.dirname(
|
|
18464
|
+
async function prepare(metadata, target2, release, onPrepared) {
|
|
18465
|
+
const resourcesRoot = path15.dirname(target2.appDirectory);
|
|
18421
18466
|
const common = {
|
|
18422
18467
|
version: release.version,
|
|
18423
18468
|
launcherPid: options.processId ?? process.pid,
|
|
18424
18469
|
launcherExecutable: options.processExecutable ?? process.execPath,
|
|
18425
|
-
runtimeDescriptorPath:
|
|
18470
|
+
runtimeDescriptorPath: target2.runtimeDescriptorPath,
|
|
18426
18471
|
updaterExecutable: path15.join(
|
|
18427
18472
|
resourcesRoot,
|
|
18428
18473
|
"libexec",
|
|
18429
18474
|
platform === "win32" ? "codexhost-updater.exe" : "codexhost-updater"
|
|
18430
18475
|
),
|
|
18431
18476
|
stateDirectory: stateDirectory(),
|
|
18432
|
-
dataDirectory:
|
|
18433
|
-
restartTarget:
|
|
18477
|
+
dataDirectory: target2.dataDirectory ?? dataDirectory(environment),
|
|
18478
|
+
restartTarget: target2.restartTarget ?? "desktop",
|
|
18434
18479
|
onPrepared
|
|
18435
18480
|
};
|
|
18436
18481
|
const kind = installationKind(metadata);
|
|
@@ -18464,9 +18509,9 @@ function createConsoleUpdates(options) {
|
|
|
18464
18509
|
return manager.prepareMacOsDmg({ ...common, artifact, appPath });
|
|
18465
18510
|
}
|
|
18466
18511
|
return Object.freeze({
|
|
18467
|
-
async check(
|
|
18468
|
-
const metadata =
|
|
18469
|
-
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(
|
|
18470
18515
|
() => null
|
|
18471
18516
|
);
|
|
18472
18517
|
const empty = {
|
|
@@ -18506,18 +18551,18 @@ function createConsoleUpdates(options) {
|
|
|
18506
18551
|
return { ...empty, status, error: boundedError(error51) };
|
|
18507
18552
|
}
|
|
18508
18553
|
},
|
|
18509
|
-
async start(
|
|
18510
|
-
if (
|
|
18554
|
+
async start(target2) {
|
|
18555
|
+
if (target2.codexhostRunning) {
|
|
18511
18556
|
throw new ConsoleUpdateError(
|
|
18512
18557
|
"codex-running",
|
|
18513
18558
|
"codexhost is running; update from Codex settings or quit Codex Desktop first"
|
|
18514
18559
|
);
|
|
18515
18560
|
}
|
|
18516
|
-
const metadata =
|
|
18561
|
+
const metadata = target2.distribution;
|
|
18517
18562
|
if (!metadata) {
|
|
18518
18563
|
throw new ConsoleUpdateError("unsupported", "A source checkout cannot update itself");
|
|
18519
18564
|
}
|
|
18520
|
-
if (!
|
|
18565
|
+
if (!target2.runtimeDescriptorPath || !path15.isAbsolute(target2.runtimeDescriptorPath)) {
|
|
18521
18566
|
throw new ConsoleUpdateError("unsupported", "The Launcher runtime path is unavailable");
|
|
18522
18567
|
}
|
|
18523
18568
|
if (handedOff) {
|
|
@@ -18549,7 +18594,7 @@ function createConsoleUpdates(options) {
|
|
|
18549
18594
|
});
|
|
18550
18595
|
const run2 = async () => {
|
|
18551
18596
|
try {
|
|
18552
|
-
const prepared = await prepare(metadata,
|
|
18597
|
+
const prepared = await prepare(metadata, target2, release, async (info) => {
|
|
18553
18598
|
await lock.setStatusPath(info.statusPath);
|
|
18554
18599
|
currentStatusPath = info.statusPath;
|
|
18555
18600
|
resolvePrepared(info.statusPath);
|
|
@@ -19233,9 +19278,9 @@ async function openConsole(options) {
|
|
|
19233
19278
|
}
|
|
19234
19279
|
|
|
19235
19280
|
// packages/console-server/src/update-cli.ts
|
|
19236
|
-
async function runUpdateCommand(
|
|
19281
|
+
async function runUpdateCommand(target2, updates, write = console.log) {
|
|
19237
19282
|
write("Checking for codexhost updates...");
|
|
19238
|
-
const checked = await updates.check(
|
|
19283
|
+
const checked = await updates.check(target2);
|
|
19239
19284
|
if (checked.error) throw new Error(checked.error);
|
|
19240
19285
|
if (!checked.updateAvailable) {
|
|
19241
19286
|
write(`codexhost ${checked.currentVersion} is up to date.`);
|
|
@@ -19243,7 +19288,7 @@ async function runUpdateCommand(target, updates, write = console.log) {
|
|
|
19243
19288
|
}
|
|
19244
19289
|
if (!checked.installationAvailable) throw new Error("No supported update for this installation");
|
|
19245
19290
|
write(`Updating codexhost ${checked.currentVersion} → ${checked.latestVersion}...`);
|
|
19246
|
-
const { status } = await updates.start(
|
|
19291
|
+
const { status } = await updates.start(target2);
|
|
19247
19292
|
if (status.phase === "failed") throw new Error(status.error ?? "Update failed");
|
|
19248
19293
|
write(
|
|
19249
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.`
|