@stacksjs/ts-cloud 0.16.43 → 0.16.44

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/bedrock.d.ts +73 -0
  2. package/dist/aws/index.js +1 -1
  3. package/dist/bin/cli.js +2 -2
  4. package/dist/{chunk-hc140wnm.js → chunk-1w9v8g26.js} +1 -1
  5. package/dist/{chunk-vps4v353.js → chunk-8jsf214f.js} +6 -6
  6. package/dist/{chunk-qztdtcc8.js → chunk-96vc5w8w.js} +3 -3
  7. package/dist/{chunk-nqb7yefs.js → chunk-a102vqez.js} +16 -16
  8. package/dist/{chunk-bj4kvqwz.js → chunk-c5jyzyqw.js} +13 -13
  9. package/dist/{chunk-qbbap3bt.js → chunk-d02jxsxv.js} +1 -1
  10. package/dist/{chunk-2vrv31sk.js → chunk-e4pxs9g6.js} +3 -3
  11. package/dist/{chunk-vd2jqt9w.js → chunk-g8zgpxgz.js} +1 -1
  12. package/dist/{chunk-j6fsxq8q.js → chunk-gp9tkznp.js} +2 -2
  13. package/dist/{chunk-xejwnb6f.js → chunk-hm6pwhne.js} +2 -2
  14. package/dist/{chunk-rqraq71y.js → chunk-j5x0qn7z.js} +5 -5
  15. package/dist/chunk-mqwdq7w1.js +1 -0
  16. package/dist/chunk-qjghqymj.js +1 -0
  17. package/dist/{chunk-qeshf0mh.js → chunk-txwnpxzf.js} +51 -51
  18. package/dist/{chunk-e3evn28t.js → chunk-v3w791ze.js} +15 -15
  19. package/dist/{chunk-13pfck91.js → chunk-vkrgf3sv.js} +1 -1
  20. package/dist/{chunk-my61jkg1.js → chunk-x2pxtfk0.js} +2 -2
  21. package/dist/deploy/index.js +1 -1
  22. package/dist/dns/index.js +1 -1
  23. package/dist/drivers/index.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/operations/index.js +1 -1
  26. package/dist/protection/index.js +1 -1
  27. package/dist/spend/index.js +1 -1
  28. package/dist/ui/404.html +1 -1
  29. package/dist/ui/accept-invitation.html +1 -1
  30. package/dist/ui/access-denied.html +1 -1
  31. package/dist/ui/account/automation.html +5 -5
  32. package/dist/ui/account/security.html +2 -2
  33. package/dist/ui/applications/compose.html +6 -6
  34. package/dist/ui/applications/new.html +2 -2
  35. package/dist/ui/data/backups.html +6 -6
  36. package/dist/ui/data/services.html +6 -6
  37. package/dist/ui/data/volumes.html +6 -6
  38. package/dist/ui/index.html +6 -6
  39. package/dist/ui/infrastructure/topology.html +5 -5
  40. package/dist/ui/integrations.html +1 -1
  41. package/dist/ui/operations/alerts.html +6 -6
  42. package/dist/ui/operations/configuration.html +6 -6
  43. package/dist/ui/operations/jobs.html +5 -5
  44. package/dist/ui/operations/maintenance.html +5 -5
  45. package/dist/ui/operations/observability.html +6 -6
  46. package/dist/ui/operations/previews.html +6 -6
  47. package/dist/ui/operations/queue.html +6 -6
  48. package/dist/ui/operations/regions.html +5 -5
  49. package/dist/ui/operations/releases.html +6 -6
  50. package/dist/ui/operations/spend.html +6 -6
  51. package/dist/ui/operations/workloads.html +6 -6
  52. package/dist/ui/security.html +1 -1
  53. package/dist/ui/server/actions.html +5 -5
  54. package/dist/ui/server/activity.html +2 -2
  55. package/dist/ui/server/capacity.html +5 -5
  56. package/dist/ui/server/database.html +6 -6
  57. package/dist/ui/server/deployments.html +6 -6
  58. package/dist/ui/server/diagnostics.html +2 -2
  59. package/dist/ui/server/firewall.html +6 -6
  60. package/dist/ui/server/fleet.html +6 -6
  61. package/dist/ui/server/logs.html +6 -6
  62. package/dist/ui/server/metrics.html +6 -6
  63. package/dist/ui/server/security.html +2 -2
  64. package/dist/ui/server/services.html +1 -1
  65. package/dist/ui/server/sites.html +6 -6
  66. package/dist/ui/server/ssh-keys.html +6 -6
  67. package/dist/ui/server/team.html +6 -6
  68. package/dist/ui/server/terminal.html +2 -2
  69. package/dist/ui/serverless/alarms.html +6 -6
  70. package/dist/ui/serverless/assets.html +2 -2
  71. package/dist/ui/serverless/cost.html +2 -2
  72. package/dist/ui/serverless/data.html +6 -6
  73. package/dist/ui/serverless/deployments.html +2 -2
  74. package/dist/ui/serverless/firewall.html +1 -1
  75. package/dist/ui/serverless/functions.html +6 -6
  76. package/dist/ui/serverless/logs.html +6 -6
  77. package/dist/ui/serverless/metrics.html +2 -2
  78. package/dist/ui/serverless/queues.html +6 -6
  79. package/dist/ui/serverless/secrets.html +5 -5
  80. package/dist/ui/serverless/traces.html +6 -6
  81. package/dist/ui/serverless.html +5 -5
  82. package/package.json +3 -3
  83. package/dist/chunk-mzg1tnxk.js +0 -1
  84. package/dist/chunk-pahyn8p3.js +0 -1
