@codexhost/cli-win32-arm64 0.3.1 → 0.3.2

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.3.1
10
+ npm install -g @codexhost/cli@0.3.2
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.3.1","distribution":"npm","target":"windows-arm64"}
1
+ {"schemaVersion":1,"version":"0.3.2","distribution":"npm","target":"windows-arm64"}
@@ -68938,12 +68938,16 @@ function publicStatus(status) {
68938
68938
  function createHostUpdateCoordinator(options) {
68939
68939
  const platform = options.platform ?? process.platform;
68940
68940
  const manager = options.manager ?? createBackgroundUpdateManager({ platform });
68941
- const contextPromise = resolveInstalledUpdateContext({
68942
- hostRuntimePath: options.hostRuntimePath,
68943
- ...options.environment ? { environment: options.environment } : {},
68944
- ...options.platform ? { platform: options.platform } : {},
68945
- ...options.architecture ? { architecture: options.architecture } : {}
68946
- });
68941
+ let contextPromise;
68942
+ const installedContext = () => {
68943
+ contextPromise ??= resolveInstalledUpdateContext({
68944
+ hostRuntimePath: options.hostRuntimePath,
68945
+ ...options.environment ? { environment: options.environment } : {},
68946
+ ...options.platform ? { platform: options.platform } : {},
68947
+ ...options.architecture ? { architecture: options.architecture } : {}
68948
+ });
68949
+ return contextPromise;
68950
+ };
68947
68951
  const fetchLatest = options.fetchLatest ?? ((signal) => fetchLatestGitHubRelease({ signal: signal ?? AbortSignal.timeout(15e3) }));
68948
68952
  let candidate = null;
68949
68953
  async function latestStatus(context) {
@@ -68969,7 +68973,7 @@ function createHostUpdateCoordinator(options) {
68969
68973
  async check(signal) {
68970
68974
  let context;
68971
68975
  try {
68972
- context = await contextPromise;
68976
+ context = await installedContext();
68973
68977
  await recoverUpdateOperationLock(context.common.stateDirectory);
68974
68978
  await cleanupTerminalUpdateState(context.common.stateDirectory);
68975
68979
  } catch (error54) {
@@ -69024,7 +69028,7 @@ function createHostUpdateCoordinator(options) {
69024
69028
  }
69025
69029
  },
69026
69030
  async start() {
69027
- const context = await contextPromise;
69031
+ const context = await installedContext();
69028
69032
  await recoverUpdateOperationLock(context.common.stateDirectory);
69029
69033
  const lock = await acquireUpdateOperationLock(context.common.stateDirectory);
69030
69034
  if (!lock) {
@@ -69092,7 +69096,7 @@ function createHostUpdateCoordinator(options) {
69092
69096
  },
69093
69097
  async status() {
69094
69098
  try {
69095
- const context = await contextPromise;
69099
+ const context = await installedContext();
69096
69100
  await recoverUpdateOperationLock(context.common.stateDirectory);
69097
69101
  return { status: await latestStatus(context) };
69098
69102
  } catch {
package/bin/codexhost.exe CHANGED
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codexhost/cli-win32-arm64",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.",
5
5
  "type": "module",
6
6
  "files": [