@serviceme/devtools-shared 0.4.5 → 0.4.7

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
@@ -194,6 +194,29 @@ interface ProviderModel {
194
194
  */
195
195
  thinkingSchema?: ModelThinkingSchema;
196
196
  }
197
+ /**
198
+ * Per-model vision handling mode (BYOM-depth #3).
199
+ *
200
+ * Borrowed from
201
+ * `docs/references/GLM-for-copilot-main/src/types.ts:167`
202
+ * (`ModelVisionMode = 'proxy' | 'native' | 'mcp'`). v1 ships
203
+ * `native` + `mcp`; `proxy` is reserved for v2 (the recursive-
204
+ * chat vision model description has its own design pass).
205
+ *
206
+ * - `native` (default) — image bytes are passed inline to the
207
+ * adapter, which translates them to the vendor's native
208
+ * wire shape (OpenAI `image_url`, Anthropic `source.base64`).
209
+ * Existing v0 behaviour; byte-identical to the pre-BYOM-depth
210
+ * path.
211
+ * - `mcp` — image bytes are persisted to
212
+ * `<globalStorageUri>/images/<sha256>.<ext>` and the user
213
+ * message is rewritten with a `[Image attached at local file:
214
+ * <path>]` placeholder + a system preamble telling the model
215
+ * to use an image-capable MCP tool to read the file. Useful
216
+ * for text-only models and self-hosted gateways where inline
217
+ * base64 is undesirable.
218
+ */
219
+ type ProviderVisionMode = "native" | "mcp";
197
220
  /**
198
221
  * Persisted provider configuration. `apiKeyRef` is the SecretStorage
199
222
  * key; the actual key never appears in this object after creation
@@ -232,6 +255,16 @@ interface ProviderConfig {
232
255
  * Ignored for non-minimax providers.
233
256
  */
234
257
  minimaxBillingType?: "token_plan" | "pay_as_you_go";
258
+ /**
259
+ * Per-provider vision handling mode (BYOM-depth #3). Defaults
260
+ * to `"native"` when absent — the existing v0 behaviour,
261
+ * byte-identical to the pre-BYOM-depth path. Set to `"mcp"`
262
+ * to route image-bearing requests through the on-disk
263
+ * placeholder path (useful for text-only models and self-
264
+ * hosted gateways). See {@link ProviderVisionMode} for the
265
+ * full contract.
266
+ */
267
+ visionMode?: ProviderVisionMode;
235
268
  /** Created / updated timestamps (informational) */
236
269
  createdAt: string;
237
270
  updatedAt: string;
@@ -408,6 +441,63 @@ interface ProviderBaseUrlPreset {
408
441
  baseUrl: string;
409
442
  }
410
443
 
