learning_ai_common_plat/services/cowork-service/src/lib
saravanakumardb1 d838cd658b feat(cowork-service): IPC LLM interception — Rust runtime delegates LLM calls to multi-provider router
Add reverse-IPC protocol support: Rust runtime can send intercept_llm
requests to cowork-service, which routes them through @bytelyst/llm-router.

Changes:
- ipc-bridge.ts: handleLine now detects incoming requests (has 'method' field)
  vs normal responses. New handleIncoming() + sendResponse() for reverse IPC.
  New onIncomingRequest() to register the handler.
- server.ts: Wires intercept_llm handler — validates messages, calls
  getLlmRouter().chat(), records spend for budget tracking, logs provider/model.
- ipc-bridge.test.ts: 5 new tests for reverse IPC (handler registration,
  routing, error handling, request vs response disambiguation).
- server.test.ts: Updated IPC bridge mock with onIncomingRequest.

Test count: 85 (was 80)
2026-04-03 01:11:34 -07:00
..
auth.ts feat(cowork-service): ecosystem alignment + IPC bridge to Rust runtime 2026-04-02 22:14:24 -07:00
config.ts feat(cowork-service): H.10 extraction proxy routes + EXTRACTION_SERVICE_URL config 2026-04-03 00:04:11 -07:00
feature-flags.test.ts test(cowork-service): add product-config, feature-flags, health routes tests 2026-04-02 22:22:59 -07:00
feature-flags.ts fix(cowork-service): audit flush field name mismatch + server test mock gap 2026-04-02 23:02:38 -07:00
flush-scheduler.test.ts fix(cowork-service): audit flush field name mismatch + server test mock gap 2026-04-02 23:02:38 -07:00
flush-scheduler.ts fix(cowork-service): audit flush field name mismatch + server test mock gap 2026-04-02 23:02:38 -07:00
ipc-bridge.test.ts feat(cowork-service): IPC LLM interception — Rust runtime delegates LLM calls to multi-provider router 2026-04-03 01:11:34 -07:00
ipc-bridge.ts feat(cowork-service): IPC LLM interception — Rust runtime delegates LLM calls to multi-provider router 2026-04-03 01:11:34 -07:00
llm-router.ts fix(cowork-service): audit H.7 — fix LLM timeout, harden test mocks, add Ollama config 2026-04-02 23:37:50 -07:00
platform-client.test.ts test(cowork-service): platform-client + flush-scheduler tests (17 new tests) 2026-04-02 22:53:04 -07:00
platform-client.ts feat(cowork-service): platform-client + flush scheduler (H.4-H.8 TS wiring) 2026-04-02 22:50:00 -07:00
product-config.test.ts test(cowork-service): add product-config, feature-flags, health routes tests 2026-04-02 22:22:59 -07:00
product-config.ts feat(cowork-service): ecosystem alignment + IPC bridge to Rust runtime 2026-04-02 22:14:24 -07:00
request-context.ts feat(cowork-service): ecosystem alignment + IPC bridge to Rust runtime 2026-04-02 22:14:24 -07:00
telemetry.ts feat(cowork-service): ecosystem alignment + IPC bridge to Rust runtime 2026-04-02 22:14:24 -07:00