@aiusage/cli 1.4.1 → 1.4.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.
Files changed (2) hide show
  1. package/dist/cli.js +2 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2760,6 +2760,8 @@ async function runSync(flags) {
2760
2760
  targetDates = [requestedDate];
2761
2761
  else if (fromDate)
2762
2762
  targetDates = buildDateRange(fromDate, toDate ?? getTodayDate());
2763
+ else if (flags.today === !0)
2764
+ targetDates = [getTodayDate()];
2763
2765
  else {
2764
2766
  let lookbackDays = typeof flags.lookback == "string" ? parsePositiveInt2(flags.lookback, "--lookback") : defaultLookbackDays(config);
2765
2767
  targetDates = getClosedDates(lookbackDays), targetDates.push(getTodayDate());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiusage/cli",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Track and sync AI tool token usage across devices.",
5
5
  "license": "MIT",
6
6
  "private": false,