444
+ /**
445
+ * Wire protocol implied by a `baseUrl`.
446
+ *
447
+ * Used to disambiguate the same vendor's two coexisting endpoints
448
+ * (OpenAI-compatible vs Anthropic-compatible) when the user picks
449
+ * a baseUrl from the ProvidersTab dropdown. Today the only
450
+ * commonly-ambiguous vendor is **Zhipu / 智谱**:
451
+ *
452
+ * - `https://open.bigmodel.cn/api/paas/v4` → openai
453
+ * - `https://open.bigmodel.cn/api/coding/paas/v4` → openai
454
+ * - `https://open.bigmodel.cn/api/anthropic` → anthropic
455
+ * - `https://api.z.ai/api/paas/v4` → openai
456
+ * - `https://api.z.ai/api/coding/paas/v4` → openai
457
+ * - `https://api.z.ai/api/anthropic` → anthropic
458
+ *
459
+ * The reference plugin (`docs/references/GLM-for-copilot-main`)
460
+ * encodes this as an `EndpointPreset` enum literal; we encode it
461
+ * as a path heuristic on the baseUrl. Trade-off: a typo'd path
462
+ * that says "anthropic" would mis-classify, but the same
463
+ * `PROVIDER_BASE_URL_PRESETS.zhipu` dropdown that exposes the
464
+ * Anthropic option ALSO labels it `国内 · Coding Plan · Anthropic 协议`
465
+ * so the user has visual confirmation; a typo in path without
466
+ * matching dropdown is unlikely.
467
+ *
468
+ * Detection rule: a `/anthropic` (or `/anthropic/...`) segment
469
+ * anywhere in the URL **path** — case-insensitive. Hostname
470
+ * matches (e.g. `api.anthropic.com`) are intentionally ignored:
471
+ * we do not currently support routing to Anthropic's own
472
+ * production API (their models are first-class VSCode features).
473
+ */
474
+ type ProviderWireProtocol = "openai" | "anthropic";
475
+ declare function protocolForBaseUrl(baseUrl: string): ProviderWireProtocol;
476
+ /**
477
+ * Resolve the actual `ProviderType` whose adapter should handle a
478
+ * request with the given `configuredType` + `baseUrl`.
479
+ *
480
+ * Most of the time this is just `configuredType`. The exception is
481
+ * the named `zhipu` provider with an Anthropic-protocol baseUrl
482
+ * (`/api/anthropic`); we route it through the `anthropic-compatible`
483
+ * adapter so the URL construction appends `/v1/messages` instead of
484
+ * the OpenAI `/v1/chat/completions`. Without this, the OpenAIAdapter
485
+ * would build `.../api/anthropic/chat/completions` and GLM would
486
+ * 404 (the Anthropic-compatible endpoint only serves
487
+ * `.../api/anthropic/v1/messages`).
488
+ *
489
+ * `minimax` is intentionally NOT in the override list because the
490
+ * curated preset is `https://api.minimaxi.com/anthropic` (already
491
+ * Anthropic-protocol), and the `minimax` case in the adapter
492
+ * factory already wires AnthropicAdapter unconditionally.
493
+ *
494
+ * Everything else (deepseek / kimi / stepfun / agnes / openrouter /
495
+ * novita / openai-compatible / anthropic-compatible) returns
496
+ * `configuredType` unchanged — these vendors don't publish an
497
+ * alternate-protocol endpoint on the same host.
498
+ */
499
+ declare function effectiveAdapterType(configuredType: ProviderType, baseUrl: string): ProviderType;
500
+
411
501
  /**
412
502
  * Provider-type → known baseUrl candidates (e.g. mainland-China vs.
413
503
  * global endpoints for the same vendor, like Agnes/MiniMax/DeepSeek).
@@ -1391,4 +1481,4 @@ declare function asAbortSignal(input: unknown): AbortSignal | undefined;
1391
1481
  */
1392
1482
  declare function safeJson<T>(text: string, fallback: T): T;
1393
1483
 
