@stacksjs/ts-cloud 0.7.113 → 0.7.115
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 +378 -378
- package/dist/bin/dashboard-server.js +367 -367
- package/dist/{chunk-6xnwshtc.js → chunk-ck9gzxr0.js} +15 -2
- package/dist/{chunk-ham2enem.js → chunk-f52r4fsk.js} +1 -1
- package/dist/deploy/index.js +4 -2
- package/dist/deploy/site-target.d.ts +16 -0
- 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 +3 -3
- 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 +3 -3
- package/dist/ui/infrastructure/topology.html +4 -4
- package/dist/ui/integrations.html +2 -2
- package/dist/ui/operations/alerts.html +4 -4
- package/dist/ui/operations/configuration.html +4 -4
- package/dist/ui/operations/jobs.html +4 -4
- package/dist/ui/operations/maintenance.html +4 -4
- package/dist/ui/operations/observability.html +4 -4
- package/dist/ui/operations/previews.html +4 -4
- package/dist/ui/operations/queue.html +3 -3
- package/dist/ui/operations/regions.html +4 -4
- package/dist/ui/operations/releases.html +4 -4
- package/dist/ui/operations/spend.html +4 -4
- 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 +3 -3
- package/dist/ui/server/logs.html +3 -3
- 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 +4 -4
- package/dist/ui/server/ssh-keys.html +3 -3
- package/dist/ui/server/team.html +4 -4
- package/dist/ui/serverless/alarms.html +3 -3
- package/dist/ui/serverless/assets.html +2 -2
- package/dist/ui/serverless/cost.html +2 -2
- package/dist/ui/serverless/data.html +4 -4
- package/dist/ui/serverless/deployments.html +2 -2
- package/dist/ui/serverless/firewall.html +2 -2
- package/dist/ui/serverless/functions.html +4 -4
- package/dist/ui/serverless/logs.html +4 -4
- package/dist/ui/serverless/metrics.html +2 -2
- package/dist/ui/serverless/queues.html +4 -4
- package/dist/ui/serverless/secrets.html +4 -4
- package/dist/ui/serverless/traces.html +4 -4
- package/dist/ui/serverless.html +4 -4
- package/package.json +3 -3
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
isManagementDashboardSiteName,
|
|
21
21
|
resolveAppDatabase,
|
|
22
22
|
resolveCloudProvider,
|
|
23
|
+
resolveDeploymentMode,
|
|
23
24
|
resolveManagementDashboardSites,
|
|
24
25
|
resolveProjectStackName,
|
|
25
26
|
resolveStatePath,
|
|
@@ -1479,6 +1480,18 @@ function shipsARelease(site) {
|
|
|
1479
1480
|
const kind = resolveSiteKind(site);
|
|
1480
1481
|
return kind !== "bucket" && kind !== "redirect" && kind !== "proxy";
|
|
1481
1482
|
}
|
|
1483
|
+
function deployShipsFiles(config, onlySite) {
|
|
1484
|
+
if (resolveDeploymentMode(config) === "serverless")
|
|
1485
|
+
return true;
|
|
1486
|
+
const entries = Object.entries(config.sites ?? {}).filter(([, site]) => site != null);
|
|
1487
|
+
const inScope = onlySite ? entries.filter(([name]) => name === onlySite) : entries;
|
|
1488
|
+
if (inScope.length === 0)
|
|
1489
|
+
return true;
|
|
1490
|
+
return !inScope.every(([, site]) => {
|
|
1491
|
+
const kind = resolveSiteKind(site);
|
|
1492
|
+
return kind === "redirect" || kind === "proxy";
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1482
1495
|
|
|
1483
1496
|
// src/drivers/shared/rpx-gateway.ts
|
|
1484
1497
|
var DEFAULT_RPX_CERTS_DIR = "/etc/rpx/certs";
|
|
@@ -6749,7 +6762,7 @@ async function deployAllComputeSites(options) {
|
|
|
6749
6762
|
return true;
|
|
6750
6763
|
});
|
|
6751
6764
|
if (deployable.length === 0)
|
|
6752
|
-
return
|
|
6765
|
+
return reloadRpxGateway(options);
|
|
6753
6766
|
if (!await ensureAttachModeDatabase(driver, options, logger))
|
|
6754
6767
|
return false;
|
|
6755
6768
|
const tarballFor = (siteName) => dashboardTarballBySite.get(siteName) ?? tarballForSite(siteName);
|
|
@@ -7010,4 +7023,4 @@ function buildCloudFrontOriginConfig(options) {
|
|
|
7010
7023
|
CustomErrorResponses: { Quantity: 0 }
|
|
7011
7024
|
};
|
|
7012
7025
|
}
|
|
7013
|
-
export { collectServerDnsDomains, removeStaleServerAddressRecords, normalizePublicIpv6, IPV6_EXCLUDED_HOST_LABELS, hostAcceptsIpv6, reconcileAddressRecords, verifyAddressRecord, PANTRY_PROJECT_DIR, buildPantryBootstrapScript, buildVitessProvisionScript, pgAdminCommand, BACKUP_RUNNER_PATH, buildBackupRestoreScript, siteInstallBase, isPhpSite, resolveProxyUpstreams, hasProxyUpstream, resolveSiteDeployTarget, resolveSiteKind, validateDeploymentConfig, shipsARelease, DEFAULT_RPX_CERTS_DIR, normalizeRoutePath, deriveRouteId, buildRpxConfig, buildRpxLbConfig, renderRpxLauncher, RPX_DIR, RPX_LAUNCHER_PATH, RPX_SERVICE_NAME, buildRpxProvisionScript, buildRpxFragmentRefreshScript, buildUbuntuBootstrapScript, AwsDriver, resolveHetznerLocation, HetznerClient, resolveHetznerApiToken2 as resolveHetznerApiToken, normalizeSshPublicKey, wrapCloudInitUserData, HetznerDriver, LocalBoxDriver, isBoxMode, createCloudDriver, CloudDriverFactory, cloudDrivers, planHetznerServerResize, isHetznerCapacityError, executeHetznerServerResize, buildSshArgs, sshExec, sshExecOrThrow, scpUpload, waitForSsh, waitForCloudInit, collectHetznerResizeManifest, prepareHetznerResize, verifyHetznerResize, resolveHetznerHostOptimizationPlan, buildHetznerHostOptimizationScript, applyHetznerHostOptimization, collectHetznerHostOptimizationReport, verifyHetznerHostOptimization, resizeCheckpointPath, resizeLockPath, readResizeCheckpoint, writeResizeCheckpoint, acquireResizeLock, ensureSshKey, ensureFirewall, ensureServer, serverPublicIpv4, UBUNTU_2404_AMI_PARAM, buildBoxUserData, HetznerBoxProvisioner, AwsBoxProvisioner, createBoxProvisioner, releasePaths, buildRollbackScript, resolveExecStart, buildSiteDeployScript, buildStaticSiteDeployScript, releaseTarballTmpPath, buildAwsArtifactFetch, buildLocalArtifactFetch, buildHostCleanupScript, MANAGEMENT_DASHBOARD_SITE, dashboardCredentialsFile, resolveDashboardAuth, resolveUiSource, ensureManagementDashboard, buildManagementDashboardArtifact, resolveSiteFramework, deploySiteRelease, deployAllComputeSites, reloadRpxGateway, renewRpxCertificates, MANAGED_CACHE_POLICY_OPTIMIZED, MANAGED_CACHE_POLICY_DISABLED, MANAGED_ORIGIN_REQUEST_POLICY_ALL_VIEWER, buildCloudFrontOriginConfig };
|
|
7026
|
+
export { collectServerDnsDomains, removeStaleServerAddressRecords, normalizePublicIpv6, IPV6_EXCLUDED_HOST_LABELS, hostAcceptsIpv6, reconcileAddressRecords, verifyAddressRecord, PANTRY_PROJECT_DIR, buildPantryBootstrapScript, buildVitessProvisionScript, pgAdminCommand, BACKUP_RUNNER_PATH, buildBackupRestoreScript, siteInstallBase, isPhpSite, resolveProxyUpstreams, hasProxyUpstream, resolveSiteDeployTarget, resolveSiteKind, validateDeploymentConfig, shipsARelease, deployShipsFiles, DEFAULT_RPX_CERTS_DIR, normalizeRoutePath, deriveRouteId, buildRpxConfig, buildRpxLbConfig, renderRpxLauncher, RPX_DIR, RPX_LAUNCHER_PATH, RPX_SERVICE_NAME, buildRpxProvisionScript, buildRpxFragmentRefreshScript, buildUbuntuBootstrapScript, AwsDriver, resolveHetznerLocation, HetznerClient, resolveHetznerApiToken2 as resolveHetznerApiToken, normalizeSshPublicKey, wrapCloudInitUserData, HetznerDriver, LocalBoxDriver, isBoxMode, createCloudDriver, CloudDriverFactory, cloudDrivers, planHetznerServerResize, isHetznerCapacityError, executeHetznerServerResize, buildSshArgs, sshExec, sshExecOrThrow, scpUpload, waitForSsh, waitForCloudInit, collectHetznerResizeManifest, prepareHetznerResize, verifyHetznerResize, resolveHetznerHostOptimizationPlan, buildHetznerHostOptimizationScript, applyHetznerHostOptimization, collectHetznerHostOptimizationReport, verifyHetznerHostOptimization, resizeCheckpointPath, resizeLockPath, readResizeCheckpoint, writeResizeCheckpoint, acquireResizeLock, ensureSshKey, ensureFirewall, ensureServer, serverPublicIpv4, UBUNTU_2404_AMI_PARAM, buildBoxUserData, HetznerBoxProvisioner, AwsBoxProvisioner, createBoxProvisioner, releasePaths, buildRollbackScript, resolveExecStart, buildSiteDeployScript, buildStaticSiteDeployScript, releaseTarballTmpPath, buildAwsArtifactFetch, buildLocalArtifactFetch, buildHostCleanupScript, MANAGEMENT_DASHBOARD_SITE, dashboardCredentialsFile, resolveDashboardAuth, resolveUiSource, ensureManagementDashboard, buildManagementDashboardArtifact, resolveSiteFramework, deploySiteRelease, deployAllComputeSites, reloadRpxGateway, renewRpxCertificates, MANAGED_CACHE_POLICY_OPTIMIZED, MANAGED_CACHE_POLICY_DISABLED, MANAGED_ORIGIN_REQUEST_POLICY_ALL_VIEWER, buildCloudFrontOriginConfig };
|
package/dist/deploy/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
synchronizeDashboardUsers,
|
|
37
37
|
trackDashboardOperation,
|
|
38
38
|
verifyStaticApiOrigin
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-f52r4fsk.js";
|
|
40
40
|
import {
|
|
41
41
|
deleteStaticSite,
|
|
42
42
|
deployStaticSite,
|
|
@@ -64,6 +64,7 @@ import {
|
|
|
64
64
|
buildManagementDashboardArtifact,
|
|
65
65
|
collectServerDnsDomains,
|
|
66
66
|
dashboardCredentialsFile,
|
|
67
|
+
deployShipsFiles,
|
|
67
68
|
ensureManagementDashboard,
|
|
68
69
|
hasProxyUpstream,
|
|
69
70
|
hostAcceptsIpv6,
|
|
@@ -80,7 +81,7 @@ import {
|
|
|
80
81
|
siteInstallBase,
|
|
81
82
|
validateDeploymentConfig,
|
|
82
83
|
verifyAddressRecord
|
|
83
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-ck9gzxr0.js";
|
|
84
85
|
import"../chunk-7m60qnc8.js";
|
|
85
86
|
import"../chunk-4cjrg98a.js";
|
|
86
87
|
import"../chunk-rds0sy87.js";
|
|
@@ -139,6 +140,7 @@ export {
|
|
|
139
140
|
deployStaticSite,
|
|
140
141
|
deployStaticApiOrigin,
|
|
141
142
|
deploySite,
|
|
143
|
+
deployShipsFiles,
|
|
142
144
|
deployServerlessApp,
|
|
143
145
|
deployExistingStaticFullStack,
|
|
144
146
|
deleteStaticSite,
|
|
@@ -97,3 +97,19 @@ export declare function validateDeploymentConfig(config: CloudConfig): Deploymen
|
|
|
97
97
|
* regenerated from the full `sites` model, not from this list.
|
|
98
98
|
*/
|
|
99
99
|
export declare function shipsARelease(site: SiteConfig): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Does this deploy put any file from the working tree onto a server or into a
|
|
102
|
+
* bucket?
|
|
103
|
+
*
|
|
104
|
+
* `false` only when every site in scope is a pure route — a `redirect` the
|
|
105
|
+
* gateway answers, or a `proxyTo` it forwards to something ts-cloud does not
|
|
106
|
+
* manage. Those ship no `root`, write no release `.env`, and run no `preStart`,
|
|
107
|
+
* so nothing in this directory can reach a box through them, and the
|
|
108
|
+
* pre-deployment secret scan has no artifact to look at.
|
|
109
|
+
*
|
|
110
|
+
* Deliberately conservative. A `bucket` site uploads its built `root`, so it
|
|
111
|
+
* counts as shipping even though {@link shipsARelease} is false for it, and a
|
|
112
|
+
* serverless project packages a Lambda artifact regardless of `sites`. Both
|
|
113
|
+
* keep the full scan.
|
|
114
|
+
*/
|
|
115
|
+
export declare function deployShipsFiles(config: CloudConfig, onlySite?: string): boolean;
|
package/dist/drivers/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
verifyUpdateSignature,
|
|
209
209
|
webhookEndpoint,
|
|
210
210
|
zeroCapacity
|
|
211
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-f52r4fsk.js";
|
|
212
212
|
import {
|
|
213
213
|
deleteStaticSite,
|
|
214
214
|
deployStaticSite,
|
|
@@ -341,7 +341,7 @@ import {
|
|
|
341
341
|
waitForCloudInit,
|
|
342
342
|
waitForSsh,
|
|
343
343
|
wrapCloudInitUserData
|
|
344
|
-
} from "./chunk-
|
|
344
|
+
} from "./chunk-ck9gzxr0.js";
|
|
345
345
|
import {
|
|
346
346
|
EC2Client,
|
|
347
347
|
SSMClient
|