6 Commits

Author SHA1 Message Date
mmc
4748432501 fix: run bootstrap via module to avoid stdlib http shadowing
Switch container startup from file execution to module execution so
urllib can import stdlib http.client reliably.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 13:57:44 +08:00
GitHub Actions
2febc37c2c prod hardening: admin/metrics authz split, subprocess lifecycle, parallel pool start, HEALTHCHECK
- authz: new ADMIN_TOKEN gates /internal/*; METRICS_PUBLIC=false by default, so
  /metrics returns 503 when neither METRICS_TOKEN nor API_KEYS is set
  (previously leaked pool topology). Startup logs loudly if API_KEYS is empty
  or admin falls back to chat keys.
- lingma_client: keep a Popen handle instead of orphaning Lingma with
  start_new_session, drain stderr to logger at DEBUG, SIGTERM -> 5s grace ->
  SIGKILL on shutdown. Fixes the zombie-process leak on container reload.
- pool: asyncio.gather to start N instances concurrently; N=2 pool shaves
  ~startup_timeout seconds off boot.
- Dockerfile: HEALTHCHECK hits /healthz and greps for pool_ready>0 so Docker
  / compose orchestrators see "stuck on login" as unhealthy.

Made-with: Cursor
2026-04-18 10:22:13 +08:00
root
4e5f451489 chore: simplify build to fixed Tencent pip mirror
Some checks failed
CI / lint-and-compile (push) Has been cancelled
CI / lint-and-compile (pull_request) Has been cancelled
2026-04-17 16:29:18 +08:00
root
d2995b2c48 chore: add auto pip mirror selection by region
Some checks failed
CI / lint-and-compile (push) Has been cancelled
CI / lint-and-compile (pull_request) Has been cancelled
2026-04-17 16:20:32 +08:00
root
b621c4aca7 feat: bootstrap Lingma from latest marketplace VSIX
Some checks failed
CI / lint-and-compile (push) Has been cancelled
CI / lint-and-compile (pull_request) Has been cancelled
2026-04-17 10:44:37 +08:00
root
5526779e98 chore: initialize clean history without secrets
Some checks failed
CI / lint-and-compile (push) Has been cancelled
2026-04-17 09:56:08 +08:00