@stacksjs/ts-cloud 0.7.94 → 0.7.96

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 (55) hide show
  1. package/dist/bin/cli.js +138 -138
  2. package/dist/bin/dashboard-server.js +94 -94
  3. package/dist/{chunk-bs3jfnzp.js → chunk-80apz7eb.js} +20 -4
  4. package/dist/{chunk-0htae1c2.js → chunk-ws3r73x9.js} +1 -1
  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 +4 -4
  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 +4 -4
  17. package/dist/ui/operations/alerts.html +4 -4
  18. package/dist/ui/operations/configuration.html +4 -4
  19. package/dist/ui/operations/jobs.html +4 -4
  20. package/dist/ui/operations/maintenance.html +3 -3
  21. package/dist/ui/operations/observability.html +4 -4
  22. package/dist/ui/operations/previews.html +4 -4
  23. package/dist/ui/operations/queue.html +4 -4
  24. package/dist/ui/operations/regions.html +4 -4
  25. package/dist/ui/operations/releases.html +4 -4
  26. package/dist/ui/operations/workloads.html +4 -4
  27. package/dist/ui/security.html +2 -2
  28. package/dist/ui/server/actions.html +4 -4
  29. package/dist/ui/server/activity.html +2 -2
  30. package/dist/ui/server/capacity.html +3 -3
  31. package/dist/ui/server/database.html +4 -4
  32. package/dist/ui/server/deployments.html +4 -4
  33. package/dist/ui/server/diagnostics.html +2 -2
  34. package/dist/ui/server/firewall.html +4 -4
  35. package/dist/ui/server/fleet.html +4 -4
  36. package/dist/ui/server/logs.html +4 -4
  37. package/dist/ui/server/metrics.html +4 -4
  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/cost.html +2 -2
  46. package/dist/ui/serverless/data.html +4 -4
  47. package/dist/ui/serverless/firewall.html +2 -2
  48. package/dist/ui/serverless/functions.html +4 -4
  49. package/dist/ui/serverless/logs.html +4 -4
  50. package/dist/ui/serverless/metrics.html +2 -2
  51. package/dist/ui/serverless/queues.html +4 -4
  52. package/dist/ui/serverless/secrets.html +4 -4
  53. package/dist/ui/serverless/traces.html +4 -4
  54. package/dist/ui/serverless.html +4 -4
  55. package/package.json +3 -3
@@ -196,7 +196,7 @@ function vitessPackages(config) {
196
196
  const packages = [version];
197
197
  if (config.mode !== "combo" && !config.etcdEndpoint)
198
198
  packages.push("etcd.io");
199
- packages.push("mysql.com");
199
+ packages.push("mysql.com@8.0.43");
200
200
  return packages;
201
201
  }
202
202
  var VITESS_USER = "vitess";
@@ -222,10 +222,13 @@ function launcherScript(command) {
222
222
  "#!/bin/sh",
223
223
  "set -e",
224
224
  `cd ${PANTRY_PROJECT_DIR}`,
225
- 'eval "$(pantry env 2>/dev/null)" || true',
225
+ `PANTRY_ENV="$(pantry env 2>/dev/null | grep -E '^(export [A-Za-z_]|[A-Za-z_][A-Za-z0-9_]*=)' || true)"`,
226
+ 'if [ -n "$PANTRY_ENV" ]; then eval "$PANTRY_ENV"; fi',
226
227
  `VT_MYSQL_ROOT="$(dirname "$(dirname "$(readlink -f ${PANTRY_BIN}/mysqld 2>/dev/null)")")"`,
227
228
  `VTROOT="$(dirname "$(dirname "$(readlink -f ${PANTRY_BIN}/mysqlctld 2>/dev/null)")")"`,
228
229
  "export VT_MYSQL_ROOT VTROOT",
230
+ 'LD_LIBRARY_PATH="$VT_MYSQL_ROOT/lib:$VTROOT/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"',
231
+ "export LD_LIBRARY_PATH",
229
232
  `exec ${command.join(" ")}`
230
233
  ].join(`
231
234
  `);
@@ -393,7 +396,7 @@ function buildVitessBootstrapScript(config) {
393
396
  const alias = `${cell}-${String(VITESS_TABLET_UID).padStart(10, "0")}`;
394
397
  for (const shard of keyspace.sharded ? ["-80", "80-"] : ["0"]) {
395
398
  const target = `${keyspace.name}/${shard}`;
396
- out.push(`for i in $(seq 1 30); do ${client} GetTablet ${sh2(alias)} >/dev/null 2>&1 && break; sleep 2; done`, `if ! ${client} GetShard ${sh2(target)} 2>/dev/null | grep -q '"primary_alias"'; then`, ` ${client} PlannedReparentShard ${sh2(target)} --new-primary ${sh2(alias)} || ${client} InitShardPrimary --force ${sh2(target)} ${sh2(alias)}`, "fi");
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");
397
400
  }
398
401
  }
