@rallycry/conveyor-agent 10.7.0 → 10.7.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.
@@ -9586,6 +9586,10 @@ function parseUsageGauges(stdout) {
9586
9586
  // src/usage/run-probe.ts
9587
9587
  import { spawn } from "child_process";
9588
9588
  var PROBE_TIMEOUT_MS = 15e3;
9589
+ function buildProbeEnv(env = process.env) {
9590
+ const { CLAUDE_CODE_OAUTH_TOKEN: _oauth, ANTHROPIC_API_KEY: _apiKey, ...rest } = env;
9591
+ return rest;
9592
+ }
9589
9593
  function runUsageProbe(binary = resolveClaudeBinary(), args = ["-p", "/usage"]) {
9590
9594
  return new Promise((resolve) => {
9591
9595
  let stdout = "";
@@ -9597,7 +9601,7 @@ function runUsageProbe(binary = resolveClaudeBinary(), args = ["-p", "/usage"])
9597
9601
  };
9598
9602
  let child;
9599
9603
  try {
9600
- child = spawn(binary, args, { stdio: ["ignore", "pipe", "ignore"] });
9604
+ child = spawn(binary, args, { stdio: ["ignore", "pipe", "ignore"], env: buildProbeEnv() });
9601
9605
  } catch {
9602
9606
  finish("");
9603
9607
  return;
@@ -9639,7 +9643,10 @@ async function sampleKeyUsage(token, probe = runUsageProbe) {
9639
9643
  samples.push({ rateLimitType: "seven_day", utilization: weeklyUsage, status: "allowed" });
9640
9644
  }
9641
9645
  if (samples.length === 0) {
9642
- logger4.info("usage sample produced no gauges", { stdoutLength: stdout.length });
9646
+ logger4.info("usage sample produced no gauges", {
9647
+ stdoutLength: stdout.length,
9648
+ stdoutHead: stdout.slice(0, 200).replaceAll("\n", " ")
9649
+ });
9643
9650
  }
9644
9651
  return samples;
9645
9652
  } catch (error) {
@@ -11001,4 +11008,4 @@ export {
11001
11008
  runStartCommand,
11002
11009
  unshallowRepo
11003
11010
  };
11004
- //# sourceMappingURL=chunk-TIEFSYIY.js.map
11011
+ //# sourceMappingURL=chunk-EBZRRNO5.js.map