@codexhost/cli-linux-arm64 0.18.0-beta.4 → 0.18.0

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.
Files changed (48) hide show
  1. package/README.md +1 -1
  2. package/app/codexhost-distribution.json +1 -1
  3. package/app/console-server.mjs +98 -55
  4. package/app/console-web.js +276 -188
  5. package/app/desktop-controller.mjs +283 -113
  6. package/app/host-runtime.mjs +2129 -1529
  7. package/app/plugins/antigravity/plugin.mjs +787 -303
  8. package/app/plugins/claude-code/plugin.mjs +85 -45
  9. package/app/plugins/codebuddy/plugin.mjs +99 -59
  10. package/app/plugins/codex-usage/plugin.mjs +85 -45
  11. package/app/plugins/copilot/plugin.mjs +90 -50
  12. package/app/plugins/cursor-cli/plugin.mjs +113 -73
  13. package/app/plugins/deepseek-harness/plugin.mjs +116 -76
  14. package/app/plugins/devin/plugin.mjs +90 -50
  15. package/app/plugins/grok/plugin.mjs +96 -56
  16. package/app/plugins/hermes/plugin.mjs +77 -37
  17. package/app/plugins/kimi-code/plugin.mjs +94 -54
  18. package/app/plugins/kiro-cli/plugin.mjs +90 -50
  19. package/app/plugins/omp/plugin.mjs +81 -41
  20. package/app/plugins/opencode/plugin.mjs +78 -38
  21. package/app/plugins/pi/plugin.mjs +94 -54
  22. package/app/plugins/qoder/plugin.mjs +106 -66
  23. package/app/plugins/qoder-cn/plugin.mjs +106 -66
  24. package/app/plugins/qwen-code/plugin.mjs +101 -61
  25. package/app/plugins/workbuddy/plugin.mjs +99 -59
  26. package/app/plugins/zcode/plugin.mjs +82 -42
  27. package/app/renderer-extension.js +435 -361
  28. package/app/web/assets/{index-D1dOzBMI.js → index-C0aXz2jD.js} +63 -63
  29. package/app/web/codex-agent.png +0 -0
  30. package/app/web/codexhost-settings.js +229 -175
  31. package/app/web/index.html +1 -1
  32. package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
  33. package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +61 -61
  34. package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +8 -8
  35. package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +2 -2
  36. package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +12 -12
  37. package/app/web/plugins/deepseek-ai__dsh-client-ui-permission-presets/client.js +1 -1
  38. package/app/web/plugins/deepseek-ai__dsh-client-ui-settings/client.js +1 -1
  39. package/app/web/plugins/deepseek-ai__dsh-client-ui-settings-general/client.js +3 -3
  40. package/app/web/plugins/deepseek-ai__dsh-client-ui-theme/client.js +1 -1
  41. package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +18 -18
  42. package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +8 -8
  43. package/app/web/sw.js +41 -6
  44. package/app/web-modules/server.mjs +2079 -1201
  45. package/bin/codexhost +0 -0
  46. package/libexec/codexhost-shim +0 -0
  47. package/libexec/codexhost-updater +0 -0
  48. 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.4