399
402
  return out;
@@ -419,6 +422,13 @@ function buildVitessProvisionScript(value) {
419
422
  launchers.clear();
420
423
  const out = [
421
424
  ...buildPantryInstallScript(vitessPackages(config)),
425
+ `VT_MYSQL_LIB="$(dirname "$(dirname "$(readlink -f ${PANTRY_BIN}/mysqld)")")/lib"`,
426
+ 'if [ -d "$VT_MYSQL_LIB" ]; then',
427
+ ` printf '%s\\n' "$VT_MYSQL_LIB" > /etc/ld.so.conf.d/vitess-mysql.conf`,
428
+ " ldconfig",
429
+ "else",
430
+ ' echo "mysqld library directory not found under $VT_MYSQL_LIB" >&2; exit 1',
431
+ "fi",
422
432
  `id -u ${VITESS_USER} >/dev/null 2>&1 || useradd --system --home-dir ${VITESS_ROOT} --shell /usr/sbin/nologin ${VITESS_USER}`,
423
433
  `mkdir -p ${VITESS_ROOT}`,
424
434
  `chown -R ${VITESS_USER}:${VITESS_USER} ${VITESS_ROOT}`
@@ -1704,7 +1714,13 @@ function buildCertManagementCommands(options) {
1704
1714
  `DOMAINS='${csv}'`,
1705
1715
  'before=$(cat "$CERTS"/*.crt 2>/dev/null | sha256sum)',
1706
1716
  `for d in ${spaced}; do`,
1707
- ' [ -s "$CERTS/$d.crt" ] || $TLSX acme:issue -d "$d" --method http-01 --webroot "$WEBROOT" --dir "$CERTS" --prod --email "$EMAIL" || echo "issue $d failed (non-fatal)"',
1717
+ ' if [ ! -s "$CERTS/$d.crt" ]; then',
1718
+ ' $TLSX acme:issue -d "$d" --method http-01 --webroot "$WEBROOT" --dir "$CERTS" --prod --email "$EMAIL" || echo "issue $d failed (non-fatal)"',
1719
+ " # rpx reloads its SNI set when a PEM appears. Complete that reload",
1720
+ " # before the next hostname starts http-01, or :80 can disappear in",
1721
+ " # the middle of the following challenge on a multi-domain deploy.",
1722
+ ` [ -s "$CERTS/$d.crt" ] && systemctl restart ${RPX_SERVICE_NAME}`,
1723
+ " fi",
1708
1724
  "done",
1709
1725
  '$TLSX acme:renew --domains "$DOMAINS" --method http-01 --webroot "$WEBROOT" --dir "$CERTS" --days 30 --prod --email "$EMAIL" || echo "renew: some domains failed (non-fatal)"',
1710
1726
  'rm -f "$CERTS"/*.chain.crt',
@@ -45,7 +45,7 @@ import {
45
45
  resolveSiteKind,
46
46
  resolveUiSource,
47
47
  siteInstallBase
48
- } from "./chunk-bs3jfnzp.js";
48
+ } from "./chunk-80apz7eb.js";
49
49
  import {
50
50
  artifactKey,
51
51
  buildCloudFormationTemplate,
@@ -30,7 +30,7 @@ import {
30
30
  synchronizeDashboardUsers,
31
31
  trackDashboardOperation,
32
32
  verifyStaticApiOrigin
33
- } from "../chunk-0htae1c2.js";
33
+ } from "../chunk-ws3r73x9.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-bs3jfnzp.js";
73
+ } from "../chunk-80apz7eb.js";
74
74
  import"../chunk-hmehkeqx.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-bs3jfnzp.js";
71
+ } from "../chunk-80apz7eb.js";
72
72
  import"../chunk-hmehkeqx.js";
73
73
  import"../chunk-7m60qnc8.js";
74
74
  import"../chunk-4cjrg98a.js";
package/dist/index.js CHANGED
@@ -283,7 +283,7 @@ import {
283
283
  volumeCapabilities,
284
284
  webhookEndpoint,
285
285
  zeroCapacity
286
- } from "./chunk-0htae1c2.js";
286
+ } from "./chunk-ws3r73x9.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-bs3jfnzp.js";
408
+ } from "./chunk-80apz7eb.js";
409
409
  import {
410
410
  ABTestManager,
411
411
  AI,