@adhdev/daemon-standalone 1.0.58-rc.12 → 1.0.58-rc.13

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
@@ -36882,10 +36882,10 @@ var require_dist3 = __commonJS({
36882
36882
  }
36883
36883
  function getDaemonBuildInfo() {
36884
36884
  if (cached2) return cached2;
36885
- const commit = readInjected(true ? "530605d8d33a09d5e072b440a9634ba8dc909737" : void 0) ?? "unknown";
36886
- const commitShort = readInjected(true ? "530605d8" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
36887
- const version2 = readInjected(true ? "1.0.58-rc.12" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
36888
- const builtAt = readInjected(true ? "2026-08-25T05:36:54.741Z" : void 0);
36885
+ const commit = readInjected(true ? "900d8f99b49f7dc9b6f1455c21c6f5ea3b91d789" : void 0) ?? "unknown";
36886
+ const commitShort = readInjected(true ? "900d8f99" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
36887
+ const version2 = readInjected(true ? "1.0.58-rc.13" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
36888
+ const builtAt = readInjected(true ? "2026-08-25T08:35:02.974Z" : void 0);
36889
36889
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
36890
36890
  return cached2;
36891
36891
  }
@@ -40133,12 +40133,21 @@ child.on('exit', () => process.exit(0));
40133
40133
  async function fetchClaudeQuota2(overrides = {}) {
40134
40134
  const deps = resolveDeps(overrides);
40135
40135
  const paths = resolveInstallPaths(deps.env);
40136
+ const setupFailure = statuslineSetupFailure(deps.env);
40137
+ if (setupFailure !== null) {
40138
+ return setupFailure;
40139
+ }
40136
40140
  let raw;
40137
40141
  try {
40138
40142
  raw = fs5.readFileSync(paths.snapshotFile, "utf-8");
40139
40143
  } catch (err) {
40140
40144
  if (err?.code === "ENOENT") {
40141
- return missingSnapshotFailure(deps.env);
40145
+ return quotaFailure(
40146
+ "claude-cli",
40147
+ "unavailable",
40148
+ "No Claude quota captured yet \u2014 open a Claude Code session to record one",
40149
+ { source: SOURCE, failureKind: "no-data" }
40150
+ );
40142
40151
  }
40143
40152
  const message = err instanceof Error ? err.message : String(err);
40144
40153
  return quotaFailure("claude-cli", "error", `Unable to read Claude quota snapshot: ${message}`, {
@@ -40193,7 +40202,7 @@ child.on('exit', () => process.exit(0));
40193
40202
  metadata: { source: SOURCE }
40194
40203
  };
40195
40204
  }
40196
- function missingSnapshotFailure(env2) {
40205
+ function statuslineSetupFailure(env2) {
40197
40206
  let installed = false;
40198
40207
  let danglingPath = null;
40199
40208
  try {
@@ -40207,20 +40216,18 @@ child.on('exit', () => process.exit(0));
40207
40216
  "claude-cli",
40208
40217
  "unavailable",
40209
40218
  `Claude statusline wrapper is missing (${danglingPath}) \u2014 re-run \`adhdev quota claude:install\` to repair`,
40210
- { source: SOURCE, failureKind: "no-data" }
40219
+ { source: SOURCE, failureKind: "setup-required" }
40211
40220
  );
40212
40221
  }
40213
- return quotaFailure(
40214
- "claude-cli",
40215
- "unavailable",
40216
- installed ? "No Claude quota captured yet \u2014 open a Claude Code session to record one" : "Claude quota reporting is not set up \u2014 run `adhdev quota claude:install`",
40217
- // 'no-data', NOT 'missing-credentials': this fetcher reads no
40218
- // credential at all (see the header), and the old label made the
40219
- // dashboard render "(missing credentials)" for a machine that was
40220
- // merely waiting for its first statusline capture — a live
40221
- // coordinator misread that as a claude-cli auth failure.
40222
- { source: SOURCE, failureKind: "no-data" }
40223
- );
40222
+ if (!installed) {
40223
+ return quotaFailure(
40224
+ "claude-cli",
40225
+ "unavailable",
40226
+ "Claude quota reporting is not set up \u2014 run `adhdev quota claude:install`",
40227
+ { source: SOURCE, failureKind: "setup-required" }
40228
+ );
40229
+ }
40230
+ return null;
40224
40231
  }
40225
40232
  var fs5;
40226
40233
  var STALE_AFTER_MS;