@stacksjs/ts-cloud 0.7.78 → 0.7.80

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.
Files changed (54) hide show
  1. package/dist/bin/cli.js +89 -89
  2. package/dist/{chunk-23pnrvex.js → chunk-5z0an6q8.js} +6 -4
  3. package/dist/{chunk-qk1qcsrh.js → chunk-cx2j9h3s.js} +1 -1
  4. package/dist/deploy/index.js +2 -2
  5. package/dist/drivers/index.js +1 -1
  6. package/dist/index.js +2 -2
  7. package/dist/ui/access-denied.html +2 -2
  8. package/dist/ui/account/automation.html +4 -4
  9. package/dist/ui/account/security.html +2 -2
  10. package/dist/ui/applications/compose.html +4 -4
  11. package/dist/ui/applications/new.html +2 -2
  12. package/dist/ui/data/backups.html +4 -4
  13. package/dist/ui/data/services.html +4 -4
  14. package/dist/ui/data/volumes.html +4 -4
  15. package/dist/ui/index.html +4 -4
  16. package/dist/ui/operations/alerts.html +4 -4
  17. package/dist/ui/operations/configuration.html +3 -3
  18. package/dist/ui/operations/jobs.html +4 -4
  19. package/dist/ui/operations/maintenance.html +3 -3
  20. package/dist/ui/operations/observability.html +3 -3
  21. package/dist/ui/operations/previews.html +4 -4
  22. package/dist/ui/operations/queue.html +4 -4
  23. package/dist/ui/operations/regions.html +4 -4
  24. package/dist/ui/operations/releases.html +3 -3
  25. package/dist/ui/operations/workloads.html +4 -4
  26. package/dist/ui/security.html +2 -2
  27. package/dist/ui/server/actions.html +4 -4
  28. package/dist/ui/server/activity.html +2 -2
  29. package/dist/ui/server/capacity.html +4 -4
  30. package/dist/ui/server/database.html +4 -4
  31. package/dist/ui/server/deployments.html +4 -4
  32. package/dist/ui/server/diagnostics.html +2 -2
  33. package/dist/ui/server/firewall.html +4 -4
  34. package/dist/ui/server/fleet.html +4 -4
  35. package/dist/ui/server/logs.html +4 -4
  36. package/dist/ui/server/metrics.html +4 -4
  37. package/dist/ui/server/security.html +2 -2
  38. package/dist/ui/server/services.html +2 -2
  39. package/dist/ui/server/sites.html +3 -3
  40. package/dist/ui/server/ssh-keys.html +3 -3
  41. package/dist/ui/server/team.html +4 -4
  42. package/dist/ui/server/terminal.html +2 -2
  43. package/dist/ui/serverless/alarms.html +4 -4
  44. package/dist/ui/serverless/assets.html +2 -2
  45. package/dist/ui/serverless/cost.html +2 -2
  46. package/dist/ui/serverless/data.html +3 -3
  47. package/dist/ui/serverless/firewall.html +2 -2
  48. package/dist/ui/serverless/functions.html +3 -3
  49. package/dist/ui/serverless/logs.html +3 -3
  50. package/dist/ui/serverless/queues.html +3 -3
  51. package/dist/ui/serverless/secrets.html +3 -3
  52. package/dist/ui/serverless/traces.html +3 -3
  53. package/dist/ui/serverless.html +4 -4
  54. package/package.json +3 -3
