()
| 188 | } |
| 189 | |
| 190 | function isDevEnvironment(): boolean { |
| 191 | if (process.env.CHATLAB_SKIP_UPDATE_CHECK) return true |
| 192 | if (process.env.NODE_ENV === 'development') return true |
| 193 | const entryFile = process.argv[1] || '' |
| 194 | return entryFile.endsWith('.ts') || entryFile.endsWith('.mts') |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | * Fire-and-forget: fetch latest version from npm and update local cache. |
no outgoing calls
no test coverage detected