@stacksjs/ts-cloud 0.16.28 → 0.16.29

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 (191) hide show
  1. package/dist/aws/cloudfront.d.ts +9 -0
  2. package/dist/aws/index.js +1 -1
  3. package/dist/bin/chunk-052sk11z.js +1 -0
  4. package/dist/bin/chunk-0n0jscsr.js +1 -0
  5. package/dist/bin/{chunk-xss6yj73.js → chunk-0sht4yfg.js} +2 -2
  6. package/dist/bin/chunk-10sypz59.js +1 -0
  7. package/dist/bin/{chunk-qx05kccj.js → chunk-1chq0c2k.js} +1 -1
  8. package/dist/bin/chunk-1d4663e1.js +1 -0
  9. package/dist/bin/{chunk-k545r9bk.js → chunk-1wtkv65w.js} +2 -2
  10. package/dist/bin/chunk-223yq2z0.js +1 -0
  11. package/dist/bin/{chunk-494fg5c6.js → chunk-2q64f0df.js} +17 -15
  12. package/dist/bin/{chunk-qfgvvwmb.js → chunk-3ykx59eg.js} +3 -3
  13. package/dist/bin/chunk-4ab2bceq.js +1 -0
  14. package/dist/bin/{chunk-wsedynyb.js → chunk-573red0g.js} +6 -6
  15. package/dist/bin/chunk-5nf3fxgw.js +1 -0
  16. package/dist/bin/{chunk-0hbrkdrc.js → chunk-6hrycgbh.js} +3 -3
  17. package/dist/bin/chunk-6k5g8b1w.js +2 -0
  18. package/dist/bin/{chunk-kbwczaa8.js → chunk-7577ykbj.js} +1 -1
  19. package/dist/bin/{chunk-rfvx641h.js → chunk-8c4fnga8.js} +1 -1
  20. package/dist/bin/{chunk-9464wvf2.js → chunk-8d8tdhtx.js} +5 -5
  21. package/dist/bin/chunk-9jmt42fx.js +1 -0
  22. package/dist/bin/{chunk-c0dh5ccy.js → chunk-9nnfyqme.js} +3 -3
  23. package/dist/bin/{chunk-ffyhp5tk.js → chunk-9p7g25kx.js} +55 -55
  24. package/dist/bin/{chunk-e3tjy3wg.js → chunk-a1kpwbjg.js} +5 -5
  25. package/dist/bin/{chunk-7412q5cz.js → chunk-a3vraghd.js} +2 -2
  26. package/dist/bin/chunk-a8b2a3ab.js +1 -0
  27. package/dist/bin/{chunk-ypsgkj91.js → chunk-a9yp82q5.js} +2 -2
  28. package/dist/bin/{chunk-13htvxgc.js → chunk-bkzt5ntz.js} +1 -1
  29. package/dist/bin/chunk-ckmgwd81.js +1 -0
  30. package/dist/bin/{chunk-66f51kn2.js → chunk-dmyr6etw.js} +2 -2
  31. package/dist/bin/{chunk-st7s9k78.js → chunk-e4p6hwct.js} +5 -5
  32. package/dist/bin/{chunk-az5vvf5d.js → chunk-e6xn8g28.js} +1 -1
  33. package/dist/bin/chunk-ecxchy9q.js +1 -0
  34. package/dist/bin/chunk-ee6ssn26.js +1 -0
  35. package/dist/bin/chunk-g1krw34t.js +1 -0
  36. package/dist/bin/chunk-gcazbfsv.js +1 -0
  37. package/dist/bin/chunk-gg6vwdnn.js +1 -0
  38. package/dist/bin/chunk-gz0gahzh.js +1 -0
  39. package/dist/bin/chunk-hdkxj8p9.js +1 -0
  40. package/dist/bin/chunk-hg60j47r.js +1 -0
  41. package/dist/bin/{chunk-5810132y.js → chunk-j2yy3tth.js} +1 -1
  42. package/dist/bin/{chunk-2857cbf1.js → chunk-j8dkatkk.js} +4 -4
  43. package/dist/bin/chunk-je602ntp.js +1 -0
  44. package/dist/bin/{chunk-817q3s2p.js → chunk-jeg6vw5v.js} +4 -4
  45. package/dist/bin/{chunk-1g8gk1cb.js → chunk-jf8jp6f5.js} +3 -3
  46. package/dist/bin/chunk-jxh78anm.js +1 -0
  47. package/dist/bin/{chunk-8k87zpnp.js → chunk-k8r5zfnf.js} +14 -14
  48. package/dist/bin/{chunk-8npkajnt.js → chunk-k9d81ar0.js} +51 -51
  49. package/dist/bin/{chunk-4a8qt6e8.js → chunk-kne9dmwr.js} +102 -102
  50. package/dist/bin/chunk-mv0t7j76.js +1 -0
  51. package/dist/bin/chunk-p8f1qgz2.js +1 -0
  52. package/dist/bin/chunk-pa106cr4.js +1 -0
  53. package/dist/bin/{chunk-y5e7dmvc.js → chunk-q9tvzcr7.js} +4 -4
  54. package/dist/bin/{chunk-cgyqnbcm.js → chunk-remzfbhd.js} +5 -5
  55. package/dist/bin/chunk-rs50jra0.js +60 -0
  56. package/dist/bin/{chunk-2chec65b.js → chunk-s3mv4z3f.js} +2 -2
  57. package/dist/bin/chunk-w3815pxd.js +1 -0
  58. package/dist/bin/{chunk-s5hq7v1h.js → chunk-xtqx4v3f.js} +1 -1
  59. package/dist/bin/{chunk-kcprsn33.js → chunk-y9cdqk8c.js} +1 -1
  60. package/dist/bin/{chunk-8knkt6sd.js → chunk-yccdr4be.js} +1 -1
  61. package/dist/bin/{chunk-eshss5qy.js → chunk-yqkdyf0w.js} +2 -2
  62. package/dist/bin/{chunk-45v1azhc.js → chunk-yrq5bkxe.js} +1 -1
  63. package/dist/bin/cli.js +83 -83
  64. package/dist/bin/dashboard-server.js +1 -1
  65. package/dist/{chunk-h85wqdvr.js → chunk-10asqy6j.js} +7 -7
  66. package/dist/{chunk-twj83txn.js → chunk-26cq0zjv.js} +4 -4
  67. package/dist/chunk-27hj07fb.js +60 -0
  68. package/dist/{chunk-w23wrsa4.js → chunk-2c8pcbq8.js} +134 -134
  69. package/dist/{chunk-fvgk05df.js → chunk-3byba7sc.js} +25 -23
  70. package/dist/{chunk-6e5j40n9.js → chunk-3harnmd6.js} +2 -2
  71. package/dist/chunk-3kpnn06d.js +1 -0
  72. package/dist/{chunk-b10n1xy5.js → chunk-75bga11p.js} +4 -4
  73. package/dist/{chunk-gvybjt7y.js → chunk-89rs2afj.js} +1 -1
  74. package/dist/{chunk-wyfpz6be.js → chunk-92w1g5d9.js} +1 -1
  75. package/dist/chunk-94tb2msg.js +1 -0
  76. package/dist/{chunk-bx1znp1q.js → chunk-9g8as6sa.js} +2 -2
  77. package/dist/{chunk-49p5cx21.js → chunk-9n0q2cxj.js} +28 -28
  78. package/dist/{chunk-dygr8ewz.js → chunk-b6ar7eqc.js} +3 -3
  79. package/dist/{chunk-9mccwk6f.js → chunk-bzd8zmtg.js} +144 -144
  80. package/dist/chunk-d8wcqgpx.js +1 -0
  81. package/dist/{chunk-ys5318bg.js → chunk-dm4vt53n.js} +2 -2
  82. package/dist/{chunk-q0g0rjn3.js → chunk-f733qy2d.js} +2 -2
  83. package/dist/{chunk-njz7scff.js → chunk-ffxcn7mw.js} +1 -1
  84. package/dist/chunk-gv2m8yyg.js +1 -0
  85. package/dist/{chunk-4ka2s5d8.js → chunk-h3kkh31v.js} +67 -67
  86. package/dist/{chunk-98qx6m9h.js → chunk-m3a4brpj.js} +19 -19
  87. package/dist/{chunk-rr1qjxyj.js → chunk-m5vwh9tb.js} +1 -1
  88. package/dist/{chunk-55yda01s.js → chunk-m93g67j0.js} +4 -4
  89. package/dist/chunk-mqm1hxaw.js +2 -0
  90. package/dist/{chunk-cymsceq6.js → chunk-qjxdhb8x.js} +2 -2
  91. package/dist/{chunk-q70pfhcn.js → chunk-qrs912nk.js} +3 -3
  92. package/dist/{chunk-fjwxfwr3.js → chunk-t3yzfbe7.js} +9 -9
  93. package/dist/chunk-y37887r3.js +1 -0
  94. package/dist/{chunk-qx6nwvgn.js → chunk-yc2rm4v9.js} +1 -1
  95. package/dist/{chunk-qfqh21rq.js → chunk-zesd879q.js} +5 -5
  96. package/dist/deploy/index.js +1 -1
  97. package/dist/dns/index.js +1 -1
  98. package/dist/drivers/index.js +1 -1
  99. package/dist/index.d.ts +1 -1
  100. package/dist/index.js +36 -36
  101. package/dist/operations/index.js +1 -1
  102. package/dist/protection/index.js +1 -1
  103. package/dist/spend/index.js +1 -1
  104. package/dist/ui/404.html +1 -1
  105. package/dist/ui/accept-invitation.html +1 -1
  106. package/dist/ui/access-denied.html +1 -1
  107. package/dist/ui/account/automation.html +6 -6
  108. package/dist/ui/account/security.html +2 -2
  109. package/dist/ui/applications/compose.html +6 -6
  110. package/dist/ui/applications/new.html +1 -1
  111. package/dist/ui/data/backups.html +6 -6
  112. package/dist/ui/data/services.html +6 -6
  113. package/dist/ui/data/volumes.html +6 -6
  114. package/dist/ui/index.html +6 -6
  115. package/dist/ui/infrastructure/topology.html +6 -6
  116. package/dist/ui/integrations.html +1 -1
  117. package/dist/ui/operations/alerts.html +6 -6
  118. package/dist/ui/operations/configuration.html +6 -6
  119. package/dist/ui/operations/jobs.html +5 -5
  120. package/dist/ui/operations/maintenance.html +6 -6
  121. package/dist/ui/operations/observability.html +6 -6
  122. package/dist/ui/operations/previews.html +6 -6
  123. package/dist/ui/operations/queue.html +6 -6
  124. package/dist/ui/operations/regions.html +6 -6
  125. package/dist/ui/operations/releases.html +6 -6
  126. package/dist/ui/operations/spend.html +5 -5
  127. package/dist/ui/operations/workloads.html +6 -6
  128. package/dist/ui/security.html +1 -1
  129. package/dist/ui/server/actions.html +5 -5
  130. package/dist/ui/server/activity.html +1 -1
  131. package/dist/ui/server/capacity.html +5 -5
  132. package/dist/ui/server/database.html +6 -6
  133. package/dist/ui/server/deployments.html +5 -5
  134. package/dist/ui/server/diagnostics.html +2 -2
  135. package/dist/ui/server/firewall.html +6 -6
  136. package/dist/ui/server/fleet.html +6 -6
  137. package/dist/ui/server/logs.html +6 -6
  138. package/dist/ui/server/metrics.html +5 -5
  139. package/dist/ui/server/security.html +2 -2
  140. package/dist/ui/server/services.html +2 -2
  141. package/dist/ui/server/sites.html +6 -6
  142. package/dist/ui/server/ssh-keys.html +6 -6
  143. package/dist/ui/server/team.html +6 -6
  144. package/dist/ui/server/terminal.html +2 -2
  145. package/dist/ui/serverless/alarms.html +5 -5
  146. package/dist/ui/serverless/assets.html +2 -2
  147. package/dist/ui/serverless/cost.html +2 -2
  148. package/dist/ui/serverless/data.html +6 -6
  149. package/dist/ui/serverless/deployments.html +2 -2
  150. package/dist/ui/serverless/firewall.html +2 -2
  151. package/dist/ui/serverless/functions.html +5 -5
  152. package/dist/ui/serverless/logs.html +6 -6
  153. package/dist/ui/serverless/metrics.html +2 -2
  154. package/dist/ui/serverless/queues.html +6 -6
  155. package/dist/ui/serverless/secrets.html +6 -6
  156. package/dist/ui/serverless/traces.html +6 -6
  157. package/dist/ui/serverless.html +5 -5
  158. package/package.json +3 -3
  159. package/dist/bin/chunk-10dnawvx.js +0 -1
  160. package/dist/bin/chunk-2ar52zq0.js +0 -1
  161. package/dist/bin/chunk-4fwbwjjj.js +0 -1
  162. package/dist/bin/chunk-57f4mqzk.js +0 -1
  163. package/dist/bin/chunk-ank4fmbx.js +0 -1
  164. package/dist/bin/chunk-b4p9zknk.js +0 -1
  165. package/dist/bin/chunk-f922vrbs.js +0 -1
  166. package/dist/bin/chunk-hvd87xj9.js +0 -1
  167. package/dist/bin/chunk-jxyt009c.js +0 -1
  168. package/dist/bin/chunk-k0akp8k0.js +0 -1
  169. package/dist/bin/chunk-k6dxgzm6.js +0 -1
  170. package/dist/bin/chunk-ne5zevtf.js +0 -60
  171. package/dist/bin/chunk-qxssaa4s.js +0 -1
  172. package/dist/bin/chunk-s7gk1qx2.js +0 -1
  173. package/dist/bin/chunk-t644w5rw.js +0 -1
  174. package/dist/bin/chunk-tgke0nzb.js +0 -1
  175. package/dist/bin/chunk-twq6s0nd.js +0 -1
  176. package/dist/bin/chunk-vknq0ap2.js +0 -1
  177. package/dist/bin/chunk-x2r1zm2r.js +0 -1
  178. package/dist/bin/chunk-y7n9tcqw.js +0 -1
  179. package/dist/bin/chunk-z5ycwy38.js +0 -2
  180. package/dist/bin/chunk-za9np4pg.js +0 -1
  181. package/dist/bin/chunk-zq02x716.js +0 -1
  182. package/dist/bin/chunk-zqa6jarz.js +0 -1
  183. package/dist/bin/chunk-zrjf1pqy.js +0 -1
  184. package/dist/bin/chunk-zvt7as22.js +0 -1
  185. package/dist/chunk-2p85fnx5.js +0 -1
  186. package/dist/chunk-3q242cqb.js +0 -1
  187. package/dist/chunk-6eqx6gt8.js +0 -60
  188. package/dist/chunk-cykr6zyj.js +0 -1
  189. package/dist/chunk-h5gvh859.js +0 -1
  190. package/dist/chunk-mqscxx2z.js +0 -1
  191. package/dist/chunk-rxs4y74z.js +0 -2
