Commit graph

3 commits

Author SHA1 Message Date
Richard R
74a96c0d15 refactor(compute-worker): improve docstore directory resolution logic
Update resolveDocstoreDir to handle multiple environments:
- Prefer monorepo root for local development
- Check process.env.PWD for containerized bootstrap
- Fallback to standard /app/docstore path
- Default to process cwd

Enhances robustness of docstore path resolution across deployment scenarios.
2026-06-13 14:18:45 -06:00
Richard R
9520e26a00 fix(compute-worker): wrap state store methods to ensure correct invocation
Fix/refactor reconciliation logic to wrap getOpStateRecord and listOpStates methods
from the state store, ensuring they are invoked as functions rather than accessed
as properties. This improves type safety and prevents potential runtime errors
from improper method usage.
2026-06-13 14:03:54 -06:00
Richard R
358a56cc9a refactor: implement modular monorepo packages
- Extract database schema and migrations into @openreader/database

- Extract startup and orchestration scripts into @openreader/bootstrap

- Move compute-worker into packages/compute-worker

- Remove runtime dependency on drizzle-kit

- Update Dockerfile to deploy isolated packages without merging node_modules
2026-06-13 13:51:18 -06:00