learning_ai_common_plat/services/cowork-service
Saravana Kumar ec055f6948 fix(infra,cowork): remove broken Cosmos emulator; harden IPC bridge
docker-compose:
  - Drop the cosmos-emulator service block. Both image variants we
    tried were unfit for the prototype: `:vnext-preview` returned
    plain-text PGCosmosError strings that crashed @azure/cosmos at
    JSON.parse, and `:latest` core-dumped under load. The container
    has been Exited(255) for weeks and was blocking depends_on chains.
  - Real Azure Cosmos account `cosmos-mywisprai` (db `bytelyst`,
    West US 2) is now the single source of truth; all services pick
    up COSMOS_ENDPOINT/KEY/DATABASE from `.env` (already mounted via
    `env_file: .env`).
  - extraction-service: drop hardcoded `COSMOS_ENDPOINT=…cosmos-emulator…`,
    `NODE_TLS_REJECT_UNAUTHORIZED=0`, and `depends_on: cosmos-emulator`.
  - cowork-service: same cleanup.

cowork-service IPC bridge:
  - Add `error` listeners to the spawned child's stdin/stdout/stderr.
    Without them, an EPIPE on stdin (child died mid-write) or a
    teardown-time stream error surfaced as an unhandled error and
    crashed vitest after all 140 tests had passed.
  - Removes the only failing recursive test in the workspace.

Test status after this commit:
  - 94 workspace packages, all green
  - cowork-service: 19 passed | 1 skipped (140 tests)
  - platform-service: 131 test files passed
  - extraction-service: 13 test files passed
  - All other packages: passing

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-30 10:27:12 +00:00
..
e2e test(cowork-service): skip integration suite without credentials 2026-04-03 13:58:28 -07:00
src fix(infra,cowork): remove broken Cosmos emulator; harden IPC bridge 2026-05-30 10:27:12 +00:00
Dockerfile feat(docker): INFRA-gap-01 wire cowork-service into compose stack 2026-04-16 13:07:11 -07:00
package.json feat(cowork-service): add runtime projection routes 2026-04-04 01:52:04 -07:00
tsconfig.json feat(cowork-service): scaffold Fastify bridge + seed clawcowork feature flags (H.1 + H.2) 2026-04-02 20:39:22 -07:00
vitest.config.ts feat(cowork-service): scaffold Fastify bridge + seed clawcowork feature flags (H.1 + H.2) 2026-04-02 20:39:22 -07:00