modelstat 0.5.0 → 0.5.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.
package/dist/cli.mjs CHANGED
@@ -5130,11 +5130,11 @@ var init_schemas = __esm({
5130
5130
  source_byte_offset: external_exports.number().int().nonnegative().nullable(),
5131
5131
  // Billing mode. Agents with a flat-fee subscription tier (Claude
5132
5132
  // Code, Cursor Pro, GitHub Copilot, etc) emit events tagged
5133
- // `billing: "subscription"` — the server short-circuits cost to $0
5133
+ // `pricing_mode: "subscription"` — the server short-circuits cost to $0
5134
5134
  // for those, since token-level pricing doesn't apply once the user
5135
5135
  // is paying the subscription. `api` (or absent) means pay-per-token
5136
5136
  // against whatever rates the org has configured.
5137
- billing: external_exports.enum(["subscription", "api"]).optional()
5137
+ pricing_mode: external_exports.enum(["subscription", "api"]).optional()
5138
5138
  });
5139
5139
  RedactionReport = external_exports.object({
5140
5140
  secrets_found: external_exports.number().int().nonnegative().default(0),
@@ -6042,7 +6042,7 @@ async function parseClaudeCodeJsonl(ctx) {
6042
6042
  // used via subscription (not the raw API). Mark them so the
6043
6043
  // server short-circuits token-level cost to $0 — the user has
6044
6044
  // already paid the flat monthly fee.
6045
- billing: "subscription"
6045
+ pricing_mode: "subscription"
6046
6046
  });
6047
6047
  } else if (obj.type === "user") {
6048
6048
  const u = obj;
@@ -6091,7 +6091,7 @@ async function parseClaudeCodeJsonl(ctx) {
6091
6091
  ...refs ? { references: refs } : {},
6092
6092
  source_file: ctx.sourceFile,
6093
6093
  source_byte_offset: offsetAtLineStart,
6094
- billing: "subscription"
6094
+ pricing_mode: "subscription"
6095
6095
  });
6096
6096
  } else if (obj.type === "tool_use") {
6097
6097
  const t = obj;
@@ -37086,7 +37086,7 @@ var init_scan = __esm({
37086
37086
  init_api();
37087
37087
  init_config2();
37088
37088
  init_pipeline2();
37089
- DAEMON_VERSION = true ? "daemon-0.5.0" : "daemon-dev";
37089
+ DAEMON_VERSION = true ? "daemon-0.5.1" : "daemon-dev";
37090
37090
  BATCH_MAX_EVENTS = INGEST_BATCH_MAX_EVENTS;
37091
37091
  BATCH_MAX_TOOL_CALLS = 2e4;
37092
37092
  BATCH_BUFFER_HARD_CAP = BATCH_MAX_EVENTS * 2;
@@ -39715,7 +39715,7 @@ var init_daemon = __esm({
39715
39715
  init_reconcile();
39716
39716
  init_scan();
39717
39717
  init_single_flight();
39718
- DAEMON_VERSION2 = true ? "daemon-0.5.0" : "daemon-dev";
39718
+ DAEMON_VERSION2 = true ? "daemon-0.5.1" : "daemon-dev";
39719
39719
  HEARTBEAT_INTERVAL_MS = 1e4;
39720
39720
  SCAN_INTERVAL_MS = 5 * 60 * 1e3;
39721
39721
  DISCOVERY_INTERVAL_MS = 6e4;
@@ -40316,7 +40316,7 @@ function tryOpenBrowser(url) {
40316
40316
  return false;
40317
40317
  }
40318
40318
  }
40319
- var DAEMON_VERSION3 = true ? "daemon-0.5.0" : "daemon-dev";
40319
+ var DAEMON_VERSION3 = true ? "daemon-0.5.1" : "daemon-dev";
40320
40320
  function osFamily() {
40321
40321
  const p = platform5();
40322
40322
  if (p === "darwin") return "macos";