Gemini Nexus Bot
3573009e0a
fix(security): resolve 32 pnpm audit vulnerabilities
...
Upgrade direct dependencies to patched versions:
- electron: 37.3.1 -> 39.8.5
- vite: 5.4.21 -> 6.4.2
- @tailwindcss/vite: 4.1.17 -> 4.2.4
- fastify: 5.8.4 -> 5.8.5
- uuid: 13.0.0 -> 14.0.0
- Remove @types/uuid (uuid 14 ships its own types)
Add pnpm.overrides to force transitive deps:
- fastify, tar, @octokit/request-error,
@octokit/plugin-paginate-rest, @octokit/request,
tmp, @tootallnate/once, esbuild
pnpm audit: 0 vulnerabilities (was 32: 6L/15M/11H)
2026-04-27 23:05:10 -03:00
Gemini Nexus Bot
afe8859f16
test: fix broken unit tests, add missing fixtures, and stabilize CI pipeline
...
- Fix os module mock pattern for Vitest v4 in proxy-ide-config tests
- Fix enterprise oauth_client_key expectations in cloudHandler-sync and token-manager-parity tests
- Fix proxy-controller integration test argument expectations
- Add missing proxy-parity JSON fixtures (OpenAI tools, Anthropic tool-use, Gemini SSE)
- Add reasoning_content mapping to convertClaudeToOpenAIResponse
- Fix google-api service test env var cache leak with resetModules + dynamic imports
- Fix proxy-metrics timer tests by calling onModuleInit in beforeEach
- Fix locale-sensitive number formatting in StatCard tests
- Add missing test files to version control (components, hooks, ipc, mocks, server, utils)
- Fix CI workflows: testing.yaml (use vitest run, add type-check job, npm cache), lint.yaml and format.yaml (add npm cache, concurrency, fix job names)
2026-04-23 16:57:58 -03:00
Gemini Nexus Bot
bf4bcf4f96
fix: apply code review fixes (fire-and-forget usage, theme-aware chart colors)
2026-04-23 03:00:58 -03:00
Gemini Nexus Bot
fd1b2b8bc0
fix: resolve TypeScript type-check errors
...
- Add cacheHitRate to ProxyMetricsService, handler, and router schema
- Fix StatCard to support string values and purple accent
- Fix duplicate tabs keys in i18n translations (EN/ZH/RU)
- Add missing cacheStatus translations across all languages
2026-04-23 02:50:09 -03:00
Gemini Nexus Bot
0be7d7fea2
feat(proxy): implement metrics persistence, traffic logs DB, and advanced monitoring
...
- Add SQLite schema for proxy metrics and traffic logs
- Implement ProxyMetricsRepo with historical aggregates
- Add TrafficLogsRepo for DB-backed traffic log queries
- Create proxy-advanced IPC handlers (metrics, traffic logs, circuit breaker, parity)
- Add ProxyMetricsService with connection snapshots and cleanup
- Add ProxyReplayService and ProxyIdeConfigService
- Implement MonitorTab and ToolsTab for advanced proxy features
- Add TrafficLogTable with sorting and filtering
- Fix i18n keys for proxy metrics
- Fix generateIdeConfig type mapping
- Update proxy routes with advanced tab integration
2026-04-23 00:57:01 -03:00
Gemini Nexus Bot
c73537d44c
fix(usage): use sentinel value for All Accounts select to prevent Radix empty string crash
2026-04-22 16:26:36 -03:00
Gemini Nexus Bot
2f42d70d78
feat(usage): refactor dashboard frontend with shadcn/ui components, skeleton states, and dark-theme charts
2026-04-22 16:23:45 -03:00
Gemini Nexus Bot
425b0009b8
fix(usage): apply code review fixes - SSE passthrough type, per-chart errors, Select component
2026-04-22 15:31:54 -03:00
Gemini Nexus Bot
9b37bdb2d9
fix(usage): address code review findings - SQL injection, stream usage recording, DB singleton
2026-04-22 14:34:39 -03:00
Gemini Nexus Bot
1258b32cb5
chore(deps): add recharts for usage dashboard visualizations
2026-04-22 13:58:59 -03:00
Gemini Nexus Bot
98c08bd64f
fix(proxy): register TokenUsageService in ProxyModule providers
2026-04-22 13:58:26 -03:00
Gemini Nexus Bot
8c8b328120
i18n: add usage dashboard translations for all languages
2026-04-22 13:31:09 -03:00
Gemini Nexus Bot
a225791e71
feat(usage): add usage dashboard page with charts and navigation
2026-04-22 13:30:58 -03:00
Gemini Nexus Bot
1a1c0acd16
feat(proxy): inject token usage recording into all handler paths
2026-04-22 13:30:46 -03:00
Gemini Nexus Bot
ce21283170
feat(usage): add token usage service and IPC router endpoints
2026-04-22 13:30:34 -03:00
Gemini Nexus Bot
2a5e54184f
feat(db): add token_usage table and usage repository
2026-04-22 13:30:22 -03:00
Gemini Nexus Bot
ccc5d36a0d
chore: update publisher to evandrodevbr and consolidate icon references
...
- Change author from Draculabo to evandrodevbr in package.json
- Update GitHub publisher config in forge.config.ts (owner/repo/iconUrl)
- Add favicon link in index.html pointing to src/assets/icon.png
- Ensure all app icon references use images/icon.* consistently
2026-04-22 06:01:11 -03:00
Gemini Nexus Bot
bfdb58fc81
i18n(pt-BR): add Portuguese translation for install notice dialog
2026-04-22 05:55:34 -03:00
Gemini Nexus Bot
b32dd24765
build: add automated WiX extraction script for Windows builds
...
- Create scripts/build-windows.js that extracts wix314-binaries.zip to tools/wix314/
- Adds extracted dir to PATH so electron-wix-msi can find candle.exe/light.exe
- Adds npm script 'make:win' for one-command Windows installer build
2026-04-22 05:44:41 -03:00
Gemini Nexus Bot
2c81d129f9
fix(streaming): resolve Gemini v1internal SSE wrapped format and OpenCode compatibility
...
- Fix processStreamResponse to unwrap json.response ?? json for Gemini v1internal wrapped SSE chunks
- Add initial role:assistant delta chunk for Vercel AI SDK / OpenCode compatibility
- Add trafficLogger console transport for real-time debugging
- Add upstream request/response logging throughout proxy paths
- Update proxy-controller.integration and proxy-retry-mock tests for new signatures
- Add comprehensive proxy-stream-debug unit tests (8 cases including wrapped format regression)
- Add OpenCode integration documentation
2026-04-22 05:26:57 -03:00
Gemini Nexus Bot
f4b713c3f4
Merge branch 'vk/53e9-pesquise-os-melh' into main
2026-04-22 03:26:52 -03:00
Gemini Nexus Bot
5b130aca66
fix(stream): restore processStreamResponse to original working behavior
...
The initial role chunk (role:'assistant', content:'') added in a3eabc2
was causing the OpenCode TUI to receive an empty first delta and
discard all subsequent content, showing only the completion time with
no text output.
Restored to the exact streaming behavior from e524a340 that worked:
- Remove the pre-emptive initial chunk entirely
- Move hasEmittedChunk=true back inside pushChunk (original position)
- Use reasoning_content delta field for thought parts instead of
wrapping in <think> tags (which corrupts plain text responses)
- Remove streamOptions/include_usage/lastUsageMetadata tracking
(not present in the working version)
- Remove isThinking state machine (was adding </think> noise to output)
Kept from the spec compliance work (a3eabc2 ):
- toolCallIndex counter for correct finish_reason:'tool_calls' mapping
- Comment explaining why we override Gemini's STOP finish reason
2026-04-22 03:26:51 -03:00
Gemini Nexus Bot
4653fa2b41
Merge branch 'vk/53e9-pesquise-os-melh' into main
2026-04-22 03:17:50 -03:00
Gemini Nexus Bot
a3eabc2aaa
fix(api): full OpenAI-spec compliance for OpenCode integration
...
Route fixes:
- Add POST /v1/messages/chat/completions alias so OpenCode clients
misconfigured with baseURL ending in /v1/messages no longer get 404
Session affinity:
- Extract x-session-affinity HTTP header (sent by OpenCode) and use it
as the session key for token stickiness, falling back to body-level
session_id fields if the header is absent
Tool calling (streaming):
- finish_reason is now 'tool_calls' when function calls were emitted in
the stream (Gemini always sends STOP, so we check toolCallIndex > 0)
- createSyntheticOpenAIStream (stream fallback path) now emits all
tool_call deltas before the finish chunk instead of silently dropping
them when content is null
Tool calling (non-streaming):
- content is now always null when tool_calls are present, satisfying
strict clients that reject non-null content alongside tool_calls
- system_fingerprint field added to OpenAIChatResponse interface and
response builder for OpenAI spec compliance
Usage accounting:
- thoughtsTokenCount is now included in completion_tokens and
total_tokens for the streaming usage chunk, fixing undercount for
thinking/reasoning model runs
2026-04-22 03:17:46 -03:00
Gemini Nexus Bot
099671a4e5
Merge branch 'vk/53e9-pesquise-os-melh' into main
2026-04-22 02:34:27 -03:00
Gemini Nexus Bot
0f9d08018b
fix: resolve startup issues with account activation, credit fetch and poll noise
...
- GoogleAPIService: try loadCodeAssist first for AI credits since
fetchCredits returns 404 for many accounts; keep fetchCredits as
fallback, removing the spurious warn on every poll cycle
- CloudAccountRepo: auto-activate the most-recently-used account when
no account has is_active=1; downgrade noisy [DEBUG] log from info
to debug level
- StatusBar: increase process-status refetch interval from 10s to 30s
to reduce redundant IPC calls and log noise
2026-04-22 02:33:51 -03:00
Gemini Nexus Bot
83489d5084
Merge branch 'vk/5b60-veja-o-que-ja-te' into main
...
Add comprehensive API request/response logging with structured winston logs
2026-04-22 00:21:44 -03:00
Gemini Nexus Bot
0454aecf70
changes
2026-04-22 00:09:29 -03:00
Gemini Nexus Bot
27da62afc9
feat(logging): add comprehensive API request/response logging with structured winston logs
...
- Add dedicated API logger (api-logger.ts) with winston daily rotation
- Create Fastify plugin (api-logging.plugin.ts) to intercept all API requests/responses
- Log request start, body, response, errors, and summary with precise timestamps
- Auto-mask sensitive data using existing sanitizeObject utility
- Register API logging plugin in NestJS bootstrap (server/main.ts)
- Add npm run dev script with cross-env for automatic DEBUG on Windows
- Install cross-env as devDependency for cross-platform env vars
2026-04-22 00:07:30 -03:00
Gemini Nexus Bot
faabf7ba7a
docs: rename AntigravityManager to GeminiNexus in cli readme
2026-04-22 00:01:26 -03:00
Gemini Nexus Bot
433dccbaa9
feat: complete rebranding to Gemini Nexus with improved UI, proxies and documentation
2026-04-22 00:00:56 -03:00
semantic-release-bot
e524a340cb
chore(release): 0.11.1
...
## [0.11.1](https://github.com/Draculabo/AntigravityManager/compare/v0.11.0...v0.11.1 ) (2026-04-18)
### 🐛 Bug Fixes
* add unit label to AI credit display ([6577f1c ](https://github.com/Draculabo/AntigravityManager/commit/6577f1c51fd155004b81f6171eb5feffa2448128 ))
* remaining localization gaps ([#156 ](https://github.com/Draculabo/AntigravityManager/issues/156 )) ([7093c98 ](https://github.com/Draculabo/AntigravityManager/commit/7093c982ba790380cda7d1e8a53891970df6b3cf ))
* remove AI credit refresh time scraping ([3e1e10b ](https://github.com/Draculabo/AntigravityManager/commit/3e1e10b2a580ebf5a64b9a8982bd812a6a1f2924 ))
### 📝 Documentation
* **repo:** update project docs ([440a934 ](https://github.com/Draculabo/AntigravityManager/commit/440a9342800f244287c758b1a77a05fac9096df7 ))
### ♻️ Code Refactoring
* **ipc:** migrate renderer IPC client to official oRPC client ([d0c282d ](https://github.com/Draculabo/AntigravityManager/commit/d0c282dffff24bb74a81cfa523f2f72f949bf8f9 ))
* standardize runtime guard patterns with lodash-es ([#154 ](https://github.com/Draculabo/AntigravityManager/issues/154 )) ([bc35b96 ](https://github.com/Draculabo/AntigravityManager/commit/bc35b96b5d2d873cf0f187a57de695aedc32108f ))
v0.11.1
2026-04-18 17:26:35 +00:00
Draculabo
6577f1c51f
fix: add unit label to AI credit display
2026-04-19 01:24:11 +08:00
Draculabo
3e1e10b2a5
fix: remove AI credit refresh time scraping
2026-04-19 01:10:51 +08:00
Lê Trung Hiếu and Lê Trung Hiếu
7093c982ba
fix: remaining localization gaps ( #156 )
...
Co-authored-by: Lê Trung Hiếu <[email protected] >
2026-04-14 12:59:57 +08:00
Draculabo
440a934280
docs(repo): update project docs
2026-04-12 15:20:41 +08:00
Draculabo
87887dc4b9
chore(repo): remove tracked local database
2026-04-12 15:20:35 +08:00
Draculabo
00ff50055f
chore(security): bump runtime/server dependencies
2026-04-12 15:20:30 +08:00
Draculabo
d0c282dfff
refactor(ipc): migrate renderer IPC client to official oRPC client
2026-04-12 15:20:22 +08:00
vin
bc35b96b5d
refactor: standardize runtime guard patterns with lodash-es ( #154 )
...
* refactor(ui): replace runtime type guards with lodash-es predicates
* refactor(runtime): migrate typeof checks to lodash-es in core modules
* refactor(ipc): standardize runtime guards with lodash-es
* test(refactor): align runtime guard checks with lodash-es
* docs(agents): add lodash-es runtime guard skill summary
2026-04-12 11:41:56 +08:00
semantic-release-bot
0223e8d807
chore(release): 0.11.0
...
## [0.11.0](https://github.com/Draculabo/AntigravityManager/compare/v0.10.0...v0.11.0 ) (2026-04-11)
### ✨ Features
* account management overhaul + 7 issue resolutions ([#147 ](https://github.com/Draculabo/AntigravityManager/issues/147 )) ([ed0dd81 ](https://github.com/Draculabo/AntigravityManager/commit/ed0dd811a8958928a2702839db07444e89f9fdb2 )), closes [#79 ](https://github.com/Draculabo/AntigravityManager/issues/79 ) [#126 ](https://github.com/Draculabo/AntigravityManager/issues/126 ) [#99 ](https://github.com/Draculabo/AntigravityManager/issues/99 ) [#145 ](https://github.com/Draculabo/AntigravityManager/issues/145 ) [#134 ](https://github.com/Draculabo/AntigravityManager/issues/134 ) [#53 ](https://github.com/Draculabo/AntigravityManager/issues/53 ) [#117 ](https://github.com/Draculabo/AntigravityManager/issues/117 )
* **antigravity:** add model specs and update mapping logic ([0a60c0e ](https://github.com/Draculabo/AntigravityManager/commit/0a60c0eafa698202722be9c283cb52831e2e0179 ))
* **cloud-oauth:** support selectable google oauth clients ([bcdf2a6 ](https://github.com/Draculabo/AntigravityManager/commit/bcdf2a6c24fc992d32b4ae883f2a34c8e64969e3 ))
* **cloud-status:** classify blocked accounts and surface validation state ([388fbcb ](https://github.com/Draculabo/AntigravityManager/commit/388fbcb2a9522285eb0bb4a541b48cd3e1049470 ))
* **cloud-sync:** persist project and status metadata for synced accounts ([385036d ](https://github.com/Draculabo/AntigravityManager/commit/385036d577495caeebf95301542811b08c9f333e ))
* **protobuf:** add unified state helpers for oauth payloads ([f970ccb ](https://github.com/Draculabo/AntigravityManager/commit/f970ccb2ed1f3a3e9de09221895f0b650c1115b9 ))
* **proxy:** add upstream error and rate-limit tracking support ([20fffff ](https://github.com/Draculabo/AntigravityManager/commit/20fffff29c47d1147e9b429884d9e8b613e7da6f ))
* **proxy:** improve parity, rate limiting, and token scheduling ([5401e40 ](https://github.com/Draculabo/AntigravityManager/commit/5401e40943824d54bc95971229a83934e55ad88f ))
* **proxy:** improve quota fallback and proxy parity handling ([4fa0a3c ](https://github.com/Draculabo/AntigravityManager/commit/4fa0a3c63dd4b973d0d07feb7351831ad827176d ))
* **ui:** update cloud account and provider visibility experience ([c95f494 ](https://github.com/Draculabo/AntigravityManager/commit/c95f494569b49ff1fae871970764c9f0a3fbda59 ))
### 🐛 Bug Fixes
* **cloud:** add missing oauth action bindings and validation status helper ([87c17a1 ](https://github.com/Draculabo/AntigravityManager/commit/87c17a1ed0856572f0f8c46ede923b563b726108 ))
* **cloud:** fetch AI credits on startup with endpoint fallback and preserve cached credits ([61716bb ](https://github.com/Draculabo/AntigravityManager/commit/61716bb51259c0a5899b8659aa864c5772b75cbb ))
* **linux:** dynamic executable path detection ([#121 ](https://github.com/Draculabo/AntigravityManager/issues/121 )) ([30e38dc ](https://github.com/Draculabo/AntigravityManager/commit/30e38dcb8b9329b68601c9df896fd815ccadc1ec ))
* **linux:** harden account-switch relaunch against GPU process crashes ([2c1755e ](https://github.com/Draculabo/AntigravityManager/commit/2c1755e578ac91962e813a141ec7d3df6fa61a74 ))
### 📝 Documentation
* **proxyman:** add setup and debugging guides and link them from readmes ([3100db9 ](https://github.com/Draculabo/AntigravityManager/commit/3100db93ed92f9f8ef19aceae49a699768e20ca9 ))
### ✅ Tests
* **proxy:** refine signature test text ([50a325b ](https://github.com/Draculabo/AntigravityManager/commit/50a325be113ef59dd9d0144b84d64f9eb40ea67a ))
v0.11.0
2026-04-11 11:10:10 +00:00
Draculabo
1fd0fde700
chore(release): remove [skip ci] from semantic-release git commit message
2026-04-11 18:32:34 +08:00
Draculabo
2c1755e578
fix(linux): harden account-switch relaunch against GPU process crashes
2026-04-11 18:03:30 +08:00
Draculabo
3100db93ed
docs(proxyman): add setup and debugging guides and link them from readmes
2026-04-11 17:31:13 +08:00
Draculabo
e9c4f72883
chore(debug): add proxyman proxy debugging tools
2026-04-11 16:49:56 +08:00
Draculabo
87c17a1ed0
fix(cloud): add missing oauth action bindings and validation status helper
2026-04-11 16:49:10 +08:00
Draculabo
4fa0a3c63d
feat(proxy): improve quota fallback and proxy parity handling
2026-04-11 16:47:57 +08:00
Draculabo
388fbcb2a9
feat(cloud-status): classify blocked accounts and surface validation state
2026-04-11 16:46:36 +08:00
Draculabo
bcdf2a6c24
feat(cloud-oauth): support selectable google oauth clients
2026-04-11 16:45:39 +08:00
Draculabo
385036d577
feat(cloud-sync): persist project and status metadata for synced accounts
2026-04-11 16:44:30 +08:00