@@ -1,5 +1,5 @@
1
- <!DOCTYPE html><html lang="en" data-theme="dark"><head><meta charset="UTF-8"><meta name="stx-build" content="muu1146thbvpec"><meta name="title" content="stx Project"><meta name="description" content="A website built with stx templating engine"><meta property="og:title" content="stx Project"><meta property="og:description" content="A website built with stx templating engine"><meta property="og:type" content="website"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="stx Project"><meta name="twitter:description" content="A website built with stx templating engine"> <script data-stx-runtime src="/_stx/runtime.dbee66d1.js"></script> <script data-stx-composables src="/_stx/chunk.9fd39d5b.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"><title>ts-cloud · Secrets</title><link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='26' height='26' rx='8' fill='%235a8be0'/%3E%3C/svg%3E"><link rel="preconnect" href="https://fonts.googleapis.com"><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"><link rel="stylesheet" href="/_stx/style.448ab192.css"> <script data-stx-scoped>
2
- function __stx_setup_1791130799258_34() {
1
+ <!DOCTYPE html><html lang="en" data-theme="dark"><head><meta charset="UTF-8"><meta name="stx-build" content="muu1fbhr2jx629"><meta name="title" content="stx Project"><meta name="description" content="A website built with stx templating engine"><meta property="og:title" content="stx Project"><meta property="og:description" content="A website built with stx templating engine"><meta property="og:type" content="website"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="stx Project"><meta name="twitter:description" content="A website built with stx templating engine"> <script data-stx-runtime src="/_stx/runtime.dbee66d1.js"></script> <script data-stx-composables src="/_stx/chunk.9fd39d5b.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"><title>ts-cloud · Secrets</title><link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='26' height='26' rx='8' fill='%235a8be0'/%3E%3C/svg%3E"><link rel="preconnect" href="https://fonts.googleapis.com"><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"><link rel="stylesheet" href="/_stx/style.448ab192.css"> <script data-stx-scoped>
2
+ function __stx_setup_1791131463179_34() {
3
3
  const { batch, computed, configureFetch, defineEmits, defineExpose, definePageMeta, defineProps, defineSlots, defineStore, derived, effect, goBack, goForward, inject, invalidateRoute, isDerived, isSignal, navigate, nextTick, onBeforeMount, onBeforeUnmount, onDestroy, onMount, onMounted, onUnmounted, peek, provide, reactive, ref, registerStoresClient, setRouteParams, state, untrack, useAsync, useClickOutside, useColorMode, useCookie, useCounter, useDark, useDebounce, useDebouncedValue, useEventListener, useFetch, useFocus, useHead, useId, useInterval, useLocalStorage, useMediaQuery, useMutation, useOptimistic, usePreferredContrast, usePreferredDark, usePreferredLight, usePreferredReducedMotion, useQuery, useReactiveProp, useRef, useRoute, useRouteParam, useRouteParams, useScrollLock, useSearchParams, useSeoMeta, useSessionStorage, useSlots, useStore, useThrottle, useTimeout, useToggle, useWebSocket, watch, watchEffect, watchMultiple, withDefaults } = window.stx;
4
4
 
5
5
  var initialSecrets = [{"key":"APP_KEY","source":"acme/production/app-key","updated":"14d ago"},{"key":"DB_PASSWORD","source":"acme/production/db","updated":"14d ago"},{"key":"STRIPE_SECRET","source":"acme/production/stripe","updated":"3d ago"},{"key":"MAIL_PASSWORD","source":"acme/production/mail","updated":"21d ago"}];
@@ -204,9 +204,9 @@ typed = __stxBundle_3cab4dcb7f42["typed"];
204
204
  value = __stxBundle_3cab4dcb7f42["value"];
205
205
  return { askDelete, askOp, busy, canRun, cancelOp, confirmDanger, confirmLabel, confirmTok, confirmVerb, msg, msgOk, opOutput, opShown, pending, pickSource, refresh, requestSetSecret, rows, runOp, secretId, setSecret, typed, value, __stxBundle_3cab4dcb7f42 };
206
206
  }
207
- window.__stx_latestSetup=__stx_setup_1791130799258_34;
208
- if(window.stx)window.stx._latestSetup=__stx_setup_1791130799258_34;
209
- </script> <style data-stx-cloak>[x-cloak]{display:none !important}</style><link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.906ee17c.css"></head><body data-stx="__stx_setup_1791130799258_34"><a data-stx-scope="stx_scope_nav_47" class="skip-link" href="#main-content">Skip to content</a><button class="nav-toggle-button" type="button" aria-label="Open navigation" aria-controls="primary-navigation" aria-expanded="false"><span></span><span></span><span></span></button><button class="nav-scrim" type="button" aria-label="Close navigation"></button><aside class="app-sidebar" id="primary-navigation" aria-label="Primary navigation"><a class="brand" href="/?env=production"><span class="dot"></span><span>ts-cloud</span></a><div class="sidebar-context"><span class="context-label">Project</span><strong>acme</strong></div><div class="environment-picker" aria-label="Environment"><span class="context-label">Environment</span><details><summary class="environment-current production"><span>PROD</span><strong>production</strong></summary></details></div><button class="command-trigger" type="button" aria-keyshortcuts="Meta+K Control+K"><span>Search resources</span><kbd>⌘ K</kbd></button><div class="nav-groups"><section class="nav-group"><h2>Overview</h2><a class="" href="/?env=production">Dashboard</a><a href="/server/activity?env=production">Activity</a></section><section class="nav-group"><h2>Applications</h2><a class="" href="/server/sites?env=production">Services</a><a class="" href="/server/deployments?env=production">Deployments</a><a class="" href="/server/logs?env=production">Logs</a><a class="" href="/integrations?env=production">Git integrations</a><a class="" href="/applications/new?env=production">Create application</a><a class="" href="/applications/compose?env=production">Compose applications</a></section><section class="nav-group"><h2>Operations</h2><a class="" href="/operations/queue?env=production">Deployment queue</a><a class="" href="/operations/previews?env=production">Preview environments</a><a class="" href="/operations/releases?env=production">Releases & promotion</a><a class="" href="/operations/regions?env=production">Regions & failover</a><a class="" href="/operations/maintenance?env=production">Maintenance & DR</a><a class="" href="/operations/workloads?env=production">Workloads</a><a class="" href="/operations/observability?env=production">Observability</a><a class="" href="/operations/alerts?env=production">Alerts & health</a><a class="" href="/operations/spend?env=production">Spend & budgets</a><a href="/server/metrics?env=production">Metrics</a><a href="/server/services?env=production">Runtime services</a><a class="" href="/operations/jobs?env=production">Workers & schedules</a><a class="" href="/operations/configuration?env=production">Environment &amp; secrets</a><a class="" href="/data/backups?env=production">Backups &amp; recovery</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/actions?env=production">Run operations</a></section><section class="nav-group"><h2>Infrastructure</h2><a class="" href="/infrastructure/topology?env=production">Infrastructure map</a><a class="" href="/data/services?env=production">Data services</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/firewall?env=production">Network & firewall</a><a href="/server/ssh-keys?env=production">SSH keys</a><a class="" href="/server/fleet?env=production">Fleet inventory</a><a class="" href="/server/capacity?env=production">Capacity & placement</a><a href="/security?env=production">Security posture</a><a href="/server/terminal?env=production">Terminal</a></section><section class="nav-group"><h2>Organization</h2><a class="" href="/server/team?env=production">People & access</a><a class="" href="/account/automation?env=production">API & automation</a></section><section class="nav-group"><h2>Account</h2><a class="" href="/account/security?env=production">Sign-in & security</a></section></div><form method="post" action="/api/logout" class="signout"><button type="submit">Sign out</button></form></aside><dialog class="command-palette" aria-labelledby="command-title"><div class="command-search"><span aria-hidden="true">⌕</span><input type="search" placeholder="Search services, domains, deployments…" aria-label="Search resources" autocomplete="off"><button type="button" class="command-close" aria-label="Close search">Esc</button></div><h2 id="command-title" class="sr-only">Search resources and navigation</h2><div class="command-status" role="status">Start typing to search this project.</div><section class="saved-views" aria-labelledby="saved-views-title"><div class="saved-views-heading"><h3 id="saved-views-title">Saved views</h3><form class="save-view-form"><label class="sr-only" for="save-view-name">Saved view name</label><input id="save-view-name" maxlength="64" placeholder="Name this view" autocomplete="off"><button type="submit">Save current filters</button></form></div><div class="saved-view-list"></div></section><form class="tag-result-form"><label for="tag-result-name">Tag selected resource</label><input id="tag-result-name" maxlength="32" placeholder="customer-facing" pattern="[A-Za-z0-9][A-Za-z0-9 -]{0,31}" autocomplete="off"><input class="tag-color" type="color" value="#5a8be0" aria-label="Tag color"><button type="submit">Add tag</button></form><div class="command-results" role="listbox" aria-label="Search results"></div><footer><span>↑ ↓ navigate</span><span>Enter open</span><span>Esc close</span></footer></dialog><div class="context-bar" aria-label="Current scope"><div class="context-path"><div class="context-breadcrumb"><span>acme</span><i>/</i><strong>production</strong></div><div class="context-filters" aria-label="Active filters"></div></div><span class="scope-safety production">Production scope</span></div> <script data-stx-scoped data-stx-run="always">
207
+ window.__stx_latestSetup=__stx_setup_1791131463179_34;
208
+ if(window.stx)window.stx._latestSetup=__stx_setup_1791131463179_34;
209
+ </script> <style data-stx-cloak>[x-cloak]{display:none !important}</style><link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.906ee17c.css"></head><body data-stx="__stx_setup_1791131463179_34"><a data-stx-scope="stx_scope_nav_48" class="skip-link" href="#main-content">Skip to content</a><button class="nav-toggle-button" type="button" aria-label="Open navigation" aria-controls="primary-navigation" aria-expanded="false"><span></span><span></span><span></span></button><button class="nav-scrim" type="button" aria-label="Close navigation"></button><aside class="app-sidebar" id="primary-navigation" aria-label="Primary navigation"><a class="brand" href="/?env=production"><span class="dot"></span><span>ts-cloud</span></a><div class="sidebar-context"><span class="context-label">Project</span><strong>acme</strong></div><div class="environment-picker" aria-label="Environment"><span class="context-label">Environment</span><details><summary class="environment-current production"><span>PROD</span><strong>production</strong></summary></details></div><button class="command-trigger" type="button" aria-keyshortcuts="Meta+K Control+K"><span>Search resources</span><kbd>⌘ K</kbd></button><div class="nav-groups"><section class="nav-group"><h2>Overview</h2><a class="" href="/?env=production">Dashboard</a><a href="/server/activity?env=production">Activity</a></section><section class="nav-group"><h2>Applications</h2><a class="" href="/server/sites?env=production">Services</a><a class="" href="/server/deployments?env=production">Deployments</a><a class="" href="/server/logs?env=production">Logs</a><a class="" href="/integrations?env=production">Git integrations</a><a class="" href="/applications/new?env=production">Create application</a><a class="" href="/applications/compose?env=production">Compose applications</a></section><section class="nav-group"><h2>Operations</h2><a class="" href="/operations/queue?env=production">Deployment queue</a><a class="" href="/operations/previews?env=production">Preview environments</a><a class="" href="/operations/releases?env=production">Releases & promotion</a><a class="" href="/operations/regions?env=production">Regions & failover</a><a class="" href="/operations/maintenance?env=production">Maintenance & DR</a><a class="" href="/operations/workloads?env=production">Workloads</a><a class="" href="/operations/observability?env=production">Observability</a><a class="" href="/operations/alerts?env=production">Alerts & health</a><a class="" href="/operations/spend?env=production">Spend & budgets</a><a href="/server/metrics?env=production">Metrics</a><a href="/server/services?env=production">Runtime services</a><a class="" href="/operations/jobs?env=production">Workers & schedules</a><a class="" href="/operations/configuration?env=production">Environment &amp; secrets</a><a class="" href="/data/backups?env=production">Backups &amp; recovery</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/actions?env=production">Run operations</a></section><section class="nav-group"><h2>Infrastructure</h2><a class="" href="/infrastructure/topology?env=production">Infrastructure map</a><a class="" href="/data/services?env=production">Data services</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/firewall?env=production">Network & firewall</a><a href="/server/ssh-keys?env=production">SSH keys</a><a class="" href="/server/fleet?env=production">Fleet inventory</a><a class="" href="/server/capacity?env=production">Capacity & placement</a><a href="/security?env=production">Security posture</a><a href="/server/terminal?env=production">Terminal</a></section><section class="nav-group"><h2>Organization</h2><a class="" href="/server/team?env=production">People & access</a><a class="" href="/account/automation?env=production">API & automation</a></section><section class="nav-group"><h2>Account</h2><a class="" href="/account/security?env=production">Sign-in & security</a></section></div><form method="post" action="/api/logout" class="signout"><button type="submit">Sign out</button></form></aside><dialog class="command-palette" aria-labelledby="command-title"><div class="command-search"><span aria-hidden="true">⌕</span><input type="search" placeholder="Search services, domains, deployments…" aria-label="Search resources" autocomplete="off"><button type="button" class="command-close" aria-label="Close search">Esc</button></div><h2 id="command-title" class="sr-only">Search resources and navigation</h2><div class="command-status" role="status">Start typing to search this project.</div><section class="saved-views" aria-labelledby="saved-views-title"><div class="saved-views-heading"><h3 id="saved-views-title">Saved views</h3><form class="save-view-form"><label class="sr-only" for="save-view-name">Saved view name</label><input id="save-view-name" maxlength="64" placeholder="Name this view" autocomplete="off"><button type="submit">Save current filters</button></form></div><div class="saved-view-list"></div></section><form class="tag-result-form"><label for="tag-result-name">Tag selected resource</label><input id="tag-result-name" maxlength="32" placeholder="customer-facing" pattern="[A-Za-z0-9][A-Za-z0-9 -]{0,31}" autocomplete="off"><input class="tag-color" type="color" value="#5a8be0" aria-label="Tag color"><button type="submit">Add tag</button></form><div class="command-results" role="listbox" aria-label="Search results"></div><footer><span>↑ ↓ navigate</span><span>Enter open</span><span>Esc close</span></footer></dialog><div class="context-bar" aria-label="Current scope"><div class="context-path"><div class="context-breadcrumb"><span>acme</span><i>/</i><strong>production</strong></div><div class="context-filters" aria-label="Active filters"></div></div><span class="scope-safety production">Production scope</span></div> <script data-stx-scoped data-stx-run="always">
210
210
  (function() {
211
211
  var { batch, computed, configureFetch, defineEmits, defineExpose, definePageMeta, defineProps, defineSlots, defineStore, derived, effect, goBack, goForward, inject, invalidateRoute, isDerived, isSignal, navigate, nextTick, onBeforeMount, onBeforeUnmount, onDestroy, onMount, onMounted, onUnmounted, peek, provide, reactive, ref, refresh, registerStoresClient, setRouteParams, state, untrack, useAsync, useClickOutside, useColorMode, useCookie, useCounter, useDark, useDebounce, useDebouncedValue, useEventListener, useFetch, useFocus, useHead, useId, useInterval, useLocalStorage, useMediaQuery, useMutation, useOptimistic, usePreferredContrast, usePreferredDark, usePreferredLight, usePreferredReducedMotion, useQuery, useReactiveProp, useRef, useRoute, useRouteParam, useRouteParams, useScrollLock, useSearchParams, useSeoMeta, useSessionStorage, useSlots, useStore, useThrottle, useTimeout, useToggle, useWebSocket, watch, watchEffect, watchMultiple, withDefaults } = window.stx;
212
212
  var __destroyHooks = [];
@@ -557,6 +557,6 @@ if(window.stx)window.stx._latestSetup=__stx_setup_1791130799258_34;
557
557
 
558
558
 
559
559
  try { if (typeof __stxScopeRenames !== 'undefined' && __stxScopeRenames) { for (var __stxRK in __stxScopeRenames) __scopeRegistration[__stxRK] = __stxScopeRenames[__stxRK]; } } catch (e) { /* no renames */ }
560
- window.stx._scopes['stx_scope_nav_47'] = __scopeRegistration;
560
+ window.stx._scopes['stx_scope_nav_48'] = __scopeRegistration;
561
561
  })();
562
562
  </script> <div class="wrap"><div class="crumbs"><a href="/serverless">Serverless</a><span class="sep">/</span> Secrets</div><header class="page"><div><h1>Secrets</h1><p>Stored in AWS Secrets Manager and injected into the functions at deploy. Values are write-only and never displayed.</p></div></header><div class="section"><div class="panel"><table><thead><tr><th scope="col">Key</th><th scope="col">Secret source</th><th scope="col">Value</th><th scope="col">Updated</th><th scope="col" class="table-actions">Actions</th></tr></thead><tbody><template :for="s in rows()"><tr><td class="mono" x-cloak><b x-cloak>{{ s.key }}</b></td><td class="mono" style="color:var(--txt3)" x-cloak>{{ s.source ?? s.secretId }}</td><td class="mono" style="letter-spacing:2px;color:var(--txt3)">••••••••</td><td style="color:var(--txt3)" x-cloak>{{ s.updated ?? '-' }}</td><td class="table-actions"><div class="row-actions" style="justify-content:flex-end"><button class="btn ghost sm" type="button" :aria-label="'Set value for ' + (s.source ?? s.secretId)" @click="pickSource(s.source ?? s.secretId)">Set value</button><button class="btn danger sm" type="button" :aria-label="'Delete ' + (s.source ?? s.secretId)" @click="askDelete(s.source ?? s.secretId)">Delete</button></div></td></tr></template><tr @show="rows().length === 0" x-cloak><td colspan="5"><div class="compact empty"><strong>No secrets referenced</strong><span>Add secrets under <span class="mono">app.secrets</span> in your cloud config, then set their values here.</span></div></td></tr></tbody></table><div class="op-confirm panel" @show="pending() !== null" role="group" aria-labelledby="op-confirm-prompt" x-cloak><span id="op-confirm-prompt" x-cloak>Type <b class="mono" x-cloak>{{ confirmTok() }}</b> to {{ confirmVerb() }}:</span><input data-stx-ref="opConfirmInput" class="op-confirm-input" :value="typed()" @input="typed.set($event.target.value)" @keydown.enter="runOp()" placeholder="confirm" autocomplete="off" aria-labelledby="op-confirm-prompt"><button type="button" class="btn sm" :class="{ danger: confirmDanger() }" :disabled="!canRun()" @click="runOp()" x-cloak>{{ confirmLabel() }}</button><button type="button" class="btn ghost sm" :disabled="busy()" @click="cancelOp()">Cancel</button></div><pre class="action-output op-output" @show="opShown()" aria-live="polite" x-cloak>{{ opOutput() }}</pre></div></div><div class="section"><h2>Set a secret value</h2><div class="panel"><div class="form-grid"><div class="field-block"><label for="secret-id">Secret id (source path)</label><input id="secret-id" :value="secretId()" @input="secretId.set($event.target.value)" placeholder="acme/production/stripe" autocomplete="off"></div><div class="field-block"><label for="secret-value">Value (write-only)</label><input id="secret-value" type="password" :value="value()" @input="value.set($event.target.value)" placeholder="new secret value" autocomplete="off"></div><div class="form-actions"><button class="btn" type="button" :disabled="busy()" @click="requestSetSecret()">Save secret</button><span class="msg" :class="{ ok: msgOk(), bad: msg() && !msgOk() }" x-cloak>{{ msg() }}</span></div></div><p class="note">Setting a value creates the Secrets Manager entry if it does not exist. The new value is injected into the functions on the next <span class="mono">cloud deploy:serverless</span>.</p></div></div></div></body></html>
@@ -1,5 +1,5 @@
1
- <!DOCTYPE html><html lang="en" data-theme="dark"><head><meta charset="UTF-8"><meta name="stx-build" content="muu1146thbvpec"><meta name="title" content="stx Project"><meta name="description" content="A website built with stx templating engine"><meta property="og:title" content="stx Project"><meta property="og:description" content="A website built with stx templating engine"><meta property="og:type" content="website"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="stx Project"><meta name="twitter:description" content="A website built with stx templating engine"> <script data-stx-runtime src="/_stx/runtime.dbee66d1.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"><title>ts-cloud · Traces</title><link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='26' height='26' rx='8' fill='%235a8be0'/%3E%3C/svg%3E"><link rel="preconnect" href="https://fonts.googleapis.com"><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"><link rel="stylesheet" href="/_stx/style.448ab192.css"> <script data-stx-scoped>
2
- function __stx_setup_1791130799224_31() {
1
+ <!DOCTYPE html><html lang="en" data-theme="dark"><head><meta charset="UTF-8"><meta name="stx-build" content="muu1fbhr2jx629"><meta name="title" content="stx Project"><meta name="description" content="A website built with stx templating engine"><meta property="og:title" content="stx Project"><meta property="og:description" content="A website built with stx templating engine"><meta property="og:type" content="website"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="stx Project"><meta name="twitter:description" content="A website built with stx templating engine"> <script data-stx-runtime src="/_stx/runtime.dbee66d1.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"><title>ts-cloud · Traces</title><link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='26' height='26' rx='8' fill='%235a8be0'/%3E%3C/svg%3E"><link rel="preconnect" href="https://fonts.googleapis.com"><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"><link rel="stylesheet" href="/_stx/style.448ab192.css"> <script data-stx-scoped>
2
+ function __stx_setup_1791131463119_32() {
3
3
  const { batch, computed, configureFetch, defineEmits, defineExpose, definePageMeta, defineProps, defineSlots, defineStore, derived, effect, goBack, goForward, inject, invalidateRoute, isDerived, isSignal, navigate, nextTick, onBeforeMount, onBeforeUnmount, onDestroy, onMount, onMounted, onUnmounted, peek, provide, reactive, ref, refresh, registerStoresClient, setRouteParams, state, untrack, useAsync, useClickOutside, useColorMode, useCookie, useCounter, useDark, useDebounce, useDebouncedValue, useEventListener, useFetch, useFocus, useHead, useId, useInterval, useLocalStorage, useMediaQuery, useMutation, useOptimistic, usePreferredContrast, usePreferredDark, usePreferredLight, usePreferredReducedMotion, useQuery, useReactiveProp, useRef, useRoute, useRouteParam, useRouteParams, useScrollLock, useSearchParams, useSeoMeta, useSessionStorage, useSlots, useStore, useThrottle, useTimeout, useToggle, useWebSocket, watch, watchEffect, watchMultiple, withDefaults } = window.stx;
4
4
 
5
5
  var initialTraces = [];
@@ -42,9 +42,9 @@ onMount(() => {
42
42
 
43
43
  return { traces, minutes, note, loading, filter, shown, tone, load, setWindow };
44
44
  }
45
- window.__stx_latestSetup=__stx_setup_1791130799224_31;
46
- if(window.stx)window.stx._latestSetup=__stx_setup_1791130799224_31;
47
- </script> <style data-stx-cloak>[x-cloak]{display:none !important}</style><link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.906ee17c.css"></head><body data-stx="__stx_setup_1791130799224_31"><a data-stx-scope="stx_scope_nav_46" class="skip-link" href="#main-content">Skip to content</a><button class="nav-toggle-button" type="button" aria-label="Open navigation" aria-controls="primary-navigation" aria-expanded="false"><span></span><span></span><span></span></button><button class="nav-scrim" type="button" aria-label="Close navigation"></button><aside class="app-sidebar" id="primary-navigation" aria-label="Primary navigation"><a class="brand" href="/?env=production"><span class="dot"></span><span>ts-cloud</span></a><div class="sidebar-context"><span class="context-label">Project</span><strong>acme</strong></div><div class="environment-picker" aria-label="Environment"><span class="context-label">Environment</span><details><summary class="environment-current production"><span>PROD</span><strong>production</strong></summary></details></div><button class="command-trigger" type="button" aria-keyshortcuts="Meta+K Control+K"><span>Search resources</span><kbd>⌘ K</kbd></button><div class="nav-groups"><section class="nav-group"><h2>Overview</h2><a class="" href="/?env=production">Dashboard</a><a href="/server/activity?env=production">Activity</a></section><section class="nav-group"><h2>Applications</h2><a class="" href="/server/sites?env=production">Services</a><a class="" href="/server/deployments?env=production">Deployments</a><a class="" href="/server/logs?env=production">Logs</a><a class="" href="/integrations?env=production">Git integrations</a><a class="" href="/applications/new?env=production">Create application</a><a class="" href="/applications/compose?env=production">Compose applications</a></section><section class="nav-group"><h2>Operations</h2><a class="" href="/operations/queue?env=production">Deployment queue</a><a class="" href="/operations/previews?env=production">Preview environments</a><a class="" href="/operations/releases?env=production">Releases & promotion</a><a class="" href="/operations/regions?env=production">Regions & failover</a><a class="" href="/operations/maintenance?env=production">Maintenance & DR</a><a class="" href="/operations/workloads?env=production">Workloads</a><a class="" href="/operations/observability?env=production">Observability</a><a class="" href="/operations/alerts?env=production">Alerts & health</a><a class="" href="/operations/spend?env=production">Spend & budgets</a><a href="/server/metrics?env=production">Metrics</a><a href="/server/services?env=production">Runtime services</a><a class="" href="/operations/jobs?env=production">Workers & schedules</a><a class="" href="/operations/configuration?env=production">Environment &amp; secrets</a><a class="" href="/data/backups?env=production">Backups &amp; recovery</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/actions?env=production">Run operations</a></section><section class="nav-group"><h2>Infrastructure</h2><a class="" href="/infrastructure/topology?env=production">Infrastructure map</a><a class="" href="/data/services?env=production">Data services</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/firewall?env=production">Network & firewall</a><a href="/server/ssh-keys?env=production">SSH keys</a><a class="" href="/server/fleet?env=production">Fleet inventory</a><a class="" href="/server/capacity?env=production">Capacity & placement</a><a href="/security?env=production">Security posture</a><a href="/server/terminal?env=production">Terminal</a></section><section class="nav-group"><h2>Organization</h2><a class="" href="/server/team?env=production">People & access</a><a class="" href="/account/automation?env=production">API & automation</a></section><section class="nav-group"><h2>Account</h2><a class="" href="/account/security?env=production">Sign-in & security</a></section></div><form method="post" action="/api/logout" class="signout"><button type="submit">Sign out</button></form></aside><dialog class="command-palette" aria-labelledby="command-title"><div class="command-search"><span aria-hidden="true">⌕</span><input type="search" placeholder="Search services, domains, deployments…" aria-label="Search resources" autocomplete="off"><button type="button" class="command-close" aria-label="Close search">Esc</button></div><h2 id="command-title" class="sr-only">Search resources and navigation</h2><div class="command-status" role="status">Start typing to search this project.</div><section class="saved-views" aria-labelledby="saved-views-title"><div class="saved-views-heading"><h3 id="saved-views-title">Saved views</h3><form class="save-view-form"><label class="sr-only" for="save-view-name">Saved view name</label><input id="save-view-name" maxlength="64" placeholder="Name this view" autocomplete="off"><button type="submit">Save current filters</button></form></div><div class="saved-view-list"></div></section><form class="tag-result-form"><label for="tag-result-name">Tag selected resource</label><input id="tag-result-name" maxlength="32" placeholder="customer-facing" pattern="[A-Za-z0-9][A-Za-z0-9 -]{0,31}" autocomplete="off"><input class="tag-color" type="color" value="#5a8be0" aria-label="Tag color"><button type="submit">Add tag</button></form><div class="command-results" role="listbox" aria-label="Search results"></div><footer><span>↑ ↓ navigate</span><span>Enter open</span><span>Esc close</span></footer></dialog><div class="context-bar" aria-label="Current scope"><div class="context-path"><div class="context-breadcrumb"><span>acme</span><i>/</i><strong>production</strong></div><div class="context-filters" aria-label="Active filters"></div></div><span class="scope-safety production">Production scope</span></div> <script data-stx-scoped data-stx-run="always">
45
+ window.__stx_latestSetup=__stx_setup_1791131463119_32;
46
+ if(window.stx)window.stx._latestSetup=__stx_setup_1791131463119_32;
47
+ </script> <style data-stx-cloak>[x-cloak]{display:none !important}</style><link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.906ee17c.css"></head><body data-stx="__stx_setup_1791131463119_32"><a data-stx-scope="stx_scope_nav_47" class="skip-link" href="#main-content">Skip to content</a><button class="nav-toggle-button" type="button" aria-label="Open navigation" aria-controls="primary-navigation" aria-expanded="false"><span></span><span></span><span></span></button><button class="nav-scrim" type="button" aria-label="Close navigation"></button><aside class="app-sidebar" id="primary-navigation" aria-label="Primary navigation"><a class="brand" href="/?env=production"><span class="dot"></span><span>ts-cloud</span></a><div class="sidebar-context"><span class="context-label">Project</span><strong>acme</strong></div><div class="environment-picker" aria-label="Environment"><span class="context-label">Environment</span><details><summary class="environment-current production"><span>PROD</span><strong>production</strong></summary></details></div><button class="command-trigger" type="button" aria-keyshortcuts="Meta+K Control+K"><span>Search resources</span><kbd>⌘ K</kbd></button><div class="nav-groups"><section class="nav-group"><h2>Overview</h2><a class="" href="/?env=production">Dashboard</a><a href="/server/activity?env=production">Activity</a></section><section class="nav-group"><h2>Applications</h2><a class="" href="/server/sites?env=production">Services</a><a class="" href="/server/deployments?env=production">Deployments</a><a class="" href="/server/logs?env=production">Logs</a><a class="" href="/integrations?env=production">Git integrations</a><a class="" href="/applications/new?env=production">Create application</a><a class="" href="/applications/compose?env=production">Compose applications</a></section><section class="nav-group"><h2>Operations</h2><a class="" href="/operations/queue?env=production">Deployment queue</a><a class="" href="/operations/previews?env=production">Preview environments</a><a class="" href="/operations/releases?env=production">Releases & promotion</a><a class="" href="/operations/regions?env=production">Regions & failover</a><a class="" href="/operations/maintenance?env=production">Maintenance & DR</a><a class="" href="/operations/workloads?env=production">Workloads</a><a class="" href="/operations/observability?env=production">Observability</a><a class="" href="/operations/alerts?env=production">Alerts & health</a><a class="" href="/operations/spend?env=production">Spend & budgets</a><a href="/server/metrics?env=production">Metrics</a><a href="/server/services?env=production">Runtime services</a><a class="" href="/operations/jobs?env=production">Workers & schedules</a><a class="" href="/operations/configuration?env=production">Environment &amp; secrets</a><a class="" href="/data/backups?env=production">Backups &amp; recovery</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/actions?env=production">Run operations</a></section><section class="nav-group"><h2>Infrastructure</h2><a class="" href="/infrastructure/topology?env=production">Infrastructure map</a><a class="" href="/data/services?env=production">Data services</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/firewall?env=production">Network & firewall</a><a href="/server/ssh-keys?env=production">SSH keys</a><a class="" href="/server/fleet?env=production">Fleet inventory</a><a class="" href="/server/capacity?env=production">Capacity & placement</a><a href="/security?env=production">Security posture</a><a href="/server/terminal?env=production">Terminal</a></section><section class="nav-group"><h2>Organization</h2><a class="" href="/server/team?env=production">People & access</a><a class="" href="/account/automation?env=production">API & automation</a></section><section class="nav-group"><h2>Account</h2><a class="" href="/account/security?env=production">Sign-in & security</a></section></div><form method="post" action="/api/logout" class="signout"><button type="submit">Sign out</button></form></aside><dialog class="command-palette" aria-labelledby="command-title"><div class="command-search"><span aria-hidden="true">⌕</span><input type="search" placeholder="Search services, domains, deployments…" aria-label="Search resources" autocomplete="off"><button type="button" class="command-close" aria-label="Close search">Esc</button></div><h2 id="command-title" class="sr-only">Search resources and navigation</h2><div class="command-status" role="status">Start typing to search this project.</div><section class="saved-views" aria-labelledby="saved-views-title"><div class="saved-views-heading"><h3 id="saved-views-title">Saved views</h3><form class="save-view-form"><label class="sr-only" for="save-view-name">Saved view name</label><input id="save-view-name" maxlength="64" placeholder="Name this view" autocomplete="off"><button type="submit">Save current filters</button></form></div><div class="saved-view-list"></div></section><form class="tag-result-form"><label for="tag-result-name">Tag selected resource</label><input id="tag-result-name" maxlength="32" placeholder="customer-facing" pattern="[A-Za-z0-9][A-Za-z0-9 -]{0,31}" autocomplete="off"><input class="tag-color" type="color" value="#5a8be0" aria-label="Tag color"><button type="submit">Add tag</button></form><div class="command-results" role="listbox" aria-label="Search results"></div><footer><span>↑ ↓ navigate</span><span>Enter open</span><span>Esc close</span></footer></dialog><div class="context-bar" aria-label="Current scope"><div class="context-path"><div class="context-breadcrumb"><span>acme</span><i>/</i><strong>production</strong></div><div class="context-filters" aria-label="Active filters"></div></div><span class="scope-safety production">Production scope</span></div> <script data-stx-scoped data-stx-run="always">
48
48
  (function() {
49
49
  var { batch, computed, configureFetch, defineEmits, defineExpose, definePageMeta, defineProps, defineSlots, defineStore, derived, effect, goBack, goForward, inject, invalidateRoute, isDerived, isSignal, navigate, nextTick, onBeforeMount, onBeforeUnmount, onDestroy, onMount, onMounted, onUnmounted, peek, provide, reactive, ref, refresh, registerStoresClient, setRouteParams, state, untrack, useAsync, useClickOutside, useColorMode, useCookie, useCounter, useDark, useDebounce, useDebouncedValue, useEventListener, useFetch, useFocus, useHead, useId, useInterval, useLocalStorage, useMediaQuery, useMutation, useOptimistic, usePreferredContrast, usePreferredDark, usePreferredLight, usePreferredReducedMotion, useQuery, useReactiveProp, useRef, useRoute, useRouteParam, useRouteParams, useScrollLock, useSearchParams, useSeoMeta, useSessionStorage, useSlots, useStore, useThrottle, useTimeout, useToggle, useWebSocket, watch, watchEffect, watchMultiple, withDefaults } = window.stx;
50
50
  var __destroyHooks = [];
@@ -395,6 +395,6 @@ if(window.stx)window.stx._latestSetup=__stx_setup_1791130799224_31;
395
395
 
396
396
 
397
397
  try { if (typeof __stxScopeRenames !== 'undefined' && __stxScopeRenames) { for (var __stxRK in __stxScopeRenames) __scopeRegistration[__stxRK] = __stxScopeRenames[__stxRK]; } } catch (e) { /* no renames */ }
398
- window.stx._scopes['stx_scope_nav_46'] = __scopeRegistration;
398
+ window.stx._scopes['stx_scope_nav_47'] = __scopeRegistration;
399
399
  })();
400
400
  </script> <div class="wrap"><div class="crumbs"><a href="/serverless">Serverless</a><span class="sep">/</span> Traces</div><header class="page"><div><h1>Traces</h1><p>Distributed traces from AWS X-Ray for the HTTP function, newest first.</p></div><div class="header-actions"><button class="btn ghost sm" type="button" :disabled="loading()" @click="load()">Refresh</button></div></header><div class="section"><div class="panel"><div class="filters"><div class="segmented" role="group" aria-label="Time window"><button type="button" :class="{ active: minutes() === 15 }" @click="setWindow(15)">15m</button><button type="button" :class="{ active: minutes() === 30 }" @click="setWindow(30)">30m</button><button type="button" :class="{ active: minutes() === 60 }" @click="setWindow(60)">1h</button><button type="button" :class="{ active: minutes() === 180 }" @click="setWindow(180)">3h</button></div><div class="segmented" role="group" aria-label="Status filter"><button type="button" :class="{ active: filter() === 'all' }" @click="filter.set('all')">All</button><button type="button" :class="{ active: filter() === 'ok' }" @click="filter.set('ok')">OK</button><button type="button" :class="{ active: filter() === 'error' }" @click="filter.set('error')">Error</button><button type="button" :class="{ active: filter() === 'fault' }" @click="filter.set('fault')">Fault</button><button type="button" :class="{ active: filter() === 'throttle' }" @click="filter.set('throttle')">Throttle</button></div></div><table @show="shown().length > 0" x-cloak><thead><tr><th scope="col">Trace</th><th scope="col">Method</th><th scope="col">URL</th><th scope="col">HTTP</th><th scope="col">Response</th><th scope="col">Duration</th><th scope="col">Status</th></tr></thead><tbody><template :for="t in shown()"><tr><td class="mono" style="font-size:11px" x-cloak>{{ t.id }}</td><td class="mono" x-cloak>{{ t.method }}</td><td class="mono" style="font-size:11px;color:var(--txt2);max-width:420px;overflow:hidden;text-overflow:ellipsis" x-cloak>{{ t.url }}</td><td class="mono" x-cloak>{{ t.httpStatus }}</td><td class="mono" x-cloak>{{ t.responseMs }}ms</td><td class="mono" x-cloak>{{ t.durationMs }}ms</td><td x-cloak><span class="pill" :class="tone(t.status)" x-cloak>{{ t.status }}</span></td></tr></template></tbody></table><div class="compact empty" @show="shown().length === 0" x-cloak><strong>No traces</strong><span x-cloak>{{ note() || 'No traces match this filter.' }}</span></div><p class="note" @show="note() !== '' && shown().length > 0" x-cloak>{{ note() }}</p><p class="note">Traces need active tracing enabled on the Lambda functions. Set tracing in your serverless app config and redeploy.</p></div></div></div></body></html>
@@ -1,5 +1,5 @@
1
- <!DOCTYPE html><html lang="en" data-theme="dark"><head><meta charset="UTF-8"><meta name="stx-build" content="muu1146thbvpec"><meta name="title" content="stx Project"><meta name="description" content="A website built with stx templating engine"><meta property="og:title" content="stx Project"><meta property="og:description" content="A website built with stx templating engine"><meta property="og:type" content="website"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="stx Project"><meta name="twitter:description" content="A website built with stx templating engine"> <script data-stx-runtime src="/_stx/runtime.dbee66d1.js"></script> <script data-stx-composables src="/_stx/chunk.9fd39d5b.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"><title>ts-cloud · Serverless</title><link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='26' height='26' rx='8' fill='%235a8be0'/%3E%3C/svg%3E"><link rel="preconnect" href="https://fonts.googleapis.com"><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"><link rel="stylesheet" href="/_stx/style.448ab192.css"> <script data-stx-scoped>
2
- function __stx_setup_1791130799600_36() {
1
+ <!DOCTYPE html><html lang="en" data-theme="dark"><head><meta charset="UTF-8"><meta name="stx-build" content="muu1fbhr2jx629"><meta name="title" content="stx Project"><meta name="description" content="A website built with stx templating engine"><meta property="og:title" content="stx Project"><meta property="og:description" content="A website built with stx templating engine"><meta property="og:type" content="website"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="stx Project"><meta name="twitter:description" content="A website built with stx templating engine"> <script data-stx-runtime src="/_stx/runtime.dbee66d1.js"></script> <script data-stx-composables src="/_stx/chunk.9fd39d5b.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1.0"><title>ts-cloud · Serverless</title><link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='26' height='26' rx='8' fill='%235a8be0'/%3E%3C/svg%3E"><link rel="preconnect" href="https://fonts.googleapis.com"><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"><link rel="stylesheet" href="/_stx/style.448ab192.css"> <script data-stx-scoped>
2
+ function __stx_setup_1791131463703_36() {
3
3
  const { batch, computed, configureFetch, defineEmits, defineExpose, definePageMeta, defineProps, defineSlots, defineStore, derived, effect, goBack, goForward, inject, invalidateRoute, isDerived, isSignal, navigate, nextTick, onBeforeMount, onBeforeUnmount, onDestroy, onMount, onMounted, onUnmounted, peek, provide, reactive, ref, refresh, registerStoresClient, setRouteParams, state, untrack, useAsync, useClickOutside, useColorMode, useCookie, useCounter, useDark, useDebounce, useDebouncedValue, useEventListener, useFetch, useFocus, useHead, useId, useInterval, useLocalStorage, useMediaQuery, useMutation, useOptimistic, usePreferredContrast, usePreferredDark, usePreferredLight, usePreferredReducedMotion, useQuery, useReactiveProp, useRef, useRoute, useRouteParam, useRouteParams, useScrollLock, useSearchParams, useSeoMeta, useSessionStorage, useSlots, useStore, useThrottle, useTimeout, useToggle, useWebSocket, watch, watchEffect, watchMultiple, withDefaults } = window.stx;
4
4
 
5
5
  var initialMaintenance = false;
@@ -180,9 +180,9 @@ runOp = __stxBundle_0bd12f9ee3a9["runOp"];
180
180
  typed = __stxBundle_0bd12f9ee3a9["typed"];
181
181
  return { appCmd, askAppCmd, askOp, busy, canRun, cancelAppCmd, cancelOp, cmdBusy, cmdCanRun, cmdOut, cmdPending, cmdShown, cmdTyped, confirmDanger, confirmLabel, confirmTok, confirmVerb, maint, opOutput, opShown, pending, runAppCmd, runOp, typed, __stxBundle_0bd12f9ee3a9 };
182
182
  }
183
- window.__stx_latestSetup=__stx_setup_1791130799600_36;
184
- if(window.stx)window.stx._latestSetup=__stx_setup_1791130799600_36;
185
- </script> <style data-stx-cloak>[x-cloak]{display:none !important}</style><link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.b7a99a5c.css"></head><body data-stx="__stx_setup_1791130799600_36"><a data-stx-scope="stx_scope_nav_53" class="skip-link" href="#main-content">Skip to content</a><button class="nav-toggle-button" type="button" aria-label="Open navigation" aria-controls="primary-navigation" aria-expanded="false"><span></span><span></span><span></span></button><button class="nav-scrim" type="button" aria-label="Close navigation"></button><aside class="app-sidebar" id="primary-navigation" aria-label="Primary navigation"><a class="brand" href="/?env=production"><span class="dot"></span><span>ts-cloud</span></a><div class="sidebar-context"><span class="context-label">Project</span><strong>Project</strong></div><div class="environment-picker" aria-label="Environment"><span class="context-label">Environment</span><details><summary class="environment-current production"><span>PROD</span><strong>production</strong></summary></details></div><button class="command-trigger" type="button" aria-keyshortcuts="Meta+K Control+K"><span>Search resources</span><kbd>⌘ K</kbd></button><div class="nav-groups"><section class="nav-group"><h2>Overview</h2><a class="" href="/?env=production">Dashboard</a><a href="/server/activity?env=production">Activity</a></section><section class="nav-group"><h2>Applications</h2><a class="" href="/server/sites?env=production">Services</a><a class="" href="/server/deployments?env=production">Deployments</a><a class="" href="/server/logs?env=production">Logs</a><a class="" href="/integrations?env=production">Git integrations</a><a class="" href="/applications/new?env=production">Create application</a><a class="" href="/applications/compose?env=production">Compose applications</a></section><section class="nav-group"><h2>Operations</h2><a class="" href="/operations/queue?env=production">Deployment queue</a><a class="" href="/operations/previews?env=production">Preview environments</a><a class="" href="/operations/releases?env=production">Releases & promotion</a><a class="" href="/operations/regions?env=production">Regions & failover</a><a class="" href="/operations/maintenance?env=production">Maintenance & DR</a><a class="" href="/operations/workloads?env=production">Workloads</a><a class="" href="/operations/observability?env=production">Observability</a><a class="" href="/operations/alerts?env=production">Alerts & health</a><a class="" href="/operations/spend?env=production">Spend & budgets</a><a href="/server/metrics?env=production">Metrics</a><a href="/server/services?env=production">Runtime services</a><a class="" href="/operations/jobs?env=production">Workers & schedules</a><a class="" href="/operations/configuration?env=production">Environment &amp; secrets</a><a class="" href="/data/backups?env=production">Backups &amp; recovery</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/actions?env=production">Run operations</a></section><section class="nav-group"><h2>Infrastructure</h2><a class="" href="/infrastructure/topology?env=production">Infrastructure map</a><a class="" href="/data/services?env=production">Data services</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/firewall?env=production">Network & firewall</a><a href="/server/ssh-keys?env=production">SSH keys</a><a class="" href="/server/fleet?env=production">Fleet inventory</a><a class="" href="/server/capacity?env=production">Capacity & placement</a><a href="/security?env=production">Security posture</a><a href="/server/terminal?env=production">Terminal</a></section><section class="nav-group"><h2>Organization</h2><a class="" href="/server/team?env=production">People & access</a><a class="" href="/account/automation?env=production">API & automation</a></section><section class="nav-group"><h2>Account</h2><a class="" href="/account/security?env=production">Sign-in & security</a></section></div><form method="post" action="/api/logout" class="signout"><button type="submit">Sign out</button></form></aside><dialog class="command-palette" aria-labelledby="command-title"><div class="command-search"><span aria-hidden="true">⌕</span><input type="search" placeholder="Search services, domains, deployments…" aria-label="Search resources" autocomplete="off"><button type="button" class="command-close" aria-label="Close search">Esc</button></div><h2 id="command-title" class="sr-only">Search resources and navigation</h2><div class="command-status" role="status">Start typing to search this project.</div><section class="saved-views" aria-labelledby="saved-views-title"><div class="saved-views-heading"><h3 id="saved-views-title">Saved views</h3><form class="save-view-form"><label class="sr-only" for="save-view-name">Saved view name</label><input id="save-view-name" maxlength="64" placeholder="Name this view" autocomplete="off"><button type="submit">Save current filters</button></form></div><div class="saved-view-list"></div></section><form class="tag-result-form"><label for="tag-result-name">Tag selected resource</label><input id="tag-result-name" maxlength="32" placeholder="customer-facing" pattern="[A-Za-z0-9][A-Za-z0-9 -]{0,31}" autocomplete="off"><input class="tag-color" type="color" value="#5a8be0" aria-label="Tag color"><button type="submit">Add tag</button></form><div class="command-results" role="listbox" aria-label="Search results"></div><footer><span>↑ ↓ navigate</span><span>Enter open</span><span>Esc close</span></footer></dialog><div class="context-bar" aria-label="Current scope"><div class="context-path"><div class="context-breadcrumb"><span>Project</span><i>/</i><strong>production</strong></div><div class="context-filters" aria-label="Active filters"></div></div><span class="scope-safety production">Production scope</span></div> <script data-stx-scoped data-stx-run="always">
183
+ window.__stx_latestSetup=__stx_setup_1791131463703_36;
184
+ if(window.stx)window.stx._latestSetup=__stx_setup_1791131463703_36;
185
+ </script> <style data-stx-cloak>[x-cloak]{display:none !important}</style><link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.b7a99a5c.css"></head><body data-stx="__stx_setup_1791131463703_36"><a data-stx-scope="stx_scope_nav_53" class="skip-link" href="#main-content">Skip to content</a><button class="nav-toggle-button" type="button" aria-label="Open navigation" aria-controls="primary-navigation" aria-expanded="false"><span></span><span></span><span></span></button><button class="nav-scrim" type="button" aria-label="Close navigation"></button><aside class="app-sidebar" id="primary-navigation" aria-label="Primary navigation"><a class="brand" href="/?env=production"><span class="dot"></span><span>ts-cloud</span></a><div class="sidebar-context"><span class="context-label">Project</span><strong>Project</strong></div><div class="environment-picker" aria-label="Environment"><span class="context-label">Environment</span><details><summary class="environment-current production"><span>PROD</span><strong>production</strong></summary></details></div><button class="command-trigger" type="button" aria-keyshortcuts="Meta+K Control+K"><span>Search resources</span><kbd>⌘ K</kbd></button><div class="nav-groups"><section class="nav-group"><h2>Overview</h2><a class="" href="/?env=production">Dashboard</a><a href="/server/activity?env=production">Activity</a></section><section class="nav-group"><h2>Applications</h2><a class="" href="/server/sites?env=production">Services</a><a class="" href="/server/deployments?env=production">Deployments</a><a class="" href="/server/logs?env=production">Logs</a><a class="" href="/integrations?env=production">Git integrations</a><a class="" href="/applications/new?env=production">Create application</a><a class="" href="/applications/compose?env=production">Compose applications</a></section><section class="nav-group"><h2>Operations</h2><a class="" href="/operations/queue?env=production">Deployment queue</a><a class="" href="/operations/previews?env=production">Preview environments</a><a class="" href="/operations/releases?env=production">Releases & promotion</a><a class="" href="/operations/regions?env=production">Regions & failover</a><a class="" href="/operations/maintenance?env=production">Maintenance & DR</a><a class="" href="/operations/workloads?env=production">Workloads</a><a class="" href="/operations/observability?env=production">Observability</a><a class="" href="/operations/alerts?env=production">Alerts & health</a><a class="" href="/operations/spend?env=production">Spend & budgets</a><a href="/server/metrics?env=production">Metrics</a><a href="/server/services?env=production">Runtime services</a><a class="" href="/operations/jobs?env=production">Workers & schedules</a><a class="" href="/operations/configuration?env=production">Environment &amp; secrets</a><a class="" href="/data/backups?env=production">Backups &amp; recovery</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/actions?env=production">Run operations</a></section><section class="nav-group"><h2>Infrastructure</h2><a class="" href="/infrastructure/topology?env=production">Infrastructure map</a><a class="" href="/data/services?env=production">Data services</a><a class="" href="/data/volumes?env=production">Persistent volumes</a><a href="/server/firewall?env=production">Network & firewall</a><a href="/server/ssh-keys?env=production">SSH keys</a><a class="" href="/server/fleet?env=production">Fleet inventory</a><a class="" href="/server/capacity?env=production">Capacity & placement</a><a href="/security?env=production">Security posture</a><a href="/server/terminal?env=production">Terminal</a></section><section class="nav-group"><h2>Organization</h2><a class="" href="/server/team?env=production">People & access</a><a class="" href="/account/automation?env=production">API & automation</a></section><section class="nav-group"><h2>Account</h2><a class="" href="/account/security?env=production">Sign-in & security</a></section></div><form method="post" action="/api/logout" class="signout"><button type="submit">Sign out</button></form></aside><dialog class="command-palette" aria-labelledby="command-title"><div class="command-search"><span aria-hidden="true">⌕</span><input type="search" placeholder="Search services, domains, deployments…" aria-label="Search resources" autocomplete="off"><button type="button" class="command-close" aria-label="Close search">Esc</button></div><h2 id="command-title" class="sr-only">Search resources and navigation</h2><div class="command-status" role="status">Start typing to search this project.</div><section class="saved-views" aria-labelledby="saved-views-title"><div class="saved-views-heading"><h3 id="saved-views-title">Saved views</h3><form class="save-view-form"><label class="sr-only" for="save-view-name">Saved view name</label><input id="save-view-name" maxlength="64" placeholder="Name this view" autocomplete="off"><button type="submit">Save current filters</button></form></div><div class="saved-view-list"></div></section><form class="tag-result-form"><label for="tag-result-name">Tag selected resource</label><input id="tag-result-name" maxlength="32" placeholder="customer-facing" pattern="[A-Za-z0-9][A-Za-z0-9 -]{0,31}" autocomplete="off"><input class="tag-color" type="color" value="#5a8be0" aria-label="Tag color"><button type="submit">Add tag</button></form><div class="command-results" role="listbox" aria-label="Search results"></div><footer><span>↑ ↓ navigate</span><span>Enter open</span><span>Esc close</span></footer></dialog><div class="context-bar" aria-label="Current scope"><div class="context-path"><div class="context-breadcrumb"><span>Project</span><i>/</i><strong>production</strong></div><div class="context-filters" aria-label="Active filters"></div></div><span class="scope-safety production">Production scope</span></div> <script data-stx-scoped data-stx-run="always">
186
186
  (function() {
187
187
  var { batch, computed, configureFetch, defineEmits, defineExpose, definePageMeta, defineProps, defineSlots, defineStore, derived, effect, goBack, goForward, inject, invalidateRoute, isDerived, isSignal, navigate, nextTick, onBeforeMount, onBeforeUnmount, onDestroy, onMount, onMounted, onUnmounted, peek, provide, reactive, ref, refresh, registerStoresClient, setRouteParams, state, untrack, useAsync, useClickOutside, useColorMode, useCookie, useCounter, useDark, useDebounce, useDebouncedValue, useEventListener, useFetch, useFocus, useHead, useId, useInterval, useLocalStorage, useMediaQuery, useMutation, useOptimistic, usePreferredContrast, usePreferredDark, usePreferredLight, usePreferredReducedMotion, useQuery, useReactiveProp, useRef, useRoute, useRouteParam, useRouteParams, useScrollLock, useSearchParams, useSeoMeta, useSessionStorage, useSlots, useStore, useThrottle, useTimeout, useToggle, useWebSocket, watch, watchEffect, watchMultiple, withDefaults } = window.stx;
188
188
  var __destroyHooks = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ts-cloud",
3
3
  "type": "module",
4
- "version": "0.16.28",
4
+ "version": "0.16.29",
5
5
  "description": "A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications.",
6
6
  "author": "Chris Breuer <chris@stacksjs.com>",
7
7
  "license": "MIT",
@@ -102,8 +102,8 @@
102
102
  },
103
103
  "dependencies": {
104
104
  "@stacksjs/ts-xml": "^0.1.2",
105
- "@ts-cloud/aws-types": "0.16.28",
106
- "@ts-cloud/core": "0.16.28",
105
+ "@ts-cloud/aws-types": "0.16.29",
106
+ "@ts-cloud/core": "0.16.29",
107
107
  "hash-wasm": "^4.12.0"
108
108
  },
109
109
  "devDependencies": {
@@ -1 +0,0 @@
1
- import{fc,ae,hc,Rd,yp,fi,Sp,bp,qs,vp,Tp,Ep,wp,Cp,Ap,Ip,yc,Sc,Ws,Gs,Co,et,A,Ks,bc,H,Rr,C,Pd,hi,Js,Xs,F,Ao,Rp,Pp,Np,Dp,l,s,kp,_p,E,Qs,Ys,Zs,xp,$p,De,ea,Io,Nd,Op,Lp,Ue,Et,ta,vc,Tc,Mp,Ec,wc,Cc,ra,Ac,jt,Ro,yi,Po,Si,Be,Dd,No,Do,na,ia,oa,sa,aa,ca,ve,j,S,L,tt,D,kd,wt,ge,Vt,Up,_d,Te,ko,Fe,zt,bi,Ee,_o,ke,xd,vi,we,Ce,re,Ti,X,Ht,Ct,Ae,t,xo,Bp,Ic,la,Fp,jp,Vp,zp,da,Hp,qp,Wp,Gp,Kp,Jp,Xp,Qp,Yp,Zp,em,tm,$d,Od,Ld,Md,Ud,Bd,Fd,qt,Rc,Pc,Pr,Ei,rm,Nc,nm,im,an,om,sm,am,cm,lm,dm,jd,Vd,zd,Hd,qd,$o,um,ua,Wd,Gd,Kd,Dc,Ie,pm,Jd,At,Oo,Nr,Xd,kc,Qd,Yd,Zd,_c,_e,mm,gm,fm,hm,eu,ym,Re,Sm,bm,vm,xc,$c,Tm,Oc,Lc,Em,wm,Cm,Am,Im,tu,pa,Rm,Pm,Nm,Dm,km,ru,nu,_m,xm,$m,Om,Lm,Mm,Um,Bm,Fm,Mc,ma,jm,Vm,zm,Hm,Uc,Bc,Fc,qm,jc,Wm,Gm,Km,Jm,Vc,Xm,Qm,Ym,Zm,eg,tg,rg,ng,iu,ou,su,au,zc,ig,og,sg,ag,cg,lg,dg,ug,pg,cu,lu,du,uu,mg,gg,Hc,fg,qc,Wc,Gc,Kc,hg,yg,Sg,bg,rt,wi,vg,Tg,Eg,wg,Cg,Ag,Ig,Rg,pu,Pg,Ng,Jc,Xc,Dg,kg,mu,_g,xg,$g,Og,Lg,Mg,Ug,Bg,Fg,jg,Vg,zg,Hg,qg,Wg,Gg,Kg,Jg,Xg,Qg,Yg,Qc,Zg,Yc,ef,Zc,tf,el,rf,tl,nf,cn,of,rl,sf,Lo,af,nl,cf,il,lf,ol,df,sl,uf,al,pf,ln,mf,cl,gf,ll,ff,dl,hf,ul,yf,pl,Sf,ml,bf,gl,vf,fl,Tf,hl,Ef,yl,wf,Sl,Cf,bl,Af,vl,If,Tl,Rf,El,Pf,wl,Nf,Cl,Df,Al,kf,Il,_f,Rl,xf,Pl,$f,Nl,Of,Dl,Lf,kl,Mf,_l,Uf,gu,fu,hu,yu,xl,Bf,$l,Ff,Ol,jf,Ll,Vf,Ci,Su,bu,Mo,ga,dn,vu,Uo,Wt,fa,ha,Tu,Eu,Ml,wu,ya,Ul,zf,Hf,Sa,ba,va,Bl,Bo,Fl,jl,Ta,Vl,zl,Hl,Cu,Au,Iu,qf,Ru,Pu,Wf,Nu,ql,Du,ku,_u,Gf,xu,Ai,Ea,$u,Kf,Ou,Fo,jo,wa,Wl,Jf,Gl,Xf,Kl,Qf,Jl,Yf,Xl,Zf}from"./chunk-4a8qt6e8.js";export{nl as ABTestManager,Fe as AI,Qd as AWSAPIError,Zc as AWSConfigManager,Bp as AWS_PSEUDO_PARAMETERS,rt as AWS_REGIONS,_o as ApiGateway,xo as Arn,re as AssetHasher,we as Auth,Qc as BackupManager,Ol as BatchProcessingManager,rl as BlueGreenManager,Nl as BounceComplaintHandler,yl as BuildOptimizationManager,Be as CDN,ba as CHAIN_HEADER,ta as CLOUDFRONT_FAILOVER_STATUS_CODES,xg as COMMON_CROSS_ACCOUNT_ROLES,bi as Cache,Lo as CanaryManager,gl as CertificateManager,At as CloudError,Ic as CloudFormationBuilder,Kd as CloudFormationClient,Jd as CloudFrontClient,el as CloudTrailManager,uu as CommandHistory,Ae as Communication,S as Compute,Oo as ConfigurationError,Sl as ContainerRegistryManager,Nr as CredentialError,qc as CrossRegionReferenceManager,Od as DASHBOARD_ENTRY,Ld as DASHBOARD_PORT_BASE,Md as DASHBOARD_PORT_SPAN,$d as DASHBOARD_STATE_DIR,vc as DEFAULT_FAILOVER_STATUS_CODES,Bo as DEFAULT_RECURSION_LIMITS,Re as DEFAULT_SERVICE_LIMITS,yc as DEFAULT_STATE_DIR,Dd as DEFAULT_STORAGE_FAILOVER_STATUS_CODES,Sa as DEPTH_HEADER,$l as DLQMonitoringManager,ve as DNS,Rl as DNSSECManager,zt as Database,ul as DatabaseUserManager,_e as DebugLogger,Nd as DependencyGraph,Ce as Deployment,Xd as DeploymentError,Yc as DisasterRecoveryManager,D as Email,gu as EmailAdvanced,Dl as EmailAnalyticsManager,fu as EmailHandlers,_l as EmailTemplateManager,Yd as ErrorCodes,Do as FAILOVER_REPLICA_POLICY_SID,xl as FIFOQueueManager,xc as FileCache,tt as FileSystem,t as Fn,Wc as GlobalResourceManager,tl as GuardDutyManager,tu as HashCache,Kl as HealthCheckManager,hl as ImageScanningManager,Vt as JobLoader,$u as LARAVEL_SERVERLESS_BUILD_STEPS,El as LambdaConcurrencyManager,Al as LambdaDLQManager,wl as LambdaDestinationsManager,vl as LambdaLayersManager,Cl as LambdaVPCManager,Tl as LambdaVersionsManager,al as LogsManager,vu as MANAGED_NODE_VERSIONS,Rc as MANAGEMENT_DASHBOARD_SITE_PREFIX,ke as Messaging,sl as MetricsManager,cl as MigrationManager,Uc as MockCloudFormation,Fc as MockDynamoDB,Bc as MockS3,vi as Monitoring,Jc as MultiAccountManager,Hc as MultiRegionManager,ou as MultiStepProgress,L as Network,Jl as NetworkSecurityManager,wc as ORIGIN_CONNECTION_ATTEMPTS,Cc as ORIGIN_CONNECTION_TIMEOUT,Tc as ORIGIN_GROUP_ALLOWED_METHODS,Mp as ORIGIN_GROUP_ID_SUFFIX,Ec as ORIGIN_GROUP_SELECTION_CRITERIA,Xc as OrganizationManager,Ou as PHP_DEFAULT_EXCLUDES,Tu as PHP_LAYER_EXTENSIONS,X as ParameterStore,dl as PerformanceManager,Ee as Permissions,wt as Phone,hu as PhoneAdvanced,kd as PhoneHandlers,jc as PreviewEnvironmentManager,Vc as PreviewNotificationService,iu as ProgressBar,il as ProgressiveDeploymentManager,Dp as Pseudo,ge as Queue,Ll as QueueManagementManager,Ap as QueuePresets,mu as RECOMMENDED_ACCOUNT_STRUCTURES,_g as RECOMMENDED_SCPS,cu as REPL,du as REPLCommandBuilder,lu as REPLContext,ru as RateLimiter,Ip as RealtimePresets,Ta as RecursionGuard,Ct as Redirects,Gc as RegionPairManager,Et as Registry,ll as ReplicaManager,Xl as ResourceManagementManager,Pl as Route53ResolverManager,Il as Route53RoutingManager,Dc as S3Client,Ie as S3Error,Te as SMS,Sc as STATE_DIR_ENV_VAR,No as STORAGE_FAILOVER_METADATA_KEY,Ht as Search,Ti as Secrets,ml as SecretsManager,pl as SecretsRotationManager,j as Security,cn as SecurityHubManager,fl as SecurityScanningManager,kl as SenderReputationManager,bl as ServiceMeshManager,ko as Sftp,yu as SmsAdvanced,_d as SmsHandlers,su as Spinner,Kc as StackDependencyManager,Up as StacksIntegration,Wl as StaticSiteManager,Ue as Storage,Gl as StorageAdvancedManager,ln as SyntheticsManager,va as TRACE_HEADER,au as TaskList,Ao as TemplateBuilder,$c as TemplateCache,kc as ValidationError,xd as Workflow,ol as XRayManager,cf as abTestManager,Op as analyzeStackDiff,ga as artifactKey,yi as assertOriginGroupMethods,cg as autocomplete,tf as awsConfigManager,Zg as backupManager,Rm as batch,jf as batchProcessingManager,sf as blueGreenManager,Of as bounceComplaintHandler,Hf as buildBunRuntimeLayerZip,la as buildCloudFormationTemplate,aa as buildFailoverReplicaPolicyStatement,Xs as buildMailEnv,zf as buildNodeRuntimeLayerZip,wf as buildOptimizationManager,Ac as buildOriginGroup,Ro as buildOriginGroups,Kf as buildPhpRuntimeLayerZip,sa as buildReplicationConfiguration,oa as buildReplicationRole,af as canaryManager,Lm as categorizeChanges,vf as certificateManager,hm as checkIAMPermissions,Ru as checkInvocation,Sm as checkServiceQuotas,nu as chunk,Tp as clearSigningKeyCache,Bm as cloudConfigSchema,rf as cloudTrailManager,jo as collectPhpAppEntries,nm as composePresets,ha as composeServerlessAppTemplate,Cf as containerRegistryManager,qp as createApiBackendPreset,_u as createCliHandler,um as createCredentialProvider,tm as createDashboardSite,Xp as createDataPipelinePreset,_c as createError,da as createExistingStaticFullStackPreset,Hp as createFullStackAppPreset,Gf as createHandlers,Du as createHttpHandler,Gp as createJamstackPreset,Zp as createLaravelPreset,Qp as createMLApiPreset,Kp as createMicroservicesPreset,qm as createMockAWS,jp as createNodeJsServerPreset,Vp as createNodeJsServerlessPreset,im as createPreset,Rd as createPresignedUrl,yp as createPresignedUrlAsync,ku as createQueueHandler,Jp as createRealtimeAppPreset,pm as createS3Client,em as createServerlessLaravelPreset,zp as createServerlessNodePreset,Fp as createStaticSitePreset,Yp as createTraditionalWebAppPreset,Wp as createWordPressPreset,Ci as createZip,hg as crossRegionReferenceManager,yf as databaseUserManager,Mc as defaultLocalConfig,Rr as deploymentCoexistenceError,Ud as deriveManagementDashboardPort,bc as detectDeploymentTargets,gm as detectMisconfigurations,fc as detectServiceRegion,xm as diffTemplates,Ff as dlqMonitoringManager,xf as dnssecManager,ef as drManager,Lf as emailAnalyticsManager,Uf as emailTemplateManager,Nu as eventToRequest,Nc as extendPreset,Bf as fifoQueueManager,Im as findChangedFiles,Mg as formatAccountStructure,eg as formatBytes,Lp as formatDiff,tg as formatDuration,dg as formatFlagSuggestions,mg as formatHistory,gg as formatHistoryStats,ng as formatKeyValue,rg as formatList,Zm as formatProgressBar,pu as formatRegion,Pg as formatRegionList,ig as formatSuggestion,Qm as formatTable,Ym as formatTree,zd as fromEC2Metadata,Hd as fromECSMetadata,jd as fromEnvironment,Vd as fromSharedCredentials,qd as fromWebIdentity,Bl as functionFingerprint,ya as generateAppImageDockerfile,Qg as generateApprovalConfig,Su as generateBootstrap,Km as generateCleanupWorkflow,Jm as generateCostReportWorkflow,Og as generateCrossAccountRoleCF,Kg as generateDeploymentConfig,zg as generateDeploymentPipeline,Ug as generateDeploymentWorkflow,s as generateLogicalId,Gg as generateManualPipeline,Vg as generateMatrixWorkflow,Jg as generateMultiEnvConfig,Hg as generateMultiEnvPipeline,Bg as generateMultiEnvWorkflow,Fg as generatePRPreviewWorkflow,Yg as generateParallelConfig,xu as generatePhpFpmConfig,wu as generatePhpLayerDockerfile,qg as generatePreviewPipeline,Gm as generatePreviewWorkflow,l as generateResourceName,Xg as generateScheduledConfig,Wg as generateScheduledPipeline,jg as generateScheduledWorkflow,Gd as getAccountId,vg as getAllRegions,Ag as getClosestRegion,ug as getCommandUsage,sg as getContextualHelp,$o as getCredentials,Mm as getDeploymentStrategy,Um as getDiffStats,$m as getDiffSummary,Zd as getErrorDetails,ma as getLocalConfig,zm as getLocalCredentials,Vm as getLocalEndpoint,Hm as getLocalEnvVars,bm as getQuotaUsageSummary,$g as getRecommendedStructure,wi as getRegion,Ng as getRegionStats,Eg as getRegionsByCompliance,Tg as getRegionsByLocation,wg as getRegionsByPricingTier,eu as getRequiredPermissions,Ep as getSigningKeyCacheSize,kp as getTimestamp,yg as globalResourceManager,nf as guardDutyManager,qt as hasManagementDashboardSite,Em as hashBuffer,wm as hashDirectory,Oc as hashFile,Cm as hashManifest,Lc as hashString,Qf as healthCheckManager,Ef as imageScanningManager,jl as inspectInvocation,Au as installRecursionFetch,Hl as invocationContext,og as isLikelyTypo,jm as isLocalDevelopment,Pr as isManagementDashboardSiteName,wp as isNodeCryptoAvailable,Po as isS3RestEndpoint,Gs as isStateDirConfigured,Ks as isStatePath,Cg as isValidRegion,Cp as isWebCryptoAvailable,Pf as lambdaConcurrencyManager,kf as lambdaDLQManager,Nf as lambdaDestinationsManager,If as lambdaLayersManager,Df as lambdaVPCManager,Rf as lambdaVersionsManager,Ea as laravelServerlessEnvDefaults,pf as logsManager,Pd as mailEnabled,Js as mailFirewallPorts,fi as makeAWSRequest,bp as makeAWSRequestAsync,Sp as makeAWSRequestOnce,Pc as managementDashboardSiteName,an as mergeInfrastructure,uf as metricsManager,gf as migrationManager,Dg as multiAccountManager,fg as multiRegionManager,Yf as networkSecurityManager,kg as organizationManager,wa as packagePhpApp,dn as packageServerlessApp,pa as parallel,Pm as parallelMap,Nm as parallelWithRetry,Fl as parseChain,vp as parseJSONResponse,qs as parseXMLResponse,hf as performanceManager,Ml as phpLayerBuildStage,Eu as phpLayerPackages,Ai as phpRuntimeLayerAssets,Wm as previewManager,Xm as previewNotifications,_m as processInChunks,lf as progressiveDeploymentManager,Vl as propagationHeaders,Vf as queueManagementManager,Am as quickHash,zl as recursionBlockedResponse,Sg as regionPairManager,ff as replicaManager,Om as requiresReplacement,qf as resetRecursionRuntime,Wf as resolveApp,C as resolveAppDatabase,F as resolveCloudProvider,ua as resolveCredentials,Bd as resolveDashboardDomain,Fd as resolveDashboardDomains,$p as resolveDeployBucketName,H as resolveDeploymentMode,ra as resolveFailoverStatusCodes,hi as resolveMailService,rm as resolveManagementDashboardSite,Ei as resolveManagementDashboardSites,jt as resolveOriginConnection,E as resolveProjectStackName,fa as resolveQueueNames,Wt as resolveQueues,Cu as resolveRecursionConfig,Wd as resolveRegion,De as resolveServerlessAppStackName,ea as resolveServerlessArtifactBucketName,Io as resolveServerlessAssetBucketName,Uo as resolveServerlessRuntime,Zs as resolveSiteBucketName,Ys as resolveSiteResourceName,Qs as resolveSiteStackName,A as resolveStatePath,xp as resolveStorageBucketName,na as resolveStorageFailover,Zf as resourceManagementManager,ql as responseToResult,$f as route53ResolverManager,_f as route53RoutingManager,bu as runBuildHooks,Fo as runPhpBuildHooks,ia as s3RegionalDomain,_p as sanitizeName,ag as searchCommands,bf as secretsManager,Sf as secretsRotationManager,of as securityHubManager,Tf as securityScanningManager,Mf as senderReputationManager,Dm as sequence,Af as serviceMeshManager,Ws as setStateDir,Mo as sha256,Iu as sharedRecursionGuard,Ul as sharedRuntimeLoop,ae as signRequest,hc as signRequestAsync,bg as stackDependencyManager,Co as stateDir,et as statePath,Jf as staticSiteManager,Xf as storageAdvancedManager,ca as storageFailoverReplicasFromTemplate,zc as suggestCommand,lg as suggestFlags,ym as suggestIAMPolicy,vm as suggestQuotaIncrease,Rg as suggestRegionPairs,Ig as suggestRegions,mf as syntheticsManager,Tm as templateCache,Lg as validateAccountStructure,Fm as validateAgainstSchema,pg as validateCommand,mm as validateConfiguration,fm as validateCredentials,Si as validateOriginGroups,Np as validateResourceLimits,Rp as validateTemplate,Pp as validateTemplateSize,lm as withCDN,cm as withCache,am as withDatabase,Pu as withInvocation,om as withMonitoring,dm as withQueue,sm as withSecurity,km as withTimeout,df as xrayManager};
@@ -1 +0,0 @@
1
- import{v}from"./chunk-5810132y.js";import"./chunk-y5e7dmvc.js";export{v as CloudFormationClient};
@@ -1 +0,0 @@
1
- import{g}from"./chunk-ypsgkj91.js";import"./chunk-y5e7dmvc.js";export{g as S3Client};
@@ -1 +0,0 @@
1
- import{Jn}from"./chunk-ffyhp5tk.js";import"./chunk-13htvxgc.js";import"./chunk-2857cbf1.js";import"./chunk-5810132y.js";import"./chunk-e3tjy3wg.js";import"./chunk-ypsgkj91.js";import"./chunk-y5e7dmvc.js";import"./chunk-4a8qt6e8.js";export{Jn as resolveServerDashboardData};
@@ -1 +0,0 @@
1
- import{pc,hp}from"./chunk-qfgvvwmb.js";import"./chunk-kcprsn33.js";import"./chunk-ypsgkj91.js";import"./chunk-y5e7dmvc.js";export{pc as EmailClient,hp as email};
@@ -1 +0,0 @@
1
- import{zu,Hu,qu,Wu}from"./chunk-66f51kn2.js";import"./chunk-ypsgkj91.js";import"./chunk-y5e7dmvc.js";import"./chunk-4a8qt6e8.js";export{Wu as deleteFailoverReplicaBuckets,zu as ensureFailoverReplicaBuckets,Hu as grantFailoverReplicaAccess,qu as seedFailoverReplicas};
@@ -1 +0,0 @@
1
- import{w}from"./chunk-494fg5c6.js";import"./chunk-y5e7dmvc.js";export{w as CloudFrontClient};
@@ -1 +0,0 @@
1
- import{Tr,mc,gc,Tt,Er,wr,Cr,Ar,nn}from"./chunk-cgyqnbcm.js";import"./chunk-817q3s2p.js";import"./chunk-4a8qt6e8.js";export{Er as AwsSecretsManagerConfigurationBackend,wr as AwsSsmConfigurationBackend,Ar as ConfigurationService,Tr as ConfigurationStore,Cr as ExternalConfigurationBackend,Tt as LocalEncryptedConfigurationBackend,mc as parseDotenv,gc as serializeDotenv,nn as synchronizeConfiguredConfiguration};
@@ -1 +0,0 @@
1
- import{Ds,gp,fp,ks}from"./chunk-0hbrkdrc.js";import"./chunk-e3tjy3wg.js";import"./chunk-4a8qt6e8.js";export{gp as getComputeDeployHistory,ks as restoreDatabaseBackup,Ds as rollbackComputeSite,fp as runComputeRecipe};
@@ -1 +0,0 @@
1
- import{R}from"./chunk-qx05kccj.js";import"./chunk-y5e7dmvc.js";export{R as LambdaClient};
@@ -1 +0,0 @@
1
- import{Q}from"./chunk-13htvxgc.js";import"./chunk-y5e7dmvc.js";export{Q as EC2Client};
@@ -1,60 +0,0 @@
1
- import{Yr,G,so,Lt,M}from"./chunk-k545r9bk.js";import{v}from"./chunk-5810132y.js";import{w}from"./chunk-494fg5c6.js";import{g}from"./chunk-ypsgkj91.js";import{B}from"./chunk-kcprsn33.js";function _(t){let{bucketName:s,domain:l,aliases:e,certificateArn:p,defaultRootObject:i="index.html",errorDocument:r="404.html",passthroughUrls:a=!1,singlePageApp:d=!1,dynamicApp:A=!1,computeOriginDomain:D,computeOriginPort:O=3008,computeOriginId:F="app-compute",retainOnStackDelete:U=!1}=t,C=U?{DeletionPolicy:"Retain",UpdateReplacePolicy:"Retain"}:{},h=A&&!!D,j=h?["GET","HEAD","OPTIONS","PUT","POST","PATCH","DELETE"]:["GET","HEAD"],E=h?["GET","HEAD"]:["GET","HEAD"],R={},x={};R.S3Bucket={Type:"AWS::S3::Bucket",...C,Properties:{BucketName:s,PublicAccessBlockConfiguration:{BlockPublicAcls:!0,BlockPublicPolicy:!1,IgnorePublicAcls:!0,RestrictPublicBuckets:!1},WebsiteConfiguration:{IndexDocument:i,ErrorDocument:r}}},x.BucketName={Description:"S3 Bucket Name",Value:{Ref:"S3Bucket"}},x.BucketArn={Description:"S3 Bucket ARN",Value:{"Fn::GetAtt":["S3Bucket","Arn"]}},R.CloudFrontOAC={Type:"AWS::CloudFront::OriginAccessControl",...C,Properties:{OriginAccessControlConfig:{Name:`OAC-${s}`,Description:`OAC for ${s}`,OriginAccessControlOriginType:"s3",SigningBehavior:"always",SigningProtocol:"sigv4"}}};let y;if(a&&h)y="InstallRootRedirectFunction",R[y]={Type:"AWS::CloudFront::Function",Properties:{Name:{"Fn::Sub":"${AWS::StackName}-install-root-redirect"},AutoPublish:!0,FunctionConfig:{Comment:"Redirect curl pantry.dev | bash (GET /) to /install.sh on S3",Runtime:"cloudfront-js-2.0"},FunctionCode:`function handler(event) {
2
- var request = event.request;
3
- if (request.uri === '/' || request.uri === '') {
4
- return {
5
- statusCode: 302,
6
- statusDescription: 'Found',
7
- headers: {
8
- location: { value: 'https://' + request.headers.host.value + '/install.sh' }
9
- }
10
- };
11
- }
12
- return request;
13
- }`}};if(!a)R.UrlRewriteFunction={Type:"AWS::CloudFront::Function",Properties:{Name:{"Fn::Sub":"${AWS::StackName}-url-rewrite"},AutoPublish:!0,FunctionConfig:{Comment:"Append .html extension to URLs without extensions",Runtime:"cloudfront-js-2.0"},FunctionCode:`function handler(event) {
14
- const request = event.request;
15
- var uri = request.uri;
16
-
17
- // If URI ends with /, serve index.html
18
- if (uri.endsWith('/')) {
19
- request.uri = uri + 'index.html';
20
- }
21
- // If URI doesn't have an extension, append .html
22
- else if (!uri.includes('.')) {
23
- request.uri = uri + '.html';
24
- }
25
-
26
- return request;
27
- }`}};let N={Id:`S3-${s}`,DomainName:{"Fn::GetAtt":["S3Bucket","RegionalDomainName"]},S3OriginConfig:{OriginAccessIdentity:""},OriginAccessControlId:{"Fn::GetAtt":["CloudFrontOAC","Id"]}},u=h?{Id:F,DomainName:D,CustomOriginConfig:{HTTPPort:O,HTTPSPort:443,OriginProtocolPolicy:"http-only",OriginSSLProtocols:["TLSv1.2"]}}:null,S=h?F:`S3-${s}`,b={Enabled:!0,DefaultRootObject:i,HttpVersion:"http2and3",IPV6Enabled:!0,PriceClass:"PriceClass_100",Origins:u?[u,N]:[N],DefaultCacheBehavior:{TargetOriginId:S,ViewerProtocolPolicy:"redirect-to-https",AllowedMethods:j,CachedMethods:E,Compress:!0,...h?{CachePolicyId:"4135ea2d-6df8-44a3-9df3-4b5a84be39ad",OriginRequestPolicyId:"b689b0a8-53d0-40ab-baf2-68738e2966ac",...a&&y?{FunctionAssociations:[{EventType:"viewer-request",FunctionARN:{"Fn::GetAtt":[y,"FunctionARN"]}}]}:{}}:{CachePolicyId:"658327ea-f89d-4fab-a63d-7e88639e58f6",...!a&&{FunctionAssociations:[{EventType:"viewer-request",FunctionARN:{"Fn::GetAtt":["UrlRewriteFunction","FunctionARN"]}}]}}},...h&&a?{CacheBehaviors:[{PathPattern:"/install.sh",TargetOriginId:`S3-${s}`,ViewerProtocolPolicy:"redirect-to-https",AllowedMethods:["GET","HEAD","OPTIONS"],CachedMethods:["GET","HEAD","OPTIONS"],Compress:!0,CachePolicyId:"658327ea-f89d-4fab-a63d-7e88639e58f6"}]}:{},CustomErrorResponses:d?[{ErrorCode:403,ResponseCode:200,ResponsePagePath:`/${i}`,ErrorCachingMinTTL:300},{ErrorCode:404,ResponseCode:200,ResponsePagePath:`/${i}`,ErrorCachingMinTTL:300}]:[{ErrorCode:403,ResponseCode:404,ResponsePagePath:`/${r}`,ErrorCachingMinTTL:300},{ErrorCode:404,ResponseCode:404,ResponsePagePath:`/${r}`,ErrorCachingMinTTL:300}]};if(l&&p)b.Aliases=e&&e.length>0?e:[l],b.ViewerCertificate={AcmCertificateArn:p,SslSupportMethod:"sni-only",MinimumProtocolVersion:"TLSv1.2_2021"};else b.ViewerCertificate={CloudFrontDefaultCertificate:!0};return R.CloudFrontDistribution={Type:"AWS::CloudFront::Distribution",...C,DependsOn:["S3Bucket","CloudFrontOAC",...a&&h&&y?[y]:[],...!a?["UrlRewriteFunction"]:[]],Properties:{DistributionConfig:b}},x.DistributionId={Description:"CloudFront Distribution ID",Value:{Ref:"CloudFrontDistribution"}},x.DistributionDomain={Description:"CloudFront Distribution Domain",Value:{"Fn::GetAtt":["CloudFrontDistribution","DomainName"]}},R.S3BucketPolicy={Type:"AWS::S3::BucketPolicy",...C,DependsOn:["S3Bucket","CloudFrontDistribution"],Properties:{Bucket:{Ref:"S3Bucket"},PolicyDocument:{Version:"2012-10-17",Statement:[{Sid:"AllowCloudFrontServicePrincipal",Effect:"Allow",Principal:{Service:"cloudfront.amazonaws.com"},Action:"s3:GetObject",Resource:{"Fn::Sub":"arn:aws:s3:::${S3Bucket}/*"},Condition:{StringEquals:{"AWS:SourceArn":{"Fn::Sub":"arn:aws:cloudfront::${AWS::AccountId}:distribution/${CloudFrontDistribution}"}}}}]}}},x.SiteUrl={Description:"Site URL",Value:l?`https://${l}`:{"Fn::Sub":"https://${CloudFrontDistribution.DomainName}"}},{AWSTemplateFormatVersion:"2010-09-09",Description:`Static site infrastructure for ${l||s} (External DNS)`,Resources:R,Outputs:x}}async function q(t){let s=t.region||"us-east-1",l="us-east-1",e=t.domain,p=t.bucket||e.replace(/\./g,"-"),i=t.stackName||`${t.siteName}-static-site`,r=new v("us-east-1"),a=new G("us-east-1"),d=null;if(!t.skipDnsVerification){d=M(t.dnsProvider),console.log(`Verifying DNS provider can manage ${e}...`);let o=await d.listRecords(e);if(!o.success){let n=o.message||"unknown error — check API credentials and domain ownership";return{success:!1,stackName:i,bucket:p,message:`DNS provider '${d.name}' cannot manage domain ${e}: ${n}`}}console.log(`DNS provider '${d.name}' verified for ${e}`)}else console.log(`Skipping DNS verification for ${e}`);let A=t.certificateArn,F=e.split(".").length===2?`www.${e}`:void 0;if(!A){console.log(`Checking for existing SSL certificate for ${e}...`);let o=await a.findCertificateByDomain(e),n=!1;if(o&&o.Status==="ISSUED"){if(F&&o.SubjectAlternativeNames)n=o.SubjectAlternativeNames.includes(F)||o.SubjectAlternativeNames.some((m)=>m===`*.${e}`);else n=!0;if(n)A=o.CertificateArn,console.log(`Found existing certificate with www coverage: ${A}`);else console.log(`Existing certificate doesn't cover ${F}, requesting new one...`)}if(!A){if(!d)return{success:!1,stackName:i,bucket:p,message:`No DNS provider available to validate SSL certificate for ${e}. Provide a certificateArn or enable DNS verification.`};console.log(`Requesting new SSL certificate for ${e}${F?` (including ${F})`:""}...`);let f=await new Lt(d,"us-east-1").findOrCreateCertificate({domainName:e,subjectAlternativeNames:F?[F]:void 0,waitForValidation:!0,maxWaitMinutes:10});if(f.status!=="issued")return{success:!1,stackName:i,bucket:p,message:`SSL certificate validation failed. Status: ${f.status}`};A=f.certificateArn,console.log(`Certificate issued: ${A}`)}}let U=!1,C;try{let o=await r.describeStacks({stackName:i});if(o.Stacks.length>0){let n=o.Stacks[0],m=n.StackStatus;if(m==="DELETE_IN_PROGRESS")console.log("Previous stack is still being deleted, waiting..."),await r.waitForStack(i,"stack-delete-complete"),U=!1;else if(m==="DELETE_COMPLETE")U=!1;else U=!0,C=(n.Outputs||[]).find((c)=>c.OutputKey==="BucketName")?.OutputValue}}catch(o){if(o.message?.includes("does not exist")||o.code==="ValidationError")U=!1;else throw o}let h=C||p;if(!U){let o=new g(s),n=new w,m=!1;if(e)try{console.log(`Checking for existing CloudFront distributions with alias ${e}...`);let f=await n.listDistributions();for(let c of f){let k=[];if(c.Aliases?.Items){if(Array.isArray(c.Aliases.Items))k=c.Aliases.Items;else if(typeof c.Aliases.Items==="object"){let P=c.Aliases.Items.CNAME;if(typeof P==="string")k=[P];else if(Array.isArray(P))k=P}}if(k.includes(e)){m=!0,console.log(`Found existing CloudFront distribution ${c.Id} with alias ${e}`),console.log("Reusing existing infrastructure for updates...");let I=(await n.getDistributionConfig(c.Id)).DistributionConfig?.Origins?.Items,V;if(I){let T=[];if(Array.isArray(I))T=I;else if(I.Origin)T=Array.isArray(I.Origin)?I.Origin:[I.Origin];else T=[I];for(let L of T){let W=(L.DomainName||"").match(/^([^.]+)\.s3[\.-]/);if(W){V=W[1];break}}}if(V)return console.log(`Using existing S3 bucket: ${V}`),{success:!0,stackName:`existing-${c.Id}`,bucket:V,distributionId:c.Id,distributionDomain:c.DomainName,domain:e,certificateArn:A,message:"Using existing CloudFront distribution",_existingInfrastructure:!0}}}}catch{}if(!m)try{if((await o.headBucket(p)).exists){console.log(`Found orphaned S3 bucket ${p}, cleaning up...`);try{let c=o.emptyBucket(p).then(()=>o.deleteBucket(p)),k=new Promise((P,I)=>setTimeout(()=>I(Error("Bucket cleanup timeout")),30000));await Promise.race([c,k]),console.log(`Deleted orphaned S3 bucket ${p}`)}catch(c){console.log(`Note: Could not clean up S3 bucket: ${c.message}`);let k=Date.now().toString(36);h=`${p}-${k}`,console.log(`Using alternative bucket name: ${h}`)}}}catch{}}let E=_({bucketName:h,domain:e,aliases:F?[e,F]:[e],certificateArn:A,defaultRootObject:t.defaultRootObject,errorDocument:t.errorDocument,passthroughUrls:t.passthroughUrls,singlePageApp:t.singlePageApp,dynamicApp:t.dynamicApp,computeOriginDomain:t.computeOriginDomain,computeOriginPort:t.computeOriginPort,computeOriginId:t.computeOriginId}),R=Object.entries(t.tags||{}).map(([o,n])=>({Key:o,Value:n}));if(R.push({Key:"ManagedBy",Value:"ts-cloud"}),R.push({Key:"Application",Value:t.siteName}),d)R.push({Key:"DnsProvider",Value:d.name});let x,y=!1;if(U){y=!0,console.log(`Updating CloudFormation stack: ${i}`);try{x=(await r.updateStack({stackName:i,templateBody:JSON.stringify(E),capabilities:["CAPABILITY_IAM"],tags:R})).StackId,console.log(`Update initiated, stack ID: ${x}`)}catch(o){if(o.message?.includes("No updates are to be performed")){let n=await r.describeStacks({stackName:i});x=n.Stacks[0].StackId;let m=n.Stacks[0]?.Outputs||[],f=(k)=>m.find((P)=>P.OutputKey===k)?.OutputValue,c=f("DistributionDomain");if(c)await H(d,e,c);return{success:!0,stackId:x,stackName:i,bucket:f("BucketName")||h,distributionId:f("DistributionId"),distributionDomain:c,domain:e,certificateArn:A,message:"Static site infrastructure is already up to date"}}else throw o}}else console.log(`Creating CloudFormation stack: ${i}`),console.log(`Bucket name: ${h}`),console.log(`Domain: ${e}`),console.log(`Certificate ARN: ${A}`),x=(await r.createStack({stackName:i,templateBody:JSON.stringify(E),capabilities:["CAPABILITY_IAM"],tags:R,onFailure:"DELETE"})).StackId,console.log(`Create initiated, stack ID: ${x}`);console.log(`Waiting for stack to reach ${y?"stack-update-complete":"stack-create-complete"}...`);try{await r.waitForStack(i,y?"stack-update-complete":"stack-create-complete"),console.log("Stack operation completed successfully!")}catch(o){if(o.message?.includes("must be verified")||o.message?.includes("Access denied for operation")){console.log("CloudFront account verification required - checking for existing infrastructure...");try{let m=new w,f=await m.listDistributions();for(let c of f){let k=[];if(c.Aliases?.Items){if(Array.isArray(c.Aliases.Items))k=c.Aliases.Items;else if(typeof c.Aliases.Items==="object"){let P=c.Aliases.Items.CNAME;if(typeof P==="string")k=[P];else if(Array.isArray(P))k=P}}if(k.includes(e)){console.log(`Found existing CloudFront distribution ${c.Id} with alias ${e}`),console.log("Using existing infrastructure despite account verification requirement...");let I=(await m.getDistributionConfig(c.Id)).DistributionConfig?.Origins?.Items,V;if(I){let T=[];if(Array.isArray(I))T=I;else if(I.Origin)T=Array.isArray(I.Origin)?I.Origin:[I.Origin];else T=[I];for(let L of T){let W=(L.DomainName||"").match(/^([^.]+)\.s3[\.-]/);if(W){V=W[1];break}}}if(V){console.log(`Using existing S3 bucket: ${V}`);let T=c.DomainName;if(T)await H(d,e,T);return{success:!0,stackName:`existing-${c.Id}`,bucket:V,distributionId:c.Id,distributionDomain:c.DomainName,domain:e,certificateArn:A,message:"Using existing CloudFront distribution (account verification pending for new distributions)"}}}}}catch{}return console.log(`
28
- ┌─────────────────────────────────────────────────────────────────────────────┐
29
- │ AWS ACCOUNT VERIFICATION REQUIRED │
30
- ├─────────────────────────────────────────────────────────────────────────────┤
31
- │ Your AWS account must be verified before you can create CloudFront │
32
- │ distributions. This is a one-time requirement for new AWS accounts. │
33
- │ │
34
- │ To verify your account: │
35
- │ │
36
- │ 1. Go to: https://console.aws.amazon.com/support/home#/ │
37
- │ 2. Click "Create case" │
38
- │ 3. Select "Service limit increase" │
39
- │ 4. For Service: Select "CloudFront" │
40
- │ 5. For Request: "Please verify my account for CloudFront access" │
41
- │ 6. Submit the case │
42
- │ │
43
- │ Verification typically takes 1-2 business days. │
44
- │ After verification, re-run: bunx bunpress deploy │
45
- └─────────────────────────────────────────────────────────────────────────────┘`),{success:!1,stackId:x,stackName:i,bucket:h,message:"CloudFront account verification required. Please contact AWS Support."}}return{success:!1,stackId:x,stackName:i,bucket:h,message:`Stack deployment failed: ${o.message}`}}let u=(await r.describeStacks({stackName:i})).Stacks[0]?.Outputs||[],S=(o)=>u.find((n)=>n.OutputKey===o)?.OutputValue,b=S("DistributionDomain");if(b&&d)console.log(`Creating DNS records via ${d.name}...`),await H(d,e,b);else if(b&&!d)console.log("Skipping DNS record creation (DNS verification was skipped)");return{success:!0,stackId:x,stackName:i,bucket:S("BucketName")||h,distributionId:S("DistributionId"),distributionDomain:b,domain:e,certificateArn:A,message:"Static site infrastructure deployed successfully with external DNS"}}async function H(t,s,l){if(!t){console.log("Skipping DNS record creation (DNS verification was skipped)");return}if(s.split(".").length===2)if(t instanceof Yr){console.log(`Creating Route53 alias record for apex domain ${s} -> ${l}`);let i=await t.createCloudFrontAlias({domain:s,name:s,cloudFrontDomainName:l});if(!i.success)console.warn(`Warning: Could not create Route53 alias record: ${i.message}`),console.warn("Please manually create an A-record alias in Route53:"),console.warn(` ${s} -> ${l}`);else console.log(`Created Route53 alias record: ${s} -> ${l}`);let r=`www.${s}`;console.log(`Creating Route53 alias record for ${r} -> ${l}`);let a=await t.createCloudFrontAlias({domain:s,name:r,cloudFrontDomainName:l});if(!a.success)console.warn(`Warning: Could not create www Route53 alias: ${a.message}`),console.warn("Please manually create an A-record alias in Route53:"),console.warn(` ${r} -> ${l}`);else console.log(`Created Route53 alias record: ${r} -> ${l}`)}else{try{let d=await t.listRecords(s,"A");if(d.success)for(let A of d.records){let D=A.name.replace(/\.$/,"");if(D===s||D==="")console.log(`Removing existing root A record (${A.content}) to make room for ALIAS...`),await t.deleteRecord(s,{name:s,type:"A",content:A.content})}}catch(d){console.log(`Note: Could not check for conflicting A records: ${d instanceof Error?d.message:d}`)}console.log(`Creating ALIAS record for apex domain ${s} -> ${l}`);let i=await t.upsertRecord(s,{name:s,type:"ALIAS",content:l,ttl:600});if(!i.success)console.warn(`Warning: Could not create ALIAS record: ${i.message}`),console.warn("Please manually create an ALIAS record in your DNS provider:"),console.warn(` ${s} -> ${l}`);else console.log(`Created ALIAS record: ${s} -> ${l}`);let r=`www.${s}`;console.log(`Creating CNAME record for ${r} -> ${l}`);let a=await t.upsertRecord(s,{name:r,type:"CNAME",content:l,ttl:600});if(!a.success)console.warn(`Warning: Could not create www DNS record: ${a.message}`),console.warn("Please manually create a CNAME record:"),console.warn(` ${r} -> ${l}`);else console.log(`Created CNAME record: ${r} -> ${l}`)}else{console.log(`Creating CNAME record for ${s} -> ${l}`);let i=await t.upsertRecord(s,{name:s,type:"CNAME",content:l,ttl:600});if(!i.success)console.warn(`Warning: Could not create DNS record: ${i.message}`),console.warn("Please manually create a CNAME record:"),console.warn(` ${s} -> ${l}`);else console.log(`Created CNAME record: ${s} -> ${l}`)}}async function Ri(t){let{sourceDir:s,cleanBucket:l=!1,onProgress:e,...p}=t;e?.("infrastructure","Deploying CloudFormation stack...");let i=await q(p);if(!i.success)return i;if(l){e?.("clean","Cleaning old files from S3...");try{await new g(p.region||"us-east-1").emptyBucket(i.bucket)}catch(A){console.log(`Note: Could not clean bucket: ${A.message}`)}}e?.("upload","Uploading files to S3...");let{uploadStaticFiles:r}=await import("./chunk-zqa6jarz.js"),a=await r({sourceDir:s,bucket:i.bucket,region:p.region||"us-east-1",cacheControl:p.cacheControl,onProgress:(A,D,O)=>{e?.("upload",`${A}/${D}: ${O}`)}});if(a.errors.length>0)return{...i,success:!1,message:`Upload errors: ${a.errors.join(", ")}`,filesUploaded:a.uploaded};if(i.distributionId&&a.uploaded>0){e?.("invalidate","Invalidating CloudFront cache...");let{invalidateCache:A}=await import("./chunk-zqa6jarz.js");await A(i.distributionId)}e?.("complete","Deployment complete!");let d=a.skipped>0?`Deployed ${a.uploaded} files (${a.skipped} unchanged) with external DNS`:`Deployed ${a.uploaded} files successfully with external DNS`;return{...i,filesUploaded:a.uploaded,filesSkipped:a.skipped,message:d}}function Zl(t){let{bucketName:s,domain:l,certificateArn:e,hostedZoneId:p,defaultRootObject:i="index.html",errorDocument:r="404.html"}=t,a={},d={};a.S3Bucket={Type:"AWS::S3::Bucket",Properties:{BucketName:s,PublicAccessBlockConfiguration:{BlockPublicAcls:!0,BlockPublicPolicy:!1,IgnorePublicAcls:!0,RestrictPublicBuckets:!1},WebsiteConfiguration:{IndexDocument:i,ErrorDocument:r}}},d.BucketName={Description:"S3 Bucket Name",Value:{Ref:"S3Bucket"}},d.BucketArn={Description:"S3 Bucket ARN",Value:{"Fn::GetAtt":["S3Bucket","Arn"]}},a.CloudFrontOAC={Type:"AWS::CloudFront::OriginAccessControl",Properties:{OriginAccessControlConfig:{Name:`OAC-${s}`,Description:`OAC for ${s}`,OriginAccessControlOriginType:"s3",SigningBehavior:"always",SigningProtocol:"sigv4"}}},a.UrlRewriteFunction={Type:"AWS::CloudFront::Function",Properties:{Name:{"Fn::Sub":"${AWS::StackName}-url-rewrite"},AutoPublish:!0,FunctionConfig:{Comment:"Append .html extension to URLs without extensions",Runtime:"cloudfront-js-2.0"},FunctionCode:`function handler(event) {
46
- const request = event.request;
47
- var uri = request.uri;
48
-
49
- // If URI ends with /, serve index.html
50
- if (uri.endsWith('/')) {
51
- request.uri = uri + 'index.html';
52
- }
53
- // If URI doesn't have an extension, append .html
54
- else if (!uri.includes('.')) {
55
- request.uri = uri + '.html';
56
- }
57
-
58
- return request;
59
- }`}};let A={Enabled:!0,DefaultRootObject:i,HttpVersion:"http2and3",IPV6Enabled:!0,PriceClass:"PriceClass_100",Origins:[{Id:`S3-${s}`,DomainName:{"Fn::GetAtt":["S3Bucket","RegionalDomainName"]},S3OriginConfig:{OriginAccessIdentity:""},OriginAccessControlId:{"Fn::GetAtt":["CloudFrontOAC","Id"]}}],DefaultCacheBehavior:{TargetOriginId:`S3-${s}`,ViewerProtocolPolicy:"redirect-to-https",AllowedMethods:["GET","HEAD"],CachedMethods:["GET","HEAD"],Compress:!0,CachePolicyId:"658327ea-f89d-4fab-a63d-7e88639e58f6",FunctionAssociations:[{EventType:"viewer-request",FunctionARN:{"Fn::GetAtt":["UrlRewriteFunction","FunctionARN"]}}]},CustomErrorResponses:[{ErrorCode:403,ResponseCode:200,ResponsePagePath:`/${i}`,ErrorCachingMinTTL:300},{ErrorCode:404,ResponseCode:404,ResponsePagePath:`/${r}`,ErrorCachingMinTTL:300}]};if(l&&e)A.Aliases=[l],A.ViewerCertificate={AcmCertificateArn:e,SslSupportMethod:"sni-only",MinimumProtocolVersion:"TLSv1.2_2021"};else A.ViewerCertificate={CloudFrontDefaultCertificate:!0};if(a.CloudFrontDistribution={Type:"AWS::CloudFront::Distribution",DependsOn:["S3Bucket","CloudFrontOAC","UrlRewriteFunction"],Properties:{DistributionConfig:A}},d.DistributionId={Description:"CloudFront Distribution ID",Value:{Ref:"CloudFrontDistribution"}},d.DistributionDomain={Description:"CloudFront Distribution Domain",Value:{"Fn::GetAtt":["CloudFrontDistribution","DomainName"]}},a.S3BucketPolicy={Type:"AWS::S3::BucketPolicy",DependsOn:["S3Bucket","CloudFrontDistribution"],Properties:{Bucket:{Ref:"S3Bucket"},PolicyDocument:{Version:"2012-10-17",Statement:[{Sid:"AllowCloudFrontServicePrincipal",Effect:"Allow",Principal:{Service:"cloudfront.amazonaws.com"},Action:"s3:GetObject",Resource:{"Fn::Sub":"arn:aws:s3:::${S3Bucket}/*"},Condition:{StringEquals:{"AWS:SourceArn":{"Fn::Sub":"arn:aws:cloudfront::${AWS::AccountId}:distribution/${CloudFrontDistribution}"}}}}]}}},l&&p)a.DNSRecord={Type:"AWS::Route53::RecordSet",DependsOn:"CloudFrontDistribution",Properties:{HostedZoneId:p,Name:l,Type:"A",AliasTarget:{DNSName:{"Fn::GetAtt":["CloudFrontDistribution","DomainName"]},HostedZoneId:"Z2FDTNDATAQYW2",EvaluateTargetHealth:!1}}},a.DNSRecordIPv6={Type:"AWS::Route53::RecordSet",DependsOn:"CloudFrontDistribution",Properties:{HostedZoneId:p,Name:l,Type:"AAAA",AliasTarget:{DNSName:{"Fn::GetAtt":["CloudFrontDistribution","DomainName"]},HostedZoneId:"Z2FDTNDATAQYW2",EvaluateTargetHealth:!1}}},d.SiteUrl={Description:"Site URL",Value:{"Fn::Sub":"https://${DNSRecord}"}};return{AWSTemplateFormatVersion:"2010-09-09",Description:`Static site infrastructure for ${l||s}`,Resources:a,Outputs:d}}async function ed(t){if(t.dnsProvider&&t.dnsProvider.provider!=="route53"){let u=t.domain||(t.subdomain&&t.baseDomain?`${t.subdomain}.${t.baseDomain}`:void 0);if(!u)return{success:!1,stackName:t.stackName||`${t.siteName}-static-site`,bucket:t.bucket||`${t.siteName}-${Date.now()}`,message:"Domain is required when using external DNS provider"};return q({siteName:t.siteName,region:t.region,domain:u,bucket:t.bucket,certificateArn:t.certificateArn,stackName:t.stackName,defaultRootObject:t.defaultRootObject,errorDocument:t.errorDocument,cacheControl:t.cacheControl,tags:t.tags,dnsProvider:t.dnsProvider})}let s=t.region||"us-east-1",l="us-east-1",e;if(t.domain)e=t.domain;else if(t.subdomain&&t.baseDomain)e=`${t.subdomain}.${t.baseDomain}`;let p=t.bucket||(e?e.replace(/\./g,"-"):`${t.siteName}-${Date.now()}`),i=t.stackName||`${t.siteName}-static-site`,r=new v(l),a=new B,d=new G("us-east-1"),A=new so("us-east-1"),{hostedZoneId:D,certificateArn:O}=t;if(e&&!D){let u=await a.findHostedZoneForDomain(e);if(u)D=u.Id.replace("/hostedzone/","");else return{success:!1,stackName:i,bucket:p,message:`No Route53 hosted zone found for ${t.baseDomain||e}. Please create one first.`}}if(e&&!O&&D){let u=await d.findCertificateByDomain(e);if(u&&u.Status==="ISSUED")O=u.CertificateArn;else O=(await A.requestAndValidate({domainName:e,hostedZoneId:D,waitForValidation:!0,maxWaitMinutes:10})).certificateArn}let F=!1,U;try{let u=await r.describeStacks({stackName:i});if(u.Stacks.length>0){let S=u.Stacks[0],b=S.StackStatus;if(b==="DELETE_IN_PROGRESS")console.log("Previous stack is still being deleted, waiting..."),await r.waitForStack(i,"stack-delete-complete"),F=!1;else if(b==="DELETE_COMPLETE")F=!1;else F=!0,U=(S.Outputs||[]).find((n)=>n.OutputKey==="BucketName")?.OutputValue}}catch(u){if(u.message?.includes("does not exist")||u.code==="ValidationError")F=!1;else throw u}let C=U||p;if(!F){let u=new g(s),S=new w,b=!1;if(e){try{console.log(`Checking for existing CloudFront distribution for ${e}...`);let o=await S.listDistributions();for(let n of o){let m=[];if(n.Aliases?.Items){if(Array.isArray(n.Aliases.Items))m=n.Aliases.Items;else if(typeof n.Aliases.Items==="object"){let f=n.Aliases.Items.CNAME;if(typeof f==="string")m=[f];else if(Array.isArray(f))m=f}}if(m.includes(e)){b=!0,console.log(`Found existing CloudFront distribution ${n.Id} for ${e}`);let c=(await S.getDistributionConfig(n.Id)).DistributionConfig?.Origins?.Items,k;if(c){let P=[];if(Array.isArray(c))P=c;else if(c.Origin)P=Array.isArray(c.Origin)?c.Origin:[c.Origin];else P=[c];for(let I of P){let T=(I.DomainName||"").match(/^([^.]+)\.s3[\.-]/);if(T){k=T[1];break}}}if(k){let P=e.replace(/\./g,"-");if(!k.startsWith(P)&&!k.includes(t.siteName)){console.log(`Warning: Found distribution with mismatched bucket ${k}, skipping...`);continue}if(console.log(`Using existing S3 bucket: ${k}`),D&&n.DomainName)try{console.log(`Ensuring Route53 records exist for ${e}...`),await a.createAliasRecord({HostedZoneId:D,Name:e,Type:"A",TargetHostedZoneId:B.CloudFrontHostedZoneId,TargetDNSName:n.DomainName,EvaluateTargetHealth:!1}),await a.createAliasRecord({HostedZoneId:D,Name:e,Type:"AAAA",TargetHostedZoneId:B.CloudFrontHostedZoneId,TargetDNSName:n.DomainName,EvaluateTargetHealth:!1}),console.log(`Route53 records ensured for ${e}`)}catch(I){console.log(`Note: Could not update Route53 records: ${I.message}`)}return{success:!0,stackName:`existing-${n.Id}`,bucket:k,distributionId:n.Id,distributionDomain:n.DomainName,domain:e,certificateArn:O,message:"Using existing CloudFront distribution"}}}}}catch{}if(D)try{let n=(await a.listResourceRecordSets({HostedZoneId:D})).ResourceRecordSets||[];for(let m of n)if(m.Name===`${e}.`&&(m.Type==="A"||m.Type==="AAAA")){if(m.AliasTarget){console.log(`Found orphaned Route53 ${m.Type} record for ${e}, cleaning up...`);try{await a.deleteRecord({HostedZoneId:D,RecordSet:m}),console.log(`Deleted orphaned Route53 ${m.Type} record for ${e}`)}catch(f){console.log(`Note: Could not delete Route53 record: ${f.message}`)}}}}catch{}}if(!b)try{if((await u.headBucket(p)).exists){console.log(`Found orphaned S3 bucket ${p}, cleaning up...`);try{let n=u.emptyBucket(p).then(()=>u.deleteBucket(p)),m=new Promise((f,c)=>setTimeout(()=>c(Error("Bucket cleanup timeout")),30000));await Promise.race([n,m]),console.log(`Deleted orphaned S3 bucket ${p}`)}catch(n){console.log(`Note: Could not clean up S3 bucket: ${n.message}`);let m=Date.now().toString(36);C=`${p}-${m}`,console.log(`Using alternative bucket name: ${C}`)}}}catch{}}let h=Zl({bucketName:C,domain:e,certificateArn:O,hostedZoneId:D,defaultRootObject:t.defaultRootObject,errorDocument:t.errorDocument}),j=Object.entries(t.tags||{}).map(([u,S])=>({Key:u,Value:S}));j.push({Key:"ManagedBy",Value:"ts-cloud"}),j.push({Key:"Application",Value:t.siteName});let E,R=!1;if(F){R=!0,console.log(`Updating CloudFormation stack: ${i}`),console.log(`Using existing bucket: ${C}`),console.log(`Domain: ${e||"not specified"}`),console.log(`Certificate ARN: ${O||"not specified"}`);try{E=(await r.updateStack({stackName:i,templateBody:JSON.stringify(h),capabilities:["CAPABILITY_IAM"],tags:j})).StackId,console.log(`Update initiated, stack ID: ${E}`)}catch(u){if(u.message?.includes("No updates are to be performed")){let S=await r.describeStacks({stackName:i});E=S.Stacks[0].StackId;let b=S.Stacks[0]?.Outputs||[],o=(n)=>b.find((m)=>m.OutputKey===n)?.OutputValue;return{success:!0,stackId:E,stackName:i,bucket:o("BucketName")||C,distributionId:o("DistributionId"),distributionDomain:o("DistributionDomain"),domain:e,certificateArn:O,message:"Static site infrastructure is already up to date"}}else throw u}}else console.log(`Creating CloudFormation stack: ${i}`),console.log(`Bucket name: ${C}`),console.log(`Domain: ${e||"not specified"}`),console.log(`Certificate ARN: ${O||"not specified"}`),console.log("Stack does not exist, creating..."),E=(await r.createStack({stackName:i,templateBody:JSON.stringify(h),capabilities:["CAPABILITY_IAM"],tags:j,onFailure:"DELETE"})).StackId,console.log(`Create initiated, stack ID: ${E}`);console.log(`Waiting for stack to reach ${R?"stack-update-complete":"stack-create-complete"}...`);try{await r.waitForStack(i,R?"stack-update-complete":"stack-create-complete"),console.log("Stack operation completed successfully!")}catch(u){if(u.message?.includes("must be verified")||u.message?.includes("Access denied for operation")||u.message?.includes("failed")){console.log("CloudFormation deployment failed, trying direct API creation...");let S=new w;if(e)try{let b=await S.listDistributions();for(let o of b){let n=[];if(o.Aliases?.Items){if(Array.isArray(o.Aliases.Items))n=o.Aliases.Items;else if(typeof o.Aliases.Items==="object"){let m=o.Aliases.Items.CNAME;if(typeof m==="string")n=[m];else if(Array.isArray(m))n=m}}if(n.includes(e)){console.log(`Found existing CloudFront distribution ${o.Id} with alias ${e}`);let f=(await S.getDistributionConfig(o.Id)).DistributionConfig?.Origins?.Items,c;if(f){let k=[];if(Array.isArray(f))k=f;else if(f.Origin)k=Array.isArray(f.Origin)?f.Origin:[f.Origin];else k=[f];for(let P of k){let V=(P.DomainName||"").match(/^([^.]+)\.s3[\.-]/);if(V){c=V[1];break}}}if(c)return console.log(`Using existing S3 bucket: ${c}`),{success:!0,stackName:`existing-${o.Id}`,bucket:c,distributionId:o.Id,distributionDomain:o.DomainName,domain:e,certificateArn:O,message:"Using existing CloudFront distribution (account verification pending for new distributions)"}}}}catch{}console.log("No existing infrastructure found, creating via direct API calls...");try{let b=new g(s);if((await b.headBucket(C)).exists)console.log(`Using existing S3 bucket: ${C}`);else console.log(`Creating S3 bucket: ${C}...`),await b.createBucket(C);await b.putBucketWebsite(C,{IndexDocument:t.defaultRootObject||"index.html",ErrorDocument:t.errorDocument||"404.html"}),await b.putPublicAccessBlock(C,{BlockPublicAcls:!0,IgnorePublicAcls:!0,BlockPublicPolicy:!1,RestrictPublicBuckets:!1}),console.log(`S3 bucket ${C} configured`);let n=`OAC-${C}`;console.log(`Creating Origin Access Control: ${n}...`);let m=await S.findOrCreateOriginAccessControl(n);console.log(`Origin Access Control ${m.Id} ready`),console.log("Creating CloudFront distribution...");let f=await S.createDistributionForS3({bucketName:C,bucketRegion:s,originAccessControlId:m.Id,aliases:e?[e]:[],certificateArn:O,defaultRootObject:t.defaultRootObject||"index.html",comment:`Distribution for ${e||C}`});console.log(`CloudFront distribution ${f.Id} created`),console.log("Updating S3 bucket policy...");let c=w.getS3BucketPolicyForCloudFront(C,f.ARN);if(await b.putBucketPolicy(C,c),console.log("S3 bucket policy updated"),e&&D){console.log(`Creating Route53 records for ${e}...`);try{await a.createAliasRecord({HostedZoneId:D,Name:e,Type:"A",TargetHostedZoneId:B.CloudFrontHostedZoneId,TargetDNSName:f.DomainName,EvaluateTargetHealth:!1}),await a.createAliasRecord({HostedZoneId:D,Name:e,Type:"AAAA",TargetHostedZoneId:B.CloudFrontHostedZoneId,TargetDNSName:f.DomainName,EvaluateTargetHealth:!1}),console.log(`Route53 records created for ${e}`)}catch(k){console.log(`Note: Could not create Route53 records: ${k.message}`)}}return{success:!0,stackName:`direct-${f.Id}`,bucket:C,distributionId:f.Id,distributionDomain:f.DomainName,domain:e,certificateArn:O,message:"Static site infrastructure created via direct API calls"}}catch(b){return console.log(`Direct API creation failed: ${b.message}`),{success:!1,stackId:E,stackName:i,bucket:C,message:`Deployment failed: ${b.message}`}}}return{success:!1,stackId:E,stackName:i,bucket:C,message:`Stack deployment failed: ${u.message}`}}let y=(await r.describeStacks({stackName:i})).Stacks[0]?.Outputs||[],N=(u)=>y.find((S)=>S.OutputKey===u)?.OutputValue;return{success:!0,stackId:E,stackName:i,bucket:N("BucketName")||C,distributionId:N("DistributionId"),distributionDomain:N("DistributionDomain"),domain:e,certificateArn:O,message:"Static site infrastructure deployed successfully"}}async function td(t){let{sourceDir:s,bucket:l,region:e,cacheControl:p="max-age=31536000, public",onProgress:i}=t,r=new g(e),{readdir:a}=await import("node:fs/promises"),{join:d,relative:A}=await import("node:path"),{createHash:D}=await import("node:crypto");async function O(y){let N=[],u=await a(y,{withFileTypes:!0});for(let S of u){let b=d(y,S.name);if(S.isDirectory())N.push(...await O(b));else N.push(b)}return N}function F(y){let N=y.split(".").pop()?.toLowerCase();return{html:"text/html; charset=utf-8",css:"text/css; charset=utf-8",js:"application/javascript; charset=utf-8",json:"application/json; charset=utf-8",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",ico:"image/x-icon",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf",xml:"application/xml",txt:"text/plain; charset=utf-8",sh:"text/plain; charset=utf-8",bash:"text/plain; charset=utf-8",ps1:"text/plain; charset=utf-8"}[N||""]||"application/octet-stream"}function U(y){return D("md5").update(y).digest("hex")}async function C(){let y=new Map,N;do{let u=await r.listObjects({bucket:l,maxKeys:1000,continuationToken:N});for(let S of u.objects){let b=S.ETag?.replace(/"/g,"")||"";y.set(S.Key,b)}N=u.nextContinuationToken}while(N);return y}let h=await O(s),j=[],E=0,R=0,x=await C();for(let y of h){let N=A(s,y),u=F(y),S=y.endsWith(".html")?"max-age=3600, public":p;try{let b=Buffer.from(await Bun.file(y).arrayBuffer()),o=U(b),n=x.get(N);if(n&&n===o){R++,i?.(E+R,h.length,N);continue}await r.putObject({bucket:l,key:N,body:b,contentType:u,cacheControl:S}),E++,i?.(E+R,h.length,N)}catch(b){j.push(`Failed to upload ${N}: ${b.message}`)}}return{uploaded:E,skipped:R,errors:j}}async function rd(t){return{invalidationId:(await new w().invalidateAll(t)).Id}}async function ju(t,s="us-east-1"){let l=new v(s);try{let r=((await l.describeStacks({stackName:t})).Stacks[0]?.Outputs||[]).find((a)=>a.OutputKey==="BucketName")?.OutputValue;if(r)await new g(s).emptyBucket(r)}catch{}await l.deleteStack(t);let e=await l.waitForStackComplete(t,60,1e4);return{success:e.success||e.status==="DELETE_COMPLETE",message:e.success?"Static site deleted successfully":`Deletion failed: ${e.status}`}}async function Vu(t){let{sourceDir:s,cleanBucket:l=!1,onProgress:e,...p}=t;e?.("infrastructure","Deploying CloudFormation stack...");let i=await ed(p);if(!i.success)return i;if(l){e?.("clean","Cleaning old files from S3...");try{await new g(p.region||"us-east-1").emptyBucket(i.bucket)}catch(d){console.log(`Note: Could not clean bucket: ${d.message}`)}}e?.("upload","Uploading files to S3...");let r=await td({sourceDir:s,bucket:i.bucket,region:p.region||"us-east-1",cacheControl:p.cacheControl,onProgress:(d,A,D)=>{e?.("upload",`${d}/${A}: ${D}`)}});if(r.errors.length>0)return{...i,success:!1,message:`Upload errors: ${r.errors.join(", ")}`,filesUploaded:r.uploaded};if(i.distributionId&&r.uploaded>0)e?.("invalidate","Invalidating CloudFront cache..."),await rd(i.distributionId);e?.("complete","Deployment complete!");let a=r.skipped>0?`Deployed ${r.uploaded} files (${r.skipped} unchanged)`:`Deployed ${r.uploaded} files successfully`;return{...i,filesUploaded:r.uploaded,filesSkipped:r.skipped,message:a}}
60
- export{Zl,ed,td,rd,ju,Vu,Ri};
@@ -1 +0,0 @@
1
- import{Ed,sc,wd,ao,co,lo,Ts}from"./chunk-2857cbf1.js";import"./chunk-4a8qt6e8.js";export{Ed as MANAGEMENT_DASHBOARD_SITE,Ts as buildManagementDashboardArtifact,sc as dashboardCredentialsFile,co as ensureManagementDashboard,lo as managementDashboardSiteNames,wd as resolveDashboardAuth,ao as resolveUiSource};
@@ -1 +0,0 @@
1
- import{ct}from"./chunk-s5hq7v1h.js";import"./chunk-y5e7dmvc.js";export{ct as STSClient};
@@ -1 +0,0 @@
1
- import{me}from"./chunk-kbwczaa8.js";import"./chunk-y5e7dmvc.js";export{me as RDSClient};
@@ -1 +0,0 @@
1
- import{yt,Cd,Es,uo,lp,ws,Cs,po,Mt,dp,Ad,up,pp,z,As,mp}from"./chunk-c0dh5ccy.js";import"./chunk-qx05kccj.js";import"./chunk-st7s9k78.js";import"./chunk-5810132y.js";import"./chunk-ypsgkj91.js";import"./chunk-y5e7dmvc.js";import"./chunk-4a8qt6e8.js";export{uo as assertEnvWithinLimit,Es as buildFunctionEnv,lp as deployServerlessApp,up as getCommandRecord,Cd as infraEnvFromOutputs,Ad as listCommandHistory,ws as redeployServerlessApp,yt as resolveServerlessFunctions,mp as restoreServerlessDatabase,Cs as rollbackServerlessApp,dp as runAndRecordCommand,pp as runDbQuery,Mt as runRemoteCommand,As as scaleServerlessDatabase,z as serverlessInfo,po as setMaintenance};
@@ -1 +0,0 @@
1
- import{G,so}from"./chunk-k545r9bk.js";import"./chunk-kcprsn33.js";import"./chunk-y5e7dmvc.js";export{G as ACMClient,so as ACMDnsValidator};
@@ -1 +0,0 @@
1
- import{Fu}from"./chunk-2chec65b.js";import"./chunk-az5vvf5d.js";import"./chunk-st7s9k78.js";import"./chunk-y5e7dmvc.js";import"./chunk-4a8qt6e8.js";export{Fu as buildAndPushServerlessImage};
@@ -1 +0,0 @@
1
- import{Gu,Xr,Hi,oe,Ku,Fa,nd,ns,Ju,Xu,Qu,ja,qi,is,Va,Qr,gr,Yu,ti,Zu,za,id,od,os,Ha,qa,fr,Wi,hr,Wa,ss,ri,sd,Gi,Ga,Ka,Ki,ad,Ja,Xa,Qa,Ya,as,cd,ld,ep,dd,Za,Ji,ud,pd,cs,xt,ls,ds,us,ec,md,tc,ps,tp,ft,rp,rc,$t,nc,np,ic,gd,ip,Z,fd,ms,op,Xi,ni,ii,gs,hd,yd,sp,fs,hs}from"./chunk-8k87zpnp.js";import"./chunk-817q3s2p.js";import"./chunk-4a8qt6e8.js";export{cs as AnomalyConfigStore,hd as AwsSpendTransport,yd as ComputeSpendTransport,os as CounterTracker,za as DEFAULT_METER_MAPPINGS,ja as DEFAULT_PRICE_BOOK,Wi as DEFAULT_THRESHOLDS,xt as DETECTABLE_SIGNALS,Hi as ENFORCEMENT_ACTIONS,Ki as ENFORCEMENT_DESCRIPTIONS,oe as ENFORCEMENT_SEVERITY,md as FOCUS_VERSION,Xr as METERS,Gu as METER_KEYS,Ku as MICRO_CENTS,sd as MIN_PROJECTION_CONFIDENCE,gd as RecordingSpendTransport,ud as SENSITIVITY_THRESHOLDS,ii as SPEND_CYCLE_SECONDS,rc as SPEND_GATE_SETTING,op as SPEND_LEASE_SETTING,ds as SignalSource,nc as SpendCapError,$t as SpendGate,Xi as SpendLoopLease,ms as SpendNotificationRouter,ni as SpendRunner,ft as SpendService,hr as SpendStore,ip as URGENT_SPEND_EVENTS,ad as USER_VISIBLE_ACTIONS,qa as aggregateDeltas,Ji as anomalyOptionsForSignal,np as assertSpendAllows,gr as budgetWindow,sp as compositeSpendTransport,ic as createEnforcementHandlers,dd as detectAnomalies,Za as detectLatestAnomaly,Ga as evaluateBudget,ep as ewma,id as findMapping,nd as findPriceEntry,Z as formatCents,ri as formatTimeToExhaustion,Gi as governingLimitCents,fs as handleSpendRequest,ti as hourBucket,Zu as hourBucketsBetween,Ya as isOperationAllowed,qi as isValidTimeZone,ec as lookbackHoursForSignal,as as median,cd as medianAbsoluteDeviation,Ka as mergeDecisions,Qu as mergePriceBooks,Ha as meterTelemetry,us as optionsForSignal,ss as percentOfLimit,Ja as planEnforcement,Yu as previousBudgetWindow,ns as priceUsage,Ju as priceUsageLines,Wa as projectSpend,ld as robustZScore,Xu as roundCents,pd as routeMatches,Xa as runEnforcement,fr as scopeKey,ls as signalDefinition,fd as spendNotificationText,hs as spendOpenApiPaths,gs as startSpendLoop,tp as streamFocusJsonl,Qa as strongestActiveAction,Fa as tieredMicroCents,ps as toFocusJsonl,tc as toFocusRecords,od as usageDeltaKey,Qr as utcInstantOfLocal,rp as zeroFill,Va as zoneOffsetMs,is as zonedParts};
@@ -1 +0,0 @@
1
- import{qn}from"./chunk-1g8gk1cb.js";import"./chunk-45v1azhc.js";import"./chunk-c0dh5ccy.js";import"./chunk-qx05kccj.js";import"./chunk-st7s9k78.js";import"./chunk-5810132y.js";import"./chunk-ypsgkj91.js";import"./chunk-y5e7dmvc.js";import"./chunk-4a8qt6e8.js";export{qn as resolveDashboardData};
@@ -1,2 +0,0 @@
1
- import{createRequire as g}from"node:module";var d=Object.defineProperty;var e=(a)=>a;function f(a,b){this[a]=e.bind(null,b)}var Id=(a,b)=>{for(var c in b)d(a,c,{get:b[c],enumerable:!0,configurable:!0,set:f.bind(b,c)})};var mi=g(import.meta.url);
2
- export{Id,mi};
@@ -1 +0,0 @@
1
- import{V}from"./chunk-45v1azhc.js";import"./chunk-y5e7dmvc.js";export{V as SQSClient};
@@ -1 +0,0 @@
1
- import{es}from"./chunk-7412q5cz.js";export{es as encodeDashboardPayload};
@@ -1 +0,0 @@
1
- import{Zl,ed,td,rd,ju,Vu}from"./chunk-ne5zevtf.js";import"./chunk-k545r9bk.js";import"./chunk-494fg5c6.js";import"./chunk-5810132y.js";import"./chunk-kcprsn33.js";import"./chunk-ypsgkj91.js";import"./chunk-y5e7dmvc.js";export{ju as deleteStaticSite,ed as deployStaticSite,Vu as deployStaticSiteFull,Zl as generateStaticSiteTemplate,rd as invalidateCache,td as uploadStaticFiles};
@@ -1 +0,0 @@
1
- import{gi,wo,u,N,zs}from"./chunk-y5e7dmvc.js";export{u as AWSClient,N as buildQueryParams,wo as coerceXmlValues,zs as detectCredentialSource,gi as resolveS3Endpoint};
@@ -1 +0,0 @@
1
- import{Lu,Ql,Ca,Aa,Yl,Mu,Uu,Gt,un,Kt,Ii,Bu,pn,Vo}from"./chunk-8knkt6sd.js";import{Xe,ys,oc,oi,Ss,ap}from"./chunk-9464wvf2.js";import{Sd,Yi,bd,vd,Td,yr,cp,Zi}from"./chunk-wsedynyb.js";import{Sa,ba,va,Bl,Bo,Fl,jl,Ta,Vl,zl}from"./chunk-4a8qt6e8.js";export{ba as CHAIN_HEADER,un as DEFAULT_ATTACK_MODE_HOURS,Sd as DEFAULT_DDOS_THRESHOLDS,Bo as DEFAULT_RECURSION_LIMITS,Sa as DEPTH_HEADER,Gt as MAX_CONTROL_HOURS,Kt as ProtectionControlStore,Lu as RATE_LIMIT_KEY_SEPARATOR,Yl as RateLimiter,Ta as RecursionGuard,va as TRACE_HEADER,pn as applyControlsToDdos,Bu as applyControlsToRateLimits,Zi as applyMitigationFactor,Uu as defaultRateLimitRules,Ii as describePosture,Xe as escapeSecLang,Bl as functionFingerprint,Ql as globMatches,oc as globToRegex,jl as inspectInvocation,ys as isSafePattern,Yi as isValidCidr,Vo as mergeControlsIntoConfig,Fl as parseChain,cp as planMitigation,Vl as propagationHeaders,Mu as rateLimitHeaders,Aa as rateLimitKey,zl as recursionBlockedResponse,yr as renderDdosInstallScript,Td as renderNftablesRuleset,vd as renderSysctlFile,oi as renderWafConfig,Ss as renderWafInstallScript,Ca as ruleMatches,bd as sysctlHardening,ap as wafEventTelemetry};
@@ -1 +0,0 @@
1
- import{K}from"./chunk-wyfpz6be.js";import"./chunk-55yda01s.js";export{K as RDSClient};
@@ -1 +0,0 @@
1
- import{is,ss,os,as,Ma,Fa}from"./chunk-6eqx6gt8.js";import"./chunk-fvgk05df.js";import"./chunk-cymsceq6.js";import"./chunk-njz7scff.js";import"./chunk-qx6nwvgn.js";import"./chunk-q70pfhcn.js";import"./chunk-55yda01s.js";export{Ma as deleteStaticSite,ss as deployStaticSite,Fa as deployStaticSiteFull,is as generateStaticSiteTemplate,as as invalidateCache,os as uploadStaticFiles};