@adhdev/daemon-standalone 1.0.18-rc.4 → 1.0.18-rc.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/dist/index.js CHANGED
@@ -30265,10 +30265,10 @@ var require_dist3 = __commonJS({
30265
30265
  }
30266
30266
  function getDaemonBuildInfo() {
30267
30267
  if (cached2) return cached2;
30268
- const commit = readInjected(true ? "03520d83677e928145388b2b0666f08dd4cb0e4a" : void 0) ?? "unknown";
30269
- const commitShort = readInjected(true ? "03520d83" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30270
- const version2 = readInjected(true ? "1.0.18-rc.4" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30271
- const builtAt = readInjected(true ? "2026-07-21T13:09:31.294Z" : void 0);
30268
+ const commit = readInjected(true ? "a9f2898ed9e58f0b35cf6df7eb7618e088475c26" : void 0) ?? "unknown";
30269
+ const commitShort = readInjected(true ? "a9f2898e" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
30270
+ const version2 = readInjected(true ? "1.0.18-rc.6" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
30271
+ const builtAt = readInjected(true ? "2026-07-22T00:47:42.368Z" : void 0);
30272
30272
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
30273
30273
  return cached2;
30274
30274
  }
@@ -72925,6 +72925,26 @@ ${formatManifestValidationIssues2(validation.issues)}`,
72925
72925
  function packageRootForPrefix(prefix, packageName) {
72926
72926
  return path20.join(prefix, "node_modules", ...packageName.split("/"));
72927
72927
  }
72928
+ var CONPTY_PREBUILD_RELATIVE_PATH = path20.join(
72929
+ "node_modules",
72930
+ "adhdev",
72931
+ "node_modules",
72932
+ "node-pty",
72933
+ "prebuilds",
72934
+ "win32-x64",
72935
+ "conpty.node"
72936
+ );
72937
+ function resolveStagedConptyPrebuildPath(stagedPrefix) {
72938
+ return path20.join(stagedPrefix, CONPTY_PREBUILD_RELATIVE_PATH);
72939
+ }
72940
+ function verifyStagedConptyPrebuild(stagedPrefix) {
72941
+ const conptyPath = resolveStagedConptyPrebuildPath(stagedPrefix);
72942
+ if (!fs14.existsSync(conptyPath)) {
72943
+ throw new Error(
72944
+ `Staged install is missing required native addon: ${conptyPath}. Aborting activation to prevent a daemon boot crash.`
72945
+ );
72946
+ }
72947
+ }
72928
72948
  function readPackageCliEntry(prefix, packageName, targetVersion) {
72929
72949
  const packageRoot = packageRootForPrefix(prefix, packageName);
72930
72950
  const packageJsonPath = path20.join(packageRoot, "package.json");
@@ -73069,6 +73089,7 @@ exit $LASTEXITCODE\r
73069
73089
  try {
73070
73090
  hooks.log(`Installing ${packageName}@${targetVersion} into inactive prefix ${stagedPrefix}`);
73071
73091
  await hooks.install(stagedPrefix, portableNode);
73092
+ verifyStagedConptyPrebuild(stagedPrefix);
73072
73093
  const stagedCliEntry = readPackageCliEntry(stagedPrefix, packageName, targetVersion);
73073
73094
  pinStagedShims(stagedPrefix, portableNode, stagedCliEntry);
73074
73095
  validateStagedCli(portableNode, stagedCliEntry, targetVersion);
@@ -73122,7 +73143,12 @@ exit $LASTEXITCODE\r
73122
73143
  function createDefaultWindowsAtomicHooks(options) {
73123
73144
  return {
73124
73145
  install: (stagedPrefix, portableNode) => {
73125
- const env2 = { ...options.env, ADHDEV_BOOTSTRAP: "1" };
73146
+ const env2 = {
73147
+ ...options.env,
73148
+ ADHDEV_BOOTSTRAP: "1",
73149
+ npm_config_build_from_source: "false",
73150
+ "npm_config_build-from-source": "false"
73151
+ };
73126
73152
  const pathKey = Object.keys(env2).find((key2) => key2.toLowerCase() === "path") || "Path";
73127
73153
  env2[pathKey] = `${path20.dirname(portableNode)};${env2[pathKey] || ""}`;
73128
73154
  (0, import_child_process6.execFileSync)(portableNode, [