1394
- export { type AIModelConfig, type AIModelInfo, type AgentPermissionSummary, type AgentToolPermission, type AgentToolRiskLevel, 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, type DownloadCertificateBundleRequest, type DownloadCertificateBundleResponse, GIT_REMOTE_HOST_ALIASES, type GenericBalanceUsage, GetByomSettings, GetCachedServerUrl, GetServerProxyState, GetUtilityModels, type GitHubOrgMembershipCheckResult, type GitHubOrgMembershipStatus, type GitHubUser, type GithubCopilotCliPayload, type HttpRequestPayload, type ILogger, type LinkedSkillPayloadEntry, LogLevel, MODEL_METADATA, type MinimaxUsage, type ModelDetail, type ModelPriceCategory, type ModelPricing, type ModelThinkingSchema, PROVIDER_BASE_URL_PRESETS, PROVIDER_CACHE_CONTROL_METADATA, type ProviderBaseUrlPreset, type ProviderCacheControlMetadata, type ProviderConfig, type ProviderModel, type ProviderMutationPayload, type ProviderTestResult, type ProviderType, type ProviderUsageData, type ProviderUsageKind, type ProviderUsageResult, 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, checkGitHubOrgMembership, createConsoleLogger, currencyForBaseUrl, fetchGitHubUser, getBuiltinProviderPreset, getGitHubOrgMembership, getProviderBaseUrlPresets, isGitHubLocalEmail, isProviderCacheControlAware, isValidCanonicalSlug, lookupModelMetadata, normalizeCanonicalSlug, normalizeErrorForLog, normalizeGitUrl, parsePayload, resolvePrimaryEmail, safeJson };
1484
+ export { type AIModelConfig, type AIModelInfo, type AgentPermissionSummary, type AgentToolPermission, type AgentToolRiskLevel, 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, type DownloadCertificateBundleRequest, type DownloadCertificateBundleResponse, GIT_REMOTE_HOST_ALIASES, type GenericBalanceUsage, GetByomSettings, GetCachedServerUrl, GetServerProxyState, GetUtilityModels, type GitHubOrgMembershipCheckResult, type GitHubOrgMembershipStatus, type GitHubUser, type GithubCopilotCliPayload, type HttpRequestPayload, type ILogger, type LinkedSkillPayloadEntry, LogLevel, MODEL_METADATA, type MinimaxUsage, type ModelDetail, type ModelPriceCategory, type ModelPricing, type ModelThinkingSchema, PROVIDER_BASE_URL_PRESETS, PROVIDER_CACHE_CONTROL_METADATA, 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, checkGitHubOrgMembership, createConsoleLogger, currencyForBaseUrl, effectiveAdapterType, fetchGitHubUser, getBuiltinProviderPreset, getGitHubOrgMembership, getProviderBaseUrlPresets, isGitHubLocalEmail, isProviderCacheControlAware, isValidCanonicalSlug, lookupModelMetadata, normalizeCanonicalSlug, normalizeErrorForLog, normalizeGitUrl, parsePayload, protocolForBaseUrl, resolvePrimaryEmail, safeJson };
package/dist/index.d.ts CHANGED
@@ -194,6 +194,29 @@ interface ProviderModel {
194
194
  */
195
195
  thinkingSchema?: ModelThinkingSchema;
196
196
  }
197
+ /**
198
+ * Per-model vision handling mode (BYOM-depth #3).
199
+ *
200
+ * Borrowed from
201
+ * `docs/references/GLM-for-copilot-main/src/types.ts:167`
202
+ * (`ModelVisionMode = 'proxy' | 'native' | 'mcp'`). v1 ships
203
+ * `native` + `mcp`; `proxy` is reserved for v2 (the recursive-
204
+ * chat vision model description has its own design pass).
205
+ *
206
+ * - `native` (default) — image bytes are passed inline to the
207
+ * adapter, which translates them to the vendor's native
208
+ * wire shape (OpenAI `image_url`, Anthropic `source.base64`).
209
+ * Existing v0 behaviour; byte-identical to the pre-BYOM-depth
210
+ * path.
211
+ * - `mcp` — image bytes are persisted to
212
+ * `<globalStorageUri>/images/<sha256>.<ext>` and the user
213
+ * message is rewritten with a `[Image attached at local file:
214
+ * <path>]` placeholder + a system preamble telling the model
215
+ * to use an image-capable MCP tool to read the file. Useful
216
+ * for text-only models and self-hosted gateways where inline
217
+ * base64 is undesirable.
218
+ */
219
+ type ProviderVisionMode = "native" | "mcp";
197
220
  /**
198
221
  * Persisted provider configuration. `apiKeyRef` is the SecretStorage
199
222
  * key; the actual key never appears in this object after creation
@@ -232,6 +255,16 @@ interface ProviderConfig {
232
255
  * Ignored for non-minimax providers.
233
256
  */
234
257
  minimaxBillingType?: "token_plan" | "pay_as_you_go";
