@codexhost/cli-win32-arm64 0.2.0 → 0.2.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/desktop-controller.mjs +2 -24
- package/app/host-runtime.mjs +426 -335
- package/app/renderer-extension.js +244 -39
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +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.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.2.
|
|
1
|
+
{"schemaVersion":1,"version":"0.2.1","distribution":"npm","target":"windows-arm64"}
|
|
@@ -63,11 +63,6 @@ async function startControllerAttachmentServer(options) {
|
|
|
63
63
|
);
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
if (line === `SHUTDOWN ${options.nonce}`) {
|
|
67
|
-
respond(socket, "ready");
|
|
68
|
-
queueMicrotask(() => void options.shutdown().catch(() => void 0));
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
66
|
respond(socket, "rejected");
|
|
72
67
|
});
|
|
73
68
|
});
|
|
@@ -334,7 +329,7 @@ var ELECTRON_MODULE_EXPRESSION = `(() => {
|
|
|
334
329
|
return createRequire(process.execPath)('electron');
|
|
335
330
|
})()`;
|
|
336
331
|
var CONNECT_APP_HOST_CHANNEL = "codex_desktop:connect-app-host";
|
|
337
|
-
var REVIEWED_TITLE_SERVICE_IDENTITIES = ["Dhe", "Nye", "wbe", "nxe"];
|
|
332
|
+
var REVIEWED_TITLE_SERVICE_IDENTITIES = ["Dhe", "Nye", "wbe", "nxe", "tTe"];
|
|
338
333
|
var POLICY_STATE_SYMBOL = "codexhost.main-process-title-policy.v1";
|
|
339
334
|
var SERVICE_OWNER_SYMBOL = "codexhost.main-process-title-policy.owner.v1";
|
|
340
335
|
var RENDERER_READY_EXPRESSION = "(() => { Object.defineProperty(window, '__codexhostMainProcessTitlePolicyV1', { configurable: true, value: { state: 'ready' } }); return 'ready'; })()";
|
|
@@ -980,14 +975,6 @@ async function activateElectronDesktop(inspector) {
|
|
|
980
975
|
}
|
|
981
976
|
return value;
|
|
982
977
|
}
|
|
983
|
-
async function quitElectronDesktop(inspector) {
|
|
984
|
-
const accepted = await inspector.evaluate(`(() => {
|
|
985
|
-
const { app } = ${electronModuleExpression};
|
|
986
|
-
setTimeout(() => app.quit(), 100);
|
|
987
|
-
return true;
|
|
988
|
-
})()`);
|
|
989
|
-
if (accepted !== true) throw new Error("Electron Desktop did not accept the quit request");
|
|
990
|
-
}
|
|
991
978
|
async function executeInWebContents(inspector, rendererWebContentsId, source) {
|
|
992
979
|
return inspector.evaluate(`(async () => {
|
|
993
980
|
const { webContents } = ${electronModuleExpression};
|
|
@@ -1017,8 +1004,7 @@ var defaultOperations = {
|
|
|
1017
1004
|
rendererWebContentsId,
|
|
1018
1005
|
"window.__codexhostRendererBindingProbeV1?.status() ?? null"
|
|
1019
1006
|
),
|
|
1020
|
-
readTitlePolicyCounters: readMainProcessTitlePolicyCounters
|
|
1021
|
-
quitDesktop: quitElectronDesktop
|
|
1007
|
+
readTitlePolicyCounters: readMainProcessTitlePolicyCounters
|
|
1022
1008
|
};
|
|
1023
1009
|
async function waitForRenderer(inspector, operations, timeoutMs, pollIntervalMs) {
|
|
1024
1010
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -1137,10 +1123,6 @@ var InstalledRendererControlSession = class {
|
|
|
1137
1123
|
if (this.#closed) return Promise.reject(new Error("Renderer Control Session is closed"));
|
|
1138
1124
|
return activateElectronDesktop(this.inspector);
|
|
1139
1125
|
}
|
|
1140
|
-
quitDesktop() {
|
|
1141
|
-
if (this.#closed) return Promise.reject(new Error("Renderer Control Session is closed"));
|
|
1142
|
-
return this.operations.quitDesktop(this.inspector);
|
|
1143
|
-
}
|
|
1144
1126
|
async requestCompatibilityUpdate() {
|
|
1145
1127
|
const value = await this.executeRenderer(
|
|
1146
1128
|
"window.__codexhostRendererBindingProbeV1?.requestCompatibilityUpdate?.() ?? 'unavailable'"
|
|
@@ -1491,10 +1473,6 @@ ${rendererSource}`,
|
|
|
1491
1473
|
compatibilityUpdate: () => useSession(async () => {
|
|
1492
1474
|
const current = await recoverSession();
|
|
1493
1475
|
return current.requestCompatibilityUpdate();
|
|
1494
|
-
}),
|
|
1495
|
-
shutdown: () => useSession(async () => {
|
|
1496
|
-
const current = await recoverSession();
|
|
1497
|
-
await current.quitDesktop();
|
|
1498
1476
|
})
|
|
1499
1477
|
});
|
|
1500
1478
|
startupTrace2("attachment server ready");
|