@stacksjs/ts-cloud 0.7.104 → 0.7.105
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/aws/index.js +2 -14
- package/dist/bin/cli.js +369 -369
- package/dist/bin/dashboard-server.js +203 -203
- package/dist/{chunk-5cz14833.js → chunk-ef2dwfrg.js} +3 -3
- package/dist/{chunk-6hymgy61.js → chunk-gttvakpv.js} +1 -85
- package/dist/{chunk-adgz2c49.js → chunk-s9c2x5jv.js} +2 -2
- package/dist/{chunk-gtz4jar2.js → chunk-vkd2y0fs.js} +1 -1
- package/dist/deploy/index.js +3 -3
- package/dist/dns/index.d.ts +0 -2
- package/dist/dns/index.js +2 -14
- package/dist/index.d.ts +1 -2
- package/dist/index.js +4 -16
- 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/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 +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 +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 +4 -4
- package/dist/ui/server/activity.html +2 -2
- package/dist/ui/server/capacity.html +4 -4
- package/dist/ui/server/database.html +3 -3
- 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 +4 -4
- 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/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
- package/dist/dns/mail-records.d.ts +0 -82
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
Route53Provider,
|
|
8
8
|
UnifiedDnsValidator,
|
|
9
9
|
createDnsProvider
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-gttvakpv.js";
|
|
11
11
|
import {
|
|
12
12
|
CloudFormationClient
|
|
13
13
|
} from "./chunk-4cjrg98a.js";
|
|
@@ -815,7 +815,7 @@ async function deployStaticSiteWithExternalDnsFull(config) {
|
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
817
|
onProgress?.("upload", "Uploading files to S3...");
|
|
818
|
-
const { uploadStaticFiles } = await import("./chunk-
|
|
818
|
+
const { uploadStaticFiles } = await import("./chunk-s9c2x5jv.js");
|
|
819
819
|
const uploadResult = await uploadStaticFiles({
|
|
820
820
|
sourceDir,
|
|
821
821
|
bucket: infraResult.bucket,
|
|
@@ -835,7 +835,7 @@ async function deployStaticSiteWithExternalDnsFull(config) {
|
|
|
835
835
|
}
|
|
836
836
|
if (infraResult.distributionId && uploadResult.uploaded > 0) {
|
|
837
837
|
onProgress?.("invalidate", "Invalidating CloudFront cache...");
|
|
838
|
-
const { invalidateCache } = await import("./chunk-
|
|
838
|
+
const { invalidateCache } = await import("./chunk-s9c2x5jv.js");
|
|
839
839
|
await invalidateCache(infraResult.distributionId);
|
|
840
840
|
}
|
|
841
841
|
onProgress?.("complete", "Deployment complete!");
|
|
@@ -306,90 +306,6 @@ class PorkbunProvider {
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
// src/dns/mail-records.ts
|
|
310
|
-
function buildSpfValue(options) {
|
|
311
|
-
const mechanisms = ["v=spf1"];
|
|
312
|
-
if (options.ip)
|
|
313
|
-
mechanisms.push(`ip4:${options.ip}`);
|
|
314
|
-
for (const include of options.spfIncludes || []) {
|
|
315
|
-
mechanisms.push(include.startsWith("include:") ? include : `include:${include}`);
|
|
316
|
-
}
|
|
317
|
-
mechanisms.push("~all");
|
|
318
|
-
return mechanisms.join(" ");
|
|
319
|
-
}
|
|
320
|
-
function normalizeDkimKey(key) {
|
|
321
|
-
return String(key || "").replace(/-----(?:BEGIN|END)[^-]*-----/g, "").replace(/\s+/g, "");
|
|
322
|
-
}
|
|
323
|
-
function buildDkimValue(publicKey) {
|
|
324
|
-
return `v=DKIM1; k=rsa; p=${normalizeDkimKey(publicKey)}`;
|
|
325
|
-
}
|
|
326
|
-
function buildDmarcValue(options) {
|
|
327
|
-
const parts = [`v=DMARC1`, `p=${options.dmarcPolicy || "none"}`];
|
|
328
|
-
if (options.dmarcReportTo)
|
|
329
|
-
parts.push(`rua=mailto:${options.dmarcReportTo}`);
|
|
330
|
-
return `${parts.join("; ")};`;
|
|
331
|
-
}
|
|
332
|
-
function buildMailDnsRecords(options) {
|
|
333
|
-
if (!options.domain)
|
|
334
|
-
throw new Error("A domain is required to build mail DNS records.");
|
|
335
|
-
if (!options.mailHost)
|
|
336
|
-
throw new Error("A mail host is required to build mail DNS records.");
|
|
337
|
-
const ttl = options.ttl ?? 600;
|
|
338
|
-
const selector = options.dkimSelector || "default";
|
|
339
|
-
const records = [
|
|
340
|
-
{
|
|
341
|
-
name: "@",
|
|
342
|
-
type: "MX",
|
|
343
|
-
content: options.mailHost,
|
|
344
|
-
priority: options.mxPriority ?? 10,
|
|
345
|
-
ttl
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
name: "@",
|
|
349
|
-
type: "TXT",
|
|
350
|
-
content: buildSpfValue(options),
|
|
351
|
-
ttl
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
name: "_dmarc",
|
|
355
|
-
type: "TXT",
|
|
356
|
-
content: buildDmarcValue(options),
|
|
357
|
-
ttl
|
|
358
|
-
}
|
|
359
|
-
];
|
|
360
|
-
if (normalizeDkimKey(options.dkimPublicKey || "")) {
|
|
361
|
-
records.push({
|
|
362
|
-
name: `${selector}._domainkey`,
|
|
363
|
-
type: "TXT",
|
|
364
|
-
content: buildDkimValue(options.dkimPublicKey),
|
|
365
|
-
ttl
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
return records;
|
|
369
|
-
}
|
|
370
|
-
async function syncMailDns(provider, options) {
|
|
371
|
-
const records = buildMailDnsRecords(options);
|
|
372
|
-
const applied = [];
|
|
373
|
-
for (const record of records) {
|
|
374
|
-
try {
|
|
375
|
-
const result = await provider.upsertRecord(options.domain, record);
|
|
376
|
-
applied.push({
|
|
377
|
-
name: record.name,
|
|
378
|
-
type: record.type,
|
|
379
|
-
ok: Boolean(result.success),
|
|
380
|
-
message: result.message
|
|
381
|
-
});
|
|
382
|
-
} catch (error) {
|
|
383
|
-
applied.push({
|
|
384
|
-
name: record.name,
|
|
385
|
-
type: record.type,
|
|
386
|
-
ok: false,
|
|
387
|
-
message: error instanceof Error ? error.message : String(error)
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
return { domain: options.domain, applied, ok: applied.every((entry) => entry.ok) };
|
|
392
|
-
}
|
|
393
309
|
// src/dns/godaddy.ts
|
|
394
310
|
var GODADDY_API_URL = "https://api.godaddy.com";
|
|
395
311
|
var GODADDY_OTE_API_URL = "https://api.ote-godaddy.com";
|
|
@@ -1966,4 +1882,4 @@ class DnsProviderFactory {
|
|
|
1966
1882
|
}
|
|
1967
1883
|
var dnsProviders = new DnsProviderFactory;
|
|
1968
1884
|
|
|
1969
|
-
export { PorkbunProvider,
|
|
1885
|
+
export { PorkbunProvider, GoDaddyProvider, CloudflareProvider, Route53Provider, UnifiedDnsValidator, createPorkbunValidator, createGoDaddyValidator, createRoute53Validator, createDnsProvider, detectDnsProvider, DnsProviderFactory, dnsProviders, ACMClient, ACMDnsValidator };
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
generateStaticSiteTemplate,
|
|
6
6
|
invalidateCache,
|
|
7
7
|
uploadStaticFiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ef2dwfrg.js";
|
|
9
9
|
import"./chunk-01d86gt1.js";
|
|
10
|
-
import"./chunk-
|
|
10
|
+
import"./chunk-gttvakpv.js";
|
|
11
11
|
import"./chunk-4cjrg98a.js";
|
|
12
12
|
import"./chunk-32e7ya18.js";
|
|
13
13
|
import"./chunk-wj3s95p9.js";
|
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-vkd2y0fs.js";
|
|
34
34
|
import {
|
|
35
35
|
deleteStaticSite,
|
|
36
36
|
deployStaticSite,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
generateStaticSiteTemplate,
|
|
42
42
|
invalidateCache,
|
|
43
43
|
uploadStaticFiles
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-ef2dwfrg.js";
|
|
45
45
|
import {
|
|
46
46
|
buildAndPushServerlessImage
|
|
47
47
|
} from "../chunk-3g4r09dd.js";
|
|
@@ -49,7 +49,7 @@ import"../chunk-ybcz6sxc.js";
|
|
|
49
49
|
import"../chunk-01d86gt1.js";
|
|
50
50
|
import"../chunk-50jpda9q.js";
|
|
51
51
|
import"../chunk-he9a874b.js";
|
|
52
|
-
import"../chunk-
|
|
52
|
+
import"../chunk-gttvakpv.js";
|
|
53
53
|
import {
|
|
54
54
|
IPV6_EXCLUDED_HOST_LABELS,
|
|
55
55
|
MANAGEMENT_DASHBOARD_SITE,
|
package/dist/dns/index.d.ts
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export * from './types';
|
|
6
6
|
export { PorkbunProvider } from './porkbun';
|
|
7
|
-
export { buildDkimValue, buildDmarcValue, buildMailDnsRecords, buildSpfValue, normalizeDkimKey, syncMailDns, } from './mail-records';
|
|
8
|
-
export type { MailDnsOptions, MailDnsSyncResult } from './mail-records';
|
|
9
7
|
export { GoDaddyProvider } from './godaddy';
|
|
10
8
|
export { CloudflareProvider } from './cloudflare';
|
|
11
9
|
export { Route53Provider } from './route53-adapter';
|
package/dist/dns/index.js
CHANGED
|
@@ -5,35 +5,23 @@ import {
|
|
|
5
5
|
PorkbunProvider,
|
|
6
6
|
Route53Provider,
|
|
7
7
|
UnifiedDnsValidator,
|
|
8
|
-
buildDkimValue,
|
|
9
|
-
buildDmarcValue,
|
|
10
|
-
buildMailDnsRecords,
|
|
11
|
-
buildSpfValue,
|
|
12
8
|
createDnsProvider,
|
|
13
9
|
createGoDaddyValidator,
|
|
14
10
|
createPorkbunValidator,
|
|
15
11
|
createRoute53Validator,
|
|
16
12
|
detectDnsProvider,
|
|
17
|
-
dnsProviders
|
|
18
|
-
|
|
19
|
-
syncMailDns
|
|
20
|
-
} from "../chunk-6hymgy61.js";
|
|
13
|
+
dnsProviders
|
|
14
|
+
} from "../chunk-gttvakpv.js";
|
|
21
15
|
import"../chunk-32e7ya18.js";
|
|
22
16
|
import"../chunk-zqtpg06c.js";
|
|
23
17
|
import"../chunk-v0bahtg2.js";
|
|
24
18
|
export {
|
|
25
|
-
syncMailDns,
|
|
26
|
-
normalizeDkimKey,
|
|
27
19
|
dnsProviders,
|
|
28
20
|
detectDnsProvider,
|
|
29
21
|
createRoute53Validator,
|
|
30
22
|
createPorkbunValidator,
|
|
31
23
|
createGoDaddyValidator,
|
|
32
24
|
createDnsProvider,
|
|
33
|
-
buildSpfValue,
|
|
34
|
-
buildMailDnsRecords,
|
|
35
|
-
buildDmarcValue,
|
|
36
|
-
buildDkimValue,
|
|
37
25
|
UnifiedDnsValidator,
|
|
38
26
|
Route53Provider,
|
|
39
27
|
PorkbunProvider,
|
package/dist/index.d.ts
CHANGED
|
@@ -37,8 +37,7 @@ export { createCloudDriver, CloudDriverFactory, cloudDrivers, AwsDriver, Hetzner
|
|
|
37
37
|
export type { CreateCloudDriverOptions } from './drivers/factory';
|
|
38
38
|
export { dashboardActions, resolveDashboardAction, sanitizeCloudConfig, startLocalDashboardServer, } from './deploy/local-dashboard-server';
|
|
39
39
|
export type { DashboardAction, LocalDashboardServer, LocalDashboardServerOptions, } from './deploy/local-dashboard-server';
|
|
40
|
-
export { createDnsProvider, detectDnsProvider, DnsProviderFactory, dnsProviders, PorkbunProvider, GoDaddyProvider, Route53Provider, UnifiedDnsValidator, createPorkbunValidator, createGoDaddyValidator, createRoute53Validator,
|
|
41
|
-
export type { MailDnsOptions, MailDnsSyncResult } from './dns';
|
|
40
|
+
export { createDnsProvider, detectDnsProvider, DnsProviderFactory, dnsProviders, PorkbunProvider, GoDaddyProvider, Route53Provider, UnifiedDnsValidator, createPorkbunValidator, createGoDaddyValidator, createRoute53Validator, } from './dns';
|
|
42
41
|
export * from './source';
|
|
43
42
|
export * from './queue';
|
|
44
43
|
export * from './backups';
|
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-vkd2y0fs.js";
|
|
287
287
|
import {
|
|
288
288
|
deleteStaticSite,
|
|
289
289
|
deployStaticSite,
|
|
@@ -294,7 +294,7 @@ import {
|
|
|
294
294
|
generateStaticSiteTemplate,
|
|
295
295
|
invalidateCache,
|
|
296
296
|
uploadStaticFiles
|
|
297
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-ef2dwfrg.js";
|
|
298
298
|
import {
|
|
299
299
|
buildAndPushServerlessImage
|
|
300
300
|
} from "./chunk-3g4r09dd.js";
|
|
@@ -353,19 +353,13 @@ import {
|
|
|
353
353
|
PorkbunProvider,
|
|
354
354
|
Route53Provider,
|
|
355
355
|
UnifiedDnsValidator,
|
|
356
|
-
buildDkimValue,
|
|
357
|
-
buildDmarcValue,
|
|
358
|
-
buildMailDnsRecords,
|
|
359
|
-
buildSpfValue,
|
|
360
356
|
createDnsProvider,
|
|
361
357
|
createGoDaddyValidator,
|
|
362
358
|
createPorkbunValidator,
|
|
363
359
|
createRoute53Validator,
|
|
364
360
|
detectDnsProvider,
|
|
365
|
-
dnsProviders
|
|
366
|
-
|
|
367
|
-
syncMailDns
|
|
368
|
-
} from "./chunk-6hymgy61.js";
|
|
361
|
+
dnsProviders
|
|
362
|
+
} from "./chunk-gttvakpv.js";
|
|
369
363
|
import {
|
|
370
364
|
AwsDriver,
|
|
371
365
|
CloudDriverFactory,
|
|
@@ -5169,7 +5163,6 @@ export {
|
|
|
5169
5163
|
synchronizeConfiguredConfiguration,
|
|
5170
5164
|
synchronizeComposeVolumes,
|
|
5171
5165
|
syncSourceRepositories,
|
|
5172
|
-
syncMailDns,
|
|
5173
5166
|
suggestRegions,
|
|
5174
5167
|
suggestRegionPairs,
|
|
5175
5168
|
suggestQuotaIncrease,
|
|
@@ -5320,7 +5313,6 @@ export {
|
|
|
5320
5313
|
normalizeScheduleExpression,
|
|
5321
5314
|
normalizeRuntimeStatus,
|
|
5322
5315
|
normalizePublicIpv6,
|
|
5323
|
-
normalizeDkimKey,
|
|
5324
5316
|
nextScheduleRuns,
|
|
5325
5317
|
networkSecurityManager,
|
|
5326
5318
|
needsRenewal,
|
|
@@ -5594,18 +5586,14 @@ export {
|
|
|
5594
5586
|
bytes,
|
|
5595
5587
|
buildStaticSiteDeployScript,
|
|
5596
5588
|
buildSshArgs,
|
|
5597
|
-
buildSpfValue,
|
|
5598
5589
|
buildSiteDeployScript,
|
|
5599
5590
|
buildPhpRuntimeLayerZip,
|
|
5600
5591
|
buildOptimizationManager,
|
|
5601
5592
|
buildNodeRuntimeLayerZip,
|
|
5602
5593
|
buildMediaCdnPlan,
|
|
5603
5594
|
buildManagementDashboardArtifact,
|
|
5604
|
-
buildMailDnsRecords,
|
|
5605
5595
|
buildHostCleanupScript,
|
|
5606
5596
|
buildFunctionEnv,
|
|
5607
|
-
buildDmarcValue,
|
|
5608
|
-
buildDkimValue,
|
|
5609
5597
|
buildComposeShellCommand,
|
|
5610
5598
|
buildComposeScaleCommand,
|
|
5611
5599
|
buildComposeRuntimeCommand,
|