@stacksjs/buddy 0.70.253 → 0.70.255

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.
@@ -896,20 +896,17 @@ async function runHetznerDeploy(args) {
896
896
  if (ok && publishedDns.length > 0) {
897
897
  log.info(`Issuing TLS for ${publishedDns.length} newly published record(s)...`);
898
898
  try {
899
- const { renewRpxCertificates, reloadRpxGateway } = await import("@stacksjs/ts-cloud"), gatewayOptions = {
900
- rpxConfig: { ...tsCloudConfig, sites: sitesWithResolvedEnv },
901
- environment,
902
- driver,
903
- logger: {
904
- info: (m) => log.info(m),
905
- warn: (m) => log.warn(m),
906
- error: (m) => log.error(m),
907
- step: (m) => log.info(m),
908
- success: (m) => log.success(m)
909
- }
910
- };
911
- await renewRpxCertificates(gatewayOptions);
912
- await reloadRpxGateway(gatewayOptions);
899
+ const { execSync } = await import("node:child_process"), unit = `rpx-cert-renew-${tsCloudConfig.project?.slug || "app"}.service`, certSshArgs = ["-o", "StrictHostKeyChecking=accept-new", "-o", "BatchMode=yes", "-o", "ConnectTimeout=20", `root@${ip}`], out = execSync(`ssh ${certSshArgs.map((a) => `'${a}'`).join(" ")} bash -s`, {
900
+ input: `systemctl start ${unit} 2>&1 || true
901
+ systemctl is-active ${unit} >/dev/null 2>&1 && echo TLSUNIT:running || echo TLSUNIT:done
902
+ journalctl -u ${unit} -n 20 --no-pager 2>/dev/null | grep -E 'Certificate written|Skipping|error|Error' | tail -5 || true`,
903
+ encoding: "utf8",
904
+ stdio: ["pipe", "pipe", "pipe"]
905
+ });
906
+ for (const line of out.split(`
907
+ `))
908
+ if (/Certificate written|Skipping/.test(line))
909
+ log.info(` ${line.replace(/^.*?\]:\s*/, "").trim()}`);
913
910
  log.success("TLS issued and gateway reloaded for the new record(s)");
914
911
  } catch (err) {
915
912
  log.warn(`TLS issuance after DNS failed: ${err?.message || err}`);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.253",
5
+ "version": "0.70.255",
6
6
  "description": "Meet Buddy. The Stacks runtime.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -88,53 +88,53 @@
88
88
  "prepublishOnly": "bun run build"
89
89
  },
90
90
  "dependencies": {
91
- "@stacksjs/actions": "^0.70.253",
92
- "@stacksjs/ai": "^0.70.253",
93
- "@stacksjs/alias": "^0.70.253",
94
- "@stacksjs/arrays": "^0.70.253",
95
- "@stacksjs/auth": "^0.70.253",
96
- "@stacksjs/build": "^0.70.253",
97
- "@stacksjs/cache": "^0.70.253",
98
- "@stacksjs/cli": "^0.70.253",
91
+ "@stacksjs/actions": "^0.70.255",
92
+ "@stacksjs/ai": "^0.70.255",
93
+ "@stacksjs/alias": "^0.70.255",
94
+ "@stacksjs/arrays": "^0.70.255",
95
+ "@stacksjs/auth": "^0.70.255",
96
+ "@stacksjs/build": "^0.70.255",
97
+ "@stacksjs/cache": "^0.70.255",
98
+ "@stacksjs/cli": "^0.70.255",
99
99
  "@stacksjs/clapp": "^0.2.12",
100
- "@stacksjs/cloud": "^0.70.253",
101
- "@stacksjs/collections": "^0.70.253",
102
- "@stacksjs/config": "^0.70.253",
103
- "@stacksjs/database": "^0.70.253",
104
- "@stacksjs/desktop-build": "^0.70.253",
105
- "@stacksjs/dns": "^0.70.253",
106
- "@stacksjs/email": "^0.70.253",
107
- "@stacksjs/enums": "^0.70.253",
108
- "@stacksjs/error-handling": "^0.70.253",
109
- "@stacksjs/events": "^0.70.253",
110
- "@stacksjs/git": "^0.70.253",
100
+ "@stacksjs/cloud": "^0.70.255",
101
+ "@stacksjs/collections": "^0.70.255",
102
+ "@stacksjs/config": "^0.70.255",
103
+ "@stacksjs/database": "^0.70.255",
104
+ "@stacksjs/desktop-build": "^0.70.255",
105
+ "@stacksjs/dns": "^0.70.255",
106
+ "@stacksjs/email": "^0.70.255",
107
+ "@stacksjs/enums": "^0.70.255",
108
+ "@stacksjs/error-handling": "^0.70.255",
109
+ "@stacksjs/events": "^0.70.255",
110
+ "@stacksjs/git": "^0.70.255",
111
111
  "@stacksjs/gitit": "^0.2.5",
112
- "@stacksjs/health": "^0.70.253",
112
+ "@stacksjs/health": "^0.70.255",
113
113
  "@stacksjs/dnsx": "^0.2.3",
114
114
  "@stacksjs/httx": "^0.1.10",
115
- "@stacksjs/image": "^0.70.253",
116
- "@stacksjs/lint": "^0.70.253",
117
- "@stacksjs/logging": "^0.70.253",
118
- "@stacksjs/notifications": "^0.70.253",
119
- "@stacksjs/objects": "^0.70.253",
120
- "@stacksjs/orm": "^0.70.253",
121
- "@stacksjs/path": "^0.70.253",
122
- "@stacksjs/skills": "^0.70.253",
123
- "@stacksjs/payments": "^0.70.253",
124
- "@stacksjs/realtime": "^0.70.253",
125
- "@stacksjs/router": "^0.70.253",
115
+ "@stacksjs/image": "^0.70.255",
116
+ "@stacksjs/lint": "^0.70.255",
117
+ "@stacksjs/logging": "^0.70.255",
118
+ "@stacksjs/notifications": "^0.70.255",
119
+ "@stacksjs/objects": "^0.70.255",
120
+ "@stacksjs/orm": "^0.70.255",
121
+ "@stacksjs/path": "^0.70.255",
122
+ "@stacksjs/skills": "^0.70.255",
123
+ "@stacksjs/payments": "^0.70.255",
124
+ "@stacksjs/realtime": "^0.70.255",
125
+ "@stacksjs/router": "^0.70.255",
126
126
  "@stacksjs/rpx": "^0.11.42",
127
- "@stacksjs/search-engine": "^0.70.253",
128
- "@stacksjs/security": "^0.70.253",
129
- "@stacksjs/server": "^0.70.253",
130
- "@stacksjs/storage": "^0.70.253",
131
- "@stacksjs/strings": "^0.70.253",
132
- "@stacksjs/testing": "^0.70.253",
133
- "@stacksjs/tunnel": "^0.70.253",
134
- "@stacksjs/types": "^0.70.253",
135
- "@stacksjs/ui": "^0.70.253",
136
- "@stacksjs/utils": "^0.70.253",
137
- "@stacksjs/validation": "^0.70.253",
127
+ "@stacksjs/search-engine": "^0.70.255",
128
+ "@stacksjs/security": "^0.70.255",
129
+ "@stacksjs/server": "^0.70.255",
130
+ "@stacksjs/storage": "^0.70.255",
131
+ "@stacksjs/strings": "^0.70.255",
132
+ "@stacksjs/testing": "^0.70.255",
133
+ "@stacksjs/tunnel": "^0.70.255",
134
+ "@stacksjs/types": "^0.70.255",
135
+ "@stacksjs/ui": "^0.70.255",
136
+ "@stacksjs/utils": "^0.70.255",
137
+ "@stacksjs/validation": "^0.70.255",
138
138
  "@stacksjs/ts-cloud": "^0.7.92",
139
139
  "ajv": "^8.20.0",
140
140
  "ajv-formats": "^3.0.1",