Use proper import type instead of inline import() type annotations
that violate @typescript-eslint/consistent-type-imports rule.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
node-pty requires a compiled native addon (.node binary) that may not
be available in all Docker environments. The eager import crashed the
entire API at startup. Changed to dynamic import() in onModuleInit()
so the service degrades gracefully — terminal sessions are disabled
but all other API functionality works.
Also added explicit node-gyp rebuild to Dockerfile deps stage since
pnpm may skip postinstall scripts for native addons.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>