@codexhost/cli-darwin-x64 0.1.0 → 0.1.1

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.1.0
10
+ npm install -g @codexhost/cli@0.1.1
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.1.0","distribution":"npm","target":"macos-x64"}
1
+ {"schemaVersion":1,"version":"0.1.1","distribution":"npm","target":"macos-x64"}
@@ -17309,6 +17309,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17309
17309
  publish();
17310
17310
  return true;
17311
17311
  }
17312
+ var DRAFT_PREWARM_POLICY_WAIT_TIMEOUT_MS = 1e4;
17313
+ var DRAFT_PREWARM_POLICY_POLL_INTERVAL_MS = 25;
17312
17314
  function transportModelIdForAgent(agent) {
17313
17315
  if (agent === "pi") return PI_TRANSPORT_MODEL_ID;
17314
17316
  if (agent === "claude-code") return CLAUDE_CODE_TRANSPORT_MODEL_ID;
@@ -17639,6 +17641,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17639
17641
  function isDraftPrewarmPolicyReady(value) {
17640
17642
  return isRecord4(value) && value.state === "ready" && typeof value.clear === "function";
17641
17643
  }
17644
+ async function waitForRendererDraftPrewarmPolicy(target) {
17645
+ const deadline = Date.now() + DRAFT_PREWARM_POLICY_WAIT_TIMEOUT_MS;
17646
+ while (true) {
17647
+ const policy = target.__codexhostDraftPrewarmPolicyV1;
17648
+ if (isDraftPrewarmPolicyReady(policy)) return policy;
17649
+ const remaining = deadline - Date.now();
17650
+ if (remaining <= 0) throw new Error("Renderer draft prewarm policy is unavailable");
17651
+ await new Promise((resolve) => {
17652
+ target.setTimeout(resolve, Math.min(DRAFT_PREWARM_POLICY_POLL_INTERVAL_MS, remaining));
17653
+ });
17654
+ }
17655
+ }
17642
17656
  function modelSelectionForAgent(officialSelection, reasoningEffort, agent, model, thinkingOptionId, permissionModeId) {
17643
17657
  const transportModelId = agent === "pi" ? piTransportModelId(model, thinkingOptionId) : agent === "claude-code" ? claudeTransportModelId(model, permissionModeId, thinkingOptionId) : transportModelIdForAgent(agent);
17644
17658
  return transportModelId ? { model: transportModelId, reasoningEffort } : officialSelection;
@@ -18994,31 +19008,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18994
19008
  updateButton.setAttribute("aria-haspopup", "dialog");
18995
19009
  updateButton.title = messages.updateAvailable;
18996
19010
  updateButton.style.display = "none";
18997
- updateButton.style.position = "relative";
18998
19011
  updateButton.style.alignItems = "center";
18999
19012
  updateButton.style.justifyContent = "center";
19000
- updateButton.style.width = "28px";
19001
19013
  updateButton.style.height = "28px";
19002
- updateButton.style.padding = "0";
19003
- updateButton.style.border = "0";
19004
- updateButton.style.borderRadius = "8px";
19005
- updateButton.style.background = "transparent";
19006
- updateButton.style.color = "inherit";
19014
+ updateButton.style.padding = "0 10px";
19015
+ updateButton.style.gap = "6px";
19016
+ updateButton.style.border = "1px solid #1d4ed8";
19017
+ updateButton.style.borderRadius = "7px";
19018
+ updateButton.style.background = "#2563eb";
19019
+ updateButton.style.color = "#ffffff";
19007
19020
  updateButton.style.cursor = available ? "pointer" : "not-allowed";
19021
+ updateButton.style.opacity = available ? "1" : "0.5";
19022
+ updateButton.style.boxShadow = "0 1px 2px rgba(15, 23, 42, 0.18)";
19008
19023
  updateButton.style.outlineOffset = "2px";
19009
19024
  updateButton.style.setProperty("-webkit-app-region", "no-drag");
19010
- updateButton.append(createRendererSettingsIcon("updates", 16));
19011
- const updateIndicator = ownerDocument.createElement("span");
19012
- updateIndicator.setAttribute("aria-hidden", "true");
19013
- updateIndicator.style.position = "absolute";
19014
- updateIndicator.style.top = "3px";
19015
- updateIndicator.style.right = "3px";
19016
- updateIndicator.style.width = "6px";
19017
- updateIndicator.style.height = "6px";
19018
- updateIndicator.style.background = "#ef4444";
19019
- updateIndicator.style.border = "1px solid currentColor";
19020
- updateIndicator.style.borderRadius = "50%";
19021
- updateButton.append(updateIndicator);
19025
+ updateButton.append(createRendererSettingsIcon("updates", 15));
19026
+ const updateLabel = ownerDocument.createElement("span");
19027
+ updateLabel.textContent = messages.pageLabels.updates;
19028
+ updateLabel.style.fontSize = "12px";
19029
+ updateLabel.style.fontWeight = "600";
19030
+ updateLabel.style.lineHeight = "1";
19031
+ updateLabel.style.whiteSpace = "nowrap";
19032
+ updateButton.append(updateLabel);
19022
19033
  const onPointerEnter = () => {
19023
19034
  if (!button.disabled) button.style.background = "rgba(127, 127, 127, 0.16)";
19024
19035
  };
@@ -19030,10 +19041,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19030
19041
  if (!button.disabled) onOpen(button);
19031
19042
  };
19032
19043
  const onUpdatePointerEnter = () => {
19033
- if (!updateButton.disabled) updateButton.style.background = "rgba(127, 127, 127, 0.16)";
19044
+ if (!updateButton.disabled) {
19045
+ updateButton.style.background = "#1d4ed8";
19046
+ updateButton.style.boxShadow = "0 2px 4px rgba(15, 23, 42, 0.22)";
19047
+ }
19034
19048
  };
19035
19049
  const onUpdatePointerLeave = () => {
19036
- updateButton.style.background = "transparent";
19050
+ updateButton.style.background = "#2563eb";
19051
+ updateButton.style.boxShadow = "0 1px 2px rgba(15, 23, 42, 0.18)";
19037
19052
  };
19038
19053
  const onUpdateClick = (event) => {
19039
19054
  event.stopPropagation();
@@ -19462,10 +19477,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19462
19477
  ) === true && isPermissionModeControlReady(mounted.permissionModeView);
19463
19478
  };
19464
19479
  const clearDraftPrewarm = async () => {
19465
- const policy = window.__codexhostDraftPrewarmPolicyV1;
19466
- if (!isDraftPrewarmPolicyReady(policy)) {
19467
- throw new Error("Renderer draft prewarm policy is unavailable");
19468
- }
19480
+ const policy = await waitForRendererDraftPrewarmPolicy(window);
19469
19481
  await policy.clear();
19470
19482
  };
19471
19483
  const applyExternalConfiguration = (mounted, agent, model, thinkingOptionId, permissionModeId) => {
package/bin/codexhost CHANGED
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codexhost/cli-darwin-x64",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.",
5
5
  "type": "module",
6
6
  "files": [