mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-26 17:38:36 +00:00
Round out the credit-notice handling from the previous commit with the two optional pieces from the issue: - Native OS notification for the urgent pair. `credits.depleted` / `credits.restored` also fire an Electron notification when Hermes is backgrounded, via a new `credits` NativeNotificationKind (the existing five didn't fit) with its own toggle in Settings → Notifications (the panel is data-driven off NATIVE_NOTIFICATION_KINDS, so the toggle and i18n are the only additions). The escalating usage line and grant-spent notice stay in-app toasts only. Dispatch is `global` (account-wide, not session-bound) and gated by the user's prefs + backgrounded check. - Billing-page nudge. A `credits.*` crossing invalidates the `['billing','state']` query so Settings → Billing reflects the change immediately instead of waiting up to 30s for its poll. `nativeNoticeInput()` is a pure mapping (urgent-key gate → native input), unit-tested directly; the gateway-event branch does the localized-title lookup and gated dispatch. i18n added for all four locales. |
||
|---|---|---|
| .. | ||
| use-message-stream | ||
| use-prompt-actions | ||
| use-session-actions | ||
| session-context-drift.test.ts | ||
| session-context-drift.ts | ||
| use-background-queue-drain.test.tsx | ||
| use-background-queue-drain.ts | ||
| use-context-suggestions.ts | ||
| use-cwd-actions.test.tsx | ||
| use-cwd-actions.ts | ||
| use-hermes-config.test.ts | ||
| use-hermes-config.ts | ||
| use-model-controls.test.tsx | ||
| use-model-controls.ts | ||
| use-preview-routing.test.tsx | ||
| use-preview-routing.ts | ||
| use-route-resume.test.tsx | ||
| use-route-resume.ts | ||
| use-session-actions.test.tsx | ||
| use-session-list-actions.test.tsx | ||
| use-session-list-actions.ts | ||
| use-session-state-cache.test.tsx | ||
| use-session-state-cache.ts | ||