@stacksjs/ts-cloud 0.7.78 → 0.7.80
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.
- package/dist/bin/cli.js +89 -89
- package/dist/{chunk-23pnrvex.js → chunk-5z0an6q8.js} +6 -4
- package/dist/{chunk-qk1qcsrh.js → chunk-cx2j9h3s.js} +1 -1
- package/dist/deploy/index.js +2 -2
- package/dist/drivers/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/ui/access-denied.html +2 -2
- package/dist/ui/account/automation.html +4 -4
- package/dist/ui/account/security.html +2 -2
- package/dist/ui/applications/compose.html +4 -4
- package/dist/ui/applications/new.html +2 -2
- package/dist/ui/data/backups.html +4 -4
- package/dist/ui/data/services.html +4 -4
- package/dist/ui/data/volumes.html +4 -4
- package/dist/ui/index.html +4 -4
- package/dist/ui/operations/alerts.html +4 -4
- package/dist/ui/operations/configuration.html +3 -3
- package/dist/ui/operations/jobs.html +4 -4
- package/dist/ui/operations/maintenance.html +3 -3
- package/dist/ui/operations/observability.html +3 -3
- package/dist/ui/operations/previews.html +4 -4
- package/dist/ui/operations/queue.html +4 -4
- package/dist/ui/operations/regions.html +4 -4
- package/dist/ui/operations/releases.html +3 -3
- package/dist/ui/operations/workloads.html +4 -4
- package/dist/ui/security.html +2 -2
- package/dist/ui/server/actions.html +4 -4
- package/dist/ui/server/activity.html +2 -2
- package/dist/ui/server/capacity.html +4 -4
- package/dist/ui/server/database.html +4 -4
- package/dist/ui/server/deployments.html +4 -4
- package/dist/ui/server/diagnostics.html +2 -2
- package/dist/ui/server/firewall.html +4 -4
- package/dist/ui/server/fleet.html +4 -4
- package/dist/ui/server/logs.html +4 -4
- package/dist/ui/server/metrics.html +4 -4
- package/dist/ui/server/security.html +2 -2
- package/dist/ui/server/services.html +2 -2
- package/dist/ui/server/sites.html +3 -3
- package/dist/ui/server/ssh-keys.html +3 -3
- package/dist/ui/server/team.html +4 -4
- package/dist/ui/server/terminal.html +2 -2
- package/dist/ui/serverless/alarms.html +4 -4
- package/dist/ui/serverless/assets.html +2 -2
- package/dist/ui/serverless/cost.html +2 -2
- package/dist/ui/serverless/data.html +3 -3
- package/dist/ui/serverless/firewall.html +2 -2
- package/dist/ui/serverless/functions.html +3 -3
- package/dist/ui/serverless/logs.html +3 -3
- package/dist/ui/serverless/queues.html +3 -3
- package/dist/ui/serverless/secrets.html +3 -3
- package/dist/ui/serverless/traces.html +3 -3
- package/dist/ui/serverless.html +4 -4
- package/package.json +3 -3
|
@@ -2034,6 +2034,7 @@ class AwsDriver {
|
|
|
2034
2034
|
|
|
2035
2035
|
// src/drivers/hetzner/driver.ts
|
|
2036
2036
|
import { execSync } from "node:child_process";
|
|
2037
|
+
import { randomUUID } from "node:crypto";
|
|
2037
2038
|
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
2038
2039
|
|
|
2039
2040
|
// src/drivers/shared/fleet.ts
|
|
@@ -3134,7 +3135,8 @@ class HetznerDriver {
|
|
|
3134
3135
|
if (targets.length === 0) {
|
|
3135
3136
|
throw new Error("No Hetzner compute targets found for release upload");
|
|
3136
3137
|
}
|
|
3137
|
-
const
|
|
3138
|
+
const stagingStem = options.remoteKey.replace(/^releases\//, "").replace(/\.tar\.gz$/, "").replace(/\//g, "-");
|
|
3139
|
+
const stagingName = `${stagingStem}-${randomUUID()}.tar.gz`;
|
|
3138
3140
|
const remotePath = `/var/ts-cloud/staging/${stagingName}`;
|
|
3139
3141
|
for (const target of targets) {
|
|
3140
3142
|
if (!target.publicIp) {
|
|
@@ -3154,9 +3156,6 @@ class HetznerDriver {
|
|
|
3154
3156
|
privateIp: server.private_net?.[0]?.ip,
|
|
3155
3157
|
status: server.status
|
|
3156
3158
|
});
|
|
3157
|
-
const exact = servers.filter((server) => matchesTsCloudLabels(server.labels, options.slug, options.environment, role));
|
|
3158
|
-
if (exact.length > 0)
|
|
3159
|
-
return exact.map(toTarget);
|
|
3160
3159
|
if (role === "app" || role === "lb" || role === "services") {
|
|
3161
3160
|
const state = await readDriverState(options.stackName ?? `${options.slug}-${options.environment}`);
|
|
3162
3161
|
const pinnedIds = [
|
|
@@ -3173,6 +3172,9 @@ class HetznerDriver {
|
|
|
3173
3172
|
return pinned.map(toTarget);
|
|
3174
3173
|
}
|
|
3175
3174
|
}
|
|
3175
|
+
const exact = servers.filter((server) => matchesTsCloudLabels(server.labels, options.slug, options.environment, role));
|
|
3176
|
+
if (exact.length > 0)
|
|
3177
|
+
return exact.map(toTarget);
|
|
3176
3178
|
if (role === "app") {
|
|
3177
3179
|
const candidates = servers.filter((server) => server.status !== "off" && server.labels?.[`${TS_CLOUD_LABEL_PREFIX}/managed-by`] === "ts-cloud" && server.labels?.[`${TS_CLOUD_LABEL_PREFIX}/environment`] === options.environment && server.labels?.[`${TS_CLOUD_LABEL_PREFIX}/role`] === "app");
|
|
3178
3180
|
if (candidates.length === 1)
|
package/dist/deploy/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
synchronizeDashboardUsers,
|
|
33
33
|
trackDashboardOperation,
|
|
34
34
|
verifyStaticApiOrigin
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-cx2j9h3s.js";
|
|
36
36
|
import {
|
|
37
37
|
deleteStaticSite,
|
|
38
38
|
deployStaticSite,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
shipsARelease,
|
|
66
66
|
siteInstallBase,
|
|
67
67
|
validateDeploymentConfig
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-5z0an6q8.js";
|
|
69
69
|
import"../chunk-1qjyqrc5.js";
|
|
70
70
|
import"../chunk-703nkybg.js";
|
|
71
71
|
import"../chunk-4cjrg98a.js";
|
package/dist/drivers/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -285,7 +285,7 @@ import {
|
|
|
285
285
|
volumeCapabilities,
|
|
286
286
|
webhookEndpoint,
|
|
287
287
|
zeroCapacity
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-cx2j9h3s.js";
|
|
289
289
|
import {
|
|
290
290
|
deleteStaticSite,
|
|
291
291
|
deployStaticSite,
|
|
@@ -398,7 +398,7 @@ import {
|
|
|
398
398
|
waitForCloudInit,
|
|
399
399
|
waitForSsh,
|
|
400
400
|
wrapCloudInitUserData
|
|
401
|
-
} from "./chunk-
|
|
401
|
+
} from "./chunk-5z0an6q8.js";
|
|
402
402
|
import {
|
|
403
403
|
ABTestManager,
|
|
404
404
|
AI,
|