Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/desktop/e2e/accessibility-coverage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ test('data-backed conversation exposes ordered todos and keyboard access to tool
const modelSwitcher = page.getByRole('button', { name: '切换当前任务模型' });
await tabTo(page, modelSwitcher, 'model picker');
await page.keyboard.press('Enter');
await expect(page.getByRole('menuitem', { name: /glm-5\.1/ })).toBeVisible();
await expect(page.getByRole('menuitemradio', { name: /glm-5\.1/ })).toBeVisible();
await assertAxHealth(cdp, 'conversation/model-picker');
const availableModel = page.getByRole('menuitem', { name: 'glm-4.5', exact: true });
const availableModel = page.getByRole('menuitemradio', { name: 'glm-4.5', exact: true });
await expect(availableModel).toBeFocused();
await page.keyboard.press('Enter');
await expect(modelSwitcher).toContainText('glm-4.5');
Expand Down
66 changes: 8 additions & 58 deletions apps/desktop/renderer-architecture.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"src/renderer/app-shell-project-actions.ts",
"src/renderer/app-shell-revision-actions.ts",
"src/renderer/app-shell-session-events.ts",
"src/renderer/app-shell-session-settings-actions.ts",
"src/renderer/app-shell-session-start-actions.ts",
"src/renderer/app-shell-session-ui-state.ts",
"src/renderer/app-shell-stop-action.ts",
Expand Down Expand Up @@ -234,7 +233,6 @@
"src/renderer/use-new-task-choice.ts",
"src/renderer/use-onboarding-snapshot.ts",
"src/renderer/use-project-context.ts",
"src/renderer/use-session-setting-intent.ts",
"src/renderer/use-settings-modal.ts",
"src/renderer/use-shell-appearance.ts",
"src/renderer/use-shell-chat-model.ts",
Expand Down Expand Up @@ -710,34 +708,6 @@
"importSpecifiers": 21,
"nonTriviaTokens": 2974
},
"src/renderer/app-shell-session-settings-actions.ts": {
"importDeclarations": 9,
"bridgePaths": {
"window.maka.sessions.setModel": 1,
"window.maka.sessions.setPermissionMode": 1,
"window.maka.sessions.setThinkingLevel": 1
},
"environmentCapabilities": {},
"hookCalls": {},
"lifecycleMethods": {},
"unresolvedDependencies": 0,
"actionFactories": [
"createAppShellSessionSettingsActions"
],
"dependencyPaths": {
"../preload/bridge-contract.js": 1,
"./app-shell-session-ui-state.js": 1,
"./locales/shell-copy.js": 1,
"@maka/core/llm-connections": 1,
"@maka/core/model-thinking": 1,
"@maka/core/permission": 1,
"@maka/core/session": 1,
"@maka/core/settings": 1,
"@maka/core/ui-locale": 1
},
"importSpecifiers": 11,
"nonTriviaTokens": 1264
},
"src/renderer/app-shell-session-start-actions.ts": {
"importDeclarations": 7,
"bridgePaths": {
Expand Down Expand Up @@ -784,7 +754,7 @@
"react": 1
},
"importSpecifiers": 8,
"nonTriviaTokens": 1223
"nonTriviaTokens": 1183
},
"src/renderer/app-shell-stop-action.ts": {
"importDeclarations": 4,
Expand Down Expand Up @@ -859,7 +829,7 @@
"nonTriviaTokens": 1425
},
"src/renderer/app-shell.tsx": {
"importDeclarations": 107,
"importDeclarations": 105,
"bridgePaths": {
"window.maka.app.installUpdate": 1,
"window.maka.app.retryUpdateDownload": 1,
Expand All @@ -884,7 +854,6 @@
"window.maka.sessions.reorderQueueEntries": 1,
"window.maka.sessions.retractQueueEntry": 1,
"window.maka.sessions.setCollaborationMode": 1,
"window.maka.sessions.setOrchestrationMode": 1,
"window.maka.sessions.subscribeActiveInteractions": 1,
"window.maka.sessions.updateQueueEntry": 1,
"window.maka.settings.getClient": 1,
Expand Down Expand Up @@ -928,7 +897,7 @@
"useSessionCollaborationDialog": 1,
"useSessionEventHealthPolling": 1,
"useSessionNavigationReads": 1,
"useSessionSettingIntent": 2,
"useSessionSettingIntent": 1,
"useSettingsModal": 1,
"useShellAppearance": 1,
"useShellChatModel": 1,
Expand All @@ -938,7 +907,7 @@
"useShellResume": 1,
"useShellRunUpdates": 1,
"useShellSearch": 1,
"useStableActions": 7,
"useStableActions": 6,
"useState": 17,
"useSystemUiLocale": 1,
"useTaskEntryController": 1,
Expand All @@ -965,7 +934,6 @@
"./app-shell-overlays": 1,
"./app-shell-revision-actions": 1,
"./app-shell-session-events": 1,
"./app-shell-session-settings-actions": 1,
"./app-shell-session-start-actions": 1,
"./app-shell-stop-action": 1,
"./app-shell-turn-actions": 1,
Expand All @@ -986,6 +954,7 @@
"./features/module-hub": 1,
"./features/session-collaboration": 1,
"./features/session-navigation": 1,
"./features/session-settings": 1,
"./features/task-entry": 1,
"./features/workbar": 1,
"./follow-up-submit-routing": 1,
Expand Down Expand Up @@ -1016,11 +985,9 @@
"./use-app-shell-session-ui-reads": 1,
"./use-app-shell-session-workspace": 1,
"./use-composer-attachments": 1,
"./use-external-store-selector": 1,
"./use-new-task-choice": 1,
"./use-onboarding-snapshot": 1,
"./use-project-context": 1,
"./use-session-setting-intent": 1,
"./use-settings-modal": 1,
"./use-shell-appearance": 1,
"./use-shell-chat-model": 1,
Expand Down Expand Up @@ -1057,7 +1024,7 @@
"react": 1
},
"importSpecifiers": 186,
"nonTriviaTokens": 15800
"nonTriviaTokens": 15779
},
"src/renderer/use-app-shell-composer-quotes.ts": {
"importDeclarations": 3,
Expand Down Expand Up @@ -1112,7 +1079,7 @@
"bridgePaths": {},
"environmentCapabilities": {},
"hookCalls": {
"useExternalStoreSelector": 9
"useExternalStoreSelector": 7
},
"lifecycleMethods": {},
"unresolvedDependencies": 0,
Expand All @@ -1124,7 +1091,7 @@
"@maka/ui": 1
},
"importSpecifiers": 10,
"nonTriviaTokens": 391
"nonTriviaTokens": 329
},
"src/renderer/use-app-shell-session-workspace.ts": {
"importDeclarations": 11,
Expand Down Expand Up @@ -2046,7 +2013,6 @@
"actionFactories": [],
"dependencyPaths": {
"@maka/core/goal": 1,
"@maka/core/model-thinking": 1,
"@maka/core/permission": 1,
"@maka/core/redaction": 1,
"@maka/core/settings": 1,
Expand Down Expand Up @@ -4926,21 +4892,6 @@
"react": 1
}
},
"src/renderer/use-session-setting-intent.ts": {
"bridgePaths": {},
"environmentCapabilities": {},
"hookCalls": {
"useEffect": 1,
"useRef": 2,
"useState": 1
},
"lifecycleMethods": {},
"unresolvedDependencies": 0,
"actionFactories": [],
"dependencyPaths": {
"react": 1
}
},
"src/renderer/use-settings-modal.ts": {
"bridgePaths": {},
"environmentCapabilities": {
Expand Down Expand Up @@ -5597,7 +5548,6 @@
"legacyPaths": [
"src/renderer/app-shell-context-compaction.ts",
"src/renderer/app-shell-revision-actions.ts",
"src/renderer/app-shell-session-settings-actions.ts",
"src/renderer/app-shell-stop-action.ts",
"src/renderer/app-shell-turn-actions.ts"
]
Expand Down
Loading