@stacksjs/ts-cloud 0.7.121 → 0.7.122

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 (57) hide show
  1. package/dist/bin/cli.js +3 -3
  2. package/dist/bin/dashboard-server.js +86 -86
  3. package/dist/{chunk-0cx84wm2.js → chunk-1mszt89n.js} +1 -1
  4. package/dist/{chunk-zcjc5y9f.js → chunk-w4kb3nwj.js} +3 -0
  5. package/dist/deploy/index.js +2 -2
  6. package/dist/drivers/index.js +1 -1
  7. package/dist/index.js +2 -2
  8. package/dist/ui/access-denied.html +2 -2
  9. package/dist/ui/account/automation.html +4 -4
  10. package/dist/ui/account/security.html +2 -2
  11. package/dist/ui/applications/compose.html +3 -3
  12. package/dist/ui/applications/new.html +2 -2
  13. package/dist/ui/data/backups.html +4 -4
  14. package/dist/ui/data/services.html +4 -4
  15. package/dist/ui/data/volumes.html +4 -4
  16. package/dist/ui/index.html +3 -3
  17. package/dist/ui/infrastructure/topology.html +3 -3
  18. package/dist/ui/operations/alerts.html +4 -4
  19. package/dist/ui/operations/configuration.html +4 -4
  20. package/dist/ui/operations/jobs.html +4 -4
  21. package/dist/ui/operations/maintenance.html +4 -4
  22. package/dist/ui/operations/observability.html +4 -4
  23. package/dist/ui/operations/previews.html +4 -4
  24. package/dist/ui/operations/queue.html +4 -4
  25. package/dist/ui/operations/regions.html +4 -4
  26. package/dist/ui/operations/releases.html +4 -4
  27. package/dist/ui/operations/spend.html +4 -4
  28. package/dist/ui/operations/workloads.html +4 -4
  29. package/dist/ui/security.html +2 -2
  30. package/dist/ui/server/actions.html +4 -4
  31. package/dist/ui/server/activity.html +2 -2
  32. package/dist/ui/server/capacity.html +4 -4
  33. package/dist/ui/server/database.html +4 -4
  34. package/dist/ui/server/deployments.html +4 -4
  35. package/dist/ui/server/diagnostics.html +2 -2
  36. package/dist/ui/server/firewall.html +4 -4
  37. package/dist/ui/server/fleet.html +4 -4
  38. package/dist/ui/server/logs.html +3 -3
  39. package/dist/ui/server/metrics.html +4 -4
  40. package/dist/ui/server/security.html +2 -2
  41. package/dist/ui/server/services.html +2 -2
  42. package/dist/ui/server/sites.html +4 -4
  43. package/dist/ui/server/ssh-keys.html +4 -4
  44. package/dist/ui/server/team.html +3 -3
  45. package/dist/ui/serverless/alarms.html +3 -3
  46. package/dist/ui/serverless/assets.html +2 -2
  47. package/dist/ui/serverless/data.html +4 -4
  48. package/dist/ui/serverless/deployments.html +2 -2
  49. package/dist/ui/serverless/firewall.html +2 -2
  50. package/dist/ui/serverless/functions.html +4 -4
  51. package/dist/ui/serverless/logs.html +4 -4
  52. package/dist/ui/serverless/metrics.html +2 -2
  53. package/dist/ui/serverless/queues.html +4 -4
  54. package/dist/ui/serverless/secrets.html +4 -4
  55. package/dist/ui/serverless/traces.html +4 -4
  56. package/dist/ui/serverless.html +4 -4
  57. package/package.json +3 -3
@@ -50,7 +50,7 @@ import {
50
50
  resolveSiteKind,
51
51
  resolveUiSource,
52
52
  siteInstallBase
53
- } from "./chunk-zcjc5y9f.js";
53
+ } from "./chunk-w4kb3nwj.js";
54
54
  import {
55
55
  SSMClient
56
56
  } from "./chunk-7m60qnc8.js";
