Skip to content

Releases

v0.5.1 — weekly quota as a horizontal bar

Choose a tag to compare

@srikanthlogic srikanthlogic released this 02 Dec 07:23

Weekly usage is now a rounded, colour-coded progress bar under the dial; the clock face shows the 5-hour window only. Tap-to-refresh and all 0.5.0 API work (CREDIT_LIMIT, levels, credits) carry over.

Install: sideload the APK, long-press your launcher → Widgets → zai-widget. Existing installs keep their encrypted key; no reconfiguration needed.

zai-widget v0.5.0 — weekly quota + V3 credits API

Choose a tag to compare

@srikanthlogic srikanthlogic released this 02 Dec 05:23

Z.ai changed the quota payload for credit-based coding plans: /api/monitor/usage/quota/limit now returns CREDIT_LIMIT rows (usage/currentValue/remaining/number) alongside the legacy TOKENS_LIMIT rows, and the weekly cap arrives as unit=6, number=1.

This release:

  • Weekly quota is a first-class window: inner ring on the dial when both windows exist, own runway ETA, and a weekly row (wk 20% · 2k/10k cr · 6d 22h).
  • Weekly-only plans (no active 5-hour window) use the weekly window as the dial.
  • Both payload generations parse; percentage is derived from currentValue/usage when absent, total from used+remaining when usage is missing.
  • Empty data:{} (fresh account, no active window) renders 'no quota window' instead of an error.
  • Plan tier (lite/pro/max) from data.level, reset packs tolerate alternate field spellings.
  • Cached readings migrate from the old flat cache keys.

Verified: 22 unit tests, lint, assembleDebug. Sideload the APK below.

zai-widget v0.4.0

Choose a tag to compare

@srikanthlogic srikanthlogic released this 23 Sep 06:41

Adds an in-app configuration screen for the wall-clock row and quota statistics. The widget continues to refresh automatically every 30 minutes and supports the visible refresh button and whole-widget tap-to-refresh.\n\nAPK: zai-widget-v0.4.0.apk

v0.3.1: refresh button + reliable tap-to-refresh

Choose a tag to compare

@srikanthlogic srikanthlogic released this 23 Sep 06:14

Visible ⟳ button on the widget for instant refresh; whole-widget tap now also works after a successful render (click intents were being dropped on rebuilt RemoteViews). Auto-refresh stays at 30 minutes — Android's system minimum for widget updates — so the button covers anything faster. Install: https://github.com/LogicIncZo/zai-widget/releases

v0.3.0: standard clock with date + day

Choose a tag to compare

@srikanthlogic srikanthlogic released this 23 Sep 05:06

Adds a wall-clock row above the quota gauge: live time, date, and day of week via self-ticking TextClock (no battery cost, no refresh churn). Widget is now 3x2 cells. Quota dial, runway ETA, reset countdown, update badge unchanged.

v0.2.0: update badge + graceful DNS failure

Choose a tag to compare

@srikanthlogic srikanthlogic released this 21 Sep 18:08

Auto-checks GitHub releases every 24h (api.github.com); when a newer version exists the widget shows '⬆ vX.Y.Z — tap' and tapping opens the release page. api.z.ai DNS failures now render as 'offline' with your last-known reading instead of an error. UpdateCheckerTest covers semver boundaries.

v0.1.1: API key encrypted at rest

Choose a tag to compare

@srikanthlogic srikanthlogic released this 21 Sep 17:51

Fix release on top of v0.1.0: the GLM API key is now stored with EncryptedSharedPreferences (AES256-GCM MasterKey) instead of plain prefs. Same widget: ring = 5h quota used, needle = window elapsed, runway ETA, reset countdown. versionCode 2.

v0.1.0: clock-style GLM quota widget

Choose a tag to compare

@srikanthlogic srikanthlogic released this 21 Sep 17:29

Home-screen widget: ring = % quota used, needle = time through the 5-hour window, countdown to reset, week/tool-call percentages, reset packs, runway ETA. Bring your GLM key (stored encrypted on device). APK in Actions artifacts.