This repository has been archived on 2026-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
caelum0x 3408f0c873 feat(docker): bring AITM services into the compose stack (+ mcp/gitnexus Dockerfiles)
aitm-api, aitm-mcp, and gitnexus now build and run healthy in the same
docker-compose stack as gitgram Postgres+Redis.

- NEW aitimemachine/mcp/Dockerfile — multi-stage; builds gitnexus-shared,
  gitnexus (native tree-sitter), the root @gitgram/timemachine lib (rewritten to
  file:.. + --install-links so file: engine deps are copied, not symlinked), then
  the mcp server; runtime starts HTTP transport (node dist/index.js --transport http).
- NEW aitimemachine/gitnexus/Dockerfile — multi-stage (python3/make/g++ for
  tree-sitter); builds gitnexus-shared then gitnexus; serve on 0.0.0.0:3010.
- compose: fix build contexts to the aitimemachine root for aitm-api, aitm-mcp,
  gitnexus (so file:../ engine siblings resolve); gitnexus host port 3010->13010
  (stray host process owned :3010; internal port unchanged).
- scripts/build-engines.sh: npm install before TS engine build when node_modules absent.
- api-server: regenerate stale package-lock; declare ioredis as optionalDependency
  and drop the @ts-ignore in providerHealthService (typed dynamic import, tsc clean).

Verified: aitm-api :3001/health, aitm-mcp :3003/health, gitnexus :13010/api/health
all 200 healthy. aitm-website needs a Clerk key; context7 service def is pre-existing-broken.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 03:01:10 +03:00

64 lines
2.2 KiB
JSON

{
"name": "@gitgram/timemachine-api",
"version": "1.0.0",
"description": "Gitgram TimeMachine Cloud Sync API Server",
"type": "module",
"main": "dist/index.js",
"scripts": {
"dev": "node scripts/ensure-local-env.mjs && node --import tsx src/server.ts",
"dev:watch": "node scripts/ensure-local-env.mjs && tsx watch src/server.ts",
"dev:clean": "node scripts/ensure-local-env.mjs && node --import tsx src/server.ts",
"dev:nolisten": "node scripts/ensure-local-env.mjs && AITM_TEST_NO_LISTEN=1 node --import tsx src/server.ts",
"build": "tsc",
"build:engines": "bash ../scripts/build-engines.sh",
"ensure:engines": "node scripts/ensure-engines.mjs",
"prestart": "node scripts/ensure-engines.mjs",
"start": "node dist/server.js",
"db:push": "drizzle-kit push",
"db:migrate": "drizzle-kit migrate",
"test": "vitest run",
"test:watch": "vitest",
"test:integration:local": "AITM_TEST_NO_LISTEN=0 vitest run tests/integration",
"test:integration:safe": "node scripts/run-integration-safe.mjs",
"eval:universal-search": "tsx scripts/universal-search-eval.ts",
"worker:delete-requests": "tsx scripts/process-delete-requests.ts",
"worker:retention": "tsx scripts/process-retention.ts"
},
"dependencies": {
"@a2a-js/sdk": "^0.3.13",
"@aws-sdk/client-s3": "^3.600.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"@neondatabase/serverless": "^1.0.2",
"@polar-sh/sdk": "^0.30.0",
"@sentry/node": "^8.0.0",
"@upstash/context7-sdk": "*",
"cheerio": "^1.2.0",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"drizzle-orm": "^0.44.0",
"express": "^4.18.2",
"gitnexus": "file:../gitnexus",
"gitnexus-shared": "file:../gitnexus-shared",
"pdf-parse": "^1.1.1",
"pg": "^8.16.3",
"resend": "^6.9.1",
"uuid": "^11.1.0",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/node": "^20.10.0",
"@types/supertest": "^6.0.3",
"@types/uuid": "^9.0.8",
"drizzle-kit": "^0.31.8",
"supertest": "^7.2.2",
"tsx": "^4.6.0",
"typescript": "^5.3.0",
"vitest": "^4.0.18"
},
"optionalDependencies": {
"ioredis": "^5.11.1"
}
}