@codexhost/cli-darwin-arm64 0.2.5 → 0.2.6
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 +4 -5
- package/app/host-runtime.mjs +1034 -152
- package/app/renderer-extension.js +1059 -59
- 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.2.
|
|
10
|
+
npm install -g @codexhost/cli@0.2.6
|
|
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.2.
|
|
1
|
+
{"schemaVersion":1,"version":"0.2.6","distribution":"npm","target":"macos-arm64"}
|
|
@@ -946,8 +946,7 @@ var webContentsRuntimeExpression = "(() => ({ elementCount: document.querySelect
|
|
|
946
946
|
async function inspectElectronWebContents(inspector) {
|
|
947
947
|
const value = await inspector.evaluate(`(async () => {
|
|
948
948
|
const { webContents } = ${electronModuleExpression};
|
|
949
|
-
const result =
|
|
950
|
-
for (const contents of webContents.getAllWebContents()) {
|
|
949
|
+
const result = await Promise.all(webContents.getAllWebContents().map(async (contents) => {
|
|
951
950
|
let runtime = { available: false, elementCount: null };
|
|
952
951
|
try {
|
|
953
952
|
const evaluation = contents.executeJavaScript(${JSON.stringify(webContentsRuntimeExpression)}, true);
|
|
@@ -956,13 +955,13 @@ async function inspectElectronWebContents(inspector) {
|
|
|
956
955
|
});
|
|
957
956
|
runtime = { available: true, ...(await Promise.race([evaluation, timeout])) };
|
|
958
957
|
} catch {}
|
|
959
|
-
|
|
958
|
+
return {
|
|
960
959
|
id: contents.id,
|
|
961
960
|
type: contents.getType(),
|
|
962
961
|
surface: contents.getURL().includes('avatar-overlay') ? 'overlay' : 'primary',
|
|
963
962
|
runtime,
|
|
964
|
-
}
|
|
965
|
-
}
|
|
963
|
+
};
|
|
964
|
+
}));
|
|
966
965
|
return result;
|
|
967
966
|
})()`);
|
|
968
967
|
if (!Array.isArray(value)) throw new Error("Electron webContents inspection returned an array");
|