@keystrokehq/platform 0.1.63 → 0.1.65

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 (309) hide show
  1. package/dist/{awk2-LA3USKJP-BGL2c2Yc.cjs → awk2-LA3USKJP-CyejfTt-.cjs} +2 -2
  2. package/dist/{awk2-LA3USKJP-BGL2c2Yc.cjs.map → awk2-LA3USKJP-CyejfTt-.cjs.map} +1 -1
  3. package/dist/{awk2-LA3USKJP-CBGbfQzU.mjs → awk2-LA3USKJP-qs2_VVMX.mjs} +2 -2
  4. package/dist/{awk2-LA3USKJP-CBGbfQzU.mjs.map → awk2-LA3USKJP-qs2_VVMX.mjs.map} +1 -1
  5. package/dist/{base64-C2AIWVNC-C-r7JP5p.cjs → base64-C2AIWVNC-CTgTPe2m.cjs} +2 -2
  6. package/dist/{base64-C2AIWVNC-C-r7JP5p.cjs.map → base64-C2AIWVNC-CTgTPe2m.cjs.map} +1 -1
  7. package/dist/{base64-C2AIWVNC-DEWGBjID.mjs → base64-C2AIWVNC-DC9H0hV-.mjs} +2 -2
  8. package/dist/{base64-C2AIWVNC-DEWGBjID.mjs.map → base64-C2AIWVNC-DC9H0hV-.mjs.map} +1 -1
  9. package/dist/{bash-YZ33HQZQ-BDaE7hEw.mjs → bash-YZ33HQZQ-CJRIU8H2.mjs} +2 -2
  10. package/dist/{bash-YZ33HQZQ-BDaE7hEw.mjs.map → bash-YZ33HQZQ-CJRIU8H2.mjs.map} +1 -1
  11. package/dist/{bash-YZ33HQZQ-X6Ayxjdh.cjs → bash-YZ33HQZQ-DgZgJzct.cjs} +2 -2
  12. package/dist/{bash-YZ33HQZQ-X6Ayxjdh.cjs.map → bash-YZ33HQZQ-DgZgJzct.cjs.map} +1 -1
  13. package/dist/{cat-TSFMZVYS-Q6Hf6Oge.mjs → cat-TSFMZVYS-D05qab3L.mjs} +3 -3
  14. package/dist/{cat-TSFMZVYS-Q6Hf6Oge.mjs.map → cat-TSFMZVYS-D05qab3L.mjs.map} +1 -1
  15. package/dist/{cat-TSFMZVYS-DPjXrg7t.cjs → cat-TSFMZVYS-DvimXoHw.cjs} +3 -3
  16. package/dist/{cat-TSFMZVYS-DPjXrg7t.cjs.map → cat-TSFMZVYS-DvimXoHw.cjs.map} +1 -1
  17. package/dist/{chunk-5H5SCKJM-T8srEq0i.cjs → chunk-5H5SCKJM-CIatv32O.cjs} +2 -2
  18. package/dist/{chunk-5H5SCKJM-T8srEq0i.cjs.map → chunk-5H5SCKJM-CIatv32O.cjs.map} +1 -1
  19. package/dist/{chunk-5H5SCKJM-BkPj37Uj.mjs → chunk-5H5SCKJM-D6Ac9LP0.mjs} +2 -2
  20. package/dist/{chunk-5H5SCKJM-BkPj37Uj.mjs.map → chunk-5H5SCKJM-D6Ac9LP0.mjs.map} +1 -1
  21. package/dist/{chunk-AQ6FYS2X-Dhjm1jSq.cjs → chunk-AQ6FYS2X-BYoM6frH.cjs} +2 -2
  22. package/dist/{chunk-AQ6FYS2X-Dhjm1jSq.cjs.map → chunk-AQ6FYS2X-BYoM6frH.cjs.map} +1 -1
  23. package/dist/{chunk-AQ6FYS2X-5Seop1Ii.mjs → chunk-AQ6FYS2X-UGjhS2Fy.mjs} +2 -2
  24. package/dist/{chunk-AQ6FYS2X-5Seop1Ii.mjs.map → chunk-AQ6FYS2X-UGjhS2Fy.mjs.map} +1 -1
  25. package/dist/{chunk-CHFEPBH4-VwaFSRwY.mjs → chunk-CHFEPBH4-CNndka4U.mjs} +2 -2
  26. package/dist/{chunk-CHFEPBH4-VwaFSRwY.mjs.map → chunk-CHFEPBH4-CNndka4U.mjs.map} +1 -1
  27. package/dist/{chunk-CHFEPBH4-1Lim91RF.cjs → chunk-CHFEPBH4-CeRSDiWt.cjs} +2 -2
  28. package/dist/{chunk-CHFEPBH4-1Lim91RF.cjs.map → chunk-CHFEPBH4-CeRSDiWt.cjs.map} +1 -1
  29. package/dist/{chunk-EBAPSGAO-C_sleQDN.cjs → chunk-EBAPSGAO-DJLPJk8c.cjs} +2 -2
  30. package/dist/{chunk-EBAPSGAO-C_sleQDN.cjs.map → chunk-EBAPSGAO-DJLPJk8c.cjs.map} +1 -1
  31. package/dist/{chunk-EBAPSGAO-BXZkp12N.mjs → chunk-EBAPSGAO-rRWG_GHz.mjs} +2 -2
  32. package/dist/{chunk-EBAPSGAO-BXZkp12N.mjs.map → chunk-EBAPSGAO-rRWG_GHz.mjs.map} +1 -1
  33. package/dist/{chunk-LEKBROJD-B7e5IYQo.mjs → chunk-LEKBROJD-CQZGkrmC.mjs} +2 -2
  34. package/dist/{chunk-LEKBROJD-B7e5IYQo.mjs.map → chunk-LEKBROJD-CQZGkrmC.mjs.map} +1 -1
  35. package/dist/{chunk-LEKBROJD-hD94psRk.cjs → chunk-LEKBROJD-D3i8kHIZ.cjs} +2 -2
  36. package/dist/{chunk-LEKBROJD-hD94psRk.cjs.map → chunk-LEKBROJD-D3i8kHIZ.cjs.map} +1 -1
  37. package/dist/{chunk-VPADYNBD-guU31ZI5.cjs → chunk-VPADYNBD-3d04BF7I.cjs} +2 -2
  38. package/dist/{chunk-VPADYNBD-guU31ZI5.cjs.map → chunk-VPADYNBD-3d04BF7I.cjs.map} +1 -1
  39. package/dist/{chunk-VPADYNBD-TjW91OxN.mjs → chunk-VPADYNBD-_K0T5rzi.mjs} +2 -2
  40. package/dist/{chunk-VPADYNBD-TjW91OxN.mjs.map → chunk-VPADYNBD-_K0T5rzi.mjs.map} +1 -1
  41. package/dist/{chunk-YCLFEX4T-UyT2cr5y.cjs → chunk-YCLFEX4T-7h4wDZpF.cjs} +2 -2
  42. package/dist/{chunk-YCLFEX4T-UyT2cr5y.cjs.map → chunk-YCLFEX4T-7h4wDZpF.cjs.map} +1 -1
  43. package/dist/{chunk-YCLFEX4T-t_poiVZt.mjs → chunk-YCLFEX4T-DavxQ6v-.mjs} +2 -2
  44. package/dist/{chunk-YCLFEX4T-t_poiVZt.mjs.map → chunk-YCLFEX4T-DavxQ6v-.mjs.map} +1 -1
  45. package/dist/{column-XT6UFXNQ-DDGHyPQ9.cjs → column-XT6UFXNQ--p-M1vfD.cjs} +2 -2
  46. package/dist/{column-XT6UFXNQ-DDGHyPQ9.cjs.map → column-XT6UFXNQ--p-M1vfD.cjs.map} +1 -1
  47. package/dist/{column-XT6UFXNQ-TrVerir2.mjs → column-XT6UFXNQ-DqFgALwL.mjs} +2 -2
  48. package/dist/{column-XT6UFXNQ-TrVerir2.mjs.map → column-XT6UFXNQ-DqFgALwL.mjs.map} +1 -1
  49. package/dist/{comm-VV2LDX2J-D23mvBPi.mjs → comm-VV2LDX2J-BJr9EKP0.mjs} +2 -2
  50. package/dist/{comm-VV2LDX2J-D23mvBPi.mjs.map → comm-VV2LDX2J-BJr9EKP0.mjs.map} +1 -1
  51. package/dist/{comm-VV2LDX2J-Bo5T0ZOL.cjs → comm-VV2LDX2J-BKDYp_Rg.cjs} +2 -2
  52. package/dist/{comm-VV2LDX2J-Bo5T0ZOL.cjs.map → comm-VV2LDX2J-BKDYp_Rg.cjs.map} +1 -1
  53. package/dist/config.cjs +2 -2
  54. package/dist/config.mjs +2 -2
  55. package/dist/{cp-BISAAS7A-DpRVZaXG.mjs → cp-BISAAS7A-D-Q63TRm.mjs} +2 -2
  56. package/dist/{cp-BISAAS7A-DpRVZaXG.mjs.map → cp-BISAAS7A-D-Q63TRm.mjs.map} +1 -1
  57. package/dist/{cp-BISAAS7A-fZLxK1CV.cjs → cp-BISAAS7A-e9qZvjt-.cjs} +2 -2
  58. package/dist/{cp-BISAAS7A-fZLxK1CV.cjs.map → cp-BISAAS7A-e9qZvjt-.cjs.map} +1 -1
  59. package/dist/{cut-OKARJCCV-5TYMAMAg.mjs → cut-OKARJCCV-BwWdLX60.mjs} +3 -3
  60. package/dist/{cut-OKARJCCV-5TYMAMAg.mjs.map → cut-OKARJCCV-BwWdLX60.mjs.map} +1 -1
  61. package/dist/{cut-OKARJCCV-KHaWPVgh.cjs → cut-OKARJCCV-Dsf5JPzz.cjs} +3 -3
  62. package/dist/{cut-OKARJCCV-KHaWPVgh.cjs.map → cut-OKARJCCV-Dsf5JPzz.cjs.map} +1 -1
  63. package/dist/{diff-MWJFIG7X-RHG6LjP-.cjs → diff-MWJFIG7X-8FATMPA8.cjs} +2 -2
  64. package/dist/{diff-MWJFIG7X-RHG6LjP-.cjs.map → diff-MWJFIG7X-8FATMPA8.cjs.map} +1 -1
  65. package/dist/{diff-MWJFIG7X-1SUS3Txq.mjs → diff-MWJFIG7X-C-JnPG9q.mjs} +2 -2
  66. package/dist/{diff-MWJFIG7X-1SUS3Txq.mjs.map → diff-MWJFIG7X-C-JnPG9q.mjs.map} +1 -1
  67. package/dist/{dist-b4HzEMMH.cjs → dist-DE3vnDfg.cjs} +33 -4
  68. package/dist/dist-DE3vnDfg.cjs.map +1 -0
  69. package/dist/{dist-CChImt_Z.mjs → dist-DfsS-wD6.mjs} +33 -4
  70. package/dist/dist-DfsS-wD6.mjs.map +1 -0
  71. package/dist/{dist-FxtFB69U.mjs → dist-MAAyMfmx.mjs} +55 -10
  72. package/dist/dist-MAAyMfmx.mjs.map +1 -0
  73. package/dist/{dist-Bf-X1hc-.cjs → dist-o_8QpiUS.cjs} +91 -10
  74. package/dist/dist-o_8QpiUS.cjs.map +1 -0
  75. package/dist/{du-572XNP42-BFMY81nH.cjs → du-572XNP42-C62KSzk4.cjs} +2 -2
  76. package/dist/{du-572XNP42-BFMY81nH.cjs.map → du-572XNP42-C62KSzk4.cjs.map} +1 -1
  77. package/dist/{du-572XNP42-C5BwG-hn.mjs → du-572XNP42-fIDX-8AV.mjs} +2 -2
  78. package/dist/{du-572XNP42-C5BwG-hn.mjs.map → du-572XNP42-fIDX-8AV.mjs.map} +1 -1
  79. package/dist/{env-36M5BO7M-DNwUUFD3.mjs → env-36M5BO7M-BUAfAmVu.mjs} +2 -2
  80. package/dist/{env-36M5BO7M-DNwUUFD3.mjs.map → env-36M5BO7M-BUAfAmVu.mjs.map} +1 -1
  81. package/dist/{env-36M5BO7M-nLEjIadl.cjs → env-36M5BO7M-Cr28Da2g.cjs} +2 -2
  82. package/dist/{env-36M5BO7M-nLEjIadl.cjs.map → env-36M5BO7M-Cr28Da2g.cjs.map} +1 -1
  83. package/dist/{expand-JSPG6VOP-DbBnz1xZ.cjs → expand-JSPG6VOP-CoPb8HBy.cjs} +2 -2
  84. package/dist/{expand-JSPG6VOP-DbBnz1xZ.cjs.map → expand-JSPG6VOP-CoPb8HBy.cjs.map} +1 -1
  85. package/dist/{expand-JSPG6VOP-Cd9oTNoA.mjs → expand-JSPG6VOP-DzoBcXYr.mjs} +2 -2
  86. package/dist/{expand-JSPG6VOP-Cd9oTNoA.mjs.map → expand-JSPG6VOP-DzoBcXYr.mjs.map} +1 -1
  87. package/dist/{expr-5JAACS4X-Cf6x6i33.mjs → expr-5JAACS4X-CY91I5un.mjs} +2 -2
  88. package/dist/{expr-5JAACS4X-Cf6x6i33.mjs.map → expr-5JAACS4X-CY91I5un.mjs.map} +1 -1
  89. package/dist/{expr-5JAACS4X-ChtZWiUE.cjs → expr-5JAACS4X-Dg2wnO_X.cjs} +2 -2
  90. package/dist/{expr-5JAACS4X-ChtZWiUE.cjs.map → expr-5JAACS4X-Dg2wnO_X.cjs.map} +1 -1
  91. package/dist/{find-INTH3OLC-C7KkhILZ.cjs → find-INTH3OLC-COz8TfCm.cjs} +3 -3
  92. package/dist/{find-INTH3OLC-C7KkhILZ.cjs.map → find-INTH3OLC-COz8TfCm.cjs.map} +1 -1
  93. package/dist/{find-INTH3OLC-CkpCJ3pJ.mjs → find-INTH3OLC-D2TzVTjf.mjs} +3 -3
  94. package/dist/{find-INTH3OLC-CkpCJ3pJ.mjs.map → find-INTH3OLC-D2TzVTjf.mjs.map} +1 -1
  95. package/dist/{fold-4TQNYMSW-_gu7Rl83.cjs → fold-4TQNYMSW-D_rGHg8n.cjs} +2 -2
  96. package/dist/{fold-4TQNYMSW-_gu7Rl83.cjs.map → fold-4TQNYMSW-D_rGHg8n.cjs.map} +1 -1
  97. package/dist/{fold-4TQNYMSW-qmbE89Lf.mjs → fold-4TQNYMSW-YMpB9QSy.mjs} +2 -2
  98. package/dist/{fold-4TQNYMSW-qmbE89Lf.mjs.map → fold-4TQNYMSW-YMpB9QSy.mjs.map} +1 -1
  99. package/dist/{grep-V3LQVMRQ-BR5F9inn.cjs → grep-V3LQVMRQ-7fIOq6_O.cjs} +4 -4
  100. package/dist/{grep-V3LQVMRQ-BR5F9inn.cjs.map → grep-V3LQVMRQ-7fIOq6_O.cjs.map} +1 -1
  101. package/dist/{grep-V3LQVMRQ-Db-aRsyg.mjs → grep-V3LQVMRQ-DF6k595P.mjs} +4 -4
  102. package/dist/{grep-V3LQVMRQ-Db-aRsyg.mjs.map → grep-V3LQVMRQ-DF6k595P.mjs.map} +1 -1
  103. package/dist/{gzip-O5ASJAFY-Do8n8_qx.mjs → gzip-O5ASJAFY-DxIXEWhI.mjs} +2 -2
  104. package/dist/{gzip-O5ASJAFY-Do8n8_qx.mjs.map → gzip-O5ASJAFY-DxIXEWhI.mjs.map} +1 -1
  105. package/dist/{gzip-O5ASJAFY-EP2xf5Y_.cjs → gzip-O5ASJAFY-dHyXnol0.cjs} +2 -2
  106. package/dist/{gzip-O5ASJAFY-EP2xf5Y_.cjs.map → gzip-O5ASJAFY-dHyXnol0.cjs.map} +1 -1
  107. package/dist/{head-442HYESI-CG6vyOIZ.cjs → head-442HYESI-CyoRlJQS.cjs} +2 -2
  108. package/dist/{head-442HYESI-CG6vyOIZ.cjs.map → head-442HYESI-CyoRlJQS.cjs.map} +1 -1
  109. package/dist/{head-442HYESI-CdsuONnt.mjs → head-442HYESI-DmveYFFU.mjs} +2 -2
  110. package/dist/{head-442HYESI-CdsuONnt.mjs.map → head-442HYESI-DmveYFFU.mjs.map} +1 -1
  111. package/dist/{help-HZ6M2CKN-D2ZULY2r.cjs → help-HZ6M2CKN-CIg1X5z4.cjs} +2 -2
  112. package/dist/{help-HZ6M2CKN-D2ZULY2r.cjs.map → help-HZ6M2CKN-CIg1X5z4.cjs.map} +1 -1
  113. package/dist/{help-HZ6M2CKN-CCwL_Yl6.mjs → help-HZ6M2CKN-Dr_TCbMC.mjs} +2 -2
  114. package/dist/{help-HZ6M2CKN-CCwL_Yl6.mjs.map → help-HZ6M2CKN-Dr_TCbMC.mjs.map} +1 -1
  115. package/dist/{html-to-markdown-JW4MSQZO-DKTVI5xf.cjs → html-to-markdown-JW4MSQZO-BaRFGQNw.cjs} +3 -3
  116. package/dist/{html-to-markdown-JW4MSQZO-DKTVI5xf.cjs.map → html-to-markdown-JW4MSQZO-BaRFGQNw.cjs.map} +1 -1
  117. package/dist/{html-to-markdown-JW4MSQZO-DELHwTRG.mjs → html-to-markdown-JW4MSQZO-DpaYZl9o.mjs} +3 -3
  118. package/dist/{html-to-markdown-JW4MSQZO-DELHwTRG.mjs.map → html-to-markdown-JW4MSQZO-DpaYZl9o.mjs.map} +1 -1
  119. package/dist/internal.cjs +1 -1
  120. package/dist/internal.mjs +1 -1
  121. package/dist/{join-TBRGI3LQ-kfzlerBI.cjs → join-TBRGI3LQ-BTmNkS7O.cjs} +2 -2
  122. package/dist/{join-TBRGI3LQ-kfzlerBI.cjs.map → join-TBRGI3LQ-BTmNkS7O.cjs.map} +1 -1
  123. package/dist/{join-TBRGI3LQ-BFOE666V.mjs → join-TBRGI3LQ-COfgsTv-.mjs} +2 -2
  124. package/dist/{join-TBRGI3LQ-BFOE666V.mjs.map → join-TBRGI3LQ-COfgsTv-.mjs.map} +1 -1
  125. package/dist/{jq-4XLYLOS5-BQHwTRc2.mjs → jq-4XLYLOS5-CL2TNYG5.mjs} +4 -4
  126. package/dist/{jq-4XLYLOS5-BQHwTRc2.mjs.map → jq-4XLYLOS5-CL2TNYG5.mjs.map} +1 -1
  127. package/dist/{jq-4XLYLOS5-DLgHNh55.cjs → jq-4XLYLOS5-Ct-2EV_g.cjs} +4 -4
  128. package/dist/{jq-4XLYLOS5-DLgHNh55.cjs.map → jq-4XLYLOS5-Ct-2EV_g.cjs.map} +1 -1
  129. package/dist/{js-exec-N5KEZBH7-C3jp-Jh1.cjs → js-exec-N5KEZBH7-C6Wuui5Y.cjs} +3 -3
  130. package/dist/{js-exec-N5KEZBH7-C3jp-Jh1.cjs.map → js-exec-N5KEZBH7-C6Wuui5Y.cjs.map} +1 -1
  131. package/dist/{js-exec-N5KEZBH7-CjZA7H9Y.mjs → js-exec-N5KEZBH7-COcVNDNj.mjs} +3 -3
  132. package/dist/{js-exec-N5KEZBH7-CjZA7H9Y.mjs.map → js-exec-N5KEZBH7-COcVNDNj.mjs.map} +1 -1
  133. package/dist/{lib-D_JhPjnA.mjs → lib-Br6xLpni.mjs} +2 -2
  134. package/dist/{lib-D_JhPjnA.mjs.map → lib-Br6xLpni.mjs.map} +1 -1
  135. package/dist/{lib-DAM_xsvo.cjs → lib-DCLb-bMA.cjs} +2 -2
  136. package/dist/{lib-DAM_xsvo.cjs.map → lib-DCLb-bMA.cjs.map} +1 -1
  137. package/dist/{ln-4LGSXXGD-Dwpnd6h2.mjs → ln-4LGSXXGD-DbDzV1C8.mjs} +2 -2
  138. package/dist/{ln-4LGSXXGD-Dwpnd6h2.mjs.map → ln-4LGSXXGD-DbDzV1C8.mjs.map} +1 -1
  139. package/dist/{ln-4LGSXXGD-CMCyddO8.cjs → ln-4LGSXXGD-DmeMmfdL.cjs} +2 -2
  140. package/dist/{ln-4LGSXXGD-CMCyddO8.cjs.map → ln-4LGSXXGD-DmeMmfdL.cjs.map} +1 -1
  141. package/dist/{ls-ZJGQER7M-BNOzuy3g.mjs → ls-ZJGQER7M-CiIE3qzx.mjs} +2 -2
  142. package/dist/{ls-ZJGQER7M-BNOzuy3g.mjs.map → ls-ZJGQER7M-CiIE3qzx.mjs.map} +1 -1
  143. package/dist/{ls-ZJGQER7M-yyE5jtS3.cjs → ls-ZJGQER7M-e4crBm8O.cjs} +2 -2
  144. package/dist/{ls-ZJGQER7M-yyE5jtS3.cjs.map → ls-ZJGQER7M-e4crBm8O.cjs.map} +1 -1
  145. package/dist/{lzma-BsA6Hs6T.cjs → lzma-C30Kbq4F.cjs} +2 -2
  146. package/dist/{lzma-BsA6Hs6T.cjs.map → lzma-C30Kbq4F.cjs.map} +1 -1
  147. package/dist/{md5sum-SPU24VSG-C8AdJxhI.mjs → md5sum-SPU24VSG-Cx4M1-kL.mjs} +3 -3
  148. package/dist/{md5sum-SPU24VSG-C8AdJxhI.mjs.map → md5sum-SPU24VSG-Cx4M1-kL.mjs.map} +1 -1
  149. package/dist/{md5sum-SPU24VSG-BOA2pSWZ.cjs → md5sum-SPU24VSG-DCAw3Nnh.cjs} +3 -3
  150. package/dist/{md5sum-SPU24VSG-BOA2pSWZ.cjs.map → md5sum-SPU24VSG-DCAw3Nnh.cjs.map} +1 -1
  151. package/dist/{mkdir-MEPGZOB6-pXVzHZi_.cjs → mkdir-MEPGZOB6-BMPdZFNb.cjs} +2 -2
  152. package/dist/{mkdir-MEPGZOB6-pXVzHZi_.cjs.map → mkdir-MEPGZOB6-BMPdZFNb.cjs.map} +1 -1
  153. package/dist/{mkdir-MEPGZOB6-BcwdY0Ma.mjs → mkdir-MEPGZOB6-CsRlXLTS.mjs} +2 -2
  154. package/dist/{mkdir-MEPGZOB6-BcwdY0Ma.mjs.map → mkdir-MEPGZOB6-CsRlXLTS.mjs.map} +1 -1
  155. package/dist/{mv-W5BIQ646-D3bi1R9p.mjs → mv-W5BIQ646-BYl-e0o-.mjs} +2 -2
  156. package/dist/{mv-W5BIQ646-D3bi1R9p.mjs.map → mv-W5BIQ646-BYl-e0o-.mjs.map} +1 -1
  157. package/dist/{mv-W5BIQ646-CUSvDxbI.cjs → mv-W5BIQ646-DN2U0C7g.cjs} +2 -2
  158. package/dist/{mv-W5BIQ646-CUSvDxbI.cjs.map → mv-W5BIQ646-DN2U0C7g.cjs.map} +1 -1
  159. package/dist/{nl-WSDW7I4O-DiFRTXuW.mjs → nl-WSDW7I4O-BO2ue_Ey.mjs} +2 -2
  160. package/dist/{nl-WSDW7I4O-DiFRTXuW.mjs.map → nl-WSDW7I4O-BO2ue_Ey.mjs.map} +1 -1
  161. package/dist/{nl-WSDW7I4O-CCHu1Y7X.cjs → nl-WSDW7I4O-uNy8sqQP.cjs} +2 -2
  162. package/dist/{nl-WSDW7I4O-CCHu1Y7X.cjs.map → nl-WSDW7I4O-uNy8sqQP.cjs.map} +1 -1
  163. package/dist/{od-WOKFDJTP-DyPQVWx0.cjs → od-WOKFDJTP-CVyJLkGQ.cjs} +2 -2
  164. package/dist/{od-WOKFDJTP-DyPQVWx0.cjs.map → od-WOKFDJTP-CVyJLkGQ.cjs.map} +1 -1
  165. package/dist/{od-WOKFDJTP-8JEVA3Uf.mjs → od-WOKFDJTP-DhapoX4F.mjs} +2 -2
  166. package/dist/{od-WOKFDJTP-8JEVA3Uf.mjs.map → od-WOKFDJTP-DhapoX4F.mjs.map} +1 -1
  167. package/dist/{paste-7JC6S4DX-_9g5mJ2v.mjs → paste-7JC6S4DX-CF7gu2k0.mjs} +2 -2
  168. package/dist/{paste-7JC6S4DX-_9g5mJ2v.mjs.map → paste-7JC6S4DX-CF7gu2k0.mjs.map} +1 -1
  169. package/dist/{paste-7JC6S4DX-zBiE-mU3.cjs → paste-7JC6S4DX-DFaPHwFn.cjs} +2 -2
  170. package/dist/{paste-7JC6S4DX-zBiE-mU3.cjs.map → paste-7JC6S4DX-DFaPHwFn.cjs.map} +1 -1
  171. package/dist/{printf-TWGXF445-Bj_zD0UD.mjs → printf-TWGXF445-CbtbiufU.mjs} +3 -3
  172. package/dist/{printf-TWGXF445-Bj_zD0UD.mjs.map → printf-TWGXF445-CbtbiufU.mjs.map} +1 -1
  173. package/dist/{printf-TWGXF445-beQW5nG6.cjs → printf-TWGXF445-_czkCRg_.cjs} +3 -3
  174. package/dist/{printf-TWGXF445-beQW5nG6.cjs.map → printf-TWGXF445-_czkCRg_.cjs.map} +1 -1
  175. package/dist/{python3-POMOR4OA-Bl_FjniR.cjs → python3-POMOR4OA-DVv9_Ual.cjs} +3 -3
  176. package/dist/{python3-POMOR4OA-Bl_FjniR.cjs.map → python3-POMOR4OA-DVv9_Ual.cjs.map} +1 -1
  177. package/dist/{python3-POMOR4OA-EzA7X-E6.mjs → python3-POMOR4OA-RbWWe2yI.mjs} +3 -3
  178. package/dist/{python3-POMOR4OA-EzA7X-E6.mjs.map → python3-POMOR4OA-RbWWe2yI.mjs.map} +1 -1
  179. package/dist/{rev-5EHFX4EJ-CTYp3Zpb.mjs → rev-5EHFX4EJ-DlvMGtu6.mjs} +2 -2
  180. package/dist/{rev-5EHFX4EJ-CTYp3Zpb.mjs.map → rev-5EHFX4EJ-DlvMGtu6.mjs.map} +1 -1
  181. package/dist/{rev-5EHFX4EJ-BSzQExvv.cjs → rev-5EHFX4EJ-TwnSPIpa.cjs} +2 -2
  182. package/dist/{rev-5EHFX4EJ-BSzQExvv.cjs.map → rev-5EHFX4EJ-TwnSPIpa.cjs.map} +1 -1
  183. package/dist/{rg-S4FXYXWB-xBQXXqQJ.mjs → rg-S4FXYXWB-CrkDlDvF.mjs} +3 -3
  184. package/dist/{rg-S4FXYXWB-xBQXXqQJ.mjs.map → rg-S4FXYXWB-CrkDlDvF.mjs.map} +1 -1
  185. package/dist/{rg-S4FXYXWB-TUC3ro1a.cjs → rg-S4FXYXWB-DveBAw1V.cjs} +3 -3
  186. package/dist/{rg-S4FXYXWB-TUC3ro1a.cjs.map → rg-S4FXYXWB-DveBAw1V.cjs.map} +1 -1
  187. package/dist/{rm-SSGETQVQ-DxuMjZMu.mjs → rm-SSGETQVQ-DeTzKk6y.mjs} +2 -2
  188. package/dist/{rm-SSGETQVQ-DxuMjZMu.mjs.map → rm-SSGETQVQ-DeTzKk6y.mjs.map} +1 -1
  189. package/dist/{rm-SSGETQVQ-DG7UiIDA.cjs → rm-SSGETQVQ-Dr2IPuxL.cjs} +2 -2
  190. package/dist/{rm-SSGETQVQ-DG7UiIDA.cjs.map → rm-SSGETQVQ-Dr2IPuxL.cjs.map} +1 -1
  191. package/dist/{rmdir-OC4ZLPYA-Dgp7LpKa.cjs → rmdir-OC4ZLPYA-BtTrhC2i.cjs} +2 -2
  192. package/dist/{rmdir-OC4ZLPYA-Dgp7LpKa.cjs.map → rmdir-OC4ZLPYA-BtTrhC2i.cjs.map} +1 -1
  193. package/dist/{rmdir-OC4ZLPYA-luVyJvIH.mjs → rmdir-OC4ZLPYA-DDMznQGG.mjs} +2 -2
  194. package/dist/{rmdir-OC4ZLPYA-luVyJvIH.mjs.map → rmdir-OC4ZLPYA-DDMznQGG.mjs.map} +1 -1
  195. package/dist/run.cjs +1 -1
  196. package/dist/run.mjs +1 -1
  197. package/dist/{sed-S5UIK574-DNM--Qbh.mjs → sed-S5UIK574-BUSFFQPx.mjs} +2 -2
  198. package/dist/{sed-S5UIK574-DNM--Qbh.mjs.map → sed-S5UIK574-BUSFFQPx.mjs.map} +1 -1
  199. package/dist/{sed-S5UIK574-W5G_42sV.cjs → sed-S5UIK574-DSbNwDZj.cjs} +2 -2
  200. package/dist/{sed-S5UIK574-W5G_42sV.cjs.map → sed-S5UIK574-DSbNwDZj.cjs.map} +1 -1
  201. package/dist/{sha1sum-2PTOAFR6-DRX09xfr.cjs → sha1sum-2PTOAFR6-CkYlv9_b.cjs} +3 -3
  202. package/dist/{sha1sum-2PTOAFR6-DRX09xfr.cjs.map → sha1sum-2PTOAFR6-CkYlv9_b.cjs.map} +1 -1
  203. package/dist/{sha1sum-2PTOAFR6-bYeHO5As.mjs → sha1sum-2PTOAFR6-Tx34FCiG.mjs} +3 -3
  204. package/dist/{sha1sum-2PTOAFR6-bYeHO5As.mjs.map → sha1sum-2PTOAFR6-Tx34FCiG.mjs.map} +1 -1
  205. package/dist/{sha256sum-NS7D3IXX-pEx4Nlxz.cjs → sha256sum-NS7D3IXX-BwAzZolU.cjs} +3 -3
  206. package/dist/{sha256sum-NS7D3IXX-pEx4Nlxz.cjs.map → sha256sum-NS7D3IXX-BwAzZolU.cjs.map} +1 -1
  207. package/dist/{sha256sum-NS7D3IXX-BALHrn29.mjs → sha256sum-NS7D3IXX-Dx6KCS2R.mjs} +3 -3
  208. package/dist/{sha256sum-NS7D3IXX-BALHrn29.mjs.map → sha256sum-NS7D3IXX-Dx6KCS2R.mjs.map} +1 -1
  209. package/dist/{sleep-X22JJINO-HxDKPBZR.mjs → sleep-X22JJINO-CzlRHL4h.mjs} +2 -2
  210. package/dist/{sleep-X22JJINO-HxDKPBZR.mjs.map → sleep-X22JJINO-CzlRHL4h.mjs.map} +1 -1
  211. package/dist/{sleep-X22JJINO-Bp6g2tW9.cjs → sleep-X22JJINO-cBloV7Q0.cjs} +2 -2
  212. package/dist/{sleep-X22JJINO-Bp6g2tW9.cjs.map → sleep-X22JJINO-cBloV7Q0.cjs.map} +1 -1
  213. package/dist/{sort-SW2YEO5B-fBlHoB_a.mjs → sort-SW2YEO5B-BMDZb-1_.mjs} +3 -3
  214. package/dist/{sort-SW2YEO5B-fBlHoB_a.mjs.map → sort-SW2YEO5B-BMDZb-1_.mjs.map} +1 -1
  215. package/dist/{sort-SW2YEO5B-DR8iHRuN.cjs → sort-SW2YEO5B-BYU9fVuz.cjs} +3 -3
  216. package/dist/{sort-SW2YEO5B-DR8iHRuN.cjs.map → sort-SW2YEO5B-BYU9fVuz.cjs.map} +1 -1
  217. package/dist/{split-4KKZZXXE-DuBZGw5T.mjs → split-4KKZZXXE-ALYTNVfe.mjs} +2 -2
  218. package/dist/{split-4KKZZXXE-DuBZGw5T.mjs.map → split-4KKZZXXE-ALYTNVfe.mjs.map} +1 -1
  219. package/dist/{split-4KKZZXXE-B17_7njg.cjs → split-4KKZZXXE-DoMli8kl.cjs} +2 -2
  220. package/dist/{split-4KKZZXXE-B17_7njg.cjs.map → split-4KKZZXXE-DoMli8kl.cjs.map} +1 -1
  221. package/dist/{sqlite3-CGOEFJAO-BB6F_5-D.mjs → sqlite3-CGOEFJAO-Bp_CSTKr.mjs} +3 -3
  222. package/dist/{sqlite3-CGOEFJAO-BB6F_5-D.mjs.map → sqlite3-CGOEFJAO-Bp_CSTKr.mjs.map} +1 -1
  223. package/dist/{sqlite3-CGOEFJAO-XoorSW5n.cjs → sqlite3-CGOEFJAO-Cc5IpHed.cjs} +3 -3
  224. package/dist/{sqlite3-CGOEFJAO-XoorSW5n.cjs.map → sqlite3-CGOEFJAO-Cc5IpHed.cjs.map} +1 -1
  225. package/dist/{start-DYnIf75m.mjs → start-B_bnG7bP.mjs} +489 -269
  226. package/dist/start-B_bnG7bP.mjs.map +1 -0
  227. package/dist/{start-xbqVrGhy.cjs → start-DJez7kS6.cjs} +486 -266
  228. package/dist/start-DJez7kS6.cjs.map +1 -0
  229. package/dist/start.cjs +1 -1
  230. package/dist/start.mjs +1 -1
  231. package/dist/{strings-6WDHLGMX-DSA8v5qw.cjs → strings-6WDHLGMX-CuPcf8gP.cjs} +2 -2
  232. package/dist/{strings-6WDHLGMX-DSA8v5qw.cjs.map → strings-6WDHLGMX-CuPcf8gP.cjs.map} +1 -1
  233. package/dist/{strings-6WDHLGMX-Ckk0EvbI.mjs → strings-6WDHLGMX-DY1TL3BE.mjs} +2 -2
  234. package/dist/{strings-6WDHLGMX-Ckk0EvbI.mjs.map → strings-6WDHLGMX-DY1TL3BE.mjs.map} +1 -1
  235. package/dist/{tac-2STMMJYW-DB6jvdtx.mjs → tac-2STMMJYW-BIOL_o4r.mjs} +2 -2
  236. package/dist/{tac-2STMMJYW-DB6jvdtx.mjs.map → tac-2STMMJYW-BIOL_o4r.mjs.map} +1 -1
  237. package/dist/{tac-2STMMJYW-CYkFQG0w.cjs → tac-2STMMJYW-BV5s2WPN.cjs} +2 -2
  238. package/dist/{tac-2STMMJYW-CYkFQG0w.cjs.map → tac-2STMMJYW-BV5s2WPN.cjs.map} +1 -1
  239. package/dist/{tail-R4PCA2C4-CWMtdICt.cjs → tail-R4PCA2C4-B3Yb8Bjm.cjs} +2 -2
  240. package/dist/{tail-R4PCA2C4-CWMtdICt.cjs.map → tail-R4PCA2C4-B3Yb8Bjm.cjs.map} +1 -1
  241. package/dist/{tail-R4PCA2C4-CT05j-0q.mjs → tail-R4PCA2C4-nZbJM4PV.mjs} +2 -2
  242. package/dist/{tail-R4PCA2C4-CT05j-0q.mjs.map → tail-R4PCA2C4-nZbJM4PV.mjs.map} +1 -1
  243. package/dist/{tar-STHHZTZ6-CwhMNhP7.mjs → tar-STHHZTZ6-DSL6ooE9.mjs} +4 -4
  244. package/dist/{tar-STHHZTZ6-CwhMNhP7.mjs.map → tar-STHHZTZ6-DSL6ooE9.mjs.map} +1 -1
  245. package/dist/{tar-STHHZTZ6-CgZGDZ18.cjs → tar-STHHZTZ6-DkIkpNsr.cjs} +5 -5
  246. package/dist/{tar-STHHZTZ6-CgZGDZ18.cjs.map → tar-STHHZTZ6-DkIkpNsr.cjs.map} +1 -1
  247. package/dist/{tee-YUZ2FKCJ-bbbxXMWs.cjs → tee-YUZ2FKCJ-B9yw2E0v.cjs} +2 -2
  248. package/dist/{tee-YUZ2FKCJ-bbbxXMWs.cjs.map → tee-YUZ2FKCJ-B9yw2E0v.cjs.map} +1 -1
  249. package/dist/{tee-YUZ2FKCJ-Dwaan3fu.mjs → tee-YUZ2FKCJ-BsLL09Sw.mjs} +2 -2
  250. package/dist/{tee-YUZ2FKCJ-Dwaan3fu.mjs.map → tee-YUZ2FKCJ-BsLL09Sw.mjs.map} +1 -1
  251. package/dist/{time-D4LNBSWX-BYRhhcb0.mjs → time-D4LNBSWX-CvSGYTiS.mjs} +2 -2
  252. package/dist/{time-D4LNBSWX-BYRhhcb0.mjs.map → time-D4LNBSWX-CvSGYTiS.mjs.map} +1 -1
  253. package/dist/{time-D4LNBSWX-2HcWwID2.cjs → time-D4LNBSWX-cA7bcsGe.cjs} +2 -2
  254. package/dist/{time-D4LNBSWX-2HcWwID2.cjs.map → time-D4LNBSWX-cA7bcsGe.cjs.map} +1 -1
  255. package/dist/{timeout-YDCRSLPQ-DR7iAnPz.cjs → timeout-YDCRSLPQ-CvSjJbG4.cjs} +2 -2
  256. package/dist/{timeout-YDCRSLPQ-DR7iAnPz.cjs.map → timeout-YDCRSLPQ-CvSjJbG4.cjs.map} +1 -1
  257. package/dist/{timeout-YDCRSLPQ-CHdz2oDw.mjs → timeout-YDCRSLPQ-DeoVoL33.mjs} +2 -2
  258. package/dist/{timeout-YDCRSLPQ-CHdz2oDw.mjs.map → timeout-YDCRSLPQ-DeoVoL33.mjs.map} +1 -1
  259. package/dist/{touch-UA33VN3N-CYInX6Yh.cjs → touch-UA33VN3N-D885PEl4.cjs} +2 -2
  260. package/dist/{touch-UA33VN3N-CYInX6Yh.cjs.map → touch-UA33VN3N-D885PEl4.cjs.map} +1 -1
  261. package/dist/{touch-UA33VN3N-D_viAQAq.mjs → touch-UA33VN3N-ze6PkoG2.mjs} +2 -2
  262. package/dist/{touch-UA33VN3N-D_viAQAq.mjs.map → touch-UA33VN3N-ze6PkoG2.mjs.map} +1 -1
  263. package/dist/{tr-36LHWFRQ-Dm4E4yNe.mjs → tr-36LHWFRQ-CA2fEAzH.mjs} +2 -2
  264. package/dist/{tr-36LHWFRQ-Dm4E4yNe.mjs.map → tr-36LHWFRQ-CA2fEAzH.mjs.map} +1 -1
  265. package/dist/{tr-36LHWFRQ-E9cLgaY2.cjs → tr-36LHWFRQ-Cwf3a00t.cjs} +2 -2
  266. package/dist/{tr-36LHWFRQ-E9cLgaY2.cjs.map → tr-36LHWFRQ-Cwf3a00t.cjs.map} +1 -1
  267. package/dist/{tree-YLD52CNT-DcMHtSNz.cjs → tree-YLD52CNT-C3IvYWqA.cjs} +2 -2
  268. package/dist/{tree-YLD52CNT-DcMHtSNz.cjs.map → tree-YLD52CNT-C3IvYWqA.cjs.map} +1 -1
  269. package/dist/{tree-YLD52CNT-BJq1DDgJ.mjs → tree-YLD52CNT-DSJQ7R-B.mjs} +2 -2
  270. package/dist/{tree-YLD52CNT-BJq1DDgJ.mjs.map → tree-YLD52CNT-DSJQ7R-B.mjs.map} +1 -1
  271. package/dist/{unexpand-CADSA4VO-C2u9kk4z.mjs → unexpand-CADSA4VO-BNm5XHrM.mjs} +2 -2
  272. package/dist/{unexpand-CADSA4VO-C2u9kk4z.mjs.map → unexpand-CADSA4VO-BNm5XHrM.mjs.map} +1 -1
  273. package/dist/{unexpand-CADSA4VO-CPf1eX4f.cjs → unexpand-CADSA4VO-GTYkmXww.cjs} +2 -2
  274. package/dist/{unexpand-CADSA4VO-CPf1eX4f.cjs.map → unexpand-CADSA4VO-GTYkmXww.cjs.map} +1 -1
  275. package/dist/{uniq-XSIZR6PB-CIU7iA4v.cjs → uniq-XSIZR6PB-DLeRSas9.cjs} +3 -3
  276. package/dist/{uniq-XSIZR6PB-CIU7iA4v.cjs.map → uniq-XSIZR6PB-DLeRSas9.cjs.map} +1 -1
  277. package/dist/{uniq-XSIZR6PB-qh_cqBWC.mjs → uniq-XSIZR6PB-DT-3eM2u.mjs} +3 -3
  278. package/dist/{uniq-XSIZR6PB-qh_cqBWC.mjs.map → uniq-XSIZR6PB-DT-3eM2u.mjs.map} +1 -1
  279. package/dist/{wc-LF7NU4LA-BbxcDy__.cjs → wc-LF7NU4LA-C1RZ5ZG0.cjs} +3 -3
  280. package/dist/{wc-LF7NU4LA-BbxcDy__.cjs.map → wc-LF7NU4LA-C1RZ5ZG0.cjs.map} +1 -1
  281. package/dist/{wc-LF7NU4LA-BnYjcFUB.mjs → wc-LF7NU4LA-zSVy-vIT.mjs} +3 -3
  282. package/dist/{wc-LF7NU4LA-BnYjcFUB.mjs.map → wc-LF7NU4LA-zSVy-vIT.mjs.map} +1 -1
  283. package/dist/{with-project-scope-BcHUAMLs.mjs → with-project-scope-2xjo2dAA.mjs} +2 -2
  284. package/dist/{with-project-scope-BcHUAMLs.mjs.map → with-project-scope-2xjo2dAA.mjs.map} +1 -1
  285. package/dist/{with-project-scope-l2mUjwTW.cjs → with-project-scope-BICgm_Sk.cjs} +2 -2
  286. package/dist/{with-project-scope-l2mUjwTW.cjs.map → with-project-scope-BICgm_Sk.cjs.map} +1 -1
  287. package/dist/{xan-Y6WF3IRG-BCZiwjDs.cjs → xan-Y6WF3IRG-C_ibI9EP.cjs} +6 -6
  288. package/dist/{xan-Y6WF3IRG-BCZiwjDs.cjs.map → xan-Y6WF3IRG-C_ibI9EP.cjs.map} +1 -1
  289. package/dist/{xan-Y6WF3IRG-BYPvKEpv.mjs → xan-Y6WF3IRG-UCfB1vko.mjs} +6 -6
  290. package/dist/{xan-Y6WF3IRG-BYPvKEpv.mjs.map → xan-Y6WF3IRG-UCfB1vko.mjs.map} +1 -1
  291. package/dist/{xan-view-HDVKHFC2-sHsNhmdW.cjs → xan-view-HDVKHFC2-B2WgyYQX.cjs} +3 -3
  292. package/dist/{xan-view-HDVKHFC2-sHsNhmdW.cjs.map → xan-view-HDVKHFC2-B2WgyYQX.cjs.map} +1 -1
  293. package/dist/{xan-view-HDVKHFC2-BydghNC_.mjs → xan-view-HDVKHFC2-CVGlDFVK.mjs} +3 -3
  294. package/dist/{xan-view-HDVKHFC2-BydghNC_.mjs.map → xan-view-HDVKHFC2-CVGlDFVK.mjs.map} +1 -1
  295. package/dist/{xargs-MGZPH7AX-BtkEXitX.mjs → xargs-MGZPH7AX-B75Okr9h.mjs} +2 -2
  296. package/dist/{xargs-MGZPH7AX-BtkEXitX.mjs.map → xargs-MGZPH7AX-B75Okr9h.mjs.map} +1 -1
  297. package/dist/{xargs-MGZPH7AX-C0ZTspsX.cjs → xargs-MGZPH7AX-DGvbbwTO.cjs} +2 -2
  298. package/dist/{xargs-MGZPH7AX-C0ZTspsX.cjs.map → xargs-MGZPH7AX-DGvbbwTO.cjs.map} +1 -1
  299. package/dist/{yq-4QJW3EQG-DkZSal0c.mjs → yq-4QJW3EQG-h8438fzp.mjs} +3 -3
  300. package/dist/{yq-4QJW3EQG-DkZSal0c.mjs.map → yq-4QJW3EQG-h8438fzp.mjs.map} +1 -1
  301. package/dist/{yq-4QJW3EQG-DwE7zzTV.cjs → yq-4QJW3EQG-yq5WyLHO.cjs} +3 -3
  302. package/dist/{yq-4QJW3EQG-DwE7zzTV.cjs.map → yq-4QJW3EQG-yq5WyLHO.cjs.map} +1 -1
  303. package/package.json +4 -4
  304. package/dist/dist-Bf-X1hc-.cjs.map +0 -1
  305. package/dist/dist-CChImt_Z.mjs.map +0 -1
  306. package/dist/dist-FxtFB69U.mjs.map +0 -1
  307. package/dist/dist-b4HzEMMH.cjs.map +0 -1
  308. package/dist/start-DYnIf75m.mjs.map +0 -1
  309. package/dist/start-xbqVrGhy.cjs.map +0 -1
