learning_ai_common_plat/services/cowork-service/src/modules
saravanakumardb1 dda74c2d20 feat(cowork-service): POST /api/plugins/reload
Hot-reload the orchestrator's on-disk plugin registry without a
restart. Routes to the reload_plugins Rust IPC method, gated by the
same authz the orchestrator enforces (admin role OR platform-signed
JWT) so a forbidden caller gets a canonical ForbiddenError envelope
instead of a raw IPC error passthrough. The response body is a
ReloadStats { loaded, added, removed, updated, errors } summary,
validated against ReloadResponseSchema before being returned to the
caller.

Tests cover: admin success (200 + envelope), user-without-platform
(403 before IPC), bridge unavailable (400), orchestrator -32003 →
ForbiddenError, other IPC errors → BadRequestError, malformed
orchestrator payloads → BadRequestError.

Phase: 3.1
Verified: pnpm -r typecheck, pnpm --filter @lysnrai/cowork-service {lint,build,test}
(140 passed, 6 new reload tests)
2026-04-16 15:45:42 -07:00
..
agent-runtime feat(runtime): add Cowork checkpoint drill-in 2026-04-04 17:29:12 -07:00
audit fix(cowork-service): audit proxy missing taskId and tool query param forwarding 2026-04-03 01:05:56 -07:00
extraction test(cowork-service): integration tests for proxy routes — 80 tests passing 2026-04-03 00:13:13 -07:00
health test(cowork-service): add product-config, feature-flags, health routes tests 2026-04-02 22:22:59 -07:00
llm feat(cowork-service): H.7 — wire @bytelyst/llm-router for multi-model routing 2026-04-02 23:10:07 -07:00
marketplace fix(cowork-service): audit fixes — JWT auth forwarding + temperature:0 falsy bug 2026-04-03 01:32:34 -07:00
notifications test(cowork-service): integration tests for proxy routes — 80 tests passing 2026-04-03 00:13:13 -07:00
plugins feat(cowork-service): POST /api/plugins/reload 2026-04-16 15:45:42 -07:00
push feat(cowork-service): H.9 push notification stubs 2026-04-03 13:55:10 -07:00
schedule feat(cowork-service): add deferred IPC modules 2026-04-03 13:44:13 -07:00
sessions feat(cowork-service): add deferred IPC modules 2026-04-03 13:44:13 -07:00
tasks feat(cowork-service): ecosystem alignment + IPC bridge to Rust runtime 2026-04-02 22:14:24 -07:00
usage fix(cowork-service): preserve budget policy auth errors 2026-04-03 14:09:52 -07:00