@stacksjs/ts-cloud 0.12.0 → 0.12.2

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.
Files changed (71) hide show
  1. package/dist/bin/{chunk-ta7sh0cc.js → chunk-33ct22z0.js} +1 -1
  2. package/dist/bin/{chunk-rv18092e.js → chunk-anx2a852.js} +32 -32
  3. package/dist/bin/{chunk-g6baf9c5.js → chunk-btdq3w81.js} +1 -1
  4. package/dist/bin/cli.js +223 -223
  5. package/dist/bin/dashboard-server.js +1 -1
  6. package/dist/{chunk-b087qsyf.js → chunk-hvwbgcs7.js} +1 -1
  7. package/dist/{chunk-nzqxdkch.js → chunk-kqnpprnh.js} +26 -26
  8. package/dist/deploy/index.js +1 -1
  9. package/dist/drivers/index.js +1 -1
  10. package/dist/drivers/shared/deploy-script.d.ts +46 -0
  11. package/dist/index.js +12 -12
  12. package/dist/pages/cloudflare-pages.d.ts +13 -0
  13. package/dist/ui/404.html +2 -2
  14. package/dist/ui/_stx/{router.fa5bc4dc.js → router.229f89ab.js} +1 -1
  15. package/dist/ui/_stx/runtime.dbee66d1.js +1 -0
  16. package/dist/ui/accept-invitation.html +2 -2
  17. package/dist/ui/access-denied.html +1 -1
  18. package/dist/ui/account/automation.html +6 -6
  19. package/dist/ui/account/security.html +2 -2
  20. package/dist/ui/applications/compose.html +6 -6
  21. package/dist/ui/applications/new.html +2 -2
  22. package/dist/ui/data/backups.html +6 -6
  23. package/dist/ui/data/services.html +6 -6
  24. package/dist/ui/data/volumes.html +6 -6
  25. package/dist/ui/index.html +6 -6
  26. package/dist/ui/infrastructure/topology.html +6 -6
  27. package/dist/ui/integrations.html +2 -2
  28. package/dist/ui/operations/alerts.html +6 -6
  29. package/dist/ui/operations/configuration.html +6 -6
  30. package/dist/ui/operations/jobs.html +6 -6
  31. package/dist/ui/operations/maintenance.html +6 -6
  32. package/dist/ui/operations/observability.html +6 -6
  33. package/dist/ui/operations/previews.html +6 -6
  34. package/dist/ui/operations/queue.html +6 -6
  35. package/dist/ui/operations/regions.html +6 -6
  36. package/dist/ui/operations/releases.html +6 -6
  37. package/dist/ui/operations/spend.html +6 -6
  38. package/dist/ui/operations/workloads.html +6 -6
  39. package/dist/ui/security.html +1 -1
  40. package/dist/ui/server/actions.html +6 -6
  41. package/dist/ui/server/activity.html +2 -2
  42. package/dist/ui/server/capacity.html +6 -6
  43. package/dist/ui/server/database.html +6 -6
  44. package/dist/ui/server/deployments.html +6 -6
  45. package/dist/ui/server/diagnostics.html +2 -2
  46. package/dist/ui/server/firewall.html +6 -6
  47. package/dist/ui/server/fleet.html +6 -6
  48. package/dist/ui/server/logs.html +6 -6
  49. package/dist/ui/server/metrics.html +6 -6
  50. package/dist/ui/server/security.html +2 -2
  51. package/dist/ui/server/services.html +2 -2
  52. package/dist/ui/server/sites.html +6 -6
  53. package/dist/ui/server/ssh-keys.html +6 -6
  54. package/dist/ui/server/team.html +6 -6
  55. package/dist/ui/server/terminal.html +3 -3
  56. package/dist/ui/serverless/alarms.html +6 -6
  57. package/dist/ui/serverless/assets.html +3 -3
  58. package/dist/ui/serverless/cost.html +2 -2
  59. package/dist/ui/serverless/data.html +6 -6
  60. package/dist/ui/serverless/deployments.html +3 -3
  61. package/dist/ui/serverless/firewall.html +2 -2
  62. package/dist/ui/serverless/functions.html +5 -5
  63. package/dist/ui/serverless/logs.html +6 -6
  64. package/dist/ui/serverless/metrics.html +2 -2
  65. package/dist/ui/serverless/queues.html +6 -6
  66. package/dist/ui/serverless/secrets.html +6 -6
  67. package/dist/ui/serverless/traces.html +6 -6
  68. package/dist/ui/serverless.html +6 -6
  69. package/dist/ui-src/src/charts.ts +4904 -21215
  70. package/package.json +6 -6
  71. package/dist/ui/_stx/runtime.c696d17a.js +0 -1
