@stacksjs/ts-cloud 0.7.124 → 0.7.126

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 (58) hide show
  1. package/dist/bin/cli.js +246 -246
  2. package/dist/bin/dashboard-server.js +87 -87
  3. package/dist/{chunk-vn6g8f60.js → chunk-9qyr2jza.js} +1 -1
  4. package/dist/{chunk-4q7jx76n.js → chunk-qeyq47dx.js} +6 -3
  5. package/dist/deploy/dns-credentials-scope.test.d.ts +1 -0
  6. package/dist/deploy/index.js +2 -2
  7. package/dist/drivers/index.js +1 -1
  8. package/dist/drivers/shared/deploy-script.d.ts +16 -0
  9. package/dist/index.js +2 -2
  10. package/dist/ui/account/automation.html +4 -4
  11. package/dist/ui/account/security.html +2 -2
  12. package/dist/ui/applications/compose.html +4 -4
  13. package/dist/ui/applications/new.html +2 -2
  14. package/dist/ui/data/backups.html +4 -4
  15. package/dist/ui/data/services.html +4 -4
  16. package/dist/ui/data/volumes.html +4 -4
  17. package/dist/ui/index.html +3 -3
  18. package/dist/ui/infrastructure/topology.html +4 -4
  19. package/dist/ui/integrations.html +2 -2
  20. package/dist/ui/operations/alerts.html +4 -4
  21. package/dist/ui/operations/configuration.html +4 -4
  22. package/dist/ui/operations/jobs.html +4 -4
  23. package/dist/ui/operations/maintenance.html +4 -4
  24. package/dist/ui/operations/observability.html +4 -4
  25. package/dist/ui/operations/previews.html +4 -4
  26. package/dist/ui/operations/queue.html +4 -4
  27. package/dist/ui/operations/regions.html +4 -4
  28. package/dist/ui/operations/releases.html +3 -3
  29. package/dist/ui/operations/spend.html +4 -4
  30. package/dist/ui/operations/workloads.html +4 -4
  31. package/dist/ui/security.html +2 -2
  32. package/dist/ui/server/actions.html +3 -3
  33. package/dist/ui/server/capacity.html +3 -3
  34. package/dist/ui/server/database.html +4 -4
  35. package/dist/ui/server/deployments.html +3 -3
  36. package/dist/ui/server/firewall.html +3 -3
  37. package/dist/ui/server/fleet.html +4 -4
  38. package/dist/ui/server/logs.html +4 -4
  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 +4 -4
  45. package/dist/ui/server/terminal.html +2 -2
  46. package/dist/ui/serverless/alarms.html +4 -4
  47. package/dist/ui/serverless/assets.html +2 -2
  48. package/dist/ui/serverless/data.html +4 -4
  49. package/dist/ui/serverless/deployments.html +2 -2
  50. package/dist/ui/serverless/firewall.html +2 -2
  51. package/dist/ui/serverless/functions.html +4 -4
  52. package/dist/ui/serverless/logs.html +4 -4
  53. package/dist/ui/serverless/metrics.html +2 -2
  54. package/dist/ui/serverless/queues.html +4 -4
  55. package/dist/ui/serverless/secrets.html +4 -4
  56. package/dist/ui/serverless/traces.html +4 -4
  57. package/dist/ui/serverless.html +4 -4
  58. package/package.json +3 -3
@@ -50,7 +50,7 @@ import {
50
50
  resolveSiteKind,
51
51
  resolveUiSource,
52
52
  siteInstallBase
53
- } from "./chunk-4q7jx76n.js";
53
+ } from "./chunk-qeyq47dx.js";
54
54
  import {
55
55
  SSMClient
56
56
  } from "./chunk-7m60qnc8.js";
@@ -5659,12 +5659,14 @@ function buildSiteDeployScript(options) {
5659
5659
  memoryMax,
5660
5660
  cpuWeight,
5661
5661
  ioWeight,
5662
- tasksMax
5662
+ tasksMax,
5663
+ stopTimeout
5663
5664
  } = options;
