@codexhost/cli-linux-arm64 0.18.0-beta.5 → 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.
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.5
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.5","distribution":"npm","target":"linux-arm64"}
1
+ {"schemaVersion":1,"version":"0.18.0","distribution":"npm","target":"linux-arm64"}
@@ -18634,7 +18634,7 @@ function createConsoleUpdates(options) {
18634
18634
  import { spawn as spawn2 } from "node:child_process";
18635
18635
  import { existsSync as existsSync2 } from "node:fs";
18636
18636
  import path16 from "node:path";
18637
- function serviceCommand(installation, action) {
18637
+ function serviceCommand(installation, action, options = {}) {
18638
18638
  if (!installation.launcherExecutable) throw new Error("codexhost Launcher was not found");
18639
18639
  const resource = (packaged, source) => {
18640
18640
  const bundled = path16.join(installation.appDirectory, packaged);
@@ -18644,6 +18644,7 @@ function serviceCommand(installation, action) {
18644
18644
  command: installation.launcherExecutable,
18645
18645
  args: [
18646
18646
  action,
18647
+ ...options.connectDevices ? ["--connect-devices"] : [],
18647
18648
  "--node",
18648
18649
  process.execPath,
18649
18650
  "--host-runtime",
@@ -19002,7 +19003,9 @@ function startConsoleServer(options) {
19002
19003
  return;
19003
19004
  }
19004
19005
  if (route === "POST /api/web/open") {
19005
- const command2 = serviceCommand(options.installation, "web");
19006
+ const command2 = serviceCommand(options.installation, "web", {
19007
+ connectDevices: body.connectDevices === true
19008
+ });
19006
19009
  await service(command2.command, command2.args, serviceEnvironment());
19007
19010
  sendJson(response, 200, { opened: true });
19008
19011
  return;
@@ -16730,6 +16730,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16730
16730
  return createSVGElement([tag, attrs, iconNode]);
16731
16731
  };
16732
16732
 
16733
+ // ../../node_modules/lucide/dist/esm/icons/smartphone.mjs
16734
+ var Smartphone = [
16735
+ ["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2" }],
16736
+ ["path", { d: "M12 18h.01" }]
16737
+ ];
16738
+
16733
16739
  // ../../node_modules/lucide/dist/esm/icons/boxes.mjs
16734
16740
  var Boxes = [
16735
16741
  [
@@ -17087,6 +17093,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17087
17093
  "model-pool": Boxes,
17088
17094
  routes: Route,
17089
17095
  gateway: Network,
17096
+ mobile: Smartphone,
17090
17097
  updates: CircleArrowUp,
17091
17098
  schedules: CalendarClock,
17092
17099
  about: Info,
@@ -17736,7 +17743,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17736
17743
  }
17737
17744
 
17738
17745
  // src/console/console.css
17739
- var console_default = '/*\n * Standalone console layout. Colors and components come from the settings\n * design tokens (shell.css) so reused settings pages and console pages match.\n */\n\n:host {\n position: fixed;\n inset: 0;\n display: block;\n}\n\n.console-app {\n display: grid;\n grid-template-columns: 248px minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n background: var(--settings-bg);\n color: var(--settings-text);\n}\n\n.console-sidebar {\n padding-top: 0;\n}\n\n.console-sidebar .settings-nav {\n padding-top: 4px;\n}\n\n.console-brand {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 18px 16px 16px;\n}\n\n.console-brand__copy {\n display: flex;\n min-width: 0;\n flex-direction: column;\n line-height: 18px;\n}\n\n.console-brand__name {\n font-size: 14px;\n font-weight: 650;\n letter-spacing: -0.01em;\n}\n\n.console-brand__subtitle {\n color: var(--settings-muted);\n font-size: 12px;\n}\n\n.console-status-card {\n display: grid;\n gap: 4px;\n margin: 8px 10px 14px;\n padding: 11px 12px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 10px;\n}\n\n.console-status-card__row {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.console-status-card__title {\n font-size: 12px;\n font-weight: 600;\n}\n\n.console-status-card__meta {\n overflow: hidden;\n color: var(--settings-muted);\n font-size: 11px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.console-dot {\n width: 8px;\n height: 8px;\n flex: none;\n background: var(--settings-subtle);\n border-radius: 50%;\n}\n\n.console-dot.is-ok {\n background: var(--settings-success);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--settings-success) 18%, transparent);\n}\n\n.console-dot.is-warn {\n background: var(--settings-warning);\n}\n\n.console-dot.is-bad {\n background: var(--settings-danger);\n}\n\n.console-main {\n position: relative;\n}\n\n.console-announcement {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n width: min(930px, calc(100% - 80px));\n margin: 28px auto 0;\n padding: 14px 16px;\n font-size: 13px;\n line-height: 20px;\n color: var(--settings-warning);\n background: var(--settings-warning-bg);\n border: 1px solid var(--settings-warning-border);\n border-radius: 12px;\n overflow-wrap: anywhere;\n}\n\n.console-announcement[data-type="info"] {\n color: var(--settings-focus);\n background: color-mix(in srgb, var(--settings-focus) 7%, var(--settings-bg));\n border-color: color-mix(in srgb, var(--settings-focus) 24%, var(--settings-bg));\n}\n\n.console-announcement[data-type="danger"] {\n color: var(--settings-danger);\n background: var(--settings-danger-bg);\n border-color: var(--settings-danger-border);\n}\n\n.console-announcement > svg {\n flex: none;\n margin-top: 2px;\n}\n\n.console-announcement[hidden] {\n display: none;\n}\n\n.console-announcement > div {\n min-width: 0;\n}\n\n.console-announcement .settings-update-notes {\n margin-top: 4px;\n color: inherit;\n font: inherit;\n}\n\n.console-announcement a {\n color: inherit;\n}\n\n.console-offline {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 16px auto 0;\n width: min(930px, calc(100% - 80px));\n padding: 10px 12px;\n color: var(--settings-danger);\n font-size: 12px;\n background: var(--settings-danger-bg);\n border: 1px solid var(--settings-danger-border);\n border-radius: 10px;\n}\n\n.console-offline[hidden] {\n display: none;\n}\n\n/* Overview */\n\n.console-hero {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 16px;\n padding: 20px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 14px;\n}\n\n.console-hero__icon {\n display: grid;\n width: 44px;\n height: 44px;\n place-items: center;\n color: var(--settings-muted);\n background: var(--settings-surface);\n border-radius: 12px;\n}\n\n.console-hero[data-tone="ok"] .console-hero__icon {\n color: var(--settings-success);\n background: color-mix(in srgb, var(--settings-success) 12%, transparent);\n}\n\n.console-hero[data-tone="warn"] .console-hero__icon {\n color: var(--settings-warning);\n background: var(--settings-warning-bg);\n}\n\n.console-hero[data-tone="bad"] .console-hero__icon {\n color: var(--settings-danger);\n background: var(--settings-danger-bg);\n}\n\n.console-hero__title {\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n}\n\n.console-hero__detail {\n margin-top: 2px;\n color: var(--settings-muted);\n font-size: 13px;\n line-height: 20px;\n white-space: pre-wrap;\n word-break: break-word;\n}\n\n.console-versions {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));\n gap: 12px;\n margin: 12px 0;\n}\n\n.console-version-card {\n min-width: 0;\n padding: 14px 16px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 12px;\n}\n\n.console-version-card dt {\n color: var(--settings-muted);\n font-size: 12px;\n line-height: 18px;\n}\n\n.console-version-card dd {\n margin: 6px 0 0;\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n overflow-wrap: anywhere;\n}\n\n.console-lead {\n margin: 0;\n font-size: 13px;\n line-height: 20px;\n}\n\n.console-details summary {\n color: var(--settings-muted);\n font-size: 12px;\n cursor: pointer;\n}\n\n.console-details[open] summary {\n margin-bottom: 12px;\n}\n\n.console-details .console-facts {\n margin-bottom: 12px;\n}\n\n.console-section-title {\n margin: 28px 0 10px;\n font-size: 13px;\n font-weight: 600;\n}\n\n/* Startup timeline */\n\n.console-timeline {\n display: grid;\n gap: 0;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.console-timeline li {\n display: flex;\n align-items: center;\n gap: 10px;\n position: relative;\n min-height: 30px;\n padding-left: 22px;\n font-size: 13px;\n}\n\n.console-timeline li::before {\n content: "";\n position: absolute;\n top: 11px;\n left: 4px;\n width: 8px;\n height: 8px;\n background: var(--settings-success);\n border-radius: 50%;\n}\n\n.console-timeline li:not(:last-child)::after {\n content: "";\n position: absolute;\n top: 21px;\n bottom: -9px;\n left: 7.5px;\n width: 1px;\n background: var(--settings-divider);\n}\n\n.console-timeline li.is-stopped::before {\n background: var(--settings-danger);\n box-shadow: 0 0 0 3px var(--settings-danger-bg);\n}\n\n.console-timeline__time {\n color: var(--settings-subtle);\n font:\n 11px ui-monospace,\n "SFMono-Regular",\n Consolas,\n monospace;\n}\n\n/* Empty states */\n\n.console-empty {\n display: grid;\n justify-items: center;\n gap: 10px;\n padding: 56px 24px;\n text-align: center;\n background: var(--settings-panel);\n border: 1px dashed var(--settings-border);\n border-radius: 14px;\n}\n\n.console-empty__icon {\n display: grid;\n width: 48px;\n height: 48px;\n place-items: center;\n color: var(--settings-muted);\n background: var(--settings-surface);\n border-radius: 14px;\n}\n\n.console-empty__title {\n font-size: 15px;\n font-weight: 600;\n}\n\n.console-empty__body {\n max-width: 440px;\n margin: 0 0 6px;\n color: var(--settings-muted);\n font-size: 13px;\n line-height: 20px;\n}\n\n/* Offline Harness list */\n\n.console-harness-list {\n display: grid;\n gap: 8px;\n}\n\n.console-harness {\n display: grid;\n gap: 10px;\n padding: 14px 16px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 12px;\n}\n\n.console-harness__identity {\n display: flex;\n align-items: center;\n gap: 12px;\n min-width: 0;\n}\n\n.console-harness__icon {\n width: 28px;\n height: 28px;\n flex: none;\n object-fit: contain;\n border-radius: 8px;\n}\n\n.console-harness__icon.is-placeholder {\n background: var(--settings-surface);\n}\n\n.console-harness__name {\n font-size: 13px;\n font-weight: 600;\n}\n\n.console-harness__path {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.console-harness__path .console-input {\n flex: 1;\n}\n\n@media (max-width: 760px) {\n .console-app {\n grid-template-columns: 1fr;\n grid-template-rows: auto minmax(0, 1fr);\n }\n\n .console-sidebar {\n border-right: 0;\n border-bottom: 1px solid var(--settings-border);\n }\n\n .console-sidebar .settings-nav {\n flex-direction: row;\n overflow-x: auto;\n }\n\n .console-sidebar .settings-nav-section-label,\n .console-status-card {\n display: none;\n }\n\n .console-hero {\n grid-template-columns: 1fr;\n }\n\n .settings-page__content,\n .console-announcement,\n .console-offline {\n width: calc(100% - 32px);\n }\n}\n';
17746
+ var console_default = '/*\n * Standalone console layout. Colors and components come from the settings\n * design tokens (shell.css) so reused settings pages and console pages match.\n */\n\n:host {\n position: fixed;\n inset: 0;\n display: block;\n}\n\n.console-app {\n display: grid;\n grid-template-columns: 248px minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n background: var(--settings-bg);\n color: var(--settings-text);\n}\n\n.console-sidebar {\n padding-top: 0;\n}\n\n.console-sidebar .settings-nav {\n padding-top: 4px;\n}\n\n.console-brand {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 18px 16px 16px;\n}\n\n.console-brand__copy {\n display: flex;\n min-width: 0;\n flex-direction: column;\n line-height: 18px;\n}\n\n.console-brand__name {\n font-size: 14px;\n font-weight: 650;\n letter-spacing: -0.01em;\n}\n\n.console-brand__subtitle {\n color: var(--settings-muted);\n font-size: 12px;\n}\n\n.console-status-card {\n display: grid;\n gap: 4px;\n margin: 8px 10px 14px;\n padding: 11px 12px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 10px;\n}\n\n.console-status-card__row {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.console-status-card__title {\n font-size: 12px;\n font-weight: 600;\n}\n\n.console-status-card__meta {\n overflow: hidden;\n color: var(--settings-muted);\n font-size: 11px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.console-dot {\n width: 8px;\n height: 8px;\n flex: none;\n background: var(--settings-subtle);\n border-radius: 50%;\n}\n\n.console-dot.is-ok {\n background: var(--settings-success);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--settings-success) 18%, transparent);\n}\n\n.console-dot.is-warn {\n background: var(--settings-warning);\n}\n\n.console-dot.is-bad {\n background: var(--settings-danger);\n}\n\n.console-main {\n position: relative;\n}\n\n.console-announcement {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n width: min(930px, calc(100% - 80px));\n margin: 28px auto 0;\n padding: 14px 16px;\n font-size: 13px;\n line-height: 20px;\n color: var(--settings-warning);\n background: var(--settings-warning-bg);\n border: 1px solid var(--settings-warning-border);\n border-radius: 12px;\n overflow-wrap: anywhere;\n}\n\n.console-announcement[data-type="info"] {\n color: var(--settings-focus);\n background: color-mix(in srgb, var(--settings-focus) 7%, var(--settings-bg));\n border-color: color-mix(in srgb, var(--settings-focus) 24%, var(--settings-bg));\n}\n\n.console-announcement[data-type="danger"] {\n color: var(--settings-danger);\n background: var(--settings-danger-bg);\n border-color: var(--settings-danger-border);\n}\n\n.console-announcement > svg {\n flex: none;\n margin-top: 2px;\n}\n\n.console-announcement[hidden] {\n display: none;\n}\n\n.console-announcement > div {\n min-width: 0;\n}\n\n.console-announcement .settings-update-notes {\n margin-top: 4px;\n color: inherit;\n font: inherit;\n}\n\n.console-announcement a {\n color: inherit;\n}\n\n.console-offline {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 16px auto 0;\n width: min(930px, calc(100% - 80px));\n padding: 10px 12px;\n color: var(--settings-danger);\n font-size: 12px;\n background: var(--settings-danger-bg);\n border: 1px solid var(--settings-danger-border);\n border-radius: 10px;\n}\n\n.console-offline[hidden] {\n display: none;\n}\n\n/* Overview */\n\n.console-hero {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 16px;\n padding: 20px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 14px;\n}\n\n.console-hero__icon {\n display: grid;\n width: 44px;\n height: 44px;\n place-items: center;\n color: var(--settings-muted);\n background: var(--settings-surface);\n border-radius: 12px;\n}\n\n.console-hero[data-tone="ok"] .console-hero__icon {\n color: var(--settings-success);\n background: color-mix(in srgb, var(--settings-success) 12%, transparent);\n}\n\n.console-hero[data-tone="warn"] .console-hero__icon {\n color: var(--settings-warning);\n background: var(--settings-warning-bg);\n}\n\n.console-hero[data-tone="bad"] .console-hero__icon {\n color: var(--settings-danger);\n background: var(--settings-danger-bg);\n}\n\n.console-hero__title {\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n}\n\n.console-hero__detail {\n margin-top: 2px;\n color: var(--settings-muted);\n font-size: 13px;\n line-height: 20px;\n white-space: pre-wrap;\n word-break: break-word;\n}\n\n.console-web {\n display: grid;\n gap: 16px;\n margin-top: 12px;\n padding: 20px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 14px;\n}\n\n.console-web__buttons {\n display: flex;\n flex-wrap: wrap;\n gap: 12px;\n}\n\n.console-web__open,\n.console-web__remote {\n min-height: 44px;\n padding-inline: 24px;\n font-size: 15px;\n}\n\n.console-versions {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));\n gap: 12px;\n margin: 12px 0;\n}\n\n.console-version-card {\n min-width: 0;\n padding: 14px 16px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 12px;\n}\n\n.console-version-card dt {\n color: var(--settings-muted);\n font-size: 12px;\n line-height: 18px;\n}\n\n.console-version-card dd {\n margin: 6px 0 0;\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n overflow-wrap: anywhere;\n}\n\n.console-lead {\n margin: 0;\n font-size: 13px;\n line-height: 20px;\n}\n\n.console-details summary {\n color: var(--settings-muted);\n font-size: 12px;\n cursor: pointer;\n}\n\n.console-details[open] summary {\n margin-bottom: 12px;\n}\n\n.console-details .console-facts {\n margin-bottom: 12px;\n}\n\n.console-section-title {\n margin: 28px 0 10px;\n font-size: 13px;\n font-weight: 600;\n}\n\n/* Startup timeline */\n\n.console-timeline {\n display: grid;\n gap: 0;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.console-timeline li {\n display: flex;\n align-items: center;\n gap: 10px;\n position: relative;\n min-height: 30px;\n padding-left: 22px;\n font-size: 13px;\n}\n\n.console-timeline li::before {\n content: "";\n position: absolute;\n top: 11px;\n left: 4px;\n width: 8px;\n height: 8px;\n background: var(--settings-success);\n border-radius: 50%;\n}\n\n.console-timeline li:not(:last-child)::after {\n content: "";\n position: absolute;\n top: 21px;\n bottom: -9px;\n left: 7.5px;\n width: 1px;\n background: var(--settings-divider);\n}\n\n.console-timeline li.is-stopped::before {\n background: var(--settings-danger);\n box-shadow: 0 0 0 3px var(--settings-danger-bg);\n}\n\n.console-timeline__time {\n color: var(--settings-subtle);\n font:\n 11px ui-monospace,\n "SFMono-Regular",\n Consolas,\n monospace;\n}\n\n/* Empty states */\n\n.console-empty {\n display: grid;\n justify-items: center;\n gap: 10px;\n padding: 56px 24px;\n text-align: center;\n background: var(--settings-panel);\n border: 1px dashed var(--settings-border);\n border-radius: 14px;\n}\n\n.console-empty__icon {\n display: grid;\n width: 48px;\n height: 48px;\n place-items: center;\n color: var(--settings-muted);\n background: var(--settings-surface);\n border-radius: 14px;\n}\n\n.console-empty__title {\n font-size: 15px;\n font-weight: 600;\n}\n\n.console-empty__body {\n max-width: 440px;\n margin: 0 0 6px;\n color: var(--settings-muted);\n font-size: 13px;\n line-height: 20px;\n}\n\n/* Offline Harness list */\n\n.console-harness-list {\n display: grid;\n gap: 8px;\n}\n\n.console-harness {\n display: grid;\n gap: 10px;\n padding: 14px 16px;\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 12px;\n}\n\n.console-harness__identity {\n display: flex;\n align-items: center;\n gap: 12px;\n min-width: 0;\n}\n\n.console-harness__icon {\n width: 28px;\n height: 28px;\n flex: none;\n object-fit: contain;\n border-radius: 8px;\n}\n\n.console-harness__icon.is-placeholder {\n background: var(--settings-surface);\n}\n\n.console-harness__name {\n font-size: 13px;\n font-weight: 600;\n}\n\n.console-harness__path {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.console-harness__path .console-input {\n flex: 1;\n}\n\n@media (max-width: 760px) {\n .console-app {\n grid-template-columns: 1fr;\n grid-template-rows: auto minmax(0, 1fr);\n }\n\n .console-sidebar {\n border-right: 0;\n border-bottom: 1px solid var(--settings-border);\n }\n\n .console-sidebar .settings-nav {\n flex-direction: row;\n overflow-x: auto;\n }\n\n .console-sidebar .settings-nav-section-label,\n .console-status-card {\n display: none;\n }\n\n .console-hero {\n grid-template-columns: 1fr;\n }\n\n .settings-page__content,\n .console-announcement,\n .console-offline {\n width: calc(100% - 32px);\n }\n}\n';
17740
17747
 
17741
17748
  // src/console/components.css
17742
17749
  var components_default = `/* Shared blocks */
@@ -19862,16 +19869,32 @@ th[aria-sort] .console-usage-sort__mark {
19862
19869
  }
19863
19870
  const chinese = locale.startsWith("zh");
19864
19871
  const actionError = h(document2, "p", { role: "alert" });
19865
- const web = button(document2, chinese ? "\u6253\u5F00 Web" : "Open Web", () => {
19866
- web.disabled = true;
19867
- void consolePost("/api/web/open").catch((cause) => {
19872
+ const openWeb = (target2, connectDevices) => {
19873
+ target2.disabled = true;
19874
+ actionError.textContent = "";
19875
+ void consolePost("/api/web/open", { connectDevices }).catch((cause) => {
19868
19876
  actionError.textContent = cause instanceof Error ? cause.message : String(cause);
19869
19877
  }).finally(() => {
19870
- web.disabled = false;
19878
+ target2.disabled = false;
19871
19879
  });
19872
- });
19880
+ };
19881
+ const web = button(
19882
+ document2,
19883
+ chinese ? "\u6253\u5F00 Web" : "Open Web",
19884
+ () => openWeb(web, false),
19885
+ "primary"
19886
+ );
19887
+ const remote = button(
19888
+ document2,
19889
+ [
19890
+ createRendererSettingsIcon("mobile", 14),
19891
+ chinese ? "\u8FDC\u7A0B\u8BBF\u95EE\uFF08\u624B\u673A / \u5176\u4ED6\u7535\u8111\uFF09" : "Remote access (phone / other computers)"
19892
+ ],
19893
+ () => openWeb(remote, true)
19894
+ );
19895
+ web.className += " console-web__open";
19896
+ remote.className += " console-web__remote";
19873
19897
  actions.append(
19874
- web,
19875
19898
  button(document2, chinese ? "\u505C\u6B62" : "Stop", () => {
19876
19899
  confirmAction(
19877
19900
  context.content,
@@ -19939,6 +19962,24 @@ th[aria-sort] .console-usage-sort__mark {
19939
19962
  ),
19940
19963
  actions
19941
19964
  ),
19965
+ h(
19966
+ document2,
19967
+ "section",
19968
+ { className: "console-web" },
19969
+ h(
19970
+ document2,
19971
+ "div",
19972
+ { className: "console-web__copy" },
19973
+ h(document2, "div", { className: "console-hero__title" }, "Web"),
19974
+ h(
19975
+ document2,
19976
+ "div",
19977
+ { className: "console-hero__detail" },
19978
+ chinese ? "\u5728\u6D4F\u89C8\u5668\u91CC\u4F7F\u7528\u540C\u6837\u7684\u754C\u9762\uFF0C\u4E5F\u53EF\u4EE5\u7528\u624B\u673A\u6216\u5176\u4ED6\u7535\u8111\u8FDC\u7A0B\u8BBF\u95EE\u672C\u673A\u7684\u6240\u6709 Agent\u3002" : "Use the same interface in a browser, or reach every local Agent from a phone or another computer."
19979
+ )
19980
+ ),
19981
+ h(document2, "div", { className: "console-web__buttons" }, web, remote)
19982
+ ),
19942
19983
  actionError,
19943
19984
  versions,
19944
19985
  ...renderStartupDiagnostics(document2, messages, overview, locale),
@@ -21287,7 +21328,7 @@ th[aria-sort] .console-usage-sort__mark {
21287
21328
  return {
21288
21329
  id: "connect-devices",
21289
21330
  label: t("\u8FDE\u63A5\u8BBE\u5907", "Connect devices"),
21290
- icon: "connections",
21331
+ icon: "mobile",
21291
21332
  mount({ content, signal }) {
21292
21333
  const document2 = content.ownerDocument;
21293
21334
  const body = h(document2, "section", { className: "console-panel console-connect" });
@@ -23001,7 +23042,8 @@ th[aria-sort] .console-usage-sort__mark {
23001
23042
  aboutConsoleFailed: "The console could not be opened",
23002
23043
  pageLabels: Object.freeze({
23003
23044
  connections: "Connections",
23004
- "remote-connections": "Remote connections",
23045
+ "mobile-web": "Phone & browser",
23046
+ "remote-connections": "Other computers (SSH)",
23005
23047
  appearance: "General",
23006
23048
  accounts: "Accounts",
23007
23049
  "session-import": "Session Import",
@@ -23282,7 +23324,8 @@ th[aria-sort] .console-usage-sort__mark {
23282
23324
  aboutConsoleFailed: "\u63A7\u5236\u53F0\u6253\u5F00\u5931\u8D25",
23283
23325
  pageLabels: Object.freeze({
23284
23326
  connections: "\u8FDE\u63A5",
23285
- "remote-connections": "\u8FDC\u7A0B\u8FDE\u63A5",
23327
+ "mobile-web": "\u624B\u673A\u4E0E\u6D4F\u89C8\u5668",
23328
+ "remote-connections": "\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09",
23286
23329
  appearance: "\u901A\u7528",
23287
23330
  accounts: "\u8D26\u53F7",
23288
23331
  "session-import": "\u4F1A\u8BDD\u5BFC\u5165",
@@ -26505,7 +26548,7 @@ ${detail}` : ""}`
26505
26548
  var INSPECT_RETRY_MS = 6e4;
26506
26549
  var RESTART_GRACE_MS = 9e4;
26507
26550
  var CONNECT_REQUEST_WAIT_MS = 3e3;
26508
- function createRemoteConnectionsPage(messages, getControl, getOpenWeb = () => void 0) {
26551
+ function createRemoteConnectionsPage(messages, getControl) {
26509
26552
  const zh = messages.locale === "zh-CN";
26510
26553
  const t = (cn, en) => zh ? cn : en;
26511
26554
  return Object.freeze({
@@ -26524,72 +26567,17 @@ ${detail}` : ""}`
26524
26567
  return panel;
26525
26568
  };
26526
26569
  const root = el("div", "settings-remote");
26527
- const openWeb = getOpenWeb();
26528
- if (openWeb) {
26529
- root.append(el("h1", "settings-section-label", messages.pageLabels["remote-connections"]));
26530
- const web = el("section", "settings-remote");
26531
- const webHeader = el("div", "settings-remote__header");
26532
- const webCopy = el("div");
26533
- webCopy.append(
26534
- el(
26535
- "h2",
26536
- "settings-section-label",
26537
- t("\u624B\u673A\u548C\u5176\u4ED6\u8BBE\u5907\uFF08Web\uFF09", "Phones and other devices (Web)")
26538
- ),
26539
- el(
26540
- "p",
26541
- "settings-page-description",
26542
- t(
26543
- "\u5728\u624B\u673A\u6216\u5176\u4ED6\u8BBE\u5907\u7684\u6D4F\u89C8\u5668\u4E0A\u4F7F\u7528\u8FD9\u53F0\u7535\u8111\u7684 CodexHost\uFF0C\u8FD9\u53F0\u7535\u8111\u9700\u8981\u4FDD\u6301\u5F00\u673A\u548C\u8054\u7F51\u3002",
26544
- "Use this computer's CodexHost from a browser on your phone or another device. This computer must stay on and connected to the network."
26545
- )
26546
- )
26547
- );
26548
- webHeader.append(webCopy);
26549
- const actions = el("div", "settings-remote__toolbar");
26550
- const button2 = el(
26551
- "button",
26552
- "settings-command-button settings-command-button--secondary",
26553
- t("\u6253\u5F00\u8FDE\u63A5\u8BBE\u5907\u9875", "Open Connect devices")
26554
- );
26555
- button2.type = "button";
26556
- const status = el("div", "settings-remote__banner");
26557
- status.setAttribute("role", "alert");
26558
- status.hidden = true;
26559
- button2.addEventListener("click", () => {
26560
- button2.disabled = true;
26561
- button2.textContent = t("\u6B63\u5728\u6253\u5F00\u2026", "Opening\u2026");
26562
- status.hidden = true;
26563
- void openWeb().catch((error51) => {
26564
- status.textContent = `${t("Web \u6253\u5F00\u5931\u8D25", "Web could not be opened")}: ${remoteErrorMessage(error51)}`;
26565
- status.hidden = false;
26566
- }).finally(() => {
26567
- button2.disabled = false;
26568
- button2.textContent = t("\u6253\u5F00\u8FDE\u63A5\u8BBE\u5907\u9875", "Open Connect devices");
26569
- });
26570
- });
26571
- actions.append(button2);
26572
- web.append(webHeader, actions, status);
26573
- root.append(web);
26574
- }
26575
26570
  const header = el("div", "settings-remote__header");
26576
26571
  const headerCopy = el("div");
26577
26572
  const localVersion = el("p", "settings-remote__meta");
26578
26573
  headerCopy.append(
26579
- el(
26580
- openWeb ? "h2" : "h1",
26581
- "settings-section-label",
26582
- openWeb ? t("\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09", "Other computers (SSH)") : messages.pageLabels["remote-connections"]
26583
- ),
26574
+ el("h1", "settings-section-label", messages.pageLabels["remote-connections"]),
26584
26575
  el(
26585
26576
  "p",
26586
26577
  "settings-page-description",
26587
- openWeb ? t(
26578
+ t(
26588
26579
  "\u8FD9\u53F0\u7535\u8111\u901A\u8FC7 SSH \u8FDE\u63A5\u53E6\u4E00\u53F0 Mac \u6216 Linux \u7535\u8111\u3002\u8FDE\u63A5\u914D\u7F6E\u4E0E Codex \u5171\u7528\u3002",
26589
26580
  "This computer connects to another Mac or Linux computer over SSH. Connection settings are shared with Codex."
26590
- ) : t(
26591
- "\u901A\u8FC7 SSH \u8FDE\u63A5\u4F60\u7684 Mac \u6216 Linux \u7535\u8111\u3002\u8FDE\u63A5\u914D\u7F6E\u4E0E Codex \u5171\u7528\u3002",
26592
- "Connect to a Mac or Linux computer over SSH. Connection settings are shared with Codex."
26593
26581
  )
26594
26582
  ),
26595
26583
  localVersion
@@ -27060,6 +27048,64 @@ ${detail}` : ""}`
27060
27048
  });
27061
27049
  }
27062
27050
 
27051
+ // src/settings/mobile-web-page.ts
27052
+ function createMobileWebPage(messages, getOpenWeb) {
27053
+ const zh = messages.locale === "zh-CN";
27054
+ const t = (cn, en) => zh ? cn : en;
27055
+ return Object.freeze({
27056
+ id: "mobile-web",
27057
+ label: messages.pageLabels["mobile-web"],
27058
+ icon: "mobile",
27059
+ mount({ content }) {
27060
+ const document2 = content.ownerDocument;
27061
+ const el = (tag, className = "", text = "") => remoteElement(document2, tag, className, text);
27062
+ const root = el("div", "settings-remote");
27063
+ const header = el("div", "settings-remote__header");
27064
+ const copy = el("div");
27065
+ copy.append(
27066
+ el("h1", "settings-section-label", messages.pageLabels["mobile-web"]),
27067
+ el(
27068
+ "p",
27069
+ "settings-page-description",
27070
+ t(
27071
+ "\u5728\u624B\u673A\u6216\u5176\u4ED6\u8BBE\u5907\u7684\u6D4F\u89C8\u5668\u4E0A\u4F7F\u7528\u8FD9\u53F0\u7535\u8111\u7684 CodexHost\uFF0C\u8FD9\u53F0\u7535\u8111\u9700\u8981\u4FDD\u6301\u5F00\u673A\u548C\u8054\u7F51\u3002",
27072
+ "Use this computer's CodexHost from a browser on your phone or another device. This computer must stay on and connected to the network."
27073
+ )
27074
+ )
27075
+ );
27076
+ header.append(copy);
27077
+ const label = t("\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u8FDE\u63A5\u8BBE\u7F6E", "Open connection settings in browser");
27078
+ const button2 = el("button", "settings-command-button", "");
27079
+ button2.type = "button";
27080
+ button2.textContent = label;
27081
+ const status = el("div", "settings-remote__banner");
27082
+ status.setAttribute("role", "alert");
27083
+ status.hidden = true;
27084
+ const openWeb = getOpenWeb();
27085
+ if (!openWeb) {
27086
+ button2.disabled = true;
27087
+ status.textContent = t("\u6B64\u7A97\u53E3\u65E0\u6CD5\u6253\u5F00 Web\u3002", "Web cannot be opened from this window.");
27088
+ status.hidden = false;
27089
+ }
27090
+ button2.addEventListener("click", () => {
27091
+ if (!openWeb) return;
27092
+ button2.disabled = true;
27093
+ status.hidden = true;
27094
+ void openWeb().catch((error51) => {
27095
+ status.textContent = `${t("Web \u6253\u5F00\u5931\u8D25", "Web could not be opened")}: ${remoteErrorMessage(error51)}`;
27096
+ status.hidden = false;
27097
+ }).finally(() => {
27098
+ button2.disabled = false;
27099
+ });
27100
+ });
27101
+ const actions = el("div", "settings-remote__toolbar");
27102
+ actions.append(button2);
27103
+ root.append(header, actions, status);
27104
+ content.append(root);
27105
+ }
27106
+ });
27107
+ }
27108
+
27063
27109
  // src/assets/codex-agent.png
27064
27110
  var codex_agent_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAYAAAAdHLWhAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6Q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rB4vnWRxVt/U3PnnlprNr1ZVvvPi+8t/VqfqxBN6vxLydQZISzd2KOTkk5eMyCu7ckSnW5/lxDpzWJq4+bkVLU1717atXXtPEpXXZKW/pGVYhij9bXT/HRrnsAzLsAzLsAzLsAzLsHwl5f8DGzhXq3EeY8wAAAAASUVORK5CYII=";
27065
27111
 
@@ -31794,10 +31840,11 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
31794
31840
  function createDefaultRendererSettingsPages(messages = DEFAULT_RENDERER_SETTINGS_MESSAGES, getUpdateClient = () => null, getDiagnostics = () => null, getAccountClient = () => null, getSessionImportClient = () => null, openImportedThread = () => Promise.reject(new Error("Imported Thread navigation is unavailable")), getLoadedSessionsClient = () => null, getRemoteConnections = () => null, requestUsageStatistics = () => Promise.reject(new Error("Local Host connection is unavailable")), usageStatisticsHosts, harnessSchedules) {
31795
31841
  return Object.freeze([
31796
31842
  createConnectionsSettingsPage(messages, getDiagnostics, void 0, getRemoteConnections),
31797
- createRemoteConnectionsPage(messages, getRemoteConnections, () => {
31843
+ createMobileWebPage(messages, () => {
31798
31844
  const client = getUpdateClient();
31799
31845
  return client?.openWeb?.bind(client);
31800
31846
  }),
31847
+ createRemoteConnectionsPage(messages, getRemoteConnections),
31801
31848
  createAccountsSettingsPage(messages, getAccountClient),
31802
31849
  ...harnessSchedules ? [createHarnessSchedulesPage(messages, harnessSchedules)] : [],
31803
31850
  createSessionImportSettingsPage(
@@ -34722,6 +34769,7 @@ ${connect_devices_default}`
34722
34769
 
34723
34770
  lucide/dist/esm/defaultAttributes.mjs:
34724
34771
  lucide/dist/esm/createElement.mjs:
34772
+ lucide/dist/esm/icons/smartphone.mjs:
34725
34773
  lucide/dist/esm/icons/boxes.mjs:
34726
34774
  lucide/dist/esm/icons/calendar-clock.mjs:
34727
34775
  lucide/dist/esm/icons/circle-check.mjs:
@@ -18215,12 +18215,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18215
18215
  const modes = /* @__PURE__ */ new Set();
18216
18216
  const creationModes = /* @__PURE__ */ new Set();
18217
18217
  for (const row of rows) {
18218
- if (row.length !== 24 || row[7] !== null || row[10] !== true || !updates.has(row[13]))
18218
+ const offset = row.length === 25 ? 1 : 0;
18219
+ if (row.length !== 24 && row.length !== 25 || row[7 + offset] !== null || row[10 + offset] !== true || !updates.has(row[13 + offset]))
18219
18220
  continue;
18220
- const context2 = row[12];
18221
- const result = row[23];
18222
- if (context2 && context2 === row[21] && typeof context2.usesAccountPreferences === "boolean" && result?.usesAccountPreferences === context2.usesAccountPreferences && typeof row[14] === "function" && row[14] === row[20] && result.setModelAndReasoningEffort === row[14]) {
18223
- update ??= row[13];
18221
+ const context2 = row[12 + offset];
18222
+ const result = row[23 + offset];
18223
+ if (context2 && context2 === row[21 + offset] && typeof context2.usesAccountPreferences === "boolean" && result?.usesAccountPreferences === context2.usesAccountPreferences && typeof row[14 + offset] === "function" && row[14 + offset] === row[20 + offset] && result.setModelAndReasoningEffort === row[14 + offset]) {
18224
+ update ??= row[13 + offset];
18224
18225
  modes.add(context2.usesAccountPreferences);
18225
18226
  const settings = result.modelSettings;
18226
18227
  const group = groups.get(row);
@@ -18987,6 +18988,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18987
18988
  return fallback;
18988
18989
  }
18989
18990
 
18991
+ // ../../node_modules/lucide/dist/esm/icons/smartphone.mjs
18992
+ var Smartphone = [
18993
+ ["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2" }],
18994
+ ["path", { d: "M12 18h.01" }]
18995
+ ];
18996
+
18990
18997
  // ../../node_modules/lucide/dist/esm/icons/boxes.mjs
18991
18998
  var Boxes = [
18992
18999
  [
@@ -19329,6 +19336,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19329
19336
  "model-pool",
19330
19337
  "routes",
19331
19338
  "gateway",
19339
+ "mobile",
19332
19340
  "updates",
19333
19341
  "schedules",
19334
19342
  "about",
@@ -19381,6 +19389,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19381
19389
  "model-pool": Boxes,
19382
19390
  routes: Route,
19383
19391
  gateway: Network,
19392
+ mobile: Smartphone,
19384
19393
  updates: CircleArrowUp,
19385
19394
  schedules: CalendarClock,
19386
19395
  about: Info,
@@ -21209,7 +21218,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
21209
21218
  aboutConsoleFailed: "The console could not be opened",
21210
21219
  pageLabels: Object.freeze({
21211
21220
  connections: "Connections",
21212
- "remote-connections": "Remote connections",
21221
+ "mobile-web": "Phone & browser",
21222
+ "remote-connections": "Other computers (SSH)",
21213
21223
  appearance: "General",
21214
21224
  accounts: "Accounts",
21215
21225
  "session-import": "Session Import",
@@ -21490,7 +21500,8 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
21490
21500
  aboutConsoleFailed: "\u63A7\u5236\u53F0\u6253\u5F00\u5931\u8D25",
21491
21501
  pageLabels: Object.freeze({
21492
21502
  connections: "\u8FDE\u63A5",
21493
- "remote-connections": "\u8FDC\u7A0B\u8FDE\u63A5",
21503
+ "mobile-web": "\u624B\u673A\u4E0E\u6D4F\u89C8\u5668",
21504
+ "remote-connections": "\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09",
21494
21505
  appearance: "\u901A\u7528",
21495
21506
  accounts: "\u8D26\u53F7",
21496
21507
  "session-import": "\u4F1A\u8BDD\u5BFC\u5165",
@@ -32300,7 +32311,7 @@ ${detail}` : ""}`
32300
32311
  var INSPECT_RETRY_MS = 6e4;
32301
32312
  var RESTART_GRACE_MS = 9e4;
32302
32313
  var CONNECT_REQUEST_WAIT_MS = 3e3;
32303
- function createRemoteConnectionsPage(messages, getControl, getOpenWeb = () => void 0) {
32314
+ function createRemoteConnectionsPage(messages, getControl) {
32304
32315
  const zh = messages.locale === "zh-CN";
32305
32316
  const t = (cn, en) => zh ? cn : en;
32306
32317
  return Object.freeze({
@@ -32319,72 +32330,17 @@ ${detail}` : ""}`
32319
32330
  return panel;
32320
32331
  };
32321
32332
  const root = el("div", "settings-remote");
32322
- const openWeb = getOpenWeb();
32323
- if (openWeb) {
32324
- root.append(el("h1", "settings-section-label", messages.pageLabels["remote-connections"]));
32325
- const web = el("section", "settings-remote");
32326
- const webHeader = el("div", "settings-remote__header");
32327
- const webCopy = el("div");
32328
- webCopy.append(
32329
- el(
32330
- "h2",
32331
- "settings-section-label",
32332
- t("\u624B\u673A\u548C\u5176\u4ED6\u8BBE\u5907\uFF08Web\uFF09", "Phones and other devices (Web)")
32333
- ),
32334
- el(
32335
- "p",
32336
- "settings-page-description",
32337
- t(
32338
- "\u5728\u624B\u673A\u6216\u5176\u4ED6\u8BBE\u5907\u7684\u6D4F\u89C8\u5668\u4E0A\u4F7F\u7528\u8FD9\u53F0\u7535\u8111\u7684 CodexHost\uFF0C\u8FD9\u53F0\u7535\u8111\u9700\u8981\u4FDD\u6301\u5F00\u673A\u548C\u8054\u7F51\u3002",
32339
- "Use this computer's CodexHost from a browser on your phone or another device. This computer must stay on and connected to the network."
32340
- )
32341
- )
32342
- );
32343
- webHeader.append(webCopy);
32344
- const actions = el("div", "settings-remote__toolbar");
32345
- const button2 = el(
32346
- "button",
32347
- "settings-command-button settings-command-button--secondary",
32348
- t("\u6253\u5F00\u8FDE\u63A5\u8BBE\u5907\u9875", "Open Connect devices")
32349
- );
32350
- button2.type = "button";
32351
- const status = el("div", "settings-remote__banner");
32352
- status.setAttribute("role", "alert");
32353
- status.hidden = true;
32354
- button2.addEventListener("click", () => {
32355
- button2.disabled = true;
32356
- button2.textContent = t("\u6B63\u5728\u6253\u5F00\u2026", "Opening\u2026");
32357
- status.hidden = true;
32358
- void openWeb().catch((error51) => {
32359
- status.textContent = `${t("Web \u6253\u5F00\u5931\u8D25", "Web could not be opened")}: ${remoteErrorMessage(error51)}`;
32360
- status.hidden = false;
32361
- }).finally(() => {
32362
- button2.disabled = false;
32363
- button2.textContent = t("\u6253\u5F00\u8FDE\u63A5\u8BBE\u5907\u9875", "Open Connect devices");
32364
- });
32365
- });
32366
- actions.append(button2);
32367
- web.append(webHeader, actions, status);
32368
- root.append(web);
32369
- }
32370
32333
  const header = el("div", "settings-remote__header");
32371
32334
  const headerCopy = el("div");
32372
32335
  const localVersion = el("p", "settings-remote__meta");
32373
32336
  headerCopy.append(
32374
- el(
32375
- openWeb ? "h2" : "h1",
32376
- "settings-section-label",
32377
- openWeb ? t("\u5176\u4ED6\u7535\u8111\uFF08SSH\uFF09", "Other computers (SSH)") : messages.pageLabels["remote-connections"]
32378
- ),
32337
+ el("h1", "settings-section-label", messages.pageLabels["remote-connections"]),
32379
32338
  el(
32380
32339
  "p",
32381
32340
  "settings-page-description",
32382
- openWeb ? t(
32341
+ t(
32383
32342
  "\u8FD9\u53F0\u7535\u8111\u901A\u8FC7 SSH \u8FDE\u63A5\u53E6\u4E00\u53F0 Mac \u6216 Linux \u7535\u8111\u3002\u8FDE\u63A5\u914D\u7F6E\u4E0E Codex \u5171\u7528\u3002",
32384
32343
  "This computer connects to another Mac or Linux computer over SSH. Connection settings are shared with Codex."
32385
- ) : t(
32386
- "\u901A\u8FC7 SSH \u8FDE\u63A5\u4F60\u7684 Mac \u6216 Linux \u7535\u8111\u3002\u8FDE\u63A5\u914D\u7F6E\u4E0E Codex \u5171\u7528\u3002",
32387
- "Connect to a Mac or Linux computer over SSH. Connection settings are shared with Codex."
32388
32344
  )
32389
32345
  ),
32390
32346
  localVersion
@@ -32855,6 +32811,64 @@ ${detail}` : ""}`
32855
32811
  });
32856
32812
  }
32857
32813
 
32814
+ // src/settings/mobile-web-page.ts
32815
+ function createMobileWebPage(messages, getOpenWeb) {
32816
+ const zh = messages.locale === "zh-CN";
32817
+ const t = (cn, en) => zh ? cn : en;
32818
+ return Object.freeze({
32819
+ id: "mobile-web",
32820
+ label: messages.pageLabels["mobile-web"],
32821
+ icon: "mobile",
32822
+ mount({ content }) {
32823
+ const document2 = content.ownerDocument;
32824
+ const el = (tag, className = "", text = "") => remoteElement(document2, tag, className, text);
32825
+ const root = el("div", "settings-remote");
32826
+ const header = el("div", "settings-remote__header");
32827
+ const copy = el("div");
32828
+ copy.append(
32829
+ el("h1", "settings-section-label", messages.pageLabels["mobile-web"]),
32830
+ el(
32831
+ "p",
32832
+ "settings-page-description",
32833
+ t(
32834
+ "\u5728\u624B\u673A\u6216\u5176\u4ED6\u8BBE\u5907\u7684\u6D4F\u89C8\u5668\u4E0A\u4F7F\u7528\u8FD9\u53F0\u7535\u8111\u7684 CodexHost\uFF0C\u8FD9\u53F0\u7535\u8111\u9700\u8981\u4FDD\u6301\u5F00\u673A\u548C\u8054\u7F51\u3002",
32835
+ "Use this computer's CodexHost from a browser on your phone or another device. This computer must stay on and connected to the network."
32836
+ )
32837
+ )
32838
+ );
32839
+ header.append(copy);
32840
+ const label = t("\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u8FDE\u63A5\u8BBE\u7F6E", "Open connection settings in browser");
32841
+ const button2 = el("button", "settings-command-button", "");
32842
+ button2.type = "button";
32843
+ button2.textContent = label;
32844
+ const status = el("div", "settings-remote__banner");
32845
+ status.setAttribute("role", "alert");
32846
+ status.hidden = true;
32847
+ const openWeb = getOpenWeb();
32848
+ if (!openWeb) {
32849
+ button2.disabled = true;
32850
+ status.textContent = t("\u6B64\u7A97\u53E3\u65E0\u6CD5\u6253\u5F00 Web\u3002", "Web cannot be opened from this window.");
32851
+ status.hidden = false;
32852
+ }
32853
+ button2.addEventListener("click", () => {
32854
+ if (!openWeb) return;
32855
+ button2.disabled = true;
32856
+ status.hidden = true;
32857
+ void openWeb().catch((error51) => {
32858
+ status.textContent = `${t("Web \u6253\u5F00\u5931\u8D25", "Web could not be opened")}: ${remoteErrorMessage(error51)}`;
32859
+ status.hidden = false;
32860
+ }).finally(() => {
32861
+ button2.disabled = false;
32862
+ });
32863
+ });
32864
+ const actions = el("div", "settings-remote__toolbar");
32865
+ actions.append(button2);
32866
+ root.append(header, actions, status);
32867
+ content.append(root);
32868
+ }
32869
+ });
32870
+ }
32871
+
32858
32872
  // src/settings/core.ts
32859
32873
  var SETTINGS_PAGE_ID_PATTERN = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u;
32860
32874
  var MAX_SETTINGS_PAGE_ID_LENGTH = 48;
@@ -36310,10 +36324,11 @@ ${detail}` : ""}`
36310
36324
  function createDefaultRendererSettingsPages(messages = DEFAULT_RENDERER_SETTINGS_MESSAGES, getUpdateClient = () => null, getDiagnostics = () => null, getAccountClient = () => null, getSessionImportClient = () => null, openImportedThread = () => Promise.reject(new Error("Imported Thread navigation is unavailable")), getLoadedSessionsClient = () => null, getRemoteConnections = () => null, requestUsageStatistics = () => Promise.reject(new Error("Local Host connection is unavailable")), usageStatisticsHosts, harnessSchedules) {
36311
36325
  return Object.freeze([
36312
36326
  createConnectionsSettingsPage(messages, getDiagnostics, void 0, getRemoteConnections),
36313
- createRemoteConnectionsPage(messages, getRemoteConnections, () => {
36327
+ createMobileWebPage(messages, () => {
36314
36328
  const client = getUpdateClient();
36315
36329
  return client?.openWeb?.bind(client);
36316
36330
  }),
36331
+ createRemoteConnectionsPage(messages, getRemoteConnections),
36317
36332
  createAccountsSettingsPage(messages, getAccountClient),
36318
36333
  ...harnessSchedules ? [createHarnessSchedulesPage(messages, harnessSchedules)] : [],
36319
36334
  createSessionImportSettingsPage(
@@ -46286,6 +46301,7 @@ lucide/dist/esm/icons/check.mjs:
46286
46301
  lucide/dist/esm/icons/message-circle-question-mark.mjs:
46287
46302
  lucide/dist/esm/icons/pencil.mjs:
46288
46303
  lucide/dist/esm/icons/x.mjs:
46304
+ lucide/dist/esm/icons/smartphone.mjs:
46289
46305
  lucide/dist/esm/icons/boxes.mjs:
46290
46306
  lucide/dist/esm/icons/calendar-clock.mjs:
46291
46307
  lucide/dist/esm/icons/circle-check.mjs: