Commit Graph

3478 Commits

Author SHA1 Message Date
Diego Rodrigues de Sa e Souza
3c6ee6cd4c fix(docker): add runner-web stage with Playwright Chromium (#2832) (#2846)
Integrated into release/v3.8.7
2026-05-29 19:22:20 -03:00
Diego Rodrigues de Sa e Souza
a800dc8e2e fix(sse): guard non-string error.code in proxyFetch + harden model parsing (#2463) (#2923)
Integrated into release/v3.8.7
2026-05-29 19:21:17 -03:00
diegosouzapw
847778933f chore(plugins): remove duplicate migration 059_create_plugins.sql (post-merge) 2026-05-29 17:43:38 -03:00
Diego Rodrigues de Sa e Souza
41ef9440a2 Merge pull request #2917 from rdself/coder/zero-latency-combo-toggle
Make zero-latency combo optimizations opt-in
2026-05-29 17:43:25 -03:00
Diego Rodrigues de Sa e Souza
2ae278fac5 Merge pull request #2916 from rdself/coder/openai-compatible-max-effort-xhigh
fix(executor): normalize max effort for OpenAI-shape providers
2026-05-29 17:43:22 -03:00
Diego Rodrigues de Sa e Souza
338636a304 Merge pull request #2915 from apoapostolov/fix/pin-settings-schema-validation
fix(settings): add missing home page pin keys to updateSettingsSchema
2026-05-29 17:43:19 -03:00
Diego Rodrigues de Sa e Souza
2f975c001e Merge pull request #2912 from oyi77/feat/plugin-system
feat(plugins): backend core + security/ESM fixes + tests + discovery stub [deferred to v4.0.0-rc1]
2026-05-29 17:43:15 -03:00
Diego Rodrigues de Sa e Souza
2467a06354 Merge pull request #2918 from unitythemaker/fix/analytics-gemini-followup-v387
Fix analytics follow-up regressions from #2904
2026-05-29 17:42:38 -03:00
diegosouzapw
0137435327 chore(plugins): remove duplicate migration 059_create_plugins.sql 2026-05-29 17:19:40 -03:00
oyi77
954081268e feat(plugins): add i18n keys to all 42 locales 2026-05-29 17:19:40 -03:00
oyi77
1ff3f328bc test(plugins): add scanner, loader, manager unit tests
- scanner: 9 tests (discovery, hidden dirs, validation, entry point, multiple)
- loader: 5 tests (type contracts, Plugin/PluginContext/PluginResult interfaces)
- manager: 6 tests (singleton, lifecycle methods, error on unknown)
- Total: 20 tests, all passing
2026-05-29 17:19:39 -03:00
oyi77
98b38223ae chore(plugins): slop cleanup — pino logger, remove redundant sorts
- index.ts: replace console.log/error with pino structured logging
- hooks.ts: remove redundant .sort() in emitHookBlocking/runOnResponse (already sorted on registration)
- manager.ts: add readFile import
2026-05-29 17:19:39 -03:00
oyi77
969e963b80 feat(discovery): add discovery tool stub service
Phase 1 scaffold for automated provider discovery:
- DiscoveryConfig, DiscoveryResult types
- probeEndpoint() for URL availability checking
- scanProvider() stub (Phase 2 will implement real scanning)
- getDiscoveryResults() stub
- Default config: disabled (opt-in)
2026-05-29 17:19:39 -03:00
oyi77
31a615c970 fix(plugins): security + ESM fixes for loader and manager
loader.ts:
- Fix IPC: use process.send()/process.on("message") instead of worker_threads.parentPort
- Fix ESM: write host script as .mjs (not .js) to force ESM execution
- Add timeout: 10s default on callHook() with Promise.race
- Add SIGKILL escalation: SIGTERM first, then SIGKILL after 3s grace
- Fix env filtering: use allowlist (safeKeys) instead of passing all env vars
- Clear timeout on successful IPC response (no timer leak)

manager.ts:
- Fix path traversal: use fs.realpath() instead of startsWith()
- Fix imports: use registerHook/unregisterHooks from hooks.ts
- Register hooks individually via registerHook(event, name, handler)

hooks.ts:
- Copied from feat/plugin-custom-hooks (canonical registry)
2026-05-29 17:19:39 -03:00
oyi77
46d01be10f fix(plugins): replace vm with child_process, add auth to all routes
Addresses all remaining code review feedback:

1. **Loader rewrite**: Replaced Node.js vm module with child_process.fork()
   for proper process-level isolation. Complies with Rule 3 (no eval).
   Each plugin runs in a separate Node.js process with IPC communication.

2. **Auth on all routes**: Added requireManagementAuth to all 6 plugin
   API route files (list, install, scan, details, activate, deactivate, config).

3. **Env filtering**: Only safe env vars passed to plugin processes unless
   "env" permission is granted.

Co-Authored-By: OpenClaude (mimo-v2.5-pro) <openclaude@gitlawb.com>
2026-05-29 17:19:39 -03:00
oyi77
087a880bdb fix(plugins): address code review feedback
- Path traversal guard: validate entryPoint stays within plugin dir
- install() now handles direct plugin directories (not just parent dirs)
- Non-null assertion replaced with explicit null check
- require efficiency: allowedModules map moved outside function
- Source wrapper: add newlines to prevent trailing comment issues
- Config validation: validate values against configSchema on save
- Dynamic import comment: clarify Node.js caching behavior

Co-Authored-By: OpenClaude (mimo-v2.5-pro) <openclaude@gitlawb.com>
2026-05-29 17:19:38 -03:00
oyi77
0974b96fa2 feat(plugins): WordPress-style plugin system backend 2026-05-29 17:19:38 -03:00
Halil Tezcan KARABULUT
25741a7fb0 fix(cleanup): restore usage history cutoff boundary 2026-05-29 17:19:38 -03:00
Halil Tezcan KARABULUT
6123e482a9 fix(analytics): address merged review regressions 2026-05-29 17:19:37 -03:00
R.D.
a7c098e36c Address zero-latency combo review feedback 2026-05-29 17:19:37 -03:00
R.D.
1ce07aa1ae Make zero-latency combo optimizations opt-in 2026-05-29 17:19:37 -03:00
R.D.
28ded81e74 fix(executor): normalize max effort for openai shape providers 2026-05-29 17:19:37 -03:00
Apostol Apostolov
863ee3e269 fix(settings): add missing security keys to updateSettingsSchema and add tests 2026-05-29 17:19:37 -03:00
Apostol Apostolov
fe990e0685 fix(settings): add missing home page pin keys to updateSettingsSchema 2026-05-29 17:19:37 -03:00
Apostol Apostolov
8a409fcad3 fix(dashboard): theme ReactFlow Controls +/- buttons for dark mode 2026-05-29 17:19:36 -03:00
diegosouzapw
c3e5f2de6f docs(changelog): rank 3.8.6 contributors in a commits table with their PRs 2026-05-29 17:18:26 -03:00
Halil Tezcan KARABULUT
b5f0d72b5c fix(cleanup): restore usage history cutoff boundary 2026-05-29 23:08:34 +03:00
diegosouzapw
d39d2719bb chore(release): sync v3.8.7 touchpoints + credit contributors
- llm.txt → 3.8.7 (Current version + Key Features header)
- CHANGELOG: add Dmitry Kuznetsov & Nikolay Alafuzov to 3.8.6 Hall of Contributors
- version already 3.8.7 across package.json/open-sse/electron/openapi (from #2909)
2026-05-29 16:54:11 -03:00
R.D.
8c4aafcbbb Address zero-latency combo review feedback 2026-05-29 15:51:44 -04:00
R.D.
99aac28434 Make zero-latency combo optimizations opt-in 2026-05-29 15:42:45 -04:00
R.D.
170b549bc7 fix(executor): normalize max effort for openai shape providers 2026-05-29 15:40:33 -04:00
Halil Tezcan KARABULUT
3ecd2a1b33 fix(analytics): address merged review regressions 2026-05-29 22:34:07 +03:00
diegosouzapw
a9bc0e8685 fix(types,test): resolve noImplicitAny in progressiveAging + align semaphore test to #2903 gate pruning
- progressiveAging: type compression results so messages[0].content is
  indexable (was TS7053 against {}); restores typecheck:noimplicit:core gate.
- services-branch-hardening: #2903 (perf-ram) prunes idle rate-limit gates
  on zero; assert no-running/empty-queue without assuming the entry persists.
2026-05-29 16:32:16 -03:00
diegosouzapw
87569d6a82 fix(usage): analytics route reads combo_name/requested_model from call_logs only
The 3.8.6 variant of #2904 added SELECTs of combo_name/requested_model
against usage_history, but those columns only exist in call_logs (no
migration adds them to usage_history). This returned HTTP 500 on
/api/usage/analytics. Restore the working query shape from the 3.8.7
variant. Fixes 18 failing usage-analytics-route tests.
2026-05-29 16:13:54 -03:00
Apostol Apostolov
ac517eab92 fix(settings): add missing security keys to updateSettingsSchema and add tests 2026-05-29 21:59:27 +03:00
oyi77
594972543f feat(plugins): add i18n keys to all 42 locales 2026-05-30 01:56:19 +07:00
Apostol Apostolov
043e36c60d fix(settings): add missing home page pin keys to updateSettingsSchema 2026-05-29 21:52:51 +03:00
Diego Rodrigues de Sa e Souza
ad14d99580 Merge release/v3.8.7 into main (#2909)
Hotfixes da release/v3.8.7 (perf RAM #2903, self-service #2908, analytics #2904, bump 3.8.7, docs) na main consolidada com 3.8.6.
2026-05-29 15:22:46 -03:00
diegosouzapw
95023d6eb1 merge: sync origin/main into release/v3.8.7 (keep newer analytics columns from main) 2026-05-29 15:21:38 -03:00
Diego Rodrigues de Sa e Souza
ddb61686c2 Merge release/v3.8.6 into main (#2910)
Sincroniza a main com os 103 commits acumulados em release/v3.8.6 após o release v3.8.6 (agy provider, web-cookie providers, zero-latency combos, per-API-key limits, security fixes, etc). Conflito pt-BR.json resolvido por união de chaves.
2026-05-29 15:18:09 -03:00
diegosouzapw
4b15a992d6 merge: sync origin/main into release/v3.8.6 (resolve pt-BR.json) 2026-05-29 15:10:41 -03:00
diegosouzapw
a086862c97 docs: add 3.8.7 changelog and release branch guidance
Update the main and localized changelogs with the 3.8.7 release notes, including new API self-service status, analytics retention, RAM optimizations, and token accounting fixes.

Clarify release skill instructions to ensure new release branches are always created from the latest main branch.
2026-05-29 13:57:57 -03:00
oyi77
478350ccfc test(plugins): add scanner, loader, manager unit tests
- scanner: 9 tests (discovery, hidden dirs, validation, entry point, multiple)
- loader: 5 tests (type contracts, Plugin/PluginContext/PluginResult interfaces)
- manager: 6 tests (singleton, lifecycle methods, error on unknown)
- Total: 20 tests, all passing
2026-05-29 23:51:10 +07:00
oyi77
20b2081099 chore(plugins): slop cleanup — pino logger, remove redundant sorts
- index.ts: replace console.log/error with pino structured logging
- hooks.ts: remove redundant .sort() in emitHookBlocking/runOnResponse (already sorted on registration)
- manager.ts: add readFile import
2026-05-29 23:49:23 +07:00
oyi77
5420c27b3a feat(discovery): add discovery tool stub service
Phase 1 scaffold for automated provider discovery:
- DiscoveryConfig, DiscoveryResult types
- probeEndpoint() for URL availability checking
- scanProvider() stub (Phase 2 will implement real scanning)
- getDiscoveryResults() stub
- Default config: disabled (opt-in)
2026-05-29 23:49:23 +07:00
oyi77
7466af0762 fix(plugins): security + ESM fixes for loader and manager
loader.ts:
- Fix IPC: use process.send()/process.on("message") instead of worker_threads.parentPort
- Fix ESM: write host script as .mjs (not .js) to force ESM execution
- Add timeout: 10s default on callHook() with Promise.race
- Add SIGKILL escalation: SIGTERM first, then SIGKILL after 3s grace
- Fix env filtering: use allowlist (safeKeys) instead of passing all env vars
- Clear timeout on successful IPC response (no timer leak)

manager.ts:
- Fix path traversal: use fs.realpath() instead of startsWith()
- Fix imports: use registerHook/unregisterHooks from hooks.ts
- Register hooks individually via registerHook(event, name, handler)

hooks.ts:
- Copied from feat/plugin-custom-hooks (canonical registry)
2026-05-29 23:48:54 +07:00
oyi77
50b5c30e31 fix(plugins): replace vm with child_process, add auth to all routes
Addresses all remaining code review feedback:

1. **Loader rewrite**: Replaced Node.js vm module with child_process.fork()
   for proper process-level isolation. Complies with Rule 3 (no eval).
   Each plugin runs in a separate Node.js process with IPC communication.

2. **Auth on all routes**: Added requireManagementAuth to all 6 plugin
   API route files (list, install, scan, details, activate, deactivate, config).

3. **Env filtering**: Only safe env vars passed to plugin processes unless
   "env" permission is granted.

Co-Authored-By: OpenClaude (mimo-v2.5-pro) <openclaude@gitlawb.com>
2026-05-29 23:48:54 +07:00
oyi77
ae6fd7ddc6 fix(plugins): address code review feedback
- Path traversal guard: validate entryPoint stays within plugin dir
- install() now handles direct plugin directories (not just parent dirs)
- Non-null assertion replaced with explicit null check
- require efficiency: allowedModules map moved outside function
- Source wrapper: add newlines to prevent trailing comment issues
- Config validation: validate values against configSchema on save
- Dynamic import comment: clarify Node.js caching behavior

Co-Authored-By: OpenClaude (mimo-v2.5-pro) <openclaude@gitlawb.com>
2026-05-29 23:48:53 +07:00
oyi77
7d6511598f feat(plugins): WordPress-style plugin system backend 2026-05-29 23:48:53 +07:00
mi
94682d2a76 perf(ram): reduce server memory footprint (#2903)
Integrated into release/v3.8.7
2026-05-29 13:21:36 -03:00