@slock-ai/daemon 0.47.0-staging.20260511155804 → 0.47.0

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.
@@ -750,7 +750,7 @@ var DISPLAY_PLAN_CONFIG = {
750
750
  };
751
751
 
752
752
  // src/agentProcessManager.ts
753
- import { mkdirSync as mkdirSync4, readdirSync as readdirSync3, statSync as statSync2, writeFileSync as writeFileSync7 } from "fs";
753
+ import { mkdirSync as mkdirSync4, readdirSync as readdirSync2, statSync as statSync2, writeFileSync as writeFileSync7 } from "fs";
754
754
  import { mkdir, writeFile, access, readdir as readdir2, stat as stat2, readFile, rm as rm2 } from "fs/promises";
755
755
  import { createHash as createHash2 } from "crypto";
756
756
  import path11 from "path";
@@ -1772,7 +1772,7 @@ var ClaudeDriver = class {
1772
1772
 
1773
1773
  // src/drivers/codex.ts
1774
1774
  import { spawn as spawn2, execSync } from "child_process";
1775
- import { existsSync as existsSync3, readFileSync as readFileSync2, readdirSync as readdirSync2 } from "fs";
1775
+ import { existsSync as existsSync3, readFileSync as readFileSync2 } from "fs";
1776
1776
  import os2 from "os";
1777
1777
  import path4 from "path";
1778
1778
  function getCodexNotificationErrorMessage(params) {
@@ -1801,29 +1801,11 @@ function ensureGitRepoForCodex(workingDirectory, deps = {}) {
1801
1801
  );
1802
1802
  }
1803
1803
  var CODEX_DESKTOP_BUNDLE_PATH = "/Applications/Codex.app/Contents/Resources/codex";
1804
- function resolveWindowsSandboxRunner(deps = {}) {
1805
- const homeDir = deps.homeDir ?? os2.homedir();
1806
- const sandboxBinDir = path4.join(homeDir, ".codex", ".sandbox-bin");
1807
- if (!(deps.existsSyncFn ?? existsSync3)(sandboxBinDir)) return null;
1808
- try {
1809
- const files = readdirSync2(sandboxBinDir);
1810
- const runners = files.filter((f) => f.startsWith("codex-command-runner") && f.endsWith(".exe")).sort((a, b) => b.localeCompare(a));
1811
- if (runners.length > 0) return path4.join(sandboxBinDir, runners[0]);
1812
- } catch {
1813
- }
1814
- return null;
1815
- }
1816
1804
  function resolveCodexCommand(deps = {}) {
1817
1805
  const pathCommand = resolveCommandOnPath("codex", deps);
1818
1806
  if (pathCommand) return pathCommand;
1819
- const platform = deps.platform ?? process.platform;
1820
- if (platform === "darwin") {
1821
- return firstExistingPath([CODEX_DESKTOP_BUNDLE_PATH], deps);
1822
- }
1823
- if (platform === "win32") {
1824
- return resolveWindowsSandboxRunner(deps);
1825
- }
1826
- return null;
1807
+ if ((deps.platform ?? process.platform) !== "darwin") return null;
1808
+ return firstExistingPath([CODEX_DESKTOP_BUNDLE_PATH], deps);
1827
1809
  }
1828
1810
  function probeCodex(deps = {}) {
1829
1811
  if ((deps.platform ?? process.platform) === "win32") {
@@ -1864,13 +1846,6 @@ function resolveCodexSpawn(commandArgs, deps = {}) {
1864
1846
  }
1865
1847
  }
1866
1848
  if (!codexEntry) {
1867
- const sandboxRunner = resolveWindowsSandboxRunner(deps);
1868
- if (sandboxRunner) {
1869
- return {
1870
- command: sandboxRunner,
1871
- args: commandArgs
1872
- };
1873
- }
1874
1849
  throw new Error(
1875
1850
  "Cannot resolve Codex CLI entry point on Windows. Ensure @openai/codex is installed globally via npm (npm i -g @openai/codex)."
1876
1851
  );
@@ -3797,7 +3772,7 @@ function findSessionJsonl(root, predicate) {
3797
3772
  if (depth < 0 || visited >= maxEntries) return null;
3798
3773
  let entries;
3799
3774
  try {
3800
- entries = readdirSync3(dir, { withFileTypes: true }).sort((a, b) => b.name.localeCompare(a.name));
3775
+ entries = readdirSync2(dir, { withFileTypes: true }).sort((a, b) => b.name.localeCompare(a.name));
3801
3776
  } catch {
3802
3777
  return null;
3803
3778
  }
@@ -7145,7 +7120,7 @@ function acquireDaemonMachineLock(options) {
7145
7120
  }
7146
7121
 
7147
7122
  // src/localTraceSink.ts
7148
- import { appendFileSync, mkdirSync as mkdirSync6, readdirSync as readdirSync4, rmSync as rmSync3, statSync as statSync4, writeFileSync as writeFileSync9 } from "fs";
7123
+ import { appendFileSync, mkdirSync as mkdirSync6, readdirSync as readdirSync3, rmSync as rmSync3, statSync as statSync4, writeFileSync as writeFileSync9 } from "fs";
7149
7124
  import path13 from "path";
7150
7125
  var DEFAULT_MAX_FILE_BYTES = 5 * 1024 * 1024;
7151
7126
  var DEFAULT_MAX_FILE_AGE_MS = 5 * 60 * 1e3;
@@ -7223,7 +7198,7 @@ var LocalRotatingTraceSink = class {
7223
7198
  }
7224
7199
  }
7225
7200
  pruneOldFiles() {
7226
- const files = readdirSync4(this.traceDir).filter((name) => name.startsWith("daemon-trace-") && name.endsWith(".jsonl")).sort();
7201
+ const files = readdirSync3(this.traceDir).filter((name) => name.startsWith("daemon-trace-") && name.endsWith(".jsonl")).sort();
7227
7202
  const excess = files.length - this.maxFiles;
7228
7203
  if (excess <= 0) return;
7229
7204
  for (const file of files.slice(0, excess)) {
package/dist/core.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  resolveSlockCliPath,
10
10
  resolveWorkspaceDirectoryPath,
11
11
  scanWorkspaceDirectories
12
- } from "./chunk-WTTEYI5T.js";
12
+ } from "./chunk-77TJIZSE.js";
13
13
  import {
14
14
  subscribeDaemonLogs
15
15
  } from "./chunk-B7XIMLOT.js";
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  DAEMON_CLI_USAGE,
4
4
  DaemonCore,
5
5
  parseDaemonCliArgs
6
- } from "./chunk-WTTEYI5T.js";
6
+ } from "./chunk-77TJIZSE.js";
7
7
  import "./chunk-B7XIMLOT.js";
8
8
 
9
9
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slock-ai/daemon",
3
- "version": "0.47.0-staging.20260511155804",
3
+ "version": "0.47.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "slock-daemon": "dist/index.js"