@codexhost/cli-darwin-x64 0.4.2 → 0.4.4
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/desktop-controller.mjs +207 -670
- package/app/host-runtime.mjs +2 -2
- package/app/renderer-extension.js +25 -32
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
package/app/host-runtime.mjs
CHANGED
|
@@ -83925,7 +83925,7 @@ function projectHistoricalTurn(input) {
|
|
|
83925
83925
|
id: `${turnId}-user`,
|
|
83926
83926
|
type: "userMessage",
|
|
83927
83927
|
clientId: null,
|
|
83928
|
-
content: snapshot.input.map(({ text }) => ({ type: "text", text }))
|
|
83928
|
+
content: snapshot.input.map(({ text }) => ({ type: "text", text, text_elements: [] }))
|
|
83929
83929
|
},
|
|
83930
83930
|
...snapshot.items.flatMap(({ item, outcome }) => {
|
|
83931
83931
|
if (item.type === "toolExecution") {
|
|
@@ -84402,7 +84402,7 @@ var CodexTurnProjector = class {
|
|
|
84402
84402
|
id: `${this.#turnId}-user`,
|
|
84403
84403
|
type: "userMessage",
|
|
84404
84404
|
clientId: null,
|
|
84405
|
-
content: this.#input.map(({ text }) => ({ type: "text", text }))
|
|
84405
|
+
content: this.#input.map(({ text }) => ({ type: "text", text, text_elements: [] }))
|
|
84406
84406
|
}
|
|
84407
84407
|
];
|
|
84408
84408
|
}
|
|
@@ -16175,15 +16175,15 @@ ${error51.stderrTail}`] : []
|
|
|
16175
16175
|
action.className = "settings-connection-row__action";
|
|
16176
16176
|
action.setAttribute("role", "cell");
|
|
16177
16177
|
if (item.agentSnapshot?.availability === "notInstalled") {
|
|
16178
|
-
const
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
|
|
16185
|
-
|
|
16186
|
-
action.append(
|
|
16178
|
+
const install2 = document2.createElement("a");
|
|
16179
|
+
install2.className = "settings-connection-install-link";
|
|
16180
|
+
install2.href = HARNESS_INSTALL_URLS[item.agentSnapshot.agent];
|
|
16181
|
+
install2.target = "_blank";
|
|
16182
|
+
install2.rel = "noopener noreferrer";
|
|
16183
|
+
install2.setAttribute("aria-label", `${messages.connectionOpenInstallation}: ${item.name}`);
|
|
16184
|
+
install2.title = messages.connectionOpenInstallation;
|
|
16185
|
+
install2.append(createRendererSettingsIcon("download", 17));
|
|
16186
|
+
action.append(install2);
|
|
16187
16187
|
} else if (item.error) {
|
|
16188
16188
|
const viewError = document2.createElement("button");
|
|
16189
16189
|
viewError.type = "button";
|
|
@@ -16264,16 +16264,16 @@ ${error51.stderrTail}`] : []
|
|
|
16264
16264
|
description.textContent = messages.connectionInstallDescription;
|
|
16265
16265
|
copy.append(title, description);
|
|
16266
16266
|
callout.append(icon2, copy);
|
|
16267
|
-
const
|
|
16268
|
-
|
|
16269
|
-
|
|
16270
|
-
|
|
16271
|
-
|
|
16272
|
-
|
|
16267
|
+
const install2 = document2.createElement("a");
|
|
16268
|
+
install2.className = "settings-command-button settings-connection-install-button";
|
|
16269
|
+
install2.href = HARNESS_INSTALL_URLS[item.agentSnapshot.agent];
|
|
16270
|
+
install2.target = "_blank";
|
|
16271
|
+
install2.rel = "noopener noreferrer";
|
|
16272
|
+
install2.append(
|
|
16273
16273
|
messages.connectionOpenInstallation,
|
|
16274
16274
|
createRendererSettingsIcon("external-link", 14)
|
|
16275
16275
|
);
|
|
16276
|
-
body.append(callout,
|
|
16276
|
+
body.append(callout, install2);
|
|
16277
16277
|
} else if (item.error) {
|
|
16278
16278
|
const summary = document2.createElement("div");
|
|
16279
16279
|
summary.className = "settings-connection-error-summary";
|
|
@@ -20190,7 +20190,7 @@ ${error51.stderrTail}`] : []
|
|
|
20190
20190
|
}
|
|
20191
20191
|
};
|
|
20192
20192
|
function installRendererSidebarAgentIcons(options) {
|
|
20193
|
-
const dom = options.dom ?? new BrowserSidebarAgentIconDom(document
|
|
20193
|
+
const dom = options.dom ?? new BrowserSidebarAgentIconDom(document);
|
|
20194
20194
|
const ownershipByThread = /* @__PURE__ */ new Map();
|
|
20195
20195
|
const pending = /* @__PURE__ */ new Set();
|
|
20196
20196
|
const failed = /* @__PURE__ */ new Set();
|
|
@@ -21086,9 +21086,6 @@ ${error51.stderrTail}`] : []
|
|
|
21086
21086
|
if (draftIds.size !== 1) return null;
|
|
21087
21087
|
return ["default", draftIds.values().next().value];
|
|
21088
21088
|
}
|
|
21089
|
-
function isMainProcessTitlePolicyReady(value) {
|
|
21090
|
-
return isRecord5(value) && value.state === "ready";
|
|
21091
|
-
}
|
|
21092
21089
|
function isDraftPrewarmPolicyReady(value) {
|
|
21093
21090
|
return isRecord5(value) && value.state === "ready" && typeof value.hostId === "string" && value.hostId.length > 0 && typeof value.select === "function" && typeof value.clear === "function";
|
|
21094
21091
|
}
|
|
@@ -21178,13 +21175,6 @@ ${error51.stderrTail}`] : []
|
|
|
21178
21175
|
window.dispatchEvent(new CustomEvent("codexhost:renderer-adapter-status"));
|
|
21179
21176
|
});
|
|
21180
21177
|
};
|
|
21181
|
-
const unsupportedResult = () => ({
|
|
21182
|
-
status: liveStatus,
|
|
21183
|
-
modelControl: null,
|
|
21184
|
-
applyAgent: () => false,
|
|
21185
|
-
dispose() {
|
|
21186
|
-
}
|
|
21187
|
-
});
|
|
21188
21178
|
const usageSubscription = createThreadUsageSubscriptionRelay();
|
|
21189
21179
|
const requestRouteResolver = createRendererRequestRouteResolver(
|
|
21190
21180
|
() => window.__codexhostDraftPrewarmPolicyV1,
|
|
@@ -21246,10 +21236,6 @@ ${error51.stderrTail}`] : []
|
|
|
21246
21236
|
startUpdate: () => currentModelClient().startUpdate(),
|
|
21247
21237
|
readUpdateStatus: () => currentModelClient().readUpdateStatus()
|
|
21248
21238
|
});
|
|
21249
|
-
if (!isMainProcessTitlePolicyReady(window.__codexhostMainProcessTitlePolicyV1)) {
|
|
21250
|
-
updateStatus("unsupported", "title-policy-unavailable", null);
|
|
21251
|
-
return unsupportedResult();
|
|
21252
|
-
}
|
|
21253
21239
|
const forkControl = installRendererForkControl({
|
|
21254
21240
|
getClient: () => modelControl,
|
|
21255
21241
|
reportError: (error51) => {
|
|
@@ -25012,7 +24998,14 @@ ${error51.stderrTail}`] : []
|
|
|
25012
24998
|
// src/production-entry.ts
|
|
25013
24999
|
var configuration = window.__codexhostProductionConfigV1;
|
|
25014
25000
|
delete window.__codexhostProductionConfigV1;
|
|
25015
|
-
|
|
25001
|
+
var install = () => {
|
|
25002
|
+
installRendererBinding(DEFAULT_RENDERER_AGENTS, configuration?.defaultAgent ?? "codex");
|
|
25003
|
+
};
|
|
25004
|
+
if (document.documentElement && document.body) {
|
|
25005
|
+
install();
|
|
25006
|
+
} else {
|
|
25007
|
+
window.addEventListener("DOMContentLoaded", install, { once: true });
|
|
25008
|
+
}
|
|
25016
25009
|
})();
|
|
25017
25010
|
/*! Bundled license information:
|
|
25018
25011
|
|
package/bin/codexhost
CHANGED
|
Binary file
|
package/libexec/codexhost-shim
CHANGED
|
Binary file
|
|
Binary file
|