@stacksjs/ts-cloud 0.7.87 → 0.7.89
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 +258 -258
- package/dist/bin/dashboard-server.js +6608 -0
- package/dist/bin/stacks-scheduler.js +1 -0
- package/dist/{chunk-aqmdexc3.js → chunk-7jkxqr0b.js} +1 -1
- package/dist/{chunk-cj3qrktr.js → chunk-bg8gr1n1.js} +4 -4
- package/dist/{chunk-w61hh7n3.js → chunk-ecc6h5nh.js} +2 -2
- package/dist/{chunk-tcr4xba6.js → chunk-gcehnzty.js} +3 -2
- package/dist/{chunk-24kwnpe5.js → chunk-hmehkeqx.js} +2 -2
- package/dist/deploy/index.js +4 -4
- package/dist/drivers/index.js +2 -2
- package/dist/index.js +4 -4
- 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 +4 -4
- package/dist/ui/integrations.html +2 -2
- package/dist/ui/operations/alerts.html +4 -4
- package/dist/ui/operations/configuration.html +3 -3
- package/dist/ui/operations/jobs.html +3 -3
- 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 +4 -4
- package/dist/ui/operations/regions.html +4 -4
- package/dist/ui/operations/releases.html +4 -4
- package/dist/ui/operations/workloads.html +4 -4
- package/dist/ui/security.html +2 -2
- package/dist/ui/server/actions.html +3 -3
- 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/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/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 +4 -4
- package/dist/ui/serverless/firewall.html +2 -2
- package/dist/ui/serverless/functions.html +3 -3
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{existsSync as t}from"node:fs";import{resolve as c}from"node:path";import s from"node:process";import{pathToFileURL as n}from"node:url";s.env.APP_ENV||="production";s.env.NODE_ENV||="production";async function i(){let e=["storage/framework/core/actions/src/schedule/run.ts","node_modules/@stacksjs/actions/src/schedule/run.ts","node_modules/@stacksjs/actions/dist/schedule/run.js","node_modules/@stacksjs/actions/dist/src/schedule/run.js"].map((r)=>c(s.cwd(),r)).find(t);if(!e)throw Error("Stacks scheduler action was not found in the active release");await import(n(e).href)}i().catch((o)=>{console.error(o),s.exitCode=1});
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
step,
|
|
10
10
|
success,
|
|
11
11
|
warn
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7jkxqr0b.js";
|
|
13
13
|
import {
|
|
14
14
|
AwsBackupClient,
|
|
15
15
|
CloudWatchLogsClient,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
resolveSiteKind,
|
|
46
46
|
resolveUiSource,
|
|
47
47
|
siteInstallBase
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-gcehnzty.js";
|
|
49
49
|
import {
|
|
50
50
|
artifactKey,
|
|
51
51
|
buildCloudFormationTemplate,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
resolveStatePath,
|
|
68
68
|
setStateDir,
|
|
69
69
|
statePath
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-hmehkeqx.js";
|
|
71
71
|
import {
|
|
72
72
|
SSMClient
|
|
73
73
|
} from "./chunk-7m60qnc8.js";
|
|
@@ -8324,7 +8324,7 @@ async function deployServerlessApp(config, environment2, opts = {}) {
|
|
|
8324
8324
|
}
|
|
8325
8325
|
if (imageMode) {
|
|
8326
8326
|
step("Building + pushing container image");
|
|
8327
|
-
const { buildAndPushServerlessImage } = await import("./chunk-
|
|
8327
|
+
const { buildAndPushServerlessImage } = await import("./chunk-ecc6h5nh.js");
|
|
8328
8328
|
const built = await buildAndPushServerlessImage({
|
|
8329
8329
|
app,
|
|
8330
8330
|
projectRoot,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildAndPushServerlessImage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7jkxqr0b.js";
|
|
4
4
|
import"./chunk-50jpda9q.js";
|
|
5
|
-
import"./chunk-
|
|
5
|
+
import"./chunk-hmehkeqx.js";
|
|
6
6
|
import"./chunk-zqtpg06c.js";
|
|
7
7
|
import"./chunk-v0bahtg2.js";
|
|
8
8
|
export {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
resolveProjectStackName,
|
|
9
9
|
resolveStatePath,
|
|
10
10
|
statePath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-hmehkeqx.js";
|
|
12
12
|
import {
|
|
13
13
|
EC2Client,
|
|
14
14
|
SSMClient
|
|
@@ -5219,6 +5219,7 @@ function resolveSiteFramework(site) {
|
|
|
5219
5219
|
var PANTRY_ENV_EVAL = `eval "$(cd ${PANTRY_PROJECT_DIR} && pantry env 2>/dev/null)"`;
|
|
5220
5220
|
var BUN_BIN = "/usr/local/bin/bun";
|
|
5221
5221
|
var STACKS_CLI = "storage/framework/core/buddy/src/cli.ts";
|
|
5222
|
+
var STACKS_SCHEDULER = "node_modules/@stacksjs/ts-cloud/dist/bin/stacks-scheduler.js";
|
|
5222
5223
|
var stacksDriver = {
|
|
5223
5224
|
id: "stacks",
|
|
5224
5225
|
wrapExec: (command) => command,
|
|
@@ -5229,7 +5230,7 @@ var stacksDriver = {
|
|
|
5229
5230
|
NODE_ENV: "production"
|
|
5230
5231
|
},
|
|
5231
5232
|
schedulerMode: "daemon",
|
|
5232
|
-
schedulerCommand: () => `${BUN_BIN} ${
|
|
5233
|
+
schedulerCommand: () => `${BUN_BIN} ${STACKS_SCHEDULER}`,
|
|
5233
5234
|
queueWorkerCommand: (worker, { current }) => {
|
|
5234
5235
|
const flags = [
|
|
5235
5236
|
`--queue=${worker.queue || "default"}`,
|
|
@@ -21897,7 +21897,7 @@ function createDashboardSite(options) {
|
|
|
21897
21897
|
};
|
|
21898
21898
|
}
|
|
21899
21899
|
var DASHBOARD_STATE_DIR = DEFAULT_STATE_DIR;
|
|
21900
|
-
var DASHBOARD_ENTRY = "./node_modules/@stacksjs/ts-cloud/dist/bin/
|
|
21900
|
+
var DASHBOARD_ENTRY = "./node_modules/@stacksjs/ts-cloud/dist/bin/dashboard-server.js";
|
|
21901
21901
|
function apexOf(domain) {
|
|
21902
21902
|
const parts = domain.split(".").filter(Boolean);
|
|
21903
21903
|
return parts.length <= 2 ? domain : parts.slice(-2).join(".");
|
|
@@ -21997,7 +21997,7 @@ function resolveManagementDashboardSites(config, environment, opts) {
|
|
|
21997
21997
|
deploy: "server",
|
|
21998
21998
|
domain,
|
|
21999
21999
|
preStart: ["bun install --production --no-save"],
|
|
22000
|
-
start: `bun ${DASHBOARD_ENTRY}
|
|
22000
|
+
start: `bun ${DASHBOARD_ENTRY} --box --host 127.0.0.1 --port ${port}`,
|
|
22001
22001
|
port,
|
|
22002
22002
|
env: {
|
|
22003
22003
|
APP_ENV: "production",
|
package/dist/deploy/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
synchronizeDashboardUsers,
|
|
31
31
|
trackDashboardOperation,
|
|
32
32
|
verifyStaticApiOrigin
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-bg8gr1n1.js";
|
|
34
34
|
import {
|
|
35
35
|
deleteStaticSite,
|
|
36
36
|
deployStaticSite,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "../chunk-ef2dwfrg.js";
|
|
45
45
|
import {
|
|
46
46
|
buildAndPushServerlessImage
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-7jkxqr0b.js";
|
|
48
48
|
import"../chunk-ybcz6sxc.js";
|
|
49
49
|
import"../chunk-01d86gt1.js";
|
|
50
50
|
import"../chunk-50jpda9q.js";
|
|
@@ -70,8 +70,8 @@ import {
|
|
|
70
70
|
siteInstallBase,
|
|
71
71
|
validateDeploymentConfig,
|
|
72
72
|
verifyAddressRecord
|
|
73
|
-
} from "../chunk-
|
|
74
|
-
import"../chunk-
|
|
73
|
+
} from "../chunk-gcehnzty.js";
|
|
74
|
+
import"../chunk-hmehkeqx.js";
|
|
75
75
|
import"../chunk-7m60qnc8.js";
|
|
76
76
|
import"../chunk-4cjrg98a.js";
|
|
77
77
|
import"../chunk-hpv68b4a.js";
|
package/dist/drivers/index.js
CHANGED
|
@@ -68,8 +68,8 @@ import {
|
|
|
68
68
|
waitForSsh,
|
|
69
69
|
wrapCloudInitUserData,
|
|
70
70
|
writeResizeCheckpoint
|
|
71
|
-
} from "../chunk-
|
|
72
|
-
import"../chunk-
|
|
71
|
+
} from "../chunk-gcehnzty.js";
|
|
72
|
+
import"../chunk-hmehkeqx.js";
|
|
73
73
|
import"../chunk-7m60qnc8.js";
|
|
74
74
|
import"../chunk-4cjrg98a.js";
|
|
75
75
|
import"../chunk-wj3s95p9.js";
|
package/dist/index.js
CHANGED
|
@@ -283,7 +283,7 @@ import {
|
|
|
283
283
|
volumeCapabilities,
|
|
284
284
|
webhookEndpoint,
|
|
285
285
|
zeroCapacity
|
|
286
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-bg8gr1n1.js";
|
|
287
287
|
import {
|
|
288
288
|
deleteStaticSite,
|
|
289
289
|
deployStaticSite,
|
|
@@ -297,7 +297,7 @@ import {
|
|
|
297
297
|
} from "./chunk-ef2dwfrg.js";
|
|
298
298
|
import {
|
|
299
299
|
buildAndPushServerlessImage
|
|
300
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-7jkxqr0b.js";
|
|
301
301
|
import {
|
|
302
302
|
ApplicationAutoScalingClient,
|
|
303
303
|
BedrockClient,
|
|
@@ -403,7 +403,7 @@ import {
|
|
|
403
403
|
waitForCloudInit,
|
|
404
404
|
waitForSsh,
|
|
405
405
|
wrapCloudInitUserData
|
|
406
|
-
} from "./chunk-
|
|
406
|
+
} from "./chunk-gcehnzty.js";
|
|
407
407
|
import {
|
|
408
408
|
ABTestManager,
|
|
409
409
|
AI,
|
|
@@ -817,7 +817,7 @@ import {
|
|
|
817
817
|
withSecurity,
|
|
818
818
|
withTimeout,
|
|
819
819
|
xrayManager
|
|
820
|
-
} from "./chunk-
|
|
820
|
+
} from "./chunk-hmehkeqx.js";
|
|
821
821
|
import {
|
|
822
822
|
EC2Client,
|
|
823
823
|
SSMClient
|