258
+ /**
259
+ * Per-provider vision handling mode (BYOM-depth #3). Defaults
260
+ * to `"native"` when absent — the existing v0 behaviour,
261
+ * byte-identical to the pre-BYOM-depth path. Set to `"mcp"`
262
+ * to route image-bearing requests through the on-disk
263
+ * placeholder path (useful for text-only models and self-
264
+ * hosted gateways). See {@link ProviderVisionMode} for the
265
+ * full contract.
266
+ */
267
+ visionMode?: ProviderVisionMode;
235
268
  /** Created / updated timestamps (informational) */
236
269
  createdAt: string;
237
270
  updatedAt: string;
@@ -408,6 +441,63 @@ interface ProviderBaseUrlPreset {
408
441
  baseUrl: string;
409
442
  }
410
443
 
444
+ /**
445
+ * Wire protocol implied by a `baseUrl`.
446
+ *
447
+ * Used to disambiguate the same vendor's two coexisting endpoints
448
+ * (OpenAI-compatible vs Anthropic-compatible) when the user picks
449
+ * a baseUrl from the ProvidersTab dropdown. Today the only
450
+ * commonly-ambiguous vendor is **Zhipu / 智谱**:
451
+ *
452
+ * - `https://open.bigmodel.cn/api/paas/v4` → openai
453
+ * - `https://open.bigmodel.cn/api/coding/paas/v4` → openai
454
+ * - `https://open.bigmodel.cn/api/anthropic` → anthropic
455
+ * - `https://api.z.ai/api/paas/v4` → openai
456
+ * - `https://api.z.ai/api/coding/paas/v4` → openai
457
+ * - `https://api.z.ai/api/anthropic` → anthropic
458
+ *
459
+ * The reference plugin (`docs/references/GLM-for-copilot-main`)
460
+ * encodes this as an `EndpointPreset` enum literal; we encode it
461
+ * as a path heuristic on the baseUrl. Trade-off: a typo'd path
462
+ * that says "anthropic" would mis-classify, but the same
463
+ * `PROVIDER_BASE_URL_PRESETS.zhipu` dropdown that exposes the
464
+ * Anthropic option ALSO labels it `国内 · Coding Plan · Anthropic 协议`
465
+ * so the user has visual confirmation; a typo in path without
466
+ * matching dropdown is unlikely.
467
+ *
468
+ * Detection rule: a `/anthropic` (or `/anthropic/...`) segment
469
+ * anywhere in the URL **path** — case-insensitive. Hostname
470
+ * matches (e.g. `api.anthropic.com`) are intentionally ignored:
471
+ * we do not currently support routing to Anthropic's own
472
+ * production API (their models are first-class VSCode features).
473
+ */
474
+ type ProviderWireProtocol = "openai" | "anthropic";
475
+ declare function protocolForBaseUrl(baseUrl: string): ProviderWireProtocol;
476
+ /**
477
+ * Resolve the actual `ProviderType` whose adapter should handle a
478
+ * request with the given `configuredType` + `baseUrl`.
479
+ *
480
+ * Most of the time this is just `configuredType`. The exception is
481
+ * the named `zhipu` provider with an Anthropic-protocol baseUrl
482
+ * (`/api/anthropic`); we route it through the `anthropic-compatible`
483
+ * adapter so the URL construction appends `/v1/messages` instead of
484
+ * the OpenAI `/v1/chat/completions`. Without this, the OpenAIAdapter
485
+ * would build `.../api/anthropic/chat/completions` and GLM would
486
+ * 404 (the Anthropic-compatible endpoint only serves
487
+ * `.../api/anthropic/v1/messages`).
488
+ *
489
+ * `minimax` is intentionally NOT in the override list because the
490
+ * curated preset is `https://api.minimaxi.com/anthropic` (already
491
+ * Anthropic-protocol), and the `minimax` case in the adapter
492
+ * factory already wires AnthropicAdapter unconditionally.
493
+ *
494
+ * Everything else (deepseek / kimi / stepfun / agnes / openrouter /
495
+ * novita / openai-compatible / anthropic-compatible) returns
496
+ * `configuredType` unchanged — these vendors don't publish an
497
+ * alternate-protocol endpoint on the same host.
498
+ */
499
+ declare function effectiveAdapterType(configuredType: ProviderType, baseUrl: string): ProviderType;
500
+
411
501
  /**
412
502
  * Provider-type → known baseUrl candidates (e.g. mainland-China vs.
413
503
  * global endpoints for the same vendor, like Agnes/MiniMax/DeepSeek).
@@ -1391,4 +1481,4 @@ declare function asAbortSignal(input: unknown): AbortSignal | undefined;
1391
1481
  */