@@ -5720,6 +5720,9 @@ function buildSiteDeployScript(options) {
5720
5720
  ...buildActivateRelease(paths),
5721
5721
  `systemctl enable ${instance} 2>/dev/null || true`,
5722
5722
  `for TS_CLOUD_U in \${TS_CLOUD_OLD_UNITS}; do systemctl stop "$TS_CLOUD_U" 2>/dev/null || true; systemctl disable "$TS_CLOUD_U" 2>/dev/null || true; done`,
5723
+ `TS_CLOUD_LISTENING=0; for TS_CLOUD_I in $(seq 1 ${Math.max(1, healthGateSeconds)}); do if ss -ltnH "sport = :${port}" 2>/dev/null | grep -q .; then TS_CLOUD_LISTENING=1; break; fi; sleep 1; done`,
5724
+ `if [ "$TS_CLOUD_LISTENING" -ne 1 ]; then echo "[ts-cloud] nothing is listening on ${port} after retiring the previous release — restarting ${instance} on the now-free port" >&2; systemctl restart ${instance}; for TS_CLOUD_I in $(seq 1 ${Math.max(1, healthGateSeconds)}); do if ss -ltnH "sport = :${port}" 2>/dev/null | grep -q .; then TS_CLOUD_LISTENING=1; break; fi; sleep 1; done; fi`,
5725
+ `if [ "$TS_CLOUD_LISTENING" -ne 1 ]; then echo "[ts-cloud] ${instance} is active but never bound ${port}" >&2; journalctl -u ${instance} -n 50 --no-pager >&2 || true; exit 1; fi`,
5723
5726
  `systemctl list-unit-files --plain --no-legend "${unitBase}@*.service" 2>/dev/null | awk '{print $1}' | { grep -v -e "^${instance}$" -e "^${unitBase}@\\.service$" || true; } | while read -r TS_CLOUD_U; do systemctl disable "$TS_CLOUD_U" 2>/dev/null || true; done`,
5724
5727
  `if [ -f /etc/systemd/system/${serviceName} ]; then systemctl disable ${serviceName} 2>/dev/null || true; rm -f /etc/systemd/system/${serviceName}; systemctl daemon-reload; fi`,
5725
5728
  ...buildPruneReleases(paths, keepReleases)
@@ -36,7 +36,7 @@ import {
36
36
  synchronizeDashboardUsers,
37
37
  trackDashboardOperation,
38
38
  verifyStaticApiOrigin
39
- } from "../chunk-0cx84wm2.js";
39
+ } from "../chunk-1mszt89n.js";
40
40
  import {
41
41
  deleteStaticSite,
42
42
  deployStaticSite,
@@ -83,7 +83,7 @@ import {
83
83
  siteInstallBase,
84
84
  validateDeploymentConfig,
85
85
  verifyAddressRecord
86
- } from "../chunk-zcjc5y9f.js";
86
+ } from "../chunk-w4kb3nwj.js";
87
87
  import"../chunk-7m60qnc8.js";
88
88
  import"../chunk-4cjrg98a.js";
89
89
  import"../chunk-rds0sy87.js";
@@ -68,7 +68,7 @@ import {
68
68
  waitForSsh,
69
69
  wrapCloudInitUserData,
70
70
  writeResizeCheckpoint
71
- } from "../chunk-zcjc5y9f.js";
71
+ } from "../chunk-w4kb3nwj.js";
72
72
  import"../chunk-7m60qnc8.js";
73
73
  import"../chunk-4cjrg98a.js";
74
74
  import"../chunk-rds0sy87.js";
package/dist/index.js CHANGED
@@ -208,7 +208,7 @@ import {
208
208
  verifyUpdateSignature,
209
209
  webhookEndpoint,
210
210
  zeroCapacity
211
- } from "./chunk-0cx84wm2.js";
211
+ } from "./chunk-1mszt89n.js";
212
212
  import {
213
213
  deleteStaticSite,
214
214
  deployStaticSite,
@@ -341,7 +341,7 @@ import {
341
341
  waitForCloudInit,
342
342
  waitForSsh,
343
343
  wrapCloudInitUserData
344
- } from "./chunk-zcjc5y9f.js";
344
+ } from "./chunk-w4kb3nwj.js";
345
345
  import {
346
346
  EC2Client,
347
347
  SSMClient