@@ -2034,6 +2034,7 @@ class AwsDriver {
2034
2034
 
2035
2035
  // src/drivers/hetzner/driver.ts
2036
2036
  import { execSync } from "node:child_process";
2037
+ import { randomUUID } from "node:crypto";
2037
2038
  import { existsSync, readFileSync as readFileSync2 } from "node:fs";
2038
2039
 
2039
2040
  // src/drivers/shared/fleet.ts
@@ -3134,7 +3135,8 @@ class HetznerDriver {
3134
3135
  if (targets.length === 0) {
3135
3136
  throw new Error("No Hetzner compute targets found for release upload");
3136
3137
  }
3137
- const stagingName = options.remoteKey.replace(/^releases\//, "").replace(/\//g, "-");
3138
+ const stagingStem = options.remoteKey.replace(/^releases\//, "").replace(/\.tar\.gz$/, "").replace(/\//g, "-");
3139
+ const stagingName = `${stagingStem}-${randomUUID()}.tar.gz`;
3138
3140
  const remotePath = `/var/ts-cloud/staging/${stagingName}`;
3139
3141
  for (const target of targets) {
3140
3142
  if (!target.publicIp) {
@@ -3154,9 +3156,6 @@ class HetznerDriver {
3154
3156
  privateIp: server.private_net?.[0]?.ip,
3155
3157
  status: server.status
3156
3158
  });
3157
- const exact = servers.filter((server) => matchesTsCloudLabels(server.labels, options.slug, options.environment, role));
3158
- if (exact.length > 0)
3159
- return exact.map(toTarget);
3160
3159
  if (role === "app" || role === "lb" || role === "services") {
3161
3160
  const state = await readDriverState(options.stackName ?? `${options.slug}-${options.environment}`);
3162
3161
  const pinnedIds = [
@@ -3173,6 +3172,9 @@ class HetznerDriver {
3173
3172
  return pinned.map(toTarget);
3174
3173
  }
3175
3174
  }
3175
+ const exact = servers.filter((server) => matchesTsCloudLabels(server.labels, options.slug, options.environment, role));
3176
+ if (exact.length > 0)
3177
+ return exact.map(toTarget);
3176
3178
  if (role === "app") {
3177
3179
  const candidates = servers.filter((server) => server.status !== "off" && server.labels?.[`${TS_CLOUD_LABEL_PREFIX}/managed-by`] === "ts-cloud" && server.labels?.[`${TS_CLOUD_LABEL_PREFIX}/environment`] === options.environment && server.labels?.[`${TS_CLOUD_LABEL_PREFIX}/role`] === "app");
3178
3180
  if (candidates.length === 1)
@@ -45,7 +45,7 @@ import {
45
45
  resolveSiteKind,
46
46
  resolveUiSource,
47
47
  siteInstallBase
48
- } from "./chunk-23pnrvex.js";
48
+ } from "./chunk-5z0an6q8.js";
49
49
  import {
50
50
  artifactKey,
51
51
  buildCloudFormationTemplate,
@@ -32,7 +32,7 @@ import {
32
32
  synchronizeDashboardUsers,
33
33
  trackDashboardOperation,
34
34
  verifyStaticApiOrigin
35
- } from "../chunk-qk1qcsrh.js";
35
+ } from "../chunk-cx2j9h3s.js";
36
36
  import {
37
37
  deleteStaticSite,
38
38
  deployStaticSite,
@@ -65,7 +65,7 @@ import {
65
65
  shipsARelease,
66
66
  siteInstallBase,
67
67
  validateDeploymentConfig
68
- } from "../chunk-23pnrvex.js";
68
+ } from "../chunk-5z0an6q8.js";
69
69
  import"../chunk-1qjyqrc5.js";
70
70
  import"../chunk-703nkybg.js";
71
71
  import"../chunk-4cjrg98a.js";
@@ -68,7 +68,7 @@ import {
68
68
  waitForSsh,
69
69
  wrapCloudInitUserData,
70
70
  writeResizeCheckpoint
71
- } from "../chunk-23pnrvex.js";
71
+ } from "../chunk-5z0an6q8.js";
72
72
  import"../chunk-1qjyqrc5.js";
73
73
  import"../chunk-703nkybg.js";
74
74
  import"../chunk-4cjrg98a.js";
package/dist/index.js CHANGED
@@ -285,7 +285,7 @@ import {
285
285
  volumeCapabilities,
286
286
  webhookEndpoint,
287
287
  zeroCapacity
288
- } from "./chunk-qk1qcsrh.js";
288
+ } from "./chunk-cx2j9h3s.js";
289
289
  import {
290
290
  deleteStaticSite,
291
291
  deployStaticSite,
@@ -398,7 +398,7 @@ import {
398
398
  waitForCloudInit,
399
399
  waitForSsh,
400
400
  wrapCloudInitUserData
401
- } from "./chunk-23pnrvex.js";
401
+ } from "./chunk-5z0an6q8.js";
402
402
  import {
403
403
  ABTestManager,
404
404
  AI,