5664
5665
  const qosDirectives = [
5665
5666
  ...cpuWeight != null ? [`CPUWeight=${cpuWeight}`] : [],
5666
5667
  ...ioWeight != null ? [`IOWeight=${ioWeight}`] : [],
5667
- ...tasksMax != null ? [`TasksMax=${tasksMax}`] : []
5668
+ ...tasksMax != null ? [`TasksMax=${tasksMax}`] : [],
5669
+ ...stopTimeout ? [`TimeoutStopSec=${stopTimeout}`] : []
5668
5670
  ];
5669
5671
  const zeroDowntime = options.zeroDowntime ?? port != null;
5670
5672
  const base = options.appDir ?? `/var/www/${siteName}`;
@@ -6709,7 +6711,8 @@ async function deploySiteRelease(driver, options, logger = noopLogger2) {
6709
6711
  memoryMax: site.memoryMax,
6710
6712
  cpuWeight: site.cpuWeight,
6711
6713
  ioWeight: site.ioWeight,
6712
- tasksMax: site.tasksMax
6714
+ tasksMax: site.tasksMax,
6715
+ stopTimeout: site.stopTimeout
6713
6716
  });
6714
6717
  const wantsNginxStatic = kind === "server-static" && !usesRpxProxy(compute) && !!site.domain;
6715
6718
  const staticVhost = wantsNginxStatic ? buildNginxVhostScript({
@@ -0,0 +1 @@
1
+ export {};
@@ -36,7 +36,7 @@ import {
36
36
  synchronizeDashboardUsers,
37
37
  trackDashboardOperation,
38
38
  verifyStaticApiOrigin
39
- } from "../chunk-vn6g8f60.js";
39
+ } from "../chunk-9qyr2jza.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-4q7jx76n.js";
86
+ } from "../chunk-qeyq47dx.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-4q7jx76n.js";
71
+ } from "../chunk-qeyq47dx.js";
72
72
  import"../chunk-7m60qnc8.js";
73
73
  import"../chunk-4cjrg98a.js";
74
74
  import"../chunk-rds0sy87.js";
@@ -99,6 +99,22 @@ export interface BuildSiteDeployScriptOptions {
99
99
  ioWeight?: number;
100
100
  /** systemd `TasksMax` — cap on threads/processes. Unset by default. */
101
101
  tasksMax?: number;
102
+ /**
103
+ * systemd `TimeoutStopSec` — how long a unit may take to shut down before
104
+ * systemd escalates from SIGTERM to SIGKILL.
105
+ *
106
+ * Worth raising for a worker that drains on SIGTERM. systemd's default is 90
107
+ * seconds, which is generous for a server and far too short for a job that
108
+ * finishes the shard in its hands before letting go: it gets killed
109
+ * mid-write instead, which is precisely the outcome the drain exists to
110
+ * avoid. A trail-ingest worker on a shared box was SIGKILLed exactly that
111
+ * way while logging `finishing current shard`.
112
+ *
113
+ * Unset by default — systemd's own default is right for anything that can
114
+ * stop immediately, and a long stop timeout on a service that hangs is a
115
+ * deploy that waits for it.
116
+ */
117
+ stopTimeout?: string;
102
118
  }
103
119
  /**
104
120
  * Build the remote shell commands that install/refresh a server-app site on a
package/dist/index.js CHANGED
@@ -208,7 +208,7 @@ import {
208
208
  verifyUpdateSignature,
209
209
  webhookEndpoint,
210
210
  zeroCapacity
211
- } from "./chunk-vn6g8f60.js";
211
+ } from "./chunk-9qyr2jza.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-4q7jx76n.js";
344
+ } from "./chunk-qeyq47dx.js";
345
345
  import {
346
346
  EC2Client,
347
347
  SSMClient