@stacksjs/ts-cloud 0.7.98 → 0.7.100

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 +55 -55
  2. package/dist/bin/dashboard-server.js +19 -19
  3. package/dist/{chunk-1x4xrdkt.js → chunk-7fp1d0sq.js} +1 -1
  4. package/dist/{chunk-89kbfd6c.js → chunk-vs59x619.js} +3 -2
  5. package/dist/deploy/index.js +2 -2
  6. package/dist/drivers/index.js +1 -1
  7. package/dist/drivers/shared/package-manager.d.ts +2 -2
  8. package/dist/index.js +2 -2
  9. package/dist/ui/access-denied.html +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 +4 -4
  18. package/dist/ui/integrations.html +2 -2
  19. package/dist/ui/operations/alerts.html +4 -4
  20. package/dist/ui/operations/configuration.html +4 -4
  21. package/dist/ui/operations/jobs.html +4 -4
  22. package/dist/ui/operations/maintenance.html +3 -3
  23. package/dist/ui/operations/observability.html +4 -4
  24. package/dist/ui/operations/previews.html +3 -3
  25. package/dist/ui/operations/queue.html +3 -3
  26. package/dist/ui/operations/regions.html +4 -4
  27. package/dist/ui/operations/releases.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 +3 -3
  31. package/dist/ui/server/activity.html +2 -2
  32. package/dist/ui/server/capacity.html +3 -3
  33. package/dist/ui/server/database.html +4 -4
  34. package/dist/ui/server/deployments.html +3 -3
  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 +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/cost.html +2 -2
  49. package/dist/ui/serverless/data.html +4 -4
  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 +3 -3
  55. package/dist/ui/serverless/secrets.html +3 -3
  56. package/dist/ui/serverless/traces.html +4 -4
  57. package/dist/ui/serverless.html +4 -4
  58. package/package.json +3 -3
@@ -47,7 +47,7 @@ import {
47
47
  resolveSiteKind,
48
48
  resolveUiSource,
49
49
  siteInstallBase
50
- } from "./chunk-89kbfd6c.js";
50
+ } from "./chunk-vs59x619.js";
51
51
  import {
52
52
  artifactKey,
53
53
  buildCloudFormationTemplate,
@@ -152,7 +152,7 @@ function buildPantryBootstrapScript(options = {}) {
152
152
  versionLine,
153
153
  "command -v curl >/dev/null 2>&1 || (apt-get update -y && apt-get install -y curl ca-certificates)",
154
154
  "command -v unzip >/dev/null 2>&1 || (apt-get update -y && apt-get install -y unzip)",
155
- `command -v pantry >/dev/null 2>&1 || { ` + `OS=$(uname -s | tr '[:upper:]' '[:lower:]'); ARCH=$(uname -m); ` + `case "$ARCH" in x86_64|amd64) ARCH=x64 ;; arm64|aarch64) ARCH=arm64 ;; esac; ` + `ZIP="pantry-\${OS}-\${ARCH}.zip"; ` + `if [ "\${PANTRY_VERSION:-latest}" = latest ]; then REL='latest/download'; else REL="download/v\${PANTRY_VERSION}"; fi; ` + `TMP=$(mktemp -d); ` + `curl -fsSL -o "\${TMP}/\${ZIP}" "https://github.com/home-lang/pantry/releases/\${REL}/\${ZIP}"; ` + `unzip -o "\${TMP}/\${ZIP}" -d ${PANTRY_INSTALL_DIR}; ` + `chmod +x ${PANTRY_INSTALL_DIR}/pantry; rm -rf "\${TMP}"; }`,
155
+ `OS=$(uname -s | tr '[:upper:]' '[:lower:]'); ARCH=$(uname -m); ` + `case "$ARCH" in x86_64|amd64) ARCH=x64 ;; arm64|aarch64) ARCH=arm64 ;; esac; ` + `ZIP="pantry-\${OS}-\${ARCH}.zip"; ` + `if [ "\${PANTRY_VERSION:-latest}" = latest ]; then REL='latest/download'; else REL="download/v\${PANTRY_VERSION}"; fi; ` + `TMP=$(mktemp -d); ` + `curl -fsSL -o "\${TMP}/\${ZIP}" "https://github.com/pantry-pm/pantry/releases/\${REL}/\${ZIP}"; ` + `unzip -o "\${TMP}/\${ZIP}" -d ${PANTRY_INSTALL_DIR}; ` + `chmod +x ${PANTRY_INSTALL_DIR}/pantry; rm -rf "\${TMP}"`,
156
156
  `export PATH="${PANTRY_INSTALL_DIR}:$PATH"`,
157
157
  `mkdir -p ${PANTRY_PROJECT_DIR}`
158
158
  ];
@@ -396,8 +396,9 @@ function buildVitessBootstrapScript(config) {
396
396
  const alias = `${cell}-${String(VITESS_TABLET_UID).padStart(10, "0")}`;
397
397
  for (const shard of keyspace.sharded ? ["-80", "80-"] : ["0"]) {
398
398
  const target = `${keyspace.name}/${shard}`;
399
- out.push(`for i in $(seq 1 90); do`, ` if ${client} GetShard ${sh2(target)} 2>/dev/null | grep -q '"primary_alias": *"[^"]'; then break; fi`, ` ${client} PlannedReparentShard ${sh2(target)} --new-primary ${sh2(alias)} >/dev/null 2>&1 && break`, ` ${client} InitShardPrimary --force ${sh2(target)} ${sh2(alias)} >/dev/null 2>&1 && break`, " sleep 2", "done", `if ! ${client} GetShard ${sh2(target)} 2>/dev/null | grep -q '"primary_alias": *"[^"]'; then`, ` echo "no primary could be elected for ${target}" >&2; exit 1`, "fi");
399
+ out.push(`for i in $(seq 1 90); do`, ` if ${client} GetShard ${sh2(target)} 2>/dev/null | grep -q '"is_primary_serving": *true'; then break; fi`, ` ${client} PlannedReparentShard ${sh2(target)} --new-primary ${sh2(alias)} >/dev/null 2>&1 && break`, ` ${client} InitShardPrimary --force ${sh2(target)} ${sh2(alias)} >/dev/null 2>&1 && break`, " sleep 2", "done", `if ! ${client} GetShard ${sh2(target)} 2>/dev/null | grep -q '"is_primary_serving": *true'; then`, ` echo "no primary could be elected for ${target}" >&2; exit 1`, "fi");
400
400
  }
401
+ out.push(`${client} RebuildKeyspaceGraph ${sh2(keyspace.name)} >/dev/null`);
401
402
  }
402
403
  return out;
403
404
  }
