@stacksjs/ts-cloud 0.7.120 → 0.7.121

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 +398 -398
  2. package/dist/deploy/release-content.d.ts +37 -0
  3. package/dist/deploy/release-content.test.d.ts +1 -0
  4. package/dist/ui/access-denied.html +2 -2
  5. package/dist/ui/account/automation.html +4 -4
  6. package/dist/ui/account/security.html +2 -2
  7. package/dist/ui/applications/compose.html +4 -4
  8. package/dist/ui/applications/new.html +2 -2
  9. package/dist/ui/data/backups.html +3 -3
  10. package/dist/ui/data/services.html +4 -4
  11. package/dist/ui/data/volumes.html +4 -4
  12. package/dist/ui/index.html +3 -3
  13. package/dist/ui/infrastructure/topology.html +4 -4
  14. package/dist/ui/integrations.html +2 -2
  15. package/dist/ui/operations/alerts.html +4 -4
  16. package/dist/ui/operations/configuration.html +4 -4
  17. package/dist/ui/operations/jobs.html +4 -4
  18. package/dist/ui/operations/maintenance.html +4 -4
  19. package/dist/ui/operations/observability.html +3 -3
  20. package/dist/ui/operations/previews.html +4 -4
  21. package/dist/ui/operations/queue.html +4 -4
  22. package/dist/ui/operations/regions.html +4 -4
  23. package/dist/ui/operations/releases.html +4 -4
  24. package/dist/ui/operations/spend.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 +3 -3
  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 +4 -4
  40. package/dist/ui/server/ssh-keys.html +4 -4
  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/data.html +4 -4
  46. package/dist/ui/serverless/firewall.html +2 -2
  47. package/dist/ui/serverless/functions.html +4 -4
  48. package/dist/ui/serverless/logs.html +4 -4
  49. package/dist/ui/serverless/metrics.html +2 -2
  50. package/dist/ui/serverless/queues.html +4 -4
  51. package/dist/ui/serverless/secrets.html +4 -4
  52. package/dist/ui/serverless/traces.html +3 -3
  53. package/dist/ui/serverless.html +4 -4
  54. package/package.json +3 -3
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Pre-flight check on what a site is about to ship.
3
+ *
4
+ * `existsSync(site.root)` was the only gate before this, and a directory
5
+ * existing says nothing about whether it holds a servable site. The failure it
6
+ * missed is specific and expensive: a static-site generator that renders into a
7
+ * SUBDIRECTORY of its output directory (BunPress writes `<outdir>/.bunpress`,
8
+ * and it is far from alone) leaves the configured `root` existing but holding
9
+ * only that one child. The tarball then ships `current/.bunpress/index.html`,
10
+ * the gateway serves `current/`, and every URL 404s while the deploy prints
11
+ * success and exits 0.
12
+ *
13
+ * So the check looks at the content, and when the content says the root is one
14
+ * level too high it says so by name instead of leaving it to be found in
15
+ * production.
16
+ */
17
+ export interface ReleaseContentIssue {
18
+ level: 'error' | 'warning';
19
+ message: string;
20
+ }
21
+ export interface CheckReleaseContentOptions {
22
+ /** The site's resolved `root`, as configured. */
23
+ root: string;
24
+ /** Site key, for messages. */
25
+ siteName: string;
26
+ /**
27
+ * Static sites are served by path from the release root, so a missing
28
+ * top-level `index.html` means the domain root 404s. An app site ships a
29
+ * source tree and has no such expectation.
30
+ */
31
+ expectIndex: boolean;
32
+ }
33
+ /**
34
+ * Inspect what a site is about to package. Returns every issue found; the
35
+ * caller fails the deploy when any of them is an `error`.
36
+ */
37
+ export declare function checkReleaseContent(options: CheckReleaseContentOptions): ReleaseContentIssue[];
@@ -0,0 +1 @@
1
+ export {};