@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 +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/renderer-extension.js +37 -25
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @codexhost/cli@0.1.
|
|
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.
|
|
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.
|
|
19004
|
-
updateButton.style.
|
|
19005
|
-
updateButton.style.
|
|
19006
|
-
updateButton.style.
|
|
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",
|
|
19011
|
-
const
|
|
19012
|
-
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
|
|
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)
|
|
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 = "
|
|
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
|
|
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
|
package/libexec/codexhost-shim
CHANGED
|
Binary file
|
|
Binary file
|