@@ -1 +1 @@
1
- import{Ac as Z,Bc as aa,Cc as ba,Dc as ca,Ec as da,Fc as ea,Gc as fa,Hc as ga,Ic as ha,Jc as ia,Kc as ja,Lc as ka,Mc as la,Nc as ma,Oc as na,ic as y,jc as z,kc as A,lc as B,mc as C,nc as D,oc as E,od as oa,pc as O,pd as pa,qc as P,qd as qa,rc as Q,rd as ra,sc as R,tc as S,uc as T,vc as U,wc as V,xc as W,yc as X,zc as Y}from"../chunk-b087qsyf.js";import{Ad as N,sd as F,td as G,ud as H,vd as I,wd as J,xd as K,yd as L,zd as M}from"../chunk-h42zck7h.js";import{Id as _}from"../chunk-3mgj3hrh.js";import"../chunk-t0xgmhd6.js";import"../chunk-m8fs0233.js";import"../chunk-by2bwzk6.js";import"../chunk-73ztr55z.js";import"../chunk-xcj8zfmg.js";import"../chunk-tz9myq9a.js";import"../chunk-y4xkj2f1.js";import{Gh as s,Hh as t,Ih as u,Jh as v,Kh as w,Lh as x,Uf as a,Vf as b,Wf as c,Xf as d,Yf as e,Zf as f,_f as g,jg as h,kg as i,lg as j,mg as k,ng as l,og as m,pg as n,qg as o,rg as p,sg as q,tg as r}from"../chunk-nzqxdkch.js";import"../chunk-aj025v2s.js";import"../chunk-wavjkdb8.js";import"../chunk-152he7m3.js";import"../chunk-mz0dk78z.js";import"../chunk-86ss83s2.js";import"../chunk-hn40z11p.js";import"../chunk-x3hay61c.js";import"../chunk-jm5mg890.js";import"../chunk-13qjvbqh.js";export{d as IPV6_EXCLUDED_HOST_LABELS,s as MANAGEMENT_DASHBOARD_SITE,Z as buildAndPushContainerImage,_ as buildAndPushServerlessImage,ba as buildFunctionEnv,x as buildManagementDashboardArtifact,ha as buildServerTopology,ia as buildServerlessTopology,ja as buildTopology,na as collectEgressMetrics,a as collectServerDnsDomains,Y as createContainerImageDependencies,T as createExistingStaticFullStackDependencies,P as createStaticApiOriginDependencies,pa as dashboardActions,t as dashboardCredentialsFile,C as dashboardPageRoutes,M as deleteStaticSite,V as deployExistingStaticFullStack,ca as deployServerlessApp,r as deployShipsFiles,O as deploySite,Q as deployStaticApiOrigin,J as deployStaticSite,N as deployStaticSiteFull,G as deployStaticSiteWithExternalDns,H as deployStaticSiteWithExternalDnsFull,la as egressReportMetrics,y as ensureDashboardActor,w as ensureManagementDashboard,W as estimateExistingStaticFullStackMonthlyCost,S as estimateStaticApiOriginMonthlyCost,ma as fetchEgressReport,U as generateExistingStaticFullStackTemplate,F as generateExternalDnsStaticSiteTemplate,I as generateStaticSiteTemplate,n as hasComputeConfigured,k as hasProxyUpstream,X as hashContainerContext,e as hostAcceptsIpv6,aa as infraEnvFromOutputs,z as initializeDashboardControlPlane,L as invalidateCache,i as isPhpSite,c as normalizePublicIpv6,f as reconcileAddressRecords,da as redeployServerlessApp,b as removeStaleServerAddressRecords,qa as resolveDashboardAction,u as resolveDashboardAuth,ka as resolveDashboardData,D as resolveLegacyDashboardRoute,j as resolveProxyUpstreams,l as resolveSiteDeployTarget,m as resolveSiteKind,v as resolveUiSource,ea as rollbackServerlessApp,E as routesForDashboard,ga as runRemoteCommand,oa as sanitizeCloudConfig,fa as setMaintenance,p as shipsARelease,q as shipsToBucket,h as siteInstallBase,ra as startLocalDashboardServer,A as synchronizeDashboardUsers,B as trackDashboardOperation,K as uploadStaticFiles,o as validateDeploymentConfig,g as verifyAddressRecord,R as verifyStaticApiOrigin};
1
+ import{Ac as Z,Bc as aa,Cc as ba,Dc as ca,Ec as da,Fc as ea,Gc as fa,Hc as ga,Ic as ha,Jc as ia,Kc as ja,Lc as ka,Mc as la,Nc as ma,Oc as na,ic as y,jc as z,kc as A,lc as B,mc as C,nc as D,oc as E,od as oa,pc as O,pd as pa,qc as P,qd as qa,rc as Q,rd as ra,sc as R,tc as S,uc as T,vc as U,wc as V,xc as W,yc as X,zc as Y}from"../chunk-hvwbgcs7.js";import{Ad as N,sd as F,td as G,ud as H,vd as I,wd as J,xd as K,yd as L,zd as M}from"../chunk-h42zck7h.js";import{Id as _}from"../chunk-3mgj3hrh.js";import"../chunk-t0xgmhd6.js";import"../chunk-m8fs0233.js";import"../chunk-by2bwzk6.js";import"../chunk-73ztr55z.js";import"../chunk-xcj8zfmg.js";import"../chunk-tz9myq9a.js";import"../chunk-y4xkj2f1.js";import{Gh as s,Hh as t,Ih as u,Jh as v,Kh as w,Lh as x,Uf as a,Vf as b,Wf as c,Xf as d,Yf as e,Zf as f,_f as g,jg as h,kg as i,lg as j,mg as k,ng as l,og as m,pg as n,qg as o,rg as p,sg as q,tg as r}from"../chunk-kqnpprnh.js";import"../chunk-aj025v2s.js";import"../chunk-wavjkdb8.js";import"../chunk-152he7m3.js";import"../chunk-mz0dk78z.js";import"../chunk-86ss83s2.js";import"../chunk-hn40z11p.js";import"../chunk-x3hay61c.js";import"../chunk-jm5mg890.js";import"../chunk-13qjvbqh.js";export{d as IPV6_EXCLUDED_HOST_LABELS,s as MANAGEMENT_DASHBOARD_SITE,Z as buildAndPushContainerImage,_ as buildAndPushServerlessImage,ba as buildFunctionEnv,x as buildManagementDashboardArtifact,ha as buildServerTopology,ia as buildServerlessTopology,ja as buildTopology,na as collectEgressMetrics,a as collectServerDnsDomains,Y as createContainerImageDependencies,T as createExistingStaticFullStackDependencies,P as createStaticApiOriginDependencies,pa as dashboardActions,t as dashboardCredentialsFile,C as dashboardPageRoutes,M as deleteStaticSite,V as deployExistingStaticFullStack,ca as deployServerlessApp,r as deployShipsFiles,O as deploySite,Q as deployStaticApiOrigin,J as deployStaticSite,N as deployStaticSiteFull,G as deployStaticSiteWithExternalDns,H as deployStaticSiteWithExternalDnsFull,la as egressReportMetrics,y as ensureDashboardActor,w as ensureManagementDashboard,W as estimateExistingStaticFullStackMonthlyCost,S as estimateStaticApiOriginMonthlyCost,ma as fetchEgressReport,U as generateExistingStaticFullStackTemplate,F as generateExternalDnsStaticSiteTemplate,I as generateStaticSiteTemplate,n as hasComputeConfigured,k as hasProxyUpstream,X as hashContainerContext,e as hostAcceptsIpv6,aa as infraEnvFromOutputs,z as initializeDashboardControlPlane,L as invalidateCache,i as isPhpSite,c as normalizePublicIpv6,f as reconcileAddressRecords,da as redeployServerlessApp,b as removeStaleServerAddressRecords,qa as resolveDashboardAction,u as resolveDashboardAuth,ka as resolveDashboardData,D as resolveLegacyDashboardRoute,j as resolveProxyUpstreams,l as resolveSiteDeployTarget,m as resolveSiteKind,v as resolveUiSource,ea as rollbackServerlessApp,E as routesForDashboard,ga as runRemoteCommand,oa as sanitizeCloudConfig,fa as setMaintenance,p as shipsARelease,q as shipsToBucket,h as siteInstallBase,ra as startLocalDashboardServer,A as synchronizeDashboardUsers,B as trackDashboardOperation,K as uploadStaticFiles,o as validateDeploymentConfig,g as verifyAddressRecord,R as verifyStaticApiOrigin};
@@ -1 +1 @@
1
- import{$g as G,Ag as g,Ah as ea,Bg as h,Bh as fa,Cg as i,Ch as ga,Dg as j,Dh as ha,Eg as k,Eh as ia,Fg as l,Fh as ja,Gg as m,Hg as n,Ig as o,Kg as p,Lg as q,Mg as r,Ng as s,Nh as ka,Og as t,Oh as la,Pg as u,Ph as ma,Qg as v,Qh as na,Rg as w,Rh as oa,Sg as x,Sh as pa,Tg as y,Th as qa,Ug as z,Uh as ra,Vg as A,Wg as B,Xg as C,Yg as D,Zg as E,_g as F,ah as H,bh as I,ch as J,dh as K,eh as L,fh as M,gh as N,hh as O,ih as P,jh as Q,kh as R,lh as S,mh as T,nh as U,oh as V,ph as W,qh as X,rh as Y,sh as Z,th as _,ug as a,uh as aa,vg as b,vh as ba,wg as c,wh as ca,xg as d,yg as e,zg as f,zh as da}from"../chunk-nzqxdkch.js";import"../chunk-aj025v2s.js";import"../chunk-wavjkdb8.js";import"../chunk-152he7m3.js";import"../chunk-mz0dk78z.js";import"../chunk-hn40z11p.js";import"../chunk-x3hay61c.js";import"../chunk-jm5mg890.js";import"../chunk-13qjvbqh.js";export{ba as AwsBoxProvisioner,o as AwsDriver,x as CloudDriverFactory,a as DEFAULT_RPX_CERTS_DIR,aa as HetznerBoxProvisioner,p as HetznerClient,t as HetznerDriver,u as LocalBoxDriver,pa as MANAGED_CACHE_POLICY_DISABLED,oa as MANAGED_CACHE_POLICY_OPTIMIZED,qa as MANAGED_ORIGIN_REQUEST_POLICY_ALL_VIEWER,i as RPX_DIR,j as RPX_LAUNCHER_PATH,k as RPX_SERVICE_NAME,Z as UBUNTU_2404_AMI_PARAM,U as acquireResizeLock,N as applyHetznerHostOptimization,ha as buildAwsArtifactFetch,_ as buildBoxUserData,ra as buildCloudFrontOriginConfig,M as buildHetznerHostOptimizationScript,ja as buildHostCleanupScript,ia as buildLocalArtifactFetch,f as buildRpxConfig,m as buildRpxFragmentRefreshScript,g as buildRpxLbConfig,l as buildRpxProvisionScript,ea as buildSiteDeployScript,C as buildSshArgs,fa as buildStaticSiteDeployScript,y as cloudDrivers,O as collectHetznerHostOptimizationReport,I as collectHetznerResizeManifest,ca as createBoxProvisioner,w as createCloudDriver,la as deployAllComputeSites,ka as deploySiteRelease,e as deriveRouteId,W as ensureFirewall,X as ensureServer,V as ensureSshKey,B as executeHetznerServerResize,c as gatewayHostnames,n as generateUbuntuAppCloudInit,b as hasAutoWwwVariant,v as isBoxMode,A as isHetznerCapacityError,d as normalizeRoutePath,r as normalizeSshPublicKey,z as planHetznerServerResize,J as prepareHetznerResize,S as readResizeCheckpoint,ga as releaseTarballTmpPath,ma as reloadRpxGateway,h as renderRpxLauncher,na as renewRpxCertificates,Q as resizeCheckpointPath,R as resizeLockPath,da as resolveExecStart,q as resolveHetznerApiToken,L as resolveHetznerHostOptimizationPlan,F as scpUpload,Y as serverPublicIpv4,D as sshExec,E as sshExecOrThrow,P as verifyHetznerHostOptimization,K as verifyHetznerResize,H as waitForCloudInit,G as waitForSsh,s as wrapCloudInitUserData,T as writeResizeCheckpoint};
1
+ import{$g as G,Ag as g,Ah as ea,Bg as h,Bh as fa,Cg as i,Ch as ga,Dg as j,Dh as ha,Eg as k,Eh as ia,Fg as l,Fh as ja,Gg as m,Hg as n,Ig as o,Kg as p,Lg as q,Mg as r,Ng as s,Nh as ka,Og as t,Oh as la,Pg as u,Ph as ma,Qg as v,Qh as na,Rg as w,Rh as oa,Sg as x,Sh as pa,Tg as y,Th as qa,Ug as z,Uh as ra,Vg as A,Wg as B,Xg as C,Yg as D,Zg as E,_g as F,ah as H,bh as I,ch as J,dh as K,eh as L,fh as M,gh as N,hh as O,ih as P,jh as Q,kh as R,lh as S,mh as T,nh as U,oh as V,ph as W,qh as X,rh as Y,sh as Z,th as _,ug as a,uh as aa,vg as b,vh as ba,wg as c,wh as ca,xg as d,yg as e,zg as f,zh as da}from"../chunk-kqnpprnh.js";import"../chunk-aj025v2s.js";import"../chunk-wavjkdb8.js";import"../chunk-152he7m3.js";import"../chunk-mz0dk78z.js";import"../chunk-hn40z11p.js";import"../chunk-x3hay61c.js";import"../chunk-jm5mg890.js";import"../chunk-13qjvbqh.js";export{ba as AwsBoxProvisioner,o as AwsDriver,x as CloudDriverFactory,a as DEFAULT_RPX_CERTS_DIR,aa as HetznerBoxProvisioner,p as HetznerClient,t as HetznerDriver,u as LocalBoxDriver,pa as MANAGED_CACHE_POLICY_DISABLED,oa as MANAGED_CACHE_POLICY_OPTIMIZED,qa as MANAGED_ORIGIN_REQUEST_POLICY_ALL_VIEWER,i as RPX_DIR,j as RPX_LAUNCHER_PATH,k as RPX_SERVICE_NAME,Z as UBUNTU_2404_AMI_PARAM,U as acquireResizeLock,N as applyHetznerHostOptimization,ha as buildAwsArtifactFetch,_ as buildBoxUserData,ra as buildCloudFrontOriginConfig,M as buildHetznerHostOptimizationScript,ja as buildHostCleanupScript,ia as buildLocalArtifactFetch,f as buildRpxConfig,m as buildRpxFragmentRefreshScript,g as buildRpxLbConfig,l as buildRpxProvisionScript,ea as buildSiteDeployScript,C as buildSshArgs,fa as buildStaticSiteDeployScript,y as cloudDrivers,O as collectHetznerHostOptimizationReport,I as collectHetznerResizeManifest,ca as createBoxProvisioner,w as createCloudDriver,la as deployAllComputeSites,ka as deploySiteRelease,e as deriveRouteId,W as ensureFirewall,X as ensureServer,V as ensureSshKey,B as executeHetznerServerResize,c as gatewayHostnames,n as generateUbuntuAppCloudInit,b as hasAutoWwwVariant,v as isBoxMode,A as isHetznerCapacityError,d as normalizeRoutePath,r as normalizeSshPublicKey,z as planHetznerServerResize,J as prepareHetznerResize,S as readResizeCheckpoint,ga as releaseTarballTmpPath,ma as reloadRpxGateway,h as renderRpxLauncher,na as renewRpxCertificates,Q as resizeCheckpointPath,R as resizeLockPath,da as resolveExecStart,q as resolveHetznerApiToken,L as resolveHetznerHostOptimizationPlan,F as scpUpload,Y as serverPublicIpv4,D as sshExec,E as sshExecOrThrow,P as verifyHetznerHostOptimization,K as verifyHetznerResize,H as waitForCloudInit,G as waitForSsh,s as wrapCloudInitUserData,T as writeResizeCheckpoint};
@@ -31,6 +31,52 @@ export declare function resolveExecStart(start: string, runtime: 'bun' | 'node'
31
31
  * single slow moment cannot bounce a healthy service; the counter resets on the
32
32
  * first good response. flock keeps two ticks from overlapping.
33
33
  */
34
+ /**
35
+ * Stop the implicit per-template slice from silently capping the service.
36
+ *
37
+ * systemd puts an instantiated unit into a slice derived from its template
38
+ * name: `acme-web@sha.service` lands in `system-acme\x2dweb.slice`, with no
39
+ * `Slice=` anywhere in the unit and nothing in this file asking for it. The
40
+ * memory ceilings that ARE in this file go on the service. Nothing ever wrote
41
+ * to the slice, so whatever it happened to be holding was never reconciled.
42
+ *
43
+ * Two ways that bites, and both were observed on one shared box:
44
+ *
45
+ * 1. **Stale values outlive the config that set them.** A limit put on the
46
+ * slice once - by hand during an incident, or by an older release of this
47
+ * tool - stays there forever. The kernel enforces the MINIMUM down the
48
+ * hierarchy, so a slice holding 512M silently caps a service whose unit
49
+ * says 2G. Four tenants on that box were pinned that way, each reading
50
+ * `MemoryHigh=2G` in its own unit while actually living under 512M, and
51
+ * nothing in any repo said so.
52
+ *
53
+ * 2. **The cutover overlap doubles the tenant's footprint.** The whole point
54
+ * of the templated layout is that the old and new instances run at once on
55
+ * a SO_REUSEPORT socket. They share this slice. So a slice limit equal to
56
+ * the per-instance limit is guaranteed to be breached by every successful
57
+ * deploy - and a cgroup over `memory.high` is throttled in
58
+ * `mem_cgroup_handle_over_high`, which is uninterruptible sleep. A process
59
+ * there answers no requests AND no SIGTERM, so systemd waits out
60
+ * `TimeoutStopSec` while the replacement starts into the same over-budget
61
+ * slice and wedges in turn. That is an outage that repeats on every deploy
62
+ * and needs a SIGKILL by hand to clear.
63
+ *
64
+ * So the slice is reset to unlimited on every deploy and the service keeps the
65
+ * only ceiling. That is the honest arrangement: `memoryHigh` in config means a
66
+ * bound on one instance, one authority, visible in the repo. It also makes the
67
+ * fix self-healing - a box carrying stale slice caps is corrected by its next
68
+ * deploy rather than needing someone to find them.
69
+ *
70
+ * The slice name is read back from systemd rather than derived here, because
71
+ * deriving it means reimplementing systemd's escaping (`-` becomes `\x2d`)
72
+ * and being wrong about a name is how you reset the wrong cgroup. Units that
73
+ * are not templated report `system.slice`, which is shared with every other
74
+ * service on the box and is skipped explicitly.
75
+ *
76
+ * Both stores are written: a `--runtime` property in /run outranks the
77
+ * persistent one in /etc, so setting only one leaves the other free to win.
78
+ */
79
+ export declare function buildSliceReconcile(instance: string): string[];
34
80
  export declare function buildLivenessUnits(options: {
35
81
  unitBase: string;
36
82
  /** systemd unit to restart. A `<base>@*.service` glob resolves at run time. */