@@ -1,5 +1,5 @@
1
- import{Do,tn,bl,nn,Oo,_o}from"./chunk-bj4kvqwz.js";import{$e}from"./chunk-varjr6np.js";import{execFileSync as A}from"node:child_process";import{mkdirSync as k,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 S(t,e){return`${r[e]}${t}${r.reset}`}function wn(t){console.log(`${r.green}✓${r.reset} ${t}`)}function eg(t){console.error(`${r.red}✗${r.reset} ${t}`)}function Is(t){console.warn(`${r.yellow}⚠${r.reset} ${t}`)}function B(t){console.log(`${r.blue}ℹ${r.reset} ${t}`)}function w(t){console.log(`${r.cyan}→${r.reset} ${t}`)}function bs(t){console.log(`
1
+ import{No,tn,bl,nn,Lo,$o}from"./chunk-c5jyzyqw.js";import{$e}from"./chunk-varjr6np.js";import{execFileSync as A}from"node:child_process";import{mkdirSync as k,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 S(t,e){return`${r[e]}${t}${r.reset}`}function wn(t){console.log(`${r.green}✓${r.reset} ${t}`)}function eg(t){console.error(`${r.red}✗${r.reset} ${t}`)}function Is(t){console.warn(`${r.yellow}⚠${r.reset} ${t}`)}function B(t){console.log(`${r.blue}ℹ${r.reset} ${t}`)}function w(t){console.log(`${r.cyan}→${r.reset} ${t}`)}function bs(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 tg(t,e="cyan"){let n=t.split(`
4
- `),i=Math.max(...n.map((l)=>l.length)),a="─".repeat(i+2);console.log(S(`┌${a}┐`,e)),n.forEach((l)=>{console.log(S(`│ ${l.padEnd(i)} │`,e))}),console.log(S(`└${a}┘`,e))}function R(t,e){for(let n of e){let i=s(t,n.name);k(j(i),{recursive:!0}),d(i,n.data,n.mode?{mode:n.mode}:void 0)}}async function Ja(t){let{app:e,projectRoot:n,region:i,repository:a}=t,l=e.architecture??"x86_64",P=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");k(f,{recursive:!0});let y,v;if(E){Oo({projectRoot:n,app:e,skipBuild:t.skipBuild,onStep:c}),c("staging application tree");let o=_o(n);R(f,o),R(s(p,"runtime"),nn().map((g)=>({name:g.path,data:g.contents,mode:g.mode})));let I=e.handlers?.http??"public/index.php";y={http:I,queue:e.handlers?.queue??I,cli:e.handlers?.cli??I},v=Do(o.map((g)=>`${g.name}:${g.data.length}`).join("|"))}else{c("bundling application");let o=await tn({projectRoot:n,app:e,skipBuild:t.skipBuild,onStep:c});d(s(f,"index.mjs"),o.bundle),y=o.handlers,v=o.sha256}let C=v.slice(0,16);d(s(p,"Dockerfile"),bl({kind:e.kind??"node",phpVersion:e.phpVersion,architecture:l}));let x=new $e(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}:${C}`;c("docker build"),A("docker",["build","--platform",P,"--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 k(b,{recursive:!0}),d(s(b,"config.json"),JSON.stringify({auths:{[T]:{auth:h.authorizationToken}}})),A("docker",["push",m],{stdio:"inherit",env:{...process.env,DOCKER_CONFIG:b}}),B(`Image: ${m}`),{imageUri:m,tag:C,handlers:y}}finally{L(p,{recursive:!0,force:!0})}}
5
- export{wn,eg,Is,B,w,bs,tg,Ja};
4
+ `),i=Math.max(...n.map((l)=>l.length)),a="─".repeat(i+2);console.log(S(`┌${a}┐`,e)),n.forEach((l)=>{console.log(S(`│ ${l.padEnd(i)} │`,e))}),console.log(S(`└${a}┘`,e))}function R(t,e){for(let n of e){let i=s(t,n.name);k(j(i),{recursive:!0}),d(i,n.data,n.mode?{mode:n.mode}:void 0)}}async function Ya(t){let{app:e,projectRoot:n,region:i,repository:a}=t,l=e.architecture??"x86_64",P=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");k(f,{recursive:!0});let y,v;if(E){Lo({projectRoot:n,app:e,skipBuild:t.skipBuild,onStep:c}),c("staging application tree");let o=$o(n);R(f,o),R(s(p,"runtime"),nn().map((g)=>({name:g.path,data:g.contents,mode:g.mode})));let I=e.handlers?.http??"public/index.php";y={http:I,queue:e.handlers?.queue??I,cli:e.handlers?.cli??I},v=No(o.map((g)=>`${g.name}:${g.data.length}`).join("|"))}else{c("bundling application");let o=await tn({projectRoot:n,app:e,skipBuild:t.skipBuild,onStep:c});d(s(f,"index.mjs"),o.bundle),y=o.handlers,v=o.sha256}let C=v.slice(0,16);d(s(p,"Dockerfile"),bl({kind:e.kind??"node",phpVersion:e.phpVersion,architecture:l}));let x=new $e(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}:${C}`;c("docker build"),A("docker",["build","--platform",P,"--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 k(b,{recursive:!0}),d(s(b,"config.json"),JSON.stringify({auths:{[T]:{auth:h.authorizationToken}}})),A("docker",["push",m],{stdio:"inherit",env:{...process.env,DOCKER_CONFIG:b}}),B(`Image: ${m}`),{imageUri:m,tag:C,handlers:y}}finally{L(p,{recursive:!0,force:!0})}}
5
+ export{wn,eg,Is,B,w,bs,tg,Ya};