10
+ npm install -g @codexhost/cli@0.18.0
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.4","distribution":"npm","target":"linux-arm64"}
1
+ {"schemaVersion":1,"version":"0.18.0","distribution":"npm","target":"linux-arm64"}
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
2
+ var __export = (target2, all) => {
3
3
  for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
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, target) {
244
+ function expectedInstallerAssetName(version2, target2) {
245
245
  requireSemanticVersion(version2);
246
- const extension = target.startsWith("macos-") ? "dmg" : "exe";
247
- return `codexhost-${version2}-${target}.${extension}`;
246
+ const extension = target2.startsWith("macos-") ? "dmg" : "exe";
247
+ return `codexhost-${version2}-${target2}.${extension}`;
248
248
  }
249
- function selectInstallerReleaseArtifact(release, target) {
250
- const name = expectedInstallerAssetName(release.version, target);
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(target, prop, value) {
1720
- Object.defineProperty(target, prop, {
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 target;
1903
+ let target2;
1904
1904
  return new Proxy({}, {
1905
1905
  get(_, prop, receiver) {
1906
- target ?? (target = getter());
1907
- return Reflect.get(target, prop, receiver);
1906
+ target2 ?? (target2 = getter());
1907
+ return Reflect.get(target2, prop, receiver);
1908
1908
  },
1909
1909
  set(_, prop, value, receiver) {
1910
- target ?? (target = getter());
1911
- return Reflect.set(target, prop, value, receiver);
1910
+ target2 ?? (target2 = getter());
1911
+ return Reflect.set(target2, prop, value, receiver);
1912
1912
  },
1913
1913
  has(_, prop) {
1914
- target ?? (target = getter());
1915
- return Reflect.has(target, prop);
1914
+ target2 ?? (target2 = getter());
1915
+ return Reflect.has(target2, prop);
1916
1916
  },
1917
1917
  deleteProperty(_, prop) {
1918
- target ?? (target = getter());
1919
- return Reflect.deleteProperty(target, prop);
1918
+ target2 ?? (target2 = getter());
1919
+ return Reflect.deleteProperty(target2, prop);
1920
1920
  },
1921
1921
  ownKeys(_) {
1922
- target ?? (target = getter());
1923
- return Reflect.ownKeys(target);
1922
+ target2 ?? (target2 = getter());
1923
+ return Reflect.ownKeys(target2);
1924
1924
  },
1925
1925
  getOwnPropertyDescriptor(_, prop) {
1926
- target ?? (target = getter());
1927
- return Reflect.getOwnPropertyDescriptor(target, prop);
1926
+ target2 ?? (target2 = getter());
1927
+ return Reflect.getOwnPropertyDescriptor(target2, prop);
1928
1928
  },
1929
1929
  defineProperty(_, prop, descriptor) {
1930
- target ?? (target = getter());
1931
- return Reflect.defineProperty(target, prop, descriptor);
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 target = params?.target ?? "draft-2020-12";
12384
- if (target === "draft-4")
12385
- target = "draft-04";
12386
- if (target === "draft-7")
12387
- target = "draft-07";
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(target) {
13794
- return pipe(this, target);
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, thread] of threads.entries()) {
16025
- if (seen.has(thread.threadId)) {
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(thread.threadId);
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, target, release, onPrepared) {
18425
- const resourcesRoot = path15.dirname(target.appDirectory);
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: target.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: target.dataDirectory ?? dataDirectory(environment),
18438
- restartTarget: target.restartTarget ?? "desktop",
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(target, signal) {
18473
- const metadata = target.distribution;
18474
- const runtime = metadata ? null : await readRuntimeMetadata(path15.join(target.appDirectory, "main.js"), environment).catch(
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(target) {
18515
- if (target.codexhostRunning) {
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 = target.distribution;
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 (!target.runtimeDescriptorPath || !path15.isAbsolute(target.runtimeDescriptorPath)) {
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, target, release, async (info) => {
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);
@@ -18594,7 +18634,7 @@ function createConsoleUpdates(options) {
18594
18634
  import { spawn as spawn2 } from "node:child_process";
18595
18635
  import { existsSync as existsSync2 } from "node:fs";
18596
18636
  import path16 from "node:path";
18597
- function serviceCommand(installation, action) {
18637
+ function serviceCommand(installation, action, options = {}) {
18598
18638
  if (!installation.launcherExecutable) throw new Error("codexhost Launcher was not found");
18599
18639
  const resource = (packaged, source) => {
18600
18640
  const bundled = path16.join(installation.appDirectory, packaged);
@@ -18604,6 +18644,7 @@ function serviceCommand(installation, action) {
18604
18644
  command: installation.launcherExecutable,
18605
18645
  args: [
18606
18646
  action,
18647
+ ...options.connectDevices ? ["--connect-devices"] : [],
18607
18648
  "--node",
18608
18649
  process.execPath,
18609
18650
  "--host-runtime",
@@ -18962,7 +19003,9 @@ function startConsoleServer(options) {
18962
19003
  return;
18963
19004
  }
18964
19005
  if (route === "POST /api/web/open") {
18965
- const command2 = serviceCommand(options.installation, "web");
19006
+ const command2 = serviceCommand(options.installation, "web", {
19007
+ connectDevices: body.connectDevices === true
19008
+ });
18966
19009
  await service(command2.command, command2.args, serviceEnvironment());
18967
19010
  sendJson(response, 200, { opened: true });
18968
19011
  return;
@@ -19238,9 +19281,9 @@ async function openConsole(options) {
19238
19281
  }
19239
19282
 
19240
19283
  // packages/console-server/src/update-cli.ts
19241
- async function runUpdateCommand(target, updates, write = console.log) {
19284
+ async function runUpdateCommand(target2, updates, write = console.log) {
19242
19285
  write("Checking for codexhost updates...");
19243
- const checked = await updates.check(target);
19286
+ const checked = await updates.check(target2);
19244
19287
  if (checked.error) throw new Error(checked.error);
19245
19288
  if (!checked.updateAvailable) {
19246
19289
  write(`codexhost ${checked.currentVersion} is up to date.`);
@@ -19248,7 +19291,7 @@ async function runUpdateCommand(target, updates, write = console.log) {
19248
19291
  }
19249
19292
  if (!checked.installationAvailable) throw new Error("No supported update for this installation");
19250
19293
  write(`Updating codexhost ${checked.currentVersion} → ${checked.latestVersion}...`);
19251
- const { status } = await updates.start(target);
19294
+ const { status } = await updates.start(target2);
19252
19295
  if (status.phase === "failed") throw new Error(status.error ?? "Update failed");
19253
19296
  write(
19254
19297
  `Update ${status.version}: ${status.phase}. The update request was accepted; installation is not complete yet. The background updater will install it and restart codexhost.`