Pablo Gonzalez
b238cd7fbc
fix: parse ollama cloud cost-based usage windows and credits balance ( #3381 )
...
Ollama Cloud's /settings page switched shapes for cost-based plans: parse
the 'Monthly usage $X of $Y used' row as a monthly window with a symmetric
'$X / $Y' money label that reads correctly in both used/remaining display
modes, and surface the Extra usage credits balance as a balance-only
credits_balance window matching the Codex/DeepSeek credits treatment
('Credits Balance' in the UI), omitted when the balance is $0. The VS Code
credential validation accepts the new page shape and the Settings cookie
placeholder shows the two-cookie format. Web and VS Code parsers kept in
sync per quota DOCUMENTATION.md.
2026-09-07 19:25:52 +03:00
Bohdan Triapitsyn
b09614fd68
refactor(quota): secure managed provider credentials ( #2160 )
...
- add shared owner-only credential storage for OpenCode Go, Ollama Cloud, and Cursor
- validate credentials before atomic writes using 0700 directories and 0600 files
- replace provider-specific credential routes with an allowlisted lifecycle API
- stop automatically reading Ollama's legacy cookie file
- stop reading or modifying Cursor's database during regular quota requests
- add explicit one-time Cursor credential import without mutating Cursor storage
- persist refreshed Cursor credentials only in OpenChamber-managed storage
- add Ollama Cloud and Cursor credential controls to provider settings
- preserve OpenCode Go tracking through the shared credential flow
- add VS Code credential management and Cursor quota parity
- reject authentication redirects, enforce request timeouts, and fail on unparseable usage pages
- mask stored secrets in API responses and extend quota security coverage
- update quota provider documentation
2026-07-12 16:21:38 +03:00
00821700de
chore: remove dead code (59 unused files + ~125 unused exports) ( #1835 )
...
* chore: remove dead/unreferenced files across ui, vscode
Remove 59 unused source files (components, hooks, lib utils, stores,
barrels, and orphaned vscode github modules) that are not imported by
any entry-reachable code. Also drop a stale test mock for the removed
execCommands module.
Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com >
* refactor: remove unused exported symbols (types, functions, consts, hooks)
Remove exported symbols whose identifier is referenced nowhere in the
repository (verified via repo-wide search), across ui types/contracts,
lib utilities, sync layer, stores, and components. Also drop the few
imports/private helpers orphaned by these removals.
Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com >
* refactor: remove more unused exports (desktop, shortcuts, worktree, vscode)
Continue removing repo-wide unreferenced exported functions, consts and
types across lib/desktop, shortcuts, worktreeSessionCreator, sync, and
vscode gitService, with cascading orphaned helpers/imports cleaned up.
Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com >
* chore: add dead-code cleanup tooling
* refactor: checkpoint dead-code cleanup
* refactor: remove dead-code suppressions
---------
Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com >
Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com >
2026-06-26 19:27:53 +03:00
Henry Moran
654d49067f
feat: add Ollama Cloud quota provider ( #544 )
...
* feat: add Ollama Cloud quota provider
Adds ollama-cloud quota provider that reads auth cookie from
~/.config/ollama-quota/cookie and fetches usage from ollama.com/settings.
Returns 3 windows: session, weekly, and premium (X/Y). Reuses Ollama
logo via provider alias.
* docs(quota): add ollama-cloud provider entry to DOCUMENTATION.md
2026-02-28 01:38:28 +02:00