hbf-lcm Gotchas
Package-specific pitfalls and non-obvious patterns. Loaded automatically by workflow commands.
Bugs (Known)
- Swagger version bug (HAP-79):
src/main.ts:30calls.setVersion(process.env.npm_package_name)instead ofnpm_package_version. Swagger shows package name, not version number. - Monitor timezone bug (HAP-50):
monitor.service.tscompares UTCnew Date()against MySQLstartDatewhich stores local time (UTC+3 in production). ThetimeDiffcalculation produces a 3-hour offset, causing conversations to be auto-terminated ~9 seconds after creation instead of after the configured expiration. Workaround: setMONITOR_ENABLED=falseduring local dev testing.