Refine desktop setup and remove bundled app center apps
This commit is contained in:
@@ -19,6 +19,11 @@ import {
|
||||
getProviderDefaultModel,
|
||||
getProviderConfig,
|
||||
} from './provider-registry';
|
||||
import {
|
||||
YINIAN_LEGACY_MODEL_REFS,
|
||||
YINIAN_MODEL_PROVIDER_KEY,
|
||||
YINIAN_MODEL_REF,
|
||||
} from '../../shared/yinian-model';
|
||||
import {
|
||||
OPENCLAW_PROVIDER_KEY_MINIMAX,
|
||||
OPENCLAW_PROVIDER_KEY_MOONSHOT,
|
||||
@@ -33,7 +38,8 @@ const AUTH_PROFILE_FILENAME = 'auth-profiles.json';
|
||||
const LEGACY_MINIMAX_OAUTH_PLUGIN_ID = 'minimax-portal-auth';
|
||||
const MERGED_MINIMAX_PLUGIN_ID = 'minimax';
|
||||
const YINIAN_DESKTOP_TOOLS_PROFILE = 'coding';
|
||||
const YINIAN_INTERNAL_MODEL_REF = 'minimax/MiniMax-M2.7';
|
||||
const YINIAN_INTERNAL_MODEL_REF = YINIAN_MODEL_REF;
|
||||
const YINIAN_LEGACY_INTERNAL_MODEL_REFS = new Set<string>(YINIAN_LEGACY_MODEL_REFS);
|
||||
const YINIAN_FALLBACK_SKILL_IDS = ['docx', 'pdf', 'pptx', 'xlsx', 'design', 'image-search', 'web-search'];
|
||||
const YINIAN_SKILLS_LIMITS = {
|
||||
maxCandidatesPerRoot: 24,
|
||||
@@ -46,14 +52,13 @@ const YINIAN_WEB_TOOL_GUARD_ENV = 'YINIAN_ENABLE_OPENCLAW_WEB_TOOLS';
|
||||
const YINIAN_WEB_TOOL_DENY = ['group:web', 'web_search', 'web_fetch', 'x_search'];
|
||||
const YINIAN_WEB_FETCH_TIMEOUT_SECONDS = 8;
|
||||
const YINIAN_CORE_PLUGIN_IDS = new Set([
|
||||
'minimax',
|
||||
'cloud-sync',
|
||||
'openclaw-weixin',
|
||||
'agentbus',
|
||||
]);
|
||||
const YINIAN_BASE_PLUGIN_IDS = new Set(['minimax', 'cloud-sync']);
|
||||
const YINIAN_BASE_PLUGIN_IDS = new Set(['cloud-sync']);
|
||||
const YINIAN_CORE_CHANNEL_IDS = new Set(['openclaw-weixin', 'agentbus']);
|
||||
const YINIAN_DISABLED_CHANNEL_IDS = new Set(['feishu', 'dingtalk', 'wecom']);
|
||||
const YINIAN_DISABLED_CHANNEL_IDS = new Set(['dingtalk', 'wecom']);
|
||||
|
||||
interface BundledPluginManifest {
|
||||
id: string;
|
||||
@@ -1122,12 +1127,13 @@ function resolveYinianEnabledSkillIds(config: Record<string, unknown>): string[]
|
||||
function isYinianManagedConfig(config: Record<string, unknown>): boolean {
|
||||
const models = isPlainRecord(config.models) ? config.models : null;
|
||||
const providers = models && isPlainRecord(models.providers) ? models.providers : null;
|
||||
if (providers && isPlainRecord(providers[OPENCLAW_PROVIDER_KEY_MINIMAX])) return true;
|
||||
if (providers && isPlainRecord(providers[YINIAN_MODEL_PROVIDER_KEY])) return true;
|
||||
|
||||
const agents = isPlainRecord(config.agents) ? config.agents : null;
|
||||
const defaults = agents && isPlainRecord(agents.defaults) ? agents.defaults : null;
|
||||
const model = defaults && isPlainRecord(defaults.model) ? defaults.model : null;
|
||||
return model?.primary === YINIAN_INTERNAL_MODEL_REF;
|
||||
return model?.primary === YINIAN_INTERNAL_MODEL_REF
|
||||
|| (typeof model?.primary === 'string' && YINIAN_LEGACY_INTERNAL_MODEL_REFS.has(model.primary));
|
||||
}
|
||||
|
||||
function trimYinianPluginSurface(config: Record<string, unknown>): boolean {
|
||||
|
||||
Reference in New Issue
Block a user