| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- import type { IGenUiService } from "./gen-ui/contract.js";
- import { IOffPeakTaskService } from "./session/offPeakTask.js";
- import type { IHighspeedCardService } from "./highspeed/highspeedCard.js";
- import type { IPluginUiBridgeService } from "./plugin-ui-bridge/contract.js";
- import type { IPluginUiSamplingService } from "./plugin-ui-bridge/samplingContract.js";
- import type { IPluginUiAppToolsService } from "./plugin-ui-bridge/appToolsContract.js";
- import type { IFileService } from "./file/file.js";
- import type { IMediaPreviewService } from "./media-preview/mediaPreview.js";
- import type { ICloudContentService } from "#src/cloud-content/cloudContent.js";
- import type { IMarketingTouchService } from "#src/marketing-touch/marketingTouch.js";
- import type { IGitService } from "./git/git.js";
- import type { IGitCheckpointService } from "./git/gitCheckpoint.js";
- import type { ISystemService } from "./system/system.js";
- import type { ITerminalService } from "./terminal/terminal.js";
- import type { ISettingService } from "./setting/setting.js";
- import type { ICredentialService } from "./credential/credential.js";
- import type { IBroadcastService } from "./broadcast/broadcast.js";
- import type { IZCodeTaskService } from "./session/zcodeTaskService.js";
- import type { IZCodeAgentService } from "./zcode-agent/zcodeAgent.js";
- import type { IZCodeSessionService } from "./zcode-session/zcodeSession.js";
- import type { ICuaPermissionService } from "./cua-permission-broker/cuaPermissionService.js";
- import type { IBotsService } from "./bots/bots.js";
- import type { IFileWatcherService } from "./fileWatcher/fileWatcher.js";
- import type { IOAuthService } from "./oauth/oauth.js";
- import type {
- IModelSelectionService,
- IProviderSettingsService,
- } from "./model-provider/providerFacadeServices.js";
- import type { IUsageStatsService } from "./usage-stats/usageStats.js";
- import type { ICodingPlanSubscriptionService } from "./coding-plan-subscription/codingPlanSubscription.js";
- import type { IClientConfigService } from "./client-config/clientConfig.js";
- import type { IClientScenesService } from "./client-scenes/clientScenes.js";
- import type { ISkillsService } from "./skills/skills.js";
- import type { ISkillSyncService } from "./skill-sync/skillSync.js";
- import type { IMcpSyncService } from "./mcp-sync/mcpSync.js";
- import type { IPluginSyncService } from "./plugin-sync/pluginSync.js";
- import type { IPluginsService } from "./plugins/plugins.js";
- import type { IPluginManagementService } from "./plugins/pluginManagement.js";
- import type { ISubagentsService } from "./subagents/subagents.js";
- import type { ICommandsService } from "./commands/commands.js";
- import type { IHooksService } from "./hooks/hooks.js";
- import type { IMemoryService } from "./memory/memory.js";
- import type { IOutputStyleService } from "./output-style/outputStyle.js";
- import type { ISettingsSyncService } from "./settings-sync/settingsSync.js";
- import type { IFeedbackService } from "./feedback/feedback.js";
- import type { IPromptAttachmentTransferService } from "./prompt-attachment-transfer/promptAttachmentTransfer.js";
- import type { IWindowControllerService } from "./window-controller/windowController.js";
- import type { IOnboardingRecordService } from "./onboarding/onboardingRecord.js";
- import type { IConversationShareService } from "./conversation-share/conversationShare.js";
- /** UI 层消费的统一服务接口 */
- export interface IServiceAccessor {
- readonly fileService: IFileService;
- readonly mediaPreviewService?: IMediaPreviewService;
- readonly cloudContentService?: ICloudContentService;
- readonly marketingTouchService?: IMarketingTouchService;
- readonly gitService: IGitService;
- readonly gitCheckpointService: IGitCheckpointService;
- readonly systemService: ISystemService;
- readonly terminalService: ITerminalService;
- readonly settingService: ISettingService;
- /** Onboarding 完成记录(本地持久化);旧测试 double / 不支持的 host 可不提供。 */
- readonly onboardingRecordService?: IOnboardingRecordService;
- readonly credentialService: ICredentialService;
- readonly broadcastService: IBroadcastService;
- readonly zcodeTaskService: IZCodeTaskService;
- /** 窗口 Host 聚合面;旧 server wire 或测试 double 可暂不提供。 */
- readonly windowControllerService?: IWindowControllerService;
- readonly zcodeAgentService: IZCodeAgentService;
- readonly zcodeSessionService: IZCodeSessionService;
- // CUA 是 opt-in 内测特性:local macOS host 提供,远端 等 host 没有。可选避免连锁必填。
- readonly cuaPermissionService?: ICuaPermissionService;
- readonly conversationShareService: IConversationShareService;
- readonly botsService: IBotsService;
- readonly fileWatcherService: IFileWatcherService;
- readonly oauthService: IOAuthService;
- /** 当前 Environment 的 Provider 配置与设置视图。 */
- readonly providerSettingsService: IProviderSettingsService;
- /** 当前 Environment Registry 发布的唯一模型选择 View。 */
- readonly modelSelectionService: IModelSelectionService;
- readonly usageStatsService: IUsageStatsService;
- readonly codingPlanSubscriptionService: ICodingPlanSubscriptionService;
- readonly clientConfigService: IClientConfigService;
- readonly clientScenesService: IClientScenesService;
- /** 闲时任务管理(独立服务面)。 */
- readonly offPeakTaskService: IOffPeakTaskService;
- readonly highspeedCardService: IHighspeedCardService;
- readonly skillsService: ISkillsService;
- readonly skillSyncService: ISkillSyncService;
- readonly mcpSyncService: IMcpSyncService;
- /** 插件 UI 桥;web 或旧 host 可不提供,UI 据此回退普通 MCP 卡片。 */
- readonly genUiService?: IGenUiService;
- readonly pluginUiBridgeService?: IPluginUiBridgeService;
- /** 页面 sampling;只有桌面本地任务开放。 */
- readonly pluginUiSamplingService?: IPluginUiSamplingService;
- /** App-Provided Tools;只有桌面本地 agent 时存在。 */
- readonly pluginUiAppToolsService?: IPluginUiAppToolsService;
- readonly pluginSyncService: IPluginSyncService;
- readonly pluginsService: IPluginsService;
- /** 设置页插件管理(UI 不再直触 zcodeAgentService 的 plugins/* 面) */
- readonly pluginManagementService: IPluginManagementService;
- readonly subagentsService: ISubagentsService;
- readonly commandsService: ICommandsService;
- readonly hooksService: IHooksService;
- readonly memoryService: IMemoryService;
- readonly outputStyleService: IOutputStyleService;
- readonly settingsSyncService: ISettingsSyncService;
- readonly feedbackService: IFeedbackService;
- readonly promptAttachmentTransferService: IPromptAttachmentTransferService;
- }
|