(stateDir: string)
| 978 | } |
| 979 | |
| 980 | function createWeixinServeCodexGoalManager(stateDir: string) { |
| 981 | return new CodexGoalManager({ |
| 982 | filePath: path.join(path.resolve(stateDir), 'runtime', 'codex-goal.txt'), |
| 983 | }); |
| 984 | } |
| 985 | |
| 986 | async function stopRuntimeProviderPlugins(providerPlugins: any[]) { |
| 987 | await Promise.allSettled(providerPlugins.map((plugin) => plugin?.stop?.())); |
no test coverage detected