import { AINativeServerModule } from '@codeblitzjs/ide-sumi-core';
import { AINativeModule } from '@opensumi/ide-ai-native/lib/browser';
export function interceptAppOpts(opts, runtimeConfig) {
    var _a;
    const { modules } = opts;
    if ((_a = runtimeConfig.aiNative) === null || _a === void 0 ? void 0 : _a.enable) {
        if (modules.indexOf(AINativeModule) === -1) {
            modules.push(AINativeModule);
            modules.push(AINativeServerModule);
        }
    }
    return opts;
}
//# sourceMappingURL=opts.js.map