@ts-cloud/core 0.12.10 → 0.12.11

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.
@@ -1,5 +1,5 @@
1
1
  import type { CloudConfig, EnvironmentType, SiteConfig } from '../types';
2
- export type CloudProviderName = 'aws' | 'hetzner';
2
+ export type CloudProviderName = 'aws' | 'hetzner' | 'ssh';
3
3
  /**
4
4
  * Exhaustive provider map. Provider-specific contract tests key off this type,
5
5
  * so adding a provider without adding its resilience coverage is a type error.
@@ -172,6 +172,12 @@ export interface DeploySiteReleaseResult {
172
172
  }
173
173
  /**
174
174
  * Resolve the configured cloud provider. Defaults to AWS for backward compatibility.
175
- * Environment-based auto-detection is handled when constructing the Hetzner driver.
175
+ *
176
+ * An explicit `cloud.provider` always wins. Without one, the config itself is
177
+ * the tell: a project that lists `ssh.hosts` is deploying to hosts it already
178
+ * owns, and a project with a Hetzner token is deploying to Hetzner. The ssh
179
+ * provider is never inferred from the environment alone (`TS_CLOUD_SSH_HOST`
180
+ * is a per-machine override, not a statement of intent); the Hetzner token
181
+ * check keeps the behaviour it always had.
176
182
  */
177
183
  export declare function resolveCloudProvider(config: CloudConfig): CloudProviderName;