@keystrokehq/platform 1.0.1 → 1.0.7
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.
- package/README.md +4 -0
- package/dist/{awk2-LA3USKJP-BX_f5xEm.cjs → awk2-LA3USKJP-Cti0GVwF.cjs} +2 -2
- package/dist/{awk2-LA3USKJP-BX_f5xEm.cjs.map → awk2-LA3USKJP-Cti0GVwF.cjs.map} +1 -1
- package/dist/{awk2-LA3USKJP-Og7WTTTV.mjs → awk2-LA3USKJP-JLvLmpWy.mjs} +2 -2
- package/dist/{awk2-LA3USKJP-Og7WTTTV.mjs.map → awk2-LA3USKJP-JLvLmpWy.mjs.map} +1 -1
- package/dist/{base64-C2AIWVNC-CWnEsAFR.mjs → base64-C2AIWVNC-CzOcUFRU.mjs} +2 -2
- package/dist/{base64-C2AIWVNC-CWnEsAFR.mjs.map → base64-C2AIWVNC-CzOcUFRU.mjs.map} +1 -1
- package/dist/{base64-C2AIWVNC-xY0o1izr.cjs → base64-C2AIWVNC-D76SSHQ0.cjs} +2 -2
- package/dist/{base64-C2AIWVNC-xY0o1izr.cjs.map → base64-C2AIWVNC-D76SSHQ0.cjs.map} +1 -1
- package/dist/{bash-YZ33HQZQ-CwBcNtq8.mjs → bash-YZ33HQZQ-DyHzqiV0.mjs} +2 -2
- package/dist/{bash-YZ33HQZQ-CwBcNtq8.mjs.map → bash-YZ33HQZQ-DyHzqiV0.mjs.map} +1 -1
- package/dist/{bash-YZ33HQZQ-DEgQkmLN.cjs → bash-YZ33HQZQ-qOXPR43L.cjs} +2 -2
- package/dist/{bash-YZ33HQZQ-DEgQkmLN.cjs.map → bash-YZ33HQZQ-qOXPR43L.cjs.map} +1 -1
- package/dist/{cat-TSFMZVYS-DIffGanR.mjs → cat-TSFMZVYS-D_swNqw2.mjs} +3 -3
- package/dist/{cat-TSFMZVYS-DIffGanR.mjs.map → cat-TSFMZVYS-D_swNqw2.mjs.map} +1 -1
- package/dist/{cat-TSFMZVYS-CE8iJIL3.cjs → cat-TSFMZVYS-De4HGz06.cjs} +3 -3
- package/dist/{cat-TSFMZVYS-CE8iJIL3.cjs.map → cat-TSFMZVYS-De4HGz06.cjs.map} +1 -1
- package/dist/{chunk-5H5SCKJM-BqPkrOgR.cjs → chunk-5H5SCKJM-CUK474tE.cjs} +2 -2
- package/dist/{chunk-5H5SCKJM-BqPkrOgR.cjs.map → chunk-5H5SCKJM-CUK474tE.cjs.map} +1 -1
- package/dist/{chunk-5H5SCKJM-CoKwUfnC.mjs → chunk-5H5SCKJM-_K6MyJEw.mjs} +2 -2
- package/dist/{chunk-5H5SCKJM-CoKwUfnC.mjs.map → chunk-5H5SCKJM-_K6MyJEw.mjs.map} +1 -1
- package/dist/{chunk-AQ6FYS2X-CgExDvHQ.cjs → chunk-AQ6FYS2X-Cww_mpI_.cjs} +2 -2
- package/dist/{chunk-AQ6FYS2X-CgExDvHQ.cjs.map → chunk-AQ6FYS2X-Cww_mpI_.cjs.map} +1 -1
- package/dist/{chunk-AQ6FYS2X-CdU2NSVs.mjs → chunk-AQ6FYS2X-D0XuhgDL.mjs} +2 -2
- package/dist/{chunk-AQ6FYS2X-CdU2NSVs.mjs.map → chunk-AQ6FYS2X-D0XuhgDL.mjs.map} +1 -1
- package/dist/{chunk-CHFEPBH4-DkZruhqP.cjs → chunk-CHFEPBH4-CXuAs5O7.cjs} +2 -2
- package/dist/{chunk-CHFEPBH4-DkZruhqP.cjs.map → chunk-CHFEPBH4-CXuAs5O7.cjs.map} +1 -1
- package/dist/{chunk-CHFEPBH4-B8Yle41q.mjs → chunk-CHFEPBH4-Cu0n6I-q.mjs} +2 -2
- package/dist/{chunk-CHFEPBH4-B8Yle41q.mjs.map → chunk-CHFEPBH4-Cu0n6I-q.mjs.map} +1 -1
- package/dist/{chunk-EBAPSGAO-CVyFc0vH.cjs → chunk-EBAPSGAO-BEjB5Igm.cjs} +2 -2
- package/dist/{chunk-EBAPSGAO-CVyFc0vH.cjs.map → chunk-EBAPSGAO-BEjB5Igm.cjs.map} +1 -1
- package/dist/{chunk-EBAPSGAO-Ba-I7RAs.mjs → chunk-EBAPSGAO-CeUFIDKw.mjs} +2 -2
- package/dist/{chunk-EBAPSGAO-Ba-I7RAs.mjs.map → chunk-EBAPSGAO-CeUFIDKw.mjs.map} +1 -1
- package/dist/{chunk-LEKBROJD-DEy7k23L.cjs → chunk-LEKBROJD-CKRNwRrJ.cjs} +2 -2
- package/dist/{chunk-LEKBROJD-DEy7k23L.cjs.map → chunk-LEKBROJD-CKRNwRrJ.cjs.map} +1 -1
- package/dist/{chunk-LEKBROJD-BCPXdvWw.mjs → chunk-LEKBROJD-CXDavAcx.mjs} +2 -2
- package/dist/{chunk-LEKBROJD-BCPXdvWw.mjs.map → chunk-LEKBROJD-CXDavAcx.mjs.map} +1 -1
- package/dist/{chunk-VPADYNBD-BtNErXh7.cjs → chunk-VPADYNBD-CQyd_GCq.cjs} +2 -2
- package/dist/{chunk-VPADYNBD-BtNErXh7.cjs.map → chunk-VPADYNBD-CQyd_GCq.cjs.map} +1 -1
- package/dist/{chunk-VPADYNBD-D6W8m472.mjs → chunk-VPADYNBD-DpnYg7Xm.mjs} +2 -2
- package/dist/{chunk-VPADYNBD-D6W8m472.mjs.map → chunk-VPADYNBD-DpnYg7Xm.mjs.map} +1 -1
- package/dist/{chunk-YCLFEX4T-CVuOhI4h.cjs → chunk-YCLFEX4T-1nX5jJcu.cjs} +2 -2
- package/dist/{chunk-YCLFEX4T-CVuOhI4h.cjs.map → chunk-YCLFEX4T-1nX5jJcu.cjs.map} +1 -1
- package/dist/{chunk-YCLFEX4T-C5Zm6f-y.mjs → chunk-YCLFEX4T-CKuzXfkU.mjs} +2 -2
- package/dist/{chunk-YCLFEX4T-C5Zm6f-y.mjs.map → chunk-YCLFEX4T-CKuzXfkU.mjs.map} +1 -1
- package/dist/{column-XT6UFXNQ-CeiWNAzO.cjs → column-XT6UFXNQ-7goZ2Z0x.cjs} +2 -2
- package/dist/{column-XT6UFXNQ-CeiWNAzO.cjs.map → column-XT6UFXNQ-7goZ2Z0x.cjs.map} +1 -1
- package/dist/{column-XT6UFXNQ-CKR9qK7y.mjs → column-XT6UFXNQ-Co5L38F2.mjs} +2 -2
- package/dist/{column-XT6UFXNQ-CKR9qK7y.mjs.map → column-XT6UFXNQ-Co5L38F2.mjs.map} +1 -1
- package/dist/{comm-VV2LDX2J-5awXD4SJ.cjs → comm-VV2LDX2J-CtNFWjKG.cjs} +2 -2
- package/dist/{comm-VV2LDX2J-5awXD4SJ.cjs.map → comm-VV2LDX2J-CtNFWjKG.cjs.map} +1 -1
- package/dist/{comm-VV2LDX2J-By6PvRFk.mjs → comm-VV2LDX2J-q632kG50.mjs} +2 -2
- package/dist/{comm-VV2LDX2J-By6PvRFk.mjs.map → comm-VV2LDX2J-q632kG50.mjs.map} +1 -1
- package/dist/config-BeeA7xqu.d.mts +219 -0
- package/dist/config-Dg4V7rlJ.d.cts +217 -0
- package/dist/config.cjs +1 -1
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/config.mjs.map +1 -1
- package/dist/{cp-BISAAS7A-Cs_viays.cjs → cp-BISAAS7A-4HFzfXhv.cjs} +2 -2
- package/dist/{cp-BISAAS7A-Cs_viays.cjs.map → cp-BISAAS7A-4HFzfXhv.cjs.map} +1 -1
- package/dist/{cp-BISAAS7A-McE5zv9m.mjs → cp-BISAAS7A-Bi0rRBNr.mjs} +2 -2
- package/dist/{cp-BISAAS7A-McE5zv9m.mjs.map → cp-BISAAS7A-Bi0rRBNr.mjs.map} +1 -1
- package/dist/{cut-OKARJCCV-VyVT0kyn.mjs → cut-OKARJCCV-CUSBR-oH.mjs} +3 -3
- package/dist/{cut-OKARJCCV-VyVT0kyn.mjs.map → cut-OKARJCCV-CUSBR-oH.mjs.map} +1 -1
- package/dist/{cut-OKARJCCV-CNiRA71s.cjs → cut-OKARJCCV-V3uWc8sW.cjs} +3 -3
- package/dist/{cut-OKARJCCV-CNiRA71s.cjs.map → cut-OKARJCCV-V3uWc8sW.cjs.map} +1 -1
- package/dist/{diff-MWJFIG7X-B6ciCjQa.mjs → diff-MWJFIG7X-CbpqDM3r.mjs} +2 -2
- package/dist/{diff-MWJFIG7X-B6ciCjQa.mjs.map → diff-MWJFIG7X-CbpqDM3r.mjs.map} +1 -1
- package/dist/{diff-MWJFIG7X-DJfHAQq4.cjs → diff-MWJFIG7X-DGQmADGI.cjs} +2 -2
- package/dist/{diff-MWJFIG7X-DJfHAQq4.cjs.map → diff-MWJFIG7X-DGQmADGI.cjs.map} +1 -1
- package/dist/{dist-DCerSc01.cjs → dist-DqnI3cOA.cjs} +53 -4
- package/dist/dist-DqnI3cOA.cjs.map +1 -0
- package/dist/{dist-Drb4M1g2.mjs → dist-T5YD-4iz.mjs} +42 -5
- package/dist/dist-T5YD-4iz.mjs.map +1 -0
- package/dist/{du-572XNP42-Iv7bX_J6.cjs → du-572XNP42-C7qf362t.cjs} +2 -2
- package/dist/{du-572XNP42-Iv7bX_J6.cjs.map → du-572XNP42-C7qf362t.cjs.map} +1 -1
- package/dist/{du-572XNP42-B5rNwUSo.mjs → du-572XNP42-Dqm_qzhE.mjs} +2 -2
- package/dist/{du-572XNP42-B5rNwUSo.mjs.map → du-572XNP42-Dqm_qzhE.mjs.map} +1 -1
- package/dist/{env-36M5BO7M-BcJWF_p3.cjs → env-36M5BO7M-B20kqsRv.cjs} +2 -2
- package/dist/{env-36M5BO7M-BcJWF_p3.cjs.map → env-36M5BO7M-B20kqsRv.cjs.map} +1 -1
- package/dist/{env-36M5BO7M-Blzb5FzN.mjs → env-36M5BO7M-lkIgFi7F.mjs} +2 -2
- package/dist/{env-36M5BO7M-Blzb5FzN.mjs.map → env-36M5BO7M-lkIgFi7F.mjs.map} +1 -1
- package/dist/{expand-JSPG6VOP-DMhqbYB4.cjs → expand-JSPG6VOP-B6NoqvmR.cjs} +2 -2
- package/dist/{expand-JSPG6VOP-DMhqbYB4.cjs.map → expand-JSPG6VOP-B6NoqvmR.cjs.map} +1 -1
- package/dist/{expand-JSPG6VOP-C_wueGj3.mjs → expand-JSPG6VOP-Bn0vEzWc.mjs} +2 -2
- package/dist/{expand-JSPG6VOP-C_wueGj3.mjs.map → expand-JSPG6VOP-Bn0vEzWc.mjs.map} +1 -1
- package/dist/{expr-5JAACS4X-CDzmynhc.cjs → expr-5JAACS4X-B1VIYeQz.cjs} +2 -2
- package/dist/{expr-5JAACS4X-CDzmynhc.cjs.map → expr-5JAACS4X-B1VIYeQz.cjs.map} +1 -1
- package/dist/{expr-5JAACS4X-GAOVSam5.mjs → expr-5JAACS4X-Dht8HWMN.mjs} +2 -2
- package/dist/{expr-5JAACS4X-GAOVSam5.mjs.map → expr-5JAACS4X-Dht8HWMN.mjs.map} +1 -1
- package/dist/{find-INTH3OLC-DAn3o_TH.mjs → find-INTH3OLC-BapyRJYp.mjs} +3 -3
- package/dist/{find-INTH3OLC-DAn3o_TH.mjs.map → find-INTH3OLC-BapyRJYp.mjs.map} +1 -1
- package/dist/{find-INTH3OLC-CkFpi26_.cjs → find-INTH3OLC-CRLLWYZr.cjs} +3 -3
- package/dist/{find-INTH3OLC-CkFpi26_.cjs.map → find-INTH3OLC-CRLLWYZr.cjs.map} +1 -1
- package/dist/{fold-4TQNYMSW-CgU0z0Lb.cjs → fold-4TQNYMSW-BEIWv9au.cjs} +2 -2
- package/dist/{fold-4TQNYMSW-CgU0z0Lb.cjs.map → fold-4TQNYMSW-BEIWv9au.cjs.map} +1 -1
- package/dist/{fold-4TQNYMSW-D3z6H_wP.mjs → fold-4TQNYMSW-BYNM37kB.mjs} +2 -2
- package/dist/{fold-4TQNYMSW-D3z6H_wP.mjs.map → fold-4TQNYMSW-BYNM37kB.mjs.map} +1 -1
- package/dist/{grep-V3LQVMRQ-BKZqP55P.cjs → grep-V3LQVMRQ-BwS-cjE0.cjs} +4 -4
- package/dist/{grep-V3LQVMRQ-BKZqP55P.cjs.map → grep-V3LQVMRQ-BwS-cjE0.cjs.map} +1 -1
- package/dist/{grep-V3LQVMRQ-DsCks6zK.mjs → grep-V3LQVMRQ-DXEgqqun.mjs} +4 -4
- package/dist/{grep-V3LQVMRQ-DsCks6zK.mjs.map → grep-V3LQVMRQ-DXEgqqun.mjs.map} +1 -1
- package/dist/{gzip-O5ASJAFY-BhSGt17k.mjs → gzip-O5ASJAFY-BenWaiyH.mjs} +2 -2
- package/dist/{gzip-O5ASJAFY-BhSGt17k.mjs.map → gzip-O5ASJAFY-BenWaiyH.mjs.map} +1 -1
- package/dist/{gzip-O5ASJAFY-CDdmGJoy.cjs → gzip-O5ASJAFY-CVtMpYKN.cjs} +2 -2
- package/dist/{gzip-O5ASJAFY-CDdmGJoy.cjs.map → gzip-O5ASJAFY-CVtMpYKN.cjs.map} +1 -1
- package/dist/{head-442HYESI-lJuvsyI-.mjs → head-442HYESI-BAloEShx.mjs} +2 -2
- package/dist/{head-442HYESI-lJuvsyI-.mjs.map → head-442HYESI-BAloEShx.mjs.map} +1 -1
- package/dist/{head-442HYESI-SA3F5DC4.cjs → head-442HYESI-DP2tC86i.cjs} +2 -2
- package/dist/{head-442HYESI-SA3F5DC4.cjs.map → head-442HYESI-DP2tC86i.cjs.map} +1 -1
- package/dist/{help-HZ6M2CKN-DF6aW5QI.cjs → help-HZ6M2CKN-ChmGh282.cjs} +2 -2
- package/dist/{help-HZ6M2CKN-DF6aW5QI.cjs.map → help-HZ6M2CKN-ChmGh282.cjs.map} +1 -1
- package/dist/{help-HZ6M2CKN-Ds-v_img.mjs → help-HZ6M2CKN-DqaLkGHb.mjs} +2 -2
- package/dist/{help-HZ6M2CKN-Ds-v_img.mjs.map → help-HZ6M2CKN-DqaLkGHb.mjs.map} +1 -1
- package/dist/{html-to-markdown-JW4MSQZO-BckwnA2L.cjs → html-to-markdown-JW4MSQZO-CG1M-is9.cjs} +3 -3
- package/dist/{html-to-markdown-JW4MSQZO-BckwnA2L.cjs.map → html-to-markdown-JW4MSQZO-CG1M-is9.cjs.map} +1 -1
- package/dist/{html-to-markdown-JW4MSQZO-BKk0AOob.mjs → html-to-markdown-JW4MSQZO-DTooQUk2.mjs} +3 -3
- package/dist/{html-to-markdown-JW4MSQZO-BKk0AOob.mjs.map → html-to-markdown-JW4MSQZO-DTooQUk2.mjs.map} +1 -1
- package/dist/internal.cjs +3 -0
- package/dist/internal.d.cts +8 -0
- package/dist/internal.d.mts +8 -0
- package/dist/internal.mjs +2 -0
- package/dist/{join-TBRGI3LQ-C9BulcHm.cjs → join-TBRGI3LQ-DB8MlGNw.cjs} +2 -2
- package/dist/{join-TBRGI3LQ-C9BulcHm.cjs.map → join-TBRGI3LQ-DB8MlGNw.cjs.map} +1 -1
- package/dist/{join-TBRGI3LQ-CgQarzOH.mjs → join-TBRGI3LQ-DcM7XPTS.mjs} +2 -2
- package/dist/{join-TBRGI3LQ-CgQarzOH.mjs.map → join-TBRGI3LQ-DcM7XPTS.mjs.map} +1 -1
- package/dist/{jq-4XLYLOS5-BYyExpBl.mjs → jq-4XLYLOS5-DOHkS1Ao.mjs} +4 -4
- package/dist/{jq-4XLYLOS5-BYyExpBl.mjs.map → jq-4XLYLOS5-DOHkS1Ao.mjs.map} +1 -1
- package/dist/{jq-4XLYLOS5-D39tJb2U.cjs → jq-4XLYLOS5-aetkK722.cjs} +4 -4
- package/dist/{jq-4XLYLOS5-D39tJb2U.cjs.map → jq-4XLYLOS5-aetkK722.cjs.map} +1 -1
- package/dist/{js-exec-N5KEZBH7-DxplSQRT.mjs → js-exec-N5KEZBH7-BjnXh8wl.mjs} +3 -3
- package/dist/{js-exec-N5KEZBH7-DxplSQRT.mjs.map → js-exec-N5KEZBH7-BjnXh8wl.mjs.map} +1 -1
- package/dist/{js-exec-N5KEZBH7-BJOFfHf8.cjs → js-exec-N5KEZBH7-CLK1TKWe.cjs} +3 -3
- package/dist/{js-exec-N5KEZBH7-BJOFfHf8.cjs.map → js-exec-N5KEZBH7-CLK1TKWe.cjs.map} +1 -1
- package/dist/{lib-3ViR76Gd.mjs → lib-BZjuilKS.mjs} +2 -2
- package/dist/{lib-3ViR76Gd.mjs.map → lib-BZjuilKS.mjs.map} +1 -1
- package/dist/{lib-JWxj2-D3.cjs → lib-BeYcc1q_.cjs} +2 -2
- package/dist/{lib-JWxj2-D3.cjs.map → lib-BeYcc1q_.cjs.map} +1 -1
- package/dist/{ln-4LGSXXGD-C78UmFEd.mjs → ln-4LGSXXGD-ClMpyDY4.mjs} +2 -2
- package/dist/{ln-4LGSXXGD-C78UmFEd.mjs.map → ln-4LGSXXGD-ClMpyDY4.mjs.map} +1 -1
- package/dist/{ln-4LGSXXGD-CqxQarhQ.cjs → ln-4LGSXXGD-Dfy6bPPL.cjs} +2 -2
- package/dist/{ln-4LGSXXGD-CqxQarhQ.cjs.map → ln-4LGSXXGD-Dfy6bPPL.cjs.map} +1 -1
- package/dist/{ls-ZJGQER7M-DcW0UZMa.mjs → ls-ZJGQER7M-2nym-AAt.mjs} +2 -2
- package/dist/{ls-ZJGQER7M-DcW0UZMa.mjs.map → ls-ZJGQER7M-2nym-AAt.mjs.map} +1 -1
- package/dist/{ls-ZJGQER7M-BY4afQpT.cjs → ls-ZJGQER7M-nXqYIb1R.cjs} +2 -2
- package/dist/{ls-ZJGQER7M-BY4afQpT.cjs.map → ls-ZJGQER7M-nXqYIb1R.cjs.map} +1 -1
- package/dist/{lzma-BLOYSj5Z.cjs → lzma-CPuEXDXn.cjs} +2 -2
- package/dist/{lzma-BLOYSj5Z.cjs.map → lzma-CPuEXDXn.cjs.map} +1 -1
- package/dist/{md5sum-SPU24VSG-Bm744Cs-.cjs → md5sum-SPU24VSG-B4SwgEJi.cjs} +3 -3
- package/dist/{md5sum-SPU24VSG-Bm744Cs-.cjs.map → md5sum-SPU24VSG-B4SwgEJi.cjs.map} +1 -1
- package/dist/{md5sum-SPU24VSG-BSpePryl.mjs → md5sum-SPU24VSG-C5oh8Itb.mjs} +3 -3
- package/dist/{md5sum-SPU24VSG-BSpePryl.mjs.map → md5sum-SPU24VSG-C5oh8Itb.mjs.map} +1 -1
- package/dist/{mkdir-MEPGZOB6-D4EkMCni.cjs → mkdir-MEPGZOB6-B6Wi8AJR.cjs} +2 -2
- package/dist/{mkdir-MEPGZOB6-D4EkMCni.cjs.map → mkdir-MEPGZOB6-B6Wi8AJR.cjs.map} +1 -1
- package/dist/{mkdir-MEPGZOB6-B7hdGbmg.mjs → mkdir-MEPGZOB6-ByC7lW06.mjs} +2 -2
- package/dist/{mkdir-MEPGZOB6-B7hdGbmg.mjs.map → mkdir-MEPGZOB6-ByC7lW06.mjs.map} +1 -1
- package/dist/{mv-W5BIQ646-CSGqJxBv.mjs → mv-W5BIQ646-DrkkZTBW.mjs} +2 -2
- package/dist/{mv-W5BIQ646-CSGqJxBv.mjs.map → mv-W5BIQ646-DrkkZTBW.mjs.map} +1 -1
- package/dist/{mv-W5BIQ646-Bt5XMX7z.cjs → mv-W5BIQ646-Oh7zMRFN.cjs} +2 -2
- package/dist/{mv-W5BIQ646-Bt5XMX7z.cjs.map → mv-W5BIQ646-Oh7zMRFN.cjs.map} +1 -1
- package/dist/{nl-WSDW7I4O-D_yBlUmI.mjs → nl-WSDW7I4O-DjVZXPev.mjs} +2 -2
- package/dist/{nl-WSDW7I4O-D_yBlUmI.mjs.map → nl-WSDW7I4O-DjVZXPev.mjs.map} +1 -1
- package/dist/{nl-WSDW7I4O-DRGfkJbS.cjs → nl-WSDW7I4O-N9oQxMVl.cjs} +2 -2
- package/dist/{nl-WSDW7I4O-DRGfkJbS.cjs.map → nl-WSDW7I4O-N9oQxMVl.cjs.map} +1 -1
- package/dist/{od-WOKFDJTP-Cg03Ruvo.cjs → od-WOKFDJTP-Yf6a1wW1.cjs} +2 -2
- package/dist/{od-WOKFDJTP-Cg03Ruvo.cjs.map → od-WOKFDJTP-Yf6a1wW1.cjs.map} +1 -1
- package/dist/{od-WOKFDJTP-uP7Llgn-.mjs → od-WOKFDJTP-_UI_6U4Q.mjs} +2 -2
- package/dist/{od-WOKFDJTP-uP7Llgn-.mjs.map → od-WOKFDJTP-_UI_6U4Q.mjs.map} +1 -1
- package/dist/{paste-7JC6S4DX-CqoX7bst.cjs → paste-7JC6S4DX-2A_rd-GV.cjs} +2 -2
- package/dist/{paste-7JC6S4DX-CqoX7bst.cjs.map → paste-7JC6S4DX-2A_rd-GV.cjs.map} +1 -1
- package/dist/{paste-7JC6S4DX-D6z5xV4U.mjs → paste-7JC6S4DX-CC7WOsYp.mjs} +2 -2
- package/dist/{paste-7JC6S4DX-D6z5xV4U.mjs.map → paste-7JC6S4DX-CC7WOsYp.mjs.map} +1 -1
- package/dist/{printf-TWGXF445-Zy7nN7h0.mjs → printf-TWGXF445-Ce51wW_F.mjs} +3 -3
- package/dist/{printf-TWGXF445-Zy7nN7h0.mjs.map → printf-TWGXF445-Ce51wW_F.mjs.map} +1 -1
- package/dist/{printf-TWGXF445-BlK0hMdH.cjs → printf-TWGXF445-DVlAjd5n.cjs} +3 -3
- package/dist/{printf-TWGXF445-BlK0hMdH.cjs.map → printf-TWGXF445-DVlAjd5n.cjs.map} +1 -1
- package/dist/{python3-POMOR4OA-DKcZfsrx.cjs → python3-POMOR4OA-DWsN2_s0.cjs} +3 -3
- package/dist/{python3-POMOR4OA-DKcZfsrx.cjs.map → python3-POMOR4OA-DWsN2_s0.cjs.map} +1 -1
- package/dist/{python3-POMOR4OA-BouZk0El.mjs → python3-POMOR4OA-I9K2BRZG.mjs} +3 -3
- package/dist/{python3-POMOR4OA-BouZk0El.mjs.map → python3-POMOR4OA-I9K2BRZG.mjs.map} +1 -1
- package/dist/{rev-5EHFX4EJ-cFYVlRMT.cjs → rev-5EHFX4EJ-CFehPOci.cjs} +2 -2
- package/dist/{rev-5EHFX4EJ-cFYVlRMT.cjs.map → rev-5EHFX4EJ-CFehPOci.cjs.map} +1 -1
- package/dist/{rev-5EHFX4EJ-B3FQZayg.mjs → rev-5EHFX4EJ-CIjVQ68R.mjs} +2 -2
- package/dist/{rev-5EHFX4EJ-B3FQZayg.mjs.map → rev-5EHFX4EJ-CIjVQ68R.mjs.map} +1 -1
- package/dist/{rg-S4FXYXWB-Ht7rOUCy.cjs → rg-S4FXYXWB-C0r6Id_6.cjs} +3 -3
- package/dist/{rg-S4FXYXWB-Ht7rOUCy.cjs.map → rg-S4FXYXWB-C0r6Id_6.cjs.map} +1 -1
- package/dist/{rg-S4FXYXWB-CKl0cbhA.mjs → rg-S4FXYXWB-bYfqVhw6.mjs} +3 -3
- package/dist/{rg-S4FXYXWB-CKl0cbhA.mjs.map → rg-S4FXYXWB-bYfqVhw6.mjs.map} +1 -1
- package/dist/{rm-SSGETQVQ-fhHj5N9k.mjs → rm-SSGETQVQ-C7uknH2s.mjs} +2 -2
- package/dist/{rm-SSGETQVQ-fhHj5N9k.mjs.map → rm-SSGETQVQ-C7uknH2s.mjs.map} +1 -1
- package/dist/{rm-SSGETQVQ-DHWdd6XE.cjs → rm-SSGETQVQ-CmUaerGy.cjs} +2 -2
- package/dist/{rm-SSGETQVQ-DHWdd6XE.cjs.map → rm-SSGETQVQ-CmUaerGy.cjs.map} +1 -1
- package/dist/{rmdir-OC4ZLPYA-D1NuXPa1.cjs → rmdir-OC4ZLPYA-BW3NQRC6.cjs} +2 -2
- package/dist/{rmdir-OC4ZLPYA-D1NuXPa1.cjs.map → rmdir-OC4ZLPYA-BW3NQRC6.cjs.map} +1 -1
- package/dist/{rmdir-OC4ZLPYA-DVoEJTP5.mjs → rmdir-OC4ZLPYA-CPpJWUCd.mjs} +2 -2
- package/dist/{rmdir-OC4ZLPYA-DVoEJTP5.mjs.map → rmdir-OC4ZLPYA-CPpJWUCd.mjs.map} +1 -1
- package/dist/run.cjs +1 -1
- package/dist/run.mjs +1 -1
- package/dist/{sed-S5UIK574-ttFzHdIm.cjs → sed-S5UIK574-D6fINtuT.cjs} +2 -2
- package/dist/{sed-S5UIK574-ttFzHdIm.cjs.map → sed-S5UIK574-D6fINtuT.cjs.map} +1 -1
- package/dist/{sed-S5UIK574-2BJSJJLu.mjs → sed-S5UIK574-DoluQiE3.mjs} +2 -2
- package/dist/{sed-S5UIK574-2BJSJJLu.mjs.map → sed-S5UIK574-DoluQiE3.mjs.map} +1 -1
- package/dist/{sha1sum-2PTOAFR6-BZQuSfLJ.cjs → sha1sum-2PTOAFR6-BsUGynrE.cjs} +3 -3
- package/dist/{sha1sum-2PTOAFR6-BZQuSfLJ.cjs.map → sha1sum-2PTOAFR6-BsUGynrE.cjs.map} +1 -1
- package/dist/{sha1sum-2PTOAFR6-DkiDbM7V.mjs → sha1sum-2PTOAFR6-BzVcHAS-.mjs} +3 -3
- package/dist/{sha1sum-2PTOAFR6-DkiDbM7V.mjs.map → sha1sum-2PTOAFR6-BzVcHAS-.mjs.map} +1 -1
- package/dist/{sha256sum-NS7D3IXX-CeRL0-VH.cjs → sha256sum-NS7D3IXX-Cj2JIvP1.cjs} +3 -3
- package/dist/{sha256sum-NS7D3IXX-CeRL0-VH.cjs.map → sha256sum-NS7D3IXX-Cj2JIvP1.cjs.map} +1 -1
- package/dist/{sha256sum-NS7D3IXX-CZSi6sUb.mjs → sha256sum-NS7D3IXX-DzUPlDQJ.mjs} +3 -3
- package/dist/{sha256sum-NS7D3IXX-CZSi6sUb.mjs.map → sha256sum-NS7D3IXX-DzUPlDQJ.mjs.map} +1 -1
- package/dist/{sleep-X22JJINO-BpueuSM3.cjs → sleep-X22JJINO-CH7ze3hr.cjs} +2 -2
- package/dist/{sleep-X22JJINO-BpueuSM3.cjs.map → sleep-X22JJINO-CH7ze3hr.cjs.map} +1 -1
- package/dist/{sleep-X22JJINO-Dq8TwvQ6.mjs → sleep-X22JJINO-DSiSkO-C.mjs} +2 -2
- package/dist/{sleep-X22JJINO-Dq8TwvQ6.mjs.map → sleep-X22JJINO-DSiSkO-C.mjs.map} +1 -1
- package/dist/{sort-SW2YEO5B-DSdbpA5g.cjs → sort-SW2YEO5B-BjiskfM2.cjs} +3 -3
- package/dist/{sort-SW2YEO5B-DSdbpA5g.cjs.map → sort-SW2YEO5B-BjiskfM2.cjs.map} +1 -1
- package/dist/{sort-SW2YEO5B-C_BUqduL.mjs → sort-SW2YEO5B-t158drTy.mjs} +3 -3
- package/dist/{sort-SW2YEO5B-C_BUqduL.mjs.map → sort-SW2YEO5B-t158drTy.mjs.map} +1 -1
- package/dist/{split-4KKZZXXE-DgpfZxEv.mjs → split-4KKZZXXE-DrWA-ij3.mjs} +2 -2
- package/dist/{split-4KKZZXXE-DgpfZxEv.mjs.map → split-4KKZZXXE-DrWA-ij3.mjs.map} +1 -1
- package/dist/{split-4KKZZXXE-Cfy-caAx.cjs → split-4KKZZXXE-JnZkqsYt.cjs} +2 -2
- package/dist/{split-4KKZZXXE-Cfy-caAx.cjs.map → split-4KKZZXXE-JnZkqsYt.cjs.map} +1 -1
- package/dist/{sqlite3-CGOEFJAO-B1k5gRse.mjs → sqlite3-CGOEFJAO-B6BMM2sd.mjs} +3 -3
- package/dist/{sqlite3-CGOEFJAO-B1k5gRse.mjs.map → sqlite3-CGOEFJAO-B6BMM2sd.mjs.map} +1 -1
- package/dist/{sqlite3-CGOEFJAO-B_AeZJOw.cjs → sqlite3-CGOEFJAO-DvUm5wZk.cjs} +3 -3
- package/dist/{sqlite3-CGOEFJAO-B_AeZJOw.cjs.map → sqlite3-CGOEFJAO-DvUm5wZk.cjs.map} +1 -1
- package/dist/{start-xmxO-nhn.mjs → start-BEL_4mjy.mjs} +348 -322
- package/dist/start-BEL_4mjy.mjs.map +1 -0
- package/dist/{start-CSKzlyiU.cjs → start-CL9grISb.cjs} +352 -327
- package/dist/start-CL9grISb.cjs.map +1 -0
- package/dist/start.cjs +1 -1
- package/dist/start.d.cts +1 -1
- package/dist/start.d.mts +1 -1
- package/dist/start.mjs +1 -1
- package/dist/{strings-6WDHLGMX-O26XgPLP.mjs → strings-6WDHLGMX-Cwh0m_1z.mjs} +2 -2
- package/dist/{strings-6WDHLGMX-O26XgPLP.mjs.map → strings-6WDHLGMX-Cwh0m_1z.mjs.map} +1 -1
- package/dist/{strings-6WDHLGMX-WrYHjmYR.cjs → strings-6WDHLGMX-D_wVFi1Y.cjs} +2 -2
- package/dist/{strings-6WDHLGMX-WrYHjmYR.cjs.map → strings-6WDHLGMX-D_wVFi1Y.cjs.map} +1 -1
- package/dist/{tac-2STMMJYW-B3nwHTgj.mjs → tac-2STMMJYW-CmNRz_KK.mjs} +2 -2
- package/dist/{tac-2STMMJYW-B3nwHTgj.mjs.map → tac-2STMMJYW-CmNRz_KK.mjs.map} +1 -1
- package/dist/{tac-2STMMJYW-bH0PmIFC.cjs → tac-2STMMJYW-DlQveDWW.cjs} +2 -2
- package/dist/{tac-2STMMJYW-bH0PmIFC.cjs.map → tac-2STMMJYW-DlQveDWW.cjs.map} +1 -1
- package/dist/{tail-R4PCA2C4-t0agG73W.mjs → tail-R4PCA2C4-D3neo4mZ.mjs} +2 -2
- package/dist/{tail-R4PCA2C4-t0agG73W.mjs.map → tail-R4PCA2C4-D3neo4mZ.mjs.map} +1 -1
- package/dist/{tail-R4PCA2C4-CBJsd2wD.cjs → tail-R4PCA2C4-Qq466xNz.cjs} +2 -2
- package/dist/{tail-R4PCA2C4-CBJsd2wD.cjs.map → tail-R4PCA2C4-Qq466xNz.cjs.map} +1 -1
- package/dist/{tar-STHHZTZ6-nTNd_mUA.mjs → tar-STHHZTZ6-B6DDe3Yr.mjs} +4 -4
- package/dist/{tar-STHHZTZ6-nTNd_mUA.mjs.map → tar-STHHZTZ6-B6DDe3Yr.mjs.map} +1 -1
- package/dist/{tar-STHHZTZ6-ol7sffwQ.cjs → tar-STHHZTZ6-Da11uuhs.cjs} +5 -5
- package/dist/{tar-STHHZTZ6-ol7sffwQ.cjs.map → tar-STHHZTZ6-Da11uuhs.cjs.map} +1 -1
- package/dist/{tee-YUZ2FKCJ-CRnAkzyY.mjs → tee-YUZ2FKCJ-BkNrUZOh.mjs} +2 -2
- package/dist/{tee-YUZ2FKCJ-CRnAkzyY.mjs.map → tee-YUZ2FKCJ-BkNrUZOh.mjs.map} +1 -1
- package/dist/{tee-YUZ2FKCJ-BItvCSLS.cjs → tee-YUZ2FKCJ-bKv2rbyb.cjs} +2 -2
- package/dist/{tee-YUZ2FKCJ-BItvCSLS.cjs.map → tee-YUZ2FKCJ-bKv2rbyb.cjs.map} +1 -1
- package/dist/{time-D4LNBSWX-CRb0M_G6.cjs → time-D4LNBSWX-uwFLximI.cjs} +2 -2
- package/dist/{time-D4LNBSWX-CRb0M_G6.cjs.map → time-D4LNBSWX-uwFLximI.cjs.map} +1 -1
- package/dist/{time-D4LNBSWX-DQ_s98Uj.mjs → time-D4LNBSWX-xcr9GAGV.mjs} +2 -2
- package/dist/{time-D4LNBSWX-DQ_s98Uj.mjs.map → time-D4LNBSWX-xcr9GAGV.mjs.map} +1 -1
- package/dist/{timeout-YDCRSLPQ-D74y5y7z.cjs → timeout-YDCRSLPQ-CxXibVHz.cjs} +2 -2
- package/dist/{timeout-YDCRSLPQ-D74y5y7z.cjs.map → timeout-YDCRSLPQ-CxXibVHz.cjs.map} +1 -1
- package/dist/{timeout-YDCRSLPQ-BffepZAF.mjs → timeout-YDCRSLPQ-W7GVoKm3.mjs} +2 -2
- package/dist/{timeout-YDCRSLPQ-BffepZAF.mjs.map → timeout-YDCRSLPQ-W7GVoKm3.mjs.map} +1 -1
- package/dist/{touch-UA33VN3N-CP3QIjbf.cjs → touch-UA33VN3N-CDeTVY8N.cjs} +2 -2
- package/dist/{touch-UA33VN3N-CP3QIjbf.cjs.map → touch-UA33VN3N-CDeTVY8N.cjs.map} +1 -1
- package/dist/{touch-UA33VN3N-78TDr_Cd.mjs → touch-UA33VN3N-D6hWUpvJ.mjs} +2 -2
- package/dist/{touch-UA33VN3N-78TDr_Cd.mjs.map → touch-UA33VN3N-D6hWUpvJ.mjs.map} +1 -1
- package/dist/{tr-36LHWFRQ-SA2CA_S1.mjs → tr-36LHWFRQ-BK-byZqH.mjs} +2 -2
- package/dist/{tr-36LHWFRQ-SA2CA_S1.mjs.map → tr-36LHWFRQ-BK-byZqH.mjs.map} +1 -1
- package/dist/{tr-36LHWFRQ-BRvI2dHQ.cjs → tr-36LHWFRQ-D7ux6-ia.cjs} +2 -2
- package/dist/{tr-36LHWFRQ-BRvI2dHQ.cjs.map → tr-36LHWFRQ-D7ux6-ia.cjs.map} +1 -1
- package/dist/{tree-YLD52CNT-C3_lLUpl.cjs → tree-YLD52CNT-B4LgFLSh.cjs} +2 -2
- package/dist/{tree-YLD52CNT-C3_lLUpl.cjs.map → tree-YLD52CNT-B4LgFLSh.cjs.map} +1 -1
- package/dist/{tree-YLD52CNT-KZAShLek.mjs → tree-YLD52CNT-CJI-UnBb.mjs} +2 -2
- package/dist/{tree-YLD52CNT-KZAShLek.mjs.map → tree-YLD52CNT-CJI-UnBb.mjs.map} +1 -1
- package/dist/{unexpand-CADSA4VO-QJhpquBs.mjs → unexpand-CADSA4VO-BRPlO2jx.mjs} +2 -2
- package/dist/{unexpand-CADSA4VO-QJhpquBs.mjs.map → unexpand-CADSA4VO-BRPlO2jx.mjs.map} +1 -1
- package/dist/{unexpand-CADSA4VO-DJB8iOb2.cjs → unexpand-CADSA4VO-DEnJWQw0.cjs} +2 -2
- package/dist/{unexpand-CADSA4VO-DJB8iOb2.cjs.map → unexpand-CADSA4VO-DEnJWQw0.cjs.map} +1 -1
- package/dist/{uniq-XSIZR6PB-D8Uw2jAH.mjs → uniq-XSIZR6PB-DvxME4uz.mjs} +3 -3
- package/dist/{uniq-XSIZR6PB-D8Uw2jAH.mjs.map → uniq-XSIZR6PB-DvxME4uz.mjs.map} +1 -1
- package/dist/{uniq-XSIZR6PB--zd07u5J.cjs → uniq-XSIZR6PB-pK7ym7wa.cjs} +3 -3
- package/dist/{uniq-XSIZR6PB--zd07u5J.cjs.map → uniq-XSIZR6PB-pK7ym7wa.cjs.map} +1 -1
- package/dist/{wc-LF7NU4LA-B-YAlUqD.mjs → wc-LF7NU4LA-C0jxVmU3.mjs} +3 -3
- package/dist/{wc-LF7NU4LA-B-YAlUqD.mjs.map → wc-LF7NU4LA-C0jxVmU3.mjs.map} +1 -1
- package/dist/{wc-LF7NU4LA-BEMBfNm9.cjs → wc-LF7NU4LA-CGiCf_aL.cjs} +3 -3
- package/dist/{wc-LF7NU4LA-BEMBfNm9.cjs.map → wc-LF7NU4LA-CGiCf_aL.cjs.map} +1 -1
- package/dist/with-project-scope-BSsArVUs.cjs +30 -0
- package/dist/with-project-scope-BSsArVUs.cjs.map +1 -0
- package/dist/with-project-scope-C6gaaB04.mjs +25 -0
- package/dist/with-project-scope-C6gaaB04.mjs.map +1 -0
- package/dist/{xan-Y6WF3IRG-ByEdCuAi.mjs → xan-Y6WF3IRG-BkX8GlNB.mjs} +6 -6
- package/dist/{xan-Y6WF3IRG-ByEdCuAi.mjs.map → xan-Y6WF3IRG-BkX8GlNB.mjs.map} +1 -1
- package/dist/{xan-Y6WF3IRG-DCru93RE.cjs → xan-Y6WF3IRG-DdAAlgd7.cjs} +6 -6
- package/dist/{xan-Y6WF3IRG-DCru93RE.cjs.map → xan-Y6WF3IRG-DdAAlgd7.cjs.map} +1 -1
- package/dist/{xan-view-HDVKHFC2-HTtRuSIN.mjs → xan-view-HDVKHFC2-ChcuUfNK.mjs} +3 -3
- package/dist/{xan-view-HDVKHFC2-HTtRuSIN.mjs.map → xan-view-HDVKHFC2-ChcuUfNK.mjs.map} +1 -1
- package/dist/{xan-view-HDVKHFC2-BPuiufGQ.cjs → xan-view-HDVKHFC2-DNPdVf7Z.cjs} +3 -3
- package/dist/{xan-view-HDVKHFC2-BPuiufGQ.cjs.map → xan-view-HDVKHFC2-DNPdVf7Z.cjs.map} +1 -1
- package/dist/{xargs-MGZPH7AX-w2W-Yyzf.mjs → xargs-MGZPH7AX-P7MyZ-8k.mjs} +2 -2
- package/dist/{xargs-MGZPH7AX-w2W-Yyzf.mjs.map → xargs-MGZPH7AX-P7MyZ-8k.mjs.map} +1 -1
- package/dist/{xargs-MGZPH7AX-SGQW1zLf.cjs → xargs-MGZPH7AX-RKHvGua-.cjs} +2 -2
- package/dist/{xargs-MGZPH7AX-SGQW1zLf.cjs.map → xargs-MGZPH7AX-RKHvGua-.cjs.map} +1 -1
- package/dist/{yq-4QJW3EQG-Cx9pL4eC.cjs → yq-4QJW3EQG-Bz5ufovW.cjs} +3 -3
- package/dist/{yq-4QJW3EQG-Cx9pL4eC.cjs.map → yq-4QJW3EQG-Bz5ufovW.cjs.map} +1 -1
- package/dist/{yq-4QJW3EQG-eornzh5f.mjs → yq-4QJW3EQG-ryyhwzcH.mjs} +3 -3
- package/dist/{yq-4QJW3EQG-eornzh5f.mjs.map → yq-4QJW3EQG-ryyhwzcH.mjs.map} +1 -1
- package/package.json +8 -3
- package/dist/config-DqyMT-Xg.d.cts +0 -1938
- package/dist/config-pCKnlcL-.d.mts +0 -1940
- package/dist/dist-DCerSc01.cjs.map +0 -1
- package/dist/dist-Drb4M1g2.mjs.map +0 -1
- package/dist/start-CSKzlyiU.cjs.map +0 -1
- package/dist/start-xmxO-nhn.mjs.map +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { $ as InviteProjectMembersRequestSchema, $t as
|
|
1
|
+
import { $ as InviteProjectMembersRequestSchema, $t as UserPreferencesSchema, A as CompleteProjectArtifactResponseSchema, At as SkillSummaryDetailResponseSchema, B as CreateProjectRequestSchema, Bt as UpdateCredentialRequestSchema, C as AcceptOrganizationInvitationResponseSchema, Cn as validationErrorResponse, Ct as ProjectResponseSchema, D as AgentSummarySchema, Dt as ProjectSourceResourcesSchema, E as AgentSummaryListResponseSchema, Et as ProjectSlugAvailabilityResponseSchema, F as CreateCustomAppRequestSchema, Ft as StoredProjectSourceManifestSchema, G as GetCredentialResponseSchema, Gt as UpdateProjectMemberResponseSchema, H as DeclineOrganizationInvitationResponseSchema, Ht as UpdateOrganizationMemberResponseSchema, I as CreateCustomAppResponseSchema, It as SubmitMarketingContactRequestSchema, J as HistoryRunDetailResponseSchema, Jt as UploadProjectSourceManifestRequestSchema, K as GetCustomAppResponseSchema, Kt as UpdateProjectRequestSchema, L as CreateOrganizationRequestSchema, Lt as SubmitMarketingContactResponseSchema, M as CreateApiKeyResponseSchema, Mt as SkillSummarySchema, N as CreateCredentialsRequestSchema, Nt as SlugAvailabilityQuerySchema, O as AppSlugAvailabilityQuerySchema, Ot as RecentResourceListResponseSchema, P as CreateCredentialsResponseSchema, Pt as SlugAvailabilityResponseSchema, Q as InviteOrganizationMembersResponseSchema, Qt as UserPreferencesPatchSchema, R as CreateOrganizationResponseSchema, Rt as SubmitTeamRequestRequestSchema, S as ACTIVE_ORG_HEADER, Sn as validateCredentialValueAgainstFields, St as ProjectReachabilityResponseSchema, T as AgentSummaryDetailResponseSchema, Tn as pingProjectTarget, Tt as ProjectSlugAvailabilityQuerySchema, U as DownloadActiveProjectArtifactResponseSchema, Ut as UpdateOrganizationRequestSchema, V as CreateProjectResponseSchema, Vt as UpdateOrganizationMemberRequestSchema, W as ErrorResponseSchema, Wt as UpdateProjectMemberRequestSchema, X as HistoryRunListResponseSchema, Xt as UserAvatarPatchSchema, Y as HistoryRunListQuerySchema, Yt as UploadProjectSourceResponseSchema, Z as InviteOrganizationMembersRequestSchema, Zt as UserAvatarSchema, _ as createJobQueue, _n as organizationSlugErrorCodeFromMessage, _t as PresignOrgLogoResponseSchema, a as isKeystrokeAssetsAvatarPublicUrl, an as listenPortFromPublicUrl, at as ListOrganizationMembersResponseSchema, b as readCredentialInstanceSecret, bn as projectFileId, bt as PresignUserAvatarRequestSchema, c as isUserAvatarStorageKey, cn as mapProject, ct as ListProjectFilesResponseSchema, dn as mapProjectMember, dt as ListProjectsResponseSchema, en as WorkflowSummaryDetailResponseSchema, et as InviteProjectMembersResponseSchema, f as orgLogoStorageKey, fn as mapProjectSettings, ft as OrganizationSidebarBrandingPatchSchema, g as userAvatarStorageKey, gn as organizationInvitationAcceptPath, gt as PresignOrgLogoRequestSchema, h as publicKeystrokeAssetsObjectUrl, hn as normalizeUserPreferences, ht as PROJECT_SLUG_TAKEN_MESSAGE, i as extractRouteManifestFromArtifact, in as displayCredentialAppName, it as ListOrganizationInvitationsResponseSchema, j as CreateApiKeyRequestSchema, jt as SkillSummaryListResponseSchema, k as AppSlugAvailabilityResponseSchema, kt as RecentResourceSchema, l as keystrokeAssetsAvatarKeyFromPublicUrl, ln as mapProjectArtifact, lt as ListProjectMembersResponseSchema, m as projectSourceBlobKey, mn as mergeUserPreferences, mt as PLATFORM_RESOURCE_UNSUPPORTED_TEXT, n as createAssetsStorageClient, nn as WorkflowSummarySchema, nt as ListAppsResponseSchema, o as isKeystrokeAssetsOrgLogoPublicUrl, on as mapOrganizationInvitation, ot as ListOrganizationsResponseSchema, p as projectArtifactKey, pn as mapUserOrganization, pt as OrganizationSidebarBrandingSchema, q as HistoryRunCancelResponseSchema, qt as UpdateProjectSettingsRequestSchema, r as ensureKeystrokeAssetsBucket, rn as buildCredentialInstanceLabel, rt as ListCredentialsResponseSchema, s as isOrgLogoStorageKey, sn as mapOrganizationMember, st as ListProjectDeploymentsResponseSchema, t as RouteManifestNotFoundError, tn as WorkflowSummaryListResponseSchema, tt as ListApiKeysResponseSchema, u as keystrokeAssetsOrgLogoKeyFromPublicUrl, un as mapProjectDeployment, ut as ListProjectMetricsResponseSchema, v as defaultSchedulerPlugin, vn as parseAppSlug, vt as PresignProjectSourceRequestSchema, w as ActiveOrganizationResponseSchema, wt as ProjectSettingsResponseSchema, x as setCredentialInstanceSecret, xn as resolveUniqueCredentialInstanceLabel, xt as PresignUserAvatarResponseSchema, y as deleteCredentialInstanceSecret, yn as parseStoredRouteManifest, yt as PresignProjectSourceResponseSchema, z as CreateProjectArtifactResponseSchema, zt as SubmitTeamRequestResponseSchema } from "./dist-T5YD-4iz.mjs";
|
|
2
2
|
import "./chunk-BZUGFHVS-B2NchobP.mjs";
|
|
3
3
|
import { n as d$4, t as _$1 } from "./chunk-TN7HHBQW-B8PYcKz5.mjs";
|
|
4
|
+
import { t as withProjectScope } from "./with-project-scope-C6gaaB04.mjs";
|
|
4
5
|
import { createRequire } from "node:module";
|
|
6
|
+
import "node:fs/promises";
|
|
5
7
|
import { buildHistoryAgentSessionDetail, buildHistoryWorkflowRunDetail, cancelAgentSession, cancelWorkflowRun, clearCredentialInstanceDefaults, deleteCredentialInstanceById, findHistoryRunCore, getServerTenantScopeId, inferDialect, listActiveAgents, listActiveSkills, listActiveWorkflows, listAllCredentialInstances, listCredentialInstancesByConnectionId, listHistoryRuns, listRecentResourceActivity, runWithProjectDatabase, runWithProjectScope, runWithTenantScope, selectActiveAgentById, selectActiveAgentsByIds, selectActiveSkillById, selectActiveSkillsByIds, selectActiveWorkflowById, selectActiveWorkflowsByIds, selectAgentLastRunAtByIds, selectAgentSessionById, selectCredentialInstanceById, selectCredentialInstancesForScope, selectEphemeralTriggerAttachments, selectProjectResourceCounts, selectWorkflowLastRunAtByIds, selectWorkflowRunById, touchResourceActivity, upsertCredentialInstance } from "@keystrokehq/database";
|
|
6
8
|
import { ZodError, z } from "zod";
|
|
7
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -17,6 +19,7 @@ import "node:url";
|
|
|
17
19
|
import { createApp, externalPlatformOrigin, getProjectScheduler, platformWebhookOrigin, resolveMcpEntityId } from "@keystrokehq/http";
|
|
18
20
|
import { Hono } from "hono";
|
|
19
21
|
import { Resend } from "resend";
|
|
22
|
+
import { getConnInfo } from "@hono/node-server/conninfo";
|
|
20
23
|
//#region ../../node_modules/.pnpm/typebox@1.1.38/node_modules/typebox/build/system/memory/metrics.mjs
|
|
21
24
|
/** TypeBox instantiation metrics */
|
|
22
25
|
const Metrics = {
|
|
@@ -23115,43 +23118,43 @@ var tt = [
|
|
|
23115
23118
|
},
|
|
23116
23119
|
{
|
|
23117
23120
|
name: "cat",
|
|
23118
|
-
load: async () => (await import("./cat-TSFMZVYS-
|
|
23121
|
+
load: async () => (await import("./cat-TSFMZVYS-D_swNqw2.mjs")).catCommand
|
|
23119
23122
|
},
|
|
23120
23123
|
{
|
|
23121
23124
|
name: "printf",
|
|
23122
|
-
load: async () => (await import("./printf-TWGXF445-
|
|
23125
|
+
load: async () => (await import("./printf-TWGXF445-Ce51wW_F.mjs")).printfCommand
|
|
23123
23126
|
},
|
|
23124
23127
|
{
|
|
23125
23128
|
name: "ls",
|
|
23126
|
-
load: async () => (await import("./ls-ZJGQER7M-
|
|
23129
|
+
load: async () => (await import("./ls-ZJGQER7M-2nym-AAt.mjs")).lsCommand
|
|
23127
23130
|
},
|
|
23128
23131
|
{
|
|
23129
23132
|
name: "mkdir",
|
|
23130
|
-
load: async () => (await import("./mkdir-MEPGZOB6-
|
|
23133
|
+
load: async () => (await import("./mkdir-MEPGZOB6-ByC7lW06.mjs")).mkdirCommand
|
|
23131
23134
|
},
|
|
23132
23135
|
{
|
|
23133
23136
|
name: "rmdir",
|
|
23134
|
-
load: async () => (await import("./rmdir-OC4ZLPYA-
|
|
23137
|
+
load: async () => (await import("./rmdir-OC4ZLPYA-CPpJWUCd.mjs")).rmdirCommand
|
|
23135
23138
|
},
|
|
23136
23139
|
{
|
|
23137
23140
|
name: "touch",
|
|
23138
|
-
load: async () => (await import("./touch-UA33VN3N-
|
|
23141
|
+
load: async () => (await import("./touch-UA33VN3N-D6hWUpvJ.mjs")).touchCommand
|
|
23139
23142
|
},
|
|
23140
23143
|
{
|
|
23141
23144
|
name: "rm",
|
|
23142
|
-
load: async () => (await import("./rm-SSGETQVQ-
|
|
23145
|
+
load: async () => (await import("./rm-SSGETQVQ-C7uknH2s.mjs")).rmCommand
|
|
23143
23146
|
},
|
|
23144
23147
|
{
|
|
23145
23148
|
name: "cp",
|
|
23146
|
-
load: async () => (await import("./cp-BISAAS7A-
|
|
23149
|
+
load: async () => (await import("./cp-BISAAS7A-Bi0rRBNr.mjs")).cpCommand
|
|
23147
23150
|
},
|
|
23148
23151
|
{
|
|
23149
23152
|
name: "mv",
|
|
23150
|
-
load: async () => (await import("./mv-W5BIQ646-
|
|
23153
|
+
load: async () => (await import("./mv-W5BIQ646-DrkkZTBW.mjs")).mvCommand
|
|
23151
23154
|
},
|
|
23152
23155
|
{
|
|
23153
23156
|
name: "ln",
|
|
23154
|
-
load: async () => (await import("./ln-4LGSXXGD-
|
|
23157
|
+
load: async () => (await import("./ln-4LGSXXGD-ClMpyDY4.mjs")).lnCommand
|
|
23155
23158
|
},
|
|
23156
23159
|
{
|
|
23157
23160
|
name: "chmod",
|
|
@@ -23167,15 +23170,15 @@ var tt = [
|
|
|
23167
23170
|
},
|
|
23168
23171
|
{
|
|
23169
23172
|
name: "head",
|
|
23170
|
-
load: async () => (await import("./head-442HYESI-
|
|
23173
|
+
load: async () => (await import("./head-442HYESI-BAloEShx.mjs")).headCommand
|
|
23171
23174
|
},
|
|
23172
23175
|
{
|
|
23173
23176
|
name: "tail",
|
|
23174
|
-
load: async () => (await import("./tail-R4PCA2C4-
|
|
23177
|
+
load: async () => (await import("./tail-R4PCA2C4-D3neo4mZ.mjs")).tailCommand
|
|
23175
23178
|
},
|
|
23176
23179
|
{
|
|
23177
23180
|
name: "wc",
|
|
23178
|
-
load: async () => (await import("./wc-LF7NU4LA-
|
|
23181
|
+
load: async () => (await import("./wc-LF7NU4LA-C0jxVmU3.mjs")).wcCommand
|
|
23179
23182
|
},
|
|
23180
23183
|
{
|
|
23181
23184
|
name: "stat",
|
|
@@ -23183,95 +23186,95 @@ var tt = [
|
|
|
23183
23186
|
},
|
|
23184
23187
|
{
|
|
23185
23188
|
name: "grep",
|
|
23186
|
-
load: async () => (await import("./grep-V3LQVMRQ-
|
|
23189
|
+
load: async () => (await import("./grep-V3LQVMRQ-DXEgqqun.mjs")).grepCommand
|
|
23187
23190
|
},
|
|
23188
23191
|
{
|
|
23189
23192
|
name: "fgrep",
|
|
23190
|
-
load: async () => (await import("./grep-V3LQVMRQ-
|
|
23193
|
+
load: async () => (await import("./grep-V3LQVMRQ-DXEgqqun.mjs")).fgrepCommand
|
|
23191
23194
|
},
|
|
23192
23195
|
{
|
|
23193
23196
|
name: "egrep",
|
|
23194
|
-
load: async () => (await import("./grep-V3LQVMRQ-
|
|
23197
|
+
load: async () => (await import("./grep-V3LQVMRQ-DXEgqqun.mjs")).egrepCommand
|
|
23195
23198
|
},
|
|
23196
23199
|
{
|
|
23197
23200
|
name: "rg",
|
|
23198
|
-
load: async () => (await import("./rg-S4FXYXWB-
|
|
23201
|
+
load: async () => (await import("./rg-S4FXYXWB-bYfqVhw6.mjs")).rgCommand
|
|
23199
23202
|
},
|
|
23200
23203
|
{
|
|
23201
23204
|
name: "sed",
|
|
23202
|
-
load: async () => (await import("./sed-S5UIK574-
|
|
23205
|
+
load: async () => (await import("./sed-S5UIK574-DoluQiE3.mjs")).sedCommand
|
|
23203
23206
|
},
|
|
23204
23207
|
{
|
|
23205
23208
|
name: "awk",
|
|
23206
|
-
load: async () => (await import("./awk2-LA3USKJP-
|
|
23209
|
+
load: async () => (await import("./awk2-LA3USKJP-JLvLmpWy.mjs")).awkCommand2
|
|
23207
23210
|
},
|
|
23208
23211
|
{
|
|
23209
23212
|
name: "sort",
|
|
23210
|
-
load: async () => (await import("./sort-SW2YEO5B-
|
|
23213
|
+
load: async () => (await import("./sort-SW2YEO5B-t158drTy.mjs")).sortCommand
|
|
23211
23214
|
},
|
|
23212
23215
|
{
|
|
23213
23216
|
name: "uniq",
|
|
23214
|
-
load: async () => (await import("./uniq-XSIZR6PB-
|
|
23217
|
+
load: async () => (await import("./uniq-XSIZR6PB-DvxME4uz.mjs")).uniqCommand
|
|
23215
23218
|
},
|
|
23216
23219
|
{
|
|
23217
23220
|
name: "comm",
|
|
23218
|
-
load: async () => (await import("./comm-VV2LDX2J-
|
|
23221
|
+
load: async () => (await import("./comm-VV2LDX2J-q632kG50.mjs")).commCommand
|
|
23219
23222
|
},
|
|
23220
23223
|
{
|
|
23221
23224
|
name: "cut",
|
|
23222
|
-
load: async () => (await import("./cut-OKARJCCV-
|
|
23225
|
+
load: async () => (await import("./cut-OKARJCCV-CUSBR-oH.mjs")).cutCommand
|
|
23223
23226
|
},
|
|
23224
23227
|
{
|
|
23225
23228
|
name: "paste",
|
|
23226
|
-
load: async () => (await import("./paste-7JC6S4DX-
|
|
23229
|
+
load: async () => (await import("./paste-7JC6S4DX-CC7WOsYp.mjs")).pasteCommand
|
|
23227
23230
|
},
|
|
23228
23231
|
{
|
|
23229
23232
|
name: "tr",
|
|
23230
|
-
load: async () => (await import("./tr-36LHWFRQ-
|
|
23233
|
+
load: async () => (await import("./tr-36LHWFRQ-BK-byZqH.mjs")).trCommand
|
|
23231
23234
|
},
|
|
23232
23235
|
{
|
|
23233
23236
|
name: "rev",
|
|
23234
|
-
load: async () => (await import("./rev-5EHFX4EJ-
|
|
23237
|
+
load: async () => (await import("./rev-5EHFX4EJ-CIjVQ68R.mjs")).rev
|
|
23235
23238
|
},
|
|
23236
23239
|
{
|
|
23237
23240
|
name: "nl",
|
|
23238
|
-
load: async () => (await import("./nl-WSDW7I4O-
|
|
23241
|
+
load: async () => (await import("./nl-WSDW7I4O-DjVZXPev.mjs")).nl
|
|
23239
23242
|
},
|
|
23240
23243
|
{
|
|
23241
23244
|
name: "fold",
|
|
23242
|
-
load: async () => (await import("./fold-4TQNYMSW-
|
|
23245
|
+
load: async () => (await import("./fold-4TQNYMSW-BYNM37kB.mjs")).fold
|
|
23243
23246
|
},
|
|
23244
23247
|
{
|
|
23245
23248
|
name: "expand",
|
|
23246
|
-
load: async () => (await import("./expand-JSPG6VOP-
|
|
23249
|
+
load: async () => (await import("./expand-JSPG6VOP-Bn0vEzWc.mjs")).expand
|
|
23247
23250
|
},
|
|
23248
23251
|
{
|
|
23249
23252
|
name: "unexpand",
|
|
23250
|
-
load: async () => (await import("./unexpand-CADSA4VO-
|
|
23253
|
+
load: async () => (await import("./unexpand-CADSA4VO-BRPlO2jx.mjs")).unexpand
|
|
23251
23254
|
},
|
|
23252
23255
|
{
|
|
23253
23256
|
name: "strings",
|
|
23254
|
-
load: async () => (await import("./strings-6WDHLGMX-
|
|
23257
|
+
load: async () => (await import("./strings-6WDHLGMX-Cwh0m_1z.mjs")).strings
|
|
23255
23258
|
},
|
|
23256
23259
|
{
|
|
23257
23260
|
name: "split",
|
|
23258
|
-
load: async () => (await import("./split-4KKZZXXE-
|
|
23261
|
+
load: async () => (await import("./split-4KKZZXXE-DrWA-ij3.mjs")).split
|
|
23259
23262
|
},
|
|
23260
23263
|
{
|
|
23261
23264
|
name: "column",
|
|
23262
|
-
load: async () => (await import("./column-XT6UFXNQ-
|
|
23265
|
+
load: async () => (await import("./column-XT6UFXNQ-Co5L38F2.mjs")).column
|
|
23263
23266
|
},
|
|
23264
23267
|
{
|
|
23265
23268
|
name: "join",
|
|
23266
|
-
load: async () => (await import("./join-TBRGI3LQ-
|
|
23269
|
+
load: async () => (await import("./join-TBRGI3LQ-DcM7XPTS.mjs")).join
|
|
23267
23270
|
},
|
|
23268
23271
|
{
|
|
23269
23272
|
name: "tee",
|
|
23270
|
-
load: async () => (await import("./tee-YUZ2FKCJ-
|
|
23273
|
+
load: async () => (await import("./tee-YUZ2FKCJ-BkNrUZOh.mjs")).teeCommand
|
|
23271
23274
|
},
|
|
23272
23275
|
{
|
|
23273
23276
|
name: "find",
|
|
23274
|
-
load: async () => (await import("./find-INTH3OLC-
|
|
23277
|
+
load: async () => (await import("./find-INTH3OLC-BapyRJYp.mjs")).findCommand
|
|
23275
23278
|
},
|
|
23276
23279
|
{
|
|
23277
23280
|
name: "basename",
|
|
@@ -23283,19 +23286,19 @@ var tt = [
|
|
|
23283
23286
|
},
|
|
23284
23287
|
{
|
|
23285
23288
|
name: "tree",
|
|
23286
|
-
load: async () => (await import("./tree-YLD52CNT-
|
|
23289
|
+
load: async () => (await import("./tree-YLD52CNT-CJI-UnBb.mjs")).treeCommand
|
|
23287
23290
|
},
|
|
23288
23291
|
{
|
|
23289
23292
|
name: "du",
|
|
23290
|
-
load: async () => (await import("./du-572XNP42-
|
|
23293
|
+
load: async () => (await import("./du-572XNP42-Dqm_qzhE.mjs")).duCommand
|
|
23291
23294
|
},
|
|
23292
23295
|
{
|
|
23293
23296
|
name: "env",
|
|
23294
|
-
load: async () => (await import("./env-36M5BO7M-
|
|
23297
|
+
load: async () => (await import("./env-36M5BO7M-lkIgFi7F.mjs")).envCommand
|
|
23295
23298
|
},
|
|
23296
23299
|
{
|
|
23297
23300
|
name: "printenv",
|
|
23298
|
-
load: async () => (await import("./env-36M5BO7M-
|
|
23301
|
+
load: async () => (await import("./env-36M5BO7M-lkIgFi7F.mjs")).printenvCommand
|
|
23299
23302
|
},
|
|
23300
23303
|
{
|
|
23301
23304
|
name: "alias",
|
|
@@ -23311,7 +23314,7 @@ var tt = [
|
|
|
23311
23314
|
},
|
|
23312
23315
|
{
|
|
23313
23316
|
name: "xargs",
|
|
23314
|
-
load: async () => (await import("./xargs-MGZPH7AX-
|
|
23317
|
+
load: async () => (await import("./xargs-MGZPH7AX-P7MyZ-8k.mjs")).xargsCommand
|
|
23315
23318
|
},
|
|
23316
23319
|
{
|
|
23317
23320
|
name: "true",
|
|
@@ -23327,23 +23330,23 @@ var tt = [
|
|
|
23327
23330
|
},
|
|
23328
23331
|
{
|
|
23329
23332
|
name: "bash",
|
|
23330
|
-
load: async () => (await import("./bash-YZ33HQZQ-
|
|
23333
|
+
load: async () => (await import("./bash-YZ33HQZQ-DyHzqiV0.mjs")).bashCommand
|
|
23331
23334
|
},
|
|
23332
23335
|
{
|
|
23333
23336
|
name: "sh",
|
|
23334
|
-
load: async () => (await import("./bash-YZ33HQZQ-
|
|
23337
|
+
load: async () => (await import("./bash-YZ33HQZQ-DyHzqiV0.mjs")).shCommand
|
|
23335
23338
|
},
|
|
23336
23339
|
{
|
|
23337
23340
|
name: "jq",
|
|
23338
|
-
load: async () => (await import("./jq-4XLYLOS5-
|
|
23341
|
+
load: async () => (await import("./jq-4XLYLOS5-DOHkS1Ao.mjs")).jqCommand
|
|
23339
23342
|
},
|
|
23340
23343
|
{
|
|
23341
23344
|
name: "base64",
|
|
23342
|
-
load: async () => (await import("./base64-C2AIWVNC-
|
|
23345
|
+
load: async () => (await import("./base64-C2AIWVNC-CzOcUFRU.mjs")).base64Command
|
|
23343
23346
|
},
|
|
23344
23347
|
{
|
|
23345
23348
|
name: "diff",
|
|
23346
|
-
load: async () => (await import("./diff-MWJFIG7X-
|
|
23349
|
+
load: async () => (await import("./diff-MWJFIG7X-CbpqDM3r.mjs")).diffCommand
|
|
23347
23350
|
},
|
|
23348
23351
|
{
|
|
23349
23352
|
name: "date",
|
|
@@ -23351,15 +23354,15 @@ var tt = [
|
|
|
23351
23354
|
},
|
|
23352
23355
|
{
|
|
23353
23356
|
name: "sleep",
|
|
23354
|
-
load: async () => (await import("./sleep-X22JJINO-
|
|
23357
|
+
load: async () => (await import("./sleep-X22JJINO-DSiSkO-C.mjs")).sleepCommand
|
|
23355
23358
|
},
|
|
23356
23359
|
{
|
|
23357
23360
|
name: "timeout",
|
|
23358
|
-
load: async () => (await import("./timeout-YDCRSLPQ-
|
|
23361
|
+
load: async () => (await import("./timeout-YDCRSLPQ-W7GVoKm3.mjs")).timeoutCommand
|
|
23359
23362
|
},
|
|
23360
23363
|
{
|
|
23361
23364
|
name: "time",
|
|
23362
|
-
load: async () => (await import("./time-D4LNBSWX-
|
|
23365
|
+
load: async () => (await import("./time-D4LNBSWX-xcr9GAGV.mjs")).timeCommand
|
|
23363
23366
|
},
|
|
23364
23367
|
{
|
|
23365
23368
|
name: "seq",
|
|
@@ -23367,19 +23370,19 @@ var tt = [
|
|
|
23367
23370
|
},
|
|
23368
23371
|
{
|
|
23369
23372
|
name: "expr",
|
|
23370
|
-
load: async () => (await import("./expr-5JAACS4X-
|
|
23373
|
+
load: async () => (await import("./expr-5JAACS4X-Dht8HWMN.mjs")).exprCommand
|
|
23371
23374
|
},
|
|
23372
23375
|
{
|
|
23373
23376
|
name: "md5sum",
|
|
23374
|
-
load: async () => (await import("./md5sum-SPU24VSG-
|
|
23377
|
+
load: async () => (await import("./md5sum-SPU24VSG-C5oh8Itb.mjs")).md5sumCommand
|
|
23375
23378
|
},
|
|
23376
23379
|
{
|
|
23377
23380
|
name: "sha1sum",
|
|
23378
|
-
load: async () => (await import("./sha1sum-2PTOAFR6-
|
|
23381
|
+
load: async () => (await import("./sha1sum-2PTOAFR6-BzVcHAS-.mjs")).sha1sumCommand
|
|
23379
23382
|
},
|
|
23380
23383
|
{
|
|
23381
23384
|
name: "sha256sum",
|
|
23382
|
-
load: async () => (await import("./sha256sum-NS7D3IXX-
|
|
23385
|
+
load: async () => (await import("./sha256sum-NS7D3IXX-DzUPlDQJ.mjs")).sha256sumCommand
|
|
23383
23386
|
},
|
|
23384
23387
|
{
|
|
23385
23388
|
name: "file",
|
|
@@ -23387,11 +23390,11 @@ var tt = [
|
|
|
23387
23390
|
},
|
|
23388
23391
|
{
|
|
23389
23392
|
name: "html-to-markdown",
|
|
23390
|
-
load: async () => (await import("./html-to-markdown-JW4MSQZO-
|
|
23393
|
+
load: async () => (await import("./html-to-markdown-JW4MSQZO-DTooQUk2.mjs")).htmlToMarkdownCommand
|
|
23391
23394
|
},
|
|
23392
23395
|
{
|
|
23393
23396
|
name: "help",
|
|
23394
|
-
load: async () => (await import("./help-HZ6M2CKN-
|
|
23397
|
+
load: async () => (await import("./help-HZ6M2CKN-DqaLkGHb.mjs")).helpCommand
|
|
23395
23398
|
},
|
|
23396
23399
|
{
|
|
23397
23400
|
name: "which",
|
|
@@ -23399,7 +23402,7 @@ var tt = [
|
|
|
23399
23402
|
},
|
|
23400
23403
|
{
|
|
23401
23404
|
name: "tac",
|
|
23402
|
-
load: async () => (await import("./tac-2STMMJYW-
|
|
23405
|
+
load: async () => (await import("./tac-2STMMJYW-CmNRz_KK.mjs")).tac
|
|
23403
23406
|
},
|
|
23404
23407
|
{
|
|
23405
23408
|
name: "hostname",
|
|
@@ -23411,49 +23414,49 @@ var tt = [
|
|
|
23411
23414
|
},
|
|
23412
23415
|
{
|
|
23413
23416
|
name: "od",
|
|
23414
|
-
load: async () => (await import("./od-WOKFDJTP-
|
|
23417
|
+
load: async () => (await import("./od-WOKFDJTP-_UI_6U4Q.mjs")).od
|
|
23415
23418
|
},
|
|
23416
23419
|
{
|
|
23417
23420
|
name: "gzip",
|
|
23418
|
-
load: async () => (await import("./gzip-O5ASJAFY-
|
|
23421
|
+
load: async () => (await import("./gzip-O5ASJAFY-BenWaiyH.mjs")).gzipCommand
|
|
23419
23422
|
},
|
|
23420
23423
|
{
|
|
23421
23424
|
name: "gunzip",
|
|
23422
|
-
load: async () => (await import("./gzip-O5ASJAFY-
|
|
23425
|
+
load: async () => (await import("./gzip-O5ASJAFY-BenWaiyH.mjs")).gunzipCommand
|
|
23423
23426
|
},
|
|
23424
23427
|
{
|
|
23425
23428
|
name: "zcat",
|
|
23426
|
-
load: async () => (await import("./gzip-O5ASJAFY-
|
|
23429
|
+
load: async () => (await import("./gzip-O5ASJAFY-BenWaiyH.mjs")).zcatCommand
|
|
23427
23430
|
}
|
|
23428
23431
|
];
|
|
23429
23432
|
(typeof __BROWSER__ > "u" || !__BROWSER__) && (tt.push({
|
|
23430
23433
|
name: "tar",
|
|
23431
|
-
load: async () => (await import("./tar-STHHZTZ6-
|
|
23434
|
+
load: async () => (await import("./tar-STHHZTZ6-B6DDe3Yr.mjs")).tarCommand
|
|
23432
23435
|
}), tt.push({
|
|
23433
23436
|
name: "yq",
|
|
23434
|
-
load: async () => (await import("./yq-4QJW3EQG-
|
|
23437
|
+
load: async () => (await import("./yq-4QJW3EQG-ryyhwzcH.mjs")).yqCommand
|
|
23435
23438
|
}), tt.push({
|
|
23436
23439
|
name: "xan",
|
|
23437
|
-
load: async () => (await import("./xan-Y6WF3IRG-
|
|
23440
|
+
load: async () => (await import("./xan-Y6WF3IRG-BkX8GlNB.mjs")).xanCommand
|
|
23438
23441
|
}), tt.push({
|
|
23439
23442
|
name: "sqlite3",
|
|
23440
|
-
load: async () => (await import("./sqlite3-CGOEFJAO-
|
|
23443
|
+
load: async () => (await import("./sqlite3-CGOEFJAO-B6BMM2sd.mjs")).sqlite3Command
|
|
23441
23444
|
}));
|
|
23442
23445
|
var Yt = [];
|
|
23443
23446
|
(typeof __BROWSER__ > "u" || !__BROWSER__) && (Yt.push({
|
|
23444
23447
|
name: "python3",
|
|
23445
|
-
load: async () => (await import("./python3-POMOR4OA-
|
|
23448
|
+
load: async () => (await import("./python3-POMOR4OA-I9K2BRZG.mjs")).python3Command
|
|
23446
23449
|
}), Yt.push({
|
|
23447
23450
|
name: "python",
|
|
23448
|
-
load: async () => (await import("./python3-POMOR4OA-
|
|
23451
|
+
load: async () => (await import("./python3-POMOR4OA-I9K2BRZG.mjs")).pythonCommand
|
|
23449
23452
|
}));
|
|
23450
23453
|
var Qt = [];
|
|
23451
23454
|
(typeof __BROWSER__ > "u" || !__BROWSER__) && (Qt.push({
|
|
23452
23455
|
name: "js-exec",
|
|
23453
|
-
load: async () => (await import("./js-exec-N5KEZBH7-
|
|
23456
|
+
load: async () => (await import("./js-exec-N5KEZBH7-BjnXh8wl.mjs")).jsExecCommand
|
|
23454
23457
|
}), Qt.push({
|
|
23455
23458
|
name: "node",
|
|
23456
|
-
load: async () => (await import("./js-exec-N5KEZBH7-
|
|
23459
|
+
load: async () => (await import("./js-exec-N5KEZBH7-BjnXh8wl.mjs")).nodeStubCommand
|
|
23457
23460
|
}));
|
|
23458
23461
|
new TextEncoder();
|
|
23459
23462
|
Object.freeze({
|
|
@@ -24483,7 +24486,7 @@ function withOrganizationProjectDatabase() {
|
|
|
24483
24486
|
}
|
|
24484
24487
|
//#endregion
|
|
24485
24488
|
//#region src/routes/account/users/me/avatar/GET.ts
|
|
24486
|
-
const handler$
|
|
24489
|
+
const handler$64 = async (c) => {
|
|
24487
24490
|
const dbUser = await selectUserById(c.get("user").id);
|
|
24488
24491
|
if (!dbUser) return c.json(ErrorResponseSchema.parse({ error: "User not found" }), 404);
|
|
24489
24492
|
return c.json(UserAvatarSchema.parse({ url: dbUser.image ?? null }));
|
|
@@ -24502,7 +24505,7 @@ function avatarExtensionForContentType(contentType) {
|
|
|
24502
24505
|
}
|
|
24503
24506
|
//#endregion
|
|
24504
24507
|
//#region src/routes/account/users/me/avatar/presign/POST.ts
|
|
24505
|
-
const handler$
|
|
24508
|
+
const handler$63 = async (c) => {
|
|
24506
24509
|
const parsed = PresignUserAvatarRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
24507
24510
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid avatar upload request" }), 400);
|
|
24508
24511
|
const extension = avatarExtensionForContentType(parsed.data.contentType);
|
|
@@ -24542,7 +24545,7 @@ async function deleteStoredImageIfOwned(input) {
|
|
|
24542
24545
|
}
|
|
24543
24546
|
//#endregion
|
|
24544
24547
|
//#region src/routes/account/users/me/avatar/PATCH.ts
|
|
24545
|
-
const handler$
|
|
24548
|
+
const handler$62 = async (c) => {
|
|
24546
24549
|
const parsed = UserAvatarPatchSchema.safeParse(await c.req.json().catch(() => null));
|
|
24547
24550
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid avatar update" }), 400);
|
|
24548
24551
|
const user = c.get("user");
|
|
@@ -24584,14 +24587,14 @@ const handler$61 = async (c) => {
|
|
|
24584
24587
|
};
|
|
24585
24588
|
//#endregion
|
|
24586
24589
|
//#region src/routes/account/users/me/preferences/GET.ts
|
|
24587
|
-
const handler$
|
|
24590
|
+
const handler$61 = async (c) => {
|
|
24588
24591
|
const dbUser = await selectUserById(c.get("user").id);
|
|
24589
24592
|
if (!dbUser) return c.json(ErrorResponseSchema.parse({ error: "User not found" }), 404);
|
|
24590
24593
|
return c.json(UserPreferencesSchema.parse(normalizeUserPreferences(dbUser.preferences)));
|
|
24591
24594
|
};
|
|
24592
24595
|
//#endregion
|
|
24593
24596
|
//#region src/routes/account/users/me/preferences/PATCH.ts
|
|
24594
|
-
const handler$
|
|
24597
|
+
const handler$60 = async (c) => {
|
|
24595
24598
|
const parsed = UserPreferencesPatchSchema.safeParse(await c.req.json().catch(() => null));
|
|
24596
24599
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid preferences update" }), 400);
|
|
24597
24600
|
const user = c.get("user");
|
|
@@ -24606,7 +24609,7 @@ const handler$59 = async (c) => {
|
|
|
24606
24609
|
};
|
|
24607
24610
|
//#endregion
|
|
24608
24611
|
//#region src/routes/account/organizations/GET.ts
|
|
24609
|
-
const handler$
|
|
24612
|
+
const handler$59 = async (c) => {
|
|
24610
24613
|
const memberships = await selectUserOrganizations(c.get("user").id);
|
|
24611
24614
|
return c.json(ListOrganizationsResponseSchema.parse(memberships.map(mapUserOrganization)));
|
|
24612
24615
|
};
|
|
@@ -24684,7 +24687,7 @@ function createOrganizationHandler(deps) {
|
|
|
24684
24687
|
}
|
|
24685
24688
|
//#endregion
|
|
24686
24689
|
//#region src/routes/account/organizations/slug-available/GET.ts
|
|
24687
|
-
const handler$
|
|
24690
|
+
const handler$58 = async (c) => {
|
|
24688
24691
|
const parsed = SlugAvailabilityQuerySchema.safeParse({
|
|
24689
24692
|
slug: c.req.query("slug"),
|
|
24690
24693
|
excludeOrganizationId: c.req.query("excludeOrganizationId")
|
|
@@ -24695,7 +24698,7 @@ const handler$57 = async (c) => {
|
|
|
24695
24698
|
};
|
|
24696
24699
|
//#endregion
|
|
24697
24700
|
//#region src/routes/account/organizations/[organizationId]/GET.ts
|
|
24698
|
-
const handler$
|
|
24701
|
+
const handler$57 = async (c) => {
|
|
24699
24702
|
const { organizationId } = c.get("organization");
|
|
24700
24703
|
const membership = await selectUserOrganizationMembership(c.get("user").id, organizationId);
|
|
24701
24704
|
if (!membership) throw new Error(`Organization membership missing after param guard: ${organizationId}`);
|
|
@@ -24703,7 +24706,7 @@ const handler$56 = async (c) => {
|
|
|
24703
24706
|
};
|
|
24704
24707
|
//#endregion
|
|
24705
24708
|
//#region src/routes/account/organizations/[organizationId]/PATCH.ts
|
|
24706
|
-
const handler$
|
|
24709
|
+
const handler$56 = async (c) => {
|
|
24707
24710
|
const organization = c.get("organization");
|
|
24708
24711
|
const body = await c.req.json().catch(() => null);
|
|
24709
24712
|
const parsed = UpdateOrganizationRequestSchema.safeParse(body);
|
|
@@ -24728,7 +24731,7 @@ const handler$55 = async (c) => {
|
|
|
24728
24731
|
};
|
|
24729
24732
|
//#endregion
|
|
24730
24733
|
//#region src/routes/account/organizations/[organizationId]/branding/GET.ts
|
|
24731
|
-
const handler$
|
|
24734
|
+
const handler$55 = async (c) => {
|
|
24732
24735
|
const { organizationId } = c.get("organization");
|
|
24733
24736
|
const organization = await selectOrganizationById(organizationId);
|
|
24734
24737
|
if (!organization) return c.json(ErrorResponseSchema.parse({ error: "Organization not found" }), 404);
|
|
@@ -24777,7 +24780,7 @@ async function finalizeOrgLogoVariant(input) {
|
|
|
24777
24780
|
publicUrl: finalized.publicUrl
|
|
24778
24781
|
};
|
|
24779
24782
|
}
|
|
24780
|
-
const handler$
|
|
24783
|
+
const handler$54 = async (c) => {
|
|
24781
24784
|
const parsed = OrganizationSidebarBrandingPatchSchema.safeParse(await c.req.json().catch(() => null));
|
|
24782
24785
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid branding update" }), 400);
|
|
24783
24786
|
const { organizationId } = c.get("organization");
|
|
@@ -24805,7 +24808,7 @@ const handler$53 = async (c) => {
|
|
|
24805
24808
|
};
|
|
24806
24809
|
//#endregion
|
|
24807
24810
|
//#region src/routes/account/organizations/[organizationId]/branding/logo/presign/POST.ts
|
|
24808
|
-
const handler$
|
|
24811
|
+
const handler$53 = async (c) => {
|
|
24809
24812
|
const parsed = PresignOrgLogoRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
24810
24813
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid logo upload request" }), 400);
|
|
24811
24814
|
const extension = avatarExtensionForContentType(parsed.data.contentType);
|
|
@@ -24896,7 +24899,7 @@ async function attachRanAsToDetail(detail, ranByUserId) {
|
|
|
24896
24899
|
}
|
|
24897
24900
|
//#endregion
|
|
24898
24901
|
//#region src/routes/account/history/GET.ts
|
|
24899
|
-
const handler$
|
|
24902
|
+
const handler$52 = async (c) => {
|
|
24900
24903
|
const organization = c.get("organization");
|
|
24901
24904
|
const ctx = accessContext(c);
|
|
24902
24905
|
const query = HistoryRunListQuerySchema.parse({
|
|
@@ -24919,7 +24922,7 @@ const handler$51 = async (c) => {
|
|
|
24919
24922
|
};
|
|
24920
24923
|
//#endregion
|
|
24921
24924
|
//#region src/routes/account/history/[runId]/GET.ts
|
|
24922
|
-
const handler$
|
|
24925
|
+
const handler$51 = async (c) => {
|
|
24923
24926
|
const runId = c.req.param("runId") ?? "";
|
|
24924
24927
|
if (!runId) return c.json(null, 404);
|
|
24925
24928
|
const core = await findHistoryRunCore(runId);
|
|
@@ -24970,7 +24973,7 @@ function toAgentSummary(row, options) {
|
|
|
24970
24973
|
}
|
|
24971
24974
|
//#endregion
|
|
24972
24975
|
//#region src/routes/account/agents/GET.ts
|
|
24973
|
-
const handler$
|
|
24976
|
+
const handler$50 = async (c) => {
|
|
24974
24977
|
const filter = await resolveListProjectIds(c, listScope(c, agentListScope(accessContext(c))), c.req.query("projectId"));
|
|
24975
24978
|
if (filter === "empty") return c.json(AgentSummaryListResponseSchema.parse([]));
|
|
24976
24979
|
const rows = await listActiveAgents(filter);
|
|
@@ -24984,7 +24987,7 @@ function touchResourceActivityBestEffort(options) {
|
|
|
24984
24987
|
}
|
|
24985
24988
|
//#endregion
|
|
24986
24989
|
//#region src/routes/account/agents/[agentId]/GET.ts
|
|
24987
|
-
const handler$
|
|
24990
|
+
const handler$49 = async (c) => {
|
|
24988
24991
|
const agentId = c.req.param("agentId") ?? "";
|
|
24989
24992
|
const row = agentId ? await selectActiveAgentById(agentId) : void 0;
|
|
24990
24993
|
if (!row || !await canAccessProjectId(c, row.projectId, canAccessAgent)) return c.json(AgentSummaryDetailResponseSchema.parse(null));
|
|
@@ -25019,7 +25022,7 @@ async function cancelHistoryRun(c, kind, cancel) {
|
|
|
25019
25022
|
}
|
|
25020
25023
|
//#endregion
|
|
25021
25024
|
//#region src/routes/account/agents/sessions/[sessionId]/cancel/POST.ts
|
|
25022
|
-
const handler$
|
|
25025
|
+
const handler$48 = (c) => cancelHistoryRun(c, "agent", cancelAgentSession);
|
|
25023
25026
|
//#endregion
|
|
25024
25027
|
//#region src/routes/account/resources/workflows.ts
|
|
25025
25028
|
function toWorkflowSummary(row, options) {
|
|
@@ -25036,7 +25039,7 @@ function toWorkflowSummary(row, options) {
|
|
|
25036
25039
|
}
|
|
25037
25040
|
//#endregion
|
|
25038
25041
|
//#region src/routes/account/workflows/GET.ts
|
|
25039
|
-
const handler$
|
|
25042
|
+
const handler$47 = async (c) => {
|
|
25040
25043
|
const filter = await resolveListProjectIds(c, listScope(c, workflowListScope(accessContext(c))), c.req.query("projectId"));
|
|
25041
25044
|
if (filter === "empty") return c.json(WorkflowSummaryListResponseSchema.parse([]));
|
|
25042
25045
|
const rows = await listActiveWorkflows(filter);
|
|
@@ -25045,7 +25048,7 @@ const handler$46 = async (c) => {
|
|
|
25045
25048
|
};
|
|
25046
25049
|
//#endregion
|
|
25047
25050
|
//#region src/routes/account/workflows/[workflowId]/GET.ts
|
|
25048
|
-
const handler$
|
|
25051
|
+
const handler$46 = async (c) => {
|
|
25049
25052
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
25050
25053
|
const row = workflowId ? await selectActiveWorkflowById(workflowId) : void 0;
|
|
25051
25054
|
if (!row || !await canAccessProjectId(c, row.projectId, canAccessWorkflow)) return c.json(WorkflowSummaryDetailResponseSchema.parse(null));
|
|
@@ -25060,7 +25063,7 @@ const handler$45 = async (c) => {
|
|
|
25060
25063
|
};
|
|
25061
25064
|
//#endregion
|
|
25062
25065
|
//#region src/routes/account/workflows/runs/[runId]/cancel/POST.ts
|
|
25063
|
-
const handler$
|
|
25066
|
+
const handler$45 = (c) => cancelHistoryRun(c, "workflow", cancelWorkflowRun);
|
|
25064
25067
|
//#endregion
|
|
25065
25068
|
//#region src/routes/account/resources/skills.ts
|
|
25066
25069
|
function toSkillSummary(row) {
|
|
@@ -25076,7 +25079,7 @@ function toSkillSummary(row) {
|
|
|
25076
25079
|
}
|
|
25077
25080
|
//#endregion
|
|
25078
25081
|
//#region src/routes/account/skills/GET.ts
|
|
25079
|
-
const handler$
|
|
25082
|
+
const handler$44 = async (c) => {
|
|
25080
25083
|
const filter = await resolveListProjectIds(c, listScope(c, skillListScope(accessContext(c))), c.req.query("projectId"));
|
|
25081
25084
|
if (filter === "empty") return c.json(SkillSummaryListResponseSchema.parse([]));
|
|
25082
25085
|
const rows = await listActiveSkills(filter);
|
|
@@ -25084,7 +25087,7 @@ const handler$43 = async (c) => {
|
|
|
25084
25087
|
};
|
|
25085
25088
|
//#endregion
|
|
25086
25089
|
//#region src/routes/account/skills/[skillId]/GET.ts
|
|
25087
|
-
const handler$
|
|
25090
|
+
const handler$43 = async (c) => {
|
|
25088
25091
|
const skillId = c.req.param("skillId") ?? "";
|
|
25089
25092
|
const row = skillId ? await selectActiveSkillById(skillId) : void 0;
|
|
25090
25093
|
if (!row || !await canAccessProjectId(c, row.projectId, canAccessSkill)) return c.json(SkillSummaryDetailResponseSchema.parse(null));
|
|
@@ -25131,7 +25134,7 @@ function latestRecentInteractionAt(recent) {
|
|
|
25131
25134
|
//#endregion
|
|
25132
25135
|
//#region src/routes/account/recents/GET.ts
|
|
25133
25136
|
const RECENTS_LIMIT = 50;
|
|
25134
|
-
const handler$
|
|
25137
|
+
const handler$42 = async (c) => {
|
|
25135
25138
|
const userId = c.get("user").id;
|
|
25136
25139
|
const organization = c.get("organization");
|
|
25137
25140
|
const grantedProjectIdsList = await grantedProjectIds(c, { kind: "member-only" });
|
|
@@ -25157,7 +25160,7 @@ const handler$41 = async (c) => {
|
|
|
25157
25160
|
};
|
|
25158
25161
|
//#endregion
|
|
25159
25162
|
//#region src/routes/account/projects/GET.ts
|
|
25160
|
-
const handler$
|
|
25163
|
+
const handler$41 = async (c) => {
|
|
25161
25164
|
const organization = c.get("organization");
|
|
25162
25165
|
const grantedProjectIdsList = await grantedProjectIds(c, listScope(c, projectListScope(accessContext(c))));
|
|
25163
25166
|
const projects = await selectProjectsByOrganizationId(organization.organizationId, { grantedProjectIds: grantedProjectIdsList });
|
|
@@ -25183,7 +25186,7 @@ function mergeProjectListMetrics(input) {
|
|
|
25183
25186
|
}
|
|
25184
25187
|
//#endregion
|
|
25185
25188
|
//#region src/routes/account/projects/metrics/GET.ts
|
|
25186
|
-
const handler$
|
|
25189
|
+
const handler$40 = async (c) => {
|
|
25187
25190
|
const organization = c.get("organization");
|
|
25188
25191
|
const grantedProjectIdsList = await grantedProjectIds(c, listScope(c, projectListScope(accessContext(c))));
|
|
25189
25192
|
const [resourceCounts, lastDeploymentAtByProject] = await Promise.all([selectProjectResourceCounts(grantedProjectIdsList !== void 0 ? { projectIds: grantedProjectIdsList } : void 0), selectLastDeploymentAtByProject(organization.organizationId)]);
|
|
@@ -25199,7 +25202,7 @@ const handler$39 = async (c) => {
|
|
|
25199
25202
|
};
|
|
25200
25203
|
//#endregion
|
|
25201
25204
|
//#region src/routes/account/projects/POST.ts
|
|
25202
|
-
const handler$
|
|
25205
|
+
const handler$39 = async (c) => {
|
|
25203
25206
|
const organization = c.get("organization");
|
|
25204
25207
|
const user = c.get("user");
|
|
25205
25208
|
const body = await c.req.json().catch(() => null);
|
|
@@ -25210,7 +25213,7 @@ const handler$38 = async (c) => {
|
|
|
25210
25213
|
};
|
|
25211
25214
|
//#endregion
|
|
25212
25215
|
//#region src/routes/account/projects/slug-available/GET.ts
|
|
25213
|
-
const handler$
|
|
25216
|
+
const handler$38 = async (c) => {
|
|
25214
25217
|
const organization = c.get("organization");
|
|
25215
25218
|
const parsed = ProjectSlugAvailabilityQuerySchema.safeParse({
|
|
25216
25219
|
slug: c.req.query("slug"),
|
|
@@ -25222,12 +25225,12 @@ const handler$37 = async (c) => {
|
|
|
25222
25225
|
};
|
|
25223
25226
|
//#endregion
|
|
25224
25227
|
//#region src/routes/account/projects/[projectId]/GET.ts
|
|
25225
|
-
const handler$
|
|
25228
|
+
const handler$37 = async (c) => {
|
|
25226
25229
|
return c.json(ProjectResponseSchema.parse(routeProject(c.get("project"))));
|
|
25227
25230
|
};
|
|
25228
25231
|
//#endregion
|
|
25229
25232
|
//#region src/routes/account/projects/[projectId]/PATCH.ts
|
|
25230
|
-
const handler$
|
|
25233
|
+
const handler$36 = async (c) => {
|
|
25231
25234
|
const organization = c.get("organization");
|
|
25232
25235
|
const project = c.get("project");
|
|
25233
25236
|
const body = await c.req.json().catch(() => null);
|
|
@@ -25245,7 +25248,7 @@ const handler$35 = async (c) => {
|
|
|
25245
25248
|
};
|
|
25246
25249
|
//#endregion
|
|
25247
25250
|
//#region src/routes/account/projects/[projectId]/DELETE.ts
|
|
25248
|
-
const handler$
|
|
25251
|
+
const handler$35 = async (c) => {
|
|
25249
25252
|
const organization = c.get("organization");
|
|
25250
25253
|
const project = c.get("project");
|
|
25251
25254
|
if (!await deleteProjectForOrganization(organization.organizationId, project.id)) return c.json(ErrorResponseSchema.parse({ error: "Project not found" }), 404);
|
|
@@ -25253,7 +25256,7 @@ const handler$34 = async (c) => {
|
|
|
25253
25256
|
};
|
|
25254
25257
|
//#endregion
|
|
25255
25258
|
//#region src/routes/account/projects/[projectId]/deployments/GET.ts
|
|
25256
|
-
const handler$
|
|
25259
|
+
const handler$34 = async (c) => {
|
|
25257
25260
|
const rows = await selectProjectDeployments(c.get("project").id);
|
|
25258
25261
|
return c.json(ListProjectDeploymentsResponseSchema.parse(rows.map(mapProjectDeployment)));
|
|
25259
25262
|
};
|
|
@@ -25261,7 +25264,7 @@ const handler$33 = async (c) => {
|
|
|
25261
25264
|
//#region src/routes/account/projects/[projectId]/artifacts/POST.ts
|
|
25262
25265
|
const DEFAULT_PRESIGN_TTL_SECONDS$1 = 900;
|
|
25263
25266
|
const ARTIFACT_CONTENT_TYPE = "application/gzip";
|
|
25264
|
-
const handler$
|
|
25267
|
+
const handler$33 = async (c) => {
|
|
25265
25268
|
const project = c.get("project");
|
|
25266
25269
|
const { organizationId } = c.get("organization");
|
|
25267
25270
|
const organization = await selectOrganizationById(organizationId);
|
|
@@ -25289,7 +25292,7 @@ const handler$32 = async (c) => {
|
|
|
25289
25292
|
//#endregion
|
|
25290
25293
|
//#region src/routes/account/projects/[projectId]/artifacts/active/download/GET.ts
|
|
25291
25294
|
const DEFAULT_PRESIGN_TTL_SECONDS = 900;
|
|
25292
|
-
const handler$
|
|
25295
|
+
const handler$32 = async (c) => {
|
|
25293
25296
|
const project = c.get("project");
|
|
25294
25297
|
const { organizationId } = c.get("organization");
|
|
25295
25298
|
const organization = await selectOrganizationById(organizationId);
|
|
@@ -25308,7 +25311,7 @@ const handler$31 = async (c) => {
|
|
|
25308
25311
|
};
|
|
25309
25312
|
//#endregion
|
|
25310
25313
|
//#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/complete/POST.ts
|
|
25311
|
-
const handler$
|
|
25314
|
+
const handler$31 = async (c) => {
|
|
25312
25315
|
const project = c.get("project");
|
|
25313
25316
|
const artifactId = c.req.param("artifactId");
|
|
25314
25317
|
if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
|
|
@@ -25347,7 +25350,7 @@ const handler$30 = async (c) => {
|
|
|
25347
25350
|
//#endregion
|
|
25348
25351
|
//#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/source/presign/POST.ts
|
|
25349
25352
|
const SOURCE_BLOB_CONTENT_TYPE = "text/plain; charset=utf-8";
|
|
25350
|
-
const handler$
|
|
25353
|
+
const handler$30 = async (c) => {
|
|
25351
25354
|
const project = c.get("project");
|
|
25352
25355
|
const artifactId = c.req.param("artifactId");
|
|
25353
25356
|
if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
|
|
@@ -25375,7 +25378,7 @@ const handler$29 = async (c) => {
|
|
|
25375
25378
|
};
|
|
25376
25379
|
//#endregion
|
|
25377
25380
|
//#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/source/manifest/POST.ts
|
|
25378
|
-
const handler$
|
|
25381
|
+
const handler$29 = async (c) => {
|
|
25379
25382
|
const project = c.get("project");
|
|
25380
25383
|
const artifactId = c.req.param("artifactId");
|
|
25381
25384
|
if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
|
|
@@ -25420,7 +25423,7 @@ function resolveSourcePaths(rows, kindDir, filePaths) {
|
|
|
25420
25423
|
}] : [];
|
|
25421
25424
|
});
|
|
25422
25425
|
}
|
|
25423
|
-
const handler$
|
|
25426
|
+
const handler$28 = async (c) => {
|
|
25424
25427
|
const project = c.get("project");
|
|
25425
25428
|
const active = await selectActiveArtifactSourceManifestForProject(project.id);
|
|
25426
25429
|
if (!active || !active.sourceManifestJson) return c.json(ListProjectFilesResponseSchema.parse({
|
|
@@ -25454,7 +25457,7 @@ const handler$27 = async (c) => {
|
|
|
25454
25457
|
};
|
|
25455
25458
|
//#endregion
|
|
25456
25459
|
//#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/files/content/GET.ts
|
|
25457
|
-
const handler$
|
|
25460
|
+
const handler$27 = async (c) => {
|
|
25458
25461
|
const project = c.get("project");
|
|
25459
25462
|
const artifactId = c.req.param("artifactId");
|
|
25460
25463
|
if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
|
|
@@ -25493,7 +25496,7 @@ function createProjectReachabilityHandler(hosting) {
|
|
|
25493
25496
|
}
|
|
25494
25497
|
//#endregion
|
|
25495
25498
|
//#region src/routes/account/projects/[projectId]/members/GET.ts
|
|
25496
|
-
const handler$
|
|
25499
|
+
const handler$26 = async (c) => {
|
|
25497
25500
|
const project = c.get("project");
|
|
25498
25501
|
const currentUserId = c.get("user").id;
|
|
25499
25502
|
const members = await selectProjectMembers(project.id);
|
|
@@ -25501,7 +25504,7 @@ const handler$25 = async (c) => {
|
|
|
25501
25504
|
};
|
|
25502
25505
|
//#endregion
|
|
25503
25506
|
//#region src/routes/account/projects/[projectId]/members/POST.ts
|
|
25504
|
-
const handler$
|
|
25507
|
+
const handler$25 = async (c) => {
|
|
25505
25508
|
const organization = c.get("organization");
|
|
25506
25509
|
const project = c.get("project");
|
|
25507
25510
|
const body = await c.req.json().catch(() => null);
|
|
@@ -25517,7 +25520,7 @@ const handler$24 = async (c) => {
|
|
|
25517
25520
|
};
|
|
25518
25521
|
//#endregion
|
|
25519
25522
|
//#region src/routes/account/projects/[projectId]/members/[userId]/PATCH.ts
|
|
25520
|
-
const handler$
|
|
25523
|
+
const handler$24 = async (c) => {
|
|
25521
25524
|
const project = c.get("project");
|
|
25522
25525
|
const userId = c.req.param("userId");
|
|
25523
25526
|
const body = await c.req.json().catch(() => null);
|
|
@@ -25534,7 +25537,7 @@ const handler$23 = async (c) => {
|
|
|
25534
25537
|
};
|
|
25535
25538
|
//#endregion
|
|
25536
25539
|
//#region src/routes/account/projects/[projectId]/members/[userId]/DELETE.ts
|
|
25537
|
-
const handler$
|
|
25540
|
+
const handler$23 = async (c) => {
|
|
25538
25541
|
const project = c.get("project");
|
|
25539
25542
|
const userId = c.req.param("userId");
|
|
25540
25543
|
if (!userId) return c.json(ErrorResponseSchema.parse({ error: "User id is required" }), 400);
|
|
@@ -25548,7 +25551,7 @@ const handler$22 = async (c) => {
|
|
|
25548
25551
|
};
|
|
25549
25552
|
//#endregion
|
|
25550
25553
|
//#region src/routes/account/projects/[projectId]/members/me/DELETE.ts
|
|
25551
|
-
const handler$
|
|
25554
|
+
const handler$22 = async (c) => {
|
|
25552
25555
|
const project = c.get("project");
|
|
25553
25556
|
const userId = c.get("user").id;
|
|
25554
25557
|
try {
|
|
@@ -25561,13 +25564,13 @@ const handler$21 = async (c) => {
|
|
|
25561
25564
|
};
|
|
25562
25565
|
//#endregion
|
|
25563
25566
|
//#region src/routes/account/projects/[projectId]/settings/GET.ts
|
|
25564
|
-
const handler$
|
|
25567
|
+
const handler$21 = async (c) => {
|
|
25565
25568
|
const project = c.get("project");
|
|
25566
25569
|
return c.json(ProjectSettingsResponseSchema.parse(mapProjectSettings(project)));
|
|
25567
25570
|
};
|
|
25568
25571
|
//#endregion
|
|
25569
25572
|
//#region src/routes/account/projects/[projectId]/settings/PATCH.ts
|
|
25570
|
-
const handler$
|
|
25573
|
+
const handler$20 = async (c) => {
|
|
25571
25574
|
const organization = c.get("organization");
|
|
25572
25575
|
const project = c.get("project");
|
|
25573
25576
|
const body = await c.req.json().catch(() => null);
|
|
@@ -25693,7 +25696,7 @@ async function enrichCredentialInstances(rows, organizationId) {
|
|
|
25693
25696
|
}
|
|
25694
25697
|
//#endregion
|
|
25695
25698
|
//#region src/routes/account/credentials/GET.ts
|
|
25696
|
-
const handler$
|
|
25699
|
+
const handler$19 = async (c) => {
|
|
25697
25700
|
const organization = c.get("organization");
|
|
25698
25701
|
const credentials = await enrichCredentialInstances(await listAllCredentialInstances(), organization.organizationId);
|
|
25699
25702
|
return c.json(ListCredentialsResponseSchema.parse(credentials));
|
|
@@ -25704,7 +25707,7 @@ function withTargetScope(target, fn) {
|
|
|
25704
25707
|
if (target.projectScope) return runWithProjectScope(target.projectScope, fn);
|
|
25705
25708
|
return fn();
|
|
25706
25709
|
}
|
|
25707
|
-
const handler$
|
|
25710
|
+
const handler$18 = async (c) => {
|
|
25708
25711
|
const organization = c.get("organization");
|
|
25709
25712
|
const user = c.get("user");
|
|
25710
25713
|
const parsed = CreateCredentialsRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
@@ -25785,7 +25788,7 @@ const handler$17 = async (c) => {
|
|
|
25785
25788
|
};
|
|
25786
25789
|
//#endregion
|
|
25787
25790
|
//#region src/routes/account/credentials/[credentialId]/GET.ts
|
|
25788
|
-
const handler$
|
|
25791
|
+
const handler$17 = async (c) => {
|
|
25789
25792
|
const organization = c.get("organization");
|
|
25790
25793
|
const credentialId = c.req.param("credentialId") ?? "";
|
|
25791
25794
|
const row = credentialId ? await selectCredentialInstanceById(credentialId) : void 0;
|
|
@@ -25795,7 +25798,7 @@ const handler$16 = async (c) => {
|
|
|
25795
25798
|
};
|
|
25796
25799
|
//#endregion
|
|
25797
25800
|
//#region src/routes/account/credentials/[credentialId]/PATCH.ts
|
|
25798
|
-
const handler$
|
|
25801
|
+
const handler$16 = async (c) => {
|
|
25799
25802
|
const organization = c.get("organization");
|
|
25800
25803
|
const user = c.get("user");
|
|
25801
25804
|
const credentialId = c.req.param("credentialId") ?? "";
|
|
@@ -25877,7 +25880,7 @@ function createDeleteCredentialHandler(options = {}) {
|
|
|
25877
25880
|
}
|
|
25878
25881
|
//#endregion
|
|
25879
25882
|
//#region src/routes/account/members/GET.ts
|
|
25880
|
-
const handler$
|
|
25883
|
+
const handler$15 = async (c) => {
|
|
25881
25884
|
const { organizationId } = c.get("organization");
|
|
25882
25885
|
const members = await selectOrganizationMembers(organizationId);
|
|
25883
25886
|
return c.json(ListOrganizationMembersResponseSchema.parse(members.map(mapOrganizationMember)));
|
|
@@ -25925,7 +25928,7 @@ async function sendOrganizationInviteEmail(payload, resend) {
|
|
|
25925
25928
|
}
|
|
25926
25929
|
//#endregion
|
|
25927
25930
|
//#region src/routes/account/members/invitations/POST.ts
|
|
25928
|
-
const handler$
|
|
25931
|
+
const handler$14 = async (c) => {
|
|
25929
25932
|
const user = c.get("user");
|
|
25930
25933
|
const organization = c.get("organization");
|
|
25931
25934
|
const body = await c.req.json().catch(() => null);
|
|
@@ -25951,7 +25954,7 @@ const handler$13 = async (c) => {
|
|
|
25951
25954
|
};
|
|
25952
25955
|
//#endregion
|
|
25953
25956
|
//#region src/routes/account/members/[userId]/PATCH.ts
|
|
25954
|
-
const handler$
|
|
25957
|
+
const handler$13 = async (c) => {
|
|
25955
25958
|
const { organizationId } = c.get("organization");
|
|
25956
25959
|
const userId = c.req.param("userId");
|
|
25957
25960
|
const body = await c.req.json().catch(() => null);
|
|
@@ -25968,7 +25971,7 @@ const handler$12 = async (c) => {
|
|
|
25968
25971
|
};
|
|
25969
25972
|
//#endregion
|
|
25970
25973
|
//#region src/routes/account/members/[userId]/DELETE.ts
|
|
25971
|
-
const handler$
|
|
25974
|
+
const handler$12 = async (c) => {
|
|
25972
25975
|
const { organizationId } = c.get("organization");
|
|
25973
25976
|
const userId = c.req.param("userId");
|
|
25974
25977
|
if (!userId) return c.json(ErrorResponseSchema.parse({ error: "User id is required" }), 400);
|
|
@@ -25982,13 +25985,13 @@ const handler$11 = async (c) => {
|
|
|
25982
25985
|
};
|
|
25983
25986
|
//#endregion
|
|
25984
25987
|
//#region src/routes/account/invitations/GET.ts
|
|
25985
|
-
const handler$
|
|
25988
|
+
const handler$11 = async (c) => {
|
|
25986
25989
|
const invitations = await selectPendingInvitationsForUser(c.get("user").id);
|
|
25987
25990
|
return c.json(ListOrganizationInvitationsResponseSchema.parse(invitations.map(mapOrganizationInvitation)));
|
|
25988
25991
|
};
|
|
25989
25992
|
//#endregion
|
|
25990
25993
|
//#region src/routes/account/invitations/[invitationId]/accept/POST.ts
|
|
25991
|
-
const handler$
|
|
25994
|
+
const handler$10 = async (c) => {
|
|
25992
25995
|
const user = c.get("user");
|
|
25993
25996
|
const invitationId = c.req.param("invitationId");
|
|
25994
25997
|
if (!invitationId) return c.json(ErrorResponseSchema.parse({ error: "Invitation id is required" }), 400);
|
|
@@ -26004,7 +26007,7 @@ const handler$9 = async (c) => {
|
|
|
26004
26007
|
};
|
|
26005
26008
|
//#endregion
|
|
26006
26009
|
//#region src/routes/account/invitations/[invitationId]/decline/POST.ts
|
|
26007
|
-
const handler$
|
|
26010
|
+
const handler$9 = async (c) => {
|
|
26008
26011
|
const user = c.get("user");
|
|
26009
26012
|
const invitationId = c.req.param("invitationId");
|
|
26010
26013
|
if (!invitationId) return c.json(ErrorResponseSchema.parse({ error: "Invitation id is required" }), 400);
|
|
@@ -26019,8 +26022,34 @@ const handler$8 = async (c) => {
|
|
|
26019
26022
|
};
|
|
26020
26023
|
//#endregion
|
|
26021
26024
|
//#region src/routes/account/apps/map-catalog.ts
|
|
26025
|
+
/** Gateway metadata not stored on registry rows yet — keyed by official app slug. */
|
|
26026
|
+
const GATEWAY_BY_APP_SLUG = { slack: {
|
|
26027
|
+
connectAppId: "slackbot",
|
|
26028
|
+
capabilities: {
|
|
26029
|
+
mentions: true,
|
|
26030
|
+
reactions: "full",
|
|
26031
|
+
cards: "full",
|
|
26032
|
+
modals: true,
|
|
26033
|
+
streaming: "native",
|
|
26034
|
+
dms: true
|
|
26035
|
+
},
|
|
26036
|
+
supportedModes: [
|
|
26037
|
+
"mention",
|
|
26038
|
+
"all",
|
|
26039
|
+
"dm"
|
|
26040
|
+
],
|
|
26041
|
+
resourceNoun: {
|
|
26042
|
+
singular: "channel",
|
|
26043
|
+
plural: "channels"
|
|
26044
|
+
},
|
|
26045
|
+
supportsChannelDirectory: true,
|
|
26046
|
+
webhookPathHint: "/gateways/slack",
|
|
26047
|
+
docsUrl: "https://chat-sdk.dev/adapters/official/slack",
|
|
26048
|
+
tagline: "Respond in channels, threads, and DMs."
|
|
26049
|
+
} };
|
|
26022
26050
|
/** Map a platform `apps` row to the connect-picker wire shape. */
|
|
26023
26051
|
function appRowToCatalogEntry(row) {
|
|
26052
|
+
const gateway = GATEWAY_BY_APP_SLUG[row.slug];
|
|
26024
26053
|
return {
|
|
26025
26054
|
id: row.slug,
|
|
26026
26055
|
name: row.name,
|
|
@@ -26031,6 +26060,7 @@ function appRowToCatalogEntry(row) {
|
|
|
26031
26060
|
authKind: row.authKind,
|
|
26032
26061
|
oauthScopes: row.oauthScopes,
|
|
26033
26062
|
source: row.source,
|
|
26063
|
+
...gateway ? { gateway } : {},
|
|
26034
26064
|
...hasCredentialFieldTemplate(row) ? { credentialFields: row.credentialFields } : {}
|
|
26035
26065
|
};
|
|
26036
26066
|
}
|
|
@@ -26052,13 +26082,13 @@ function appRowToCustomAppDetail(row) {
|
|
|
26052
26082
|
}
|
|
26053
26083
|
//#endregion
|
|
26054
26084
|
//#region src/routes/account/apps/GET.ts
|
|
26055
|
-
const handler$
|
|
26085
|
+
const handler$8 = async (c) => {
|
|
26056
26086
|
const apps = (await listAppsForOrganization(c.get("organization").organizationId)).map(appRowToCatalogEntry);
|
|
26057
26087
|
return c.json(ListAppsResponseSchema.parse(apps));
|
|
26058
26088
|
};
|
|
26059
26089
|
//#endregion
|
|
26060
26090
|
//#region src/routes/account/apps/POST.ts
|
|
26061
|
-
const handler$
|
|
26091
|
+
const handler$7 = async (c) => {
|
|
26062
26092
|
const organization = c.get("organization");
|
|
26063
26093
|
const parsed = CreateCustomAppRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
26064
26094
|
if (!parsed.success) {
|
|
@@ -26084,7 +26114,7 @@ const handler$6 = async (c) => {
|
|
|
26084
26114
|
};
|
|
26085
26115
|
//#endregion
|
|
26086
26116
|
//#region src/routes/account/apps/slug-available/GET.ts
|
|
26087
|
-
const handler$
|
|
26117
|
+
const handler$6 = async (c) => {
|
|
26088
26118
|
const organization = c.get("organization");
|
|
26089
26119
|
const parsed = AppSlugAvailabilityQuerySchema.safeParse({ slug: c.req.query("slug") });
|
|
26090
26120
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid slug query" }), 400);
|
|
@@ -26095,7 +26125,7 @@ const handler$5 = async (c) => {
|
|
|
26095
26125
|
};
|
|
26096
26126
|
//#endregion
|
|
26097
26127
|
//#region src/routes/account/apps/[slug]/GET.ts
|
|
26098
|
-
const handler$
|
|
26128
|
+
const handler$5 = async (c) => {
|
|
26099
26129
|
const organization = c.get("organization");
|
|
26100
26130
|
const slug = c.req.param("slug") ?? "";
|
|
26101
26131
|
if (!slug) return c.json(ErrorResponseSchema.parse({ error: "App not found" }), 404);
|
|
@@ -26109,7 +26139,7 @@ const handler$4 = async (c) => {
|
|
|
26109
26139
|
};
|
|
26110
26140
|
//#endregion
|
|
26111
26141
|
//#region src/routes/account/api-keys/GET.ts
|
|
26112
|
-
const handler$
|
|
26142
|
+
const handler$4 = async (c) => {
|
|
26113
26143
|
const { organizationId } = c.get("organization");
|
|
26114
26144
|
const user = c.get("user");
|
|
26115
26145
|
const records = apiKeyListScope(accessContext(c)).kind === "all" ? await listOrgPlatformApiKeysForOrganization(organizationId) : await listOrgPlatformApiKeysForUser(organizationId, user.id);
|
|
@@ -26126,7 +26156,7 @@ const handler$3 = async (c) => {
|
|
|
26126
26156
|
};
|
|
26127
26157
|
//#endregion
|
|
26128
26158
|
//#region src/routes/account/api-keys/POST.ts
|
|
26129
|
-
const handler$
|
|
26159
|
+
const handler$3 = async (c) => {
|
|
26130
26160
|
const { organizationId } = c.get("organization");
|
|
26131
26161
|
const user = c.get("user");
|
|
26132
26162
|
const body = CreateApiKeyRequestSchema.parse(await c.req.json());
|
|
@@ -26149,7 +26179,7 @@ const handler$2 = async (c) => {
|
|
|
26149
26179
|
};
|
|
26150
26180
|
//#endregion
|
|
26151
26181
|
//#region src/routes/account/api-keys/[apiKeyId]/DELETE.ts
|
|
26152
|
-
const handler$
|
|
26182
|
+
const handler$2 = async (c) => {
|
|
26153
26183
|
const { organizationId } = c.get("organization");
|
|
26154
26184
|
const user = c.get("user");
|
|
26155
26185
|
const apiKeyId = c.req.param("apiKeyId");
|
|
@@ -26226,12 +26256,14 @@ function buildTeamRequestSlackPayload(input) {
|
|
|
26226
26256
|
};
|
|
26227
26257
|
}
|
|
26228
26258
|
async function postTeamRequestToSlack(input) {
|
|
26259
|
+
await postSlackWebhookPayload(buildTeamRequestSlackPayload(input));
|
|
26260
|
+
}
|
|
26261
|
+
async function postSlackWebhookPayload(payload) {
|
|
26229
26262
|
const webhookUrl = process.env.TEAM_SLACK_WEBHOOK_URL?.trim();
|
|
26230
26263
|
if (!webhookUrl) {
|
|
26231
26264
|
console.warn("TEAM_SLACK_WEBHOOK_URL is not set; skipping team request Slack delivery");
|
|
26232
26265
|
return;
|
|
26233
26266
|
}
|
|
26234
|
-
const payload = buildTeamRequestSlackPayload(input);
|
|
26235
26267
|
const response = await fetch(webhookUrl, {
|
|
26236
26268
|
method: "POST",
|
|
26237
26269
|
headers: { "Content-Type": "application/json" },
|
|
@@ -26244,7 +26276,7 @@ async function postTeamRequestToSlack(input) {
|
|
|
26244
26276
|
}
|
|
26245
26277
|
//#endregion
|
|
26246
26278
|
//#region src/routes/account/team-requests/POST.ts
|
|
26247
|
-
const handler = async (c) => {
|
|
26279
|
+
const handler$1 = async (c) => {
|
|
26248
26280
|
const user = c.get("user");
|
|
26249
26281
|
const organizationContext = c.get("organization");
|
|
26250
26282
|
const parsed = SubmitTeamRequestRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
@@ -26302,74 +26334,74 @@ function mountAccountRoutes(options) {
|
|
|
26302
26334
|
const requireProjectManageMembers = authorize(projectActions.manageMembers);
|
|
26303
26335
|
const requireInvitableProjectRole = authorizePayload(InviteProjectMembersRequestSchema, ({ c, ctx, body }) => canInviteToProject(ctx, { invitePermission: getProjectInvitePermission(c) }, body.role));
|
|
26304
26336
|
const requireOrgParam = requireOrganizationParam();
|
|
26305
|
-
account.get("/organizations", handler$
|
|
26306
|
-
account.get("/organizations/slug-available", handler$
|
|
26337
|
+
account.get("/organizations", handler$59);
|
|
26338
|
+
account.get("/organizations/slug-available", handler$58);
|
|
26307
26339
|
account.post("/organizations", createOrganizationHandler(options));
|
|
26308
|
-
account.get("/organizations/:organizationId", requireOrgParam, handler$
|
|
26309
|
-
account.patch("/organizations/:organizationId", requireOrgParam, requireOrgUpdate, handler$
|
|
26310
|
-
account.get("/organizations/:organizationId/branding", requireOrgParam, handler$
|
|
26311
|
-
account.patch("/organizations/:organizationId/branding", requireOrgParam, requireOrgUpdate, handler$
|
|
26312
|
-
account.post("/organizations/:organizationId/branding/logo/presign", requireOrgParam, requireOrgUpdate, handler$
|
|
26313
|
-
account.get("/invitations", handler$
|
|
26314
|
-
account.post("/invitations/:invitationId/accept", handler$
|
|
26315
|
-
account.post("/invitations/:invitationId/decline", handler$
|
|
26316
|
-
account.get("/users/me/avatar", handler$
|
|
26317
|
-
account.post("/users/me/avatar/presign", handler$
|
|
26318
|
-
account.patch("/users/me/avatar", handler$
|
|
26319
|
-
account.get("/users/me/preferences", handler$
|
|
26320
|
-
account.patch("/users/me/preferences", handler$
|
|
26321
|
-
orgScoped.get("/apps", handler$
|
|
26322
|
-
orgScoped.get("/apps/slug-available", handler$
|
|
26323
|
-
orgScoped.post("/apps", requireOrgUpdate, handler$
|
|
26324
|
-
orgScoped.get("/apps/:slug", handler$
|
|
26325
|
-
account.post("/team-requests", requireOrganization(), handler);
|
|
26326
|
-
orgScoped.get("/members", handler$
|
|
26327
|
-
orgScoped.post("/members/invitations", requireUserInvite, requireInvitableRole, handler$
|
|
26328
|
-
orgScoped.patch("/members/:userId", requireUserManage, handler$
|
|
26329
|
-
orgScoped.delete("/members/:userId", requireUserManage, handler$
|
|
26330
|
-
orgScoped.get("/api-keys", handler$
|
|
26331
|
-
orgScoped.post("/api-keys", requireApiKeyCreate, handler$
|
|
26332
|
-
orgScoped.delete("/api-keys/:apiKeyId", handler$
|
|
26340
|
+
account.get("/organizations/:organizationId", requireOrgParam, handler$57);
|
|
26341
|
+
account.patch("/organizations/:organizationId", requireOrgParam, requireOrgUpdate, handler$56);
|
|
26342
|
+
account.get("/organizations/:organizationId/branding", requireOrgParam, handler$55);
|
|
26343
|
+
account.patch("/organizations/:organizationId/branding", requireOrgParam, requireOrgUpdate, handler$54);
|
|
26344
|
+
account.post("/organizations/:organizationId/branding/logo/presign", requireOrgParam, requireOrgUpdate, handler$53);
|
|
26345
|
+
account.get("/invitations", handler$11);
|
|
26346
|
+
account.post("/invitations/:invitationId/accept", handler$10);
|
|
26347
|
+
account.post("/invitations/:invitationId/decline", handler$9);
|
|
26348
|
+
account.get("/users/me/avatar", handler$64);
|
|
26349
|
+
account.post("/users/me/avatar/presign", handler$63);
|
|
26350
|
+
account.patch("/users/me/avatar", handler$62);
|
|
26351
|
+
account.get("/users/me/preferences", handler$61);
|
|
26352
|
+
account.patch("/users/me/preferences", handler$60);
|
|
26353
|
+
orgScoped.get("/apps", handler$8);
|
|
26354
|
+
orgScoped.get("/apps/slug-available", handler$6);
|
|
26355
|
+
orgScoped.post("/apps", requireOrgUpdate, handler$7);
|
|
26356
|
+
orgScoped.get("/apps/:slug", handler$5);
|
|
26357
|
+
account.post("/team-requests", requireOrganization(), handler$1);
|
|
26358
|
+
orgScoped.get("/members", handler$15);
|
|
26359
|
+
orgScoped.post("/members/invitations", requireUserInvite, requireInvitableRole, handler$14);
|
|
26360
|
+
orgScoped.patch("/members/:userId", requireUserManage, handler$13);
|
|
26361
|
+
orgScoped.delete("/members/:userId", requireUserManage, handler$12);
|
|
26362
|
+
orgScoped.get("/api-keys", handler$4);
|
|
26363
|
+
orgScoped.post("/api-keys", requireApiKeyCreate, handler$3);
|
|
26364
|
+
orgScoped.delete("/api-keys/:apiKeyId", handler$2);
|
|
26333
26365
|
const withOrgDb = withOrganizationProjectDatabase();
|
|
26334
|
-
orgScoped.get("/agents", withOrgDb, handler$
|
|
26335
|
-
orgScoped.get("/agents/:agentId", withOrgDb, handler$
|
|
26336
|
-
orgScoped.get("/workflows", withOrgDb, handler$
|
|
26337
|
-
orgScoped.get("/workflows/:workflowId", withOrgDb, handler$
|
|
26338
|
-
orgScoped.get("/skills", withOrgDb, handler$
|
|
26339
|
-
orgScoped.get("/skills/:skillId", withOrgDb, handler$
|
|
26340
|
-
orgScoped.get("/recents", withOrgDb, handler$
|
|
26341
|
-
orgScoped.get("/history", withOrgDb, handler$
|
|
26342
|
-
orgScoped.get("/history/:runId", withOrgDb, handler$
|
|
26343
|
-
orgScoped.post("/workflows/runs/:runId/cancel", withOrgDb, handler$
|
|
26344
|
-
orgScoped.post("/agents/sessions/:sessionId/cancel", withOrgDb, handler$
|
|
26345
|
-
orgScoped.get("/credentials", withOrgDb, handler$
|
|
26346
|
-
orgScoped.post("/credentials", withOrgDb, handler$
|
|
26347
|
-
orgScoped.get("/credentials/:credentialId", withOrgDb, (c, next) => c.req.param("credentialId") === "instances" ? next() : handler$
|
|
26348
|
-
orgScoped.patch("/credentials/:credentialId", withOrgDb, handler$
|
|
26366
|
+
orgScoped.get("/agents", withOrgDb, handler$50);
|
|
26367
|
+
orgScoped.get("/agents/:agentId", withOrgDb, handler$49);
|
|
26368
|
+
orgScoped.get("/workflows", withOrgDb, handler$47);
|
|
26369
|
+
orgScoped.get("/workflows/:workflowId", withOrgDb, handler$46);
|
|
26370
|
+
orgScoped.get("/skills", withOrgDb, handler$44);
|
|
26371
|
+
orgScoped.get("/skills/:skillId", withOrgDb, handler$43);
|
|
26372
|
+
orgScoped.get("/recents", withOrgDb, handler$42);
|
|
26373
|
+
orgScoped.get("/history", withOrgDb, handler$52);
|
|
26374
|
+
orgScoped.get("/history/:runId", withOrgDb, handler$51);
|
|
26375
|
+
orgScoped.post("/workflows/runs/:runId/cancel", withOrgDb, handler$45);
|
|
26376
|
+
orgScoped.post("/agents/sessions/:sessionId/cancel", withOrgDb, handler$48);
|
|
26377
|
+
orgScoped.get("/credentials", withOrgDb, handler$19);
|
|
26378
|
+
orgScoped.post("/credentials", withOrgDb, handler$18);
|
|
26379
|
+
orgScoped.get("/credentials/:credentialId", withOrgDb, (c, next) => c.req.param("credentialId") === "instances" ? next() : handler$17(c, next));
|
|
26380
|
+
orgScoped.patch("/credentials/:credentialId", withOrgDb, handler$16);
|
|
26349
26381
|
orgScoped.delete("/credentials/:credentialId", withOrgDb, deleteCredential);
|
|
26350
|
-
orgScoped.get("/projects", handler$
|
|
26351
|
-
orgScoped.get("/projects/slug-available", handler$
|
|
26352
|
-
orgScoped.get("/projects/metrics", withOrgDb, handler$
|
|
26353
|
-
orgScoped.post("/projects", handler$
|
|
26354
|
-
projectScoped.get("/:projectId", requireProject(), requireProjectMember, handler$
|
|
26355
|
-
projectScoped.patch("/:projectId", requireProject(), requireProjectMember, requireProjectUpdate, handler$
|
|
26356
|
-
projectScoped.delete("/:projectId", requireProject(), requireProjectMember, requireProjectDelete, handler$
|
|
26357
|
-
projectScoped.get("/:projectId/settings", requireProject(), requireProjectMember, handler$
|
|
26358
|
-
projectScoped.patch("/:projectId/settings", requireProject(), requireProjectMember, requireProjectUpdate, handler$
|
|
26359
|
-
projectScoped.get("/:projectId/members", requireProject(), requireProjectMember, handler$
|
|
26360
|
-
projectScoped.post("/:projectId/members", requireProject(), requireProjectMember, requireInvitableProjectRole, handler$
|
|
26361
|
-
projectScoped.patch("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$
|
|
26362
|
-
projectScoped.delete("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$
|
|
26363
|
-
projectScoped.delete("/:projectId/members/me", requireProject(), requireProjectMember, handler$
|
|
26382
|
+
orgScoped.get("/projects", handler$41);
|
|
26383
|
+
orgScoped.get("/projects/slug-available", handler$38);
|
|
26384
|
+
orgScoped.get("/projects/metrics", withOrgDb, handler$40);
|
|
26385
|
+
orgScoped.post("/projects", handler$39);
|
|
26386
|
+
projectScoped.get("/:projectId", requireProject(), requireProjectMember, handler$37);
|
|
26387
|
+
projectScoped.patch("/:projectId", requireProject(), requireProjectMember, requireProjectUpdate, handler$36);
|
|
26388
|
+
projectScoped.delete("/:projectId", requireProject(), requireProjectMember, requireProjectDelete, handler$35);
|
|
26389
|
+
projectScoped.get("/:projectId/settings", requireProject(), requireProjectMember, handler$21);
|
|
26390
|
+
projectScoped.patch("/:projectId/settings", requireProject(), requireProjectMember, requireProjectUpdate, handler$20);
|
|
26391
|
+
projectScoped.get("/:projectId/members", requireProject(), requireProjectMember, handler$26);
|
|
26392
|
+
projectScoped.post("/:projectId/members", requireProject(), requireProjectMember, requireInvitableProjectRole, handler$25);
|
|
26393
|
+
projectScoped.patch("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$24);
|
|
26394
|
+
projectScoped.delete("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$23);
|
|
26395
|
+
projectScoped.delete("/:projectId/members/me", requireProject(), requireProjectMember, handler$22);
|
|
26364
26396
|
projectScoped.get("/:projectId/reachability", requireProject(), requireProjectMember, createProjectReachabilityHandler(options.hosting));
|
|
26365
|
-
projectScoped.get("/:projectId/files", requireProject(), requireProjectMember, withOrgDb, handler$
|
|
26366
|
-
projectScoped.get("/:projectId/artifacts/:artifactId/files/content", requireProject(), requireProjectMember, handler$
|
|
26367
|
-
projectScoped.get("/:projectId/deployments", requireProject(), requireProjectMember, handler$
|
|
26368
|
-
projectScoped.get("/:projectId/artifacts/active/download", requireProject(), requireProjectMember, requireProjectDeploy, handler$
|
|
26369
|
-
projectScoped.post("/:projectId/artifacts", requireProject(), requireProjectMember, requireProjectDeploy, handler$
|
|
26370
|
-
projectScoped.post("/:projectId/artifacts/:artifactId/complete", requireProject(), requireProjectMember, requireProjectDeploy, handler$
|
|
26371
|
-
projectScoped.post("/:projectId/artifacts/:artifactId/source/presign", requireProject(), requireProjectMember, requireProjectDeploy, handler$
|
|
26372
|
-
projectScoped.post("/:projectId/artifacts/:artifactId/source/manifest", requireProject(), requireProjectMember, requireProjectDeploy, handler$
|
|
26397
|
+
projectScoped.get("/:projectId/files", requireProject(), requireProjectMember, withOrgDb, handler$28);
|
|
26398
|
+
projectScoped.get("/:projectId/artifacts/:artifactId/files/content", requireProject(), requireProjectMember, handler$27);
|
|
26399
|
+
projectScoped.get("/:projectId/deployments", requireProject(), requireProjectMember, handler$34);
|
|
26400
|
+
projectScoped.get("/:projectId/artifacts/active/download", requireProject(), requireProjectMember, requireProjectDeploy, handler$32);
|
|
26401
|
+
projectScoped.post("/:projectId/artifacts", requireProject(), requireProjectMember, requireProjectDeploy, handler$33);
|
|
26402
|
+
projectScoped.post("/:projectId/artifacts/:artifactId/complete", requireProject(), requireProjectMember, requireProjectDeploy, handler$31);
|
|
26403
|
+
projectScoped.post("/:projectId/artifacts/:artifactId/source/presign", requireProject(), requireProjectMember, requireProjectDeploy, handler$30);
|
|
26404
|
+
projectScoped.post("/:projectId/artifacts/:artifactId/source/manifest", requireProject(), requireProjectMember, requireProjectDeploy, handler$29);
|
|
26373
26405
|
orgScoped.route("/projects", projectScoped);
|
|
26374
26406
|
account.route("/", orgScoped);
|
|
26375
26407
|
return account;
|
|
@@ -26423,49 +26455,12 @@ async function proxyExaWebSearchRequest(options) {
|
|
|
26423
26455
|
});
|
|
26424
26456
|
}
|
|
26425
26457
|
//#endregion
|
|
26426
|
-
//#region src/routes/internal/with-project-scope.ts
|
|
26427
|
-
async function withProjectScope(projectId, fn) {
|
|
26428
|
-
const project = await selectProjectById(projectId);
|
|
26429
|
-
if (!project) return;
|
|
26430
|
-
const organization = await selectOrganizationById(project.organizationId);
|
|
26431
|
-
if (!organization) return;
|
|
26432
|
-
const url = resolveOrgDatabaseUrl(organization);
|
|
26433
|
-
let result;
|
|
26434
|
-
await runWithOrganizationScope(project.organizationId, () => runWithProjectDatabase({
|
|
26435
|
-
url,
|
|
26436
|
-
searchPath: organization.dbSchema
|
|
26437
|
-
}, () => runWithProjectScope(project.id, () => runWithTenantScope(project.organizationId, async () => {
|
|
26438
|
-
result = await fn({
|
|
26439
|
-
organizationId: project.organizationId,
|
|
26440
|
-
projectId: project.id
|
|
26441
|
-
});
|
|
26442
|
-
}))));
|
|
26443
|
-
return result;
|
|
26444
|
-
}
|
|
26445
|
-
//#endregion
|
|
26446
26458
|
//#region src/routes/internal/mount.ts
|
|
26447
26459
|
const EnsureWebhookRouteBodySchema = z.object({
|
|
26448
26460
|
route: z.string().trim().min(1),
|
|
26449
26461
|
attachmentKeys: z.array(z.string().trim().min(1)).min(1)
|
|
26450
26462
|
});
|
|
26451
|
-
|
|
26452
|
-
agentId: z.string().trim().min(1),
|
|
26453
|
-
sessionId: z.string().trim().min(1)
|
|
26454
|
-
});
|
|
26455
|
-
const SandboxExecBodySchema = SandboxSessionBodySchema.extend({
|
|
26456
|
-
script: z.string(),
|
|
26457
|
-
options: z.object({
|
|
26458
|
-
cwd: z.string().optional(),
|
|
26459
|
-
env: z.record(z.string(), z.string()).optional(),
|
|
26460
|
-
stdin: z.string().optional()
|
|
26461
|
-
}).optional()
|
|
26462
|
-
});
|
|
26463
|
-
const SandboxReadBodySchema = SandboxSessionBodySchema.extend({ path: z.string().trim().min(1) });
|
|
26464
|
-
const SandboxWriteBodySchema = SandboxSessionBodySchema.extend({
|
|
26465
|
-
path: z.string().trim().min(1),
|
|
26466
|
-
content: z.string()
|
|
26467
|
-
});
|
|
26468
|
-
function mountInternalRoutes(workerToken, tokenRefresh, llmProxy, sandboxProxy, mcp) {
|
|
26463
|
+
function mountInternalRoutes(workerToken, tokenRefresh, llmProxy, mcp) {
|
|
26469
26464
|
const internal = new Hono();
|
|
26470
26465
|
const protect = requireWorkerToken(workerToken);
|
|
26471
26466
|
const materialize = createCredentialMaterializeHandler(tokenRefresh);
|
|
@@ -26501,85 +26496,6 @@ function mountInternalRoutes(workerToken, tokenRefresh, llmProxy, sandboxProxy,
|
|
|
26501
26496
|
message: "Failed to proxy LLM request."
|
|
26502
26497
|
}, 500);
|
|
26503
26498
|
});
|
|
26504
|
-
if (sandboxProxy) {
|
|
26505
|
-
internal.post("/projects/:projectId/sandbox/create", async (c) => {
|
|
26506
|
-
const projectId = c.req.param("projectId");
|
|
26507
|
-
const parsed = SandboxSessionBodySchema.safeParse(await c.req.json().catch(() => null));
|
|
26508
|
-
if (!parsed.success) return c.json({
|
|
26509
|
-
error: "Invalid request body",
|
|
26510
|
-
details: parsed.error.flatten()
|
|
26511
|
-
}, 400);
|
|
26512
|
-
const result = await withProjectScope(projectId, async (ctx) => sandboxProxy.create({
|
|
26513
|
-
...ctx,
|
|
26514
|
-
...parsed.data
|
|
26515
|
-
}));
|
|
26516
|
-
if (result === void 0) return c.json({ error: "Project not found" }, 404);
|
|
26517
|
-
return c.json(result);
|
|
26518
|
-
});
|
|
26519
|
-
internal.post("/projects/:projectId/sandbox/exec", async (c) => {
|
|
26520
|
-
const projectId = c.req.param("projectId");
|
|
26521
|
-
const parsed = SandboxExecBodySchema.safeParse(await c.req.json().catch(() => null));
|
|
26522
|
-
if (!parsed.success) return c.json({
|
|
26523
|
-
error: "Invalid request body",
|
|
26524
|
-
details: parsed.error.flatten()
|
|
26525
|
-
}, 400);
|
|
26526
|
-
const { script, options, ...session } = parsed.data;
|
|
26527
|
-
const result = await withProjectScope(projectId, async (ctx) => sandboxProxy.exec({
|
|
26528
|
-
...ctx,
|
|
26529
|
-
...session
|
|
26530
|
-
}, script, options));
|
|
26531
|
-
if (result === void 0) return c.json({ error: "Project not found" }, 404);
|
|
26532
|
-
return c.json(result);
|
|
26533
|
-
});
|
|
26534
|
-
internal.post("/projects/:projectId/sandbox/read", async (c) => {
|
|
26535
|
-
const projectId = c.req.param("projectId");
|
|
26536
|
-
const parsed = SandboxReadBodySchema.safeParse(await c.req.json().catch(() => null));
|
|
26537
|
-
if (!parsed.success) return c.json({
|
|
26538
|
-
error: "Invalid request body",
|
|
26539
|
-
details: parsed.error.flatten()
|
|
26540
|
-
}, 400);
|
|
26541
|
-
const { path, ...session } = parsed.data;
|
|
26542
|
-
const content = await withProjectScope(projectId, async (ctx) => sandboxProxy.readFile({
|
|
26543
|
-
...ctx,
|
|
26544
|
-
...session
|
|
26545
|
-
}, path));
|
|
26546
|
-
if (content === void 0) return c.json({ error: "Project not found" }, 404);
|
|
26547
|
-
return c.json({ content });
|
|
26548
|
-
});
|
|
26549
|
-
internal.post("/projects/:projectId/sandbox/write", async (c) => {
|
|
26550
|
-
const projectId = c.req.param("projectId");
|
|
26551
|
-
const parsed = SandboxWriteBodySchema.safeParse(await c.req.json().catch(() => null));
|
|
26552
|
-
if (!parsed.success) return c.json({
|
|
26553
|
-
error: "Invalid request body",
|
|
26554
|
-
details: parsed.error.flatten()
|
|
26555
|
-
}, 400);
|
|
26556
|
-
const { path, content, ...session } = parsed.data;
|
|
26557
|
-
if (await withProjectScope(projectId, async (ctx) => {
|
|
26558
|
-
await sandboxProxy.writeFile({
|
|
26559
|
-
...ctx,
|
|
26560
|
-
...session
|
|
26561
|
-
}, path, content);
|
|
26562
|
-
return true;
|
|
26563
|
-
}) === void 0) return c.json({ error: "Project not found" }, 404);
|
|
26564
|
-
return c.json({});
|
|
26565
|
-
});
|
|
26566
|
-
internal.post("/projects/:projectId/sandbox/dispose", async (c) => {
|
|
26567
|
-
const projectId = c.req.param("projectId");
|
|
26568
|
-
const parsed = SandboxSessionBodySchema.safeParse(await c.req.json().catch(() => null));
|
|
26569
|
-
if (!parsed.success) return c.json({
|
|
26570
|
-
error: "Invalid request body",
|
|
26571
|
-
details: parsed.error.flatten()
|
|
26572
|
-
}, 400);
|
|
26573
|
-
if (await withProjectScope(projectId, async (ctx) => {
|
|
26574
|
-
await sandboxProxy.dispose({
|
|
26575
|
-
...ctx,
|
|
26576
|
-
...parsed.data
|
|
26577
|
-
});
|
|
26578
|
-
return true;
|
|
26579
|
-
}) === void 0) return c.json({ error: "Project not found" }, 404);
|
|
26580
|
-
return c.json({});
|
|
26581
|
-
});
|
|
26582
|
-
}
|
|
26583
26499
|
internal.post("/projects/:projectId/webhooks/ensure", async (c) => {
|
|
26584
26500
|
const projectId = c.req.param("projectId");
|
|
26585
26501
|
if (!await withProjectScope(projectId, async (ctx) => ctx)) return c.json({ error: "Project not found" }, 404);
|
|
@@ -26604,6 +26520,120 @@ function mountInternalRoutes(workerToken, tokenRefresh, llmProxy, sandboxProxy,
|
|
|
26604
26520
|
return internal;
|
|
26605
26521
|
}
|
|
26606
26522
|
//#endregion
|
|
26523
|
+
//#region src/lib/contact-rate-limit.ts
|
|
26524
|
+
const WINDOW_MS = 6e4;
|
|
26525
|
+
const MAX_REQUESTS_PER_WINDOW = 5;
|
|
26526
|
+
const hits = /* @__PURE__ */ new Map();
|
|
26527
|
+
function consumeContactRateLimit(key) {
|
|
26528
|
+
const now = Date.now();
|
|
26529
|
+
const entry = hits.get(key);
|
|
26530
|
+
if (!entry || now >= entry.resetAt) {
|
|
26531
|
+
hits.set(key, {
|
|
26532
|
+
count: 1,
|
|
26533
|
+
resetAt: now + WINDOW_MS
|
|
26534
|
+
});
|
|
26535
|
+
return true;
|
|
26536
|
+
}
|
|
26537
|
+
if (entry.count >= MAX_REQUESTS_PER_WINDOW) return false;
|
|
26538
|
+
entry.count += 1;
|
|
26539
|
+
return true;
|
|
26540
|
+
}
|
|
26541
|
+
//#endregion
|
|
26542
|
+
//#region src/lib/marketing-contact-slack.ts
|
|
26543
|
+
const MARKETING_CONTACT_HEADING = "Contact Team/Sales Request";
|
|
26544
|
+
/**
|
|
26545
|
+
* Escape the three characters Slack treats as control sequences in `mrkdwn`
|
|
26546
|
+
* text. This endpoint is public and unauthenticated, so submitter-controlled
|
|
26547
|
+
* values must not be able to inject links, `@`/`!channel` mentions, or spoofed
|
|
26548
|
+
* fields into the team channel.
|
|
26549
|
+
*
|
|
26550
|
+
* @see https://api.slack.com/reference/surfaces/formatting#escaping
|
|
26551
|
+
*/
|
|
26552
|
+
function escapeSlackText(value) {
|
|
26553
|
+
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
26554
|
+
}
|
|
26555
|
+
function buildMarketingContactSlackPayload(input) {
|
|
26556
|
+
const timestamp = input.timestamp ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
26557
|
+
return {
|
|
26558
|
+
text: `${MARKETING_CONTACT_HEADING} from ${escapeSlackText(input.fullName)} (${escapeSlackText(input.workEmail)})`,
|
|
26559
|
+
blocks: [
|
|
26560
|
+
{
|
|
26561
|
+
type: "header",
|
|
26562
|
+
text: {
|
|
26563
|
+
type: "plain_text",
|
|
26564
|
+
text: MARKETING_CONTACT_HEADING,
|
|
26565
|
+
emoji: true
|
|
26566
|
+
}
|
|
26567
|
+
},
|
|
26568
|
+
{
|
|
26569
|
+
type: "section",
|
|
26570
|
+
fields: [
|
|
26571
|
+
{
|
|
26572
|
+
type: "mrkdwn",
|
|
26573
|
+
text: `*Name:*\n${escapeSlackText(input.fullName)}`
|
|
26574
|
+
},
|
|
26575
|
+
{
|
|
26576
|
+
type: "mrkdwn",
|
|
26577
|
+
text: `*Email:*\n${escapeSlackText(input.workEmail)}`
|
|
26578
|
+
},
|
|
26579
|
+
{
|
|
26580
|
+
type: "mrkdwn",
|
|
26581
|
+
text: `*Company size:*\n${escapeSlackText(input.companySize)}`
|
|
26582
|
+
},
|
|
26583
|
+
{
|
|
26584
|
+
type: "mrkdwn",
|
|
26585
|
+
text: `*Timestamp:*\n${timestamp}`
|
|
26586
|
+
}
|
|
26587
|
+
]
|
|
26588
|
+
},
|
|
26589
|
+
{
|
|
26590
|
+
type: "section",
|
|
26591
|
+
text: {
|
|
26592
|
+
type: "mrkdwn",
|
|
26593
|
+
text: `*Message:*\n${escapeSlackText(input.message.trim())}`
|
|
26594
|
+
}
|
|
26595
|
+
}
|
|
26596
|
+
]
|
|
26597
|
+
};
|
|
26598
|
+
}
|
|
26599
|
+
async function postMarketingContactToSlack(input) {
|
|
26600
|
+
await postSlackWebhookPayload(buildMarketingContactSlackPayload(input));
|
|
26601
|
+
}
|
|
26602
|
+
//#endregion
|
|
26603
|
+
//#region src/routes/public/contact/POST.ts
|
|
26604
|
+
function clientIp(c) {
|
|
26605
|
+
const forwarded = c.req.header("x-forwarded-for")?.split(",")[0]?.trim();
|
|
26606
|
+
if (forwarded) return forwarded;
|
|
26607
|
+
const realIp = c.req.header("x-real-ip")?.trim();
|
|
26608
|
+
if (realIp) return realIp;
|
|
26609
|
+
try {
|
|
26610
|
+
return getConnInfo(c).remote.address ?? "unknown";
|
|
26611
|
+
} catch {
|
|
26612
|
+
return "unknown";
|
|
26613
|
+
}
|
|
26614
|
+
}
|
|
26615
|
+
async function handler(c) {
|
|
26616
|
+
if (!consumeContactRateLimit(clientIp(c))) return c.json({ error: "Too many requests" }, 429);
|
|
26617
|
+
const parsed = SubmitMarketingContactRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
26618
|
+
if (!parsed.success) {
|
|
26619
|
+
const message = parsed.error.issues[0]?.message ?? "Invalid request body";
|
|
26620
|
+
return c.json({ error: message }, 400);
|
|
26621
|
+
}
|
|
26622
|
+
if (parsed.data.companyWebsite?.trim()) return c.json(SubmitMarketingContactResponseSchema.parse({ ok: true }), 200);
|
|
26623
|
+
try {
|
|
26624
|
+
await postMarketingContactToSlack({
|
|
26625
|
+
fullName: parsed.data.fullName,
|
|
26626
|
+
workEmail: parsed.data.workEmail,
|
|
26627
|
+
companySize: parsed.data.companySize,
|
|
26628
|
+
message: parsed.data.message
|
|
26629
|
+
});
|
|
26630
|
+
} catch (error) {
|
|
26631
|
+
console.error("Failed to deliver marketing contact to Slack", error);
|
|
26632
|
+
return c.json({ error: "Failed to deliver contact request" }, 502);
|
|
26633
|
+
}
|
|
26634
|
+
return c.json(SubmitMarketingContactResponseSchema.parse({ ok: true }), 200);
|
|
26635
|
+
}
|
|
26636
|
+
//#endregion
|
|
26607
26637
|
//#region src/app.ts
|
|
26608
26638
|
async function createApp$1(auth, options) {
|
|
26609
26639
|
return createApp({
|
|
@@ -26616,6 +26646,7 @@ async function createApp$1(auth, options) {
|
|
|
26616
26646
|
mountAuth(app, authInstance);
|
|
26617
26647
|
},
|
|
26618
26648
|
mountAccount: async (app) => {
|
|
26649
|
+
app.post("/api/public/contact", handler);
|
|
26619
26650
|
app.route("/api", mountAccountRoutes({
|
|
26620
26651
|
hosting: options.hosting,
|
|
26621
26652
|
storage: options.storage,
|
|
@@ -26623,7 +26654,7 @@ async function createApp$1(auth, options) {
|
|
|
26623
26654
|
}));
|
|
26624
26655
|
},
|
|
26625
26656
|
mountInternal: (app, { tokenRefresh }) => {
|
|
26626
|
-
app.route("/internal", mountInternalRoutes(options.hosting.workerRuntime.workerToken, tokenRefresh, options.llmProxy, options.
|
|
26657
|
+
app.route("/internal", mountInternalRoutes(options.hosting.workerRuntime.workerToken, tokenRefresh, options.llmProxy, options.mcp));
|
|
26627
26658
|
}
|
|
26628
26659
|
});
|
|
26629
26660
|
}
|
|
@@ -26664,10 +26695,6 @@ async function startPlatformServer(platformConfig, hooks = {}) {
|
|
|
26664
26695
|
platformUrl: workerRuntime.platformUrl,
|
|
26665
26696
|
workerToken: workerRuntime.workerToken
|
|
26666
26697
|
}),
|
|
26667
|
-
...platformConfig.sandboxProxy?.workerEnv({
|
|
26668
|
-
platformUrl: workerRuntime.platformUrl,
|
|
26669
|
-
workerToken: workerRuntime.workerToken
|
|
26670
|
-
}),
|
|
26671
26698
|
...platformConfig.workerEnv?.({
|
|
26672
26699
|
platformUrl: workerRuntime.platformUrl,
|
|
26673
26700
|
workerToken: workerRuntime.workerToken
|
|
@@ -26693,7 +26720,6 @@ async function startPlatformServer(platformConfig, hooks = {}) {
|
|
|
26693
26720
|
storage: platformConfig.storage,
|
|
26694
26721
|
scheduler: platformConfig.scheduler,
|
|
26695
26722
|
llmProxy: platformConfig.llmProxy,
|
|
26696
|
-
sandboxProxy: platformConfig.sandboxProxy,
|
|
26697
26723
|
mcp: platformConfig.mcp
|
|
26698
26724
|
});
|
|
26699
26725
|
await hooks.afterCreateApp?.(app);
|
|
@@ -26708,4 +26734,4 @@ async function startPlatformServer(platformConfig, hooks = {}) {
|
|
|
26708
26734
|
//#endregion
|
|
26709
26735
|
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 };
|
|
26710
26736
|
|
|
26711
|
-
//# sourceMappingURL=start-
|
|
26737
|
+
//# sourceMappingURL=start-BEL_4mjy.mjs.map
|