@codexhost/cli-darwin-x64 0.6.0 → 0.6.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.
@@ -15069,6 +15069,8 @@ var threadUsageSnapshotSchema = external_exports.object({
15069
15069
  reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
15070
15070
  totalTokens: nonNegativeSafeIntegerSchema.optional(),
15071
15071
  totalCostUsd: finiteNonNegativeNumberSchema.optional(),
15072
+ totalCredits: finiteNonNegativeNumberSchema.optional(),
15073
+ contextUsagePercent: finiteNonNegativeNumberSchema.optional(),
15072
15074
  cacheHitRatePercent: cacheHitRatePercentSchema.optional(),
15073
15075
  contextWindowTokens: nonNegativeSafeIntegerSchema.optional(),
15074
15076
  contextUsedTokens: nonNegativeSafeIntegerSchema.optional(),
@@ -16000,7 +16002,9 @@ var usageFields = /* @__PURE__ */ new Set([
16000
16002
  ...tokenFields,
16001
16003
  ...safeIntegerFields,
16002
16004
  ...percentFields,
16003
- "totalCostUsd"
16005
+ "totalCostUsd",
16006
+ "totalCredits",
16007
+ "contextUsagePercent"
16004
16008
  ]);
16005
16009
  function isRecord(value) {
16006
16010
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -16016,6 +16020,12 @@ function parseHostUsage(value) {
16016
16020
  throw new Error(`Harness Usage contains unknown field '${key}'`);
16017
16021
  }
16018
16022
  }
16023
+ for (const field of ["totalCredits", "contextUsagePercent"]) {
16024
+ const candidate = value[field];
16025
+ if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
16026
+ throw new Error(`Harness Usage '${field}' must be a finite non-negative number`);
16027
+ }
16028
+ }
16019
16029
  for (const field of tokenFields) {
16020
16030
  const candidate = value[field];
16021
16031
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {