()
| 903 | } |
| 904 | |
| 905 | private assertPluginsLoaded(): void { |
| 906 | if (this.pluginsLoadError === undefined) return; |
| 907 | throw new KimiError( |
| 908 | ErrorCodes.PLUGIN_LOAD_FAILED, |
| 909 | `Plugin state failed to load: ${this.pluginsLoadError.message}. ` + |
| 910 | `Fix the file at ${this.homeDir}/plugins/installed.json and run /plugins reload.`, |
| 911 | { cause: this.pluginsLoadError, details: { kimiHomeDir: this.homeDir } }, |
| 912 | ); |
| 913 | } |
| 914 | |
| 915 | private async resolveRuntime(config: KimiConfig): Promise<ToolServices> { |
| 916 | if (this.runtime !== undefined) return this.runtime; |
no outgoing calls
no test coverage detected