@@ -30,7 +30,7 @@ import {
30
30
  synchronizeDashboardUsers,
31
31
  trackDashboardOperation,
32
32
  verifyStaticApiOrigin
33
- } from "../chunk-1x4xrdkt.js";
33
+ } from "../chunk-7fp1d0sq.js";
34
34
  import {
35
35
  deleteStaticSite,
36
36
  deployStaticSite,
@@ -70,7 +70,7 @@ import {
70
70
  siteInstallBase,
71
71
  validateDeploymentConfig,
72
72
  verifyAddressRecord
73
- } from "../chunk-89kbfd6c.js";
73
+ } from "../chunk-vs59x619.js";
74
74
  import"../chunk-c6db5m63.js";
75
75
  import"../chunk-7m60qnc8.js";
76
76
  import"../chunk-4cjrg98a.js";
@@ -68,7 +68,7 @@ import {
68
68
  waitForSsh,
69
69
  wrapCloudInitUserData,
70
70
  writeResizeCheckpoint
71
- } from "../chunk-89kbfd6c.js";
71
+ } from "../chunk-vs59x619.js";
72
72
  import"../chunk-c6db5m63.js";
73
73
  import"../chunk-7m60qnc8.js";
74
74
  import"../chunk-4cjrg98a.js";
@@ -58,8 +58,8 @@ export interface PantryBootstrapOptions {
58
58
  version?: string;
59
59
  }
60
60
  /**
61
- * Bootstrap the `pantry` CLI on a fresh server (idempotent — skips when already
62
- * present). Installs to {@link PANTRY_INSTALL_DIR} and selects system-scope
61
+ * Bootstrap or upgrade the `pantry` CLI on a server. Installs to
62
+ * {@link PANTRY_INSTALL_DIR} and selects system-scope
63
63
  * service management so `pantry enable/start` provisions boot-time systemd
64
64
  * units rather than the per-user units that can't run headlessly.
65
65
  */
package/dist/index.js CHANGED
@@ -283,7 +283,7 @@ import {
283
283
  volumeCapabilities,
284
284
  webhookEndpoint,
285
285
  zeroCapacity
286
- } from "./chunk-1x4xrdkt.js";
286
+ } from "./chunk-7fp1d0sq.js";
287
287
  import {
288
288
  deleteStaticSite,
289
289
  deployStaticSite,
@@ -405,7 +405,7 @@ import {
405
405
  waitForCloudInit,
406
406
  waitForSsh,
407
407
  wrapCloudInitUserData
408
- } from "./chunk-89kbfd6c.js";
408
+ } from "./chunk-vs59x619.js";
409
409
  import {
410
410
  ABTestManager,
411
411
  AI,