@@ -1,21 +1,21 @@
1
- import { $ as CreateCredentialsResponseSchema, $n as WorkflowSummaryListResponseSchema, $t as PLATFORM_RESOURCE_UNSUPPORTED_TEXT, A as discoverMcpApp, An as TriggerAttachmentUpdateRequestSchema, Ar as parseStoredRouteManifest, At as ListAgentWorkspaceFilesResponseSchema, B as ActiveOrganizationResponseSchema, Bn as UpdateProjectSettingsRequestSchema, Bt as ListProjectDeploymentsResponseSchema, C as defaultSchedulerPlugin, Cn as StartMcpOAuthConnectionInputSchema, Cr as mapProjectSettings, Ct as HistoryRunListQuerySchema, D as decodeOAuthState, Dn as SubmitMarketingContactResponseSchema, Dr as organizationInvitationAcceptPath, Dt as InviteProjectMembersRequestSchema, E as completeMcpOAuthConnect, En as SubmitMarketingContactRequestSchema, Er as normalizeUserPreferences, Et as InviteOrganizationMembersResponseSchema, F as deleteManagedServiceCredential$1, Fn as UpdateOrganizationMemberResponseSchema, Fr as validateWorkflowRunInputValues, Ft as ListManagedServiceCredentialsResponseSchema, G as AgentWorkspaceFileSummarySchema, Gn as UserPreferencesPatchSchema, Gt as ManagedServiceCredentialSchema, H as AgentSummaryDetailResponseSchema, Hn as UploadProjectSourceResponseSchema, Ht as ListProjectMembersResponseSchema, I as setCredentialInstanceSecret, In as UpdateOrganizationRequestSchema, Ir as validationErrorResponse, It as ListOrganizationInvitationsResponseSchema, J as CompleteProjectArtifactResponseSchema, Jn as WorkflowCanvasRunSchema, Jt as McpDiscoverResponseSchema, K as AppSlugAvailabilityQuerySchema, Kn as UserPreferencesSchema, Kt as ManagedServiceKindSchema, L as setManagedServiceCredential, Ln as UpdateProjectMemberRequestSchema, Lt as ListOrganizationMembersPageQuerySchema, M as withCredentialAssignments, Mn as UpdateCredentialRequestSchema, Mr as resolveExternalPlatformOrigin, Mt as ListAppsResponseSchema, N as PublicHttpUrlError, Nn as UpdateManagedServiceCredentialRequestSchema, Nr as resolveUniqueCredentialInstanceLabel, Nt as ListCredentialsPageQuerySchema, O as describeCredentialBindings, On as SubmitTeamRequestRequestSchema, Or as organizationSlugErrorCodeFromMessage, Ot as InviteProjectMembersResponseSchema, P as deleteCredentialInstanceSecret, Pn as UpdateOrganizationMemberRequestSchema, Pr as validateCredentialValueAgainstFields, Pt as ListCredentialsPageResponseSchema, Q as CreateCredentialsRequestSchema, Qn as WorkflowSummaryDetailResponseSchema, Qt as OrganizationSidebarBrandingSchema, R as ACTIVE_ORG_HEADER, Rn as UpdateProjectMemberResponseSchema, Rt as ListOrganizationMembersPageResponseSchema, S as createJobQueue, Sn as SlugAvailabilityResponseSchema, Sr as mapProjectMember, St as HistoryRunDetailResponseSchema, T as beginMcpOAuthConnect, Tn as StoredProjectSourceManifestSchema, Tr as mergeUserPreferences, Tt as InviteOrganizationMembersRequestSchema, U as AgentSummaryListResponseSchema, Un as UserAvatarPatchSchema, Ut as ListProjectMetricsResponseSchema, V as AgentMemoryFileSummarySchema, Vn as UploadProjectSourceManifestRequestSchema, Vt as ListProjectFilesResponseSchema, W as AgentSummarySchema, Wn as UserAvatarSchema, Wt as ListProjectsResponseSchema, X as CreateApiKeyRequestSchema, Xn as WorkflowRunInputsPutBodySchema, Xt as OpenApiDiscoverResponseSchema, Y as ConnectManagedServiceCredentialRequestSchema, Yn as WorkflowCanvasSchema, Yt as OpenApiDiscoverRequestSchema, Z as CreateApiKeyResponseSchema, Zn as WorkflowRunInputsSchema, Zt as OrganizationSidebarBrandingPatchSchema, _ as orgLogoStorageKey, _n as RecentResourceSchema, _r as mapOrganizationInvitation, _t as GetCredentialResponseSchema, a as extractRouteManifestFromArtifact, an as PresignProjectSourceRequestSchema, ar as WorkspaceTriggerRunListResponseSchema, at as CreateProjectRequestSchema, b as publicKeystrokeAssetsObjectUrl, bn as SkillSummarySchema, br as mapProjectArtifact, bt as GraphqlDiscoverResponseSchema, c as isKeystrokeAssetsOrgLogoPublicUrl, cn as PresignUserAvatarResponseSchema, cr as agentWorkspaceFileId, ct as DEFAULT_TRIGGER_OVERVIEW_MODEL, d as isStorageNotFoundError$1, dn as ProjectSettingsResponseSchema, dr as deriveCredentialInstanceSlug, dt as DbProxyMigrateRequestSchema, en as PROJECT_SLUG_TAKEN_MESSAGE, er as WorkflowSummarySchema, et as CreateCustomAppRequestSchema, f as isUserAvatarStorageKey, fn as ProjectSlugAvailabilityQuerySchema, fr as displayCredentialAppName, ft as DbProxyQueryRequestSchema, gn as RecentResourceListResponseSchema, gr as listenPortFromPublicUrl, gt as ErrorResponseSchema, h as loadProjectSourceFiles, hn as PublicModelsResponseSchema, hr as jsonSchemaToWorkflowInputSchema, ht as DownloadActiveProjectSourceResponseSchema, i as ensureKeystrokeAssetsBucket, in as PresignOrgLogoResponseSchema, ir as WorkspaceTriggerOverviewSchema, it as CreateProjectArtifactResponseSchema, j as discoverOpenApiApp, jn as TriggerRunListQuerySchema, jr as projectFileId, jt as ListApiKeysResponseSchema, k as discoverGraphqlApp, kn as SubmitTeamRequestResponseSchema, kr as parseAppSlug, kt as ListAgentMemoryFilesResponseSchema, l as isOrgLogoStorageKey, ln as ProjectReachabilityResponseSchema, lr as buildCredentialInstanceLabel, lt as DEFAULT_WORKFLOW_CANVAS_MODEL, m as keystrokeAssetsOrgLogoKeyFromPublicUrl, mn as ProjectSourceResourcesSchema, mr as isLlmProviderSlug, mt as DownloadActiveProjectArtifactResponseSchema, n as chatAttachmentStorageKey, nn as PresignChatAttachmentResponseSchema, nr as WorkspaceTriggerFileSchema, nt as CreateOrganizationRequestSchema, o as isChatAttachmentStorageKey, on as PresignProjectSourceResponseSchema, or as WorkspaceWorkflowOverviewSchema, ot as CreateProjectResponseSchema, p as keystrokeAssetsAvatarKeyFromPublicUrl, pn as ProjectSlugAvailabilityResponseSchema, pr as isAllowedChatAttachmentMediaType, pt as DeclineOrganizationInvitationResponseSchema, q as AppSlugAvailabilityResponseSchema, qn as WorkflowCanvasCredentialBindingsSchema, qt as McpDiscoverRequestSchema, r as createAssetsStorageClient, rn as PresignOrgLogoRequestSchema, rr as WorkspaceTriggerListResponseSchema, rt as CreateOrganizationResponseSchema, s as isKeystrokeAssetsAvatarPublicUrl, sn as PresignUserAvatarRequestSchema, sr as agentMemoryFileId, st as DEFAULT_CLOUD_PLATFORM_ORIGIN, t as RouteManifestNotFoundError, tn as PresignChatAttachmentRequestSchema, tr as WorkspaceTriggerDetailSchema, tt as CreateCustomAppResponseSchema, u as isStorageBucketNotFoundError, un as ProjectResponseSchema, ur as chatAttachmentExtension, ut as DEFAULT_WORKFLOW_OVERVIEW_MODEL, v as projectArtifactKey, vn as SkillSummaryDetailResponseSchema, vr as mapOrganizationMember, vt as GetCustomAppResponseSchema, w as cronPayloadSchema, wn as StartMcpOAuthConnectionResultSchema, wr as mapUserOrganization, wt as HistoryRunListResponseSchema, x as userAvatarStorageKey, xn as SlugAvailabilityQuerySchema, xr as mapProjectDeployment, xt as HistoryRunCancelResponseSchema, y as projectSourceBlobKey, yn as SkillSummaryListResponseSchema, yr as mapProject, yt as GraphqlDiscoverRequestSchema, z as AcceptOrganizationInvitationResponseSchema, zn as UpdateProjectRequestSchema, zt as ListOrganizationsResponseSchema } from "./dist-FxtFB69U.mjs";
2
- import { a as verifyOrgWorkerToken, i as pingProjectTarget, n as fetchDeployStatus, r as mintOrgWorkerToken } from "./dist-CChImt_Z.mjs";
1
+ import { $ as CreateCredentialsRequestSchema, $n as WorkflowCanvasCredentialBindingsSchema, $t as OpenApiDiscoverResponseSchema, A as discoverMcpApp, An as SubmitMarketingContactResponseSchema, Ar as mapUserOrganization, At as InviteProjectMembersResponseSchema, B as ActiveOrganizationResponseSchema, Bn as UpdateOrganizationMemberRequestSchema, Br as validateCredentialValueAgainstFields, Bt as ListOrganizationMembersPageQuerySchema, C as defaultSchedulerPlugin, Cn as SkillSummarySchema, Cr as mapOrganizationInvitation, Ct as HistoryRunCancelResponseSchema, D as decodeOAuthState, Dn as StartMcpOAuthConnectionResultSchema, Dr as mapProjectDeployment, Dt as InviteOrganizationMembersRequestSchema, E as completeMcpOAuthConnect, En as StartMcpOAuthConnectionInputSchema, Er as mapProjectArtifact, Et as HistoryRunListResponseSchema, F as deleteManagedServiceCredential$1, Fn as TriggerInvokeRequestSchema, Fr as parseAppSlug, Ft as ListChannelPlatformsResponseSchema, G as AgentWorkspaceFileSummarySchema, Gn as UpdateProjectRequestSchema, Gt as ListProjectMembersResponseSchema, H as AgentSummaryDetailResponseSchema, Hn as UpdateOrganizationRequestSchema, Hr as validationErrorResponse, Ht as ListOrganizationsResponseSchema, I as setCredentialInstanceSecret, In as TriggerInvokeResponseSchema, Ir as parseStoredRouteManifest, It as ListCredentialsPageQuerySchema, J as ChannelPlatformSchema, Jn as UploadProjectSourceResponseSchema, Jt as ManagedServiceCredentialSchema, K as AppSlugAvailabilityQuerySchema, Kn as UpdateProjectSettingsRequestSchema, Kt as ListProjectMetricsResponseSchema, L as setManagedServiceCredential, Ln as TriggerRunListQuerySchema, Lr as projectFileId, Lt as ListCredentialsPageResponseSchema, M as withCredentialAssignments, Mn as SubmitTeamRequestResponseSchema, Mr as normalizeUserPreferences, Mt as ListAgentWorkspaceFilesResponseSchema, N as PublicHttpUrlError, Nn as TriggerAttachmentUpdateRequestSchema, Nr as organizationInvitationAcceptPath, Nt as ListApiKeysResponseSchema, O as describeCredentialBindings, On as StoredProjectSourceManifestSchema, Or as mapProjectMember, Ot as InviteOrganizationMembersResponseSchema, P as deleteCredentialInstanceSecret, Pn as TriggerInvokeInputsSchema, Pr as organizationSlugErrorCodeFromMessage, Pt as ListAppsResponseSchema, Q as CreateApiKeyResponseSchema, Qn as UserPreferencesSchema, Qt as OpenApiDiscoverRequestSchema, R as ACTIVE_ORG_HEADER, Rn as UpdateCredentialRequestSchema, Rr as resolveExternalPlatformOrigin, Rt as ListManagedServiceCredentialsResponseSchema, S as createJobQueue, Sn as SkillSummaryListResponseSchema, Sr as listenPortFromPublicUrl, St as GraphqlDiscoverResponseSchema, T as beginMcpOAuthConnect, Tn as SlugAvailabilityResponseSchema, Tr as mapProject, Tt as HistoryRunListQuerySchema, U as AgentSummaryListResponseSchema, Un as UpdateProjectMemberRequestSchema, Ut as ListProjectDeploymentsResponseSchema, V as AgentMemoryFileSummarySchema, Vn as UpdateOrganizationMemberResponseSchema, Vr as validateWorkflowRunInputValues, Vt as ListOrganizationMembersPageResponseSchema, W as AgentSummarySchema, Wn as UpdateProjectMemberResponseSchema, Wt as ListProjectFilesResponseSchema, X as ConnectManagedServiceCredentialRequestSchema, Xn as UserAvatarSchema, Xt as McpDiscoverRequestSchema, Y as CompleteProjectArtifactResponseSchema, Yn as UserAvatarPatchSchema, Yt as ManagedServiceKindSchema, Z as CreateApiKeyRequestSchema, Zn as UserPreferencesPatchSchema, Zt as McpDiscoverResponseSchema, _ as orgLogoStorageKey, _n as ProjectSourceResourcesSchema, _r as deriveCredentialInstanceSlug, _t as ErrorResponseSchema, a as extractRouteManifestFromArtifact, an as PresignChatAttachmentResponseSchema, ar as WorkflowSummaryListResponseSchema, at as CreateProjectArtifactResponseSchema, b as publicKeystrokeAssetsObjectUrl, bn as RecentResourceSchema, br as isLlmProviderSlug, bt as GetCustomAppResponseSchema, c as isKeystrokeAssetsOrgLogoPublicUrl, cn as PresignProjectSourceRequestSchema, cr as WorkspaceTriggerFileSchema, ct as DEFAULT_CLOUD_PLATFORM_ORIGIN, d as isStorageNotFoundError$1, dn as PresignUserAvatarResponseSchema, dr as WorkspaceTriggerRunListResponseSchema, dt as DEFAULT_WORKFLOW_OVERVIEW_MODEL, en as OrganizationSidebarBrandingPatchSchema, er as WorkflowCanvasRunSchema, et as CreateCredentialsResponseSchema, f as isUserAvatarStorageKey, fn as ProjectReachabilityResponseSchema, fr as WorkspaceWorkflowOverviewSchema, ft as DbProxyMigrateRequestSchema, gn as ProjectSlugAvailabilityResponseSchema, gr as chatAttachmentExtension, gt as DownloadActiveProjectSourceResponseSchema, h as loadProjectSourceFiles, hn as ProjectSlugAvailabilityQuerySchema, hr as buildCredentialInstanceLabel, ht as DownloadActiveProjectArtifactResponseSchema, i as ensureKeystrokeAssetsBucket, in as PresignChatAttachmentRequestSchema, ir as WorkflowSummaryDetailResponseSchema, it as CreateOrganizationResponseSchema, j as discoverOpenApiApp, jn as SubmitTeamRequestRequestSchema, jr as mergeUserPreferences, jt as ListAgentMemoryFilesResponseSchema, k as discoverGraphqlApp, kn as SubmitMarketingContactRequestSchema, kr as mapProjectSettings, kt as InviteProjectMembersRequestSchema, l as isOrgLogoStorageKey, ln as PresignProjectSourceResponseSchema, lr as WorkspaceTriggerListResponseSchema, lt as DEFAULT_TRIGGER_OVERVIEW_MODEL, m as keystrokeAssetsOrgLogoKeyFromPublicUrl, mn as ProjectSettingsResponseSchema, mr as agentWorkspaceFileId, mt as DeclineOrganizationInvitationResponseSchema, n as chatAttachmentStorageKey, nn as PLATFORM_RESOURCE_UNSUPPORTED_TEXT, nr as WorkflowRunInputsPutBodySchema, nt as CreateCustomAppResponseSchema, o as isChatAttachmentStorageKey, on as PresignOrgLogoRequestSchema, or as WorkflowSummarySchema, ot as CreateProjectRequestSchema, p as keystrokeAssetsAvatarKeyFromPublicUrl, pn as ProjectResponseSchema, pr as agentMemoryFileId, pt as DbProxyQueryRequestSchema, q as AppSlugAvailabilityResponseSchema, qn as UploadProjectSourceManifestRequestSchema, qt as ListProjectsResponseSchema, r as createAssetsStorageClient, rn as PROJECT_SLUG_TAKEN_MESSAGE, rr as WorkflowRunInputsSchema, rt as CreateOrganizationRequestSchema, s as isKeystrokeAssetsAvatarPublicUrl, sn as PresignOrgLogoResponseSchema, sr as WorkspaceTriggerDetailSchema, st as CreateProjectResponseSchema, t as RouteManifestNotFoundError, tn as OrganizationSidebarBrandingSchema, tr as WorkflowCanvasSchema, tt as CreateCustomAppRequestSchema, u as isStorageBucketNotFoundError, un as PresignUserAvatarRequestSchema, ur as WorkspaceTriggerOverviewSchema, ut as DEFAULT_WORKFLOW_CANVAS_MODEL, v as projectArtifactKey, vn as PublicModelsResponseSchema, vr as displayCredentialAppName, vt as GetAppCatalogEntryResponseSchema, w as cronPayloadSchema, wn as SlugAvailabilityQuerySchema, wr as mapOrganizationMember, wt as HistoryRunDetailResponseSchema, x as userAvatarStorageKey, xn as SkillSummaryDetailResponseSchema, xr as jsonSchemaToWorkflowInputSchema, xt as GraphqlDiscoverRequestSchema, y as projectSourceBlobKey, yn as RecentResourceListResponseSchema, yr as isAllowedChatAttachmentMediaType, yt as GetCredentialResponseSchema, z as AcceptOrganizationInvitationResponseSchema, zn as UpdateManagedServiceCredentialRequestSchema, zr as resolveUniqueCredentialInstanceLabel, zt as ListOrganizationInvitationsResponseSchema } from "./dist-MAAyMfmx.mjs";
2
+ import { a as verifyOrgWorkerToken, i as pingProjectTarget, n as fetchDeployStatus, r as mintOrgWorkerToken } from "./dist-DfsS-wD6.mjs";
3
3
  import "./chunk-BZUGFHVS-B2NchobP.mjs";
