Files
cc-switch/src/lib/api/index.ts
T
Jason 69ff69dd7f refactor: share editor, write and lookup helpers across apps and drop dead common-config code
- Resolve three-way editor conflicts in one place (ConflictPolicy::resolve)
  and share JsonChange between the Claude and Gemini editors
- Move the duplicated Codex/Grok editor helpers into editor_toml and chain
  TOML steps through TomlSteps instead of per-app wrapper patches
- Start every engine write through AppWrite::begin so the lock and the
  pre-write recovery check cannot be skipped (the Codex edits-only path
  missed it)
- Look up the direct provider, the in-use provider and the proxy origin
  through single helpers; read the mode file once per status poll, settle
  mode and written records in one state update, and query one row for the
  provider existence check
- Drop the common-config merge chain in live.rs that no longer changed
  anything, the unused config API and snippet helpers on the frontend
- Share the live-edit conflict retry flow, the inactive-fields panel and
  the editor-view app list across dialogs and editors
2026-09-27 22:38:42 +08:00

33 lines
1.1 KiB
TypeScript

export type { AppId } from "./types";
export { piApi } from "./pi";
export { providersApi, universalProvidersApi } from "./providers";
export { settingsApi } from "./settings";
export { backupsApi } from "./settings";
export { mcpApi } from "./mcp";
export { profilesApi } from "./profiles";
export { promptsApi } from "./prompts";
export { skillsApi } from "./skills";
export { usageApi } from "./usage";
export { subscriptionApi } from "./subscription";
export { vscodeApi } from "./vscode";
export { proxyApi } from "./proxy";
export { openclawApi } from "./openclaw";
export { sessionsApi } from "./sessions";
export { workspaceApi } from "./workspace";
export * as authApi from "./auth";
export * as copilotApi from "./copilot";
export type { ProviderSwitchEvent } from "./providers";
export type { Prompt } from "./prompts";
export type { Profile, ProfilePayload, ProfilesResponse } from "./profiles";
export type {
CopilotDeviceCodeResponse,
CopilotAuthStatus,
GitHubAccount,
} from "./copilot";
export type {
ManagedAuthProvider,
ManagedAuthAccount,
ManagedAuthStatus,
ManagedAuthDeviceCodeResponse,
} from "./auth";