@serviceme/devtools-shared 0.4.13 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -947,6 +947,133 @@ declare const MEDALSOFT_PRIVATE_GATEWAY_URL = "http://10.10.10.249:3000/v1";
947
947
  /** Medalsoft 私有 NuGet 源,仅办公网可达。 */
948
948
  declare const MEDALSOFT_NUGET_PRIVATE_SOURCE = "http://192.168.20.209:10010/nuget";
949
949
 
950
+ type CopilotCustomizationScope = "workspace" | "personal";
951
+ type CopilotCustomizationArtifactKind = "agent" | "skill" | "prompt" | "instruction" | "mcp" | "hook";
952
+ type CopilotCustomizationInstallIntent = "available" | "selected" | "moving" | "removing";
953
+ type CopilotCustomizationHealth = "healthy" | "missing" | "drifted" | "conflict" | "source-unavailable" | "unsupported";
954
+ type CopilotCustomizationGate = "ready" | "approval-required" | "configuration-required";
955
+ type CopilotCustomizationStatus = "healthy" | "action-required" | "blocked" | "not-enabled";
956
+ interface CopilotArtifactStatePayload {
957
+ intent: CopilotCustomizationInstallIntent;
958
+ health: CopilotCustomizationHealth;
959
+ gate: CopilotCustomizationGate;
960
+ }
961
+ interface CopilotArtifactSummaryPayload {
962
+ id: string;
963
+ packageId: string;
964
+ kind: CopilotCustomizationArtifactKind;
965
+ displayName: string;
966
+ description?: string;
967
+ installStrategy: "link" | "generated-config" | "approval-gated";
968
+ risk: "none" | "review-required";
969
+ }
970
+ interface CopilotPackageInstallationPayload {
971
+ packageId: string;
972
+ scope: CopilotCustomizationScope;
973
+ selectedArtifactIds: string[];
974
+ pinnedVersion?: string;
975
+ }
976
+ interface CopilotPackageDefinitionPayload {
977
+ id: string;
978
+ sourceId: string;
979
+ displayName: string;
980
+ description?: string;
981
+ version?: string;
982
+ artifacts: CopilotArtifactSummaryPayload[];
983
+ /** Whole-package registrar installation — the home package list shows
984
+ * these; per-artifact v1 manifest plugins stay in enabled-content. */
985
+ wholePackage?: boolean;
986
+ }
987
+ /**
988
+ * Whole-package registrar install marker: the explicit `wholePackage`
989
+ * flag, or (legacy shape) the synthetic `::package:` artifact. Such
990
+ * packages are PERSONAL-scope only — registrar-owned, so per-artifact
991
+ * scope actions (move to workspace) do not apply.
992
+ */
993
+ declare function isWholePackageInstall(definition: Pick<CopilotPackageDefinitionPayload, "wholePackage" | "artifacts">): boolean;
994
+ interface CopilotArtifactViewPayload {
995
+ artifact: CopilotArtifactSummaryPayload;
996
+ state: CopilotArtifactStatePayload;
997
+ }
998
+ /**
999
+ * An installable plugin.json package found by scanning an enabled git
1000
+ * source — NOT yet (necessarily) installed. The CLI enumerates these
1001
+ * via the core plugin catalog and attaches them to the
1002
+ * `copilotCustomizations.list` result; `packageId` is directly usable
1003
+ * as the install input.
1004
+ */
1005
+ interface CopilotAvailablePackagePayload {
1006
+ /** `${sourceId}::${pluginId}` — directly usable as the install input. */
1007
+ packageId: string;
1008
+ sourceId: string;
1009
+ displayName: string;
1010
+ description?: string;
1011
+ version?: string;
1012
+ /** Full artifact summaries so the install preview can select artifacts. */
1013
+ artifacts: CopilotArtifactSummaryPayload[];
1014
+ /** Which scopes currently have this packageId installed (may be both). */
1015
+ installedScopes: CopilotCustomizationScope[];
1016
+ /** VS Code enablement (`chat.pluginLocations` value) for registered
1017
+ * packages — overlaid extension-side; `undefined` for not-registered
1018
+ * packages or older extension builds. */
1019
+ enabled?: boolean;
1020
+ }
1021
+ interface CopilotPackageViewPayload {
1022
+ definition: CopilotPackageDefinitionPayload;
1023
+ installation: CopilotPackageInstallationPayload;
1024
+ artifacts: CopilotArtifactViewPayload[];
1025
+ selectedArtifactCount: number;
1026
+ /** VS Code enablement for whole-package (registrar) rows —
1027
+ * overlaid extension-side; `undefined` for artifact-level packages
1028
+ * or older extension builds. */
1029
+ enabled?: boolean;
1030
+ status: CopilotCustomizationStatus;
1031
+ }
1032
+ interface CopilotSourceViewPayload {
1033
+ id: string;
1034
+ type: "marketplace" | "git" | "local";
1035
+ displayName: string;
1036
+ updateCapability: "pinned" | "live" | "none";
1037
+ packages: CopilotPackageViewPayload[];
1038
+ }
1039
+ /** Task 10 — normalized source record for the source manager UI. */
1040
+ interface CopilotSourceRecordPayload {
1041
+ id: string;
1042
+ type: "marketplace" | "git" | "local";
1043
+ displayName: string;
1044
+ updateCapability: "pinned" | "live" | "none";
1045
+ /** Whether the source content is currently materialized on disk. */
1046
+ available: boolean;
1047
+ /** Where this source is declared: "workspace" (manifest), "personal" (intent), or both. */
1048
+ declaredIn: Array<"workspace" | "personal">;
1049
+ }
1050
+ /** Task 10 — deterministic, side-effect-free package update preview. */
1051
+ interface CopilotPackageUpdatePreviewPayload {
1052
+ packageId: string;
1053
+ fromVersion?: string;
1054
+ toVersion: string;
1055
+ addedArtifactIds: string[];
1056
+ removedArtifactIds: string[];
1057
+ changedArtifactIds: string[];
1058
+ approvalInvalidatedArtifactIds: string[];
1059
+ }
1060
+ interface CopilotCustomizationViewPayload {
1061
+ scope: CopilotCustomizationScope;
1062
+ generatedAt: string;
1063
+ sources: CopilotSourceViewPayload[];
1064
+ packages: CopilotPackageViewPayload[];
1065
+ attention: CopilotArtifactViewPayload[];
1066
+ summary: {
1067
+ packageCount: number;
1068
+ enabledArtifactCount: number;
1069
+ attentionCount: number;
1070
+ };
1071
+ legacyMigration?: {
1072
+ count: number;
1073
+ sourceLabel: "~/.agents";
1074
+ };
1075
+ }
1076
+
950
1077
  /**
951
1078
  * Device-auth wire contract shared by the extension (signer) and the
952
1079
  * server (verifier).
@@ -1317,6 +1444,10 @@ interface BridgeSkillRepoEntry {
1317
1444
  frontmatter: Record<string, unknown>;
1318
1445
  /** ISO timestamp of the manifest's mtime. */
