fix: stabilize local folder AI document workflow
- scope local-folder PageTree revision and document sidebar rendering to fileTreeScope - preserve projected table/image attrs for local Markdown aggregate fallback - avoid FileTree restore forced layouts on cold design open - add API ChatOnly provider runtime and local OCR task handling regressions
This commit is contained in:
@@ -33,7 +33,13 @@ export function createSidebarPageAiRuntime(context) {
|
||||
var PAGE_AI_CHAT_ONLY_PROFILE_REGISTRY = [
|
||||
{ profileId: 'shared_deepseek_chat', baseProfile: 'deepseek-chat', label: 'DeepSeek' },
|
||||
{ profileId: 'shared_doubao_chat', baseProfile: 'doubao-chat', label: '豆包' },
|
||||
{ profileId: 'shared_gemini_chat', baseProfile: 'gemini-chat', label: 'Gemini' }
|
||||
{ profileId: 'shared_gemini_chat', baseProfile: 'gemini-chat', label: 'Gemini' },
|
||||
{ profileId: 'shared_api_deepseek_flash_chat', baseProfile: 'api-deepseek-flash-chat', label: 'DeepSeek Flash', providerKind: 'api-chat' },
|
||||
{ profileId: 'shared_api_deepseek_pro_chat', baseProfile: 'api-deepseek-pro-chat', label: 'DeepSeek Pro', providerKind: 'api-chat' },
|
||||
{ profileId: 'shared_api_gpt_chat', baseProfile: 'api-gpt-chat', label: 'GPT', providerKind: 'api-chat' },
|
||||
{ profileId: 'shared_api_kimi_chat', baseProfile: 'api-kimi-chat', label: 'Kimi', providerKind: 'api-chat' },
|
||||
{ profileId: 'shared_api_gemini_chat', baseProfile: 'api-gemini-chat', label: 'Gemini API', providerKind: 'api-chat' },
|
||||
{ profileId: 'shared_api_grok_chat', baseProfile: 'api-grok-chat', label: 'Grok API', providerKind: 'api-chat' }
|
||||
];
|
||||
var PAGE_AI_CONTEXT_REF_REGISTRY = [
|
||||
{ id: 'current_page', label: '当前页' },
|
||||
@@ -731,6 +737,7 @@ export function createSidebarPageAiRuntime(context) {
|
||||
alias: spec.label,
|
||||
kind: 'shared',
|
||||
baseProfile: spec.baseProfile,
|
||||
providerKind: spec.providerKind || '',
|
||||
readonly: true
|
||||
}, { menuLabel: spec.label });
|
||||
});
|
||||
@@ -763,6 +770,7 @@ export function createSidebarPageAiRuntime(context) {
|
||||
ownerUserId: String(profile && profile.ownerUserId || '').trim(),
|
||||
baseProfile: String(profile && profile.baseProfile || '').trim(),
|
||||
isolatedProfile: String(profile && profile.isolatedProfile || '').trim(),
|
||||
providerKind: String(profile && profile.providerKind || profile && profile.provider_kind || '').trim(),
|
||||
canRun: profile ? profile.canRun !== false : true,
|
||||
canManageSkills: canManageSkills,
|
||||
canManageConfig: profile ? profile.canManageConfig !== false : canManageSkills,
|
||||
|
||||
Reference in New Issue
Block a user