feat(settings): replicate the WorkBuddy general settings panel (TODO 10)
This commit is contained in:
1 parent
401926d7eb
commit
7b68d9eb25
21 files changed
+1150
-11
No files matched your search
+14
-1
@@ -11,7 +11,9 @@ import type {
|
||||
WorkspaceInfo,
|
||||
WindowState,
|
||||
AppInfo,
|
||||
GitBranchInfo
|
||||
GitBranchInfo,
|
||||
GeneralSettingsPatch,
|
||||
GeneralSettingsView
|
||||
} from './types'
|
||||
import type { DownloadPayload, DownloadResult, ResourceEntry, ResourceRange, WorkspaceResource } from './resources'
|
||||
import type { ChatAttachment, InteractionResponse, MessageQuote, PermissionMode } from './conversation'
|
||||
@@ -100,6 +102,17 @@ export interface YCodeApi {
|
||||
get(): Ipc<GatewayConfigView>
|
||||
update(patch: ConfigPatchLike): Ipc<GatewayConfigView>
|
||||
}
|
||||
/** 设置 → 通用:真实可接入的能力。 */
|
||||
general: {
|
||||
get(options?: { refreshUsage?: boolean }): Ipc<GeneralSettingsView>
|
||||
update(patch: GeneralSettingsPatch): Ipc<GeneralSettingsView>
|
||||
/** 打开数据目录 / 默认工作空间目录 */
|
||||
openFolder(kind: 'data' | 'workspace'): Ipc<void>
|
||||
/** 修改默认工作空间存储路径;传入 path 时不弹系统对话框(验收用)。 */
|
||||
changeWorkspaceRoot(path?: string): Ipc<GeneralSettingsView>
|
||||
/** 打开系统通知设置页。 */
|
||||
openSystemNotificationSettings(): Ipc<void>
|
||||
}
|
||||
workspace: {
|
||||
get(): Ipc<WorkspaceInfo>
|
||||
choose(): Ipc<WorkspaceInfo & { changed: boolean }>
|
||||
|
||||
Reference in new issue
Block a user