4
4
  import { n as d$4, t as _$1 } from "./chunk-TN7HHBQW-B8PYcKz5.mjs";
5
- import { n as readWorkerTokenFromRequest, r as requireWorkerToken, t as withProjectScope } from "./with-project-scope-BcHUAMLs.mjs";
5
+ import { n as readWorkerTokenFromRequest, r as requireWorkerToken, t as withProjectScope } from "./with-project-scope-2xjo2dAA.mjs";
6
6
  import { createRequire } from "node:module";
7
7
  import { createHash } from "node:crypto";
8
8
  import "node:fs/promises";
9
- import { acquireProjectDatabasePool, buildHistoryAgentSessionDetail, buildHistoryWorkflowRunDetail, cancelAgentSession, cancelWorkflowRun, clearCredentialInstanceDefaults, deleteCredentialInstanceById, findHistoryRunCore, getProjectScopeId, getServerTenantScopeId, getWorkspaceTriggerById, listActiveAgents, listActiveSkills, listActiveWorkflows, listAllCredentialInstances, listCredentialInstancesByConnectionId, listHistoryRuns, listRecentResourceActivity, listReplayEvents, listTriggersByIds, listWorkspaceTriggerRunRows, listWorkspaceTriggers, releaseProjectDatabasePool, runWithProjectDatabase, runWithProjectScope, runWithTenantScope, selectActiveAgentById, selectActiveAgentsByIds, selectActiveSkillById, selectActiveSkillsByIds, selectActiveWorkflowById, selectActiveWorkflowsByIds, selectAgentBySlug, selectAgentLastRunAtByIds, selectAgentSessionById, selectCredentialInstanceById, selectCredentialInstancesForScope, selectEphemeralTriggerAttachments, selectProjectResourceCounts, selectTriggerById, selectWorkflowCanvasAnnotations, selectWorkflowLastRunAtByIds, selectWorkflowOverview, selectWorkflowRunById, selectWorkflowRunForWorkflow, selectWorkflowRunInputValues, setTriggerAttachmentEnabledState, setTriggerOverviewGenerating, setWorkflowCanvasAnnotationsGenerating, setWorkflowOverviewGenerating, storedTriggerSourceFromRow, touchResourceActivity, updateTriggerOverview, updateWorkflowCanvasAnnotations, updateWorkflowOverview, updateWorkflowRunInputValues, upsertCredentialInstance } from "@keystrokehq/database";
9
+ import { acquireProjectDatabasePool, buildHistoryAgentSessionDetail, buildHistoryWorkflowRunDetail, cancelAgentSession, cancelWorkflowRun, clearCredentialInstanceDefaults, deleteCredentialInstanceById, findHistoryRunCore, getProjectScopeId, getServerTenantScopeId, getWorkspaceTriggerById, listActiveAgents, listActiveSkills, listActiveWorkflows, listAllCredentialInstances, listAttachmentsByTriggerIds, listCredentialInstancesByConnectionId, listHistoryRuns, listRecentResourceActivity, listReplayEvents, listTriggersByIds, listWorkspaceTriggerRunRows, listWorkspaceTriggers, releaseProjectDatabasePool, runWithProjectDatabase, runWithProjectScope, runWithTenantScope, selectActiveAgentById, selectActiveAgentsByIds, selectActiveSkillById, selectActiveSkillsByIds, selectActiveWorkflowById, selectActiveWorkflowsByIds, selectAgentBySlug, selectAgentLastRunAtByIds, selectAgentSessionById, selectCredentialInstanceById, selectCredentialInstancesForScope, selectEphemeralTriggerAttachments, selectProjectResourceCounts, selectTriggerById, selectWorkflowCanvasAnnotations, selectWorkflowLastRunAtByIds, selectWorkflowOverview, selectWorkflowRunById, selectWorkflowRunForWorkflow, selectWorkflowRunInputValues, setTriggerAttachmentEnabledState, setTriggerOverviewGenerating, setWorkflowCanvasAnnotationsGenerating, setWorkflowOverviewGenerating, storedTriggerSourceFromRow, touchResourceActivity, updateTriggerOverview, updateWorkflowCanvasAnnotations, updateWorkflowOverview, updateWorkflowRunInputValues, upsertCredentialInstance } from "@keystrokehq/database";
10
10
  import { ZodError, z } from "zod";