1319
1446
  modifiedAt: string;
1447
+ /** Machine-local disable mark — true when the entry's link is removed
1448
+ * on this machine while its installation intent stays. Overlaid by
1449
+ * the bridge; absent on older CLIs. */
1450
+ disabled?: boolean;
1320
1451
  }
1321
1452
  /** A single file inside an entry (SkillStore.SkillFile). */
1322
1453
  interface BridgeSkillRepoFile {
@@ -1429,6 +1560,9 @@ declare enum WebviewMessageType {
1429
1560
  ReorderExternalTools = "reorderExternalTools",
1430
1561
  UpdateNgrokStatus = "updateNgrokStatus",
1431
1562
  UpdateServerStatus = "updateServerStatus",
1563
+ UpdateOcxStatus = "updateOcxStatus",
1564
+ UpdateRtkStatus = "updateRtkStatus",
1565
+ UpdateCodegraphStatus = "updateCodegraphStatus",
1432
1566
  GetAuthState = "getAuthState",
1433
1567
  UpdateAuthState = "updateAuthState",
1434
1568
  Login = "login",
@@ -1490,6 +1624,7 @@ declare enum WebviewMessageType {
1490
1624
  InstallSkillRepoEntry = "installSkillRepoEntry",
1491
1625
  ConvertSkillRepoEntryToSymlink = "convertSkillRepoEntryToSymlink",
1492
1626
  UninstallSkillRepoEntry = "uninstallSkillRepoEntry",
1627
+ SetSkillRepoEntryEnabled = "setSkillRepoEntryEnabled",
1493
1628
  ListLinkedSkills = "listLinkedSkills",
1494
1629
  UpdateSkillRepoCatalog = "updateSkillRepoCatalog",
1495
1630
  UpdateSkillRepoInstall = "updateSkillRepoInstall",
@@ -1507,12 +1642,36 @@ declare enum WebviewMessageType {
1507
1642
  DisableRepository = "disableRepository",
1508
1643
  SyncRepository = "syncRepository",
1509
1644
  SyncAllRepositories = "syncAllRepositories",
1645
+ ResetParseCache = "resetParseCache",
1646
+ ListCopilotPlugins = "listCopilotPlugins",
1647
+ RegisterCopilotPlugin = "registerCopilotPlugin",
1648
+ UnregisterCopilotPlugin = "unregisterCopilotPlugin",
1649
+ SetCopilotPluginEnabled = "setCopilotPluginEnabled",
1650
+ GetCopilotContentStatus = "getCopilotContentStatus",
1651
+ RestoreCopilotContent = "restoreCopilotContent",
1652
+ ApproveCopilotContent = "approveCopilotContent",
1510
1653
  UpdateRepositoryList = "updateRepositoryList",
1511
1654
  UpdateRepositoryAdd = "updateRepositoryAdd",
1512
1655
  UpdateRepositoryUpdate = "updateRepositoryUpdate",
1513
1656
  UpdateRepositoryRemove = "updateRepositoryRemove",
1514
1657
  UpdateRepositoryToggle = "updateRepositoryToggle",
1515
1658
  UpdateRepositorySyncResult = "updateRepositorySyncResult",
1659
+ UpdateCopilotContentStatus = "updateCopilotContentStatus",
1660
+ GetCopilotCustomizations = "getCopilotCustomizations",
1661
+ SyncCopilotCustomizations = "syncCopilotCustomizations",
1662
+ UpdateCopilotCustomizations = "updateCopilotCustomizations",
1663
+ InstallCopilotPackage = "installCopilotPackage",
1664
+ MoveCopilotPackage = "moveCopilotPackage",
1665
+ UninstallCopilotPackage = "uninstallCopilotPackage",
1666
+ ListCopilotSources = "listCopilotSources",
1667
+ RemoveCopilotSource = "removeCopilotSource",
1668
+ PreviewCopilotUpdate = "previewCopilotUpdate",
1669
+ UpdateCopilotPackage = "updateCopilotPackage",
1670
+ PreviewCopilotLegacy = "previewCopilotLegacy",
1671
+ MigrateCopilotLegacy = "migrateCopilotLegacy",
1672
+ UpdateCopilotSources = "updateCopilotSources",
1673
+ UpdateCopilotUpdatePreview = "updateCopilotUpdatePreview",
1674
+ UpdateCopilotLegacyPreview = "updateCopilotLegacyPreview",
1516
1675
  GetUtilityModels = "getUtilityModels",
1517
1676
  UtilityModelsResponse = "utilityModelsResponse",
1518
1677
  UpdateUtilityModels = "updateUtilityModels",
@@ -1776,12 +1935,45 @@ type WebviewInboundMessage = {
1776
1935
  type: typeof WebviewMessageType.UpdateLinkedSkills;
1777
1936
  links: LinkedSkillPayloadEntry[];
1778
1937
  kind: "skill" | "agent";
1938
+ } | {
1939
+ type: typeof WebviewMessageType.UpdateCopilotContentStatus;
1940
+ entries: CopilotContentStatusEntry[];
1941
+ changed: boolean;
1942
+ workspaceOpen?: boolean;
1943
+ } | {
1944
+ type: typeof WebviewMessageType.UpdateCopilotCustomizations;
1945
+ view: CopilotCustomizationViewPayload;
1946
+ /** Installable plugin.json packages from the enabled git
1947
+ * sources. Optional: older CLI builds omit it. */
1948
+ availablePackages?: CopilotAvailablePackagePayload[];
1949
+ } | {
1950
+ type: typeof WebviewMessageType.UpdateCopilotSources;
1951
+ sources: CopilotSourceRecordPayload[];
1952
+ } | {
1953
+ type: typeof WebviewMessageType.UpdateCopilotUpdatePreview;
1954
+ preview: CopilotPackageUpdatePreviewPayload;
1779
1955
  } | {
1780
1956
  type: typeof WebviewMessageType.UpdateExternalTools;
1781
1957
  tools?: ExternalTool[];
1782
1958
  } | {
1783
1959
  type: typeof WebviewMessageType.UpdateNgrokStatus;
1784
1960
  isRunning: boolean;
1961
+ } | {
1962
+ type: typeof WebviewMessageType.UpdateOcxStatus;
1963
+ isRunning: boolean;
1964
+ } | {
1965
+ type: typeof WebviewMessageType.UpdateRtkStatus;
1966
+ installed: boolean;
1967
+ version?: string;
1968
+ workspaceEnabled: boolean;
1969
+ } | {
1970
+ type: typeof WebviewMessageType.UpdateCodegraphStatus;
1971
+ installed: boolean;
1972
+ version?: string;
1973
+ indexed: boolean;
1974
+ mcpConfigured?: boolean;
1975
+ hookInstalled?: boolean;
1976
+ instructionsEnabled?: boolean;
1785
1977
  } | {
1786
1978
  type: typeof WebviewMessageType.UpdateAzureProfiles;
1787
1979
  profiles?: AzureProfile[];
@@ -1800,6 +1992,65 @@ interface LinkedSkillPayloadEntry {
1800
1992
  name: string;
1801
1993
  scope?: string;
1802
1994
  }
1995
+ /**
1996
+ * One entry inside the `UpdateCopilotContentStatus.entries` array.
1997
+ * Mirrors the protocol-level `CopilotContentStatusResult` entry shape
1998
+ * (identity + status + optional message) so the webview can render the
1999
+ * reconciliation state without importing the protocol package.
2000
+ */
2001
+ interface CopilotContentStatusEntry {
2002
+ identity: string;
2003
+ status: "restored" | "adopted" | "pending_approval" | "missing_source" | "conflict" | "drifted";
2004
+ message?: string;
2005
+ }
2006
+ /**
2007
+ * Task 7 — webview → extension install intent. Mirrors the Task 3
2008
+ * protocol contract (`copilotContent.package.install`) minus the
2009
+ * private `workspaceDir` field, which the extension handler resolves
2010
+ * itself. `localMode` is REQUIRED for workspace-local sources (the
2011
+ * discovery preview blocks submission until the user picks one) and
2012
+ * is omitted for git / marketplace sources.
2013
+ */
2014
+ interface InstallCopilotPackageAction {
2015
+ type: WebviewMessageType.InstallCopilotPackage;
2016
+ scope: "workspace" | "personal";
2017
+ sourceId: string;
2018
+ packageId: string;
2019
+ artifactIds: string[];
2020
+ pinnedVersion?: string;
2021
+ localMode?: "live" | "private-workspace-override";
2022
+ }
2023
+ /** Task 9 — webview → extension move intent; workspaceDir is resolved extension-side. */
2024
+ interface MoveCopilotPackageAction {
2025
+ type: WebviewMessageType.MoveCopilotPackage;
2026
+ packageId: string;
2027
+ from: "workspace" | "personal";
2028
+ to: "workspace" | "personal";
2029
+ }
2030
+ /** Task 9 — webview → extension uninstall intent; workspaceDir is resolved extension-side. */
2031
+ interface UninstallCopilotPackageAction {
2032
+ type: WebviewMessageType.UninstallCopilotPackage;
2033
+ scope: "workspace" | "personal";
2034
+ packageId: string;
2035
+ }
2036
+ /** Task 10 — webview → extension source list intent; workspaceDir is resolved extension-side. */
2037
+ interface ListCopilotSourcesAction {
2038
+ type: WebviewMessageType.ListCopilotSources;
2039
+ scope: "workspace" | "personal";
2040
+ }
2041
+ /** Task 10 — webview → extension source removal intent; workspaceDir is resolved extension-side. */
2042
+ interface RemoveCopilotSourceAction {
2043
+ type: WebviewMessageType.RemoveCopilotSource;
2044
+ scope: "workspace" | "personal";
2045
+ sourceId: string;
2046
+ }
2047
+ /** Task 10 — webview → extension update preview intent; workspaceDir is resolved extension-side. */
2048
+ interface PreviewCopilotUpdateAction {
2049
+ type: WebviewMessageType.PreviewCopilotUpdate;
2050
+ scope: "workspace" | "personal";
2051
+ packageId: string;
2052
+ revision: string;
2053
+ }
1803
2054
 
1804
2055
  /** Live execution state pushed to webview during task execution */
1805
2056
  interface TaskExecutionState {
@@ -1860,4 +2111,4 @@ declare function asAbortSignal(input: unknown): AbortSignal | undefined;
1860
2111
  */
1861
2112
  declare function safeJson<T>(text: string, fallback: T): T;
1862
2113
 
1863
- export { type AIModelConfig, type AIModelInfo, type AgentPermissionSummary, type AgentToolPermission, type AgentToolRiskLevel, type ApiConfig, type AzureProfile, BUILTIN_PROVIDER_PRESETS, type BalanceEntry, type BridgeLinkMode, type BridgeLinkedSkill, type BridgeRepoEntry, type BridgeRepoSyncPull, type BridgeSkillKind, type BridgeSkillRepoEntry, type BridgeSkillRepoFile, type ByomProviderToggles, ByomSettingsResponse, type ByomSettingsSnapshot, type ByomTogglePayload, CERTIFICATE_BUNDLE_FORMATS, CachedServerUrlResponse, type CachedServerUrlSnapshot, type CertificateBundleEnvironmentSupport, type CertificateBundleFormat, type CertificateBundleFormatDescriptor, type CodingPlanUsage, type CommandPayload, type CuratedModelMetadata, type DeepseekBalanceEntry, type DeepseekUsage, DeviceAuthHeaders, type DeviceRequestSignatureParams, type DownloadCertificateBundleRequest, type DownloadCertificateBundleResponse, type ExternalTool, GIT_REMOTE_HOST_ALIASES, type GenericBalanceUsage, GetByomSettings, GetCachedServerUrl, GetServerProxyState, GetUtilityModels, type GitHubOrgMembershipCheckResult, type GitHubOrgMembershipStatus, type GitHubUser, type GithubCopilotCliPayload, type HttpRequestPayload, type ILogger, LISTABLE_PRESET_MODELS, type LinkedSkillPayloadEntry, LogLevel, MEDALSOFT_NUGET_PRIVATE_SOURCE, MEDALSOFT_PRIVATE_GATEWAY_URL, MODEL_METADATA, type MinimaxUsage, type ModelDetail, type ModelPriceCategory, type ModelPricing, type ModelThinkingSchema, NAMESPACE_ALIASES, NAMESPACE_ALIAS_FAMILY, PRESET_MODEL_FAMILIES, PROVIDER_BASE_URL_PRESETS, PROVIDER_CACHE_CONTROL_METADATA, type PresetModelFamilyGroup, type PresetModelListing, type ProviderBaseUrlPreset, type ProviderCacheControlMetadata, type ProviderConfig, type ProviderModel, type ProviderMutationPayload, type ProviderTestResult, type ProviderType, type ProviderUsageData, type ProviderUsageKind, type ProviderUsageResult, type ProviderVisionMode, type ProviderWireProtocol, type ProvidersResponsePayload, type PublicProvider, type ScheduledTask, type ScheduledTaskType, type ScheduledTaskV1, type ScheduledTasksConfig, type ScheduledTasksLogFile, type ServerProxyAllowOverridePayload, type ServerProxySnapshot, ServerProxyStateResponse, type ServerProxySupportMode, type ServerProxyTogglePayload, SetCacheControlEnabled, SetServerProxyAllowOverride, SetServerProxyEnabled, type ShellPayload, type TaskExecutionLog, type TaskExecutionState, type TaskExecutionStatus, type TaskPayload, type TaskRunStatus, type TaskWorkspaceRef, UpdateUtilityModels, type UpdateUtilityModelsPayload, type UsageWindow, type UtilityModelScope, type UtilityModelsEffective, UtilityModelsResponse, type UtilityModelsSnapshot, type UtilityModelsSource, type WebviewInboundMessage, WebviewMessageType, __internal, asAbortSignal, buildGitHubLocalEmail, buildPresetModel, checkGitHubOrgMembership, createConsoleLogger, createDeviceRequestSignature, currencyForBaseUrl, effectiveAdapterType, fetchGitHubUser, getBuiltinProviderPreset, getGitHubOrgMembership, getPresetModelDisplayName, getProviderBaseUrlPresets, isGitHubLocalEmail, isProviderCacheControlAware, isValidCanonicalSlug, listPresetModelGroups, lookupModelMetadata, normalizeCanonicalSlug, normalizeErrorForLog, normalizeGitUrl, parsePayload, protocolForBaseUrl, resolvePrimaryEmail, safeJson, unionProviderModelWithPreset };
2114
+ export { type AIModelConfig, type AIModelInfo, type AgentPermissionSummary, type AgentToolPermission, type AgentToolRiskLevel, type ApiConfig, type AzureProfile, BUILTIN_PROVIDER_PRESETS, type BalanceEntry, type BridgeLinkMode, type BridgeLinkedSkill, type BridgeRepoEntry, type BridgeRepoSyncPull, type BridgeSkillKind, type BridgeSkillRepoEntry, type BridgeSkillRepoFile, type ByomProviderToggles, ByomSettingsResponse, type ByomSettingsSnapshot, type ByomTogglePayload, CERTIFICATE_BUNDLE_FORMATS, CachedServerUrlResponse, type CachedServerUrlSnapshot, type CertificateBundleEnvironmentSupport, type CertificateBundleFormat, type CertificateBundleFormatDescriptor, type CodingPlanUsage, type CommandPayload, type CopilotArtifactStatePayload, type CopilotArtifactSummaryPayload, type CopilotArtifactViewPayload, type CopilotAvailablePackagePayload, type CopilotContentStatusEntry, type CopilotCustomizationArtifactKind, type CopilotCustomizationGate, type CopilotCustomizationHealth, type CopilotCustomizationInstallIntent, type CopilotCustomizationScope, type CopilotCustomizationStatus, type CopilotCustomizationViewPayload, type CopilotPackageDefinitionPayload, type CopilotPackageInstallationPayload, type CopilotPackageUpdatePreviewPayload, type CopilotPackageViewPayload, type CopilotSourceRecordPayload, type CopilotSourceViewPayload, type CuratedModelMetadata, type DeepseekBalanceEntry, type DeepseekUsage, DeviceAuthHeaders, type DeviceRequestSignatureParams, type DownloadCertificateBundleRequest, type DownloadCertificateBundleResponse, type ExternalTool, GIT_REMOTE_HOST_ALIASES, type GenericBalanceUsage, GetByomSettings, GetCachedServerUrl, GetServerProxyState, GetUtilityModels, type GitHubOrgMembershipCheckResult, type GitHubOrgMembershipStatus, type GitHubUser, type GithubCopilotCliPayload, type HttpRequestPayload, type ILogger, type InstallCopilotPackageAction, LISTABLE_PRESET_MODELS, type LinkedSkillPayloadEntry, type ListCopilotSourcesAction, LogLevel, MEDALSOFT_NUGET_PRIVATE_SOURCE, MEDALSOFT_PRIVATE_GATEWAY_URL, MODEL_METADATA, type MinimaxUsage, type ModelDetail, type ModelPriceCategory, type ModelPricing, type ModelThinkingSchema, type MoveCopilotPackageAction, NAMESPACE_ALIASES, NAMESPACE_ALIAS_FAMILY, PRESET_MODEL_FAMILIES, PROVIDER_BASE_URL_PRESETS, PROVIDER_CACHE_CONTROL_METADATA, type PresetModelFamilyGroup, type PresetModelListing, type PreviewCopilotUpdateAction, type ProviderBaseUrlPreset, type ProviderCacheControlMetadata, type ProviderConfig, type ProviderModel, type ProviderMutationPayload, type ProviderTestResult, type ProviderType, type ProviderUsageData, type ProviderUsageKind, type ProviderUsageResult, type ProviderVisionMode, type ProviderWireProtocol, type ProvidersResponsePayload, type PublicProvider, type RemoveCopilotSourceAction, type ScheduledTask, type ScheduledTaskType, type ScheduledTaskV1, type ScheduledTasksConfig, type ScheduledTasksLogFile, type ServerProxyAllowOverridePayload, type ServerProxySnapshot, ServerProxyStateResponse, type ServerProxySupportMode, type ServerProxyTogglePayload, SetCacheControlEnabled, SetServerProxyAllowOverride, SetServerProxyEnabled, type ShellPayload, type TaskExecutionLog, type TaskExecutionState, type TaskExecutionStatus, type TaskPayload, type TaskRunStatus, type TaskWorkspaceRef, type UninstallCopilotPackageAction, UpdateUtilityModels, type UpdateUtilityModelsPayload, type UsageWindow, type UtilityModelScope, type UtilityModelsEffective, UtilityModelsResponse, type UtilityModelsSnapshot, type UtilityModelsSource, type WebviewInboundMessage, WebviewMessageType, __internal, asAbortSignal, buildGitHubLocalEmail, buildPresetModel, checkGitHubOrgMembership, createConsoleLogger, createDeviceRequestSignature, currencyForBaseUrl, effectiveAdapterType, fetchGitHubUser, getBuiltinProviderPreset, getGitHubOrgMembership, getPresetModelDisplayName, getProviderBaseUrlPresets, isGitHubLocalEmail, isProviderCacheControlAware, isValidCanonicalSlug, isWholePackageInstall, listPresetModelGroups, lookupModelMetadata, normalizeCanonicalSlug, normalizeErrorForLog, normalizeGitUrl, parsePayload, protocolForBaseUrl, resolvePrimaryEmail, safeJson, unionProviderModelWithPreset };
package/dist/index.d.ts CHANGED
@@ -947,6 +947,133 @@ declare const MEDALSOFT_PRIVATE_GATEWAY_URL = "http://10.10.10.249:3000/v1";
947
947
  /** Medalsoft 私有 NuGet 源,仅办公网可达。 */
948
948
  declare const MEDALSOFT_NUGET_PRIVATE_SOURCE = "http://192.168.20.209:10010/nuget";
949
949
 
950
+ type CopilotCustomizationScope = "workspace" | "personal";
951
+ type CopilotCustomizationArtifactKind = "agent" | "skill" | "prompt" | "instruction" | "mcp" | "hook";
952
+ type CopilotCustomizationInstallIntent = "available" | "selected" | "moving" | "removing";
953
+ type CopilotCustomizationHealth = "healthy" | "missing" | "drifted" | "conflict" | "source-unavailable" | "unsupported";
954
+ type CopilotCustomizationGate = "ready" | "approval-required" | "configuration-required";
955
+ type CopilotCustomizationStatus = "healthy" | "action-required" | "blocked" | "not-enabled";
956
+ interface CopilotArtifactStatePayload {
957
+ intent: CopilotCustomizationInstallIntent;
958
+ health: CopilotCustomizationHealth;
959
+ gate: CopilotCustomizationGate;
960
+ }
961
+ interface CopilotArtifactSummaryPayload {
962
+ id: string;
963
+ packageId: string;
964
+ kind: CopilotCustomizationArtifactKind;
965
+ displayName: string;
966
+ description?: string;
967
+ installStrategy: "link" | "generated-config" | "approval-gated";
968
+ risk: "none" | "review-required";
969
+ }
970
+ interface CopilotPackageInstallationPayload {
971
+ packageId: string;
972
+ scope: CopilotCustomizationScope;
973
+ selectedArtifactIds: string[];
974
+ pinnedVersion?: string;
975
+ }
976
+ interface CopilotPackageDefinitionPayload {
977
+ id: string;
978
+ sourceId: string;
979
+ displayName: string;
980
+ description?: string;
981
+ version?: string;
982
+ artifacts: CopilotArtifactSummaryPayload[];
983
+ /** Whole-package registrar installation — the home package list shows
984
+ * these; per-artifact v1 manifest plugins stay in enabled-content. */
985
+ wholePackage?: boolean;
986
+ }
987
+ /**
988
+ * Whole-package registrar install marker: the explicit `wholePackage`
989
+ * flag, or (legacy shape) the synthetic `::package:` artifact. Such
990
+ * packages are PERSONAL-scope only — registrar-owned, so per-artifact
991
+ * scope actions (move to workspace) do not apply.
992
+ */
993
+ declare function isWholePackageInstall(definition: Pick<CopilotPackageDefinitionPayload, "wholePackage" | "artifacts">): boolean;
994
+ interface CopilotArtifactViewPayload {
995
+ artifact: CopilotArtifactSummaryPayload;
996
+ state: CopilotArtifactStatePayload;
997
+ }
998
+ /**
999
+ * An installable plugin.json package found by scanning an enabled git
1000
+ * source — NOT yet (necessarily) installed. The CLI enumerates these
1001
+ * via the core plugin catalog and attaches them to the
1002
+ * `copilotCustomizations.list` result; `packageId` is directly usable
1003
+ * as the install input.
1004
+ */
1005
+ interface CopilotAvailablePackagePayload {
1006
+ /** `${sourceId}::${pluginId}` — directly usable as the install input. */
1007
+ packageId: string;
1008
+ sourceId: string;
1009
+ displayName: string;
1010
+ description?: string;
1011
+ version?: string;
1012
+ /** Full artifact summaries so the install preview can select artifacts. */
1013
+ artifacts: CopilotArtifactSummaryPayload[];
1014
+ /** Which scopes currently have this packageId installed (may be both). */
1015
+ installedScopes: CopilotCustomizationScope[];
1016
+ /** VS Code enablement (`chat.pluginLocations` value) for registered
1017
+ * packages — overlaid extension-side; `undefined` for not-registered
1018
+ * packages or older extension builds. */
1019
+ enabled?: boolean;
1020
+ }
1021
+ interface CopilotPackageViewPayload {
1022
+ definition: CopilotPackageDefinitionPayload;
1023
+ installation: CopilotPackageInstallationPayload;
1024
+ artifacts: CopilotArtifactViewPayload[];
1025
+ selectedArtifactCount: number;
1026
+ /** VS Code enablement for whole-package (registrar) rows —
1027
+ * overlaid extension-side; `undefined` for artifact-level packages
1028
+ * or older extension builds. */
1029
+ enabled?: boolean;
1030
+ status: CopilotCustomizationStatus;
1031
+ }
1032
+ interface CopilotSourceViewPayload {
1033
+ id: string;
1034
+ type: "marketplace" | "git" | "local";
1035
+ displayName: string;
1036
+ updateCapability: "pinned" | "live" | "none";
1037
+ packages: CopilotPackageViewPayload[];
1038
+ }
1039
+ /** Task 10 — normalized source record for the source manager UI. */
1040
+ interface CopilotSourceRecordPayload {
1041
+ id: string;
1042
+ type: "marketplace" | "git" | "local";
1043
+ displayName: string;
1044
+ updateCapability: "pinned" | "live" | "none";
1045
+ /** Whether the source content is currently materialized on disk. */
1046
+ available: boolean;
1047
+ /** Where this source is declared: "workspace" (manifest), "personal" (intent), or both. */
1048
+ declaredIn: Array<"workspace" | "personal">;
1049
+ }
1050
+ /** Task 10 — deterministic, side-effect-free package update preview. */
1051
+ interface CopilotPackageUpdatePreviewPayload {
1052
+ packageId: string;
1053
+ fromVersion?: string;
1054
+ toVersion: string;
1055
+ addedArtifactIds: string[];
1056
+ removedArtifactIds: string[];
1057
+ changedArtifactIds: string[];
1058
+ approvalInvalidatedArtifactIds: string[];
1059
+ }
1060
+ interface CopilotCustomizationViewPayload {
1061
+ scope: CopilotCustomizationScope;
1062
+ generatedAt: string;
1063
+ sources: CopilotSourceViewPayload[];
1064
+ packages: CopilotPackageViewPayload[];
1065
+ attention: CopilotArtifactViewPayload[];
1066
+ summary: {
1067
+ packageCount: number;
1068
+ enabledArtifactCount: number;
1069
+ attentionCount: number;
1070
+ };
1071
+ legacyMigration?: {
1072
+ count: number;
1073
+ sourceLabel: "~/.agents";
1074
+ };
1075
+ }
1076
+
950
1077
  /**
951
1078
  * Device-auth wire contract shared by the extension (signer) and the
952
1079
  * server (verifier).
@@ -1317,6 +1444,10 @@ interface BridgeSkillRepoEntry {
1317
1444
  frontmatter: Record<string, unknown>;
1318
1445
  /** ISO timestamp of the manifest's mtime. */
1319
1446
  modifiedAt: string;
1447
+ /** Machine-local disable mark — true when the entry's link is removed
1448
+ * on this machine while its installation intent stays. Overlaid by
1449
+ * the bridge; absent on older CLIs. */
1450
+ disabled?: boolean;
1320
1451
  }
1321
1452
  /** A single file inside an entry (SkillStore.SkillFile). */
1322
1453
  interface BridgeSkillRepoFile {
@@ -1429,6 +1560,9 @@ declare enum WebviewMessageType {
1429
1560
  ReorderExternalTools = "reorderExternalTools",
1430
1561
  UpdateNgrokStatus = "updateNgrokStatus",
1431
1562
  UpdateServerStatus = "updateServerStatus",
1563
+ UpdateOcxStatus = "updateOcxStatus",
1564
+ UpdateRtkStatus = "updateRtkStatus",
1565
+ UpdateCodegraphStatus = "updateCodegraphStatus",
1432
1566
  GetAuthState = "getAuthState",
1433
1567
  UpdateAuthState = "updateAuthState",
1434
1568
  Login = "login",
@@ -1490,6 +1624,7 @@ declare enum WebviewMessageType {
1490
1624
  InstallSkillRepoEntry = "installSkillRepoEntry",
1491
1625
  ConvertSkillRepoEntryToSymlink = "convertSkillRepoEntryToSymlink",
1492
1626
  UninstallSkillRepoEntry = "uninstallSkillRepoEntry",
1627
+ SetSkillRepoEntryEnabled = "setSkillRepoEntryEnabled",
1493
1628
  ListLinkedSkills = "listLinkedSkills",
1494
1629
  UpdateSkillRepoCatalog = "updateSkillRepoCatalog",
1495
1630
  UpdateSkillRepoInstall = "updateSkillRepoInstall",
@@ -1507,12 +1642,36 @@ declare enum WebviewMessageType {
1507
1642
  DisableRepository = "disableRepository",
1508
1643
  SyncRepository = "syncRepository",
1509
1644
  SyncAllRepositories = "syncAllRepositories",
1645
+ ResetParseCache = "resetParseCache",
1646
+ ListCopilotPlugins = "listCopilotPlugins",
1647
+ RegisterCopilotPlugin = "registerCopilotPlugin",
1648
+ UnregisterCopilotPlugin = "unregisterCopilotPlugin",
1649
+ SetCopilotPluginEnabled = "setCopilotPluginEnabled",
1650
+ GetCopilotContentStatus = "getCopilotContentStatus",
1651
+ RestoreCopilotContent = "restoreCopilotContent",
1652
+ ApproveCopilotContent = "approveCopilotContent",
1510
1653
  UpdateRepositoryList = "updateRepositoryList",
1511
1654
  UpdateRepositoryAdd = "updateRepositoryAdd",
1512
1655
  UpdateRepositoryUpdate = "updateRepositoryUpdate",
1513
1656
  UpdateRepositoryRemove = "updateRepositoryRemove",
1514
1657
  UpdateRepositoryToggle = "updateRepositoryToggle",
1515
1658
  UpdateRepositorySyncResult = "updateRepositorySyncResult",
1659
+ UpdateCopilotContentStatus = "updateCopilotContentStatus",
1660
+ GetCopilotCustomizations = "getCopilotCustomizations",
1661
+ SyncCopilotCustomizations = "syncCopilotCustomizations",
1662
+ UpdateCopilotCustomizations = "updateCopilotCustomizations",
1663
+ InstallCopilotPackage = "installCopilotPackage",
1664
+ MoveCopilotPackage = "moveCopilotPackage",
1665
+ UninstallCopilotPackage = "uninstallCopilotPackage",
1666
+ ListCopilotSources = "listCopilotSources",
1667
+ RemoveCopilotSource = "removeCopilotSource",
1668
+ PreviewCopilotUpdate = "previewCopilotUpdate",
1669
+ UpdateCopilotPackage = "updateCopilotPackage",
1670
+ PreviewCopilotLegacy = "previewCopilotLegacy",
1671
+ MigrateCopilotLegacy = "migrateCopilotLegacy",
1672
+ UpdateCopilotSources = "updateCopilotSources",
1673
+ UpdateCopilotUpdatePreview = "updateCopilotUpdatePreview",
1674
+ UpdateCopilotLegacyPreview = "updateCopilotLegacyPreview",
1516
1675
  GetUtilityModels = "getUtilityModels",
1517
1676
  UtilityModelsResponse = "utilityModelsResponse",
1518
1677
  UpdateUtilityModels = "updateUtilityModels",
@@ -1776,12 +1935,45 @@ type WebviewInboundMessage = {
1776
1935
  type: typeof WebviewMessageType.UpdateLinkedSkills;
1777
1936
  links: LinkedSkillPayloadEntry[];
1778
1937
  kind: "skill" | "agent";
1938
+ } | {
1939
+ type: typeof WebviewMessageType.UpdateCopilotContentStatus;
1940
+ entries: CopilotContentStatusEntry[];
1941
+ changed: boolean;
1942
+ workspaceOpen?: boolean;
1943
+ } | {
1944
+ type: typeof WebviewMessageType.UpdateCopilotCustomizations;
1945
+ view: CopilotCustomizationViewPayload;
1946
+ /** Installable plugin.json packages from the enabled git
1947
+ * sources. Optional: older CLI builds omit it. */
1948
+ availablePackages?: CopilotAvailablePackagePayload[];
1949
+ } | {
1950
+ type: typeof WebviewMessageType.UpdateCopilotSources;
1951
+ sources: CopilotSourceRecordPayload[];
1952
+ } | {
1953
+ type: typeof WebviewMessageType.UpdateCopilotUpdatePreview;
1954
+ preview: CopilotPackageUpdatePreviewPayload;
1779
1955
  } | {
1780
1956
  type: typeof WebviewMessageType.UpdateExternalTools;
1781
1957
  tools?: ExternalTool[];
1782
1958
  } | {
1783
1959
  type: typeof WebviewMessageType.UpdateNgrokStatus;
1784
1960
  isRunning: boolean;
1961
+ } | {
1962
+ type: typeof WebviewMessageType.UpdateOcxStatus;
1963
+ isRunning: boolean;
1964
+ } | {
1965
+ type: typeof WebviewMessageType.UpdateRtkStatus;
1966
+ installed: boolean;
1967
+ version?: string;
1968
+ workspaceEnabled: boolean;
1969
+ } | {
1970
+ type: typeof WebviewMessageType.UpdateCodegraphStatus;
1971
+ installed: boolean;
1972
+ version?: string;
1973
+ indexed: boolean;
1974
+ mcpConfigured?: boolean;
1975
+ hookInstalled?: boolean;
1976
+ instructionsEnabled?: boolean;
1785
1977
  } | {
1786
1978
  type: typeof WebviewMessageType.UpdateAzureProfiles;
1787
1979
  profiles?: AzureProfile[];
@@ -1800,6 +1992,65 @@ interface LinkedSkillPayloadEntry {
1800
1992
  name: string;
1801
1993
  scope?: string;
1802
1994
  }
1995
+ /**
1996
+ * One entry inside the `UpdateCopilotContentStatus.entries` array.
1997
+ * Mirrors the protocol-level `CopilotContentStatusResult` entry shape
1998
+ * (identity + status + optional message) so the webview can render the
1999
+ * reconciliation state without importing the protocol package.
2000
+ */
2001
+ interface CopilotContentStatusEntry {
2002
+ identity: string;
2003
+ status: "restored" | "adopted" | "pending_approval" | "missing_source" | "conflict" | "drifted";
2004
+ message?: string;
2005
+ }
2006
+ /**
2007
+ * Task 7 — webview → extension install intent. Mirrors the Task 3
2008
+ * protocol contract (`copilotContent.package.install`) minus the
2009
+ * private `workspaceDir` field, which the extension handler resolves
2010
+ * itself. `localMode` is REQUIRED for workspace-local sources (the
2011
+ * discovery preview blocks submission until the user picks one) and
2012
+ * is omitted for git / marketplace sources.
2013
+ */
2014
+ interface InstallCopilotPackageAction {
2015
+ type: WebviewMessageType.InstallCopilotPackage;
2016
+ scope: "workspace" | "personal";
2017
+ sourceId: string;
2018
+ packageId: string;
2019
+ artifactIds: string[];
2020
+ pinnedVersion?: string;
2021
+ localMode?: "live" | "private-workspace-override";
2022
+ }
2023
+ /** Task 9 — webview → extension move intent; workspaceDir is resolved extension-side. */
2024
+ interface MoveCopilotPackageAction {
2025
+ type: WebviewMessageType.MoveCopilotPackage;
2026
+ packageId: string;
2027
+ from: "workspace" | "personal";
2028
+ to: "workspace" | "personal";
2029
+ }
2030
+ /** Task 9 — webview → extension uninstall intent; workspaceDir is resolved extension-side. */
2031
+ interface UninstallCopilotPackageAction {
2032
+ type: WebviewMessageType.UninstallCopilotPackage;
2033
+ scope: "workspace" | "personal";
2034
+ packageId: string;
2035
+ }
2036
+ /** Task 10 — webview → extension source list intent; workspaceDir is resolved extension-side. */
2037
+ interface ListCopilotSourcesAction {
2038
+ type: WebviewMessageType.ListCopilotSources;
2039
+ scope: "workspace" | "personal";
2040
+ }
2041
+ /** Task 10 — webview → extension source removal intent; workspaceDir is resolved extension-side. */
2042
+ interface RemoveCopilotSourceAction {
2043
+ type: WebviewMessageType.RemoveCopilotSource;
2044
+ scope: "workspace" | "personal";
2045
+ sourceId: string;
2046
+ }
2047
+ /** Task 10 — webview → extension update preview intent; workspaceDir is resolved extension-side. */
2048
+ interface PreviewCopilotUpdateAction {
2049
+ type: WebviewMessageType.PreviewCopilotUpdate;
2050
+ scope: "workspace" | "personal";
2051
+ packageId: string;
2052
+ revision: string;
2053
+ }
1803
2054
 
1804
2055
  /** Live execution state pushed to webview during task execution */
1805
2056
  interface TaskExecutionState {
@@ -1860,4 +2111,4 @@ declare function asAbortSignal(input: unknown): AbortSignal | undefined;
1860
2111
  */
1861
2112
  declare function safeJson<T>(text: string, fallback: T): T;
1862
2113
 
1863
- export { type AIModelConfig, type AIModelInfo, type AgentPermissionSummary, type AgentToolPermission, type AgentToolRiskLevel, type ApiConfig, type AzureProfile, BUILTIN_PROVIDER_PRESETS, type BalanceEntry, type BridgeLinkMode, type BridgeLinkedSkill, type BridgeRepoEntry, type BridgeRepoSyncPull, type BridgeSkillKind, type BridgeSkillRepoEntry, type BridgeSkillRepoFile, type ByomProviderToggles, ByomSettingsResponse, type ByomSettingsSnapshot, type ByomTogglePayload, CERTIFICATE_BUNDLE_FORMATS, CachedServerUrlResponse, type CachedServerUrlSnapshot, type CertificateBundleEnvironmentSupport, type CertificateBundleFormat, type CertificateBundleFormatDescriptor, type CodingPlanUsage, type CommandPayload, type CuratedModelMetadata, type DeepseekBalanceEntry, type DeepseekUsage, DeviceAuthHeaders, type DeviceRequestSignatureParams, type DownloadCertificateBundleRequest, type DownloadCertificateBundleResponse, type ExternalTool, GIT_REMOTE_HOST_ALIASES, type GenericBalanceUsage, GetByomSettings, GetCachedServerUrl, GetServerProxyState, GetUtilityModels, type GitHubOrgMembershipCheckResult, type GitHubOrgMembershipStatus, type GitHubUser, type GithubCopilotCliPayload, type HttpRequestPayload, type ILogger, LISTABLE_PRESET_MODELS, type LinkedSkillPayloadEntry, LogLevel, MEDALSOFT_NUGET_PRIVATE_SOURCE, MEDALSOFT_PRIVATE_GATEWAY_URL, MODEL_METADATA, type MinimaxUsage, type ModelDetail, type ModelPriceCategory, type ModelPricing, type ModelThinkingSchema, NAMESPACE_ALIASES, NAMESPACE_ALIAS_FAMILY, PRESET_MODEL_FAMILIES, PROVIDER_BASE_URL_PRESETS, PROVIDER_CACHE_CONTROL_METADATA, type PresetModelFamilyGroup, type PresetModelListing, type ProviderBaseUrlPreset, type ProviderCacheControlMetadata, type ProviderConfig, type ProviderModel, type ProviderMutationPayload, type ProviderTestResult, type ProviderType, type ProviderUsageData, type ProviderUsageKind, type ProviderUsageResult, type ProviderVisionMode, type ProviderWireProtocol, type ProvidersResponsePayload, type PublicProvider, type ScheduledTask, type ScheduledTaskType, type ScheduledTaskV1, type ScheduledTasksConfig, type ScheduledTasksLogFile, type ServerProxyAllowOverridePayload, type ServerProxySnapshot, ServerProxyStateResponse, type ServerProxySupportMode, type ServerProxyTogglePayload, SetCacheControlEnabled, SetServerProxyAllowOverride, SetServerProxyEnabled, type ShellPayload, type TaskExecutionLog, type TaskExecutionState, type TaskExecutionStatus, type TaskPayload, type TaskRunStatus, type TaskWorkspaceRef, UpdateUtilityModels, type UpdateUtilityModelsPayload, type UsageWindow, type UtilityModelScope, type UtilityModelsEffective, UtilityModelsResponse, type UtilityModelsSnapshot, type UtilityModelsSource, type WebviewInboundMessage, WebviewMessageType, __internal, asAbortSignal, buildGitHubLocalEmail, buildPresetModel, checkGitHubOrgMembership, createConsoleLogger, createDeviceRequestSignature, currencyForBaseUrl, effectiveAdapterType, fetchGitHubUser, getBuiltinProviderPreset, getGitHubOrgMembership, getPresetModelDisplayName, getProviderBaseUrlPresets, isGitHubLocalEmail, isProviderCacheControlAware, isValidCanonicalSlug, listPresetModelGroups, lookupModelMetadata, normalizeCanonicalSlug, normalizeErrorForLog, normalizeGitUrl, parsePayload, protocolForBaseUrl, resolvePrimaryEmail, safeJson, unionProviderModelWithPreset };
2114
+ export { type AIModelConfig, type AIModelInfo, type AgentPermissionSummary, type AgentToolPermission, type AgentToolRiskLevel, type ApiConfig, type AzureProfile, BUILTIN_PROVIDER_PRESETS, type BalanceEntry, type BridgeLinkMode, type BridgeLinkedSkill, type BridgeRepoEntry, type BridgeRepoSyncPull, type BridgeSkillKind, type BridgeSkillRepoEntry, type BridgeSkillRepoFile, type ByomProviderToggles, ByomSettingsResponse, type ByomSettingsSnapshot, type ByomTogglePayload, CERTIFICATE_BUNDLE_FORMATS, CachedServerUrlResponse, type CachedServerUrlSnapshot, type CertificateBundleEnvironmentSupport, type CertificateBundleFormat, type CertificateBundleFormatDescriptor, type CodingPlanUsage, type CommandPayload, type CopilotArtifactStatePayload, type CopilotArtifactSummaryPayload, type CopilotArtifactViewPayload, type CopilotAvailablePackagePayload, type CopilotContentStatusEntry, type CopilotCustomizationArtifactKind, type CopilotCustomizationGate, type CopilotCustomizationHealth, type CopilotCustomizationInstallIntent, type CopilotCustomizationScope, type CopilotCustomizationStatus, type CopilotCustomizationViewPayload, type CopilotPackageDefinitionPayload, type CopilotPackageInstallationPayload, type CopilotPackageUpdatePreviewPayload, type CopilotPackageViewPayload, type CopilotSourceRecordPayload, type CopilotSourceViewPayload, type CuratedModelMetadata, type DeepseekBalanceEntry, type DeepseekUsage, DeviceAuthHeaders, type DeviceRequestSignatureParams, type DownloadCertificateBundleRequest, type DownloadCertificateBundleResponse, type ExternalTool, GIT_REMOTE_HOST_ALIASES, type GenericBalanceUsage, GetByomSettings, GetCachedServerUrl, GetServerProxyState, GetUtilityModels, type GitHubOrgMembershipCheckResult, type GitHubOrgMembershipStatus, type GitHubUser, type GithubCopilotCliPayload, type HttpRequestPayload, type ILogger, type InstallCopilotPackageAction, LISTABLE_PRESET_MODELS, type LinkedSkillPayloadEntry, type ListCopilotSourcesAction, LogLevel, MEDALSOFT_NUGET_PRIVATE_SOURCE, MEDALSOFT_PRIVATE_GATEWAY_URL, MODEL_METADATA, type MinimaxUsage, type ModelDetail, type ModelPriceCategory, type ModelPricing, type ModelThinkingSchema, type MoveCopilotPackageAction, NAMESPACE_ALIASES, NAMESPACE_ALIAS_FAMILY, PRESET_MODEL_FAMILIES, PROVIDER_BASE_URL_PRESETS, PROVIDER_CACHE_CONTROL_METADATA, type PresetModelFamilyGroup, type PresetModelListing, type PreviewCopilotUpdateAction, type ProviderBaseUrlPreset, type ProviderCacheControlMetadata, type ProviderConfig, type ProviderModel, type ProviderMutationPayload, type ProviderTestResult, type ProviderType, type ProviderUsageData, type ProviderUsageKind, type ProviderUsageResult, type ProviderVisionMode, type ProviderWireProtocol, type ProvidersResponsePayload, type PublicProvider, type RemoveCopilotSourceAction, type ScheduledTask, type ScheduledTaskType, type ScheduledTaskV1, type ScheduledTasksConfig, type ScheduledTasksLogFile, type ServerProxyAllowOverridePayload, type ServerProxySnapshot, ServerProxyStateResponse, type ServerProxySupportMode, type ServerProxyTogglePayload, SetCacheControlEnabled, SetServerProxyAllowOverride, SetServerProxyEnabled, type ShellPayload, type TaskExecutionLog, type TaskExecutionState, type TaskExecutionStatus, type TaskPayload, type TaskRunStatus, type TaskWorkspaceRef, type UninstallCopilotPackageAction, UpdateUtilityModels, type UpdateUtilityModelsPayload, type UsageWindow, type UtilityModelScope, type UtilityModelsEffective, UtilityModelsResponse, type UtilityModelsSnapshot, type UtilityModelsSource, type WebviewInboundMessage, WebviewMessageType, __internal, asAbortSignal, buildGitHubLocalEmail, buildPresetModel, checkGitHubOrgMembership, createConsoleLogger, createDeviceRequestSignature, currencyForBaseUrl, effectiveAdapterType, fetchGitHubUser, getBuiltinProviderPreset, getGitHubOrgMembership, getPresetModelDisplayName, getProviderBaseUrlPresets, isGitHubLocalEmail, isProviderCacheControlAware, isValidCanonicalSlug, isWholePackageInstall, listPresetModelGroups, lookupModelMetadata, normalizeCanonicalSlug, normalizeErrorForLog, normalizeGitUrl, parsePayload, protocolForBaseUrl, resolvePrimaryEmail, safeJson, unionProviderModelWithPreset };