ccsidekick 1.4.0 → 1.6.0

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.
@@ -2444,7 +2444,7 @@ var DEFAULT_CONFIG = {
2444
2444
  character: { enabled: true, mode: "random", name: "spiderman", roster: [] },
2445
2445
  theme: { name: "character", banding: "solid", mood_shift: false, icons: {} },
2446
2446
  comments: { character: true, helpful: true, min_severity: "low" },
2447
- network: { fx_refresh: true, usage_fetch: true, balance_path: "" },
2447
+ network: { fx_refresh: false, usage_fetch: false, balance_path: "" },
2448
2448
  statusline: { currency: defaultCurrency(), widgets: DEFAULT_WIDGETS }
2449
2449
  };
2450
2450
  var obj = (v) => v !== null && typeof v === "object" ? v : {};
@@ -5486,7 +5486,7 @@ var init_config = __esm(() => {
5486
5486
  character: { enabled: true, mode: "random", name: "spiderman", roster: [] },
5487
5487
  theme: { name: "character", banding: "solid", mood_shift: false, icons: {} },
5488
5488
  comments: { character: true, helpful: true, min_severity: "low" },
5489
- network: { fx_refresh: true, usage_fetch: true, balance_path: "" },
5489
+ network: { fx_refresh: false, usage_fetch: false, balance_path: "" },
5490
5490
  statusline: { currency: defaultCurrency(), widgets: DEFAULT_WIDGETS }
5491
5491
  };
5492
5492
  });
@@ -7832,7 +7832,8 @@ function applySetup(base, flags) {
7832
7832
  ...flags.helpful !== undefined ? { helpful: flags.helpful } : {},
7833
7833
  ...flags.minSeverity !== undefined ? { min_severity: flags.minSeverity } : {}
7834
7834
  },
7835
- theme: flags.theme !== undefined ? { ...base.theme, name: flags.theme } : base.theme
7835
+ theme: flags.theme !== undefined ? { ...base.theme, name: flags.theme } : base.theme,
7836
+ network: flags.usageFetch !== undefined ? { ...base.network, usage_fetch: flags.usageFetch } : base.network
7836
7837
  };
7837
7838
  }
7838
7839
  function existingConfigPath(target, cwd) {
@@ -7892,6 +7893,7 @@ function setupHelp() {
7892
7893
  " --helpful <on|off> the helpful-tip line",
7893
7894
  ` --min-severity <sev> ${SEVERITIES.join(", ")}`,
7894
7895
  " --widgets <a,b,c> statusline widgets to enable (others are turned off)",
7896
+ " --usage-fetch <on|off> account-usage lookup to Anthropic (needed by the pay_as_you_go widget; no tokens)",
7895
7897
  " --global | --local save target (default: global)",
7896
7898
  " --config-dir <path> Claude config dir (default: $CLAUDE_CONFIG_DIR or ~/.claude)",
7897
7899
  "",
@@ -7934,6 +7936,7 @@ var init_setup = __esm(() => {
7934
7936
  "helpful",
7935
7937
  "min-severity",
7936
7938
  "widgets",
7939
+ "usage-fetch",
7937
7940
  "config-dir"
7938
7941
  ]);
7939
7942
  BOOL_FLAGS = new Set(["global", "local"]);
@@ -7979,6 +7982,11 @@ var init_setup = __esm(() => {
7979
7982
  },
7980
7983
  widgets: (v, f, e) => {
7981
7984
  listInto(v, WIDGET_IDS, "widgets", e, (x) => f.widgets = x);
7985
+ },
7986
+ "usage-fetch": (v, f, e) => {
7987
+ const b = parseOnOff("usage-fetch", v, e);
7988
+ if (b !== undefined)
7989
+ f.usageFetch = b;
7982
7990
  }
7983
7991
  };
7984
7992
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccsidekick",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {