@stacksjs/ts-cloud 0.16.1 → 0.16.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 (84) hide show
  1. package/dist/aws/index.js +1 -1
  2. package/dist/bin/{chunk-ghbd1dcz.js → chunk-35p4sfb5.js} +1 -1
  3. package/dist/bin/{chunk-fae1s9p5.js → chunk-8595qcv0.js} +1 -1
  4. package/dist/bin/{chunk-8qmc6yvq.js → chunk-fqajjdy7.js} +23 -23
  5. package/dist/bin/cli.js +4 -4
  6. package/dist/bin/dashboard-server.js +1 -1
  7. package/dist/{chunk-azcvwr5m.js → chunk-11s59686.js} +2 -2
  8. package/dist/{chunk-etmbw4er.js → chunk-aszeyg2w.js} +2 -2
  9. package/dist/{chunk-xacvkpf8.js → chunk-bvspqd2m.js} +1 -1
  10. package/dist/{chunk-b9pm7mbd.js → chunk-c3pvfcme.js} +13 -13
  11. package/dist/{chunk-f9pzjzye.js → chunk-f0t7y458.js} +2 -2
  12. package/dist/{chunk-tg6yasej.js → chunk-f27a8et2.js} +1 -1
  13. package/dist/{chunk-dky93h4d.js → chunk-fgww8ya2.js} +1 -1
  14. package/dist/chunk-gk5ehe62.js +1 -0
  15. package/dist/{chunk-bkv2p4hp.js → chunk-hhy358y8.js} +2 -2
  16. package/dist/{chunk-jnt7ab86.js → chunk-nnfdz28e.js} +2 -2
  17. package/dist/{chunk-d51q92t7.js → chunk-qzbmm0f6.js} +42 -42
  18. package/dist/{chunk-cwjskpj4.js → chunk-r5pjnw74.js} +2 -2
  19. package/dist/{chunk-epqpf6jd.js → chunk-scy8mzqk.js} +1 -1
  20. package/dist/{chunk-dp93dqcr.js → chunk-ttgff76x.js} +38 -38
  21. package/dist/{chunk-a0d0h33y.js → chunk-yqfkq6q7.js} +1 -1
  22. package/dist/deploy/index.js +1 -1
  23. package/dist/dns/index.js +1 -1
  24. package/dist/drivers/index.js +1 -1
  25. package/dist/index.js +26 -26
  26. package/dist/operations/index.js +1 -1
  27. package/dist/protection/index.js +1 -1
  28. package/dist/spend/index.js +1 -1
  29. package/dist/ui/404.html +1 -1
  30. package/dist/ui/accept-invitation.html +1 -1
  31. package/dist/ui/access-denied.html +1 -1
  32. package/dist/ui/account/automation.html +5 -5
  33. package/dist/ui/account/security.html +2 -2
  34. package/dist/ui/applications/compose.html +6 -6
  35. package/dist/ui/applications/new.html +2 -2
  36. package/dist/ui/data/backups.html +6 -6
  37. package/dist/ui/data/services.html +5 -5
  38. package/dist/ui/data/volumes.html +5 -5
  39. package/dist/ui/index.html +6 -6
  40. package/dist/ui/infrastructure/topology.html +6 -6
  41. package/dist/ui/integrations.html +1 -1
  42. package/dist/ui/operations/alerts.html +5 -5
  43. package/dist/ui/operations/configuration.html +5 -5
  44. package/dist/ui/operations/jobs.html +5 -5
  45. package/dist/ui/operations/maintenance.html +5 -5
  46. package/dist/ui/operations/observability.html +6 -6
  47. package/dist/ui/operations/previews.html +6 -6
  48. package/dist/ui/operations/queue.html +5 -5
  49. package/dist/ui/operations/regions.html +5 -5
  50. package/dist/ui/operations/releases.html +6 -6
  51. package/dist/ui/operations/spend.html +6 -6
  52. package/dist/ui/operations/workloads.html +5 -5
  53. package/dist/ui/security.html +2 -2
  54. package/dist/ui/server/actions.html +6 -6
  55. package/dist/ui/server/activity.html +2 -2
  56. package/dist/ui/server/capacity.html +6 -6
  57. package/dist/ui/server/database.html +6 -6
  58. package/dist/ui/server/deployments.html +6 -6
  59. package/dist/ui/server/diagnostics.html +2 -2
  60. package/dist/ui/server/firewall.html +5 -5
  61. package/dist/ui/server/fleet.html +6 -6
  62. package/dist/ui/server/logs.html +6 -6
  63. package/dist/ui/server/metrics.html +6 -6
  64. package/dist/ui/server/security.html +2 -2
  65. package/dist/ui/server/services.html +1 -1
  66. package/dist/ui/server/sites.html +5 -5
  67. package/dist/ui/server/ssh-keys.html +6 -6
  68. package/dist/ui/server/team.html +6 -6
  69. package/dist/ui/server/terminal.html +2 -2
  70. package/dist/ui/serverless/alarms.html +6 -6
  71. package/dist/ui/serverless/assets.html +2 -2
  72. package/dist/ui/serverless/cost.html +2 -2
  73. package/dist/ui/serverless/data.html +6 -6
  74. package/dist/ui/serverless/deployments.html +2 -2
  75. package/dist/ui/serverless/firewall.html +2 -2
  76. package/dist/ui/serverless/functions.html +6 -6
  77. package/dist/ui/serverless/logs.html +6 -6
  78. package/dist/ui/serverless/metrics.html +2 -2
  79. package/dist/ui/serverless/queues.html +6 -6
  80. package/dist/ui/serverless/secrets.html +6 -6
  81. package/dist/ui/serverless/traces.html +6 -6
  82. package/dist/ui/serverless.html +6 -6
  83. package/package.json +3 -3
  84. package/dist/chunk-h1anhx3y.js +0 -1
