feat(operations): show real claude.ai subscription usage % on /operations #244
Reference in New Issue
Block a user
Delete Branch "worktree-operations-usage-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
מציג את אחוז-השימוש האמיתי (5-שעות / שבועי / שבועי-Opus) שה-Claude Code status bar מציג, בראש דף
/operations. עוצב ואושר דרך שער Claude Design (כרטיס02c-operations-usage.html).שלוש שכבות
court_fetch_service): endpoint חדשGET /usageשקורא את ה-OAuth token מ-~/.claude/.credentials.jsonו-proxy ל-/api/oauth/usageעם UAclaude-code/*(חובה). read-only, ללא auth (כמו/pm2). host-only — הטוקן לא נכנס לקונטיינר.web/app.py:_ops_subscription_usage()proxy ל-bridge; snapshot של/api/operationsמקבל שדהsubscription_usage(null כשה-endpoint לא זמין).SubscriptionUsagePanel— שלושה מדים (תווית · % · פס · איפוס) בראש/operations; הפס ענבר >75% / אדום >90%; מוסתר כש-usage null. טיפוסים ב-operations.ts.בנוסף: תיקון שגיאת-lint קיימת (
react/no-unescaped-entities) ב-learning-panel.tsx— escape ל-"בטקסט עברי (", נראה זהה).אימות
tsc --noEmitעובר; lint error-count = 0.next buildהמלא נחסם רק ע"י סימלינק-ה-node_modules של worktree-ידני — ה-Docker build עם node_modules אמיתי לא מושפע.פריסה
web/,web-ui/) → Coolify deploy.court_fetch_service) → סנכרון לעץ-host +pm2 restart legal-court-fetch-service.Invariants
/api/operations, בלי מסלול מקביל.🤖 Generated with Claude Code