1392
1482
  declare function safeJson<T>(text: string, fallback: T): T;
1393
1483
 
1394
- export { type AIModelConfig, type AIModelInfo, type AgentPermissionSummary, type AgentToolPermission, type AgentToolRiskLevel, 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, type DownloadCertificateBundleRequest, type DownloadCertificateBundleResponse, GIT_REMOTE_HOST_ALIASES, type GenericBalanceUsage, GetByomSettings, GetCachedServerUrl, GetServerProxyState, GetUtilityModels, type GitHubOrgMembershipCheckResult, type GitHubOrgMembershipStatus, type GitHubUser, type GithubCopilotCliPayload, type HttpRequestPayload, type ILogger, type LinkedSkillPayloadEntry, LogLevel, MODEL_METADATA, type MinimaxUsage, type ModelDetail, type ModelPriceCategory, type ModelPricing, type ModelThinkingSchema, PROVIDER_BASE_URL_PRESETS, PROVIDER_CACHE_CONTROL_METADATA, type ProviderBaseUrlPreset, type ProviderCacheControlMetadata, type ProviderConfig, type ProviderModel, type ProviderMutationPayload, type ProviderTestResult, type ProviderType, type ProviderUsageData, type ProviderUsageKind, type ProviderUsageResult, 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, checkGitHubOrgMembership, createConsoleLogger, currencyForBaseUrl, fetchGitHubUser, getBuiltinProviderPreset, getGitHubOrgMembership, getProviderBaseUrlPresets, isGitHubLocalEmail, isProviderCacheControlAware, isValidCanonicalSlug, lookupModelMetadata, normalizeCanonicalSlug, normalizeErrorForLog, normalizeGitUrl, parsePayload, resolvePrimaryEmail, safeJson };
1484
+ export { type AIModelConfig, type AIModelInfo, type AgentPermissionSummary, type AgentToolPermission, type AgentToolRiskLevel, 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, type DownloadCertificateBundleRequest, type DownloadCertificateBundleResponse, GIT_REMOTE_HOST_ALIASES, type GenericBalanceUsage, GetByomSettings, GetCachedServerUrl, GetServerProxyState, GetUtilityModels, type GitHubOrgMembershipCheckResult, type GitHubOrgMembershipStatus, type GitHubUser, type GithubCopilotCliPayload, type HttpRequestPayload, type ILogger, type LinkedSkillPayloadEntry, LogLevel, MODEL_METADATA, type MinimaxUsage, type ModelDetail, type ModelPriceCategory, type ModelPricing, type ModelThinkingSchema, PROVIDER_BASE_URL_PRESETS, PROVIDER_CACHE_CONTROL_METADATA, 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, checkGitHubOrgMembership, createConsoleLogger, currencyForBaseUrl, effectiveAdapterType, fetchGitHubUser, getBuiltinProviderPreset, getGitHubOrgMembership, getProviderBaseUrlPresets, isGitHubLocalEmail, isProviderCacheControlAware, isValidCanonicalSlug, lookupModelMetadata, normalizeCanonicalSlug, normalizeErrorForLog, normalizeGitUrl, parsePayload, protocolForBaseUrl, resolvePrimaryEmail, safeJson };