@@ -1,5 +1,5 @@
1
- import{no,Mr,Sd,Ci,lo,uo}from"./chunk-b9pm7mbd.js";import{ke}from"./chunk-cwjskpj4.js";import{execFileSync as C}from"node:child_process";import{mkdirSync as S,mkdtempSync as U,rmSync as L,writeFileSync as d}from"node:fs";import{tmpdir as O}from"node:os";import{dirname as j,join as s}from"node:path";var r={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m"};function I(t,e){return`${r[e]}${t}${r.reset}`}function on(t){console.log(`${r.green}✓${r.reset} ${t}`)}function Kl(t){console.error(`${r.red}✗${r.reset} ${t}`)}function Wi(t){console.warn(`${r.yellow}⚠${r.reset} ${t}`)}function P(t){console.log(`${r.blue}ℹ${r.reset} ${t}`)}function v(t){console.log(`${r.cyan}→${r.reset} ${t}`)}function Ji(t){console.log(`
1
+ import{no,Mr,Sd,Ci,lo,uo}from"./chunk-c3pvfcme.js";import{Be}from"./chunk-r5pjnw74.js";import{execFileSync as C}from"node:child_process";import{mkdirSync as S,mkdtempSync as U,rmSync as L,writeFileSync as d}from"node:fs";import{tmpdir as O}from"node:os";import{dirname as j,join as s}from"node:path";var r={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m"};function I(t,e){return`${r[e]}${t}${r.reset}`}function on(t){console.log(`${r.green}✓${r.reset} ${t}`)}function Kl(t){console.error(`${r.red}✗${r.reset} ${t}`)}function Wi(t){console.warn(`${r.yellow}⚠${r.reset} ${t}`)}function P(t){console.log(`${r.blue}ℹ${r.reset} ${t}`)}function v(t){console.log(`${r.cyan}→${r.reset} ${t}`)}function Ji(t){console.log(`
2
2
  ${r.bright}${r.cyan}${t}${r.reset}
3
3
  `)}var F=!!(process.env.CI||process.env.GITHUB_ACTIONS||process.env.BUILDKITE||process.env.CIRCLECI||process.env.GITLAB_CI);function Wl(t,e="cyan"){let n=t.split(`
4
- `),i=Math.max(...n.map((l)=>l.length)),a="─".repeat(i+2);console.log(I(`┌${a}┐`,e)),n.forEach((l)=>{console.log(I(`│ ${l.padEnd(i)} │`,e))}),console.log(I(`└${a}┘`,e))}function A(t,e){for(let n of e){let i=s(t,n.name);S(j(i),{recursive:!0}),d(i,n.data,n.mode?{mode:n.mode}:void 0)}}async function Ta(t){let{app:e,projectRoot:n,region:i,repository:a}=t,l=e.architecture??"x86_64",R=l==="arm64"?"linux/arm64":"linux/amd64",E=e.kind==="php",c=t.onStep??(()=>{}),p=U(s(O(),"tscloud-img-"));try{let f=s(p,"app");S(f,{recursive:!0});let y,w;if(E){lo({projectRoot:n,app:e,skipBuild:t.skipBuild,onStep:c}),c("staging application tree");let o=uo(n);A(f,o),A(s(p,"runtime"),Ci().map((g)=>({name:g.path,data:g.contents,mode:g.mode})));let b=e.handlers?.http??"public/index.php";y={http:b,queue:e.handlers?.queue??b,cli:e.handlers?.cli??b},w=no(o.map((g)=>`${g.name}:${g.data.length}`).join("|"))}else{c("bundling application");let o=await Mr({projectRoot:n,app:e,skipBuild:t.skipBuild,onStep:c});d(s(f,"index.mjs"),o.bundle),y=o.handlers,w=o.sha256}let k=w.slice(0,16);d(s(p,"Dockerfile"),Sd({kind:e.kind??"node",phpVersion:e.phpVersion,architecture:l}));let x=new ke(i),u;try{u=(await x.describeRepositories({repositoryNames:[a]})).repositories?.[0]?.repositoryUri??""}catch{u=""}if(!u)c(`creating ECR repository ${a}`),u=(await x.createRepository({repositoryName:a,imageScanningConfiguration:{scanOnPush:!0}})).repository?.repositoryUri??"";if(!u)throw Error(`could not resolve ECR repository URI for ${a}`);let m=`${u}:${k}`;c("docker build"),C("docker",["build","--platform",R,"--provenance=false","--sbom=false","-t",m,p],{stdio:"inherit"}),c("ecr auth + push");let h=(await x.getAuthorizationToken()).authorizationData?.[0];if(!h?.authorizationToken||!h.proxyEndpoint)throw Error("failed to get an ECR authorization token");let T=h.proxyEndpoint.replace(/^https?:\/\//,""),B=s(p,".docker");return S(B,{recursive:!0}),d(s(B,"config.json"),JSON.stringify({auths:{[T]:{auth:h.authorizationToken}}})),C("docker",["push",m],{stdio:"inherit",env:{...process.env,DOCKER_CONFIG:B}}),P(`Image: ${m}`),{imageUri:m,tag:k,handlers:y}}finally{L(p,{recursive:!0,force:!0})}}
4
+ `),i=Math.max(...n.map((l)=>l.length)),a="─".repeat(i+2);console.log(I(`┌${a}┐`,e)),n.forEach((l)=>{console.log(I(`│ ${l.padEnd(i)} │`,e))}),console.log(I(`└${a}┘`,e))}function A(t,e){for(let n of e){let i=s(t,n.name);S(j(i),{recursive:!0}),d(i,n.data,n.mode?{mode:n.mode}:void 0)}}async function Ta(t){let{app:e,projectRoot:n,region:i,repository:a}=t,l=e.architecture??"x86_64",R=l==="arm64"?"linux/arm64":"linux/amd64",E=e.kind==="php",c=t.onStep??(()=>{}),p=U(s(O(),"tscloud-img-"));try{let f=s(p,"app");S(f,{recursive:!0});let y,w;if(E){lo({projectRoot:n,app:e,skipBuild:t.skipBuild,onStep:c}),c("staging application tree");let o=uo(n);A(f,o),A(s(p,"runtime"),Ci().map((g)=>({name:g.path,data:g.contents,mode:g.mode})));let b=e.handlers?.http??"public/index.php";y={http:b,queue:e.handlers?.queue??b,cli:e.handlers?.cli??b},w=no(o.map((g)=>`${g.name}:${g.data.length}`).join("|"))}else{c("bundling application");let o=await Mr({projectRoot:n,app:e,skipBuild:t.skipBuild,onStep:c});d(s(f,"index.mjs"),o.bundle),y=o.handlers,w=o.sha256}let k=w.slice(0,16);d(s(p,"Dockerfile"),Sd({kind:e.kind??"node",phpVersion:e.phpVersion,architecture:l}));let x=new Be(i),u;try{u=(await x.describeRepositories({repositoryNames:[a]})).repositories?.[0]?.repositoryUri??""}catch{u=""}if(!u)c(`creating ECR repository ${a}`),u=(await x.createRepository({repositoryName:a,imageScanningConfiguration:{scanOnPush:!0}})).repository?.repositoryUri??"";if(!u)throw Error(`could not resolve ECR repository URI for ${a}`);let m=`${u}:${k}`;c("docker build"),C("docker",["build","--platform",R,"--provenance=false","--sbom=false","-t",m,p],{stdio:"inherit"}),c("ecr auth + push");let h=(await x.getAuthorizationToken()).authorizationData?.[0];if(!h?.authorizationToken||!h.proxyEndpoint)throw Error("failed to get an ECR authorization token");let T=h.proxyEndpoint.replace(/^https?:\/\//,""),B=s(p,".docker");return S(B,{recursive:!0}),d(s(B,"config.json"),JSON.stringify({auths:{[T]:{auth:h.authorizationToken}}})),C("docker",["push",m],{stdio:"inherit",env:{...process.env,DOCKER_CONFIG:B}}),P(`Image: ${m}`),{imageUri:m,tag:k,handlers:y}}finally{L(p,{recursive:!0,force:!0})}}
5
5
  export{on,Kl,Wi,P,v,Ji,Wl,Ta};