@serviceme/devtools-shared 1.0.0 → 2.0.1
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 +243 -3
- package/dist/index.d.ts +243 -3
- package/dist/index.js +113 -120
- package/dist/index.mjs +111 -120
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -903,7 +903,8 @@ interface DownloadCertificateBundleRequest {
|
|
|
903
903
|
format: CertificateBundleFormat;
|
|
904
904
|
/** Override for the export password (PFX / JKS only). When omitted, the
|
|
905
905
|
* extension falls back to the `ms-devtools.certificate.exportPassword`
|
|
906
|
-
* setting
|
|
906
|
+
* setting; when that is unset, a strong random password is generated
|
|
907
|
+
* per export. */
|
|
907
908
|
password?: string;
|
|
908
909
|
}
|
|
909
910
|
/** Response sent back to the Webview — same shape as the existing PEM bundle
|
|
@@ -924,7 +925,8 @@ interface CertificateBundleEnvironmentSupport {
|
|
|
924
925
|
/** `true` once `keytool` was found on PATH (required only for JKS). */
|
|
925
926
|
jdkAvailable: boolean;
|
|
926
927
|
/** Mirror of `msDevTools.certificate.exportPassword` — surfaces the
|
|
927
|
-
* effective default
|
|
928
|
+
* effective default (the configured value, or a freshly generated
|
|
929
|
+
* random one when unset) so the UI doesn't have to subscribe to config
|
|
928
930
|
* change events. */
|
|
929
931
|
defaultPassword: string;
|
|
930
932
|
}
|
|
@@ -947,6 +949,139 @@ declare const MEDALSOFT_PRIVATE_GATEWAY_URL = "http://10.10.10.249:3000/v1";
|
|
|
947
949
|
/** Medalsoft 私有 NuGet 源,仅办公网可达。 */
|
|
948
950
|
declare const MEDALSOFT_NUGET_PRIVATE_SOURCE = "http://192.168.20.209:10010/nuget";
|
|
949
951
|
|
|
952
|
+
type CopilotCustomizationScope = "workspace" | "personal";
|
|
953
|
+
type CopilotCustomizationArtifactKind = "agent" | "skill" | "prompt" | "instruction" | "mcp" | "hook";
|
|
954
|
+
type CopilotCustomizationInstallIntent = "available" | "selected" | "moving" | "removing";
|
|
955
|
+
type CopilotCustomizationHealth = "healthy" | "missing" | "drifted" | "conflict" | "source-unavailable" | "unsupported";
|
|
956
|
+
type CopilotCustomizationGate = "ready" | "approval-required" | "configuration-required";
|
|
957
|
+
type CopilotCustomizationStatus = "healthy" | "action-required" | "blocked" | "not-enabled";
|
|
958
|
+
interface CopilotArtifactStatePayload {
|
|
959
|
+
intent: CopilotCustomizationInstallIntent;
|
|
960
|
+
health: CopilotCustomizationHealth;
|
|
961
|
+
gate: CopilotCustomizationGate;
|
|
962
|
+
}
|
|
963
|
+
interface CopilotArtifactSummaryPayload {
|
|
964
|
+
id: string;
|
|
965
|
+
packageId: string;
|
|
966
|
+
kind: CopilotCustomizationArtifactKind;
|
|
967
|
+
displayName: string;
|
|
968
|
+
description?: string;
|
|
969
|
+
installStrategy: "link" | "generated-config" | "approval-gated";
|
|
970
|
+
risk: "none" | "review-required";
|
|
971
|
+
}
|
|
972
|
+
interface CopilotPackageInstallationPayload {
|
|
973
|
+
packageId: string;
|
|
974
|
+
scope: CopilotCustomizationScope;
|
|
975
|
+
selectedArtifactIds: string[];
|
|
976
|
+
pinnedVersion?: string;
|
|
977
|
+
}
|
|
978
|
+
interface CopilotPackageDefinitionPayload {
|
|
979
|
+
id: string;
|
|
980
|
+
sourceId: string;
|
|
981
|
+
displayName: string;
|
|
982
|
+
description?: string;
|
|
983
|
+
version?: string;
|
|
984
|
+
artifacts: CopilotArtifactSummaryPayload[];
|
|
985
|
+
/** Whole-package registrar installation — the home package list shows
|
|
986
|
+
* these; per-artifact v1 manifest plugins stay in enabled-content. */
|
|
987
|
+
wholePackage?: boolean;
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Whole-package registrar install marker: the explicit `wholePackage`
|
|
991
|
+
* flag, or (legacy shape) the synthetic `::package:` artifact. Such
|
|
992
|
+
* packages are PERSONAL-scope only — registrar-owned, so per-artifact
|
|
993
|
+
* scope actions (move to workspace) do not apply.
|
|
994
|
+
*/
|
|
995
|
+
declare function isWholePackageInstall(definition: Pick<CopilotPackageDefinitionPayload, "wholePackage" | "artifacts">): boolean;
|
|
996
|
+
/**
|
|
997
|
+
* Registrar record id (`repo:plugin`) from a view/package payload id
|
|
998
|
+
* (`repo::plugin`). Both spellings float around the wire; the registrar
|
|
999
|
+
* and the settings keys always use the single-colon form.
|
|
1000
|
+
*/
|
|
1001
|
+
declare function registrationIdFromPackageId(packageId: string): string;
|
|
1002
|
+
interface CopilotArtifactViewPayload {
|
|
1003
|
+
artifact: CopilotArtifactSummaryPayload;
|
|
1004
|
+
state: CopilotArtifactStatePayload;
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* An installable plugin.json package found by scanning an enabled git
|
|
1008
|
+
* source — NOT yet (necessarily) installed. The CLI enumerates these
|
|
1009
|
+
* via the core plugin catalog and attaches them to the
|
|
1010
|
+
* `copilotCustomizations.list` result; `packageId` is directly usable
|
|
1011
|
+
* as the install input.
|
|
1012
|
+
*/
|
|
1013
|
+
interface CopilotAvailablePackagePayload {
|
|
1014
|
+
/** `${sourceId}::${pluginId}` — directly usable as the install input. */
|
|
1015
|
+
packageId: string;
|
|
1016
|
+
sourceId: string;
|
|
1017
|
+
displayName: string;
|
|
1018
|
+
description?: string;
|
|
1019
|
+
version?: string;
|
|
1020
|
+
/** Full artifact summaries so the install preview can select artifacts. */
|
|
1021
|
+
artifacts: CopilotArtifactSummaryPayload[];
|
|
1022
|
+
/** Which scopes currently have this packageId installed (may be both). */
|
|
1023
|
+
installedScopes: CopilotCustomizationScope[];
|
|
1024
|
+
/** VS Code enablement (`chat.pluginLocations` value) for registered
|
|
1025
|
+
* packages — overlaid extension-side; `undefined` for not-registered
|
|
1026
|
+
* packages or older extension builds. */
|
|
1027
|
+
enabled?: boolean;
|
|
1028
|
+
}
|
|
1029
|
+
interface CopilotPackageViewPayload {
|
|
1030
|
+
definition: CopilotPackageDefinitionPayload;
|
|
1031
|
+
installation: CopilotPackageInstallationPayload;
|
|
1032
|
+
artifacts: CopilotArtifactViewPayload[];
|
|
1033
|
+
selectedArtifactCount: number;
|
|
1034
|
+
/** VS Code enablement for whole-package (registrar) rows —
|
|
1035
|
+
* overlaid extension-side; `undefined` for artifact-level packages
|
|
1036
|
+
* or older extension builds. */
|
|
1037
|
+
enabled?: boolean;
|
|
1038
|
+
status: CopilotCustomizationStatus;
|
|
1039
|
+
}
|
|
1040
|
+
interface CopilotSourceViewPayload {
|
|
1041
|
+
id: string;
|
|
1042
|
+
type: "marketplace" | "git" | "local";
|
|
1043
|
+
displayName: string;
|
|
1044
|
+
updateCapability: "pinned" | "live" | "none";
|
|
1045
|
+
packages: CopilotPackageViewPayload[];
|
|
1046
|
+
}
|
|
1047
|
+
/** Task 10 — normalized source record for the source manager UI. */
|
|
1048
|
+
interface CopilotSourceRecordPayload {
|
|
1049
|
+
id: string;
|
|
1050
|
+
type: "marketplace" | "git" | "local";
|
|
1051
|
+
displayName: string;
|
|
1052
|
+
updateCapability: "pinned" | "live" | "none";
|
|
1053
|
+
/** Whether the source content is currently materialized on disk. */
|
|
1054
|
+
available: boolean;
|
|
1055
|
+
/** Where this source is declared: "workspace" (manifest), "personal" (intent), or both. */
|
|
1056
|
+
declaredIn: Array<"workspace" | "personal">;
|
|
1057
|
+
}
|
|
1058
|
+
/** Task 10 — deterministic, side-effect-free package update preview. */
|
|
1059
|
+
interface CopilotPackageUpdatePreviewPayload {
|
|
1060
|
+
packageId: string;
|
|
1061
|
+
fromVersion?: string;
|
|
1062
|
+
toVersion: string;
|
|
1063
|
+
addedArtifactIds: string[];
|
|
1064
|
+
removedArtifactIds: string[];
|
|
1065
|
+
changedArtifactIds: string[];
|
|
1066
|
+
approvalInvalidatedArtifactIds: string[];
|
|
1067
|
+
}
|
|
1068
|
+
interface CopilotCustomizationViewPayload {
|
|
1069
|
+
scope: CopilotCustomizationScope;
|
|
1070
|
+
generatedAt: string;
|
|
1071
|
+
sources: CopilotSourceViewPayload[];
|
|
1072
|
+
packages: CopilotPackageViewPayload[];
|
|
1073
|
+
attention: CopilotArtifactViewPayload[];
|
|
1074
|
+
summary: {
|
|
1075
|
+
packageCount: number;
|
|
1076
|
+
enabledArtifactCount: number;
|
|
1077
|
+
attentionCount: number;
|
|
1078
|
+
};
|
|
1079
|
+
legacyMigration?: {
|
|
1080
|
+
count: number;
|
|
1081
|
+
sourceLabel: "~/.agents";
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
|
|
950
1085
|
/**
|
|
951
1086
|
* Device-auth wire contract shared by the extension (signer) and the
|
|
952
1087
|
* server (verifier).
|
|
@@ -1317,6 +1452,10 @@ interface BridgeSkillRepoEntry {
|
|
|
1317
1452
|
frontmatter: Record<string, unknown>;
|
|
1318
1453
|
/** ISO timestamp of the manifest's mtime. */
|
|
1319
1454
|
modifiedAt: string;
|
|
1455
|
+
/** Machine-local disable mark — true when the entry's link is removed
|
|
1456
|
+
* on this machine while its installation intent stays. Overlaid by
|
|
1457
|
+
* the bridge; absent on older CLIs. */
|
|
1458
|
+
disabled?: boolean;
|
|
1320
1459
|
}
|
|
1321
1460
|
/** A single file inside an entry (SkillStore.SkillFile). */
|
|
1322
1461
|
interface BridgeSkillRepoFile {
|
|
@@ -1493,6 +1632,7 @@ declare enum WebviewMessageType {
|
|
|
1493
1632
|
InstallSkillRepoEntry = "installSkillRepoEntry",
|
|
1494
1633
|
ConvertSkillRepoEntryToSymlink = "convertSkillRepoEntryToSymlink",
|
|
1495
1634
|
UninstallSkillRepoEntry = "uninstallSkillRepoEntry",
|
|
1635
|
+
SetSkillRepoEntryEnabled = "setSkillRepoEntryEnabled",
|
|
1496
1636
|
ListLinkedSkills = "listLinkedSkills",
|
|
1497
1637
|
UpdateSkillRepoCatalog = "updateSkillRepoCatalog",
|
|
1498
1638
|
UpdateSkillRepoInstall = "updateSkillRepoInstall",
|
|
@@ -1510,12 +1650,36 @@ declare enum WebviewMessageType {
|
|
|
1510
1650
|
DisableRepository = "disableRepository",
|
|
1511
1651
|
SyncRepository = "syncRepository",
|
|
1512
1652
|
SyncAllRepositories = "syncAllRepositories",
|
|
1653
|
+
ResetParseCache = "resetParseCache",
|
|
1654
|
+
ListCopilotPlugins = "listCopilotPlugins",
|
|
1655
|
+
RegisterCopilotPlugin = "registerCopilotPlugin",
|
|
1656
|
+
UnregisterCopilotPlugin = "unregisterCopilotPlugin",
|
|
1657
|
+
SetCopilotPluginEnabled = "setCopilotPluginEnabled",
|
|
1658
|
+
GetCopilotContentStatus = "getCopilotContentStatus",
|
|
1659
|
+
RestoreCopilotContent = "restoreCopilotContent",
|
|
1660
|
+
ApproveCopilotContent = "approveCopilotContent",
|
|
1513
1661
|
UpdateRepositoryList = "updateRepositoryList",
|
|
1514
1662
|
UpdateRepositoryAdd = "updateRepositoryAdd",
|
|
1515
1663
|
UpdateRepositoryUpdate = "updateRepositoryUpdate",
|
|
1516
1664
|
UpdateRepositoryRemove = "updateRepositoryRemove",
|
|
1517
1665
|
UpdateRepositoryToggle = "updateRepositoryToggle",
|
|
1518
1666
|
UpdateRepositorySyncResult = "updateRepositorySyncResult",
|
|
1667
|
+
UpdateCopilotContentStatus = "updateCopilotContentStatus",
|
|
1668
|
+
GetCopilotCustomizations = "getCopilotCustomizations",
|
|
1669
|
+
SyncCopilotCustomizations = "syncCopilotCustomizations",
|
|
1670
|
+
UpdateCopilotCustomizations = "updateCopilotCustomizations",
|
|
1671
|
+
InstallCopilotPackage = "installCopilotPackage",
|
|
1672
|
+
MoveCopilotPackage = "moveCopilotPackage",
|
|
1673
|
+
UninstallCopilotPackage = "uninstallCopilotPackage",
|
|
1674
|
+
ListCopilotSources = "listCopilotSources",
|
|
1675
|
+
RemoveCopilotSource = "removeCopilotSource",
|
|
1676
|
+
PreviewCopilotUpdate = "previewCopilotUpdate",
|
|
1677
|
+
UpdateCopilotPackage = "updateCopilotPackage",
|
|
1678
|
+
PreviewCopilotLegacy = "previewCopilotLegacy",
|
|
1679
|
+
MigrateCopilotLegacy = "migrateCopilotLegacy",
|
|
1680
|
+
UpdateCopilotSources = "updateCopilotSources",
|
|
1681
|
+
UpdateCopilotUpdatePreview = "updateCopilotUpdatePreview",
|
|
1682
|
+
UpdateCopilotLegacyPreview = "updateCopilotLegacyPreview",
|
|
1519
1683
|
GetUtilityModels = "getUtilityModels",
|
|
1520
1684
|
UtilityModelsResponse = "utilityModelsResponse",
|
|
1521
1685
|
UpdateUtilityModels = "updateUtilityModels",
|
|
@@ -1779,6 +1943,23 @@ type WebviewInboundMessage = {
|
|
|
1779
1943
|
type: typeof WebviewMessageType.UpdateLinkedSkills;
|
|
1780
1944
|
links: LinkedSkillPayloadEntry[];
|
|
1781
1945
|
kind: "skill" | "agent";
|
|
1946
|
+
} | {
|
|
1947
|
+
type: typeof WebviewMessageType.UpdateCopilotContentStatus;
|
|
1948
|
+
entries: CopilotContentStatusEntry[];
|
|
1949
|
+
changed: boolean;
|
|
1950
|
+
workspaceOpen?: boolean;
|
|
1951
|
+
} | {
|
|
1952
|
+
type: typeof WebviewMessageType.UpdateCopilotCustomizations;
|
|
1953
|
+
view: CopilotCustomizationViewPayload;
|
|
1954
|
+
/** Installable plugin.json packages from the enabled git
|
|
1955
|
+
* sources. Optional: older CLI builds omit it. */
|
|
1956
|
+
availablePackages?: CopilotAvailablePackagePayload[];
|
|
1957
|
+
} | {
|
|
1958
|
+
type: typeof WebviewMessageType.UpdateCopilotSources;
|
|
1959
|
+
sources: CopilotSourceRecordPayload[];
|
|
1960
|
+
} | {
|
|
1961
|
+
type: typeof WebviewMessageType.UpdateCopilotUpdatePreview;
|
|
1962
|
+
preview: CopilotPackageUpdatePreviewPayload;
|
|
1782
1963
|
} | {
|
|
1783
1964
|
type: typeof WebviewMessageType.UpdateExternalTools;
|
|
1784
1965
|
tools?: ExternalTool[];
|
|
@@ -1819,6 +2000,65 @@ interface LinkedSkillPayloadEntry {
|
|
|
1819
2000
|
name: string;
|
|
1820
2001
|
scope?: string;
|
|
1821
2002
|
}
|
|
2003
|
+
/**
|
|
2004
|
+
* One entry inside the `UpdateCopilotContentStatus.entries` array.
|
|
2005
|
+
* Mirrors the protocol-level `CopilotContentStatusResult` entry shape
|
|
2006
|
+
* (identity + status + optional message) so the webview can render the
|
|
2007
|
+
* reconciliation state without importing the protocol package.
|
|
2008
|
+
*/
|
|
2009
|
+
interface CopilotContentStatusEntry {
|
|
2010
|
+
identity: string;
|
|
2011
|
+
status: "restored" | "adopted" | "pending_approval" | "missing_source" | "conflict" | "drifted";
|
|
2012
|
+
message?: string;
|
|
2013
|
+
}
|
|
2014
|
+
/**
|
|
2015
|
+
* Task 7 — webview → extension install intent. Mirrors the Task 3
|
|
2016
|
+
* protocol contract (`copilotContent.package.install`) minus the
|
|
2017
|
+
* private `workspaceDir` field, which the extension handler resolves
|
|
2018
|
+
* itself. `localMode` is REQUIRED for workspace-local sources (the
|
|
2019
|
+
* discovery preview blocks submission until the user picks one) and
|
|
2020
|
+
* is omitted for git / marketplace sources.
|
|
2021
|
+
*/
|
|
2022
|
+
interface InstallCopilotPackageAction {
|
|
2023
|
+
type: WebviewMessageType.InstallCopilotPackage;
|
|
2024
|
+
scope: "workspace" | "personal";
|
|
2025
|
+
sourceId: string;
|
|
2026
|
+
packageId: string;
|
|
2027
|
+
artifactIds: string[];
|
|
2028
|
+
pinnedVersion?: string;
|
|
2029
|
+
localMode?: "live" | "private-workspace-override";
|
|
2030
|
+
}
|
|
2031
|
+
/** Task 9 — webview → extension move intent; workspaceDir is resolved extension-side. */
|
|
2032
|
+
interface MoveCopilotPackageAction {
|
|
2033
|
+
type: WebviewMessageType.MoveCopilotPackage;
|
|
2034
|
+
packageId: string;
|
|
2035
|
+
from: "workspace" | "personal";
|
|
2036
|
+
to: "workspace" | "personal";
|
|
2037
|
+
}
|
|
2038
|
+
/** Task 9 — webview → extension uninstall intent; workspaceDir is resolved extension-side. */
|
|
2039
|
+
interface UninstallCopilotPackageAction {
|
|
2040
|
+
type: WebviewMessageType.UninstallCopilotPackage;
|
|
2041
|
+
scope: "workspace" | "personal";
|
|
2042
|
+
packageId: string;
|
|
2043
|
+
}
|
|
2044
|
+
/** Task 10 — webview → extension source list intent; workspaceDir is resolved extension-side. */
|
|
2045
|
+
interface ListCopilotSourcesAction {
|
|
2046
|
+
type: WebviewMessageType.ListCopilotSources;
|
|
2047
|
+
scope: "workspace" | "personal";
|
|
2048
|
+
}
|
|
2049
|
+
/** Task 10 — webview → extension source removal intent; workspaceDir is resolved extension-side. */
|
|
2050
|
+
interface RemoveCopilotSourceAction {
|
|
2051
|
+
type: WebviewMessageType.RemoveCopilotSource;
|
|
2052
|
+
scope: "workspace" | "personal";
|
|
2053
|
+
sourceId: string;
|
|
2054
|
+
}
|
|
2055
|
+
/** Task 10 — webview → extension update preview intent; workspaceDir is resolved extension-side. */
|
|
2056
|
+
interface PreviewCopilotUpdateAction {
|
|
2057
|
+
type: WebviewMessageType.PreviewCopilotUpdate;
|
|
2058
|
+
scope: "workspace" | "personal";
|
|
2059
|
+
packageId: string;
|
|
2060
|
+
revision: string;
|
|
2061
|
+
}
|
|
1822
2062
|
|
|
1823
2063
|
/** Live execution state pushed to webview during task execution */
|
|
1824
2064
|
interface TaskExecutionState {
|
|
@@ -1879,4 +2119,4 @@ declare function asAbortSignal(input: unknown): AbortSignal | undefined;
|
|
|
1879
2119
|
*/
|
|
1880
2120
|
declare function safeJson<T>(text: string, fallback: T): T;
|
|
1881
2121
|
|
|
1882
|
-
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 };
|
|
2122
|
+
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, registrationIdFromPackageId, resolvePrimaryEmail, safeJson, unionProviderModelWithPreset };
|
package/dist/index.d.ts
CHANGED
|
@@ -903,7 +903,8 @@ interface DownloadCertificateBundleRequest {
|
|
|
903
903
|
format: CertificateBundleFormat;
|
|
904
904
|
/** Override for the export password (PFX / JKS only). When omitted, the
|
|
905
905
|
* extension falls back to the `ms-devtools.certificate.exportPassword`
|
|
906
|
-
* setting
|
|
906
|
+
* setting; when that is unset, a strong random password is generated
|
|
907
|
+
* per export. */
|
|
907
908
|
password?: string;
|
|
908
909
|
}
|
|
909
910
|
/** Response sent back to the Webview — same shape as the existing PEM bundle
|
|
@@ -924,7 +925,8 @@ interface CertificateBundleEnvironmentSupport {
|
|
|
924
925
|
/** `true` once `keytool` was found on PATH (required only for JKS). */
|
|
925
926
|
jdkAvailable: boolean;
|
|
926
927
|
/** Mirror of `msDevTools.certificate.exportPassword` — surfaces the
|
|
927
|
-
* effective default
|
|
928
|
+
* effective default (the configured value, or a freshly generated
|
|
929
|
+
* random one when unset) so the UI doesn't have to subscribe to config
|
|
928
930
|
* change events. */
|
|
929
931
|
defaultPassword: string;
|
|
930
932
|
}
|
|
@@ -947,6 +949,139 @@ declare const MEDALSOFT_PRIVATE_GATEWAY_URL = "http://10.10.10.249:3000/v1";
|
|
|
947
949
|
/** Medalsoft 私有 NuGet 源,仅办公网可达。 */
|
|
948
950
|
declare const MEDALSOFT_NUGET_PRIVATE_SOURCE = "http://192.168.20.209:10010/nuget";
|
|
949
951
|
|
|
952
|
+
type CopilotCustomizationScope = "workspace" | "personal";
|
|
953
|
+
type CopilotCustomizationArtifactKind = "agent" | "skill" | "prompt" | "instruction" | "mcp" | "hook";
|
|
954
|
+
type CopilotCustomizationInstallIntent = "available" | "selected" | "moving" | "removing";
|
|
955
|
+
type CopilotCustomizationHealth = "healthy" | "missing" | "drifted" | "conflict" | "source-unavailable" | "unsupported";
|
|
956
|
+
type CopilotCustomizationGate = "ready" | "approval-required" | "configuration-required";
|
|
957
|
+
type CopilotCustomizationStatus = "healthy" | "action-required" | "blocked" | "not-enabled";
|
|
958
|
+
interface CopilotArtifactStatePayload {
|
|
959
|
+
intent: CopilotCustomizationInstallIntent;
|
|
960
|
+
health: CopilotCustomizationHealth;
|
|
961
|
+
gate: CopilotCustomizationGate;
|
|
962
|
+
}
|
|
963
|
+
interface CopilotArtifactSummaryPayload {
|
|
964
|
+
id: string;
|
|
965
|
+
packageId: string;
|
|
966
|
+
kind: CopilotCustomizationArtifactKind;
|
|
967
|
+
displayName: string;
|
|
968
|
+
description?: string;
|
|
969
|
+
installStrategy: "link" | "generated-config" | "approval-gated";
|
|
970
|
+
risk: "none" | "review-required";
|
|
971
|
+
}
|
|
972
|
+
interface CopilotPackageInstallationPayload {
|
|
973
|
+
packageId: string;
|
|
974
|
+
scope: CopilotCustomizationScope;
|
|
975
|
+
selectedArtifactIds: string[];
|
|
976
|
+
pinnedVersion?: string;
|
|
977
|
+
}
|
|
978
|
+
interface CopilotPackageDefinitionPayload {
|
|
979
|
+
id: string;
|
|
980
|
+
sourceId: string;
|
|
981
|
+
displayName: string;
|
|
982
|
+
description?: string;
|
|
983
|
+
version?: string;
|
|
984
|
+
artifacts: CopilotArtifactSummaryPayload[];
|
|
985
|
+
/** Whole-package registrar installation — the home package list shows
|
|
986
|
+
* these; per-artifact v1 manifest plugins stay in enabled-content. */
|
|
987
|
+
wholePackage?: boolean;
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Whole-package registrar install marker: the explicit `wholePackage`
|
|
991
|
+
* flag, or (legacy shape) the synthetic `::package:` artifact. Such
|
|
992
|
+
* packages are PERSONAL-scope only — registrar-owned, so per-artifact
|
|
993
|
+
* scope actions (move to workspace) do not apply.
|
|
994
|
+
*/
|
|
995
|
+
declare function isWholePackageInstall(definition: Pick<CopilotPackageDefinitionPayload, "wholePackage" | "artifacts">): boolean;
|
|
996
|
+
/**
|
|
997
|
+
* Registrar record id (`repo:plugin`) from a view/package payload id
|
|
998
|
+
* (`repo::plugin`). Both spellings float around the wire; the registrar
|
|
999
|
+
* and the settings keys always use the single-colon form.
|
|
1000
|
+
*/
|
|
1001
|
+
declare function registrationIdFromPackageId(packageId: string): string;
|
|
1002
|
+
interface CopilotArtifactViewPayload {
|
|
1003
|
+
artifact: CopilotArtifactSummaryPayload;
|
|
1004
|
+
state: CopilotArtifactStatePayload;
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* An installable plugin.json package found by scanning an enabled git
|
|
1008
|
+
* source — NOT yet (necessarily) installed. The CLI enumerates these
|
|
1009
|
+
* via the core plugin catalog and attaches them to the
|
|
1010
|
+
* `copilotCustomizations.list` result; `packageId` is directly usable
|
|
1011
|
+
* as the install input.
|
|
1012
|
+
*/
|
|
1013
|
+
interface CopilotAvailablePackagePayload {
|
|
1014
|
+
/** `${sourceId}::${pluginId}` — directly usable as the install input. */
|
|
1015
|
+
packageId: string;
|
|
1016
|
+
sourceId: string;
|
|
1017
|
+
displayName: string;
|
|
1018
|
+
description?: string;
|
|
1019
|
+
version?: string;
|
|
1020
|
+
/** Full artifact summaries so the install preview can select artifacts. */
|
|
1021
|
+
artifacts: CopilotArtifactSummaryPayload[];
|
|
1022
|
+
/** Which scopes currently have this packageId installed (may be both). */
|
|
1023
|
+
installedScopes: CopilotCustomizationScope[];
|
|
1024
|
+
/** VS Code enablement (`chat.pluginLocations` value) for registered
|
|
1025
|
+
* packages — overlaid extension-side; `undefined` for not-registered
|
|
1026
|
+
* packages or older extension builds. */
|
|
1027
|
+
enabled?: boolean;
|
|
1028
|
+
}
|
|
1029
|
+
interface CopilotPackageViewPayload {
|
|
1030
|
+
definition: CopilotPackageDefinitionPayload;
|
|
1031
|
+
installation: CopilotPackageInstallationPayload;
|
|
1032
|
+
artifacts: CopilotArtifactViewPayload[];
|
|
1033
|
+
selectedArtifactCount: number;
|
|
1034
|
+
/** VS Code enablement for whole-package (registrar) rows —
|
|
1035
|
+
* overlaid extension-side; `undefined` for artifact-level packages
|
|
1036
|
+
* or older extension builds. */
|
|
1037
|
+
enabled?: boolean;
|
|
1038
|
+
status: CopilotCustomizationStatus;
|
|
1039
|
+
}
|
|
1040
|
+
interface CopilotSourceViewPayload {
|
|
1041
|
+
id: string;
|
|
1042
|
+
type: "marketplace" | "git" | "local";
|
|
1043
|
+
displayName: string;
|
|
1044
|
+
updateCapability: "pinned" | "live" | "none";
|
|
1045
|
+
packages: CopilotPackageViewPayload[];
|
|
1046
|
+
}
|
|
1047
|
+
/** Task 10 — normalized source record for the source manager UI. */
|
|
1048
|
+
interface CopilotSourceRecordPayload {
|
|
1049
|
+
id: string;
|
|
1050
|
+
type: "marketplace" | "git" | "local";
|
|
1051
|
+
displayName: string;
|
|
1052
|
+
updateCapability: "pinned" | "live" | "none";
|
|
1053
|
+
/** Whether the source content is currently materialized on disk. */
|
|
1054
|
+
available: boolean;
|
|
1055
|
+
/** Where this source is declared: "workspace" (manifest), "personal" (intent), or both. */
|
|
1056
|
+
declaredIn: Array<"workspace" | "personal">;
|
|
1057
|
+
}
|
|
1058
|
+
/** Task 10 — deterministic, side-effect-free package update preview. */
|
|
1059
|
+
interface CopilotPackageUpdatePreviewPayload {
|
|
1060
|
+
packageId: string;
|
|
1061
|
+
fromVersion?: string;
|
|
1062
|
+
toVersion: string;
|
|
1063
|
+
addedArtifactIds: string[];
|
|
1064
|
+
removedArtifactIds: string[];
|
|
1065
|
+
changedArtifactIds: string[];
|
|
1066
|
+
approvalInvalidatedArtifactIds: string[];
|
|
1067
|
+
}
|
|
1068
|
+
interface CopilotCustomizationViewPayload {
|
|
1069
|
+
scope: CopilotCustomizationScope;
|
|
1070
|
+
generatedAt: string;
|
|
1071
|
+
sources: CopilotSourceViewPayload[];
|
|
1072
|
+
packages: CopilotPackageViewPayload[];
|
|
1073
|
+
attention: CopilotArtifactViewPayload[];
|
|
1074
|
+
summary: {
|
|
1075
|
+
packageCount: number;
|
|
1076
|
+
enabledArtifactCount: number;
|
|
1077
|
+
attentionCount: number;
|
|
1078
|
+
};
|
|
1079
|
+
legacyMigration?: {
|
|
1080
|
+
count: number;
|
|
1081
|
+
sourceLabel: "~/.agents";
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
|
|
950
1085
|
/**
|
|
951
1086
|
* Device-auth wire contract shared by the extension (signer) and the
|
|
952
1087
|
* server (verifier).
|
|
@@ -1317,6 +1452,10 @@ interface BridgeSkillRepoEntry {
|
|
|
1317
1452
|
frontmatter: Record<string, unknown>;
|
|
1318
1453
|
/** ISO timestamp of the manifest's mtime. */
|
|
1319
1454
|
modifiedAt: string;
|
|
1455
|
+
/** Machine-local disable mark — true when the entry's link is removed
|
|
1456
|
+
* on this machine while its installation intent stays. Overlaid by
|
|
1457
|
+
* the bridge; absent on older CLIs. */
|
|
1458
|
+
disabled?: boolean;
|
|
1320
1459
|
}
|
|
1321
1460
|
/** A single file inside an entry (SkillStore.SkillFile). */
|
|
1322
1461
|
interface BridgeSkillRepoFile {
|
|
@@ -1493,6 +1632,7 @@ declare enum WebviewMessageType {
|
|
|
1493
1632
|
InstallSkillRepoEntry = "installSkillRepoEntry",
|
|
1494
1633
|
ConvertSkillRepoEntryToSymlink = "convertSkillRepoEntryToSymlink",
|
|
1495
1634
|
UninstallSkillRepoEntry = "uninstallSkillRepoEntry",
|
|
1635
|
+
SetSkillRepoEntryEnabled = "setSkillRepoEntryEnabled",
|
|
1496
1636
|
ListLinkedSkills = "listLinkedSkills",
|
|
1497
1637
|
UpdateSkillRepoCatalog = "updateSkillRepoCatalog",
|
|
1498
1638
|
UpdateSkillRepoInstall = "updateSkillRepoInstall",
|
|
@@ -1510,12 +1650,36 @@ declare enum WebviewMessageType {
|
|
|
1510
1650
|
DisableRepository = "disableRepository",
|
|
1511
1651
|
SyncRepository = "syncRepository",
|
|
1512
1652
|
SyncAllRepositories = "syncAllRepositories",
|
|
1653
|
+
ResetParseCache = "resetParseCache",
|
|
1654
|
+
ListCopilotPlugins = "listCopilotPlugins",
|
|
1655
|
+
RegisterCopilotPlugin = "registerCopilotPlugin",
|
|
1656
|
+
UnregisterCopilotPlugin = "unregisterCopilotPlugin",
|
|
1657
|
+
SetCopilotPluginEnabled = "setCopilotPluginEnabled",
|
|
1658
|
+
GetCopilotContentStatus = "getCopilotContentStatus",
|
|
1659
|
+
RestoreCopilotContent = "restoreCopilotContent",
|
|
1660
|
+
ApproveCopilotContent = "approveCopilotContent",
|
|
1513
1661
|
UpdateRepositoryList = "updateRepositoryList",
|
|
1514
1662
|
UpdateRepositoryAdd = "updateRepositoryAdd",
|
|
1515
1663
|
UpdateRepositoryUpdate = "updateRepositoryUpdate",
|
|
1516
1664
|
UpdateRepositoryRemove = "updateRepositoryRemove",
|
|
1517
1665
|
UpdateRepositoryToggle = "updateRepositoryToggle",
|
|
1518
1666
|
UpdateRepositorySyncResult = "updateRepositorySyncResult",
|
|
1667
|
+
UpdateCopilotContentStatus = "updateCopilotContentStatus",
|
|
1668
|
+
GetCopilotCustomizations = "getCopilotCustomizations",
|
|
1669
|
+
SyncCopilotCustomizations = "syncCopilotCustomizations",
|
|
1670
|
+
UpdateCopilotCustomizations = "updateCopilotCustomizations",
|
|
1671
|
+
InstallCopilotPackage = "installCopilotPackage",
|
|
1672
|
+
MoveCopilotPackage = "moveCopilotPackage",
|
|
1673
|
+
UninstallCopilotPackage = "uninstallCopilotPackage",
|
|
1674
|
+
ListCopilotSources = "listCopilotSources",
|
|
1675
|
+
RemoveCopilotSource = "removeCopilotSource",
|
|
1676
|
+
PreviewCopilotUpdate = "previewCopilotUpdate",
|
|
1677
|
+
UpdateCopilotPackage = "updateCopilotPackage",
|
|
1678
|
+
PreviewCopilotLegacy = "previewCopilotLegacy",
|
|
1679
|
+
MigrateCopilotLegacy = "migrateCopilotLegacy",
|
|
1680
|
+
UpdateCopilotSources = "updateCopilotSources",
|
|
1681
|
+
UpdateCopilotUpdatePreview = "updateCopilotUpdatePreview",
|
|
1682
|
+
UpdateCopilotLegacyPreview = "updateCopilotLegacyPreview",
|
|
1519
1683
|
GetUtilityModels = "getUtilityModels",
|
|
1520
1684
|
UtilityModelsResponse = "utilityModelsResponse",
|
|
1521
1685
|
UpdateUtilityModels = "updateUtilityModels",
|
|
@@ -1779,6 +1943,23 @@ type WebviewInboundMessage = {
|
|
|
1779
1943
|
type: typeof WebviewMessageType.UpdateLinkedSkills;
|
|
1780
1944
|
links: LinkedSkillPayloadEntry[];
|
|
1781
1945
|
kind: "skill" | "agent";
|
|
1946
|
+
} | {
|
|
1947
|
+
type: typeof WebviewMessageType.UpdateCopilotContentStatus;
|
|
1948
|
+
entries: CopilotContentStatusEntry[];
|
|
1949
|
+
changed: boolean;
|
|
1950
|
+
workspaceOpen?: boolean;
|
|
1951
|
+
} | {
|
|
1952
|
+
type: typeof WebviewMessageType.UpdateCopilotCustomizations;
|
|
1953
|
+
view: CopilotCustomizationViewPayload;
|
|
1954
|
+
/** Installable plugin.json packages from the enabled git
|
|
1955
|
+
* sources. Optional: older CLI builds omit it. */
|
|
1956
|
+
availablePackages?: CopilotAvailablePackagePayload[];
|
|
1957
|
+
} | {
|
|
1958
|
+
type: typeof WebviewMessageType.UpdateCopilotSources;
|
|
1959
|
+
sources: CopilotSourceRecordPayload[];
|
|
1960
|
+
} | {
|
|
1961
|
+
type: typeof WebviewMessageType.UpdateCopilotUpdatePreview;
|
|
1962
|
+
preview: CopilotPackageUpdatePreviewPayload;
|
|
1782
1963
|
} | {
|
|
1783
1964
|
type: typeof WebviewMessageType.UpdateExternalTools;
|
|
1784
1965
|
tools?: ExternalTool[];
|
|
@@ -1819,6 +2000,65 @@ interface LinkedSkillPayloadEntry {
|
|
|
1819
2000
|
name: string;
|
|
1820
2001
|
scope?: string;
|
|
1821
2002
|
}
|
|
2003
|
+
/**
|
|
2004
|
+
* One entry inside the `UpdateCopilotContentStatus.entries` array.
|
|
2005
|
+
* Mirrors the protocol-level `CopilotContentStatusResult` entry shape
|
|
2006
|
+
* (identity + status + optional message) so the webview can render the
|
|
2007
|
+
* reconciliation state without importing the protocol package.
|
|
2008
|
+
*/
|
|
2009
|
+
interface CopilotContentStatusEntry {
|
|
2010
|
+
identity: string;
|
|
2011
|
+
status: "restored" | "adopted" | "pending_approval" | "missing_source" | "conflict" | "drifted";
|
|
2012
|
+
message?: string;
|
|
2013
|
+
}
|
|
2014
|
+
/**
|
|
2015
|
+
* Task 7 — webview → extension install intent. Mirrors the Task 3
|
|
2016
|
+
* protocol contract (`copilotContent.package.install`) minus the
|
|
2017
|
+
* private `workspaceDir` field, which the extension handler resolves
|
|
2018
|
+
* itself. `localMode` is REQUIRED for workspace-local sources (the
|
|
2019
|
+
* discovery preview blocks submission until the user picks one) and
|
|
2020
|
+
* is omitted for git / marketplace sources.
|
|
2021
|
+
*/
|
|
2022
|
+
interface InstallCopilotPackageAction {
|
|
2023
|
+
type: WebviewMessageType.InstallCopilotPackage;
|
|
2024
|
+
scope: "workspace" | "personal";
|
|
2025
|
+
sourceId: string;
|
|
2026
|
+
packageId: string;
|
|
2027
|
+
artifactIds: string[];
|
|
2028
|
+
pinnedVersion?: string;
|
|
2029
|
+
localMode?: "live" | "private-workspace-override";
|
|
2030
|
+
}
|
|
2031
|
+
/** Task 9 — webview → extension move intent; workspaceDir is resolved extension-side. */
|
|
2032
|
+
interface MoveCopilotPackageAction {
|
|
2033
|
+
type: WebviewMessageType.MoveCopilotPackage;
|
|
2034
|
+
packageId: string;
|
|
2035
|
+
from: "workspace" | "personal";
|
|
2036
|
+
to: "workspace" | "personal";
|
|
2037
|
+
}
|
|
2038
|
+
/** Task 9 — webview → extension uninstall intent; workspaceDir is resolved extension-side. */
|
|
2039
|
+
interface UninstallCopilotPackageAction {
|
|
2040
|
+
type: WebviewMessageType.UninstallCopilotPackage;
|
|
2041
|
+
scope: "workspace" | "personal";
|
|
2042
|
+
packageId: string;
|
|
2043
|
+
}
|
|
2044
|
+
/** Task 10 — webview → extension source list intent; workspaceDir is resolved extension-side. */
|
|
2045
|
+
interface ListCopilotSourcesAction {
|
|
2046
|
+
type: WebviewMessageType.ListCopilotSources;
|
|
2047
|
+
scope: "workspace" | "personal";
|
|
2048
|
+
}
|
|
2049
|
+
/** Task 10 — webview → extension source removal intent; workspaceDir is resolved extension-side. */
|
|
2050
|
+
interface RemoveCopilotSourceAction {
|
|
2051
|
+
type: WebviewMessageType.RemoveCopilotSource;
|
|
2052
|
+
scope: "workspace" | "personal";
|
|
2053
|
+
sourceId: string;
|
|
2054
|
+
}
|
|
2055
|
+
/** Task 10 — webview → extension update preview intent; workspaceDir is resolved extension-side. */
|
|
2056
|
+
interface PreviewCopilotUpdateAction {
|
|
2057
|
+
type: WebviewMessageType.PreviewCopilotUpdate;
|
|
2058
|
+
scope: "workspace" | "personal";
|
|
2059
|
+
packageId: string;
|
|
2060
|
+
revision: string;
|
|
2061
|
+
}
|
|
1822
2062
|
|
|
1823
2063
|
/** Live execution state pushed to webview during task execution */
|
|
1824
2064
|
interface TaskExecutionState {
|
|
@@ -1879,4 +2119,4 @@ declare function asAbortSignal(input: unknown): AbortSignal | undefined;
|
|
|
1879
2119
|
*/
|
|
1880
2120
|
declare function safeJson<T>(text: string, fallback: T): T;
|
|
1881
2121
|
|
|
1882
|
-
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 };
|
|
2122
|
+
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, registrationIdFromPackageId, resolvePrimaryEmail, safeJson, unionProviderModelWithPreset };
|