11
11
  import { AsyncLocalStorage } from "node:async_hooks";
12
- import { CannotModifyOwnerError, OrgAppSlugTakenError, OrgPlatformApiKeyNotFoundError, OrganizationInvitationExpiredError, OrganizationInvitationForbiddenError, OrganizationInvitationNotFoundError, OrganizationMemberNotFoundError, OrganizationSlugTakenError, OrganizationSlugTakenError as OrganizationSlugTakenError$1, ProjectMemberNotFoundError, ProjectSlugTakenError, acceptInvitation, checkOrgAppSlugAvailability, checkOrganizationSlugAvailability, checkProjectSlugAvailability, completeProjectArtifact, createOrgAgentStorageClient, createOrgApp, createOrgPlatformApiKey, createOrgStorageClient, createOrganizationForUser, createProjectForOrganization, declineInvitation, deleteOAuthConnectionById, deleteProjectForOrganization, encryptCredentialPayload as encryptCredentialPayload$1, ensureProjectPgBossGrants, ensureWebhookApiKeyForRoute, ensureWebhookApiKeys, getManagedServiceCredential, hasCredentialFieldTemplate, initDatabase, insertProjectArtifact, inviteOrganizationMembers, inviteProjectMembers, isOrganizationStorageBucketInUse, listAppsForOrganization, listManagedServiceCredentialsForOrganization, listOrgPlatformApiKeysForOrganization, listOrgPlatformApiKeysForUser, listWebhookApiKeysForProject, listWebhookApiKeysForProjects, loadOrgPlatformApiKeyUser, mapOrgPlatformApiKeyCreator, mapOrgPlatformApiKeyCreatorOrDeleted, orgSchedulerRuntimeEnv, orgWorkspacesRuntimeEnv, organizationRowToSidebarBranding, promoteProjectArtifact, removeOrganizationMember, removeProjectMember, resolveNewOrganizationIdentity, resolveOrgProjectDatabaseOptions, resolveOrgRuntimeDatabase, revokeOrgPlatformApiKey, runWithOrganizationScope, runWithWorkspaceContext, selectActiveArtifactManifestForProject, selectActiveArtifactSourceManifestForProject, selectActiveProjectArtifactForProject, selectAppForOrganization, selectLastDeploymentAtByProject, selectManagedServiceCredentialById, selectOAuthConnectionsByIds, selectOrgPlatformApiKeyForOrganization, selectOrganizationById, selectOrganizationMembers, selectPendingInvitationsForUser, selectProjectArtifactById, selectProjectArtifactForProject, selectProjectById, selectProjectDeployments, selectProjectForOrganization, selectProjectForOrganizationBySlug, selectProjectIdsForUser, selectProjectMembers, selectProjectsByOrganizationId, selectUserById, selectUserOrganizationMembership, selectUserOrganizations, selectUserProjectMembership, selectUsersByIds, updateOrganizationActive, updateOrganizationFailed, updateOrganizationMemberRole, updateOrganizationName, updateOrganizationSidebarBranding, updateOrganizationSlug, updateProjectActive, updateProjectArtifactManifest, updateProjectArtifactSourceManifest, updateProjectFailed, updateProjectForOrganization, updateProjectMemberRole, updateProjectSettings, updateUserById, verifyOrgPlatformApiKeySecret } from "@keystrokehq/platform-database";
12
+ import { CannotModifyOwnerError, OrgAppSlugTakenError, OrgPlatformApiKeyNotFoundError, OrganizationInvitationExpiredError, OrganizationInvitationForbiddenError, OrganizationInvitationNotFoundError, OrganizationMemberNotFoundError, OrganizationSlugTakenError, OrganizationSlugTakenError as OrganizationSlugTakenError$1, ProjectMemberNotFoundError, ProjectSlugTakenError, acceptInvitation, checkOrgAppSlugAvailability, checkOrganizationSlugAvailability, checkProjectSlugAvailability, completeProjectArtifact, createOrgAgentStorageClient, createOrgApp, createOrgPlatformApiKey, createOrgStorageClient, createOrganizationForUser, createProjectForOrganization, declineInvitation, deleteOAuthConnectionById, deleteProjectForOrganization, encryptCredentialPayload as encryptCredentialPayload$1, ensureProjectPgBossGrants, ensureWebhookApiKeyForRoute, ensureWebhookApiKeys, getManagedServiceCredential, hasCredentialFieldTemplate, initDatabase, insertProjectArtifact, inviteOrganizationMembers, inviteProjectMembers, isOrganizationStorageBucketInUse, listAppsForOrganization, listManagedServiceCredentialsForOrganization, listOrgPlatformApiKeysForOrganization, listOrgPlatformApiKeysForUser, listWebhookApiKeysForProject, loadOrgPlatformApiKeyUser, mapOrgPlatformApiKeyCreator, mapOrgPlatformApiKeyCreatorOrDeleted, orgSchedulerRuntimeEnv, orgWorkspacesRuntimeEnv, organizationRowToSidebarBranding, promoteProjectArtifact, removeOrganizationMember, removeProjectMember, resolveNewOrganizationIdentity, resolveOrgProjectDatabaseOptions, resolveOrgRuntimeDatabase, revokeOrgPlatformApiKey, runWithOrganizationScope, runWithWorkspaceContext, selectActiveArtifactManifestForProject, selectActiveArtifactSourceManifestForProject, selectActiveProjectArtifactForProject, selectAppForOrganization, selectLastDeploymentAtByProject, selectManagedServiceCredentialById, selectOAuthConnectionsByIds, selectOrgPlatformApiKeyForOrganization, selectOrganizationById, selectOrganizationMembers, selectPendingInvitationsForUser, selectProjectArtifactById, selectProjectArtifactForProject, selectProjectArtifactSourceManifestForProject, selectProjectById, selectProjectDeployments, selectProjectForOrganization, selectProjectForOrganizationBySlug, selectProjectIdsForUser, selectProjectMembers, selectProjectsByOrganizationId, selectUserById, selectUserOrganizationMembership, selectUserOrganizations, selectUserProjectMembership, selectUsersByIds, updateOrganizationActive, updateOrganizationFailed, updateOrganizationMemberRole, updateOrganizationName, updateOrganizationSidebarBranding, updateOrganizationSlug, updateProjectActive, updateProjectArtifactManifest, updateProjectArtifactSourceManifest, updateProjectFailed, updateProjectForOrganization, updateProjectMemberRole, updateProjectSettings, updateUserById, verifyOrgPlatformApiKeySecret } from "@keystrokehq/platform-database";
13
13
  import "node:fs";
14
14
  import { basename, join, normalize, relative, resolve } from "node:path";
15
15
  import { tmpdir } from "node:os";
16
16
  import { serve } from "@hono/node-server";
17
17
  import { AUTH_API_PATH, createAuth, createDefaultAuthJwtVerifier, extractWebhookApiKeyFromRequest, handleAuthRequest, resolveAuthEmailFrom, resolveRequestAuth } from "@keystrokehq/auth";
18
- import { buildWebhookUrl, createCredentialMaterializeHandler, enqueueWorkflowRunByKey, extractWebhookRoutesFromManifest, seedOAuthAppsFromEnvForAllOrganizations, seedOAuthAppsFromEnvForOrganization, syncRegistryFromStoredManifest } from "@keystrokehq/runtime";
18
+ import { buildWebhookUrl, createCredentialMaterializeHandler, enqueueWebhookIngress, enqueueWorkflowRunByKey, extractWebhookRoutesFromManifest, formatIssuesDetail, matchWebhookPayload, seedOAuthAppsFromEnvForAllOrganizations, seedOAuthAppsFromEnvForOrganization, syncRegistryFromStoredManifest, webhookAttachmentSchemasFromStoredSource, withProjectId } from "@keystrokehq/runtime";
19
19
  import "node:url";
20
20
  import "typescript";
21
21
  import { createApp, externalPlatformOrigin, getProjectScheduler, platformWebhookOrigin, postTeamSlackWebhook, resolveMcpEntityId } from "@keystrokehq/http";
@@ -22872,43 +22872,43 @@ var tt = [
22872
22872
  },
22873
22873
  {
22874
22874
  name: "cat",
22875
- load: async () => (await import("./cat-TSFMZVYS-Q6Hf6Oge.mjs")).catCommand
22875
+ load: async () => (await import("./cat-TSFMZVYS-D05qab3L.mjs")).catCommand
22876
22876
  },
22877
22877
  {
22878
22878
  name: "printf",
22879
- load: async () => (await import("./printf-TWGXF445-Bj_zD0UD.mjs")).printfCommand
22879
+ load: async () => (await import("./printf-TWGXF445-CbtbiufU.mjs")).printfCommand
22880
22880
  },
22881
22881
  {
22882
22882
  name: "ls",
22883
- load: async () => (await import("./ls-ZJGQER7M-BNOzuy3g.mjs")).lsCommand
22883
+ load: async () => (await import("./ls-ZJGQER7M-CiIE3qzx.mjs")).lsCommand
22884
22884
  },
22885
22885
  {
22886
22886
  name: "mkdir",
22887
- load: async () => (await import("./mkdir-MEPGZOB6-BcwdY0Ma.mjs")).mkdirCommand
22887
+ load: async () => (await import("./mkdir-MEPGZOB6-CsRlXLTS.mjs")).mkdirCommand
22888
22888
  },
22889
22889
  {
22890
22890
  name: "rmdir",
22891
- load: async () => (await import("./rmdir-OC4ZLPYA-luVyJvIH.mjs")).rmdirCommand
22891
+ load: async () => (await import("./rmdir-OC4ZLPYA-DDMznQGG.mjs")).rmdirCommand
22892
22892
  },
22893
22893
  {
22894
22894
  name: "touch",
22895
- load: async () => (await import("./touch-UA33VN3N-D_viAQAq.mjs")).touchCommand
22895
+ load: async () => (await import("./touch-UA33VN3N-ze6PkoG2.mjs")).touchCommand
22896
22896
  },
22897
22897
  {
22898
22898
  name: "rm",
22899
- load: async () => (await import("./rm-SSGETQVQ-DxuMjZMu.mjs")).rmCommand
22899
+ load: async () => (await import("./rm-SSGETQVQ-DeTzKk6y.mjs")).rmCommand
22900
22900
  },
22901
22901
  {
22902
22902
  name: "cp",
22903
- load: async () => (await import("./cp-BISAAS7A-DpRVZaXG.mjs")).cpCommand
22903
+ load: async () => (await import("./cp-BISAAS7A-D-Q63TRm.mjs")).cpCommand
22904
22904
  },
22905
22905
  {
22906
22906
  name: "mv",
22907
- load: async () => (await import("./mv-W5BIQ646-D3bi1R9p.mjs")).mvCommand
22907
+ load: async () => (await import("./mv-W5BIQ646-BYl-e0o-.mjs")).mvCommand
22908
22908
  },
22909
22909
  {
22910
22910
  name: "ln",
22911
- load: async () => (await import("./ln-4LGSXXGD-Dwpnd6h2.mjs")).lnCommand
22911
+ load: async () => (await import("./ln-4LGSXXGD-DbDzV1C8.mjs")).lnCommand
22912
22912
  },
