Skip to content

feat(accounts): add target platform usage windows - #127

Merged
CatStack-pixe merged 6 commits into
mainfrom
feat/chatanywhere-usage-windows
Sep 12, 2026
Merged

feat(accounts): add target platform usage windows#127
CatStack-pixe merged 6 commits into
mainfrom
feat/chatanywhere-usage-windows

Conversation

@CatStack-pixe

Copy link
Copy Markdown
Owner

Summary\n- Add dedicated 7-day token-point and 24-hour request windows to Admin Accounts.\n- Calculate the display from local usage logs because the provider account API does not expose a numeric per-key free balance.\n- Keep provider point exhaustion visible as a separate account status.\n- Treat the target platform request counter as observational: local scheduler admission and request reservation do not stop at the local 100-request counter.\n- Preserve the existing request-quota gate for other platforms.\n\n## Online findings\n- Read-only audit found 32 target-platform accounts in group 47: 11 active and schedulable, 21 in error and unschedulable.\n- The 21 upstream failures are HTTP 403 responses indicating insufficient 7-day free points.\n- Public limits shown in the supplied pricing reference are 50,000 token points per 7 days and 100 requests per 24 hours.\n\n## Verification\n- Targeted Vitest: 49 passed.\n- �ue-tsc --noEmit: passed.\n- Frontend build: passed.\n- ESLint: zero errors; two pre-existing warnings.\n- Full frontend suite: 265 passed; five unrelated test files report four existing failures.\n- Backend Go tests are pending because Go, gofmt, Docker, and WSL Go tooling are unavailable in the workspace.

@CatStack-pixe CatStack-pixe added the enhancement New feature or request label Sep 12, 2026

@CatStack-pixe CatStack-pixe left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Audit result: no blocking defect found in the changed paths.\n\n- The target platform uses local 24-hour request and 7-day token observations for the Admin Accounts window.\n- The target platform bypasses only the local request-quota admission gate; monetary and other account quota checks remain unchanged.\n- Provider point exhaustion is surfaced separately, and no numeric upstream per-key balance is fabricated.\n- Added backend and frontend regression coverage for window calculation, values above the local request reference, provider point errors, and the dedicated account-cell render path.\n- Local validation passed for targeted Vitest (49 tests), vue-tsc, frontend build, and ESLint with zero errors.\n- Residual limitation: the workspace lacks Go tooling, while the initial CI backend tests passed; the current CI rerun is still pending.

@CatStack-pixe
CatStack-pixe merged commit b9b2dfb into main Sep 12, 2026
16 checks passed
@CatStack-pixe
CatStack-pixe deleted the feat/chatanywhere-usage-windows branch September 12, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant