@codexhost/cli-linux-x64 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 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.5
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.5","distribution":"npm","target":"linux-x64"}
1
+ {"schemaVersion":1,"version":"0.2.6","distribution":"npm","target":"linux-x64"}
@@ -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
- result.push({
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");