@usagefleet/cli 1.2.125 → 1.2.127

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/README.md CHANGED
@@ -89,7 +89,8 @@ WinRT toast via `powershell.exe`.
89
89
 
90
90
  A group can be set to **refuse new prompts** once it has burned its budget slice
91
91
  (1/N of the account limit) for a window — a switch per window on the Groups
92
- page, both off by default. Each device also has its own blocking toggle on the
92
+ page, both off by default. Per-model limits (e.g. a model's weekly cap) follow
93
+ the switch of their window. Each device also has its own blocking toggle on the
93
94
  Devices page: switched off, that machine is never refused, whatever its group
94
95
  says. `usagefleet login` registers a Claude Code `UserPromptSubmit` hook in
95
96
  `~/.claude/settings.json` (removed by `uninstall`, refreshed rather than stacked
package/dist/guard.js CHANGED
@@ -12,15 +12,15 @@ export function blockMessage(view) {
12
12
  if (view.blocked !== true) {
13
13
  return null;
14
14
  }
15
- const weekly = view.blockedWindow === 'weekly';
16
- const pct = (weekly ? view.weeklyPct : view.sessionPct) ?? 100;
15
+ const window = view.blockedWindow === 'weekly' ? 'weekly' : '5h';
16
+ const limit = view.blockedModel ? `${view.blockedModel} ${window}` : window;
17
+ const pct = view.blockedPct ?? 100;
17
18
  const group = view.group ? `"${view.group}"` : 'this group';
18
19
  const until = view.blockedUntil ? new Date(view.blockedUntil) : null;
19
20
  const resets = until && !Number.isNaN(until.getTime())
20
21
  ? ` Resets ${until.toLocaleString([], { dateStyle: 'short', timeStyle: 'short' })}.`
21
22
  : '';
22
- return (`usagefleet: ${group} has used ${pct}% of its ${weekly ? 'weekly' : '5h'} budget, ` +
23
- `so new prompts are blocked.${resets}`);
23
+ return `usagefleet: ${group} has used ${pct}% of its ${limit} budget, so new prompts are blocked.${resets}`;
24
24
  }
25
25
  /**
26
26
  * Exit code for `usagefleet guard`, the Claude Code `UserPromptSubmit` hook:
package/dist/release.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by .github/workflows/release.yml.
2
- export const RELEASE_VERSION = "1.2.125";
2
+ export const RELEASE_VERSION = "1.2.127";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usagefleet/cli",
3
- "version": "1.2.125",
3
+ "version": "1.2.127",
4
4
  "description": "Tails Claude Code, Claude Desktop, and pi agent JSONL logs and reports token usage to a UsageFleet server.",
5
5
  "keywords": [
6
6
  "claude",