22913
22913
  {
22914
22914
  name: "chmod",
@@ -22924,15 +22924,15 @@ var tt = [
22924
22924
  },
22925
22925
  {
22926
22926
  name: "head",
22927
- load: async () => (await import("./head-442HYESI-CdsuONnt.mjs")).headCommand
22927
+ load: async () => (await import("./head-442HYESI-DmveYFFU.mjs")).headCommand
22928
22928
  },
22929
22929
  {
22930
22930
  name: "tail",
22931
- load: async () => (await import("./tail-R4PCA2C4-CT05j-0q.mjs")).tailCommand
22931
+ load: async () => (await import("./tail-R4PCA2C4-nZbJM4PV.mjs")).tailCommand
22932
22932
  },
22933
22933
  {
22934
22934
  name: "wc",
22935
- load: async () => (await import("./wc-LF7NU4LA-BnYjcFUB.mjs")).wcCommand
22935
+ load: async () => (await import("./wc-LF7NU4LA-zSVy-vIT.mjs")).wcCommand
22936
22936
  },
22937
22937
  {
22938
22938
  name: "stat",
@@ -22940,95 +22940,95 @@ var tt = [
22940
22940
  },
22941
22941
  {
22942
22942
  name: "grep",
22943
- load: async () => (await import("./grep-V3LQVMRQ-Db-aRsyg.mjs")).grepCommand
22943
+ load: async () => (await import("./grep-V3LQVMRQ-DF6k595P.mjs")).grepCommand
22944
22944
  },
22945
22945
  {
22946
22946
  name: "fgrep",
22947
- load: async () => (await import("./grep-V3LQVMRQ-Db-aRsyg.mjs")).fgrepCommand
22947
+ load: async () => (await import("./grep-V3LQVMRQ-DF6k595P.mjs")).fgrepCommand
22948
22948
  },
22949
22949
  {
22950
22950
  name: "egrep",
22951
- load: async () => (await import("./grep-V3LQVMRQ-Db-aRsyg.mjs")).egrepCommand
22951
+ load: async () => (await import("./grep-V3LQVMRQ-DF6k595P.mjs")).egrepCommand
22952
22952
  },
22953
22953
  {
22954
22954
  name: "rg",
22955
- load: async () => (await import("./rg-S4FXYXWB-xBQXXqQJ.mjs")).rgCommand
22955
+ load: async () => (await import("./rg-S4FXYXWB-CrkDlDvF.mjs")).rgCommand
22956
22956
  },
22957
22957
  {
22958
22958
  name: "sed",
22959
- load: async () => (await import("./sed-S5UIK574-DNM--Qbh.mjs")).sedCommand
22959
+ load: async () => (await import("./sed-S5UIK574-BUSFFQPx.mjs")).sedCommand
22960
22960
  },
22961
22961
  {
22962
22962
  name: "awk",
22963
- load: async () => (await import("./awk2-LA3USKJP-CBGbfQzU.mjs")).awkCommand2
22963
+ load: async () => (await import("./awk2-LA3USKJP-qs2_VVMX.mjs")).awkCommand2
22964
22964
  },
22965
22965
  {
22966
22966
  name: "sort",
22967
- load: async () => (await import("./sort-SW2YEO5B-fBlHoB_a.mjs")).sortCommand
22967
+ load: async () => (await import("./sort-SW2YEO5B-BMDZb-1_.mjs")).sortCommand
22968
22968
  },
22969
22969
  {
22970
22970
  name: "uniq",
22971
- load: async () => (await import("./uniq-XSIZR6PB-qh_cqBWC.mjs")).uniqCommand
22971
+ load: async () => (await import("./uniq-XSIZR6PB-DT-3eM2u.mjs")).uniqCommand
22972
22972
  },
22973
22973
  {
22974
22974
  name: "comm",
22975
- load: async () => (await import("./comm-VV2LDX2J-D23mvBPi.mjs")).commCommand
22975
+ load: async () => (await import("./comm-VV2LDX2J-BJr9EKP0.mjs")).commCommand
22976
22976
  },
22977
22977
  {
22978
22978
  name: "cut",
22979
- load: async () => (await import("./cut-OKARJCCV-5TYMAMAg.mjs")).cutCommand
22979
+ load: async () => (await import("./cut-OKARJCCV-BwWdLX60.mjs")).cutCommand
22980
22980
  },
22981
22981
  {
22982
22982
  name: "paste",
22983
- load: async () => (await import("./paste-7JC6S4DX-_9g5mJ2v.mjs")).pasteCommand
22983
+ load: async () => (await import("./paste-7JC6S4DX-CF7gu2k0.mjs")).pasteCommand
22984
22984
  },
22985
22985
  {
22986
22986
  name: "tr",
22987
- load: async () => (await import("./tr-36LHWFRQ-Dm4E4yNe.mjs")).trCommand
22987
+ load: async () => (await import("./tr-36LHWFRQ-CA2fEAzH.mjs")).trCommand
22988
22988
  },
22989
22989
  {
22990
22990
  name: "rev",
22991
- load: async () => (await import("./rev-5EHFX4EJ-CTYp3Zpb.mjs")).rev
22991
+ load: async () => (await import("./rev-5EHFX4EJ-DlvMGtu6.mjs")).rev
22992
22992
  },
22993
22993
  {
22994
22994
  name: "nl",
22995
- load: async () => (await import("./nl-WSDW7I4O-DiFRTXuW.mjs")).nl
22995
+ load: async () => (await import("./nl-WSDW7I4O-BO2ue_Ey.mjs")).nl
22996
22996
  },
22997
22997
  {
22998
22998
  name: "fold",
22999
- load: async () => (await import("./fold-4TQNYMSW-qmbE89Lf.mjs")).fold
22999
+ load: async () => (await import("./fold-4TQNYMSW-YMpB9QSy.mjs")).fold
23000
23000
  },
23001
23001
  {
23002
23002
  name: "expand",
23003
- load: async () => (await import("./expand-JSPG6VOP-Cd9oTNoA.mjs")).expand
23003
+ load: async () => (await import("./expand-JSPG6VOP-DzoBcXYr.mjs")).expand
23004
23004
  },
23005
23005
  {
23006
23006
  name: "unexpand",
23007
- load: async () => (await import("./unexpand-CADSA4VO-C2u9kk4z.mjs")).unexpand
23007
+ load: async () => (await import("./unexpand-CADSA4VO-BNm5XHrM.mjs")).unexpand
23008
23008
  },
23009
23009
  {
23010
23010
  name: "strings",
23011
- load: async () => (await import("./strings-6WDHLGMX-Ckk0EvbI.mjs")).strings
23011
+ load: async () => (await import("./strings-6WDHLGMX-DY1TL3BE.mjs")).strings
23012
23012
  },
23013
23013
  {
23014
23014
  name: "split",
23015
- load: async () => (await import("./split-4KKZZXXE-DuBZGw5T.mjs")).split
23015
+ load: async () => (await import("./split-4KKZZXXE-ALYTNVfe.mjs")).split
23016
23016
  },
23017
23017
  {
23018
23018
  name: "column",
23019
- load: async () => (await import("./column-XT6UFXNQ-TrVerir2.mjs")).column
23019
+ load: async () => (await import("./column-XT6UFXNQ-DqFgALwL.mjs")).column
23020
23020
  },
23021
23021
  {
23022
23022
  name: "join",
23023
- load: async () => (await import("./join-TBRGI3LQ-BFOE666V.mjs")).join
23023
+ load: async () => (await import("./join-TBRGI3LQ-COfgsTv-.mjs")).join
23024
23024
  },
23025
23025
  {
23026
23026
  name: "tee",
23027
- load: async () => (await import("./tee-YUZ2FKCJ-Dwaan3fu.mjs")).teeCommand
23027
+ load: async () => (await import("./tee-YUZ2FKCJ-BsLL09Sw.mjs")).teeCommand
23028
23028
  },
23029
23029
  {
23030
23030
  name: "find",
23031
- load: async () => (await import("./find-INTH3OLC-CkpCJ3pJ.mjs")).findCommand
23031
+ load: async () => (await import("./find-INTH3OLC-D2TzVTjf.mjs")).findCommand
23032
23032
  },
23033
23033
  {
23034
23034
  name: "basename",
@@ -23040,19 +23040,19 @@ var tt = [
23040
23040
  },
23041
23041
  {
23042
23042
  name: "tree",
23043
- load: async () => (await import("./tree-YLD52CNT-BJq1DDgJ.mjs")).treeCommand
23043
+ load: async () => (await import("./tree-YLD52CNT-DSJQ7R-B.mjs")).treeCommand
23044
23044
  },
23045
23045
  {
23046
23046
  name: "du",
23047
- load: async () => (await import("./du-572XNP42-C5BwG-hn.mjs")).duCommand
23047
+ load: async () => (await import("./du-572XNP42-fIDX-8AV.mjs")).duCommand
23048
23048
  },
23049
23049
  {
23050
23050
  name: "env",
23051
- load: async () => (await import("./env-36M5BO7M-DNwUUFD3.mjs")).envCommand
23051
+ load: async () => (await import("./env-36M5BO7M-BUAfAmVu.mjs")).envCommand
23052
23052
  },
23053
23053
  {
23054
23054
  name: "printenv",
23055
- load: async () => (await import("./env-36M5BO7M-DNwUUFD3.mjs")).printenvCommand
23055
+ load: async () => (await import("./env-36M5BO7M-BUAfAmVu.mjs")).printenvCommand
23056
23056
  },
23057
23057
  {
23058
23058
  name: "alias",
@@ -23068,7 +23068,7 @@ var tt = [
23068
23068
  },
23069
23069
  {
23070
23070
  name: "xargs",
23071
- load: async () => (await import("./xargs-MGZPH7AX-BtkEXitX.mjs")).xargsCommand
23071
+ load: async () => (await import("./xargs-MGZPH7AX-B75Okr9h.mjs")).xargsCommand
23072
23072
  },
23073
23073
  {
23074
23074
  name: "true",
@@ -23084,23 +23084,23 @@ var tt = [
23084
23084
  },
23085
23085
  {
23086
23086
  name: "bash",
23087
- load: async () => (await import("./bash-YZ33HQZQ-BDaE7hEw.mjs")).bashCommand
23087
+ load: async () => (await import("./bash-YZ33HQZQ-CJRIU8H2.mjs")).bashCommand
23088
23088
  },
23089
23089
  {
23090
23090
  name: "sh",
23091
- load: async () => (await import("./bash-YZ33HQZQ-BDaE7hEw.mjs")).shCommand
23091
+ load: async () => (await import("./bash-YZ33HQZQ-CJRIU8H2.mjs")).shCommand
23092
23092
  },
23093
23093
  {
23094
23094
  name: "jq",
23095
- load: async () => (await import("./jq-4XLYLOS5-BQHwTRc2.mjs")).jqCommand
23095
+ load: async () => (await import("./jq-4XLYLOS5-CL2TNYG5.mjs")).jqCommand
23096
23096
  },
23097
23097
  {
23098
23098
  name: "base64",
23099
- load: async () => (await import("./base64-C2AIWVNC-DEWGBjID.mjs")).base64Command
23099
+ load: async () => (await import("./base64-C2AIWVNC-DC9H0hV-.mjs")).base64Command
23100
23100
  },
23101
23101
  {
23102
23102
  name: "diff",
23103
- load: async () => (await import("./diff-MWJFIG7X-1SUS3Txq.mjs")).diffCommand
23103
+ load: async () => (await import("./diff-MWJFIG7X-C-JnPG9q.mjs")).diffCommand
23104
23104
  },
23105
23105
  {
23106
23106
  name: "date",
@@ -23108,15 +23108,15 @@ var tt = [
23108
23108
  },
23109
23109
  {
23110
23110
  name: "sleep",
23111
- load: async () => (await import("./sleep-X22JJINO-HxDKPBZR.mjs")).sleepCommand
23111
+ load: async () => (await import("./sleep-X22JJINO-CzlRHL4h.mjs")).sleepCommand
23112
23112
  },
23113
23113
  {
23114
23114
  name: "timeout",
23115
- load: async () => (await import("./timeout-YDCRSLPQ-CHdz2oDw.mjs")).timeoutCommand
23115
+ load: async () => (await import("./timeout-YDCRSLPQ-DeoVoL33.mjs")).timeoutCommand
23116
23116
  },
23117
23117
  {
23118
23118
  name: "time",
23119
- load: async () => (await import("./time-D4LNBSWX-BYRhhcb0.mjs")).timeCommand
23119
+ load: async () => (await import("./time-D4LNBSWX-CvSGYTiS.mjs")).timeCommand
23120
23120
  },
23121
23121
  {
23122
23122
  name: "seq",
@@ -23124,19 +23124,19 @@ var tt = [
23124
23124
  },
23125
23125
  {
23126
23126
  name: "expr",
23127
- load: async () => (await import("./expr-5JAACS4X-Cf6x6i33.mjs")).exprCommand
23127
+ load: async () => (await import("./expr-5JAACS4X-CY91I5un.mjs")).exprCommand
23128
23128
  },
23129
23129
  {
23130
23130
  name: "md5sum",
23131
- load: async () => (await import("./md5sum-SPU24VSG-C8AdJxhI.mjs")).md5sumCommand
23131
+ load: async () => (await import("./md5sum-SPU24VSG-Cx4M1-kL.mjs")).md5sumCommand
23132
23132
  },
23133
23133
  {
23134
23134
  name: "sha1sum",
23135
- load: async () => (await import("./sha1sum-2PTOAFR6-bYeHO5As.mjs")).sha1sumCommand
23135
+ load: async () => (await import("./sha1sum-2PTOAFR6-Tx34FCiG.mjs")).sha1sumCommand
23136
23136
  },
23137
23137
  {
23138
23138
  name: "sha256sum",
23139
- load: async () => (await import("./sha256sum-NS7D3IXX-BALHrn29.mjs")).sha256sumCommand
23139
+ load: async () => (await import("./sha256sum-NS7D3IXX-Dx6KCS2R.mjs")).sha256sumCommand
23140
23140
  },
23141
23141
  {
23142
23142
  name: "file",
@@ -23144,11 +23144,11 @@ var tt = [
23144
23144
  },
23145
23145
  {
23146
23146
  name: "html-to-markdown",
23147
- load: async () => (await import("./html-to-markdown-JW4MSQZO-DELHwTRG.mjs")).htmlToMarkdownCommand
23147
+ load: async () => (await import("./html-to-markdown-JW4MSQZO-DpaYZl9o.mjs")).htmlToMarkdownCommand
23148
23148
  },
23149
23149
  {
23150
23150
  name: "help",
23151
- load: async () => (await import("./help-HZ6M2CKN-CCwL_Yl6.mjs")).helpCommand
23151
+ load: async () => (await import("./help-HZ6M2CKN-Dr_TCbMC.mjs")).helpCommand
23152
23152
  },
23153
23153
  {
23154
23154
  name: "which",
@@ -23156,7 +23156,7 @@ var tt = [
23156
23156
  },
23157
23157
  {
23158
23158
  name: "tac",
23159
- load: async () => (await import("./tac-2STMMJYW-DB6jvdtx.mjs")).tac
23159
+ load: async () => (await import("./tac-2STMMJYW-BIOL_o4r.mjs")).tac
23160
23160
  },
23161
23161
  {
23162
23162
  name: "hostname",
@@ -23168,49 +23168,49 @@ var tt = [
23168
23168
  },
23169
23169
  {
23170
23170
  name: "od",
23171
- load: async () => (await import("./od-WOKFDJTP-8JEVA3Uf.mjs")).od
23171
+ load: async () => (await import("./od-WOKFDJTP-DhapoX4F.mjs")).od
23172
23172
  },
23173
23173
  {
23174
23174
  name: "gzip",
23175
- load: async () => (await import("./gzip-O5ASJAFY-Do8n8_qx.mjs")).gzipCommand
23175
+ load: async () => (await import("./gzip-O5ASJAFY-DxIXEWhI.mjs")).gzipCommand
23176
23176
  },
23177
23177
  {
23178
23178
  name: "gunzip",
23179
- load: async () => (await import("./gzip-O5ASJAFY-Do8n8_qx.mjs")).gunzipCommand
23179
+ load: async () => (await import("./gzip-O5ASJAFY-DxIXEWhI.mjs")).gunzipCommand
23180
23180
  },
23181
23181
  {
23182
23182
  name: "zcat",
23183
- load: async () => (await import("./gzip-O5ASJAFY-Do8n8_qx.mjs")).zcatCommand
23183
+ load: async () => (await import("./gzip-O5ASJAFY-DxIXEWhI.mjs")).zcatCommand
23184
23184
  }
23185
23185
  ];
23186
23186
  (typeof __BROWSER__ > "u" || !__BROWSER__) && (tt.push({
23187
23187
  name: "tar",
23188
- load: async () => (await import("./tar-STHHZTZ6-CwhMNhP7.mjs")).tarCommand
23188
+ load: async () => (await import("./tar-STHHZTZ6-DSL6ooE9.mjs")).tarCommand
23189
23189
  }), tt.push({
23190
23190
  name: "yq",
23191
- load: async () => (await import("./yq-4QJW3EQG-DkZSal0c.mjs")).yqCommand
23191
+ load: async () => (await import("./yq-4QJW3EQG-h8438fzp.mjs")).yqCommand
23192
23192
  }), tt.push({
23193
23193
  name: "xan",
23194
- load: async () => (await import("./xan-Y6WF3IRG-BYPvKEpv.mjs")).xanCommand
23194
+ load: async () => (await import("./xan-Y6WF3IRG-UCfB1vko.mjs")).xanCommand
23195
23195
  }), tt.push({
23196
23196
  name: "sqlite3",
23197
- load: async () => (await import("./sqlite3-CGOEFJAO-BB6F_5-D.mjs")).sqlite3Command
23197
+ load: async () => (await import("./sqlite3-CGOEFJAO-Bp_CSTKr.mjs")).sqlite3Command
23198
23198
  }));
23199
23199
  var Yt = [];
23200
23200
  (typeof __BROWSER__ > "u" || !__BROWSER__) && (Yt.push({
23201
23201
  name: "python3",
23202
- load: async () => (await import("./python3-POMOR4OA-EzA7X-E6.mjs")).python3Command
23202
+ load: async () => (await import("./python3-POMOR4OA-RbWWe2yI.mjs")).python3Command
23203
23203
  }), Yt.push({
23204
23204
  name: "python",
23205
- load: async () => (await import("./python3-POMOR4OA-EzA7X-E6.mjs")).pythonCommand
23205
+ load: async () => (await import("./python3-POMOR4OA-RbWWe2yI.mjs")).pythonCommand
23206
23206
  }));
23207
23207
  var Qt = [];
23208
23208
  (typeof __BROWSER__ > "u" || !__BROWSER__) && (Qt.push({
23209
23209
  name: "js-exec",
23210
- load: async () => (await import("./js-exec-N5KEZBH7-CjZA7H9Y.mjs")).jsExecCommand
23210
+ load: async () => (await import("./js-exec-N5KEZBH7-COcVNDNj.mjs")).jsExecCommand
23211
23211
  }), Qt.push({
23212
23212
  name: "node",
23213
- load: async () => (await import("./js-exec-N5KEZBH7-CjZA7H9Y.mjs")).nodeStubCommand
23213
+ load: async () => (await import("./js-exec-N5KEZBH7-COcVNDNj.mjs")).nodeStubCommand
23214
23214
  }));
23215
23215
  new TextEncoder();
23216
23216
  Object.freeze({
@@ -24966,7 +24966,7 @@ function withOrganizationProjectDatabase() {
24966
24966
  }
24967
24967
  //#endregion
24968
24968
  //#region src/routes/account/users/me/avatar/GET.ts
24969
- const handler$95 = async (c) => {
24969
+ const handler$99 = async (c) => {
24970
24970
  const dbUser = await selectUserById(c.get("user").id);
24971
24971
  if (!dbUser) return c.json(ErrorResponseSchema.parse({ error: "User not found" }), 404);
24972
24972
  return c.json(UserAvatarSchema.parse({ url: dbUser.image ?? null }));
@@ -24985,7 +24985,7 @@ function avatarExtensionForContentType(contentType) {
24985
24985
  }
24986
24986
  //#endregion
24987
24987
  //#region src/routes/account/users/me/avatar/presign/POST.ts
24988
- const handler$94 = async (c) => {
24988
+ const handler$98 = async (c) => {
24989
24989
  const parsed = PresignUserAvatarRequestSchema.safeParse(await c.req.json().catch(() => null));
24990
24990
  if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid avatar upload request" }), 400);
24991
24991
  const extension = avatarExtensionForContentType(parsed.data.contentType);
@@ -25025,7 +25025,7 @@ async function deleteStoredImageIfOwned(input) {
25025
25025
  }
25026
25026
  //#endregion
25027
25027
  //#region src/routes/account/users/me/avatar/PATCH.ts
25028
- const handler$93 = async (c) => {
25028
+ const handler$97 = async (c) => {
25029
25029
  const parsed = UserAvatarPatchSchema.safeParse(await c.req.json().catch(() => null));
25030
25030
  if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid avatar update" }), 400);
25031
25031
  const user = c.get("user");
@@ -25067,14 +25067,14 @@ const handler$93 = async (c) => {
25067
25067
  };
25068
25068
  //#endregion
25069
25069
  //#region src/routes/account/users/me/preferences/GET.ts
25070
- const handler$92 = async (c) => {
25070
+ const handler$96 = async (c) => {
25071
25071
  const dbUser = await selectUserById(c.get("user").id);
25072
25072
  if (!dbUser) return c.json(ErrorResponseSchema.parse({ error: "User not found" }), 404);
25073
25073
  return c.json(UserPreferencesSchema.parse(normalizeUserPreferences(dbUser.preferences)));
25074
25074
  };
25075
25075
  //#endregion
25076
25076
  //#region src/routes/account/users/me/preferences/PATCH.ts
25077
- const handler$91 = async (c) => {
25077
+ const handler$95 = async (c) => {
25078
25078
  const parsed = UserPreferencesPatchSchema.safeParse(await c.req.json().catch(() => null));
25079
25079
  if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid preferences update" }), 400);
25080
25080
  const user = c.get("user");
@@ -25089,7 +25089,7 @@ const handler$91 = async (c) => {
25089
25089
  };
25090
25090
  //#endregion
25091
25091
  //#region src/routes/account/organizations/GET.ts
25092
- const handler$90 = async (c) => {
25092
+ const handler$94 = async (c) => {
25093
25093
  const memberships = await selectUserOrganizations(c.get("user").id);
25094
25094
  return c.json(ListOrganizationsResponseSchema.parse(memberships.map(mapUserOrganization)));
25095
25095
  };
@@ -25167,7 +25167,7 @@ function createOrganizationHandler(deps) {
25167
25167
  }
25168
25168
  //#endregion
25169
25169
  //#region src/routes/account/organizations/slug-available/GET.ts
25170
- const handler$89 = async (c) => {
25170
+ const handler$93 = async (c) => {
25171
25171
  const parsed = SlugAvailabilityQuerySchema.safeParse({
25172
25172
  slug: c.req.query("slug"),
25173
25173
  excludeOrganizationId: c.req.query("excludeOrganizationId")
@@ -25178,7 +25178,7 @@ const handler$89 = async (c) => {
25178
25178
  };
25179
25179
  //#endregion
25180
25180
  //#region src/routes/account/organizations/[organizationId]/GET.ts
25181
- const handler$88 = async (c) => {
25181
+ const handler$92 = async (c) => {
25182
25182
  const { organizationId } = c.get("organization");
25183
25183
  const membership = await selectUserOrganizationMembership(c.get("user").id, organizationId);
25184
25184
  if (!membership) throw new Error(`Organization membership missing after param guard: ${organizationId}`);
@@ -25186,7 +25186,7 @@ const handler$88 = async (c) => {
25186
25186
  };
25187
25187
  //#endregion
25188
25188
  //#region src/routes/account/organizations/[organizationId]/PATCH.ts
25189
- const handler$87 = async (c) => {
25189
+ const handler$91 = async (c) => {
25190
25190
  const organization = c.get("organization");
25191
25191
  const body = await c.req.json().catch(() => null);
25192
25192
  const parsed = UpdateOrganizationRequestSchema.safeParse(body);
@@ -25211,7 +25211,7 @@ const handler$87 = async (c) => {
25211
25211
  };
25212
25212
  //#endregion
25213
25213
  //#region src/routes/account/organizations/[organizationId]/branding/GET.ts
25214
- const handler$86 = async (c) => {
25214
+ const handler$90 = async (c) => {
25215
25215
  const { organizationId } = c.get("organization");
25216
25216
  const organization = await selectOrganizationById(organizationId);
25217
25217
  if (!organization) return c.json(ErrorResponseSchema.parse({ error: "Organization not found" }), 404);
@@ -25260,7 +25260,7 @@ async function finalizeOrgLogoVariant(input) {
25260
25260
  publicUrl: finalized.publicUrl
25261
25261
  };
25262
25262
  }
25263
- const handler$85 = async (c) => {
25263
+ const handler$89 = async (c) => {
25264
25264
  const parsed = OrganizationSidebarBrandingPatchSchema.safeParse(await c.req.json().catch(() => null));
25265
25265
  if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid branding update" }), 400);
25266
25266
  const { organizationId } = c.get("organization");
@@ -25288,7 +25288,7 @@ const handler$85 = async (c) => {
25288
25288
  };
25289
25289
  //#endregion
25290
25290
  //#region src/routes/account/organizations/[organizationId]/branding/logo/presign/POST.ts
25291
- const handler$84 = async (c) => {
25291
+ const handler$88 = async (c) => {
25292
25292
  const parsed = PresignOrgLogoRequestSchema.safeParse(await c.req.json().catch(() => null));
25293
25293
  if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid logo upload request" }), 400);
25294
25294
  const extension = avatarExtensionForContentType(parsed.data.contentType);
@@ -25393,7 +25393,7 @@ async function attachRanAsToDetail(detail, ranByUserId) {
25393
25393
  }
25394
25394
  //#endregion
25395
25395
  //#region src/routes/account/history/GET.ts
25396
- const handler$83 = async (c) => {
25396
+ const handler$87 = async (c) => {
25397
25397
  const organization = c.get("organization");
25398
25398
  const ctx = accessContext(c);
25399
25399
  const query = HistoryRunListQuerySchema.parse({
@@ -25418,7 +25418,7 @@ const handler$83 = async (c) => {
25418
25418
  };
25419
25419
  //#endregion
25420
25420
  //#region src/routes/account/history/[runId]/GET.ts
25421
- const handler$82 = async (c) => {
25421
+ const handler$86 = async (c) => {
25422
25422
  const runId = c.req.param("runId") ?? "";
25423
25423
  if (!runId) return c.json(null, 404);
25424
25424
  const core = await findHistoryRunCore(runId);
@@ -25476,7 +25476,7 @@ function toAgentSummary(row, options) {
25476
25476
  }
25477
25477
  //#endregion
25478
25478
  //#region src/routes/account/agents/GET.ts
25479
- const handler$81 = async (c) => {
25479
+ const handler$85 = async (c) => {
25480
25480
  const filter = await resolveListProjectIds(c, listScope(c, agentListScope(accessContext(c))), c.req.query("projectId"));
25481
25481
  if (filter === "empty") return c.json(AgentSummaryListResponseSchema.parse([]));
25482
25482
  const rows = await listActiveAgents(filter);
@@ -25490,7 +25490,7 @@ function touchResourceActivityBestEffort(options) {
25490
25490
  }
25491
25491
  //#endregion
25492
25492
  //#region src/routes/account/agents/[agentId]/GET.ts
25493
- const handler$80 = async (c) => {
25493
+ const handler$84 = async (c) => {
25494
25494
  const agentId = c.req.param("agentId") ?? "";
25495
25495
  const row = agentId ? await selectActiveAgentById(agentId) : void 0;
25496
25496
  if (!row || !await canAccessProjectId(c, row.projectId, canAccessAgent)) return c.json(AgentSummaryDetailResponseSchema.parse(null));
@@ -25513,7 +25513,7 @@ const handler$80 = async (c) => {
25513
25513
  function relativePathsFromStorageKeys(prefix, keys) {
25514
25514
  return keys.filter((key) => key.startsWith(prefix) && key.endsWith(".md")).map((key) => key.slice(prefix.length)).filter((path) => !path.startsWith(".") && !path.includes("/."));
25515
25515
  }
25516
- const handler$79 = async (c) => {
25516
+ const handler$83 = async (c) => {
25517
25517
  const agentId = c.req.param("agentId") ?? "";
25518
25518
  const row = agentId ? await selectActiveAgentById(agentId) : void 0;
25519
25519
  if (!row || !await canAccessProjectId(c, row.projectId, canAccessAgent)) return c.json(ListAgentMemoryFilesResponseSchema.parse({ files: [] }), 404);
@@ -25538,7 +25538,7 @@ function isStorageNotFoundError(error) {
25538
25538
  const status = typeof record.$metadata === "object" && record.$metadata !== null ? record.$metadata.httpStatusCode : void 0;
25539
25539
  return name === "NoSuchKey" || code === "NoSuchKey" || code === "NotFound" || status === 404;
25540
25540
  }
25541
- const handler$78 = async (c) => {
25541
+ const handler$82 = async (c) => {
25542
25542
  const agentId = c.req.param("agentId") ?? "";
25543
25543
  const path = c.req.query("path");
25544
25544
  if (!path) return c.json(ErrorResponseSchema.parse({ error: "File path is required" }), 400);
@@ -25592,7 +25592,7 @@ function workspaceRelativePathsFromStorageKeys(keys) {
25592
25592
  }
25593
25593
  //#endregion
25594
25594
  //#region src/routes/account/agents/[agentId]/workspace/files/GET.ts
25595
- const handler$77 = async (c) => {
25595
+ const handler$81 = async (c) => {
25596
25596
  const agentId = c.req.param("agentId") ?? "";
25597
25597
  const row = agentId ? await selectActiveAgentById(agentId) : void 0;
25598
25598
  if (!row || !await canAccessProjectId(c, row.projectId, canAccessAgent)) return c.json(ListAgentWorkspaceFilesResponseSchema.parse({ files: [] }), 404);
@@ -25615,7 +25615,7 @@ const handler$77 = async (c) => {
25615
25615
  };
25616
25616
  //#endregion
25617
25617
  //#region src/routes/account/agents/[agentId]/workspace/files/content/GET.ts
25618
- const handler$76 = async (c) => {
25618
+ const handler$80 = async (c) => {
25619
25619
  const agentId = c.req.param("agentId") ?? "";
25620
25620
  const path = c.req.query("path");
25621
25621
  if (!path) return c.json(ErrorResponseSchema.parse({ error: "File path is required" }), 400);
@@ -25664,7 +25664,7 @@ async function cancelHistoryRun(c, kind, cancel) {
25664
25664
  }
25665
25665
  //#endregion
25666
25666
  //#region src/routes/account/agents/sessions/[sessionId]/cancel/POST.ts
25667
- const handler$75 = (c) => cancelHistoryRun(c, "agent", cancelAgentSession);
25667
+ const handler$79 = (c) => cancelHistoryRun(c, "agent", cancelAgentSession);
25668
25668
  //#endregion
25669
25669
  //#region src/routes/account/resources/workflows.ts
25670
25670
  function toWorkflowSummary(row, options) {
@@ -25681,7 +25681,7 @@ function toWorkflowSummary(row, options) {
25681
25681
  }
25682
25682
  //#endregion
25683
25683
  //#region src/routes/account/workflows/GET.ts
25684
- const handler$74 = async (c) => {
25684
+ const handler$78 = async (c) => {
25685
25685
  const filter = await resolveListProjectIds(c, listScope(c, workflowListScope(accessContext(c))), c.req.query("projectId"));
25686
25686
  if (filter === "empty") return c.json(WorkflowSummaryListResponseSchema.parse([]));
25687
25687
  const rows = await listActiveWorkflows(filter);
@@ -25690,7 +25690,7 @@ const handler$74 = async (c) => {
25690
25690
  };
25691
25691
  //#endregion
25692
25692
  //#region src/routes/account/workflows/[workflowId]/GET.ts
25693
- const handler$73 = async (c) => {
25693
+ const handler$77 = async (c) => {
25694
25694
  const workflowId = c.req.param("workflowId") ?? "";
25695
25695
  const row = workflowId ? await selectActiveWorkflowById(workflowId) : void 0;
25696
25696
  if (!row || !await canAccessProjectId(c, row.projectId, canAccessWorkflow)) return c.json(WorkflowSummaryDetailResponseSchema.parse(null));
@@ -26130,8 +26130,8 @@ function buildWorkflowCanvas(input) {
26130
26130
  //#region src/routes/account/workflows/[workflowId]/canvas/GET.ts
26131
26131
  /** Bumped when the annotation prompt/model changes, so cached annotations invalidate. */
26132
26132
  const ANNOTATIONS_GENERATOR_VERSION = "wf-canvas-annotations-v1";
26133
- const handler$72 = async (c) => {
26134
- const { organizationId } = c.get("organization");
26133
+ const handler$76 = async (c) => {
26134
+ const organization = c.get("organization");
26135
26135
  const workflowId = c.req.param("workflowId") ?? "";
26136
26136
  if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
26137
26137
  const resolved = await resolveWorkflow(c, workflowId);
@@ -26186,11 +26186,9 @@ const handler$72 = async (c) => {
26186
26186
  model: cache.model ?? model
26187
26187
  }));
26188
26188
  }
26189
- const organization = await selectOrganizationById(organizationId);
26190
- if (!organization) return c.json(ErrorResponseSchema.parse({ error: "Organization not found" }), 404);
26191
26189
  await runWithProjectScope(projectId, () => setWorkflowCanvasAnnotationsGenerating(workflowId, hash));
26192
26190
  try {
26193
- await (await getProjectScheduler(organization, projectId)).enqueue({
26191
+ await (await getProjectScheduler(organization.row, projectId)).enqueue({
26194
26192
  kind: "workflow-canvas-annotations",
26195
26193
  targetId: workflowId,
26196
26194
  runId: crypto.randomUUID(),
@@ -26305,7 +26303,7 @@ function toBinding(key, description) {
26305
26303
  * each of its requirements currently binds to (read-only, no decryption). Not
26306
26304
  * content-hash cached — credential state changes without a redeploy.
26307
26305
  */
26308
- const handler$71 = async (c) => {
26306
+ const handler$75 = async (c) => {
26309
26307
  const workflowId = c.req.param("workflowId") ?? "";
26310
26308
  if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
26311
26309
  const resolved = await resolveWorkflow(c, workflowId);
@@ -26464,7 +26462,7 @@ function toCanvasRunStatus(status) {
26464
26462
  if (status === "canceled") return "canceled";
26465
26463
  return "running";
26466
26464
  }
26467
- const handler$70 = async (c) => {
26465
+ const handler$74 = async (c) => {
26468
26466
  const workflowId = c.req.param("workflowId") ?? "";
26469
26467
  const runId = c.req.param("runId") ?? "";
26470
26468
  if (!workflowId.trim() || !runId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow or run id" }), 400);
@@ -26519,8 +26517,8 @@ async function loadWorkflowSource(organization, projectId, sourcePath) {
26519
26517
  return null;
26520
26518
  }
26521
26519
  }
26522
- const handler$69 = async (c) => {
26523
- const { organizationId } = c.get("organization");
26520
+ const handler$73 = async (c) => {
26521
+ const organization = c.get("organization");
26524
26522
  const workflowId = c.req.param("workflowId") ?? "";
26525
26523
  if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
26526
26524
  const resolved = await resolveWorkflow(c, workflowId);
@@ -26582,12 +26580,10 @@ const handler$69 = async (c) => {
26582
26580
  model: cache.model ?? model
26583
26581
  }));
26584
26582
  }
26585
- const organization = await selectOrganizationById(organizationId);
26586
- if (!organization) return c.json(ErrorResponseSchema.parse({ error: "Organization not found" }), 404);
26587
26583
  await runWithProjectScope(projectId, () => setWorkflowOverviewGenerating(workflowId, hash));
26588
- const source = await loadWorkflowSource(organization, projectId, workflowEntry.moduleFile);
26584
+ const source = await loadWorkflowSource(organization.row, projectId, workflowEntry.moduleFile);
26589
26585
  try {
26590
- await (await getProjectScheduler(organization, projectId)).enqueue({
26586
+ await (await getProjectScheduler(organization.row, projectId)).enqueue({
26591
26587
  kind: "workflow-overview",
26592
26588
  targetId: workflowId,
26593
26589
  runId: crypto.randomUUID(),
@@ -26622,7 +26618,7 @@ const handler$69 = async (c) => {
26622
26618
  };
26623
26619
  //#endregion
26624
26620
  //#region src/routes/account/workflows/[workflowId]/run-inputs/GET.ts
26625
- const handler$68 = async (c) => {
26621
+ const handler$72 = async (c) => {
26626
26622
  const workflowId = c.req.param("workflowId") ?? "";
26627
26623
  if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
26628
26624
  const resolved = await resolveWorkflow(c, workflowId);
@@ -26637,7 +26633,7 @@ const handler$68 = async (c) => {
26637
26633
  };
26638
26634
  //#endregion
26639
26635
  //#region src/routes/account/workflows/[workflowId]/run-inputs/PUT.ts
26640
- const handler$67 = async (c) => {
26636
+ const handler$71 = async (c) => {
26641
26637
  const workflowId = c.req.param("workflowId") ?? "";
26642
26638
  if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
26643
26639
  const resolved = await resolveWorkflow(c, workflowId);
@@ -26669,7 +26665,7 @@ function parseRunInput(requestSchema, input) {
26669
26665
  * the active deploy's request schema, creates a pending run, and enqueues it on
26670
26666
  * the project's queue (drained by the project runtime worker). Returns the run id.
26671
26667
  */
26672
- const handler$66 = async (c) => {
26668
+ const handler$70 = async (c) => {
26673
26669
  const { organizationId } = c.get("organization");
26674
26670
  const workflowId = c.req.param("workflowId") ?? "";
26675
26671
  if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
@@ -26706,7 +26702,7 @@ const handler$66 = async (c) => {
26706
26702
  };
26707
26703
  //#endregion
26708
26704
  //#region src/routes/account/workflows/[workflowId]/runs/GET.ts
26709
- const handler$65 = async (c) => {
26705
+ const handler$69 = async (c) => {
26710
26706
  const workflowId = c.req.param("workflowId") ?? "";
26711
26707
  if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
26712
26708
  const resolved = await resolveWorkflow(c, workflowId);
@@ -26729,7 +26725,7 @@ const handler$65 = async (c) => {
26729
26725
  };
26730
26726
  //#endregion
26731
26727
  //#region src/routes/account/workflows/runs/[runId]/cancel/POST.ts
26732
- const handler$64 = (c) => cancelHistoryRun(c, "workflow", cancelWorkflowRun);
26728
+ const handler$68 = (c) => cancelHistoryRun(c, "workflow", cancelWorkflowRun);
26733
26729
  //#endregion
26734
26730
  //#region src/routes/account/resources/skills.ts
26735
26731
  function toSkillSummary(row) {
@@ -26746,7 +26742,7 @@ function toSkillSummary(row) {
26746
26742
  }
26747
26743
  //#endregion
26748
26744
  //#region src/routes/account/skills/GET.ts
26749
- const handler$63 = async (c) => {
26745
+ const handler$67 = async (c) => {
26750
26746
  const filter = await resolveListProjectIds(c, listScope(c, skillListScope(accessContext(c))), c.req.query("projectId"));
26751
26747
  if (filter === "empty") return c.json(SkillSummaryListResponseSchema.parse([]));
26752
26748
  const rows = await listActiveSkills(filter);
@@ -26754,7 +26750,7 @@ const handler$63 = async (c) => {
26754
26750
  };
26755
26751
  //#endregion
26756
26752
  //#region src/routes/account/skills/[skillId]/GET.ts
26757
- const handler$62 = async (c) => {
26753
+ const handler$66 = async (c) => {
26758
26754
  const skillId = c.req.param("skillId") ?? "";
26759
26755
  const row = skillId ? await selectActiveSkillById(skillId) : void 0;
26760
26756
  if (!row || !await canAccessProjectId(c, row.projectId, canAccessSkill)) return c.json(SkillSummaryDetailResponseSchema.parse(null));
@@ -26863,21 +26859,19 @@ function toWorkspaceTriggerRunSummary(item, assignments) {
26863
26859
  }
26864
26860
  //#endregion
26865
26861
  //#region src/routes/account/triggers/GET.ts
26866
- const handler$61 = async (c) => {
26862
+ const handler$65 = async (c) => {
26867
26863
  const organization = c.get("organization");
26868
26864
  const scope = listScope(c, projectListScope(accessContext(c)));
26869
26865
  const filter = await resolveListProjectIds(c, scope, c.req.query("projectId"));
26870
26866
  if (filter === "empty") return c.json(WorkspaceTriggerListResponseSchema.parse([]));
26871
26867
  const granted = await grantedProjectIds(c, scope);
26872
26868
  const [records, projects] = await Promise.all([listWorkspaceTriggers(filter.projectIds), selectProjectsByOrganizationId(organization.organizationId, { grantedProjectIds: granted })]);
26873
- const webhookKeys = await listWebhookApiKeysForProjects(filter.projectIds ?? projects.map((project) => project.id));
26874
26869
  const projectNameById = new Map(projects.map((project) => [project.id, project.name]));
26875
- const tokens = webhookTokensByProjectRoute(webhookKeys);
26876
- return c.json(WorkspaceTriggerListResponseSchema.parse(records.map((record) => toWorkspaceTriggerDetail(record, projectNameById.get(record.projectId) ?? "Unknown project", buildTriggerWebhookUrl(record, tokens)))));
26870
+ return c.json(WorkspaceTriggerListResponseSchema.parse(records.map((record) => toWorkspaceTriggerDetail(record, projectNameById.get(record.projectId) ?? "Unknown project", null))));
26877
26871
  };
26878
26872
  //#endregion
26879
26873
  //#region src/routes/account/triggers/[triggerId]/GET.ts
26880
- const handler$60 = async (c) => {
26874
+ const handler$64 = async (c) => {
26881
26875
  const organization = c.get("organization");
26882
26876
  const triggerId = c.req.param("triggerId") ?? "";
26883
26877
  if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
@@ -26893,7 +26887,7 @@ const handler$60 = async (c) => {
26893
26887
  };
26894
26888
  //#endregion
26895
26889
  //#region src/routes/account/triggers/[triggerId]/runs/GET.ts
26896
- const handler$59 = async (c) => {
26890
+ const handler$63 = async (c) => {
26897
26891
  const triggerId = c.req.param("triggerId") ?? "";
26898
26892
  if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
26899
26893
  const filter = await resolveListProjectIds(c, listScope(c, projectListScope(accessContext(c))));
@@ -26922,7 +26916,7 @@ const handler$59 = async (c) => {
26922
26916
  };
26923
26917
  //#endregion
26924
26918
  //#region src/routes/account/triggers/[triggerId]/file/GET.ts
26925
- const handler$58 = async (c) => {
26919
+ const handler$62 = async (c) => {
26926
26920
  const { organizationId } = c.get("organization");
26927
26921
  const triggerId = c.req.param("triggerId") ?? "";
26928
26922
  if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
@@ -26959,7 +26953,7 @@ function envelope(row, status, hash) {
26959
26953
  model: row.overviewModel ?? "deepseek/deepseek-v4-flash"
26960
26954
  });
26961
26955
  }
26962
- const handler$57 = async (c) => {
26956
+ const handler$61 = async (c) => {
26963
26957
  const { organizationId } = c.get("organization");
26964
26958
  const triggerId = c.req.param("triggerId") ?? "";
26965
26959
  if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
@@ -27019,7 +27013,7 @@ const handler$57 = async (c) => {
27019
27013
  };
27020
27014
  //#endregion
27021
27015
  //#region src/routes/account/triggers/[triggerId]/attachments/[attachmentId]/PATCH.ts
27022
- const handler$56 = async (c) => {
27016
+ const handler$60 = async (c) => {
27023
27017
  const organization = c.get("organization");
27024
27018
  const triggerId = c.req.param("triggerId") ?? "";
27025
27019
  const attachmentId = c.req.param("attachmentId") ?? "";
@@ -27049,6 +27043,151 @@ const handler$56 = async (c) => {
27049
27043
  return c.json(WorkspaceTriggerDetailSchema.parse(toWorkspaceTriggerDetail(refreshed, projectName, webhookUrl)));
27050
27044
  };
27051
27045
  //#endregion
27046
+ //#region src/routes/account/triggers/[triggerId]/invoke/POST.ts
27047
+ function narrowAssignments(assignments, body) {
27048
+ if (body.workflow && body.agent) return {
27049
+ error: "Pass only one of workflow or agent",
27050
+ status: 400
27051
+ };
27052
+ if (!body.workflow && !body.agent) return assignments;
27053
+ const kind = body.workflow ? "workflow" : "agent";
27054
+ const slug = body.workflow ?? body.agent;
27055
+ const match = assignments.find((entry) => entry.kind === kind && entry.slug === slug);
27056
+ if (!match) return {
27057
+ error: `No ${kind} "${slug}" attached to this trigger`,
27058
+ status: 404
27059
+ };
27060
+ return [match];
27061
+ }
27062
+ function enabledAssignments(assignments) {
27063
+ return assignments.filter((entry) => entry.status === "active");
27064
+ }
27065
+ async function loadWebhookSchemasForTrigger(record, attachmentSlugs) {
27066
+ const trigger = await selectTriggerById(record.id);
27067
+ if (!trigger || trigger.kind !== "webhook") return [];
27068
+ const source = storedTriggerSourceFromRow(trigger);
27069
+ if (source.kind !== "webhook") return [];
27070
+ const attachments = await listAttachmentsByTriggerIds([record.id]);
27071
+ const allowed = new Set(attachmentSlugs);
27072
+ return attachments.filter((row) => allowed.has(row.slug)).map((row) => webhookAttachmentSchemasFromStoredSource(row.slug, source, record.id));
27073
+ }
27074
+ var InvokeHttpError = class extends Error {
27075
+ status;
27076
+ constructor(message, status) {
27077
+ super(message);
27078
+ this.status = status;
27079
+ this.name = "InvokeHttpError";
27080
+ }
27081
+ };
27082
+ /**
27083
+ * Manually invoke a trigger from the dashboard or CLI. Validates webhook input against
27084
+ * stored attachment schemas, then enqueues a trigger job on the project's queue.
27085
+ */
27086
+ const handler$59 = async (c) => {
27087
+ const { organizationId } = c.get("organization");
27088
+ const triggerId = c.req.param("triggerId") ?? "";
27089
+ if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
27090
+ let body = {};
27091
+ if ((c.req.header("content-type") ?? "").includes("application/json")) try {
27092
+ body = await c.req.json();
27093
+ } catch {
27094
+ return c.json(ErrorResponseSchema.parse({ error: "Invalid JSON body" }), 400);
27095
+ }
27096
+ const parsed = TriggerInvokeRequestSchema.safeParse(body);
27097
+ if (!parsed.success) {
27098
+ const message = parsed.error.issues[0]?.message ?? "Invalid request body";
27099
+ return c.json(ErrorResponseSchema.parse({ error: message }), 400);
27100
+ }
27101
+ const filter = await resolveListProjectIds(c, listScope(c, projectListScope(accessContext(c))));
27102
+ if (filter === "empty") return c.json(ErrorResponseSchema.parse({ error: "Trigger not found" }), 404);
27103
+ const record = await getWorkspaceTriggerById(triggerId, filter.projectIds);
27104
+ if (!record) return c.json(ErrorResponseSchema.parse({ error: "Trigger not found" }), 404);
27105
+ if (!await canPerformProjectAction(c, record.projectId, projectActions.deploy)) return forbidden(c);
27106
+ if (record.status === "disabled") return c.json(ErrorResponseSchema.parse({ error: "Trigger is disabled" }), 409);
27107
+ const narrowed = narrowAssignments(record.assignments, parsed.data);
27108
+ if ("error" in narrowed) return c.json(ErrorResponseSchema.parse({ error: narrowed.error }), narrowed.status);
27109
+ const targets = enabledAssignments(narrowed);
27110
+ if (targets.length === 0) return c.json(ErrorResponseSchema.parse({ error: "No enabled attachments to invoke" }), 409);
27111
+ if (parsed.data.input !== void 0 && record.type !== "webhook") return c.json(ErrorResponseSchema.parse({ error: `input is only supported for webhook triggers (got ${record.type})` }), 400);
27112
+ const organization = await selectOrganizationById(organizationId);
27113
+ if (!organization) return c.json(ErrorResponseSchema.parse({ error: "Organization not found" }), 404);
27114
+ const attachmentSlugs = targets.map((entry) => entry.attachmentSlug);
27115
+ const manualPayload = parsed.data.workflow || parsed.data.agent ? {
27116
+ manual: true,
27117
+ attachments: attachmentSlugs
27118
+ } : { manual: true };
27119
+ try {
27120
+ const runId = await runWithProjectScope(record.projectId, async () => {
27121
+ const scheduler = await getProjectScheduler(organization, record.projectId);
27122
+ if (record.type === "webhook") {
27123
+ if (!record.webhookEndpoint) throw new InvokeHttpError("Webhook trigger has no endpoint", 409);
27124
+ const route = webhookRouteFromEndpoint(record.webhookEndpoint);
27125
+ const schemas = await loadWebhookSchemasForTrigger(record, attachmentSlugs);
27126
+ if (schemas.length === 0) throw new InvokeHttpError("Webhook attachment schemas not found", 409);
27127
+ const input = parsed.data.input ?? {};
27128
+ const matchResult = matchWebhookPayload(input, schemas);
27129
+ if (matchResult.matches.length === 0) throw new InvokeHttpError(matchResult.unmatched[0]?.issues && matchResult.unmatched[0].issues.length > 0 ? formatIssuesDetail(matchResult.unmatched[0].issues) : "Payload did not match any attachment schema", 422);
27130
+ return enqueueWebhookIngress({
27131
+ route,
27132
+ matches: matchResult.matches,
27133
+ payload: input,
27134
+ jobQueue: scheduler
27135
+ });
27136
+ }
27137
+ const runId = crypto.randomUUID();
27138
+ await scheduler.enqueue(withProjectId({
27139
+ kind: "trigger",
27140
+ targetId: record.slug,
27141
+ runId,
27142
+ trigger: record.type,
27143
+ payload: manualPayload
27144
+ }));
27145
+ return runId;
27146
+ });
27147
+ return c.json(TriggerInvokeResponseSchema.parse({ runId }), 202);
27148
+ } catch (error) {
27149
+ if (error instanceof InvokeHttpError) return c.json(ErrorResponseSchema.parse({ error: error.message }), error.status);
27150
+ throw error;
27151
+ }
27152
+ };
27153
+ //#endregion
27154
+ //#region src/routes/account/triggers/[triggerId]/invoke-inputs/GET.ts
27155
+ /**
27156
+ * Form metadata for the dashboard invoke popover: webhook request schemas and
27157
+ * cron's read-only static payload.
27158
+ */
27159
+ const handler$58 = async (c) => {
27160
+ const triggerId = c.req.param("triggerId") ?? "";
27161
+ if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
27162
+ const filter = await resolveListProjectIds(c, listScope(c, projectListScope(accessContext(c))));
27163
+ if (filter === "empty") return c.json(ErrorResponseSchema.parse({ error: "Trigger not found" }), 404);
27164
+ const record = await getWorkspaceTriggerById(triggerId, filter.projectIds);
27165
+ if (!record) return c.json(ErrorResponseSchema.parse({ error: "Trigger not found" }), 404);
27166
+ const { attachments, staticPayload } = await runWithProjectScope(record.projectId, async () => {
27167
+ const trigger = await selectTriggerById(record.id);
27168
+ const source = trigger ? storedTriggerSourceFromRow(trigger) : null;
27169
+ const rows = await listAttachmentsByTriggerIds([record.id]);
27170
+ const requestSchemaBySlug = /* @__PURE__ */ new Map();
27171
+ if (source?.kind === "webhook") for (const row of rows) requestSchemaBySlug.set(row.slug, source.requestSchema);
27172
+ return {
27173
+ attachments: record.assignments.map((assignment) => ({
27174
+ attachmentSlug: assignment.attachmentSlug,
27175
+ kind: assignment.kind,
27176
+ targetSlug: assignment.slug,
27177
+ targetName: assignment.name,
27178
+ enabled: assignment.status === "active",
27179
+ ...requestSchemaBySlug.has(assignment.attachmentSlug) ? { requestSchema: requestSchemaBySlug.get(assignment.attachmentSlug) } : {}
27180
+ })),
27181
+ staticPayload: source?.kind === "cron" ? source.payload ?? {} : record.type === "cron" ? {} : void 0
27182
+ };
27183
+ });
27184
+ return c.json(TriggerInvokeInputsSchema.parse({
27185
+ type: record.type,
27186
+ attachments,
27187
+ ...staticPayload !== void 0 ? { staticPayload } : {}
27188
+ }));
27189
+ };
27190
+ //#endregion
27052
27191
  //#region src/routes/account/resources/recents.ts
27053
27192
  function toRecentResource(activity, resource, projectName) {
27054
27193
  return RecentResourceSchema.parse({
@@ -27083,7 +27222,7 @@ function latestRecentInteractionAt(recent) {
27083
27222
  //#endregion
27084
27223
  //#region src/routes/account/recents/GET.ts
27085
27224
  const RECENTS_LIMIT = 50;
27086
- const handler$55 = async (c) => {
27225
+ const handler$57 = async (c) => {
27087
27226
  const userId = c.get("user").id;
27088
27227
  const organization = c.get("organization");
27089
27228
  const grantedProjectIdsList = await grantedProjectIds(c, { kind: "member-only" });
@@ -27109,7 +27248,7 @@ const handler$55 = async (c) => {
27109
27248
  };
27110
27249
  //#endregion
27111
27250
  //#region src/routes/account/projects/GET.ts
27112
- const handler$54 = async (c) => {
27251
+ const handler$56 = async (c) => {
27113
27252
  const organization = c.get("organization");
27114
27253
  const grantedProjectIdsList = await grantedProjectIds(c, listScope(c, projectListScope(accessContext(c))));
27115
27254
  const projects = await selectProjectsByOrganizationId(organization.organizationId, { grantedProjectIds: grantedProjectIdsList });
@@ -27135,7 +27274,7 @@ function mergeProjectListMetrics(input) {
27135
27274
  }
27136
27275
  //#endregion
27137
27276
  //#region src/routes/account/projects/metrics/GET.ts
27138
- const handler$53 = async (c) => {
27277
+ const handler$55 = async (c) => {
27139
27278
  const organization = c.get("organization");
27140
27279
  const grantedProjectIdsList = await grantedProjectIds(c, listScope(c, projectListScope(accessContext(c))));
27141
27280
  const [resourceCounts, lastDeploymentAtByProject] = await Promise.all([selectProjectResourceCounts(grantedProjectIdsList !== void 0 ? { projectIds: grantedProjectIdsList } : void 0), selectLastDeploymentAtByProject(organization.organizationId)]);
@@ -27151,7 +27290,7 @@ const handler$53 = async (c) => {
27151
27290
  };
27152
27291
  //#endregion
27153
27292
  //#region src/routes/account/projects/POST.ts
27154
- const handler$52 = async (c) => {
27293
+ const handler$54 = async (c) => {
27155
27294
  const organization = c.get("organization");
27156
27295
  const user = c.get("user");
27157
27296
  const body = await c.req.json().catch(() => null);
@@ -27162,7 +27301,7 @@ const handler$52 = async (c) => {
27162
27301
  };
27163
27302
  //#endregion
27164
27303
  //#region src/routes/account/projects/slug-available/GET.ts
27165
- const handler$51 = async (c) => {
27304
+ const handler$53 = async (c) => {
27166
27305
  const organization = c.get("organization");
27167
27306
  const parsed = ProjectSlugAvailabilityQuerySchema.safeParse({
27168
27307
  slug: c.req.query("slug"),
@@ -27174,12 +27313,12 @@ const handler$51 = async (c) => {
27174
27313
  };
27175
27314
  //#endregion
27176
27315
  //#region src/routes/account/projects/[projectId]/GET.ts
27177
- const handler$50 = async (c) => {
27316
+ const handler$52 = async (c) => {
27178
27317
  return c.json(ProjectResponseSchema.parse(routeProject(c.get("project"))));
27179
27318
  };
27180
27319
  //#endregion
27181
27320
  //#region src/routes/account/projects/[projectId]/PATCH.ts
27182
- const handler$49 = async (c) => {
27321
+ const handler$51 = async (c) => {
27183
27322
  const organization = c.get("organization");
27184
27323
  const project = c.get("project");
27185
27324
  const body = await c.req.json().catch(() => null);
@@ -27197,7 +27336,7 @@ const handler$49 = async (c) => {
27197
27336
  };
27198
27337
  //#endregion
27199
27338
  //#region src/routes/account/projects/[projectId]/DELETE.ts
27200
- const handler$48 = async (c) => {
27339
+ const handler$50 = async (c) => {
27201
27340
  const organization = c.get("organization");
27202
27341
  const project = c.get("project");
27203
27342
  if (!await deleteProjectForOrganization(organization.organizationId, project.id)) return c.json(ErrorResponseSchema.parse({ error: "Project not found" }), 404);
@@ -27205,7 +27344,7 @@ const handler$48 = async (c) => {
27205
27344
  };
27206
27345
  //#endregion
27207
27346
  //#region src/routes/account/projects/[projectId]/deployments/GET.ts
27208
- const handler$47 = async (c) => {
27347
+ const handler$49 = async (c) => {
27209
27348
  const rows = await selectProjectDeployments(c.get("project").id);
27210
27349
  return c.json(ListProjectDeploymentsResponseSchema.parse(rows.map(mapProjectDeployment)));
27211
27350
  };
@@ -27213,7 +27352,7 @@ const handler$47 = async (c) => {
27213
27352
  //#region src/routes/account/projects/[projectId]/artifacts/POST.ts
27214
27353
  const DEFAULT_PRESIGN_TTL_SECONDS$1 = 900;
27215
27354
  const ARTIFACT_CONTENT_TYPE = "application/gzip";
27216
- const handler$46 = async (c) => {
27355
+ const handler$48 = async (c) => {
27217
27356
  const project = c.get("project");
27218
27357
  const { organizationId } = c.get("organization");
27219
27358
  const organization = await selectOrganizationById(organizationId);
@@ -27241,7 +27380,7 @@ const handler$46 = async (c) => {
27241
27380
  //#endregion
27242
27381
  //#region src/routes/account/projects/[projectId]/artifacts/active/download/GET.ts
27243
27382
  const DEFAULT_PRESIGN_TTL_SECONDS = 900;
27244
- const handler$45 = async (c) => {
27383
+ const handler$47 = async (c) => {
27245
27384
  const project = c.get("project");
27246
27385
  const { organizationId } = c.get("organization");
27247
27386
  const organization = await selectOrganizationById(organizationId);
@@ -27260,7 +27399,7 @@ const handler$45 = async (c) => {
27260
27399
  };
27261
27400
  //#endregion
27262
27401
  //#region src/routes/account/projects/[projectId]/artifacts/active/source/GET.ts
27263
- const handler$44 = async (c) => {
27402
+ const handler$46 = async (c) => {
27264
27403
  const project = c.get("project");
27265
27404
  const active = await selectActiveArtifactSourceManifestForProject(project.id);
27266
27405
  if (!active?.sourceManifestJson) return c.json(ErrorResponseSchema.parse({ error: "No active source for project" }), 404);
@@ -27283,7 +27422,7 @@ const handler$44 = async (c) => {
27283
27422
  };
27284
27423
  //#endregion
27285
27424
  //#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/complete/POST.ts
27286
- const handler$43 = async (c) => {
27425
+ const handler$45 = async (c) => {
27287
27426
  const project = c.get("project");
27288
27427
  const artifactId = c.req.param("artifactId");
27289
27428
  if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
@@ -27323,7 +27462,7 @@ const handler$43 = async (c) => {
27323
27462
  //#endregion
27324
27463
  //#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/source/presign/POST.ts
27325
27464
  const SOURCE_BLOB_CONTENT_TYPE = "text/plain; charset=utf-8";
27326
- const handler$42 = async (c) => {
27465
+ const handler$44 = async (c) => {
27327
27466
  const project = c.get("project");
27328
27467
  const artifactId = c.req.param("artifactId");
27329
27468
  if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
@@ -27351,7 +27490,7 @@ const handler$42 = async (c) => {
27351
27490
  };
27352
27491
  //#endregion
27353
27492
  //#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/source/manifest/POST.ts
27354
- const handler$41 = async (c) => {
27493
+ const handler$43 = async (c) => {
27355
27494
  const project = c.get("project");
27356
27495
  const artifactId = c.req.param("artifactId");
27357
27496
  if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
@@ -27383,7 +27522,7 @@ function extensionFromUpload(contentType, filename) {
27383
27522
  if (fromName && /^[a-z0-9]+$/.test(fromName)) return fromName;
27384
27523
  return chatAttachmentExtension(contentType) ?? "bin";
27385
27524
  }
27386
- const handler$40 = async (c) => {
27525
+ const handler$42 = async (c) => {
27387
27526
  const project = c.get("project");
27388
27527
  const slug = c.req.param("slug");
27389
27528
  if (!slug) return c.json(ErrorResponseSchema.parse({ error: "Agent slug is required" }), 400);
@@ -27408,7 +27547,7 @@ const handler$40 = async (c) => {
27408
27547
  };
27409
27548
  //#endregion
27410
27549
  //#region src/routes/account/projects/[projectId]/agents/[slug]/attachments/[...key]/GET.ts
27411
- const handler$39 = async (c) => {
27550
+ const handler$41 = async (c) => {
27412
27551
  const project = c.get("project");
27413
27552
  const slug = c.req.param("slug");
27414
27553
  const keyParam = c.req.param("key");
@@ -27434,16 +27573,27 @@ const handler$39 = async (c) => {
27434
27573
  * match are dropped rather than emitting paths clients can't find in the tree.
27435
27574
  */
27436
27575
  function resolveSourcePaths(rows, kindDir, filePaths) {
27576
+ const exact = new Set(filePaths);
27577
+ const bySuffix = /* @__PURE__ */ new Map();
27578
+ for (const filePath of filePaths) {
27579
+ const kindIdx = filePath.indexOf(`/${kindDir}/`);
27580
+ if (kindIdx >= 0) bySuffix.set(filePath.slice(kindIdx + 1), filePath);
27581
+ else if (filePath.startsWith(`${kindDir}/`)) bySuffix.set(filePath, filePath);
27582
+ }
27437
27583
  return rows.flatMap((row) => {
27584
+ if (exact.has(row.moduleFile)) return [{
27585
+ slug: row.slug,
27586
+ path: row.moduleFile
27587
+ }];
27438
27588
  const suffix = `${kindDir}/${row.moduleFile}`;
27439
- const path = filePaths.find((filePath) => filePath === row.moduleFile) ?? filePaths.find((filePath) => filePath === suffix || filePath.endsWith(`/${suffix}`));
27589
+ const path = bySuffix.get(suffix);
27440
27590
  return path ? [{
27441
27591
  slug: row.slug,
27442
27592
  path
27443
27593
  }] : [];
27444
27594
  });
27445
27595
  }
27446
- const handler$38 = async (c) => {
27596
+ const handler$40 = async (c) => {
27447
27597
  const project = c.get("project");
27448
27598
  const active = await selectActiveArtifactSourceManifestForProject(project.id);
27449
27599
  if (!active || !active.sourceManifestJson) return c.json(ListProjectFilesResponseSchema.parse({
@@ -27476,20 +27626,36 @@ const handler$38 = async (c) => {
27476
27626
  }));
27477
27627
  };
27478
27628
  //#endregion
27629
+ //#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/files/content/if-none-match.ts
27630
+ /** RFC 7232 weak comparison for If-None-Match (comma-separated list or `*`). */
27631
+ function ifNoneMatchMatches(ifNoneMatch, etag) {
27632
+ if (!ifNoneMatch) return false;
27633
+ const header = ifNoneMatch.trim();
27634
+ if (header === "*") return true;
27635
+ const normalize = (value) => value.trim().replace(/^W\//i, "");
27636
+ const target = normalize(etag);
27637
+ return header.split(",").some((part) => normalize(part) === target);
27638
+ }
27639
+ //#endregion
27479
27640
  //#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/files/content/GET.ts
27480
- const handler$37 = async (c) => {
27641
+ const handler$39 = async (c) => {
27481
27642
  const project = c.get("project");
27482
27643
  const artifactId = c.req.param("artifactId");
27483
27644
  if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
27484
27645
  const path = c.req.query("path");
27485
27646
  if (!path) return c.json(ErrorResponseSchema.parse({ error: "File path is required" }), 400);
27486
- const artifact = await selectProjectArtifactForProject(artifactId, project.id);
27647
+ const artifact = await selectProjectArtifactSourceManifestForProject(artifactId, project.id);
27487
27648
  if (!artifact || !artifact.sourceManifestJson) return c.json(ErrorResponseSchema.parse({ error: "Artifact not found" }), 404);
27488
27649
  const file = StoredProjectSourceManifestSchema.parse(artifact.sourceManifestJson).files.find((entry) => entry.path === path);
27489
27650
  if (!file) return c.json(ErrorResponseSchema.parse({ error: "File not found" }), 404);
27490
- const { organizationId } = c.get("organization");
27491
- const organization = await selectOrganizationById(organizationId);
27492
- if (!organization) return c.json(ErrorResponseSchema.parse({ error: "Organization not found" }), 404);
27651
+ const etag = `"${file.hash}"`;
27652
+ const cacheControl = "private, max-age=31536000, immutable";
27653
+ if (ifNoneMatchMatches(c.req.header("If-None-Match"), etag)) {
27654
+ c.header("ETag", etag);
27655
+ c.header("Cache-Control", cacheControl);
27656
+ return c.body(null, 304);
27657
+ }
27658
+ const organization = c.get("organization").row;
27493
27659
  const storage = createOrgStorageClient(organization);
27494
27660
  let bytes;
27495
27661
  try {
@@ -27497,6 +27663,8 @@ const handler$37 = async (c) => {
27497
27663
  } catch {
27498
27664
  return c.json(ErrorResponseSchema.parse({ error: "File contents not found" }), 404);
27499
27665
  }
27666
+ c.header("ETag", etag);
27667
+ c.header("Cache-Control", cacheControl);
27500
27668
  c.header("Content-Type", "text/plain; charset=utf-8");
27501
27669
  return c.body(new TextDecoder().decode(bytes));
27502
27670
  };
@@ -27516,7 +27684,7 @@ function createProjectReachabilityHandler(hosting) {
27516
27684
  }
27517
27685
  //#endregion
27518
27686
  //#region src/routes/account/projects/[projectId]/members/GET.ts
27519
- const handler$36 = async (c) => {
27687
+ const handler$38 = async (c) => {
27520
27688
  const project = c.get("project");
27521
27689
  const currentUserId = c.get("user").id;
27522
27690
  const members = await selectProjectMembers(project.id);
@@ -27524,7 +27692,7 @@ const handler$36 = async (c) => {
27524
27692
  };
27525
27693
  //#endregion
27526
27694
  //#region src/routes/account/projects/[projectId]/members/POST.ts
27527
- const handler$35 = async (c) => {
27695
+ const handler$37 = async (c) => {
27528
27696
  const organization = c.get("organization");
27529
27697
  const project = c.get("project");
27530
27698
  const body = await c.req.json().catch(() => null);
@@ -27540,7 +27708,7 @@ const handler$35 = async (c) => {
27540
27708
  };
27541
27709
  //#endregion
27542
27710
  //#region src/routes/account/projects/[projectId]/members/[userId]/PATCH.ts
27543
- const handler$34 = async (c) => {
27711
+ const handler$36 = async (c) => {
27544
27712
  const project = c.get("project");
27545
27713
  const userId = c.req.param("userId");
27546
27714
  const body = await c.req.json().catch(() => null);
@@ -27557,7 +27725,7 @@ const handler$34 = async (c) => {
27557
27725
  };
27558
27726
  //#endregion
27559
27727
  //#region src/routes/account/projects/[projectId]/members/[userId]/DELETE.ts
27560
- const handler$33 = async (c) => {
27728
+ const handler$35 = async (c) => {
27561
27729
  const project = c.get("project");
27562
27730
  const userId = c.req.param("userId");
27563
27731
  if (!userId) return c.json(ErrorResponseSchema.parse({ error: "User id is required" }), 400);
@@ -27571,7 +27739,7 @@ const handler$33 = async (c) => {
27571
27739
  };
27572
27740
  //#endregion
27573
27741
  //#region src/routes/account/projects/[projectId]/members/me/DELETE.ts
27574
- const handler$32 = async (c) => {
27742
+ const handler$34 = async (c) => {
27575
27743
  const project = c.get("project");
27576
27744
  const userId = c.get("user").id;
27577
27745
  try {
@@ -27584,13 +27752,13 @@ const handler$32 = async (c) => {
27584
27752
  };
27585
27753
  //#endregion
27586
27754
  //#region src/routes/account/projects/[projectId]/settings/GET.ts
27587
- const handler$31 = async (c) => {
27755
+ const handler$33 = async (c) => {
27588
27756
  const project = c.get("project");
27589
27757
  return c.json(ProjectSettingsResponseSchema.parse(mapProjectSettings(project)));
27590
27758
  };
27591
27759
  //#endregion
27592
27760
  //#region src/routes/account/projects/[projectId]/settings/PATCH.ts
27593
- const handler$30 = async (c) => {
27761
+ const handler$32 = async (c) => {
27594
27762
  const organization = c.get("organization");
27595
27763
  const project = c.get("project");
27596
27764
  const body = await c.req.json().catch(() => null);
@@ -27712,7 +27880,7 @@ async function enrichCredentialInstances(rows, organizationId) {
27712
27880
  }
27713
27881
  //#endregion
27714
27882
  //#region src/routes/account/credentials/GET.ts
27715
- const handler$29 = async (c) => {
27883
+ const handler$31 = async (c) => {
27716
27884
  const organization = c.get("organization");
27717
27885
  const user = c.get("user");
27718
27886
  const query = ListCredentialsPageQuerySchema.parse({
@@ -27741,7 +27909,7 @@ function withTargetScope(target, fn) {
27741
27909
  if (target.projectScope) return runWithProjectScope(target.projectScope, fn);
27742
27910
  return fn();
27743
27911
  }
27744
- const handler$28 = async (c) => {
27912
+ const handler$30 = async (c) => {
27745
27913
  const organization = c.get("organization");
27746
27914
  const user = c.get("user");
27747
27915
  const parsed = CreateCredentialsRequestSchema.safeParse(await c.req.json().catch(() => null));
@@ -27822,7 +27990,7 @@ const handler$28 = async (c) => {
27822
27990
  };
27823
27991
  //#endregion
27824
27992
  //#region src/routes/account/credentials/[credentialId]/GET.ts
27825
- const handler$27 = async (c) => {
27993
+ const handler$29 = async (c) => {
27826
27994
  const organization = c.get("organization");
27827
27995
  const credentialId = c.req.param("credentialId") ?? "";
27828
27996
  const row = credentialId ? await selectCredentialInstanceById(credentialId) : void 0;
@@ -27832,7 +28000,7 @@ const handler$27 = async (c) => {
27832
28000
  };
27833
28001
  //#endregion
27834
28002
  //#region src/routes/account/credentials/[credentialId]/PATCH.ts
27835
- const handler$26 = async (c) => {
28003
+ const handler$28 = async (c) => {
27836
28004
  const organization = c.get("organization");
27837
28005
  const user = c.get("user");
27838
28006
  const credentialId = c.req.param("credentialId") ?? "";
@@ -27930,7 +28098,7 @@ function createDeleteCredentialHandler(options = {}) {
27930
28098
  }
27931
28099
  //#endregion
27932
28100
  //#region src/routes/account/members/GET.ts
27933
- const handler$25 = async (c) => {
28101
+ const handler$27 = async (c) => {
27934
28102
  const { organizationId } = c.get("organization");
27935
28103
  const query = ListOrganizationMembersPageQuerySchema.parse({
27936
28104
  limit: c.req.query("limit") || void 0,
@@ -27988,7 +28156,7 @@ async function sendOrganizationInviteEmail(payload, resend) {
27988
28156
  }
27989
28157
  //#endregion
27990
28158
  //#region src/routes/account/members/invitations/POST.ts
27991
- const handler$24 = async (c) => {
28159
+ const handler$26 = async (c) => {
27992
28160
  const user = c.get("user");
27993
28161
  const organization = c.get("organization");
27994
28162
  const body = await c.req.json().catch(() => null);
@@ -28014,7 +28182,7 @@ const handler$24 = async (c) => {
28014
28182
  };
28015
28183
  //#endregion
28016
28184
  //#region src/routes/account/members/[userId]/PATCH.ts
28017
- const handler$23 = async (c) => {
28185
+ const handler$25 = async (c) => {
28018
28186
  const { organizationId } = c.get("organization");
28019
28187
  const userId = c.req.param("userId");
28020
28188
  const body = await c.req.json().catch(() => null);
@@ -28031,7 +28199,7 @@ const handler$23 = async (c) => {
28031
28199
  };
28032
28200
  //#endregion
28033
28201
  //#region src/routes/account/members/[userId]/DELETE.ts
28034
- const handler$22 = async (c) => {
28202
+ const handler$24 = async (c) => {
28035
28203
  const { organizationId } = c.get("organization");
28036
28204
  const userId = c.req.param("userId");
28037
28205
  if (!userId) return c.json(ErrorResponseSchema.parse({ error: "User id is required" }), 400);
@@ -28045,13 +28213,13 @@ const handler$22 = async (c) => {
28045
28213
  };
28046
28214
  //#endregion
28047
28215
  //#region src/routes/account/invitations/GET.ts
28048
- const handler$21 = async (c) => {
28216
+ const handler$23 = async (c) => {
28049
28217
  const invitations = await selectPendingInvitationsForUser(c.get("user").id);
28050
28218
  return c.json(ListOrganizationInvitationsResponseSchema.parse(invitations.map(mapOrganizationInvitation)));
28051
28219
  };
28052
28220
  //#endregion
28053
28221
  //#region src/routes/account/invitations/[invitationId]/accept/POST.ts
28054
- const handler$20 = async (c) => {
28222
+ const handler$22 = async (c) => {
28055
28223
  const user = c.get("user");
28056
28224
  const invitationId = c.req.param("invitationId");
28057
28225
  if (!invitationId) return c.json(ErrorResponseSchema.parse({ error: "Invitation id is required" }), 400);
@@ -28067,7 +28235,7 @@ const handler$20 = async (c) => {
28067
28235
  };
28068
28236
  //#endregion
28069
28237
  //#region src/routes/account/invitations/[invitationId]/decline/POST.ts
28070
- const handler$19 = async (c) => {
28238
+ const handler$21 = async (c) => {
28071
28239
  const user = c.get("user");
28072
28240
  const invitationId = c.req.param("invitationId");
28073
28241
  if (!invitationId) return c.json(ErrorResponseSchema.parse({ error: "Invitation id is required" }), 400);
@@ -28107,9 +28275,8 @@ const GATEWAY_BY_APP_SLUG = { slack: {
28107
28275
  docsUrl: "https://chat-sdk.dev/adapters/official/slack",
28108
28276
  tagline: "Respond in channels, threads, and DMs."
28109
28277
  } };
28110
- /** Map a platform `apps` row to the connect-picker wire shape. */
28111
- function appRowToCatalogEntry(row) {
28112
- const gateway = GATEWAY_BY_APP_SLUG[row.slug];
28278
+ /** Map a platform `apps` row to the slim connect-picker list shape. */
28279
+ function appRowToCatalogSummary(row) {
28113
28280
  return {
28114
28281
  id: row.slug,
28115
28282
  name: row.name,
@@ -28118,9 +28285,17 @@ function appRowToCatalogEntry(row) {
28118
28285
  integrationDescription: row.description,
28119
28286
  ...row.logo ? { logo: row.logo } : {},
28120
28287
  authKind: row.authKind,
28121
- oauthScopes: row.oauthScopes,
28122
28288
  source: row.source,
28123
28289
  ...row.url ? { url: row.url } : {},
28290
+ ...hasCredentialFieldTemplate(row) ? { hasCredentialFields: true } : {}
28291
+ };
28292
+ }
28293
+ /** Map a platform `apps` row to the full connect-picker detail shape. */
28294
+ function appRowToCatalogEntry(row) {
28295
+ const gateway = GATEWAY_BY_APP_SLUG[row.slug];
28296
+ return {
28297
+ ...appRowToCatalogSummary(row),
28298
+ oauthScopes: row.oauthScopes,
28124
28299
  ...gateway ? { gateway } : {},
28125
28300
  ...hasCredentialFieldTemplate(row) ? { credentialFields: row.credentialFields } : {},
28126
28301
  ...row.credentialScheme ? { credentialScheme: row.credentialScheme } : {}
@@ -28146,13 +28321,13 @@ function appRowToCustomAppDetail(row) {
28146
28321
  }
28147
28322
  //#endregion
28148
28323
  //#region src/routes/account/apps/GET.ts
28149
- const handler$18 = async (c) => {
28150
- const apps = (await listAppsForOrganization(c.get("organization").organizationId)).map(appRowToCatalogEntry);
28324
+ const handler$20 = async (c) => {
28325
+ const apps = (await listAppsForOrganization(c.get("organization").organizationId)).map(appRowToCatalogSummary);
28151
28326
  return c.json(ListAppsResponseSchema.parse(apps));
28152
28327
  };
28153
28328
  //#endregion
28154
28329
  //#region src/routes/account/apps/POST.ts
28155
- const handler$17 = async (c) => {
28330
+ const handler$19 = async (c) => {
28156
28331
  const organization = c.get("organization");
28157
28332
  const parsed = CreateCustomAppRequestSchema.safeParse(await c.req.json().catch(() => null));
28158
28333
  if (!parsed.success) {
@@ -28185,7 +28360,7 @@ const handler$17 = async (c) => {
28185
28360
  };
28186
28361
  //#endregion
28187
28362
  //#region src/routes/account/apps/discover/POST.ts
28188
- const handler$16 = async (c) => {
28363
+ const handler$18 = async (c) => {
28189
28364
  const parsed = McpDiscoverRequestSchema.safeParse(await c.req.json().catch(() => null));
28190
28365
  if (!parsed.success) return c.json({ error: "Invalid request body" }, 400);
28191
28366
  try {
@@ -28199,7 +28374,7 @@ const handler$16 = async (c) => {
28199
28374
  };
28200
28375
  //#endregion
28201
28376
  //#region src/routes/account/apps/discover-openapi/POST.ts
28202
- const handler$15 = async (c) => {
28377
+ const handler$17 = async (c) => {
28203
28378
  const parsed = OpenApiDiscoverRequestSchema.safeParse(await c.req.json().catch(() => null));
28204
28379
  if (!parsed.success) return c.json({ error: "Invalid request body" }, 400);
28205
28380
  try {
@@ -28212,7 +28387,7 @@ const handler$15 = async (c) => {
28212
28387
  };
28213
28388
  //#endregion
28214
28389
  //#region src/routes/account/apps/discover-graphql/POST.ts
28215
- const handler$14 = async (c) => {
28390
+ const handler$16 = async (c) => {
28216
28391
  const parsed = GraphqlDiscoverRequestSchema.safeParse(await c.req.json().catch(() => null));
28217
28392
  if (!parsed.success) return c.json({ error: "Invalid request body" }, 400);
28218
28393
  try {
@@ -28225,7 +28400,7 @@ const handler$14 = async (c) => {
28225
28400
  };
28226
28401
  //#endregion
28227
28402
  //#region src/routes/account/apps/[slug]/mcp/oauth/connections/POST.ts
28228
- const handler$13 = async (c) => {
28403
+ const handler$15 = async (c) => {
28229
28404
  const organization = c.get("organization");
28230
28405
  const user = c.get("user");
28231
28406
  const appSlug = c.req.param("slug")?.trim();
@@ -28283,7 +28458,7 @@ function buildOAuthWebLandingUrl(webOrigin, params) {
28283
28458
  }
28284
28459
  //#endregion
28285
28460
  //#region src/routes/account/mcp/oauth/callback/GET.ts
28286
- const handler$12 = async (c) => {
28461
+ const handler$14 = async (c) => {
28287
28462
  const code = c.req.query("code")?.trim();
28288
28463
  const state = c.req.query("state")?.trim();
28289
28464
  const oauthError = c.req.query("error")?.trim();
@@ -28331,7 +28506,7 @@ const handler$12 = async (c) => {
28331
28506
  };
28332
28507
  //#endregion
28333
28508
  //#region src/routes/account/apps/slug-available/GET.ts
28334
- const handler$11 = async (c) => {
28509
+ const handler$13 = async (c) => {
28335
28510
  const organization = c.get("organization");
28336
28511
  const parsed = AppSlugAvailabilityQuerySchema.safeParse({ slug: c.req.query("slug") });
28337
28512
  if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid slug query" }), 400);
@@ -28342,7 +28517,7 @@ const handler$11 = async (c) => {
28342
28517
  };
28343
28518
  //#endregion
28344
28519
  //#region src/routes/account/apps/[slug]/GET.ts
28345
- const handler$10 = async (c) => {
28520
+ const handler$12 = async (c) => {
28346
28521
  const organization = c.get("organization");
28347
28522
  const slug = c.req.param("slug") ?? "";
28348
28523
  if (!slug) return c.json(ErrorResponseSchema.parse({ error: "App not found" }), 404);
@@ -28355,6 +28530,47 @@ const handler$10 = async (c) => {
28355
28530
  }
28356
28531
  };
28357
28532
  //#endregion
28533
+ //#region src/routes/account/apps/[slug]/catalog/GET.ts
28534
+ /** Full catalog entry (scopes + credential template) for connect UI. */
28535
+ const handler$11 = async (c) => {
28536
+ const organization = c.get("organization");
28537
+ const slug = c.req.param("slug") ?? "";
28538
+ if (!slug) return c.json(ErrorResponseSchema.parse({ error: "App not found" }), 404);
28539
+ const row = await selectAppForOrganization(organization.organizationId, decodeURIComponent(slug));
28540
+ if (!row) return c.json(ErrorResponseSchema.parse({ error: "App not found" }), 404);
28541
+ return c.json(GetAppCatalogEntryResponseSchema.parse(appRowToCatalogEntry(row)));
28542
+ };
28543
+ //#endregion
28544
+ //#region src/routes/account/channel-platforms/GET.ts
28545
+ const PLATFORM_FALLBACK_DOMAINS = { slack: "slack.com" };
28546
+ function projectChannelPlatform(row) {
28547
+ const gateway = GATEWAY_BY_APP_SLUG[row.slug];
28548
+ if (!gateway) throw new Error(`App ${row.slug} does not support gateway bindings`);
28549
+ return ChannelPlatformSchema.parse({
28550
+ key: row.slug,
28551
+ name: row.name,
28552
+ appLogoId: row.slug,
28553
+ fallbackDomain: PLATFORM_FALLBACK_DOMAINS[row.slug] ?? `${row.slug}.com`,
28554
+ description: row.description,
28555
+ tagline: gateway.tagline ?? row.description,
28556
+ authKind: row.authKind,
28557
+ credentialFields: [],
28558
+ capabilities: gateway.capabilities,
28559
+ supportedModes: gateway.supportedModes,
28560
+ resourceNoun: gateway.resourceNoun,
28561
+ webhookPathHint: gateway.webhookPathHint,
28562
+ supportsChannelDirectory: gateway.supportsChannelDirectory,
28563
+ ...gateway.connectAppId ? { connectAppId: gateway.connectAppId } : {},
28564
+ docsUrl: gateway.docsUrl
28565
+ });
28566
+ }
28567
+ /** Gateway platforms only — avoids downloading the full apps catalog. */
28568
+ const handler$10 = async (c) => {
28569
+ const organization = c.get("organization");
28570
+ const platforms = (await Promise.all(Object.keys(GATEWAY_BY_APP_SLUG).map((slug) => selectAppForOrganization(organization.organizationId, slug)))).flatMap((row) => row ? [projectChannelPlatform(row)] : []);
28571
+ return c.json(ListChannelPlatformsResponseSchema.parse(platforms));
28572
+ };
28573
+ //#endregion
28358
28574
  //#region src/routes/account/api-keys/GET.ts
28359
28575
  const handler$9 = async (c) => {
28360
28576
  const { organizationId } = c.get("organization");
@@ -28609,7 +28825,7 @@ function mountAccountRoutes(options) {
28609
28825
  const projectScoped = new Hono();
28610
28826
  const protect = requireSession(createDefaultAuthJwtVerifier());
28611
28827
  const deleteCredential = createDeleteCredentialHandler({ mcp: options.mcp });
28612
- account.get("/mcp/oauth/callback", handler$12);
28828
+ account.get("/mcp/oauth/callback", handler$14);
28613
28829
  account.use("/*", protect);
28614
28830
  orgScoped.use("/*", protect);
28615
28831
  orgScoped.use("/*", requireOrganization());
@@ -28631,36 +28847,38 @@ function mountAccountRoutes(options) {
28631
28847
  const requireProjectManageMembers = authorize(projectActions.manageMembers);
28632
28848
  const requireInvitableProjectRole = authorizePayload(InviteProjectMembersRequestSchema, ({ c, ctx, body }) => canInviteToProject(ctx, { invitePermission: getProjectInvitePermission(c) }, body.role));
28633
28849
  const requireOrgParam = requireOrganizationParam();
28634
- account.get("/organizations", handler$90);
28635
- account.get("/organizations/slug-available", handler$89);
28850
+ account.get("/organizations", handler$94);
28851
+ account.get("/organizations/slug-available", handler$93);
28636
28852
  account.post("/organizations", createOrganizationHandler(options));
28637
- account.get("/organizations/:organizationId", requireOrgParam, handler$88);
28638
- account.patch("/organizations/:organizationId", requireOrgParam, requireOrgUpdate, handler$87);
28639
- account.get("/organizations/:organizationId/branding", requireOrgParam, handler$86);
28640
- account.patch("/organizations/:organizationId/branding", requireOrgParam, requireOrgUpdate, handler$85);
28641
- account.post("/organizations/:organizationId/branding/logo/presign", requireOrgParam, requireOrgUpdate, handler$84);
28642
- account.get("/invitations", handler$21);
28643
- account.post("/invitations/:invitationId/accept", handler$20);
28644
- account.post("/invitations/:invitationId/decline", handler$19);
28645
- account.get("/users/me/avatar", handler$95);
28646
- account.post("/users/me/avatar/presign", handler$94);
28647
- account.patch("/users/me/avatar", handler$93);
28648
- account.get("/users/me/preferences", handler$92);
28649
- account.patch("/users/me/preferences", handler$91);
28853
+ account.get("/organizations/:organizationId", requireOrgParam, handler$92);
28854
+ account.patch("/organizations/:organizationId", requireOrgParam, requireOrgUpdate, handler$91);
28855
+ account.get("/organizations/:organizationId/branding", requireOrgParam, handler$90);
28856
+ account.patch("/organizations/:organizationId/branding", requireOrgParam, requireOrgUpdate, handler$89);
28857
+ account.post("/organizations/:organizationId/branding/logo/presign", requireOrgParam, requireOrgUpdate, handler$88);
28858
+ account.get("/invitations", handler$23);
28859
+ account.post("/invitations/:invitationId/accept", handler$22);
28860
+ account.post("/invitations/:invitationId/decline", handler$21);
28861
+ account.get("/users/me/avatar", handler$99);
28862
+ account.post("/users/me/avatar/presign", handler$98);
28863
+ account.patch("/users/me/avatar", handler$97);
28864
+ account.get("/users/me/preferences", handler$96);
28865
+ account.patch("/users/me/preferences", handler$95);
28650
28866
  const withOrgDb = withOrganizationProjectDatabase();
28651
- orgScoped.get("/apps", handler$18);
28652
- orgScoped.get("/apps/slug-available", handler$11);
28653
- orgScoped.post("/apps/discover", requireOrgUpdate, handler$16);
28654
- orgScoped.post("/apps/discover-openapi", requireOrgUpdate, handler$15);
28655
- orgScoped.post("/apps/discover-graphql", requireOrgUpdate, handler$14);
28656
- orgScoped.post("/apps", requireOrgUpdate, handler$17);
28657
- orgScoped.post("/apps/:slug/mcp/oauth/connections", requireOrgUpdate, withOrgDb, handler$13);
28658
- orgScoped.get("/apps/:slug", handler$10);
28867
+ orgScoped.get("/apps", handler$20);
28868
+ orgScoped.get("/apps/slug-available", handler$13);
28869
+ orgScoped.get("/channel-platforms", handler$10);
28870
+ orgScoped.post("/apps/discover", requireOrgUpdate, handler$18);
28871
+ orgScoped.post("/apps/discover-openapi", requireOrgUpdate, handler$17);
28872
+ orgScoped.post("/apps/discover-graphql", requireOrgUpdate, handler$16);
28873
+ orgScoped.post("/apps", requireOrgUpdate, handler$19);
28874
+ orgScoped.post("/apps/:slug/mcp/oauth/connections", requireOrgUpdate, withOrgDb, handler$15);
28875
+ orgScoped.get("/apps/:slug/catalog", handler$11);
28876
+ orgScoped.get("/apps/:slug", handler$12);
28659
28877
  account.post("/team-requests", requireOrganization(), handler$2);
28660
- orgScoped.get("/members", handler$25);
28661
- orgScoped.post("/members/invitations", requireUserInvite, requireInvitableRole, handler$24);
28662
- orgScoped.patch("/members/:userId", requireUserManage, handler$23);
28663
- orgScoped.delete("/members/:userId", requireUserManage, handler$22);
28878
+ orgScoped.get("/members", handler$27);
28879
+ orgScoped.post("/members/invitations", requireUserInvite, requireInvitableRole, handler$26);
28880
+ orgScoped.patch("/members/:userId", requireUserManage, handler$25);
28881
+ orgScoped.delete("/members/:userId", requireUserManage, handler$24);
28664
28882
  orgScoped.get("/api-keys", handler$9);
28665
28883
  orgScoped.post("/api-keys", requireApiKeyCreate, handler$8);
28666
28884
  orgScoped.delete("/api-keys/:apiKeyId", handler$7);
@@ -28668,66 +28886,68 @@ function mountAccountRoutes(options) {
28668
28886
  orgScoped.post("/managed-service-credentials", requireManagedServicesManage, handler$5);
28669
28887
  orgScoped.patch("/managed-service-credentials/:id", requireManagedServicesManage, handler$4);
28670
28888
  orgScoped.delete("/managed-service-credentials/:id", requireManagedServicesManage, handler$3);
28671
- orgScoped.get("/agents", withOrgDb, handler$81);
28672
- orgScoped.get("/agents/:agentId", withOrgDb, handler$80);
28673
- orgScoped.get("/agents/:agentId/memory/files", withOrgDb, handler$79);
28674
- orgScoped.get("/agents/:agentId/memory/files/content", withOrgDb, handler$78);
28675
- orgScoped.get("/agents/:agentId/workspace/files", withOrgDb, handler$77);
28676
- orgScoped.get("/agents/:agentId/workspace/files/content", withOrgDb, handler$76);
28677
- orgScoped.get("/workflows", withOrgDb, handler$74);
28678
- orgScoped.get("/workflows/:workflowId", withOrgDb, handler$73);
28679
- orgScoped.get("/workflows/:workflowId/canvas", withOrgDb, handler$72);
28680
- orgScoped.get("/workflows/:workflowId/canvas/credentials", withOrgDb, handler$71);
28681
- orgScoped.get("/workflows/:workflowId/canvas/runs/:runId", withOrgDb, handler$70);
28682
- orgScoped.get("/workflows/:workflowId/overview", withOrgDb, handler$69);
28683
- orgScoped.get("/workflows/:workflowId/runs", withOrgDb, handler$65);
28684
- orgScoped.get("/workflows/:workflowId/run-inputs", withOrgDb, handler$68);
28685
- orgScoped.put("/workflows/:workflowId/run-inputs", withOrgDb, handler$67);
28686
- orgScoped.post("/workflows/:workflowId/run", withOrgDb, handler$66);
28687
- orgScoped.get("/skills", withOrgDb, handler$63);
28688
- orgScoped.get("/skills/:skillId", withOrgDb, handler$62);
28689
- orgScoped.get("/triggers", withOrgDb, handler$61);
28690
- orgScoped.get("/triggers/:triggerId", withOrgDb, handler$60);
28691
- orgScoped.get("/triggers/:triggerId/runs", withOrgDb, handler$59);
28692
- orgScoped.get("/triggers/:triggerId/file", withOrgDb, handler$58);
28693
- orgScoped.get("/triggers/:triggerId/overview", withOrgDb, handler$57);
28694
- orgScoped.patch("/triggers/:triggerId/attachments/:attachmentId", withOrgDb, handler$56);
28695
- orgScoped.get("/recents", withOrgDb, handler$55);
28696
- orgScoped.get("/history", withOrgDb, handler$83);
28697
- orgScoped.get("/history/:runId", withOrgDb, handler$82);
28698
- orgScoped.post("/workflows/runs/:runId/cancel", withOrgDb, handler$64);
28699
- orgScoped.post("/agents/sessions/:sessionId/cancel", withOrgDb, handler$75);
28700
- orgScoped.get("/credentials", withOrgDb, handler$29);
28701
- orgScoped.post("/credentials", withOrgDb, handler$28);
28702
- orgScoped.get("/credentials/:credentialId", withOrgDb, (c, next) => c.req.param("credentialId") === "instances" ? next() : handler$27(c, next));
28703
- orgScoped.patch("/credentials/:credentialId", withOrgDb, handler$26);
28889
+ orgScoped.get("/agents", withOrgDb, handler$85);
28890
+ orgScoped.get("/agents/:agentId", withOrgDb, handler$84);
28891
+ orgScoped.get("/agents/:agentId/memory/files", withOrgDb, handler$83);
28892
+ orgScoped.get("/agents/:agentId/memory/files/content", withOrgDb, handler$82);
28893
+ orgScoped.get("/agents/:agentId/workspace/files", withOrgDb, handler$81);
28894
+ orgScoped.get("/agents/:agentId/workspace/files/content", withOrgDb, handler$80);
28895
+ orgScoped.get("/workflows", withOrgDb, handler$78);
28896
+ orgScoped.get("/workflows/:workflowId", withOrgDb, handler$77);
28897
+ orgScoped.get("/workflows/:workflowId/canvas", withOrgDb, handler$76);
28898
+ orgScoped.get("/workflows/:workflowId/canvas/credentials", withOrgDb, handler$75);
28899
+ orgScoped.get("/workflows/:workflowId/canvas/runs/:runId", withOrgDb, handler$74);
28900
+ orgScoped.get("/workflows/:workflowId/overview", withOrgDb, handler$73);
28901
+ orgScoped.get("/workflows/:workflowId/runs", withOrgDb, handler$69);
28902
+ orgScoped.get("/workflows/:workflowId/run-inputs", withOrgDb, handler$72);
28903
+ orgScoped.put("/workflows/:workflowId/run-inputs", withOrgDb, handler$71);
28904
+ orgScoped.post("/workflows/:workflowId/run", withOrgDb, handler$70);
28905
+ orgScoped.get("/skills", withOrgDb, handler$67);
28906
+ orgScoped.get("/skills/:skillId", withOrgDb, handler$66);
28907
+ orgScoped.get("/triggers", withOrgDb, handler$65);
28908
+ orgScoped.get("/triggers/:triggerId", withOrgDb, handler$64);
28909
+ orgScoped.get("/triggers/:triggerId/runs", withOrgDb, handler$63);
28910
+ orgScoped.get("/triggers/:triggerId/file", withOrgDb, handler$62);
28911
+ orgScoped.get("/triggers/:triggerId/overview", withOrgDb, handler$61);
28912
+ orgScoped.get("/triggers/:triggerId/invoke-inputs", withOrgDb, handler$58);
28913
+ orgScoped.post("/triggers/:triggerId/invoke", withOrgDb, handler$59);
28914
+ orgScoped.patch("/triggers/:triggerId/attachments/:attachmentId", withOrgDb, handler$60);
28915
+ orgScoped.get("/recents", withOrgDb, handler$57);
28916
+ orgScoped.get("/history", withOrgDb, handler$87);
28917
+ orgScoped.get("/history/:runId", withOrgDb, handler$86);
28918
+ orgScoped.post("/workflows/runs/:runId/cancel", withOrgDb, handler$68);
28919
+ orgScoped.post("/agents/sessions/:sessionId/cancel", withOrgDb, handler$79);
28920
+ orgScoped.get("/credentials", withOrgDb, handler$31);
28921
+ orgScoped.post("/credentials", withOrgDb, handler$30);
28922
+ orgScoped.get("/credentials/:credentialId", withOrgDb, (c, next) => c.req.param("credentialId") === "instances" ? next() : handler$29(c, next));
28923
+ orgScoped.patch("/credentials/:credentialId", withOrgDb, handler$28);
28704
28924
  orgScoped.delete("/credentials/:credentialId", withOrgDb, deleteCredential);
28705
- orgScoped.get("/projects", handler$54);
28706
- orgScoped.get("/projects/slug-available", handler$51);
28707
- orgScoped.get("/projects/metrics", withOrgDb, handler$53);
28708
- orgScoped.post("/projects", handler$52);
28709
- projectScoped.get("/:projectId", requireProject(), requireProjectMember, handler$50);
28710
- projectScoped.patch("/:projectId", requireProject(), requireProjectMember, requireProjectUpdate, handler$49);
28711
- projectScoped.delete("/:projectId", requireProject(), requireProjectMember, requireProjectDelete, handler$48);
28712
- projectScoped.get("/:projectId/settings", requireProject(), requireProjectMember, handler$31);
28713
- projectScoped.patch("/:projectId/settings", requireProject(), requireProjectMember, requireProjectUpdate, handler$30);
28714
- projectScoped.get("/:projectId/members", requireProject(), requireProjectMember, handler$36);
28715
- projectScoped.post("/:projectId/members", requireProject(), requireProjectMember, requireInvitableProjectRole, handler$35);
28716
- projectScoped.patch("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$34);
28717
- projectScoped.delete("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$33);
28718
- projectScoped.delete("/:projectId/members/me", requireProject(), requireProjectMember, handler$32);
28925
+ orgScoped.get("/projects", handler$56);
28926
+ orgScoped.get("/projects/slug-available", handler$53);
28927
+ orgScoped.get("/projects/metrics", withOrgDb, handler$55);
28928
+ orgScoped.post("/projects", handler$54);
28929
+ projectScoped.get("/:projectId", requireProject(), requireProjectMember, handler$52);
28930
+ projectScoped.patch("/:projectId", requireProject(), requireProjectMember, requireProjectUpdate, handler$51);
28931
+ projectScoped.delete("/:projectId", requireProject(), requireProjectMember, requireProjectDelete, handler$50);
28932
+ projectScoped.get("/:projectId/settings", requireProject(), requireProjectMember, handler$33);
28933
+ projectScoped.patch("/:projectId/settings", requireProject(), requireProjectMember, requireProjectUpdate, handler$32);
28934
+ projectScoped.get("/:projectId/members", requireProject(), requireProjectMember, handler$38);
28935
+ projectScoped.post("/:projectId/members", requireProject(), requireProjectMember, requireInvitableProjectRole, handler$37);
28936
+ projectScoped.patch("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$36);
28937
+ projectScoped.delete("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$35);
28938
+ projectScoped.delete("/:projectId/members/me", requireProject(), requireProjectMember, handler$34);
28719
28939
  projectScoped.get("/:projectId/reachability", requireProject(), requireProjectMember, createProjectReachabilityHandler(options.hosting));
28720
- projectScoped.get("/:projectId/files", requireProject(), requireProjectMember, withOrgDb, handler$38);
28721
- projectScoped.post("/:projectId/agents/:slug/attachments/presign", requireProject(), requireProjectMember, withOrgDb, handler$40);
28722
- projectScoped.get("/:projectId/agents/:slug/attachments/:key{.+}", requireProject(), requireProjectMember, withOrgDb, handler$39);
28723
- projectScoped.get("/:projectId/artifacts/:artifactId/files/content", requireProject(), requireProjectMember, handler$37);
28724
- projectScoped.get("/:projectId/deployments", requireProject(), requireProjectMember, handler$47);
28725
- projectScoped.get("/:projectId/artifacts/active/download", requireProject(), requireProjectMember, requireProjectDeploy, handler$45);
28726
- projectScoped.get("/:projectId/artifacts/active/source", requireProject(), requireProjectMember, withOrgDb, handler$44);
28727
- projectScoped.post("/:projectId/artifacts", requireProject(), requireProjectMember, requireProjectDeploy, handler$46);
28728
- projectScoped.post("/:projectId/artifacts/:artifactId/complete", requireProject(), requireProjectMember, requireProjectDeploy, handler$43);
28729
- projectScoped.post("/:projectId/artifacts/:artifactId/source/presign", requireProject(), requireProjectMember, requireProjectDeploy, handler$42);
28730
- projectScoped.post("/:projectId/artifacts/:artifactId/source/manifest", requireProject(), requireProjectMember, requireProjectDeploy, handler$41);
28940
+ projectScoped.get("/:projectId/files", requireProject(), requireProjectMember, withOrgDb, handler$40);
28941
+ projectScoped.post("/:projectId/agents/:slug/attachments/presign", requireProject(), requireProjectMember, withOrgDb, handler$42);
28942
+ projectScoped.get("/:projectId/agents/:slug/attachments/:key{.+}", requireProject(), requireProjectMember, withOrgDb, handler$41);
28943
+ projectScoped.get("/:projectId/artifacts/:artifactId/files/content", requireProject(), requireProjectMember, handler$39);
28944
+ projectScoped.get("/:projectId/deployments", requireProject(), requireProjectMember, handler$49);
28945
+ projectScoped.get("/:projectId/artifacts/active/download", requireProject(), requireProjectMember, requireProjectDeploy, handler$47);
28946
+ projectScoped.get("/:projectId/artifacts/active/source", requireProject(), requireProjectMember, withOrgDb, handler$46);
28947
+ projectScoped.post("/:projectId/artifacts", requireProject(), requireProjectMember, requireProjectDeploy, handler$48);
28948
+ projectScoped.post("/:projectId/artifacts/:artifactId/complete", requireProject(), requireProjectMember, requireProjectDeploy, handler$45);
28949
+ projectScoped.post("/:projectId/artifacts/:artifactId/source/presign", requireProject(), requireProjectMember, requireProjectDeploy, handler$44);
28950
+ projectScoped.post("/:projectId/artifacts/:artifactId/source/manifest", requireProject(), requireProjectMember, requireProjectDeploy, handler$43);
28731
28951
  orgScoped.route("/projects", projectScoped);
28732
28952
  account.route("/", orgScoped);
28733
28953
  return account;
@@ -29239,4 +29459,4 @@ async function startPlatformServer(platformConfig, hooks = {}) {
29239
29459
  //#endregion
29240
29460
  export { r1 as S, o as _, c as a, b$1 as b, a$1 as c, c$1 as d, r as f, e as g, u as h, n$1 as i, d$1 as l, b as m, n, p as o, r$1 as p, i as r, x as s, startPlatformServer as t, x$1 as u, r$3 as v, I1 as x, h as y };
29241
29461
 
29242
- //# sourceMappingURL=start-DYnIf75m.mjs.map
29462
+ //# sourceMappingURL=start-B_bnG7bP.mjs.map