(configPath: string)
| 43 | } |
| 44 | |
| 45 | function hasRealProviderConfig(configPath: string): boolean { |
| 46 | if (process.env.A3S_CONFIG) return true; |
| 47 | if (configPath.endsWith('test_config.acl')) { |
| 48 | return Boolean(process.env.OPENAI_API_KEY && process.env.OPENAI_BASE_URL); |
| 49 | } |
| 50 | return true; |
| 51 | } |
| 52 | |
| 53 | // Simulate NestJS-like environment where Tokio runtime already exists |
| 54 | async function simulateNestedRuntime() { |