Skip to content

Commit 37fa311

Browse files
fix(desktop): route start mode via contract
Legacy AppShell dependencies may migrate only behind approved renderer ownership boundaries.
1 parent 9e36938 commit 37fa311

4 files changed

Lines changed: 24 additions & 4 deletions

File tree

apps/desktop/renderer-architecture.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@
431431
"dependencyPaths": {
432432
"../preload/diagnostics-contract.js": 1,
433433
"./app-shell-copy.js": 1,
434+
"./application/contracts/session-start-mode.js": 1,
434435
"./command-palette-commands.js": 1,
435436
"./command-palette-types.js": 1,
436437
"./conversation-markdown.js": 1,
@@ -440,7 +441,6 @@
440441
"@maka/core/llm-connections": 1,
441442
"@maka/core/permission": 1,
442443
"@maka/core/session": 1,
443-
"@maka/core/session-start-mode": 1,
444444
"@maka/core/settings": 1,
445445
"@maka/core/ui-locale": 1,
446446
"@maka/ui": 1,
@@ -756,10 +756,10 @@
756756
],
757757
"dependencyPaths": {
758758
"../preload/bridge-contract.js": 1,
759+
"./application/contracts/session-start-mode.js": 1,
759760
"./locales/shell-copy.js": 1,
760761
"./model-connection-errors.js": 1,
761762
"./session-workspace-errors.js": 1,
762-
"@maka/core/session-start-mode": 1,
763763
"@maka/core/ui-locale": 1,
764764
"@maka/ui": 1
765765
},

apps/desktop/src/renderer/app-shell-command-actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
import { useMemo, useRef } from "react";
2121
import type { LlmConnection } from '@maka/core/llm-connections';
2222
import type { PermissionMode } from '@maka/core/permission';
23-
import type { SessionStartMode } from '@maka/core/session-start-mode';
2423
import type { SessionSummary, StoredMessage } from '@maka/core/session';
2524
import type { SettingsSection, ThemePreference } from '@maka/core/settings';
2625
import type { UiLocale } from '@maka/core/ui-locale';
2726
import type { NavSelection } from "@maka/ui";
2827
import type { DesktopManualDiagnosticTarget } from '../preload/diagnostics-contract.js';
28+
import type { SessionStartMode } from './application/contracts/session-start-mode.js';
2929
import {
3030
defaultRuntimeHostDiagnosticTarget,
3131
runOnDefaultRuntimeHost,

apps/desktop/src/renderer/app-shell-session-start-actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* under the License.
1818
*/
1919

20-
import type { SessionStartMode } from '@maka/core/session-start-mode';
2120
import type { UiLocale } from '@maka/core/ui-locale';
2221
import type { NavSelection } from '@maka/ui';
2322
import type { DesktopNewTaskTarget } from '../preload/bridge-contract.js';
23+
import type { SessionStartMode } from './application/contracts/session-start-mode.js';
2424
import { getShellCopy, localizedShellErrorMessage } from './locales/shell-copy.js';
2525
import {
2626
isNoRealConnectionError,
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
export type { SessionStartMode } from '@maka/core/session-start-mode';

0 commit comments

Comments
 (0)