@keystrokehq/platform 0.1.103 → 0.1.105
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/dist/{awk2-LA3USKJP-QJQEwtsE.cjs → awk2-LA3USKJP-Dc9zptsi.cjs} +2 -2
- package/dist/{awk2-LA3USKJP-QJQEwtsE.cjs.map → awk2-LA3USKJP-Dc9zptsi.cjs.map} +1 -1
- package/dist/{awk2-LA3USKJP-D22qN7re.mjs → awk2-LA3USKJP-eBd8EqT_.mjs} +2 -2
- package/dist/{awk2-LA3USKJP-D22qN7re.mjs.map → awk2-LA3USKJP-eBd8EqT_.mjs.map} +1 -1
- package/dist/{base64-C2AIWVNC-BZ355qNl.mjs → base64-C2AIWVNC-C1V3z5lW.mjs} +2 -2
- package/dist/{base64-C2AIWVNC-BZ355qNl.mjs.map → base64-C2AIWVNC-C1V3z5lW.mjs.map} +1 -1
- package/dist/{base64-C2AIWVNC-Bsn2MlQu.cjs → base64-C2AIWVNC-Dz8YTH2w.cjs} +2 -2
- package/dist/{base64-C2AIWVNC-Bsn2MlQu.cjs.map → base64-C2AIWVNC-Dz8YTH2w.cjs.map} +1 -1
- package/dist/{bash-YZ33HQZQ-CnwqBcTu.mjs → bash-YZ33HQZQ-D7uXAHzi.mjs} +2 -2
- package/dist/{bash-YZ33HQZQ-CnwqBcTu.mjs.map → bash-YZ33HQZQ-D7uXAHzi.mjs.map} +1 -1
- package/dist/{bash-YZ33HQZQ-DMr1WrAX.cjs → bash-YZ33HQZQ-DJLKiGiW.cjs} +2 -2
- package/dist/{bash-YZ33HQZQ-DMr1WrAX.cjs.map → bash-YZ33HQZQ-DJLKiGiW.cjs.map} +1 -1
- package/dist/{cat-TSFMZVYS-DZgdWs-l.cjs → cat-TSFMZVYS-5X1f2tiE.cjs} +3 -3
- package/dist/{cat-TSFMZVYS-DZgdWs-l.cjs.map → cat-TSFMZVYS-5X1f2tiE.cjs.map} +1 -1
- package/dist/{cat-TSFMZVYS-BxNjOPHo.mjs → cat-TSFMZVYS-tvefinmN.mjs} +3 -3
- package/dist/{cat-TSFMZVYS-BxNjOPHo.mjs.map → cat-TSFMZVYS-tvefinmN.mjs.map} +1 -1
- package/dist/{chunk-5H5SCKJM-BanZFrdd.mjs → chunk-5H5SCKJM-D3S5Ds3T.mjs} +2 -2
- package/dist/{chunk-5H5SCKJM-BanZFrdd.mjs.map → chunk-5H5SCKJM-D3S5Ds3T.mjs.map} +1 -1
- package/dist/{chunk-5H5SCKJM-FM5cGSNj.cjs → chunk-5H5SCKJM-qEtjt1-f.cjs} +2 -2
- package/dist/{chunk-5H5SCKJM-FM5cGSNj.cjs.map → chunk-5H5SCKJM-qEtjt1-f.cjs.map} +1 -1
- package/dist/{chunk-AQ6FYS2X-BC4S7I2G.mjs → chunk-AQ6FYS2X-CeeywoLP.mjs} +2 -2
- package/dist/{chunk-AQ6FYS2X-BC4S7I2G.mjs.map → chunk-AQ6FYS2X-CeeywoLP.mjs.map} +1 -1
- package/dist/{chunk-AQ6FYS2X-pDIZfvDJ.cjs → chunk-AQ6FYS2X-mmj7VzGR.cjs} +2 -2
- package/dist/{chunk-AQ6FYS2X-pDIZfvDJ.cjs.map → chunk-AQ6FYS2X-mmj7VzGR.cjs.map} +1 -1
- package/dist/{chunk-CHFEPBH4-yA9axt8t.cjs → chunk-CHFEPBH4-CxCXObK-.cjs} +2 -2
- package/dist/{chunk-CHFEPBH4-yA9axt8t.cjs.map → chunk-CHFEPBH4-CxCXObK-.cjs.map} +1 -1
- package/dist/{chunk-CHFEPBH4-CQ8Z2pKX.mjs → chunk-CHFEPBH4-jL2YJ0fu.mjs} +2 -2
- package/dist/{chunk-CHFEPBH4-CQ8Z2pKX.mjs.map → chunk-CHFEPBH4-jL2YJ0fu.mjs.map} +1 -1
- package/dist/{chunk-EBAPSGAO-Cs0cxZLH.cjs → chunk-EBAPSGAO-CdMAufYk.cjs} +2 -2
- package/dist/{chunk-EBAPSGAO-Cs0cxZLH.cjs.map → chunk-EBAPSGAO-CdMAufYk.cjs.map} +1 -1
- package/dist/{chunk-EBAPSGAO-D_J0UBgO.mjs → chunk-EBAPSGAO-D6jOUOEm.mjs} +2 -2
- package/dist/{chunk-EBAPSGAO-D_J0UBgO.mjs.map → chunk-EBAPSGAO-D6jOUOEm.mjs.map} +1 -1
- package/dist/{chunk-LEKBROJD-9rQi0Phl.cjs → chunk-LEKBROJD-CSDfJ_dj.cjs} +2 -2
- package/dist/{chunk-LEKBROJD-9rQi0Phl.cjs.map → chunk-LEKBROJD-CSDfJ_dj.cjs.map} +1 -1
- package/dist/{chunk-LEKBROJD-GHEcWGlP.mjs → chunk-LEKBROJD-CpXgSQVg.mjs} +2 -2
- package/dist/{chunk-LEKBROJD-GHEcWGlP.mjs.map → chunk-LEKBROJD-CpXgSQVg.mjs.map} +1 -1
- package/dist/{chunk-VPADYNBD-DlqB17ZC.mjs → chunk-VPADYNBD-CJmr566s.mjs} +2 -2
- package/dist/{chunk-VPADYNBD-DlqB17ZC.mjs.map → chunk-VPADYNBD-CJmr566s.mjs.map} +1 -1
- package/dist/{chunk-VPADYNBD-CC0ogYlS.cjs → chunk-VPADYNBD-Ctep3g9-.cjs} +2 -2
- package/dist/{chunk-VPADYNBD-CC0ogYlS.cjs.map → chunk-VPADYNBD-Ctep3g9-.cjs.map} +1 -1
- package/dist/{chunk-YCLFEX4T-Df7MskBf.cjs → chunk-YCLFEX4T-C-zvVZuf.cjs} +2 -2
- package/dist/{chunk-YCLFEX4T-Df7MskBf.cjs.map → chunk-YCLFEX4T-C-zvVZuf.cjs.map} +1 -1
- package/dist/{chunk-YCLFEX4T-DXMH3Eco.mjs → chunk-YCLFEX4T-DRVGZPW6.mjs} +2 -2
- package/dist/{chunk-YCLFEX4T-DXMH3Eco.mjs.map → chunk-YCLFEX4T-DRVGZPW6.mjs.map} +1 -1
- package/dist/{column-XT6UFXNQ-D-78wzPk.cjs → column-XT6UFXNQ-BLtMasDn.cjs} +2 -2
- package/dist/{column-XT6UFXNQ-D-78wzPk.cjs.map → column-XT6UFXNQ-BLtMasDn.cjs.map} +1 -1
- package/dist/{column-XT6UFXNQ-DssELUSO.mjs → column-XT6UFXNQ-Dy2nEf6-.mjs} +2 -2
- package/dist/{column-XT6UFXNQ-DssELUSO.mjs.map → column-XT6UFXNQ-Dy2nEf6-.mjs.map} +1 -1
- package/dist/{comm-VV2LDX2J-B9xsrXzR.mjs → comm-VV2LDX2J-DFpnhh6Z.mjs} +2 -2
- package/dist/{comm-VV2LDX2J-B9xsrXzR.mjs.map → comm-VV2LDX2J-DFpnhh6Z.mjs.map} +1 -1
- package/dist/{comm-VV2LDX2J-B8_LT80n.cjs → comm-VV2LDX2J-DW8Wm1Db.cjs} +2 -2
- package/dist/{comm-VV2LDX2J-B8_LT80n.cjs.map → comm-VV2LDX2J-DW8Wm1Db.cjs.map} +1 -1
- package/dist/config.cjs +2 -2
- package/dist/config.mjs +2 -2
- package/dist/{cp-BISAAS7A-BIV7L9eq.cjs → cp-BISAAS7A-B7Z0ZHPI.cjs} +2 -2
- package/dist/{cp-BISAAS7A-BIV7L9eq.cjs.map → cp-BISAAS7A-B7Z0ZHPI.cjs.map} +1 -1
- package/dist/{cp-BISAAS7A-LPv4X9LQ.mjs → cp-BISAAS7A-Co0_R2UM.mjs} +2 -2
- package/dist/{cp-BISAAS7A-LPv4X9LQ.mjs.map → cp-BISAAS7A-Co0_R2UM.mjs.map} +1 -1
- package/dist/{cut-OKARJCCV-8tOnAUTx.mjs → cut-OKARJCCV-0NeqcNHe.mjs} +3 -3
- package/dist/{cut-OKARJCCV-8tOnAUTx.mjs.map → cut-OKARJCCV-0NeqcNHe.mjs.map} +1 -1
- package/dist/{cut-OKARJCCV-R8-mNVvr.cjs → cut-OKARJCCV-Cb1LzFPN.cjs} +3 -3
- package/dist/{cut-OKARJCCV-R8-mNVvr.cjs.map → cut-OKARJCCV-Cb1LzFPN.cjs.map} +1 -1
- package/dist/{diff-MWJFIG7X-C1AIAesr.cjs → diff-MWJFIG7X-C1vQTVF2.cjs} +2 -2
- package/dist/{diff-MWJFIG7X-C1AIAesr.cjs.map → diff-MWJFIG7X-C1vQTVF2.cjs.map} +1 -1
- package/dist/{diff-MWJFIG7X-aAYDACUk.mjs → diff-MWJFIG7X-ChxON6iS.mjs} +2 -2
- package/dist/{diff-MWJFIG7X-aAYDACUk.mjs.map → diff-MWJFIG7X-ChxON6iS.mjs.map} +1 -1
- package/dist/{dist-Dv9NRRnk.cjs → dist-CdJ5daU0.cjs} +307 -116
- package/dist/dist-CdJ5daU0.cjs.map +1 -0
- package/dist/{dist-DUHTNAp_.cjs → dist-DemJCAUw.cjs} +143 -85
- package/dist/dist-DemJCAUw.cjs.map +1 -0
- package/dist/{dist-BI3VEIg3.mjs → dist-DrRimB9i.mjs} +143 -85
- package/dist/dist-DrRimB9i.mjs.map +1 -0
- package/dist/{dist-UfTaqROI.mjs → dist-eQl63aRD.mjs} +247 -116
- package/dist/dist-eQl63aRD.mjs.map +1 -0
- package/dist/{du-572XNP42-BD0Zs3Qz.mjs → du-572XNP42-Chu_y70-.mjs} +2 -2
- package/dist/{du-572XNP42-BD0Zs3Qz.mjs.map → du-572XNP42-Chu_y70-.mjs.map} +1 -1
- package/dist/{du-572XNP42-Gor9ub7v.cjs → du-572XNP42-DMMDo8jL.cjs} +2 -2
- package/dist/{du-572XNP42-Gor9ub7v.cjs.map → du-572XNP42-DMMDo8jL.cjs.map} +1 -1
- package/dist/{env-36M5BO7M-BOaquG0r.cjs → env-36M5BO7M-CGvjYTKn.cjs} +2 -2
- package/dist/{env-36M5BO7M-BOaquG0r.cjs.map → env-36M5BO7M-CGvjYTKn.cjs.map} +1 -1
- package/dist/{env-36M5BO7M-C-PYC1oQ.mjs → env-36M5BO7M-wUL-yVV2.mjs} +2 -2
- package/dist/{env-36M5BO7M-C-PYC1oQ.mjs.map → env-36M5BO7M-wUL-yVV2.mjs.map} +1 -1
- package/dist/{expand-JSPG6VOP-DkKiBzVj.mjs → expand-JSPG6VOP-BqFO4uwS.mjs} +2 -2
- package/dist/{expand-JSPG6VOP-DkKiBzVj.mjs.map → expand-JSPG6VOP-BqFO4uwS.mjs.map} +1 -1
- package/dist/{expand-JSPG6VOP-DDY72p2b.cjs → expand-JSPG6VOP-L0r9zsDI.cjs} +2 -2
- package/dist/{expand-JSPG6VOP-DDY72p2b.cjs.map → expand-JSPG6VOP-L0r9zsDI.cjs.map} +1 -1
- package/dist/{expr-5JAACS4X-CdeFE19X.cjs → expr-5JAACS4X-C54SQBLh.cjs} +2 -2
- package/dist/{expr-5JAACS4X-CdeFE19X.cjs.map → expr-5JAACS4X-C54SQBLh.cjs.map} +1 -1
- package/dist/{expr-5JAACS4X-Dppx8f72.mjs → expr-5JAACS4X-CNE0lloT.mjs} +2 -2
- package/dist/{expr-5JAACS4X-Dppx8f72.mjs.map → expr-5JAACS4X-CNE0lloT.mjs.map} +1 -1
- package/dist/{find-INTH3OLC-DlAfg13Y.cjs → find-INTH3OLC-Cj1UkDzU.cjs} +3 -3
- package/dist/{find-INTH3OLC-DlAfg13Y.cjs.map → find-INTH3OLC-Cj1UkDzU.cjs.map} +1 -1
- package/dist/{find-INTH3OLC-1l65phnN.mjs → find-INTH3OLC-ClAEBv35.mjs} +3 -3
- package/dist/{find-INTH3OLC-1l65phnN.mjs.map → find-INTH3OLC-ClAEBv35.mjs.map} +1 -1
- package/dist/{fold-4TQNYMSW-C1ExSlRm.mjs → fold-4TQNYMSW-BJ0fLPRy.mjs} +2 -2
- package/dist/{fold-4TQNYMSW-C1ExSlRm.mjs.map → fold-4TQNYMSW-BJ0fLPRy.mjs.map} +1 -1
- package/dist/{fold-4TQNYMSW-5komeWND.cjs → fold-4TQNYMSW-DNzvKAUj.cjs} +2 -2
- package/dist/{fold-4TQNYMSW-5komeWND.cjs.map → fold-4TQNYMSW-DNzvKAUj.cjs.map} +1 -1
- package/dist/{grep-V3LQVMRQ-CukE4iEL.mjs → grep-V3LQVMRQ-D7sTJLbC.mjs} +4 -4
- package/dist/{grep-V3LQVMRQ-CukE4iEL.mjs.map → grep-V3LQVMRQ-D7sTJLbC.mjs.map} +1 -1
- package/dist/{grep-V3LQVMRQ-Ca0SYUGe.cjs → grep-V3LQVMRQ-DyW0Nxa2.cjs} +4 -4
- package/dist/{grep-V3LQVMRQ-Ca0SYUGe.cjs.map → grep-V3LQVMRQ-DyW0Nxa2.cjs.map} +1 -1
- package/dist/{gzip-O5ASJAFY-D0aGDe6h.cjs → gzip-O5ASJAFY-BfgWFFZF.cjs} +2 -2
- package/dist/{gzip-O5ASJAFY-D0aGDe6h.cjs.map → gzip-O5ASJAFY-BfgWFFZF.cjs.map} +1 -1
- package/dist/{gzip-O5ASJAFY-wJ28ldi7.mjs → gzip-O5ASJAFY-Bl0imilf.mjs} +2 -2
- package/dist/{gzip-O5ASJAFY-wJ28ldi7.mjs.map → gzip-O5ASJAFY-Bl0imilf.mjs.map} +1 -1
- package/dist/{head-442HYESI-DUHiojKA.mjs → head-442HYESI-DiOJUK2Z.mjs} +2 -2
- package/dist/{head-442HYESI-DUHiojKA.mjs.map → head-442HYESI-DiOJUK2Z.mjs.map} +1 -1
- package/dist/{head-442HYESI-BOcnt5E3.cjs → head-442HYESI-DkswW1e6.cjs} +2 -2
- package/dist/{head-442HYESI-BOcnt5E3.cjs.map → head-442HYESI-DkswW1e6.cjs.map} +1 -1
- package/dist/{help-HZ6M2CKN-Qzl16zNq.cjs → help-HZ6M2CKN-DmapcDig.cjs} +2 -2
- package/dist/{help-HZ6M2CKN-Qzl16zNq.cjs.map → help-HZ6M2CKN-DmapcDig.cjs.map} +1 -1
- package/dist/{help-HZ6M2CKN-DLEdf0M2.mjs → help-HZ6M2CKN-KVaFwiLC.mjs} +2 -2
- package/dist/{help-HZ6M2CKN-DLEdf0M2.mjs.map → help-HZ6M2CKN-KVaFwiLC.mjs.map} +1 -1
- package/dist/{html-to-markdown-JW4MSQZO-BQz_VlRg.mjs → html-to-markdown-JW4MSQZO-rfl1Sdxn.mjs} +3 -3
- package/dist/{html-to-markdown-JW4MSQZO-BQz_VlRg.mjs.map → html-to-markdown-JW4MSQZO-rfl1Sdxn.mjs.map} +1 -1
- package/dist/{html-to-markdown-JW4MSQZO-BgYA4aOc.cjs → html-to-markdown-JW4MSQZO-x91OOgvu.cjs} +3 -3
- package/dist/{html-to-markdown-JW4MSQZO-BgYA4aOc.cjs.map → html-to-markdown-JW4MSQZO-x91OOgvu.cjs.map} +1 -1
- package/dist/internal.cjs +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/{join-TBRGI3LQ-DK7LepAd.mjs → join-TBRGI3LQ-62DecWHZ.mjs} +2 -2
- package/dist/{join-TBRGI3LQ-DK7LepAd.mjs.map → join-TBRGI3LQ-62DecWHZ.mjs.map} +1 -1
- package/dist/{join-TBRGI3LQ-C7-r2rFy.cjs → join-TBRGI3LQ-mTtwIVKT.cjs} +2 -2
- package/dist/{join-TBRGI3LQ-C7-r2rFy.cjs.map → join-TBRGI3LQ-mTtwIVKT.cjs.map} +1 -1
- package/dist/{jq-4XLYLOS5-D_E-_pWV.mjs → jq-4XLYLOS5-BDNs0u1q.mjs} +4 -4
- package/dist/{jq-4XLYLOS5-D_E-_pWV.mjs.map → jq-4XLYLOS5-BDNs0u1q.mjs.map} +1 -1
- package/dist/{jq-4XLYLOS5-DvRkoRHs.cjs → jq-4XLYLOS5-f7cvJ47L.cjs} +4 -4
- package/dist/{jq-4XLYLOS5-DvRkoRHs.cjs.map → jq-4XLYLOS5-f7cvJ47L.cjs.map} +1 -1
- package/dist/{js-exec-N5KEZBH7-aTSi2bNc.mjs → js-exec-N5KEZBH7-C6DEo4pY.mjs} +3 -3
- package/dist/{js-exec-N5KEZBH7-aTSi2bNc.mjs.map → js-exec-N5KEZBH7-C6DEo4pY.mjs.map} +1 -1
- package/dist/{js-exec-N5KEZBH7-CMI7Q7vB.cjs → js-exec-N5KEZBH7-CEp8PQkW.cjs} +3 -3
- package/dist/{js-exec-N5KEZBH7-CMI7Q7vB.cjs.map → js-exec-N5KEZBH7-CEp8PQkW.cjs.map} +1 -1
- package/dist/{lib-CAYL_7KH.cjs → lib-BsW-2MQH.cjs} +2 -2
- package/dist/{lib-CAYL_7KH.cjs.map → lib-BsW-2MQH.cjs.map} +1 -1
- package/dist/{lib-rQKuhAkq.mjs → lib-o04qz749.mjs} +2 -2
- package/dist/{lib-rQKuhAkq.mjs.map → lib-o04qz749.mjs.map} +1 -1
- package/dist/{ln-4LGSXXGD-DEz2c-lc.mjs → ln-4LGSXXGD-D4fL_qeK.mjs} +2 -2
- package/dist/{ln-4LGSXXGD-DEz2c-lc.mjs.map → ln-4LGSXXGD-D4fL_qeK.mjs.map} +1 -1
- package/dist/{ln-4LGSXXGD-CDLjrDRx.cjs → ln-4LGSXXGD-WQBNg6U2.cjs} +2 -2
- package/dist/{ln-4LGSXXGD-CDLjrDRx.cjs.map → ln-4LGSXXGD-WQBNg6U2.cjs.map} +1 -1
- package/dist/{ls-ZJGQER7M-CTMWgQdb.mjs → ls-ZJGQER7M-DdElrkfY.mjs} +2 -2
- package/dist/{ls-ZJGQER7M-CTMWgQdb.mjs.map → ls-ZJGQER7M-DdElrkfY.mjs.map} +1 -1
- package/dist/{ls-ZJGQER7M-dtZQlOl9.cjs → ls-ZJGQER7M-kQ4K7yf2.cjs} +2 -2
- package/dist/{ls-ZJGQER7M-dtZQlOl9.cjs.map → ls-ZJGQER7M-kQ4K7yf2.cjs.map} +1 -1
- package/dist/{lzma-cXJLxnF-.cjs → lzma-C3-2vwmT.cjs} +2 -2
- package/dist/{lzma-cXJLxnF-.cjs.map → lzma-C3-2vwmT.cjs.map} +1 -1
- package/dist/{md5sum-SPU24VSG-0bULe4dG.mjs → md5sum-SPU24VSG-DQ-SbpUg.mjs} +3 -3
- package/dist/{md5sum-SPU24VSG-0bULe4dG.mjs.map → md5sum-SPU24VSG-DQ-SbpUg.mjs.map} +1 -1
- package/dist/{md5sum-SPU24VSG-Dv-imBX7.cjs → md5sum-SPU24VSG-DRtI6Jku.cjs} +3 -3
- package/dist/{md5sum-SPU24VSG-Dv-imBX7.cjs.map → md5sum-SPU24VSG-DRtI6Jku.cjs.map} +1 -1
- package/dist/{mkdir-MEPGZOB6-DlmASeJ8.mjs → mkdir-MEPGZOB6-DCN8JTwb.mjs} +2 -2
- package/dist/{mkdir-MEPGZOB6-DlmASeJ8.mjs.map → mkdir-MEPGZOB6-DCN8JTwb.mjs.map} +1 -1
- package/dist/{mkdir-MEPGZOB6-DbT8dn9r.cjs → mkdir-MEPGZOB6-Dw5n-Qyd.cjs} +2 -2
- package/dist/{mkdir-MEPGZOB6-DbT8dn9r.cjs.map → mkdir-MEPGZOB6-Dw5n-Qyd.cjs.map} +1 -1
- package/dist/{mv-W5BIQ646-BUScaUnN.mjs → mv-W5BIQ646-CHd3k93r.mjs} +2 -2
- package/dist/{mv-W5BIQ646-BUScaUnN.mjs.map → mv-W5BIQ646-CHd3k93r.mjs.map} +1 -1
- package/dist/{mv-W5BIQ646-BcD65P4z.cjs → mv-W5BIQ646-JEAYJGV_.cjs} +2 -2
- package/dist/{mv-W5BIQ646-BcD65P4z.cjs.map → mv-W5BIQ646-JEAYJGV_.cjs.map} +1 -1
- package/dist/{nl-WSDW7I4O-C6dIyqS-.cjs → nl-WSDW7I4O-B--xUH1g.cjs} +2 -2
- package/dist/{nl-WSDW7I4O-C6dIyqS-.cjs.map → nl-WSDW7I4O-B--xUH1g.cjs.map} +1 -1
- package/dist/{nl-WSDW7I4O-CZJV7yor.mjs → nl-WSDW7I4O-C96-5kxm.mjs} +2 -2
- package/dist/{nl-WSDW7I4O-CZJV7yor.mjs.map → nl-WSDW7I4O-C96-5kxm.mjs.map} +1 -1
- package/dist/{od-WOKFDJTP-ByzrsPyh.mjs → od-WOKFDJTP-CUdxF2ZZ.mjs} +2 -2
- package/dist/{od-WOKFDJTP-ByzrsPyh.mjs.map → od-WOKFDJTP-CUdxF2ZZ.mjs.map} +1 -1
- package/dist/{od-WOKFDJTP-D21mvx_N.cjs → od-WOKFDJTP-DlYa-_JN.cjs} +2 -2
- package/dist/{od-WOKFDJTP-D21mvx_N.cjs.map → od-WOKFDJTP-DlYa-_JN.cjs.map} +1 -1
- package/dist/{paste-7JC6S4DX-DLKliCxf.mjs → paste-7JC6S4DX-BuG2NUSa.mjs} +2 -2
- package/dist/{paste-7JC6S4DX-DLKliCxf.mjs.map → paste-7JC6S4DX-BuG2NUSa.mjs.map} +1 -1
- package/dist/{paste-7JC6S4DX-BnuwNZea.cjs → paste-7JC6S4DX-C3HWRWIX.cjs} +2 -2
- package/dist/{paste-7JC6S4DX-BnuwNZea.cjs.map → paste-7JC6S4DX-C3HWRWIX.cjs.map} +1 -1
- package/dist/{printf-TWGXF445-DTZXq0ei.cjs → printf-TWGXF445-D-WSM__P.cjs} +3 -3
- package/dist/{printf-TWGXF445-DTZXq0ei.cjs.map → printf-TWGXF445-D-WSM__P.cjs.map} +1 -1
- package/dist/{printf-TWGXF445-SeXWdm7g.mjs → printf-TWGXF445-DcwmUW1i.mjs} +3 -3
- package/dist/{printf-TWGXF445-SeXWdm7g.mjs.map → printf-TWGXF445-DcwmUW1i.mjs.map} +1 -1
- package/dist/{python3-POMOR4OA-Ck-wgzU7.cjs → python3-POMOR4OA-Dxv-Pi7Z.cjs} +3 -3
- package/dist/{python3-POMOR4OA-Ck-wgzU7.cjs.map → python3-POMOR4OA-Dxv-Pi7Z.cjs.map} +1 -1
- package/dist/{python3-POMOR4OA-DCtD8PWe.mjs → python3-POMOR4OA-_tOY0g4e.mjs} +3 -3
- package/dist/{python3-POMOR4OA-DCtD8PWe.mjs.map → python3-POMOR4OA-_tOY0g4e.mjs.map} +1 -1
- package/dist/{rev-5EHFX4EJ-TtsbZt5q.mjs → rev-5EHFX4EJ-CAWa9BdN.mjs} +2 -2
- package/dist/{rev-5EHFX4EJ-TtsbZt5q.mjs.map → rev-5EHFX4EJ-CAWa9BdN.mjs.map} +1 -1
- package/dist/{rev-5EHFX4EJ-BKPrCPRh.cjs → rev-5EHFX4EJ-DdHpi4_E.cjs} +2 -2
- package/dist/{rev-5EHFX4EJ-BKPrCPRh.cjs.map → rev-5EHFX4EJ-DdHpi4_E.cjs.map} +1 -1
- package/dist/{rg-S4FXYXWB-CWLIXiXm.cjs → rg-S4FXYXWB-ClZW0i7G.cjs} +3 -3
- package/dist/{rg-S4FXYXWB-CWLIXiXm.cjs.map → rg-S4FXYXWB-ClZW0i7G.cjs.map} +1 -1
- package/dist/{rg-S4FXYXWB-qJ8foUzL.mjs → rg-S4FXYXWB-DjWw-Uzk.mjs} +3 -3
- package/dist/{rg-S4FXYXWB-qJ8foUzL.mjs.map → rg-S4FXYXWB-DjWw-Uzk.mjs.map} +1 -1
- package/dist/{rm-SSGETQVQ-Yp02JM15.mjs → rm-SSGETQVQ-Be1ZnMPC.mjs} +2 -2
- package/dist/{rm-SSGETQVQ-Yp02JM15.mjs.map → rm-SSGETQVQ-Be1ZnMPC.mjs.map} +1 -1
- package/dist/{rm-SSGETQVQ-CSeUoZXG.cjs → rm-SSGETQVQ-QDyL6RZH.cjs} +2 -2
- package/dist/{rm-SSGETQVQ-CSeUoZXG.cjs.map → rm-SSGETQVQ-QDyL6RZH.cjs.map} +1 -1
- package/dist/{rmdir-OC4ZLPYA-BGCS0MYZ.mjs → rmdir-OC4ZLPYA-CFhB0CuH.mjs} +2 -2
- package/dist/{rmdir-OC4ZLPYA-BGCS0MYZ.mjs.map → rmdir-OC4ZLPYA-CFhB0CuH.mjs.map} +1 -1
- package/dist/{rmdir-OC4ZLPYA-7QLeoaKs.cjs → rmdir-OC4ZLPYA-CcmysT2l.cjs} +2 -2
- package/dist/{rmdir-OC4ZLPYA-7QLeoaKs.cjs.map → rmdir-OC4ZLPYA-CcmysT2l.cjs.map} +1 -1
- package/dist/run.cjs +1 -1
- package/dist/run.mjs +1 -1
- package/dist/{sed-S5UIK574-BVQuN_lF.mjs → sed-S5UIK574-B7WRGcb1.mjs} +2 -2
- package/dist/{sed-S5UIK574-BVQuN_lF.mjs.map → sed-S5UIK574-B7WRGcb1.mjs.map} +1 -1
- package/dist/{sed-S5UIK574-BS3NSfTz.cjs → sed-S5UIK574-BQs1RGEx.cjs} +2 -2
- package/dist/{sed-S5UIK574-BS3NSfTz.cjs.map → sed-S5UIK574-BQs1RGEx.cjs.map} +1 -1
- package/dist/{sha1sum-2PTOAFR6-1t4ssenS.cjs → sha1sum-2PTOAFR6-DM57C0kg.cjs} +3 -3
- package/dist/{sha1sum-2PTOAFR6-1t4ssenS.cjs.map → sha1sum-2PTOAFR6-DM57C0kg.cjs.map} +1 -1
- package/dist/{sha1sum-2PTOAFR6-D12ocftB.mjs → sha1sum-2PTOAFR6-DucVA5xh.mjs} +3 -3
- package/dist/{sha1sum-2PTOAFR6-D12ocftB.mjs.map → sha1sum-2PTOAFR6-DucVA5xh.mjs.map} +1 -1
- package/dist/{sha256sum-NS7D3IXX-CXylnxEZ.mjs → sha256sum-NS7D3IXX-CGI7sHjq.mjs} +3 -3
- package/dist/{sha256sum-NS7D3IXX-CXylnxEZ.mjs.map → sha256sum-NS7D3IXX-CGI7sHjq.mjs.map} +1 -1
- package/dist/{sha256sum-NS7D3IXX-27eM-Z_8.cjs → sha256sum-NS7D3IXX-DbgX0viz.cjs} +3 -3
- package/dist/{sha256sum-NS7D3IXX-27eM-Z_8.cjs.map → sha256sum-NS7D3IXX-DbgX0viz.cjs.map} +1 -1
- package/dist/{sleep-X22JJINO-4I6l2NTe.mjs → sleep-X22JJINO-BLYwrsQC.mjs} +2 -2
- package/dist/{sleep-X22JJINO-4I6l2NTe.mjs.map → sleep-X22JJINO-BLYwrsQC.mjs.map} +1 -1
- package/dist/{sleep-X22JJINO-Urif1Mim.cjs → sleep-X22JJINO-CQW2MaLi.cjs} +2 -2
- package/dist/{sleep-X22JJINO-Urif1Mim.cjs.map → sleep-X22JJINO-CQW2MaLi.cjs.map} +1 -1
- package/dist/{sort-SW2YEO5B-DHeDK9R9.cjs → sort-SW2YEO5B-D6kP3Hkk.cjs} +3 -3
- package/dist/{sort-SW2YEO5B-DHeDK9R9.cjs.map → sort-SW2YEO5B-D6kP3Hkk.cjs.map} +1 -1
- package/dist/{sort-SW2YEO5B-DPSl4CbI.mjs → sort-SW2YEO5B-DSUbOjDo.mjs} +3 -3
- package/dist/{sort-SW2YEO5B-DPSl4CbI.mjs.map → sort-SW2YEO5B-DSUbOjDo.mjs.map} +1 -1
- package/dist/{split-4KKZZXXE-C0NLbt_2.cjs → split-4KKZZXXE-BDBYFDk4.cjs} +2 -2
- package/dist/{split-4KKZZXXE-C0NLbt_2.cjs.map → split-4KKZZXXE-BDBYFDk4.cjs.map} +1 -1
- package/dist/{split-4KKZZXXE-Dk9lHFC8.mjs → split-4KKZZXXE-VX3ERx0w.mjs} +2 -2
- package/dist/{split-4KKZZXXE-Dk9lHFC8.mjs.map → split-4KKZZXXE-VX3ERx0w.mjs.map} +1 -1
- package/dist/{sqlite3-CGOEFJAO-BHYKGg1a.mjs → sqlite3-CGOEFJAO-BotHxbsW.mjs} +3 -3
- package/dist/{sqlite3-CGOEFJAO-BHYKGg1a.mjs.map → sqlite3-CGOEFJAO-BotHxbsW.mjs.map} +1 -1
- package/dist/{sqlite3-CGOEFJAO-DpLM2ecz.cjs → sqlite3-CGOEFJAO-DTtnpW6w.cjs} +3 -3
- package/dist/{sqlite3-CGOEFJAO-DpLM2ecz.cjs.map → sqlite3-CGOEFJAO-DTtnpW6w.cjs.map} +1 -1
- package/dist/{start-DMis00-F.cjs → start-Bo0JbP2I.cjs} +513 -296
- package/dist/start-Bo0JbP2I.cjs.map +1 -0
- package/dist/{start-DAmqO4hu.mjs → start-C00o7s8a.mjs} +513 -296
- package/dist/start-C00o7s8a.mjs.map +1 -0
- package/dist/start.cjs +1 -1
- package/dist/start.mjs +1 -1
- package/dist/{strings-6WDHLGMX-z2tCrrrz.cjs → strings-6WDHLGMX-CIuuwXKu.cjs} +2 -2
- package/dist/{strings-6WDHLGMX-z2tCrrrz.cjs.map → strings-6WDHLGMX-CIuuwXKu.cjs.map} +1 -1
- package/dist/{strings-6WDHLGMX-Cy1ZR56z.mjs → strings-6WDHLGMX-DGi_QpNk.mjs} +2 -2
- package/dist/{strings-6WDHLGMX-Cy1ZR56z.mjs.map → strings-6WDHLGMX-DGi_QpNk.mjs.map} +1 -1
- package/dist/{tac-2STMMJYW-BeWTeefF.cjs → tac-2STMMJYW-BXYOszRg.cjs} +2 -2
- package/dist/{tac-2STMMJYW-BeWTeefF.cjs.map → tac-2STMMJYW-BXYOszRg.cjs.map} +1 -1
- package/dist/{tac-2STMMJYW-D8GSnWwk.mjs → tac-2STMMJYW-BxJweAI9.mjs} +2 -2
- package/dist/{tac-2STMMJYW-D8GSnWwk.mjs.map → tac-2STMMJYW-BxJweAI9.mjs.map} +1 -1
- package/dist/{tail-R4PCA2C4-Ww4pv2Dp.mjs → tail-R4PCA2C4-Olrv6MPs.mjs} +2 -2
- package/dist/{tail-R4PCA2C4-Ww4pv2Dp.mjs.map → tail-R4PCA2C4-Olrv6MPs.mjs.map} +1 -1
- package/dist/{tail-R4PCA2C4-UBnPkuWO.cjs → tail-R4PCA2C4-sZF81kcw.cjs} +2 -2
- package/dist/{tail-R4PCA2C4-UBnPkuWO.cjs.map → tail-R4PCA2C4-sZF81kcw.cjs.map} +1 -1
- package/dist/{tar-STHHZTZ6-Bi0zxlHZ.cjs → tar-STHHZTZ6-CVx_AO3a.cjs} +5 -5
- package/dist/{tar-STHHZTZ6-Bi0zxlHZ.cjs.map → tar-STHHZTZ6-CVx_AO3a.cjs.map} +1 -1
- package/dist/{tar-STHHZTZ6-BzXQksgM.mjs → tar-STHHZTZ6-Cm-5_Z-6.mjs} +4 -4
- package/dist/{tar-STHHZTZ6-BzXQksgM.mjs.map → tar-STHHZTZ6-Cm-5_Z-6.mjs.map} +1 -1
- package/dist/{tee-YUZ2FKCJ-CMei1bUb.mjs → tee-YUZ2FKCJ-CzIaW88r.mjs} +2 -2
- package/dist/{tee-YUZ2FKCJ-CMei1bUb.mjs.map → tee-YUZ2FKCJ-CzIaW88r.mjs.map} +1 -1
- package/dist/{tee-YUZ2FKCJ-DR5NHLOg.cjs → tee-YUZ2FKCJ-VvqlNUJ4.cjs} +2 -2
- package/dist/{tee-YUZ2FKCJ-DR5NHLOg.cjs.map → tee-YUZ2FKCJ-VvqlNUJ4.cjs.map} +1 -1
- package/dist/{time-D4LNBSWX-z9IAaE5I.mjs → time-D4LNBSWX-COqbWdRt.mjs} +2 -2
- package/dist/{time-D4LNBSWX-z9IAaE5I.mjs.map → time-D4LNBSWX-COqbWdRt.mjs.map} +1 -1
- package/dist/{time-D4LNBSWX-BGCDzdSH.cjs → time-D4LNBSWX-DcZ3zP1_.cjs} +2 -2
- package/dist/{time-D4LNBSWX-BGCDzdSH.cjs.map → time-D4LNBSWX-DcZ3zP1_.cjs.map} +1 -1
- package/dist/{timeout-YDCRSLPQ-Bg3sU17C.cjs → timeout-YDCRSLPQ-BOZkgAyq.cjs} +2 -2
- package/dist/{timeout-YDCRSLPQ-Bg3sU17C.cjs.map → timeout-YDCRSLPQ-BOZkgAyq.cjs.map} +1 -1
- package/dist/{timeout-YDCRSLPQ-Z78PgVy2.mjs → timeout-YDCRSLPQ-C886ftpo.mjs} +2 -2
- package/dist/{timeout-YDCRSLPQ-Z78PgVy2.mjs.map → timeout-YDCRSLPQ-C886ftpo.mjs.map} +1 -1
- package/dist/{touch-UA33VN3N-U3ZomRAc.mjs → touch-UA33VN3N-DVP0DAhz.mjs} +2 -2
- package/dist/{touch-UA33VN3N-U3ZomRAc.mjs.map → touch-UA33VN3N-DVP0DAhz.mjs.map} +1 -1
- package/dist/{touch-UA33VN3N-0fuZVHS6.cjs → touch-UA33VN3N-qHqEBbk5.cjs} +2 -2
- package/dist/{touch-UA33VN3N-0fuZVHS6.cjs.map → touch-UA33VN3N-qHqEBbk5.cjs.map} +1 -1
- package/dist/{tr-36LHWFRQ-De0ivsL4.mjs → tr-36LHWFRQ-D1dpXe5R.mjs} +2 -2
- package/dist/{tr-36LHWFRQ-De0ivsL4.mjs.map → tr-36LHWFRQ-D1dpXe5R.mjs.map} +1 -1
- package/dist/{tr-36LHWFRQ-gutDmRkn.cjs → tr-36LHWFRQ-r0uIf6_6.cjs} +2 -2
- package/dist/{tr-36LHWFRQ-gutDmRkn.cjs.map → tr-36LHWFRQ-r0uIf6_6.cjs.map} +1 -1
- package/dist/{tree-YLD52CNT-BeXLduiX.cjs → tree-YLD52CNT-D-iIN111.cjs} +2 -2
- package/dist/{tree-YLD52CNT-BeXLduiX.cjs.map → tree-YLD52CNT-D-iIN111.cjs.map} +1 -1
- package/dist/{tree-YLD52CNT-DNAB_qw3.mjs → tree-YLD52CNT-Dpwqy_aj.mjs} +2 -2
- package/dist/{tree-YLD52CNT-DNAB_qw3.mjs.map → tree-YLD52CNT-Dpwqy_aj.mjs.map} +1 -1
- package/dist/{unexpand-CADSA4VO-CFnBK3Ia.cjs → unexpand-CADSA4VO-CAmH8Imy.cjs} +2 -2
- package/dist/{unexpand-CADSA4VO-CFnBK3Ia.cjs.map → unexpand-CADSA4VO-CAmH8Imy.cjs.map} +1 -1
- package/dist/{unexpand-CADSA4VO-BFtZtqw9.mjs → unexpand-CADSA4VO-DK3u7Ifi.mjs} +2 -2
- package/dist/{unexpand-CADSA4VO-BFtZtqw9.mjs.map → unexpand-CADSA4VO-DK3u7Ifi.mjs.map} +1 -1
- package/dist/{uniq-XSIZR6PB-CyG7HvmD.cjs → uniq-XSIZR6PB-9F3SYQjJ.cjs} +3 -3
- package/dist/{uniq-XSIZR6PB-CyG7HvmD.cjs.map → uniq-XSIZR6PB-9F3SYQjJ.cjs.map} +1 -1
- package/dist/{uniq-XSIZR6PB-BytgRQOG.mjs → uniq-XSIZR6PB-CPoJMqsr.mjs} +3 -3
- package/dist/{uniq-XSIZR6PB-BytgRQOG.mjs.map → uniq-XSIZR6PB-CPoJMqsr.mjs.map} +1 -1
- package/dist/{wc-LF7NU4LA-exnw0vWb.cjs → wc-LF7NU4LA-Dlt_eelQ.cjs} +3 -3
- package/dist/{wc-LF7NU4LA-exnw0vWb.cjs.map → wc-LF7NU4LA-Dlt_eelQ.cjs.map} +1 -1
- package/dist/{wc-LF7NU4LA-B_10bksl.mjs → wc-LF7NU4LA-xfRNjI6X.mjs} +3 -3
- package/dist/{wc-LF7NU4LA-B_10bksl.mjs.map → wc-LF7NU4LA-xfRNjI6X.mjs.map} +1 -1
- package/dist/{with-project-scope-D40NCS4H.cjs → with-project-scope-B-l0B4cK.cjs} +2 -2
- package/dist/{with-project-scope-D40NCS4H.cjs.map → with-project-scope-B-l0B4cK.cjs.map} +1 -1
- package/dist/{with-project-scope-DhPi7-gm.mjs → with-project-scope-DspchjQw.mjs} +2 -2
- package/dist/{with-project-scope-DhPi7-gm.mjs.map → with-project-scope-DspchjQw.mjs.map} +1 -1
- package/dist/{xan-Y6WF3IRG-D87C2Cbw.cjs → xan-Y6WF3IRG-DpG8EOPW.cjs} +6 -6
- package/dist/{xan-Y6WF3IRG-D87C2Cbw.cjs.map → xan-Y6WF3IRG-DpG8EOPW.cjs.map} +1 -1
- package/dist/{xan-Y6WF3IRG-CwjgCDhd.mjs → xan-Y6WF3IRG-W2FDm9Kk.mjs} +6 -6
- package/dist/{xan-Y6WF3IRG-CwjgCDhd.mjs.map → xan-Y6WF3IRG-W2FDm9Kk.mjs.map} +1 -1
- package/dist/{xan-view-HDVKHFC2-eGVB9aRf.cjs → xan-view-HDVKHFC2-BMXeN8Pi.cjs} +3 -3
- package/dist/{xan-view-HDVKHFC2-eGVB9aRf.cjs.map → xan-view-HDVKHFC2-BMXeN8Pi.cjs.map} +1 -1
- package/dist/{xan-view-HDVKHFC2-Bi8ZaYNn.mjs → xan-view-HDVKHFC2-DPomcZxJ.mjs} +3 -3
- package/dist/{xan-view-HDVKHFC2-Bi8ZaYNn.mjs.map → xan-view-HDVKHFC2-DPomcZxJ.mjs.map} +1 -1
- package/dist/{xargs-MGZPH7AX-jq42agOA.mjs → xargs-MGZPH7AX-BCx_MFy9.mjs} +2 -2
- package/dist/{xargs-MGZPH7AX-jq42agOA.mjs.map → xargs-MGZPH7AX-BCx_MFy9.mjs.map} +1 -1
- package/dist/{xargs-MGZPH7AX-C5vvLUSN.cjs → xargs-MGZPH7AX-DDuo41r9.cjs} +2 -2
- package/dist/{xargs-MGZPH7AX-C5vvLUSN.cjs.map → xargs-MGZPH7AX-DDuo41r9.cjs.map} +1 -1
- package/dist/{yq-4QJW3EQG-BrQ6vsDL.mjs → yq-4QJW3EQG-CoKDAaTD.mjs} +3 -3
- package/dist/{yq-4QJW3EQG-BrQ6vsDL.mjs.map → yq-4QJW3EQG-CoKDAaTD.mjs.map} +1 -1
- package/dist/{yq-4QJW3EQG-BCAl5n0x.cjs → yq-4QJW3EQG-Du0i4zZt.cjs} +3 -3
- package/dist/{yq-4QJW3EQG-BCAl5n0x.cjs.map → yq-4QJW3EQG-Du0i4zZt.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/dist-BI3VEIg3.mjs.map +0 -1
- package/dist/dist-DUHTNAp_.cjs.map +0 -1
- package/dist/dist-Dv9NRRnk.cjs.map +0 -1
- package/dist/dist-UfTaqROI.mjs.map +0 -1
- package/dist/start-DAmqO4hu.mjs.map +0 -1
- package/dist/start-DMis00-F.cjs.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $ as CreateApiKeyRequestSchema, $n as
|
|
2
|
-
import { a as verifyOrgWorkerToken, i as pingProjectTarget, n as fetchDeployStatus, r as mintOrgWorkerToken } from "./dist-
|
|
1
|
+
import { $ as CreateApiKeyRequestSchema, $n as UpdateProjectMemberResponseSchema, $r as resolveUniqueCredentialInstanceLabel, $t as ManagedServiceCredentialSchema, A as discoverMcpApp, An as SkillSummaryDetailResponseSchema, Ar as isAllowedChatAttachmentMediaType, At as HistoryRunListResponseSchema, B as ACTIVE_ORG_HEADER, Bn as SubmitTeamRequestRequestSchema, Br as mapProjectMember, Bt as ListCredentialsPageQuerySchema, C as defaultSchedulerPlugin, Cn as PublicFormMetadataSchema, Cr as WorkspaceWorkflowOverviewSchema, Ct as GetCredentialResponseSchema, D as decodeOAuthState, Dn as PublishedFormSchema, Dr as chatAttachmentExtension, Dt as HistoryRunCancelResponseSchema, E as completeMcpOAuthConnect, En as PublicModelsResponseSchema, Er as buildCredentialInstanceLabel, Et as GraphqlDiscoverResponseSchema, F as deleteCredentialInstanceSecret, Fn as StartMcpOAuthConnectionInputSchema, Fr as mapOrganizationInvitation, Ft as ListAgentMemoryFilesResponseSchema, G as AgentSummaryListResponseSchema, Gn as TriggerInvokeResponseSchema, Gr as normalizeUserPreferences, Gt as ListOrganizationMembersPageResponseSchema, H as ActiveOrganizationResponseSchema, Hn as TriggerAttachmentUpdateRequestSchema, Hr as mapUserOrganization, Ht as ListManagedServiceCredentialsResponseSchema, I as deleteManagedServiceCredential$1, In as StartMcpOAuthConnectionResultSchema, Ir as mapOrganizationMember, It as ListAgentWorkspaceFilesResponseSchema, J as AppSlugAvailabilityQuerySchema, Jn as UpdateManagedServiceCredentialRequestSchema, Jr as parseAppSlug, Jt as ListProjectFilesResponseSchema, K as AgentSummarySchema, Kn as TriggerRunListQuerySchema, Kr as organizationInvitationAcceptPath, Kt as ListOrganizationsResponseSchema, L as readCredentialInstanceSecret, Ln as StoredProjectSourceManifestSchema, Lr as mapProject, Lt as ListApiKeysResponseSchema, M as isDiscoveryError, Mn as SkillSummarySchema, Mr as isLlmProviderSlug, Mt as InviteOrganizationMembersResponseSchema, N as withCredentialAssignments, Nn as SlugAvailabilityQuerySchema, Nr as jsonSchemaToWorkflowInputSchema, Nt as InviteProjectMembersRequestSchema, O as describeCredentialBindings, On as RecentResourceListResponseSchema, Or as deriveCredentialInstanceSlug, Ot as HistoryRunDetailResponseSchema, P as PublicHttpUrlError, Pn as SlugAvailabilityResponseSchema, Pr as listenPortFromPublicUrl, Pt as InviteProjectMembersResponseSchema, Q as ConnectManagedServiceCredentialRequestSchema, Qn as UpdateProjectMemberRequestSchema, Qr as resolvePublicFormFields, Qt as MICRO_CREDITS_PER_CREDIT, R as setCredentialInstanceSecret, Rn as SubmitMarketingContactRequestSchema, Rr as mapProjectArtifact, Rt as ListAppsResponseSchema, S as createJobQueue, Sn as ProjectSourceResourcesSchema, Sr as WorkspaceTriggerRunListResponseSchema, St as GetAppCatalogEntryResponseSchema, T as beginMcpOAuthConnect, Tn as PublicFormSubmitResponseSchema, Tr as agentWorkspaceFileId, Tt as GraphqlDiscoverRequestSchema, U as AgentMemoryFileSummarySchema, Un as TriggerInvokeInputsSchema, Ur as mcpEntityId, Ut as ListOrganizationInvitationsResponseSchema, V as AcceptOrganizationInvitationResponseSchema, Vn as SubmitTeamRequestResponseSchema, Vr as mapProjectSettings, Vt as ListCredentialsPageResponseSchema, W as AgentSummaryDetailResponseSchema, Wn as TriggerInvokeRequestSchema, Wr as mergeUserPreferences, Wt as ListOrganizationMembersPageQuerySchema, X as ChannelPlatformSchema, Xn as UpdateOrganizationMemberResponseSchema, Xr as projectFileId, Xt as ListProjectMetricsResponseSchema, Y as AppSlugAvailabilityResponseSchema, Yn as UpdateOrganizationMemberRequestSchema, Yr as parseStoredRouteManifest, Yt as ListProjectMembersResponseSchema, Z as CompleteProjectArtifactResponseSchema, Zn as UpdateOrganizationRequestSchema, Zr as resolveExternalPlatformOrigin, Zt as ListProjectsResponseSchema, _ as orgLogoStorageKey, _n as ProjectReachabilityResponseSchema, _r as WorkflowSummarySchema, _t as DownloadActiveProjectSourceResponseSchema, a as extractRouteManifestFromArtifact, ai as validationErrorResponse, an as OrganizationSidebarBrandingPatchSchema, ar as UserAvatarSchema, at as CreateOrganizationRequestSchema, b as publicKeystrokeAssetsObjectUrl, bn as ProjectSlugAvailabilityQuerySchema, br as WorkspaceTriggerListResponseSchema, bt as ErrorResponseSchema, c as isKeystrokeAssetsOrgLogoPublicUrl, cn as PROJECT_SLUG_TAKEN_MESSAGE, cr as WorkflowCanvasCredentialBindingsSchema, ct as CreateProjectRequestSchema, d as isStorageNotFoundError$1, dn as PresignOrgLogoRequestSchema, dr as WorkflowFormResponseSchema, dt as DEFAULT_TRIGGER_OVERVIEW_MODEL, ei as schemaHasFileFields, en as ManagedServiceKindSchema, er as UpdateProjectRequestSchema, et as CreateApiKeyResponseSchema, f as isUserAvatarStorageKey, fn as PresignOrgLogoResponseSchema, fr as WorkflowFormUpsertBodySchema, ft as DEFAULT_WORKFLOW_CANVAS_MODEL, gn as PresignUserAvatarResponseSchema, gr as WorkflowSummaryListResponseSchema, gt as DownloadActiveProjectArtifactResponseSchema, h as loadProjectSourceFiles, hn as PresignUserAvatarRequestSchema, hr as WorkflowSummaryDetailResponseSchema, ht as DeclineOrganizationInvitationResponseSchema, i as ensureKeystrokeAssetsBucket, ii as validateWorkflowRunInputValues, in as OpenApiDiscoverResponseSchema, ir as UserAvatarPatchSchema, it as CreateCustomAppResponseSchema, j as discoverOpenApiApp, jn as SkillSummaryListResponseSchema, jr as isHelloWorldTemplateSlug, jt as InviteOrganizationMembersRequestSchema, k as discoverGraphqlApp, kn as RecentResourceSchema, kr as displayCredentialAppName, kt as HistoryRunListQuerySchema, l as isOrgLogoStorageKey, ln as PresignChatAttachmentRequestSchema, lr as WorkflowCanvasRunSchema, lt as CreateProjectResponseSchema, m as keystrokeAssetsOrgLogoKeyFromPublicUrl, mn as PresignProjectSourceResponseSchema, mr as WorkflowRunInputsSchema, mt as DbProxyQueryRequestSchema, n as chatAttachmentStorageKey, ni as validateCredentialValueAgainstFields, nn as McpDiscoverResponseSchema, nr as UploadProjectSourceManifestRequestSchema, nt as CreateCredentialsResponseSchema, o as isChatAttachmentStorageKey, on as OrganizationSidebarBrandingSchema, or as UserPreferencesPatchSchema, ot as CreateOrganizationResponseSchema, p as keystrokeAssetsAvatarKeyFromPublicUrl, pn as PresignProjectSourceRequestSchema, pr as WorkflowRunInputsPutBodySchema, pt as DEFAULT_WORKFLOW_OVERVIEW_MODEL, q as AgentWorkspaceFileSummarySchema, qn as UpdateCredentialRequestSchema, qr as organizationSlugErrorCodeFromMessage, qt as ListProjectDeploymentsResponseSchema, r as createAssetsStorageClient, ri as validateFormFieldConfig, rn as OpenApiDiscoverRequestSchema, rr as UploadProjectSourceResponseSchema, rt as CreateCustomAppRequestSchema, s as isKeystrokeAssetsAvatarPublicUrl, sn as PLATFORM_RESOURCE_UNSUPPORTED_TEXT, sr as UserPreferencesSchema, st as CreateProjectArtifactResponseSchema, t as RouteManifestNotFoundError, ti as schemaHasUnsupportedFormFields, tn as McpDiscoverRequestSchema, tr as UpdateProjectSettingsRequestSchema, tt as CreateCredentialsRequestSchema, u as isStorageBucketNotFoundError, un as PresignChatAttachmentResponseSchema, ur as WorkflowCanvasSchema, ut as DEFAULT_CLOUD_PLATFORM_ORIGIN, v as projectArtifactKey, vn as ProjectResponseSchema, vr as WorkspaceTriggerDetailSchema, vt as DuplicateCredentialRequestSchema, w as cronPayloadSchema, wn as PublicFormSubmitBodySchema, wr as agentMemoryFileId, wt as GetCustomAppResponseSchema, x as userAvatarStorageKey, xn as ProjectSlugAvailabilityResponseSchema, xr as WorkspaceTriggerOverviewSchema, xt as FilePartSchema, y as projectSourceBlobKey, yn as ProjectSettingsResponseSchema, yr as WorkspaceTriggerFileSchema, yt as DuplicateCredentialsResponseSchema, z as setManagedServiceCredential, zn as SubmitMarketingContactResponseSchema, zr as mapProjectDeployment, zt as ListChannelPlatformsResponseSchema } from "./dist-eQl63aRD.mjs";
|
|
2
|
+
import { a as verifyOrgWorkerToken, i as pingProjectTarget, n as fetchDeployStatus, r as mintOrgWorkerToken } from "./dist-DrRimB9i.mjs";
|
|
3
3
|
import "./chunk-BZUGFHVS-B2NchobP.mjs";
|
|
4
4
|
import { n as d$4, t as _$1 } from "./chunk-TN7HHBQW-B8PYcKz5.mjs";
|
|
5
|
-
import { n as readWorkerTokenFromRequest, r as requireWorkerToken, t as withProjectScope } from "./with-project-scope-
|
|
5
|
+
import { n as readWorkerTokenFromRequest, r as requireWorkerToken, t as withProjectScope } from "./with-project-scope-DspchjQw.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
import "node:fs/promises";
|
|
9
|
-
import { acquireProjectDatabasePool, buildHistoryAgentSessionDetail, buildHistoryWorkflowRunDetail, cancelAgentSession, cancelWorkflowRun, clearCredentialInstanceDefaults, collectChildRunCancelTargets, deleteCredentialInstanceById, findHistoryRunCore, getProjectScopeId, getServerTenantScopeId, getWorkspaceTriggerById, listActiveAgents, listActiveSkills, listActiveWorkflows, listAllCredentialInstances, listAttachmentsByTriggerIds, listCredentialInstancesByConnectionId, listHistoryRuns, listRecentResourceActivity, listReplayEvents, listTriggersByIds, listWorkspaceTriggerRunRows, listWorkspaceTriggers, releaseProjectDatabasePool, resolveMigrationsFolder, runMigrations, runWithProjectDatabase, runWithProjectScope, runWithTenantScope, selectActiveAgentById, selectActiveAgentsByIds, selectActiveSkillById, selectActiveSkillsByIds, selectActiveWorkflowById, selectActiveWorkflowsByIds, selectAgentBySlug, selectAgentLastRunAtByIds, selectAgentSessionById, selectCredentialInstanceById, selectCredentialInstancesForScope, selectEphemeralTriggerAttachments, selectProjectResourceCounts, selectTriggerById, selectWorkflowCanvasAnnotations, selectWorkflowLastRunAtByIds, selectWorkflowOverview, selectWorkflowRunById, selectWorkflowRunForWorkflow, selectWorkflowRunInputValues, setTriggerAttachmentEnabledState, setTriggerOverviewGenerating, setWorkflowCanvasAnnotationsGenerating, setWorkflowOverviewGenerating, storedTriggerSourceFromRow, touchResourceActivity, triggerTimezoneFromConfig, updateTriggerOverview, updateWorkflowCanvasAnnotations, updateWorkflowOverview, updateWorkflowRunInputValues, upsertCredentialInstance } from "@keystrokehq/database";
|
|
9
|
+
import { acquireProjectDatabasePool, buildHistoryAgentSessionDetail, buildHistoryWorkflowRunDetail, cancelAgentSession, cancelWorkflowRun, clearCredentialInstanceDefaults, collectChildRunCancelTargets, deleteCredentialInstanceById, findHistoryRunCore, getProjectScopeId, getServerTenantScopeId, getWorkspaceTriggerById, listActiveAgents, listActiveSkills, listActiveWorkflows, listAllCredentialInstances, listAttachmentsByTriggerIds, listCredentialInstancesByConnectionId, listHistoryRuns, listRecentResourceActivity, listReplayEvents, listTriggersByIds, listWorkspaceTriggerRunRows, listWorkspaceTriggers, releaseProjectDatabasePool, resolveMigrationsFolder, runMigrations, runWithProjectDatabase, runWithProjectScope, runWithTenantScope, selectActiveAgentById, selectActiveAgentsByIds, selectActiveSkillById, selectActiveSkillsByIds, selectActiveWorkflowById, selectActiveWorkflowBySlug, selectActiveWorkflowsByIds, selectAgentBySlug, selectAgentLastRunAtByIds, selectAgentSessionById, selectCredentialInstanceById, selectCredentialInstancesForScope, selectEphemeralTriggerAttachments, selectProjectResourceCounts, selectTriggerById, selectWorkflowCanvasAnnotations, selectWorkflowLastRunAtByIds, selectWorkflowOverview, selectWorkflowRunById, selectWorkflowRunForWorkflow, selectWorkflowRunInputValues, setTriggerAttachmentEnabledState, setTriggerOverviewGenerating, setWorkflowCanvasAnnotationsGenerating, setWorkflowOverviewGenerating, storedTriggerSourceFromRow, touchResourceActivity, triggerTimezoneFromConfig, updateTriggerOverview, updateWorkflowCanvasAnnotations, updateWorkflowOverview, updateWorkflowRunInputValues, upsertCredentialInstance } from "@keystrokehq/database";
|
|
10
10
|
import { ZodError, z } from "zod";
|
|
11
11
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
12
|
-
import { CannotModifyOwnerError, OrgAppSlugTakenError, OrgPlatformApiKeyNotFoundError, OrganizationInvitationExpiredError, OrganizationInvitationForbiddenError, OrganizationInvitationNotFoundError, OrganizationMemberNotFoundError, OrganizationSlugTakenError, OrganizationSlugTakenError as OrganizationSlugTakenError$1, ProjectMemberNotFoundError, ProjectSlugTakenError, acceptInvitation, checkOrgAppSlugAvailability, checkOrganizationSlugAvailability, checkProjectSlugAvailability, completeProjectArtifact, countActiveMembersForOrganization, countActiveProjectsForOrganization, createOrgAgentStorageClient, createOrgApp, createOrgPlatformApiKey, createOrgStorageClient, createOrganizationForUser, createProjectForOrganization, declineInvitation, deleteOAuthConnectionById, deleteProjectForOrganization, encryptCredentialPayload as encryptCredentialPayload$1, ensureProjectPgBossGrants, ensureWebhookApiKeyForRoute, ensureWebhookApiKeys, getManagedServiceCredential, hasCredentialFieldTemplate, initDatabase, insertProjectArtifact, inviteOrganizationMembers, inviteProjectMembers, isOrganizationStorageBucketInUse, listAppsForOrganization, listManagedServiceCredentialsForOrganization, listOrgPlatformApiKeysForOrganization, listOrgPlatformApiKeysForUser, listUsageEventsForRuns, listWebhookApiKeysForProject, loadOrgPlatformApiKeyUser, mapOrgPlatformApiKeyCreator, mapOrgPlatformApiKeyCreatorOrDeleted, migrateAllOrgSchemas, orgSchedulerRuntimeEnv, orgWorkspacesRuntimeEnv, organizationRowToSidebarBranding, promoteProjectArtifact, removeOrganizationMember, removeProjectMember, resolveNewOrganizationIdentity, resolveOrgDatabaseUrl, resolveOrgProjectDatabaseOptions, resolveOrgRuntimeDatabase, revokeOrgPlatformApiKey, runWithOrganizationScope, runWithWorkspaceContext, selectActiveArtifactManifestForProject, selectActiveArtifactSourceManifestForProject, selectActiveProjectArtifactForProject, selectAppForOrganization, selectLastDeploymentAtByProject, selectManagedServiceCredentialById, selectOAuthConnectionsByIds, selectOrgPlatformApiKeyForOrganization, selectOrganizationById, selectOrganizationMembers, selectPendingInvitationsForUser, selectProjectArtifactById, selectProjectArtifactForProject, selectProjectArtifactSourceManifestForProject, selectProjectById, selectProjectDeployments, selectProjectForOrganization, selectProjectForOrganizationBySlug, selectProjectIdsForUser, selectProjectMembers, selectProjectsByOrganizationId, selectUserById, selectUserOrganizationMembership, selectUserOrganizations, selectUserProjectMembership, selectUsersByIds, summarizeUsageForRuns, updateOrganizationActive, updateOrganizationFailed, updateOrganizationMemberRole, updateOrganizationName, updateOrganizationSidebarBranding, updateOrganizationSlug, updateProjectActive, updateProjectArtifactManifest, updateProjectArtifactSourceManifest, updateProjectFailed, updateProjectForOrganization, updateProjectMemberRole, updateProjectSettings, updateUserById, verifyOrgPlatformApiKeySecret } from "@keystrokehq/platform-database";
|
|
12
|
+
import { CannotModifyOwnerError, OrgAppSlugTakenError, OrgPlatformApiKeyNotFoundError, OrganizationInvitationExpiredError, OrganizationInvitationForbiddenError, OrganizationInvitationNotFoundError, OrganizationMemberNotFoundError, OrganizationSlugTakenError, OrganizationSlugTakenError as OrganizationSlugTakenError$1, ProjectMemberNotFoundError, ProjectSlugTakenError, acceptInvitation, checkOrgAppSlugAvailability, checkOrganizationSlugAvailability, checkProjectSlugAvailability, completeProjectArtifact, countActiveMembersForOrganization, countActiveProjectsForOrganization, createOrgAgentStorageClient, createOrgApp, createOrgPlatformApiKey, createOrgStorageClient, createOrganizationForUser, createProjectForOrganization, declineInvitation, deleteOAuthConnectionById, deleteProjectForOrganization, encryptCredentialPayload as encryptCredentialPayload$1, ensureProjectPgBossGrants, ensureWebhookApiKeyForRoute, ensureWebhookApiKeys, getManagedServiceCredential, hasCredentialFieldTemplate, initDatabase, insertProjectArtifact, inviteOrganizationMembers, inviteProjectMembers, isOrganizationStorageBucketInUse, listAppsForOrganization, listManagedServiceCredentialsForOrganization, listOrgPlatformApiKeysForOrganization, listOrgPlatformApiKeysForUser, listUsageEventsForRuns, listWebhookApiKeysForProject, loadOrgPlatformApiKeyUser, mapOrgPlatformApiKeyCreator, mapOrgPlatformApiKeyCreatorOrDeleted, migrateAllOrgSchemas, orgSchedulerRuntimeEnv, orgWorkspacesRuntimeEnv, organizationRowToSidebarBranding, promoteProjectArtifact, removeOrganizationMember, removeProjectMember, resolveNewOrganizationIdentity, resolveOrgDatabaseUrl, resolveOrgProjectDatabaseOptions, resolveOrgRuntimeDatabase, revokeOrgPlatformApiKey, rotatePublishedFormToken, runWithOrganizationScope, runWithWorkspaceContext, selectActiveArtifactManifestForProject, selectActiveArtifactSourceManifestForProject, selectActiveProjectArtifactForProject, selectAppForOrganization, selectEnabledPublishedFormByToken, selectLastDeploymentAtByProject, selectManagedServiceCredentialById, selectOAuthConnectionsByIds, selectOrgPlatformApiKeyForOrganization, selectOrganizationById, selectOrganizationMembers, selectPendingInvitationsForUser, selectProjectArtifactById, selectProjectArtifactForProject, selectProjectArtifactSourceManifestForProject, selectProjectById, selectProjectDeployments, selectProjectForOrganization, selectProjectForOrganizationBySlug, selectProjectIdsForUser, selectProjectMembers, selectProjectsByOrganizationId, selectPublishedFormForWorkflow, selectUserById, selectUserOrganizationMembership, selectUserOrganizations, selectUserProjectMembership, selectUsersByIds, summarizeUsageForRuns, unpublishFormForWorkflow, updateOrganizationActive, updateOrganizationFailed, updateOrganizationMemberRole, updateOrganizationName, updateOrganizationSidebarBranding, updateOrganizationSlug, updateProjectActive, updateProjectArtifactManifest, updateProjectArtifactSourceManifest, updateProjectFailed, updateProjectForOrganization, updateProjectMemberRole, updateProjectSettings, updateUserById, upsertPublishedForm, verifyOrgPlatformApiKeySecret } from "@keystrokehq/platform-database";
|
|
13
13
|
import "node:fs";
|
|
14
14
|
import { basename, join, normalize, relative, resolve } from "node:path";
|
|
15
15
|
import { tmpdir } from "node:os";
|
|
@@ -22951,43 +22951,43 @@ var tt = [
|
|
|
22951
22951
|
},
|
|
22952
22952
|
{
|
|
22953
22953
|
name: "cat",
|
|
22954
|
-
load: async () => (await import("./cat-TSFMZVYS-
|
|
22954
|
+
load: async () => (await import("./cat-TSFMZVYS-tvefinmN.mjs")).catCommand
|
|
22955
22955
|
},
|
|
22956
22956
|
{
|
|
22957
22957
|
name: "printf",
|
|
22958
|
-
load: async () => (await import("./printf-TWGXF445-
|
|
22958
|
+
load: async () => (await import("./printf-TWGXF445-DcwmUW1i.mjs")).printfCommand
|
|
22959
22959
|
},
|
|
22960
22960
|
{
|
|
22961
22961
|
name: "ls",
|
|
22962
|
-
load: async () => (await import("./ls-ZJGQER7M-
|
|
22962
|
+
load: async () => (await import("./ls-ZJGQER7M-DdElrkfY.mjs")).lsCommand
|
|
22963
22963
|
},
|
|
22964
22964
|
{
|
|
22965
22965
|
name: "mkdir",
|
|
22966
|
-
load: async () => (await import("./mkdir-MEPGZOB6-
|
|
22966
|
+
load: async () => (await import("./mkdir-MEPGZOB6-DCN8JTwb.mjs")).mkdirCommand
|
|
22967
22967
|
},
|
|
22968
22968
|
{
|
|
22969
22969
|
name: "rmdir",
|
|
22970
|
-
load: async () => (await import("./rmdir-OC4ZLPYA-
|
|
22970
|
+
load: async () => (await import("./rmdir-OC4ZLPYA-CFhB0CuH.mjs")).rmdirCommand
|
|
22971
22971
|
},
|
|
22972
22972
|
{
|
|
22973
22973
|
name: "touch",
|
|
22974
|
-
load: async () => (await import("./touch-UA33VN3N-
|
|
22974
|
+
load: async () => (await import("./touch-UA33VN3N-DVP0DAhz.mjs")).touchCommand
|
|
22975
22975
|
},
|
|
22976
22976
|
{
|
|
22977
22977
|
name: "rm",
|
|
22978
|
-
load: async () => (await import("./rm-SSGETQVQ-
|
|
22978
|
+
load: async () => (await import("./rm-SSGETQVQ-Be1ZnMPC.mjs")).rmCommand
|
|
22979
22979
|
},
|
|
22980
22980
|
{
|
|
22981
22981
|
name: "cp",
|
|
22982
|
-
load: async () => (await import("./cp-BISAAS7A-
|
|
22982
|
+
load: async () => (await import("./cp-BISAAS7A-Co0_R2UM.mjs")).cpCommand
|
|
22983
22983
|
},
|
|
22984
22984
|
{
|
|
22985
22985
|
name: "mv",
|
|
22986
|
-
load: async () => (await import("./mv-W5BIQ646-
|
|
22986
|
+
load: async () => (await import("./mv-W5BIQ646-CHd3k93r.mjs")).mvCommand
|
|
22987
22987
|
},
|
|
22988
22988
|
{
|
|
22989
22989
|
name: "ln",
|
|
22990
|
-
load: async () => (await import("./ln-4LGSXXGD-
|
|
22990
|
+
load: async () => (await import("./ln-4LGSXXGD-D4fL_qeK.mjs")).lnCommand
|
|
22991
22991
|
},
|
|
22992
22992
|
{
|
|
22993
22993
|
name: "chmod",
|
|
@@ -23003,15 +23003,15 @@ var tt = [
|
|
|
23003
23003
|
},
|
|
23004
23004
|
{
|
|
23005
23005
|
name: "head",
|
|
23006
|
-
load: async () => (await import("./head-442HYESI-
|
|
23006
|
+
load: async () => (await import("./head-442HYESI-DiOJUK2Z.mjs")).headCommand
|
|
23007
23007
|
},
|
|
23008
23008
|
{
|
|
23009
23009
|
name: "tail",
|
|
23010
|
-
load: async () => (await import("./tail-R4PCA2C4-
|
|
23010
|
+
load: async () => (await import("./tail-R4PCA2C4-Olrv6MPs.mjs")).tailCommand
|
|
23011
23011
|
},
|
|
23012
23012
|
{
|
|
23013
23013
|
name: "wc",
|
|
23014
|
-
load: async () => (await import("./wc-LF7NU4LA-
|
|
23014
|
+
load: async () => (await import("./wc-LF7NU4LA-xfRNjI6X.mjs")).wcCommand
|
|
23015
23015
|
},
|
|
23016
23016
|
{
|
|
23017
23017
|
name: "stat",
|
|
@@ -23019,95 +23019,95 @@ var tt = [
|
|
|
23019
23019
|
},
|
|
23020
23020
|
{
|
|
23021
23021
|
name: "grep",
|
|
23022
|
-
load: async () => (await import("./grep-V3LQVMRQ-
|
|
23022
|
+
load: async () => (await import("./grep-V3LQVMRQ-D7sTJLbC.mjs")).grepCommand
|
|
23023
23023
|
},
|
|
23024
23024
|
{
|
|
23025
23025
|
name: "fgrep",
|
|
23026
|
-
load: async () => (await import("./grep-V3LQVMRQ-
|
|
23026
|
+
load: async () => (await import("./grep-V3LQVMRQ-D7sTJLbC.mjs")).fgrepCommand
|
|
23027
23027
|
},
|
|
23028
23028
|
{
|
|
23029
23029
|
name: "egrep",
|
|
23030
|
-
load: async () => (await import("./grep-V3LQVMRQ-
|
|
23030
|
+
load: async () => (await import("./grep-V3LQVMRQ-D7sTJLbC.mjs")).egrepCommand
|
|
23031
23031
|
},
|
|
23032
23032
|
{
|
|
23033
23033
|
name: "rg",
|
|
23034
|
-
load: async () => (await import("./rg-S4FXYXWB-
|
|
23034
|
+
load: async () => (await import("./rg-S4FXYXWB-DjWw-Uzk.mjs")).rgCommand
|
|
23035
23035
|
},
|
|
23036
23036
|
{
|
|
23037
23037
|
name: "sed",
|
|
23038
|
-
load: async () => (await import("./sed-S5UIK574-
|
|
23038
|
+
load: async () => (await import("./sed-S5UIK574-B7WRGcb1.mjs")).sedCommand
|
|
23039
23039
|
},
|
|
23040
23040
|
{
|
|
23041
23041
|
name: "awk",
|
|
23042
|
-
load: async () => (await import("./awk2-LA3USKJP-
|
|
23042
|
+
load: async () => (await import("./awk2-LA3USKJP-eBd8EqT_.mjs")).awkCommand2
|
|
23043
23043
|
},
|
|
23044
23044
|
{
|
|
23045
23045
|
name: "sort",
|
|
23046
|
-
load: async () => (await import("./sort-SW2YEO5B-
|
|
23046
|
+
load: async () => (await import("./sort-SW2YEO5B-DSUbOjDo.mjs")).sortCommand
|
|
23047
23047
|
},
|
|
23048
23048
|
{
|
|
23049
23049
|
name: "uniq",
|
|
23050
|
-
load: async () => (await import("./uniq-XSIZR6PB-
|
|
23050
|
+
load: async () => (await import("./uniq-XSIZR6PB-CPoJMqsr.mjs")).uniqCommand
|
|
23051
23051
|
},
|
|
23052
23052
|
{
|
|
23053
23053
|
name: "comm",
|
|
23054
|
-
load: async () => (await import("./comm-VV2LDX2J-
|
|
23054
|
+
load: async () => (await import("./comm-VV2LDX2J-DFpnhh6Z.mjs")).commCommand
|
|
23055
23055
|
},
|
|
23056
23056
|
{
|
|
23057
23057
|
name: "cut",
|
|
23058
|
-
load: async () => (await import("./cut-OKARJCCV-
|
|
23058
|
+
load: async () => (await import("./cut-OKARJCCV-0NeqcNHe.mjs")).cutCommand
|
|
23059
23059
|
},
|
|
23060
23060
|
{
|
|
23061
23061
|
name: "paste",
|
|
23062
|
-
load: async () => (await import("./paste-7JC6S4DX-
|
|
23062
|
+
load: async () => (await import("./paste-7JC6S4DX-BuG2NUSa.mjs")).pasteCommand
|
|
23063
23063
|
},
|
|
23064
23064
|
{
|
|
23065
23065
|
name: "tr",
|
|
23066
|
-
load: async () => (await import("./tr-36LHWFRQ-
|
|
23066
|
+
load: async () => (await import("./tr-36LHWFRQ-D1dpXe5R.mjs")).trCommand
|
|
23067
23067
|
},
|
|
23068
23068
|
{
|
|
23069
23069
|
name: "rev",
|
|
23070
|
-
load: async () => (await import("./rev-5EHFX4EJ-
|
|
23070
|
+
load: async () => (await import("./rev-5EHFX4EJ-CAWa9BdN.mjs")).rev
|
|
23071
23071
|
},
|
|
23072
23072
|
{
|
|
23073
23073
|
name: "nl",
|
|
23074
|
-
load: async () => (await import("./nl-WSDW7I4O-
|
|
23074
|
+
load: async () => (await import("./nl-WSDW7I4O-C96-5kxm.mjs")).nl
|
|
23075
23075
|
},
|
|
23076
23076
|
{
|
|
23077
23077
|
name: "fold",
|
|
23078
|
-
load: async () => (await import("./fold-4TQNYMSW-
|
|
23078
|
+
load: async () => (await import("./fold-4TQNYMSW-BJ0fLPRy.mjs")).fold
|
|
23079
23079
|
},
|
|
23080
23080
|
{
|
|
23081
23081
|
name: "expand",
|
|
23082
|
-
load: async () => (await import("./expand-JSPG6VOP-
|
|
23082
|
+
load: async () => (await import("./expand-JSPG6VOP-BqFO4uwS.mjs")).expand
|
|
23083
23083
|
},
|
|
23084
23084
|
{
|
|
23085
23085
|
name: "unexpand",
|
|
23086
|
-
load: async () => (await import("./unexpand-CADSA4VO-
|
|
23086
|
+
load: async () => (await import("./unexpand-CADSA4VO-DK3u7Ifi.mjs")).unexpand
|
|
23087
23087
|
},
|
|
23088
23088
|
{
|
|
23089
23089
|
name: "strings",
|
|
23090
|
-
load: async () => (await import("./strings-6WDHLGMX-
|
|
23090
|
+
load: async () => (await import("./strings-6WDHLGMX-DGi_QpNk.mjs")).strings
|
|
23091
23091
|
},
|
|
23092
23092
|
{
|
|
23093
23093
|
name: "split",
|
|
23094
|
-
load: async () => (await import("./split-4KKZZXXE-
|
|
23094
|
+
load: async () => (await import("./split-4KKZZXXE-VX3ERx0w.mjs")).split
|
|
23095
23095
|
},
|
|
23096
23096
|
{
|
|
23097
23097
|
name: "column",
|
|
23098
|
-
load: async () => (await import("./column-XT6UFXNQ-
|
|
23098
|
+
load: async () => (await import("./column-XT6UFXNQ-Dy2nEf6-.mjs")).column
|
|
23099
23099
|
},
|
|
23100
23100
|
{
|
|
23101
23101
|
name: "join",
|
|
23102
|
-
load: async () => (await import("./join-TBRGI3LQ-
|
|
23102
|
+
load: async () => (await import("./join-TBRGI3LQ-62DecWHZ.mjs")).join
|
|
23103
23103
|
},
|
|
23104
23104
|
{
|
|
23105
23105
|
name: "tee",
|
|
23106
|
-
load: async () => (await import("./tee-YUZ2FKCJ-
|
|
23106
|
+
load: async () => (await import("./tee-YUZ2FKCJ-CzIaW88r.mjs")).teeCommand
|
|
23107
23107
|
},
|
|
23108
23108
|
{
|
|
23109
23109
|
name: "find",
|
|
23110
|
-
load: async () => (await import("./find-INTH3OLC-
|
|
23110
|
+
load: async () => (await import("./find-INTH3OLC-ClAEBv35.mjs")).findCommand
|
|
23111
23111
|
},
|
|
23112
23112
|
{
|
|
23113
23113
|
name: "basename",
|
|
@@ -23119,19 +23119,19 @@ var tt = [
|
|
|
23119
23119
|
},
|
|
23120
23120
|
{
|
|
23121
23121
|
name: "tree",
|
|
23122
|
-
load: async () => (await import("./tree-YLD52CNT-
|
|
23122
|
+
load: async () => (await import("./tree-YLD52CNT-Dpwqy_aj.mjs")).treeCommand
|
|
23123
23123
|
},
|
|
23124
23124
|
{
|
|
23125
23125
|
name: "du",
|
|
23126
|
-
load: async () => (await import("./du-572XNP42-
|
|
23126
|
+
load: async () => (await import("./du-572XNP42-Chu_y70-.mjs")).duCommand
|
|
23127
23127
|
},
|
|
23128
23128
|
{
|
|
23129
23129
|
name: "env",
|
|
23130
|
-
load: async () => (await import("./env-36M5BO7M-
|
|
23130
|
+
load: async () => (await import("./env-36M5BO7M-wUL-yVV2.mjs")).envCommand
|
|
23131
23131
|
},
|
|
23132
23132
|
{
|
|
23133
23133
|
name: "printenv",
|
|
23134
|
-
load: async () => (await import("./env-36M5BO7M-
|
|
23134
|
+
load: async () => (await import("./env-36M5BO7M-wUL-yVV2.mjs")).printenvCommand
|
|
23135
23135
|
},
|
|
23136
23136
|
{
|
|
23137
23137
|
name: "alias",
|
|
@@ -23147,7 +23147,7 @@ var tt = [
|
|
|
23147
23147
|
},
|
|
23148
23148
|
{
|
|
23149
23149
|
name: "xargs",
|
|
23150
|
-
load: async () => (await import("./xargs-MGZPH7AX-
|
|
23150
|
+
load: async () => (await import("./xargs-MGZPH7AX-BCx_MFy9.mjs")).xargsCommand
|
|
23151
23151
|
},
|
|
23152
23152
|
{
|
|
23153
23153
|
name: "true",
|
|
@@ -23163,23 +23163,23 @@ var tt = [
|
|
|
23163
23163
|
},
|
|
23164
23164
|
{
|
|
23165
23165
|
name: "bash",
|
|
23166
|
-
load: async () => (await import("./bash-YZ33HQZQ-
|
|
23166
|
+
load: async () => (await import("./bash-YZ33HQZQ-D7uXAHzi.mjs")).bashCommand
|
|
23167
23167
|
},
|
|
23168
23168
|
{
|
|
23169
23169
|
name: "sh",
|
|
23170
|
-
load: async () => (await import("./bash-YZ33HQZQ-
|
|
23170
|
+
load: async () => (await import("./bash-YZ33HQZQ-D7uXAHzi.mjs")).shCommand
|
|
23171
23171
|
},
|
|
23172
23172
|
{
|
|
23173
23173
|
name: "jq",
|
|
23174
|
-
load: async () => (await import("./jq-4XLYLOS5-
|
|
23174
|
+
load: async () => (await import("./jq-4XLYLOS5-BDNs0u1q.mjs")).jqCommand
|
|
23175
23175
|
},
|
|
23176
23176
|
{
|
|
23177
23177
|
name: "base64",
|
|
23178
|
-
load: async () => (await import("./base64-C2AIWVNC-
|
|
23178
|
+
load: async () => (await import("./base64-C2AIWVNC-C1V3z5lW.mjs")).base64Command
|
|
23179
23179
|
},
|
|
23180
23180
|
{
|
|
23181
23181
|
name: "diff",
|
|
23182
|
-
load: async () => (await import("./diff-MWJFIG7X-
|
|
23182
|
+
load: async () => (await import("./diff-MWJFIG7X-ChxON6iS.mjs")).diffCommand
|
|
23183
23183
|
},
|
|
23184
23184
|
{
|
|
23185
23185
|
name: "date",
|
|
@@ -23187,15 +23187,15 @@ var tt = [
|
|
|
23187
23187
|
},
|
|
23188
23188
|
{
|
|
23189
23189
|
name: "sleep",
|
|
23190
|
-
load: async () => (await import("./sleep-X22JJINO-
|
|
23190
|
+
load: async () => (await import("./sleep-X22JJINO-BLYwrsQC.mjs")).sleepCommand
|
|
23191
23191
|
},
|
|
23192
23192
|
{
|
|
23193
23193
|
name: "timeout",
|
|
23194
|
-
load: async () => (await import("./timeout-YDCRSLPQ-
|
|
23194
|
+
load: async () => (await import("./timeout-YDCRSLPQ-C886ftpo.mjs")).timeoutCommand
|
|
23195
23195
|
},
|
|
23196
23196
|
{
|
|
23197
23197
|
name: "time",
|
|
23198
|
-
load: async () => (await import("./time-D4LNBSWX-
|
|
23198
|
+
load: async () => (await import("./time-D4LNBSWX-COqbWdRt.mjs")).timeCommand
|
|
23199
23199
|
},
|
|
23200
23200
|
{
|
|
23201
23201
|
name: "seq",
|
|
@@ -23203,19 +23203,19 @@ var tt = [
|
|
|
23203
23203
|
},
|
|
23204
23204
|
{
|
|
23205
23205
|
name: "expr",
|
|
23206
|
-
load: async () => (await import("./expr-5JAACS4X-
|
|
23206
|
+
load: async () => (await import("./expr-5JAACS4X-CNE0lloT.mjs")).exprCommand
|
|
23207
23207
|
},
|
|
23208
23208
|
{
|
|
23209
23209
|
name: "md5sum",
|
|
23210
|
-
load: async () => (await import("./md5sum-SPU24VSG-
|
|
23210
|
+
load: async () => (await import("./md5sum-SPU24VSG-DQ-SbpUg.mjs")).md5sumCommand
|
|
23211
23211
|
},
|
|
23212
23212
|
{
|
|
23213
23213
|
name: "sha1sum",
|
|
23214
|
-
load: async () => (await import("./sha1sum-2PTOAFR6-
|
|
23214
|
+
load: async () => (await import("./sha1sum-2PTOAFR6-DucVA5xh.mjs")).sha1sumCommand
|
|
23215
23215
|
},
|
|
23216
23216
|
{
|
|
23217
23217
|
name: "sha256sum",
|
|
23218
|
-
load: async () => (await import("./sha256sum-NS7D3IXX-
|
|
23218
|
+
load: async () => (await import("./sha256sum-NS7D3IXX-CGI7sHjq.mjs")).sha256sumCommand
|
|
23219
23219
|
},
|
|
23220
23220
|
{
|
|
23221
23221
|
name: "file",
|
|
@@ -23223,11 +23223,11 @@ var tt = [
|
|
|
23223
23223
|
},
|
|
23224
23224
|
{
|
|
23225
23225
|
name: "html-to-markdown",
|
|
23226
|
-
load: async () => (await import("./html-to-markdown-JW4MSQZO-
|
|
23226
|
+
load: async () => (await import("./html-to-markdown-JW4MSQZO-rfl1Sdxn.mjs")).htmlToMarkdownCommand
|
|
23227
23227
|
},
|
|
23228
23228
|
{
|
|
23229
23229
|
name: "help",
|
|
23230
|
-
load: async () => (await import("./help-HZ6M2CKN-
|
|
23230
|
+
load: async () => (await import("./help-HZ6M2CKN-KVaFwiLC.mjs")).helpCommand
|
|
23231
23231
|
},
|
|
23232
23232
|
{
|
|
23233
23233
|
name: "which",
|
|
@@ -23235,7 +23235,7 @@ var tt = [
|
|
|
23235
23235
|
},
|
|
23236
23236
|
{
|
|
23237
23237
|
name: "tac",
|
|
23238
|
-
load: async () => (await import("./tac-2STMMJYW-
|
|
23238
|
+
load: async () => (await import("./tac-2STMMJYW-BxJweAI9.mjs")).tac
|
|
23239
23239
|
},
|
|
23240
23240
|
{
|
|
23241
23241
|
name: "hostname",
|
|
@@ -23247,49 +23247,49 @@ var tt = [
|
|
|
23247
23247
|
},
|
|
23248
23248
|
{
|
|
23249
23249
|
name: "od",
|
|
23250
|
-
load: async () => (await import("./od-WOKFDJTP-
|
|
23250
|
+
load: async () => (await import("./od-WOKFDJTP-CUdxF2ZZ.mjs")).od
|
|
23251
23251
|
},
|
|
23252
23252
|
{
|
|
23253
23253
|
name: "gzip",
|
|
23254
|
-
load: async () => (await import("./gzip-O5ASJAFY-
|
|
23254
|
+
load: async () => (await import("./gzip-O5ASJAFY-Bl0imilf.mjs")).gzipCommand
|
|
23255
23255
|
},
|
|
23256
23256
|
{
|
|
23257
23257
|
name: "gunzip",
|
|
23258
|
-
load: async () => (await import("./gzip-O5ASJAFY-
|
|
23258
|
+
load: async () => (await import("./gzip-O5ASJAFY-Bl0imilf.mjs")).gunzipCommand
|
|
23259
23259
|
},
|
|
23260
23260
|
{
|
|
23261
23261
|
name: "zcat",
|
|
23262
|
-
load: async () => (await import("./gzip-O5ASJAFY-
|
|
23262
|
+
load: async () => (await import("./gzip-O5ASJAFY-Bl0imilf.mjs")).zcatCommand
|
|
23263
23263
|
}
|
|
23264
23264
|
];
|
|
23265
23265
|
(typeof __BROWSER__ > "u" || !__BROWSER__) && (tt.push({
|
|
23266
23266
|
name: "tar",
|
|
23267
|
-
load: async () => (await import("./tar-STHHZTZ6-
|
|
23267
|
+
load: async () => (await import("./tar-STHHZTZ6-Cm-5_Z-6.mjs")).tarCommand
|
|
23268
23268
|
}), tt.push({
|
|
23269
23269
|
name: "yq",
|
|
23270
|
-
load: async () => (await import("./yq-4QJW3EQG-
|
|
23270
|
+
load: async () => (await import("./yq-4QJW3EQG-CoKDAaTD.mjs")).yqCommand
|
|
23271
23271
|
}), tt.push({
|
|
23272
23272
|
name: "xan",
|
|
23273
|
-
load: async () => (await import("./xan-Y6WF3IRG-
|
|
23273
|
+
load: async () => (await import("./xan-Y6WF3IRG-W2FDm9Kk.mjs")).xanCommand
|
|
23274
23274
|
}), tt.push({
|
|
23275
23275
|
name: "sqlite3",
|
|
23276
|
-
load: async () => (await import("./sqlite3-CGOEFJAO-
|
|
23276
|
+
load: async () => (await import("./sqlite3-CGOEFJAO-BotHxbsW.mjs")).sqlite3Command
|
|
23277
23277
|
}));
|
|
23278
23278
|
var Yt = [];
|
|
23279
23279
|
(typeof __BROWSER__ > "u" || !__BROWSER__) && (Yt.push({
|
|
23280
23280
|
name: "python3",
|
|
23281
|
-
load: async () => (await import("./python3-POMOR4OA-
|
|
23281
|
+
load: async () => (await import("./python3-POMOR4OA-_tOY0g4e.mjs")).python3Command
|
|
23282
23282
|
}), Yt.push({
|
|
23283
23283
|
name: "python",
|
|
23284
|
-
load: async () => (await import("./python3-POMOR4OA-
|
|
23284
|
+
load: async () => (await import("./python3-POMOR4OA-_tOY0g4e.mjs")).pythonCommand
|
|
23285
23285
|
}));
|
|
23286
23286
|
var Qt = [];
|
|
23287
23287
|
(typeof __BROWSER__ > "u" || !__BROWSER__) && (Qt.push({
|
|
23288
23288
|
name: "js-exec",
|
|
23289
|
-
load: async () => (await import("./js-exec-N5KEZBH7-
|
|
23289
|
+
load: async () => (await import("./js-exec-N5KEZBH7-C6DEo4pY.mjs")).jsExecCommand
|
|
23290
23290
|
}), Qt.push({
|
|
23291
23291
|
name: "node",
|
|
23292
|
-
load: async () => (await import("./js-exec-N5KEZBH7-
|
|
23292
|
+
load: async () => (await import("./js-exec-N5KEZBH7-C6DEo4pY.mjs")).nodeStubCommand
|
|
23293
23293
|
}));
|
|
23294
23294
|
new TextEncoder();
|
|
23295
23295
|
Object.freeze({
|
|
@@ -25951,7 +25951,7 @@ function withOrganizationProjectDatabase() {
|
|
|
25951
25951
|
trace.getTracer("keystroke.http");
|
|
25952
25952
|
//#endregion
|
|
25953
25953
|
//#region src/routes/account/users/me/avatar/GET.ts
|
|
25954
|
-
const handler$
|
|
25954
|
+
const handler$107 = async (c) => {
|
|
25955
25955
|
const dbUser = await selectUserById(c.get("user").id);
|
|
25956
25956
|
if (!dbUser) return c.json(ErrorResponseSchema.parse({ error: "User not found" }), 404);
|
|
25957
25957
|
return c.json(UserAvatarSchema.parse({ url: dbUser.image ?? null }));
|
|
@@ -25970,7 +25970,7 @@ function avatarExtensionForContentType(contentType) {
|
|
|
25970
25970
|
}
|
|
25971
25971
|
//#endregion
|
|
25972
25972
|
//#region src/routes/account/users/me/avatar/presign/POST.ts
|
|
25973
|
-
const handler$
|
|
25973
|
+
const handler$106 = async (c) => {
|
|
25974
25974
|
const parsed = PresignUserAvatarRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
25975
25975
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid avatar upload request" }), 400);
|
|
25976
25976
|
const extension = avatarExtensionForContentType(parsed.data.contentType);
|
|
@@ -26010,7 +26010,7 @@ async function deleteStoredImageIfOwned(input) {
|
|
|
26010
26010
|
}
|
|
26011
26011
|
//#endregion
|
|
26012
26012
|
//#region src/routes/account/users/me/avatar/PATCH.ts
|
|
26013
|
-
const handler$
|
|
26013
|
+
const handler$105 = async (c) => {
|
|
26014
26014
|
const parsed = UserAvatarPatchSchema.safeParse(await c.req.json().catch(() => null));
|
|
26015
26015
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid avatar update" }), 400);
|
|
26016
26016
|
const user = c.get("user");
|
|
@@ -26052,14 +26052,14 @@ const handler$100 = async (c) => {
|
|
|
26052
26052
|
};
|
|
26053
26053
|
//#endregion
|
|
26054
26054
|
//#region src/routes/account/users/me/preferences/GET.ts
|
|
26055
|
-
const handler$
|
|
26055
|
+
const handler$104 = async (c) => {
|
|
26056
26056
|
const dbUser = await selectUserById(c.get("user").id);
|
|
26057
26057
|
if (!dbUser) return c.json(ErrorResponseSchema.parse({ error: "User not found" }), 404);
|
|
26058
26058
|
return c.json(UserPreferencesSchema.parse(normalizeUserPreferences(dbUser.preferences)));
|
|
26059
26059
|
};
|
|
26060
26060
|
//#endregion
|
|
26061
26061
|
//#region src/routes/account/users/me/preferences/PATCH.ts
|
|
26062
|
-
const handler$
|
|
26062
|
+
const handler$103 = async (c) => {
|
|
26063
26063
|
const parsed = UserPreferencesPatchSchema.safeParse(await c.req.json().catch(() => null));
|
|
26064
26064
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid preferences update" }), 400);
|
|
26065
26065
|
const user = c.get("user");
|
|
@@ -26074,7 +26074,7 @@ const handler$98 = async (c) => {
|
|
|
26074
26074
|
};
|
|
26075
26075
|
//#endregion
|
|
26076
26076
|
//#region src/routes/account/organizations/GET.ts
|
|
26077
|
-
const handler$
|
|
26077
|
+
const handler$102 = async (c) => {
|
|
26078
26078
|
const memberships = await selectUserOrganizations(c.get("user").id);
|
|
26079
26079
|
return c.json(ListOrganizationsResponseSchema.parse(memberships.map(mapUserOrganization)));
|
|
26080
26080
|
};
|
|
@@ -26197,7 +26197,7 @@ function createOrganizationHandler(deps) {
|
|
|
26197
26197
|
}
|
|
26198
26198
|
//#endregion
|
|
26199
26199
|
//#region src/routes/account/organizations/slug-available/GET.ts
|
|
26200
|
-
const handler$
|
|
26200
|
+
const handler$101 = async (c) => {
|
|
26201
26201
|
const parsed = SlugAvailabilityQuerySchema.safeParse({
|
|
26202
26202
|
slug: c.req.query("slug"),
|
|
26203
26203
|
excludeOrganizationId: c.req.query("excludeOrganizationId")
|
|
@@ -26208,7 +26208,7 @@ const handler$96 = async (c) => {
|
|
|
26208
26208
|
};
|
|
26209
26209
|
//#endregion
|
|
26210
26210
|
//#region src/routes/account/organizations/[organizationId]/GET.ts
|
|
26211
|
-
const handler$
|
|
26211
|
+
const handler$100 = async (c) => {
|
|
26212
26212
|
const { organizationId } = c.get("organization");
|
|
26213
26213
|
const membership = await selectUserOrganizationMembership(c.get("user").id, organizationId);
|
|
26214
26214
|
if (!membership) throw new Error(`Organization membership missing after param guard: ${organizationId}`);
|
|
@@ -26216,7 +26216,7 @@ const handler$95 = async (c) => {
|
|
|
26216
26216
|
};
|
|
26217
26217
|
//#endregion
|
|
26218
26218
|
//#region src/routes/account/organizations/[organizationId]/PATCH.ts
|
|
26219
|
-
const handler$
|
|
26219
|
+
const handler$99 = async (c) => {
|
|
26220
26220
|
const organization = c.get("organization");
|
|
26221
26221
|
const body = await c.req.json().catch(() => null);
|
|
26222
26222
|
const parsed = UpdateOrganizationRequestSchema.safeParse(body);
|
|
@@ -26241,7 +26241,7 @@ const handler$94 = async (c) => {
|
|
|
26241
26241
|
};
|
|
26242
26242
|
//#endregion
|
|
26243
26243
|
//#region src/routes/account/organizations/[organizationId]/branding/GET.ts
|
|
26244
|
-
const handler$
|
|
26244
|
+
const handler$98 = async (c) => {
|
|
26245
26245
|
const { organizationId } = c.get("organization");
|
|
26246
26246
|
const organization = await selectOrganizationById(organizationId);
|
|
26247
26247
|
if (!organization) return c.json(ErrorResponseSchema.parse({ error: "Organization not found" }), 404);
|
|
@@ -26290,7 +26290,7 @@ async function finalizeOrgLogoVariant(input) {
|
|
|
26290
26290
|
publicUrl: finalized.publicUrl
|
|
26291
26291
|
};
|
|
26292
26292
|
}
|
|
26293
|
-
const handler$
|
|
26293
|
+
const handler$97 = async (c) => {
|
|
26294
26294
|
const parsed = OrganizationSidebarBrandingPatchSchema.safeParse(await c.req.json().catch(() => null));
|
|
26295
26295
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid branding update" }), 400);
|
|
26296
26296
|
const { organizationId } = c.get("organization");
|
|
@@ -26318,7 +26318,7 @@ const handler$92 = async (c) => {
|
|
|
26318
26318
|
};
|
|
26319
26319
|
//#endregion
|
|
26320
26320
|
//#region src/routes/account/organizations/[organizationId]/branding/logo/presign/POST.ts
|
|
26321
|
-
const handler$
|
|
26321
|
+
const handler$96 = async (c) => {
|
|
26322
26322
|
const parsed = PresignOrgLogoRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
26323
26323
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid logo upload request" }), 400);
|
|
26324
26324
|
const extension = avatarExtensionForContentType(parsed.data.contentType);
|
|
@@ -26528,7 +26528,7 @@ function buildPlatformHistoryUsage(events, durationMs) {
|
|
|
26528
26528
|
}
|
|
26529
26529
|
//#endregion
|
|
26530
26530
|
//#region src/routes/account/history/GET.ts
|
|
26531
|
-
const handler$
|
|
26531
|
+
const handler$95 = async (c) => {
|
|
26532
26532
|
const organization = c.get("organization");
|
|
26533
26533
|
const ctx = accessContext(c);
|
|
26534
26534
|
const query = HistoryRunListQuerySchema.parse({
|
|
@@ -26553,7 +26553,7 @@ const handler$90 = async (c) => {
|
|
|
26553
26553
|
};
|
|
26554
26554
|
//#endregion
|
|
26555
26555
|
//#region src/routes/account/history/[runId]/GET.ts
|
|
26556
|
-
const handler$
|
|
26556
|
+
const handler$94 = async (c) => {
|
|
26557
26557
|
const runId = c.req.param("runId") ?? "";
|
|
26558
26558
|
if (!runId) return c.json(null, 404);
|
|
26559
26559
|
const core = await findHistoryRunCore(runId);
|
|
@@ -26613,7 +26613,7 @@ function toAgentSummary(row, options) {
|
|
|
26613
26613
|
}
|
|
26614
26614
|
//#endregion
|
|
26615
26615
|
//#region src/routes/account/agents/GET.ts
|
|
26616
|
-
const handler$
|
|
26616
|
+
const handler$93 = async (c) => {
|
|
26617
26617
|
const filter = await resolveListProjectIds(c, listScope(c, agentListScope(accessContext(c))), c.req.query("projectId"));
|
|
26618
26618
|
if (filter === "empty") return c.json(AgentSummaryListResponseSchema.parse([]));
|
|
26619
26619
|
const rows = await listActiveAgents(filter);
|
|
@@ -26627,7 +26627,7 @@ function touchResourceActivityBestEffort(options) {
|
|
|
26627
26627
|
}
|
|
26628
26628
|
//#endregion
|
|
26629
26629
|
//#region src/routes/account/agents/[agentId]/GET.ts
|
|
26630
|
-
const handler$
|
|
26630
|
+
const handler$92 = async (c) => {
|
|
26631
26631
|
const agentId = c.req.param("agentId") ?? "";
|
|
26632
26632
|
const row = agentId ? await selectActiveAgentById(agentId) : void 0;
|
|
26633
26633
|
if (!row || !await canAccessProjectId(c, row.projectId, canAccessAgent)) return c.json(AgentSummaryDetailResponseSchema.parse(null));
|
|
@@ -26650,7 +26650,7 @@ const handler$87 = async (c) => {
|
|
|
26650
26650
|
function relativePathsFromStorageKeys(prefix, keys) {
|
|
26651
26651
|
return keys.filter((key) => key.startsWith(prefix) && key.endsWith(".md")).map((key) => key.slice(prefix.length)).filter((path) => !path.startsWith(".") && !path.includes("/."));
|
|
26652
26652
|
}
|
|
26653
|
-
const handler$
|
|
26653
|
+
const handler$91 = async (c) => {
|
|
26654
26654
|
const agentId = c.req.param("agentId") ?? "";
|
|
26655
26655
|
const row = agentId ? await selectActiveAgentById(agentId) : void 0;
|
|
26656
26656
|
if (!row || !await canAccessProjectId(c, row.projectId, canAccessAgent)) return c.json(ListAgentMemoryFilesResponseSchema.parse({ files: [] }), 404);
|
|
@@ -26675,7 +26675,7 @@ function isStorageNotFoundError(error) {
|
|
|
26675
26675
|
const status = typeof record.$metadata === "object" && record.$metadata !== null ? record.$metadata.httpStatusCode : void 0;
|
|
26676
26676
|
return name === "NoSuchKey" || code === "NoSuchKey" || code === "NotFound" || status === 404;
|
|
26677
26677
|
}
|
|
26678
|
-
const handler$
|
|
26678
|
+
const handler$90 = async (c) => {
|
|
26679
26679
|
const agentId = c.req.param("agentId") ?? "";
|
|
26680
26680
|
const path = c.req.query("path");
|
|
26681
26681
|
if (!path) return c.json(ErrorResponseSchema.parse({ error: "File path is required" }), 400);
|
|
@@ -26729,7 +26729,7 @@ function workspaceRelativePathsFromStorageKeys(keys) {
|
|
|
26729
26729
|
}
|
|
26730
26730
|
//#endregion
|
|
26731
26731
|
//#region src/routes/account/agents/[agentId]/workspace/files/GET.ts
|
|
26732
|
-
const handler$
|
|
26732
|
+
const handler$89 = async (c) => {
|
|
26733
26733
|
const agentId = c.req.param("agentId") ?? "";
|
|
26734
26734
|
const row = agentId ? await selectActiveAgentById(agentId) : void 0;
|
|
26735
26735
|
if (!row || !await canAccessProjectId(c, row.projectId, canAccessAgent)) return c.json(ListAgentWorkspaceFilesResponseSchema.parse({ files: [] }), 404);
|
|
@@ -26752,7 +26752,7 @@ const handler$84 = async (c) => {
|
|
|
26752
26752
|
};
|
|
26753
26753
|
//#endregion
|
|
26754
26754
|
//#region src/routes/account/agents/[agentId]/workspace/files/content/GET.ts
|
|
26755
|
-
const handler$
|
|
26755
|
+
const handler$88 = async (c) => {
|
|
26756
26756
|
const agentId = c.req.param("agentId") ?? "";
|
|
26757
26757
|
const path = c.req.query("path");
|
|
26758
26758
|
if (!path) return c.json(ErrorResponseSchema.parse({ error: "File path is required" }), 400);
|
|
@@ -26804,7 +26804,7 @@ async function cancelHistoryRun(c, kind, cancel) {
|
|
|
26804
26804
|
}
|
|
26805
26805
|
//#endregion
|
|
26806
26806
|
//#region src/routes/account/agents/sessions/[sessionId]/cancel/POST.ts
|
|
26807
|
-
const handler$
|
|
26807
|
+
const handler$87 = (c) => cancelHistoryRun(c, "agent", cancelAgentSession);
|
|
26808
26808
|
//#endregion
|
|
26809
26809
|
//#region src/routes/account/resources/workflows.ts
|
|
26810
26810
|
function toWorkflowSummary(row, options) {
|
|
@@ -26821,7 +26821,7 @@ function toWorkflowSummary(row, options) {
|
|
|
26821
26821
|
}
|
|
26822
26822
|
//#endregion
|
|
26823
26823
|
//#region src/routes/account/workflows/GET.ts
|
|
26824
|
-
const handler$
|
|
26824
|
+
const handler$86 = async (c) => {
|
|
26825
26825
|
const filter = await resolveListProjectIds(c, listScope(c, workflowListScope(accessContext(c))), c.req.query("projectId"));
|
|
26826
26826
|
if (filter === "empty") return c.json(WorkflowSummaryListResponseSchema.parse([]));
|
|
26827
26827
|
const rows = await listActiveWorkflows(filter);
|
|
@@ -26830,7 +26830,7 @@ const handler$81 = async (c) => {
|
|
|
26830
26830
|
};
|
|
26831
26831
|
//#endregion
|
|
26832
26832
|
//#region src/routes/account/workflows/[workflowId]/GET.ts
|
|
26833
|
-
const handler$
|
|
26833
|
+
const handler$85 = async (c) => {
|
|
26834
26834
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
26835
26835
|
const row = workflowId ? await selectActiveWorkflowById(workflowId) : void 0;
|
|
26836
26836
|
if (!row || !await canAccessProjectId(c, row.projectId, canAccessWorkflow)) return c.json(WorkflowSummaryDetailResponseSchema.parse(null));
|
|
@@ -27281,7 +27281,7 @@ function buildWorkflowCanvas(input) {
|
|
|
27281
27281
|
//#region src/routes/account/workflows/[workflowId]/canvas/GET.ts
|
|
27282
27282
|
/** Bumped when the annotation prompt/model changes, so cached annotations invalidate. */
|
|
27283
27283
|
const ANNOTATIONS_GENERATOR_VERSION = "wf-canvas-annotations-v1";
|
|
27284
|
-
const handler$
|
|
27284
|
+
const handler$84 = async (c) => {
|
|
27285
27285
|
const organization = c.get("organization");
|
|
27286
27286
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
27287
27287
|
if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
|
|
@@ -27454,7 +27454,7 @@ function toBinding(key, description) {
|
|
|
27454
27454
|
* each of its requirements currently binds to (read-only, no decryption). Not
|
|
27455
27455
|
* content-hash cached — credential state changes without a redeploy.
|
|
27456
27456
|
*/
|
|
27457
|
-
const handler$
|
|
27457
|
+
const handler$83 = async (c) => {
|
|
27458
27458
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
27459
27459
|
if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
|
|
27460
27460
|
const resolved = await resolveWorkflow(c, workflowId);
|
|
@@ -27613,7 +27613,7 @@ function toCanvasRunStatus(status) {
|
|
|
27613
27613
|
if (status === "canceled") return "canceled";
|
|
27614
27614
|
return "running";
|
|
27615
27615
|
}
|
|
27616
|
-
const handler$
|
|
27616
|
+
const handler$82 = async (c) => {
|
|
27617
27617
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
27618
27618
|
const runId = c.req.param("runId") ?? "";
|
|
27619
27619
|
if (!workflowId.trim() || !runId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow or run id" }), 400);
|
|
@@ -27668,7 +27668,7 @@ async function loadWorkflowSource(organization, projectId, sourcePath) {
|
|
|
27668
27668
|
return null;
|
|
27669
27669
|
}
|
|
27670
27670
|
}
|
|
27671
|
-
const handler$
|
|
27671
|
+
const handler$81 = async (c) => {
|
|
27672
27672
|
const organization = c.get("organization");
|
|
27673
27673
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
27674
27674
|
if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
|
|
@@ -27769,7 +27769,7 @@ const handler$76 = async (c) => {
|
|
|
27769
27769
|
};
|
|
27770
27770
|
//#endregion
|
|
27771
27771
|
//#region src/routes/account/workflows/[workflowId]/run-inputs/GET.ts
|
|
27772
|
-
const handler$
|
|
27772
|
+
const handler$80 = async (c) => {
|
|
27773
27773
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
27774
27774
|
if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
|
|
27775
27775
|
const resolved = await resolveWorkflow(c, workflowId);
|
|
@@ -27784,7 +27784,7 @@ const handler$75 = async (c) => {
|
|
|
27784
27784
|
};
|
|
27785
27785
|
//#endregion
|
|
27786
27786
|
//#region src/routes/account/workflows/[workflowId]/run-inputs/PUT.ts
|
|
27787
|
-
const handler$
|
|
27787
|
+
const handler$79 = async (c) => {
|
|
27788
27788
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
27789
27789
|
if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
|
|
27790
27790
|
const resolved = await resolveWorkflow(c, workflowId);
|
|
@@ -27807,7 +27807,7 @@ const handler$74 = async (c) => {
|
|
|
27807
27807
|
};
|
|
27808
27808
|
//#endregion
|
|
27809
27809
|
//#region src/routes/account/workflows/[workflowId]/run/POST.ts
|
|
27810
|
-
function parseRunInput(requestSchema, input) {
|
|
27810
|
+
function parseRunInput$1(requestSchema, input) {
|
|
27811
27811
|
if (typeof z.fromJSONSchema === "function") return z.fromJSONSchema(requestSchema).parse(input ?? {});
|
|
27812
27812
|
return z.record(z.string(), z.unknown()).parse(input ?? {});
|
|
27813
27813
|
}
|
|
@@ -27816,7 +27816,7 @@ function parseRunInput(requestSchema, input) {
|
|
|
27816
27816
|
* the workflow row's request schema, creates a pending run, and enqueues it on
|
|
27817
27817
|
* the project's queue (drained by the project runtime worker). Returns the run id.
|
|
27818
27818
|
*/
|
|
27819
|
-
const handler$
|
|
27819
|
+
const handler$78 = async (c) => {
|
|
27820
27820
|
const { organizationId } = c.get("organization");
|
|
27821
27821
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
27822
27822
|
if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
|
|
@@ -27841,7 +27841,7 @@ const handler$73 = async (c) => {
|
|
|
27841
27841
|
workflowKey: row.slug,
|
|
27842
27842
|
input: body,
|
|
27843
27843
|
jobQueue: scheduler,
|
|
27844
|
-
parseInput: (value) => parseRunInput(requestSchema, value),
|
|
27844
|
+
parseInput: (value) => parseRunInput$1(requestSchema, value),
|
|
27845
27845
|
ranByUserId: userId
|
|
27846
27846
|
});
|
|
27847
27847
|
});
|
|
@@ -27852,6 +27852,106 @@ const handler$73 = async (c) => {
|
|
|
27852
27852
|
}
|
|
27853
27853
|
};
|
|
27854
27854
|
//#endregion
|
|
27855
|
+
//#region src/lib/public-form-url.ts
|
|
27856
|
+
function buildPublicFormUrl(token) {
|
|
27857
|
+
return `${(process.env.PUBLIC_WEB_URL?.trim() || "http://localhost:3000").replace(/\/$/, "")}/forms/${encodeURIComponent(token)}`;
|
|
27858
|
+
}
|
|
27859
|
+
//#endregion
|
|
27860
|
+
//#region src/routes/account/workflows/[workflowId]/form/shared.ts
|
|
27861
|
+
function publishedFormResponse(form, workflowId) {
|
|
27862
|
+
return PublishedFormSchema.parse({
|
|
27863
|
+
id: form.id,
|
|
27864
|
+
workflowId,
|
|
27865
|
+
workflowSlug: form.workflowSlug,
|
|
27866
|
+
enabled: form.enabled,
|
|
27867
|
+
title: form.title,
|
|
27868
|
+
description: form.description,
|
|
27869
|
+
fieldConfig: form.fieldConfig,
|
|
27870
|
+
publicUrl: buildPublicFormUrl(form.token),
|
|
27871
|
+
createdAt: form.createdAt.toISOString(),
|
|
27872
|
+
updatedAt: form.updatedAt.toISOString()
|
|
27873
|
+
});
|
|
27874
|
+
}
|
|
27875
|
+
async function resolveFormWorkflow(c, { requireManageAccess = false } = {}) {
|
|
27876
|
+
const workflowId = c.req.param("workflowId")?.trim();
|
|
27877
|
+
if (!workflowId) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
|
|
27878
|
+
const workflow = await resolveWorkflow(c, workflowId);
|
|
27879
|
+
if (!workflow) return c.json(ErrorResponseSchema.parse({ error: "Workflow not found" }), 404);
|
|
27880
|
+
if (requireManageAccess && !await canPerformProjectAction(c, workflow.projectId, projectActions.update)) return c.json(ErrorResponseSchema.parse({ error: "Forbidden" }), 403);
|
|
27881
|
+
return {
|
|
27882
|
+
workflowId,
|
|
27883
|
+
projectId: workflow.projectId,
|
|
27884
|
+
row: workflow.row
|
|
27885
|
+
};
|
|
27886
|
+
}
|
|
27887
|
+
async function resolvePublishableInputSchema(projectId, row) {
|
|
27888
|
+
const requestSchema = await resolveWorkflowRequestSchema(projectId, row);
|
|
27889
|
+
if (!requestSchema) return new Response(JSON.stringify({ error: "Workflow not deployed" }), { status: 404 });
|
|
27890
|
+
const inputSchema = jsonSchemaToWorkflowInputSchema(requestSchema);
|
|
27891
|
+
if (inputSchema.fields.length === 0) return new Response(JSON.stringify({ error: "Workflow does not accept inputs" }), { status: 409 });
|
|
27892
|
+
if (schemaHasFileFields(inputSchema)) return new Response(JSON.stringify({ error: "Forms do not support file inputs yet" }), { status: 409 });
|
|
27893
|
+
if (schemaHasUnsupportedFormFields(inputSchema)) return new Response(JSON.stringify({ error: "Forms support scalar fields and arrays of scalar fields only" }), { status: 409 });
|
|
27894
|
+
return inputSchema;
|
|
27895
|
+
}
|
|
27896
|
+
//#endregion
|
|
27897
|
+
//#region src/routes/account/workflows/[workflowId]/form/GET.ts
|
|
27898
|
+
const handler$77 = async (c) => {
|
|
27899
|
+
const resolved = await resolveFormWorkflow(c);
|
|
27900
|
+
if (resolved instanceof Response) return resolved;
|
|
27901
|
+
const { organizationId } = c.get("organization");
|
|
27902
|
+
const form = await selectPublishedFormForWorkflow(organizationId, resolved.projectId, resolved.row.slug);
|
|
27903
|
+
return c.json(WorkflowFormResponseSchema.parse(form ? publishedFormResponse(form, resolved.workflowId) : null));
|
|
27904
|
+
};
|
|
27905
|
+
//#endregion
|
|
27906
|
+
//#region src/routes/account/workflows/[workflowId]/form/PUT.ts
|
|
27907
|
+
const handler$76 = async (c) => {
|
|
27908
|
+
const resolved = await resolveFormWorkflow(c, { requireManageAccess: true });
|
|
27909
|
+
if (resolved instanceof Response) return resolved;
|
|
27910
|
+
const body = WorkflowFormUpsertBodySchema.safeParse(await c.req.json().catch(() => null));
|
|
27911
|
+
if (!body.success) {
|
|
27912
|
+
const message = body.error.issues[0]?.message ?? "Invalid request body";
|
|
27913
|
+
return c.json(ErrorResponseSchema.parse({ error: message }), 400);
|
|
27914
|
+
}
|
|
27915
|
+
const inputSchema = await resolvePublishableInputSchema(resolved.projectId, resolved.row);
|
|
27916
|
+
if (inputSchema instanceof Response) return inputSchema;
|
|
27917
|
+
if (body.data.fieldConfig) {
|
|
27918
|
+
const validation = validateFormFieldConfig(inputSchema, body.data.fieldConfig);
|
|
27919
|
+
if (!validation.ok) return c.json(ErrorResponseSchema.parse({ error: validation.error }), 400);
|
|
27920
|
+
}
|
|
27921
|
+
const { organizationId } = c.get("organization");
|
|
27922
|
+
const form = await upsertPublishedForm({
|
|
27923
|
+
organizationId,
|
|
27924
|
+
projectId: resolved.projectId,
|
|
27925
|
+
workflowSlug: resolved.row.slug,
|
|
27926
|
+
createdByUserId: c.get("user").id,
|
|
27927
|
+
enabled: body.data.enabled ?? true,
|
|
27928
|
+
...body.data.title !== void 0 ? { title: body.data.title } : {},
|
|
27929
|
+
...body.data.description !== void 0 ? { description: body.data.description } : {},
|
|
27930
|
+
...body.data.fieldConfig !== void 0 ? { fieldConfig: body.data.fieldConfig } : {}
|
|
27931
|
+
});
|
|
27932
|
+
return c.json(publishedFormResponse(form, resolved.workflowId));
|
|
27933
|
+
};
|
|
27934
|
+
//#endregion
|
|
27935
|
+
//#region src/routes/account/workflows/[workflowId]/form/DELETE.ts
|
|
27936
|
+
const handler$75 = async (c) => {
|
|
27937
|
+
const resolved = await resolveFormWorkflow(c, { requireManageAccess: true });
|
|
27938
|
+
if (resolved instanceof Response) return resolved;
|
|
27939
|
+
const { organizationId } = c.get("organization");
|
|
27940
|
+
const form = await unpublishFormForWorkflow(organizationId, resolved.projectId, resolved.row.slug);
|
|
27941
|
+
if (!form) return c.json(ErrorResponseSchema.parse({ error: "Form not found" }), 404);
|
|
27942
|
+
return c.json(publishedFormResponse(form, resolved.workflowId));
|
|
27943
|
+
};
|
|
27944
|
+
//#endregion
|
|
27945
|
+
//#region src/routes/account/workflows/[workflowId]/form/rotate/POST.ts
|
|
27946
|
+
const handler$74 = async (c) => {
|
|
27947
|
+
const resolved = await resolveFormWorkflow(c, { requireManageAccess: true });
|
|
27948
|
+
if (resolved instanceof Response) return resolved;
|
|
27949
|
+
const { organizationId } = c.get("organization");
|
|
27950
|
+
const form = await rotatePublishedFormToken(organizationId, resolved.projectId, resolved.row.slug);
|
|
27951
|
+
if (!form) return c.json(ErrorResponseSchema.parse({ error: "Form not found" }), 404);
|
|
27952
|
+
return c.json(publishedFormResponse(form, resolved.workflowId));
|
|
27953
|
+
};
|
|
27954
|
+
//#endregion
|
|
27855
27955
|
//#region src/routes/account/workflows/[workflowId]/attachments/presign/POST.ts
|
|
27856
27956
|
function extensionFromUpload$1(contentType, filename) {
|
|
27857
27957
|
const fromName = filename.includes(".") ? filename.split(".").pop()?.toLowerCase() : void 0;
|
|
@@ -27865,7 +27965,7 @@ function extensionFromUpload$1(contentType, filename) {
|
|
|
27865
27965
|
* hydration reads by project id + storage key, so runs read the file the same
|
|
27866
27966
|
* way `storeFile` output does.
|
|
27867
27967
|
*/
|
|
27868
|
-
const handler$
|
|
27968
|
+
const handler$73 = async (c) => {
|
|
27869
27969
|
const { organizationId } = c.get("organization");
|
|
27870
27970
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
27871
27971
|
if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
|
|
@@ -27890,7 +27990,7 @@ const handler$72 = async (c) => {
|
|
|
27890
27990
|
};
|
|
27891
27991
|
//#endregion
|
|
27892
27992
|
//#region src/routes/account/workflows/[workflowId]/runs/GET.ts
|
|
27893
|
-
const handler$
|
|
27993
|
+
const handler$72 = async (c) => {
|
|
27894
27994
|
const workflowId = c.req.param("workflowId") ?? "";
|
|
27895
27995
|
if (!workflowId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid workflow id" }), 400);
|
|
27896
27996
|
const resolved = await resolveWorkflow(c, workflowId);
|
|
@@ -27913,7 +28013,7 @@ const handler$71 = async (c) => {
|
|
|
27913
28013
|
};
|
|
27914
28014
|
//#endregion
|
|
27915
28015
|
//#region src/routes/account/workflows/runs/[runId]/cancel/POST.ts
|
|
27916
|
-
const handler$
|
|
28016
|
+
const handler$71 = (c) => cancelHistoryRun(c, "workflow", cancelWorkflowRun);
|
|
27917
28017
|
//#endregion
|
|
27918
28018
|
//#region src/routes/account/resources/skills.ts
|
|
27919
28019
|
function toSkillSummary(row) {
|
|
@@ -27930,7 +28030,7 @@ function toSkillSummary(row) {
|
|
|
27930
28030
|
}
|
|
27931
28031
|
//#endregion
|
|
27932
28032
|
//#region src/routes/account/skills/GET.ts
|
|
27933
|
-
const handler$
|
|
28033
|
+
const handler$70 = async (c) => {
|
|
27934
28034
|
const filter = await resolveListProjectIds(c, listScope(c, skillListScope(accessContext(c))), c.req.query("projectId"));
|
|
27935
28035
|
if (filter === "empty") return c.json(SkillSummaryListResponseSchema.parse([]));
|
|
27936
28036
|
const rows = await listActiveSkills(filter);
|
|
@@ -27938,7 +28038,7 @@ const handler$69 = async (c) => {
|
|
|
27938
28038
|
};
|
|
27939
28039
|
//#endregion
|
|
27940
28040
|
//#region src/routes/account/skills/[skillId]/GET.ts
|
|
27941
|
-
const handler$
|
|
28041
|
+
const handler$69 = async (c) => {
|
|
27942
28042
|
const skillId = c.req.param("skillId") ?? "";
|
|
27943
28043
|
const row = skillId ? await selectActiveSkillById(skillId) : void 0;
|
|
27944
28044
|
if (!row || !await canAccessProjectId(c, row.projectId, canAccessSkill)) return c.json(SkillSummaryDetailResponseSchema.parse(null));
|
|
@@ -28047,7 +28147,7 @@ function toWorkspaceTriggerRunSummary(item, assignments) {
|
|
|
28047
28147
|
}
|
|
28048
28148
|
//#endregion
|
|
28049
28149
|
//#region src/routes/account/triggers/GET.ts
|
|
28050
|
-
const handler$
|
|
28150
|
+
const handler$68 = async (c) => {
|
|
28051
28151
|
const organization = c.get("organization");
|
|
28052
28152
|
const scope = listScope(c, projectListScope(accessContext(c)));
|
|
28053
28153
|
const filter = await resolveListProjectIds(c, scope, c.req.query("projectId"));
|
|
@@ -28059,7 +28159,7 @@ const handler$67 = async (c) => {
|
|
|
28059
28159
|
};
|
|
28060
28160
|
//#endregion
|
|
28061
28161
|
//#region src/routes/account/triggers/[triggerId]/GET.ts
|
|
28062
|
-
const handler$
|
|
28162
|
+
const handler$67 = async (c) => {
|
|
28063
28163
|
const organization = c.get("organization");
|
|
28064
28164
|
const triggerId = c.req.param("triggerId") ?? "";
|
|
28065
28165
|
if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
|
|
@@ -28075,7 +28175,7 @@ const handler$66 = async (c) => {
|
|
|
28075
28175
|
};
|
|
28076
28176
|
//#endregion
|
|
28077
28177
|
//#region src/routes/account/triggers/[triggerId]/runs/GET.ts
|
|
28078
|
-
const handler$
|
|
28178
|
+
const handler$66 = async (c) => {
|
|
28079
28179
|
const triggerId = c.req.param("triggerId") ?? "";
|
|
28080
28180
|
if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
|
|
28081
28181
|
const filter = await resolveListProjectIds(c, listScope(c, projectListScope(accessContext(c))));
|
|
@@ -28104,7 +28204,7 @@ const handler$65 = async (c) => {
|
|
|
28104
28204
|
};
|
|
28105
28205
|
//#endregion
|
|
28106
28206
|
//#region src/routes/account/triggers/[triggerId]/file/GET.ts
|
|
28107
|
-
const handler$
|
|
28207
|
+
const handler$65 = async (c) => {
|
|
28108
28208
|
const { organizationId } = c.get("organization");
|
|
28109
28209
|
const triggerId = c.req.param("triggerId") ?? "";
|
|
28110
28210
|
if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
|
|
@@ -28141,7 +28241,7 @@ function envelope(row, status, hash) {
|
|
|
28141
28241
|
model: row.overviewModel ?? "deepseek/deepseek-v4-flash"
|
|
28142
28242
|
});
|
|
28143
28243
|
}
|
|
28144
|
-
const handler$
|
|
28244
|
+
const handler$64 = async (c) => {
|
|
28145
28245
|
const { organizationId } = c.get("organization");
|
|
28146
28246
|
const triggerId = c.req.param("triggerId") ?? "";
|
|
28147
28247
|
if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
|
|
@@ -28223,7 +28323,7 @@ async function syncNativeTriggerSchedule(organization, trigger) {
|
|
|
28223
28323
|
}
|
|
28224
28324
|
await scheduler.removeTriggerSchedule?.(trigger.slug, trigger.projectId);
|
|
28225
28325
|
}
|
|
28226
|
-
const handler$
|
|
28326
|
+
const handler$63 = async (c) => {
|
|
28227
28327
|
const organization = c.get("organization");
|
|
28228
28328
|
const triggerId = c.req.param("triggerId") ?? "";
|
|
28229
28329
|
const attachmentId = c.req.param("attachmentId") ?? "";
|
|
@@ -28295,7 +28395,7 @@ var InvokeHttpError = class extends Error {
|
|
|
28295
28395
|
* Manually invoke a trigger from the dashboard or CLI. Validates webhook input against
|
|
28296
28396
|
* stored attachment schemas, then enqueues a trigger job on the project's queue.
|
|
28297
28397
|
*/
|
|
28298
|
-
const handler$
|
|
28398
|
+
const handler$62 = async (c) => {
|
|
28299
28399
|
const { organizationId } = c.get("organization");
|
|
28300
28400
|
const triggerId = c.req.param("triggerId") ?? "";
|
|
28301
28401
|
if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
|
|
@@ -28368,7 +28468,7 @@ const handler$61 = async (c) => {
|
|
|
28368
28468
|
* Form metadata for the dashboard invoke popover: webhook request schemas and
|
|
28369
28469
|
* cron's read-only static payload.
|
|
28370
28470
|
*/
|
|
28371
|
-
const handler$
|
|
28471
|
+
const handler$61 = async (c) => {
|
|
28372
28472
|
const triggerId = c.req.param("triggerId") ?? "";
|
|
28373
28473
|
if (!triggerId.trim()) return c.json(ErrorResponseSchema.parse({ error: "Invalid trigger id" }), 400);
|
|
28374
28474
|
const filter = await resolveListProjectIds(c, listScope(c, projectListScope(accessContext(c))));
|
|
@@ -28434,7 +28534,7 @@ function latestRecentInteractionAt(recent) {
|
|
|
28434
28534
|
//#endregion
|
|
28435
28535
|
//#region src/routes/account/recents/GET.ts
|
|
28436
28536
|
const RECENTS_LIMIT = 50;
|
|
28437
|
-
const handler$
|
|
28537
|
+
const handler$60 = async (c) => {
|
|
28438
28538
|
const userId = c.get("user").id;
|
|
28439
28539
|
const organization = c.get("organization");
|
|
28440
28540
|
const grantedProjectIdsList = await grantedProjectIds(c, { kind: "member-only" });
|
|
@@ -28460,7 +28560,7 @@ const handler$59 = async (c) => {
|
|
|
28460
28560
|
};
|
|
28461
28561
|
//#endregion
|
|
28462
28562
|
//#region src/routes/account/projects/GET.ts
|
|
28463
|
-
const handler$
|
|
28563
|
+
const handler$59 = async (c) => {
|
|
28464
28564
|
const organization = c.get("organization");
|
|
28465
28565
|
const grantedProjectIdsList = await grantedProjectIds(c, listScope(c, projectListScope(accessContext(c))));
|
|
28466
28566
|
const projects = await selectProjectsByOrganizationId(organization.organizationId, { grantedProjectIds: grantedProjectIdsList });
|
|
@@ -28486,7 +28586,7 @@ function mergeProjectListMetrics(input) {
|
|
|
28486
28586
|
}
|
|
28487
28587
|
//#endregion
|
|
28488
28588
|
//#region src/routes/account/projects/metrics/GET.ts
|
|
28489
|
-
const handler$
|
|
28589
|
+
const handler$58 = async (c) => {
|
|
28490
28590
|
const organization = c.get("organization");
|
|
28491
28591
|
const grantedProjectIdsList = await grantedProjectIds(c, listScope(c, projectListScope(accessContext(c))));
|
|
28492
28592
|
const [resourceCounts, lastDeploymentAtByProject] = await Promise.all([selectProjectResourceCounts(grantedProjectIdsList !== void 0 ? { projectIds: grantedProjectIdsList } : void 0), selectLastDeploymentAtByProject(organization.organizationId)]);
|
|
@@ -28531,7 +28631,7 @@ function createCreateProjectHandler(projectQuotaGate) {
|
|
|
28531
28631
|
}
|
|
28532
28632
|
//#endregion
|
|
28533
28633
|
//#region src/routes/account/projects/slug-available/GET.ts
|
|
28534
|
-
const handler$
|
|
28634
|
+
const handler$56 = async (c) => {
|
|
28535
28635
|
const organization = c.get("organization");
|
|
28536
28636
|
const parsed = ProjectSlugAvailabilityQuerySchema.safeParse({
|
|
28537
28637
|
slug: c.req.query("slug"),
|
|
@@ -28543,12 +28643,12 @@ const handler$55 = async (c) => {
|
|
|
28543
28643
|
};
|
|
28544
28644
|
//#endregion
|
|
28545
28645
|
//#region src/routes/account/projects/[projectId]/GET.ts
|
|
28546
|
-
const handler$
|
|
28646
|
+
const handler$55 = async (c) => {
|
|
28547
28647
|
return c.json(ProjectResponseSchema.parse(routeProject(c.get("project"))));
|
|
28548
28648
|
};
|
|
28549
28649
|
//#endregion
|
|
28550
28650
|
//#region src/routes/account/projects/[projectId]/PATCH.ts
|
|
28551
|
-
const handler$
|
|
28651
|
+
const handler$54 = async (c) => {
|
|
28552
28652
|
const organization = c.get("organization");
|
|
28553
28653
|
const project = c.get("project");
|
|
28554
28654
|
const body = await c.req.json().catch(() => null);
|
|
@@ -28566,7 +28666,7 @@ const handler$53 = async (c) => {
|
|
|
28566
28666
|
};
|
|
28567
28667
|
//#endregion
|
|
28568
28668
|
//#region src/routes/account/projects/[projectId]/DELETE.ts
|
|
28569
|
-
const handler$
|
|
28669
|
+
const handler$53 = async (c) => {
|
|
28570
28670
|
const organization = c.get("organization");
|
|
28571
28671
|
const project = c.get("project");
|
|
28572
28672
|
if (!await deleteProjectForOrganization(organization.organizationId, project.id)) return c.json(ErrorResponseSchema.parse({ error: "Project not found" }), 404);
|
|
@@ -28574,7 +28674,7 @@ const handler$52 = async (c) => {
|
|
|
28574
28674
|
};
|
|
28575
28675
|
//#endregion
|
|
28576
28676
|
//#region src/routes/account/projects/[projectId]/deployments/GET.ts
|
|
28577
|
-
const handler$
|
|
28677
|
+
const handler$52 = async (c) => {
|
|
28578
28678
|
const rows = await selectProjectDeployments(c.get("project").id);
|
|
28579
28679
|
return c.json(ListProjectDeploymentsResponseSchema.parse(rows.map(mapProjectDeployment)));
|
|
28580
28680
|
};
|
|
@@ -28582,7 +28682,7 @@ const handler$51 = async (c) => {
|
|
|
28582
28682
|
//#region src/routes/account/projects/[projectId]/artifacts/POST.ts
|
|
28583
28683
|
const DEFAULT_PRESIGN_TTL_SECONDS$1 = 900;
|
|
28584
28684
|
const ARTIFACT_CONTENT_TYPE = "application/gzip";
|
|
28585
|
-
const handler$
|
|
28685
|
+
const handler$51 = async (c) => {
|
|
28586
28686
|
const project = c.get("project");
|
|
28587
28687
|
const { organizationId } = c.get("organization");
|
|
28588
28688
|
const organization = await selectOrganizationById(organizationId);
|
|
@@ -28610,7 +28710,7 @@ const handler$50 = async (c) => {
|
|
|
28610
28710
|
//#endregion
|
|
28611
28711
|
//#region src/routes/account/projects/[projectId]/artifacts/active/download/GET.ts
|
|
28612
28712
|
const DEFAULT_PRESIGN_TTL_SECONDS = 900;
|
|
28613
|
-
const handler$
|
|
28713
|
+
const handler$50 = async (c) => {
|
|
28614
28714
|
const project = c.get("project");
|
|
28615
28715
|
const { organizationId } = c.get("organization");
|
|
28616
28716
|
const organization = await selectOrganizationById(organizationId);
|
|
@@ -28629,7 +28729,7 @@ const handler$49 = async (c) => {
|
|
|
28629
28729
|
};
|
|
28630
28730
|
//#endregion
|
|
28631
28731
|
//#region src/routes/account/projects/[projectId]/artifacts/active/source/GET.ts
|
|
28632
|
-
const handler$
|
|
28732
|
+
const handler$49 = async (c) => {
|
|
28633
28733
|
const project = c.get("project");
|
|
28634
28734
|
const active = await selectActiveArtifactSourceManifestForProject(project.id);
|
|
28635
28735
|
if (!active?.sourceManifestJson) return c.json(ErrorResponseSchema.parse({ error: "No active source for project" }), 404);
|
|
@@ -28658,7 +28758,7 @@ const TRIGGER_KINDS = new Set([
|
|
|
28658
28758
|
"trigger-poll-group",
|
|
28659
28759
|
"cron-schedule"
|
|
28660
28760
|
]);
|
|
28661
|
-
const handler$
|
|
28761
|
+
const handler$48 = async (c) => {
|
|
28662
28762
|
const project = c.get("project");
|
|
28663
28763
|
const user = c.get("user");
|
|
28664
28764
|
const artifactId = c.req.param("artifactId");
|
|
@@ -28722,7 +28822,7 @@ const handler$47 = async (c) => {
|
|
|
28722
28822
|
//#endregion
|
|
28723
28823
|
//#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/source/presign/POST.ts
|
|
28724
28824
|
const SOURCE_BLOB_CONTENT_TYPE = "text/plain; charset=utf-8";
|
|
28725
|
-
const handler$
|
|
28825
|
+
const handler$47 = async (c) => {
|
|
28726
28826
|
const project = c.get("project");
|
|
28727
28827
|
const artifactId = c.req.param("artifactId");
|
|
28728
28828
|
if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
|
|
@@ -28750,7 +28850,7 @@ const handler$46 = async (c) => {
|
|
|
28750
28850
|
};
|
|
28751
28851
|
//#endregion
|
|
28752
28852
|
//#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/source/manifest/POST.ts
|
|
28753
|
-
const handler$
|
|
28853
|
+
const handler$46 = async (c) => {
|
|
28754
28854
|
const project = c.get("project");
|
|
28755
28855
|
const artifactId = c.req.param("artifactId");
|
|
28756
28856
|
if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
|
|
@@ -28782,7 +28882,7 @@ function extensionFromUpload(contentType, filename) {
|
|
|
28782
28882
|
if (fromName && /^[a-z0-9]+$/.test(fromName)) return fromName;
|
|
28783
28883
|
return chatAttachmentExtension(contentType) ?? "bin";
|
|
28784
28884
|
}
|
|
28785
|
-
const handler$
|
|
28885
|
+
const handler$45 = async (c) => {
|
|
28786
28886
|
const project = c.get("project");
|
|
28787
28887
|
const slug = c.req.param("slug");
|
|
28788
28888
|
if (!slug) return c.json(ErrorResponseSchema.parse({ error: "Agent slug is required" }), 400);
|
|
@@ -28807,7 +28907,7 @@ const handler$44 = async (c) => {
|
|
|
28807
28907
|
};
|
|
28808
28908
|
//#endregion
|
|
28809
28909
|
//#region src/routes/account/projects/[projectId]/agents/[slug]/attachments/[...key]/GET.ts
|
|
28810
|
-
const handler$
|
|
28910
|
+
const handler$44 = async (c) => {
|
|
28811
28911
|
const project = c.get("project");
|
|
28812
28912
|
const slug = c.req.param("slug");
|
|
28813
28913
|
const keyParam = c.req.param("key");
|
|
@@ -28853,7 +28953,7 @@ function resolveSourcePaths(rows, kindDir, filePaths) {
|
|
|
28853
28953
|
}] : [];
|
|
28854
28954
|
});
|
|
28855
28955
|
}
|
|
28856
|
-
const handler$
|
|
28956
|
+
const handler$43 = async (c) => {
|
|
28857
28957
|
const project = c.get("project");
|
|
28858
28958
|
const active = await selectActiveArtifactSourceManifestForProject(project.id);
|
|
28859
28959
|
if (!active || !active.sourceManifestJson) return c.json(ListProjectFilesResponseSchema.parse({
|
|
@@ -28898,7 +28998,7 @@ function ifNoneMatchMatches(ifNoneMatch, etag) {
|
|
|
28898
28998
|
}
|
|
28899
28999
|
//#endregion
|
|
28900
29000
|
//#region src/routes/account/projects/[projectId]/artifacts/[artifactId]/files/content/GET.ts
|
|
28901
|
-
const handler$
|
|
29001
|
+
const handler$42 = async (c) => {
|
|
28902
29002
|
const project = c.get("project");
|
|
28903
29003
|
const artifactId = c.req.param("artifactId");
|
|
28904
29004
|
if (!artifactId) return c.json(ErrorResponseSchema.parse({ error: "Artifact id is required" }), 400);
|
|
@@ -28944,7 +29044,7 @@ function createProjectReachabilityHandler(hosting) {
|
|
|
28944
29044
|
}
|
|
28945
29045
|
//#endregion
|
|
28946
29046
|
//#region src/routes/account/projects/[projectId]/members/GET.ts
|
|
28947
|
-
const handler$
|
|
29047
|
+
const handler$41 = async (c) => {
|
|
28948
29048
|
const project = c.get("project");
|
|
28949
29049
|
const currentUserId = c.get("user").id;
|
|
28950
29050
|
const members = await selectProjectMembers(project.id);
|
|
@@ -28952,7 +29052,7 @@ const handler$40 = async (c) => {
|
|
|
28952
29052
|
};
|
|
28953
29053
|
//#endregion
|
|
28954
29054
|
//#region src/routes/account/projects/[projectId]/members/POST.ts
|
|
28955
|
-
const handler$
|
|
29055
|
+
const handler$40 = async (c) => {
|
|
28956
29056
|
const organization = c.get("organization");
|
|
28957
29057
|
const project = c.get("project");
|
|
28958
29058
|
const body = await c.req.json().catch(() => null);
|
|
@@ -28968,7 +29068,7 @@ const handler$39 = async (c) => {
|
|
|
28968
29068
|
};
|
|
28969
29069
|
//#endregion
|
|
28970
29070
|
//#region src/routes/account/projects/[projectId]/members/[userId]/PATCH.ts
|
|
28971
|
-
const handler$
|
|
29071
|
+
const handler$39 = async (c) => {
|
|
28972
29072
|
const project = c.get("project");
|
|
28973
29073
|
const userId = c.req.param("userId");
|
|
28974
29074
|
const body = await c.req.json().catch(() => null);
|
|
@@ -28985,7 +29085,7 @@ const handler$38 = async (c) => {
|
|
|
28985
29085
|
};
|
|
28986
29086
|
//#endregion
|
|
28987
29087
|
//#region src/routes/account/projects/[projectId]/members/[userId]/DELETE.ts
|
|
28988
|
-
const handler$
|
|
29088
|
+
const handler$38 = async (c) => {
|
|
28989
29089
|
const project = c.get("project");
|
|
28990
29090
|
const userId = c.req.param("userId");
|
|
28991
29091
|
if (!userId) return c.json(ErrorResponseSchema.parse({ error: "User id is required" }), 400);
|
|
@@ -28999,7 +29099,7 @@ const handler$37 = async (c) => {
|
|
|
28999
29099
|
};
|
|
29000
29100
|
//#endregion
|
|
29001
29101
|
//#region src/routes/account/projects/[projectId]/members/me/DELETE.ts
|
|
29002
|
-
const handler$
|
|
29102
|
+
const handler$37 = async (c) => {
|
|
29003
29103
|
const project = c.get("project");
|
|
29004
29104
|
const userId = c.get("user").id;
|
|
29005
29105
|
try {
|
|
@@ -29012,13 +29112,13 @@ const handler$36 = async (c) => {
|
|
|
29012
29112
|
};
|
|
29013
29113
|
//#endregion
|
|
29014
29114
|
//#region src/routes/account/projects/[projectId]/settings/GET.ts
|
|
29015
|
-
const handler$
|
|
29115
|
+
const handler$36 = async (c) => {
|
|
29016
29116
|
const project = c.get("project");
|
|
29017
29117
|
return c.json(ProjectSettingsResponseSchema.parse(mapProjectSettings(project)));
|
|
29018
29118
|
};
|
|
29019
29119
|
//#endregion
|
|
29020
29120
|
//#region src/routes/account/projects/[projectId]/settings/PATCH.ts
|
|
29021
|
-
const handler$
|
|
29121
|
+
const handler$35 = async (c) => {
|
|
29022
29122
|
const organization = c.get("organization");
|
|
29023
29123
|
const project = c.get("project");
|
|
29024
29124
|
const body = await c.req.json().catch(() => null);
|
|
@@ -29140,7 +29240,7 @@ async function enrichCredentialInstances(rows, organizationId) {
|
|
|
29140
29240
|
}
|
|
29141
29241
|
//#endregion
|
|
29142
29242
|
//#region src/routes/account/credentials/GET.ts
|
|
29143
|
-
const handler$
|
|
29243
|
+
const handler$34 = async (c) => {
|
|
29144
29244
|
const organization = c.get("organization");
|
|
29145
29245
|
const user = c.get("user");
|
|
29146
29246
|
const query = ListCredentialsPageQuerySchema.parse({
|
|
@@ -29169,7 +29269,7 @@ function withTargetScope$1(target, fn) {
|
|
|
29169
29269
|
if (target.projectScope) return runWithProjectScope(target.projectScope, fn);
|
|
29170
29270
|
return fn();
|
|
29171
29271
|
}
|
|
29172
|
-
const handler$
|
|
29272
|
+
const handler$33 = async (c) => {
|
|
29173
29273
|
const organization = c.get("organization");
|
|
29174
29274
|
const user = c.get("user");
|
|
29175
29275
|
const parsed = CreateCredentialsRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
@@ -29285,7 +29385,7 @@ async function canAccessCredentialRow(c, row) {
|
|
|
29285
29385
|
}
|
|
29286
29386
|
//#endregion
|
|
29287
29387
|
//#region src/routes/account/credentials/[credentialId]/GET.ts
|
|
29288
|
-
const handler$
|
|
29388
|
+
const handler$32 = async (c) => {
|
|
29289
29389
|
const organization = c.get("organization");
|
|
29290
29390
|
const credentialId = c.req.param("credentialId") ?? "";
|
|
29291
29391
|
const row = credentialId ? await selectCredentialInstanceById(credentialId) : void 0;
|
|
@@ -29346,7 +29446,7 @@ function sharedConnectionIdFor(row, scopeType, scopeId) {
|
|
|
29346
29446
|
if (!row.connectionId) return row.sharedConnectionId;
|
|
29347
29447
|
return mcpEntityId(scopeType, scopeId);
|
|
29348
29448
|
}
|
|
29349
|
-
const handler$
|
|
29449
|
+
const handler$31 = async (c) => {
|
|
29350
29450
|
const organization = c.get("organization");
|
|
29351
29451
|
const user = c.get("user");
|
|
29352
29452
|
const credentialId = c.req.param("credentialId") ?? "";
|
|
@@ -29447,7 +29547,7 @@ function withTargetScope(target, fn) {
|
|
|
29447
29547
|
if (target.projectScope) return runWithProjectScope(target.projectScope, fn);
|
|
29448
29548
|
return fn();
|
|
29449
29549
|
}
|
|
29450
|
-
const handler$
|
|
29550
|
+
const handler$30 = async (c) => {
|
|
29451
29551
|
const organization = c.get("organization");
|
|
29452
29552
|
const user = c.get("user");
|
|
29453
29553
|
const credentialId = c.req.param("credentialId") ?? "";
|
|
@@ -29577,7 +29677,7 @@ function createDeleteCredentialHandler(options = {}) {
|
|
|
29577
29677
|
}
|
|
29578
29678
|
//#endregion
|
|
29579
29679
|
//#region src/routes/account/members/GET.ts
|
|
29580
|
-
const handler$
|
|
29680
|
+
const handler$29 = async (c) => {
|
|
29581
29681
|
const { organizationId } = c.get("organization");
|
|
29582
29682
|
const query = ListOrganizationMembersPageQuerySchema.parse({
|
|
29583
29683
|
limit: c.req.query("limit") || void 0,
|
|
@@ -29635,7 +29735,7 @@ async function sendOrganizationInviteEmail(payload, resend) {
|
|
|
29635
29735
|
}
|
|
29636
29736
|
//#endregion
|
|
29637
29737
|
//#region src/routes/account/members/invitations/POST.ts
|
|
29638
|
-
const handler$
|
|
29738
|
+
const handler$28 = async (c) => {
|
|
29639
29739
|
const user = c.get("user");
|
|
29640
29740
|
const organization = c.get("organization");
|
|
29641
29741
|
const body = await c.req.json().catch(() => null);
|
|
@@ -29661,7 +29761,7 @@ const handler$27 = async (c) => {
|
|
|
29661
29761
|
};
|
|
29662
29762
|
//#endregion
|
|
29663
29763
|
//#region src/routes/account/members/[userId]/PATCH.ts
|
|
29664
|
-
const handler$
|
|
29764
|
+
const handler$27 = async (c) => {
|
|
29665
29765
|
const { organizationId } = c.get("organization");
|
|
29666
29766
|
const userId = c.req.param("userId");
|
|
29667
29767
|
const body = await c.req.json().catch(() => null);
|
|
@@ -29678,7 +29778,7 @@ const handler$26 = async (c) => {
|
|
|
29678
29778
|
};
|
|
29679
29779
|
//#endregion
|
|
29680
29780
|
//#region src/routes/account/members/[userId]/DELETE.ts
|
|
29681
|
-
const handler$
|
|
29781
|
+
const handler$26 = async (c) => {
|
|
29682
29782
|
const { organizationId } = c.get("organization");
|
|
29683
29783
|
const userId = c.req.param("userId");
|
|
29684
29784
|
if (!userId) return c.json(ErrorResponseSchema.parse({ error: "User id is required" }), 400);
|
|
@@ -29692,13 +29792,13 @@ const handler$25 = async (c) => {
|
|
|
29692
29792
|
};
|
|
29693
29793
|
//#endregion
|
|
29694
29794
|
//#region src/routes/account/invitations/GET.ts
|
|
29695
|
-
const handler$
|
|
29795
|
+
const handler$25 = async (c) => {
|
|
29696
29796
|
const invitations = await selectPendingInvitationsForUser(c.get("user").id);
|
|
29697
29797
|
return c.json(ListOrganizationInvitationsResponseSchema.parse(invitations.map(mapOrganizationInvitation)));
|
|
29698
29798
|
};
|
|
29699
29799
|
//#endregion
|
|
29700
29800
|
//#region src/routes/account/invitations/[invitationId]/accept/POST.ts
|
|
29701
|
-
const handler$
|
|
29801
|
+
const handler$24 = async (c) => {
|
|
29702
29802
|
const user = c.get("user");
|
|
29703
29803
|
const invitationId = c.req.param("invitationId");
|
|
29704
29804
|
if (!invitationId) return c.json(ErrorResponseSchema.parse({ error: "Invitation id is required" }), 400);
|
|
@@ -29719,7 +29819,7 @@ const handler$23 = async (c) => {
|
|
|
29719
29819
|
};
|
|
29720
29820
|
//#endregion
|
|
29721
29821
|
//#region src/routes/account/invitations/[invitationId]/decline/POST.ts
|
|
29722
|
-
const handler$
|
|
29822
|
+
const handler$23 = async (c) => {
|
|
29723
29823
|
const user = c.get("user");
|
|
29724
29824
|
const invitationId = c.req.param("invitationId");
|
|
29725
29825
|
if (!invitationId) return c.json(ErrorResponseSchema.parse({ error: "Invitation id is required" }), 400);
|
|
@@ -29805,13 +29905,13 @@ function appRowToCustomAppDetail(row) {
|
|
|
29805
29905
|
}
|
|
29806
29906
|
//#endregion
|
|
29807
29907
|
//#region src/routes/account/apps/GET.ts
|
|
29808
|
-
const handler$
|
|
29908
|
+
const handler$22 = async (c) => {
|
|
29809
29909
|
const apps = (await listAppsForOrganization(c.get("organization").organizationId)).map(appRowToCatalogSummary);
|
|
29810
29910
|
return c.json(ListAppsResponseSchema.parse(apps));
|
|
29811
29911
|
};
|
|
29812
29912
|
//#endregion
|
|
29813
29913
|
//#region src/routes/account/apps/POST.ts
|
|
29814
|
-
const handler$
|
|
29914
|
+
const handler$21 = async (c) => {
|
|
29815
29915
|
const organization = c.get("organization");
|
|
29816
29916
|
const user = c.get("user");
|
|
29817
29917
|
const parsed = CreateCustomAppRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
@@ -29855,7 +29955,7 @@ const handler$20 = async (c) => {
|
|
|
29855
29955
|
};
|
|
29856
29956
|
//#endregion
|
|
29857
29957
|
//#region src/routes/account/apps/discover/POST.ts
|
|
29858
|
-
const handler$
|
|
29958
|
+
const handler$20 = async (c) => {
|
|
29859
29959
|
const parsed = McpDiscoverRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
29860
29960
|
if (!parsed.success) return c.json({ error: "Invalid request body" }, 400);
|
|
29861
29961
|
try {
|
|
@@ -29869,7 +29969,7 @@ const handler$19 = async (c) => {
|
|
|
29869
29969
|
};
|
|
29870
29970
|
//#endregion
|
|
29871
29971
|
//#region src/routes/account/apps/discover-openapi/POST.ts
|
|
29872
|
-
const handler$
|
|
29972
|
+
const handler$19 = async (c) => {
|
|
29873
29973
|
const parsed = OpenApiDiscoverRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
29874
29974
|
if (!parsed.success) return c.json({ error: "Invalid request body" }, 400);
|
|
29875
29975
|
try {
|
|
@@ -29886,7 +29986,7 @@ const handler$18 = async (c) => {
|
|
|
29886
29986
|
};
|
|
29887
29987
|
//#endregion
|
|
29888
29988
|
//#region src/routes/account/apps/discover-graphql/POST.ts
|
|
29889
|
-
const handler$
|
|
29989
|
+
const handler$18 = async (c) => {
|
|
29890
29990
|
const parsed = GraphqlDiscoverRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
29891
29991
|
if (!parsed.success) return c.json({ error: "Invalid request body" }, 400);
|
|
29892
29992
|
try {
|
|
@@ -29903,7 +30003,7 @@ const handler$17 = async (c) => {
|
|
|
29903
30003
|
};
|
|
29904
30004
|
//#endregion
|
|
29905
30005
|
//#region src/routes/account/apps/[slug]/mcp/oauth/connections/POST.ts
|
|
29906
|
-
const handler$
|
|
30006
|
+
const handler$17 = async (c) => {
|
|
29907
30007
|
const organization = c.get("organization");
|
|
29908
30008
|
const user = c.get("user");
|
|
29909
30009
|
const appSlug = c.req.param("slug")?.trim();
|
|
@@ -29963,7 +30063,7 @@ function buildOAuthWebLandingUrl(webOrigin, params) {
|
|
|
29963
30063
|
}
|
|
29964
30064
|
//#endregion
|
|
29965
30065
|
//#region src/routes/account/mcp/oauth/callback/GET.ts
|
|
29966
|
-
const handler$
|
|
30066
|
+
const handler$16 = async (c) => {
|
|
29967
30067
|
const code = c.req.query("code")?.trim();
|
|
29968
30068
|
const state = c.req.query("state")?.trim();
|
|
29969
30069
|
const oauthError = c.req.query("error")?.trim();
|
|
@@ -30061,7 +30161,7 @@ const handler$15 = async (c) => {
|
|
|
30061
30161
|
};
|
|
30062
30162
|
//#endregion
|
|
30063
30163
|
//#region src/routes/account/apps/slug-available/GET.ts
|
|
30064
|
-
const handler$
|
|
30164
|
+
const handler$15 = async (c) => {
|
|
30065
30165
|
const organization = c.get("organization");
|
|
30066
30166
|
const parsed = AppSlugAvailabilityQuerySchema.safeParse({ slug: c.req.query("slug") });
|
|
30067
30167
|
if (!parsed.success) return c.json(ErrorResponseSchema.parse({ error: "Invalid slug query" }), 400);
|
|
@@ -30072,7 +30172,7 @@ const handler$14 = async (c) => {
|
|
|
30072
30172
|
};
|
|
30073
30173
|
//#endregion
|
|
30074
30174
|
//#region src/routes/account/apps/[slug]/GET.ts
|
|
30075
|
-
const handler$
|
|
30175
|
+
const handler$14 = async (c) => {
|
|
30076
30176
|
const organization = c.get("organization");
|
|
30077
30177
|
const slug = c.req.param("slug") ?? "";
|
|
30078
30178
|
if (!slug) return c.json(ErrorResponseSchema.parse({ error: "App not found" }), 404);
|
|
@@ -30087,7 +30187,7 @@ const handler$13 = async (c) => {
|
|
|
30087
30187
|
//#endregion
|
|
30088
30188
|
//#region src/routes/account/apps/[slug]/catalog/GET.ts
|
|
30089
30189
|
/** Full catalog entry (scopes + credential template) for connect UI. */
|
|
30090
|
-
const handler$
|
|
30190
|
+
const handler$13 = async (c) => {
|
|
30091
30191
|
const organization = c.get("organization");
|
|
30092
30192
|
const slug = c.req.param("slug") ?? "";
|
|
30093
30193
|
if (!slug) return c.json(ErrorResponseSchema.parse({ error: "App not found" }), 404);
|
|
@@ -30120,14 +30220,14 @@ function projectChannelPlatform(row) {
|
|
|
30120
30220
|
});
|
|
30121
30221
|
}
|
|
30122
30222
|
/** Gateway platforms only — avoids downloading the full apps catalog. */
|
|
30123
|
-
const handler$
|
|
30223
|
+
const handler$12 = async (c) => {
|
|
30124
30224
|
const organization = c.get("organization");
|
|
30125
30225
|
const platforms = (await Promise.all(Object.keys(GATEWAY_BY_APP_SLUG).map((slug) => selectAppForOrganization(organization.organizationId, slug)))).flatMap((row) => row ? [projectChannelPlatform(row)] : []);
|
|
30126
30226
|
return c.json(ListChannelPlatformsResponseSchema.parse(platforms));
|
|
30127
30227
|
};
|
|
30128
30228
|
//#endregion
|
|
30129
30229
|
//#region src/routes/account/api-keys/GET.ts
|
|
30130
|
-
const handler$
|
|
30230
|
+
const handler$11 = async (c) => {
|
|
30131
30231
|
const { organizationId } = c.get("organization");
|
|
30132
30232
|
const user = c.get("user");
|
|
30133
30233
|
const records = apiKeyListScope(accessContext(c)).kind === "all" ? await listOrgPlatformApiKeysForOrganization(organizationId) : await listOrgPlatformApiKeysForUser(organizationId, user.id);
|
|
@@ -30144,7 +30244,7 @@ const handler$10 = async (c) => {
|
|
|
30144
30244
|
};
|
|
30145
30245
|
//#endregion
|
|
30146
30246
|
//#region src/routes/account/api-keys/POST.ts
|
|
30147
|
-
const handler$
|
|
30247
|
+
const handler$10 = async (c) => {
|
|
30148
30248
|
const { organizationId } = c.get("organization");
|
|
30149
30249
|
const user = c.get("user");
|
|
30150
30250
|
const body = CreateApiKeyRequestSchema.parse(await c.req.json());
|
|
@@ -30167,7 +30267,7 @@ const handler$9 = async (c) => {
|
|
|
30167
30267
|
};
|
|
30168
30268
|
//#endregion
|
|
30169
30269
|
//#region src/routes/account/api-keys/[apiKeyId]/DELETE.ts
|
|
30170
|
-
const handler$
|
|
30270
|
+
const handler$9 = async (c) => {
|
|
30171
30271
|
const { organizationId } = c.get("organization");
|
|
30172
30272
|
const user = c.get("user");
|
|
30173
30273
|
const apiKeyId = c.req.param("apiKeyId");
|
|
@@ -30192,7 +30292,7 @@ const handler$8 = async (c) => {
|
|
|
30192
30292
|
};
|
|
30193
30293
|
//#endregion
|
|
30194
30294
|
//#region src/routes/account/managed-service-credentials/GET.ts
|
|
30195
|
-
const handler$
|
|
30295
|
+
const handler$8 = async (c) => {
|
|
30196
30296
|
const { organizationId } = c.get("organization");
|
|
30197
30297
|
const user = c.get("user");
|
|
30198
30298
|
const kindParam = c.req.query("kind");
|
|
@@ -30212,7 +30312,7 @@ const handler$7 = async (c) => {
|
|
|
30212
30312
|
};
|
|
30213
30313
|
//#endregion
|
|
30214
30314
|
//#region src/routes/account/managed-service-credentials/POST.ts
|
|
30215
|
-
const handler$
|
|
30315
|
+
const handler$7 = async (c) => {
|
|
30216
30316
|
const { organizationId } = c.get("organization");
|
|
30217
30317
|
const user = c.get("user");
|
|
30218
30318
|
const body = ConnectManagedServiceCredentialRequestSchema.parse(await c.req.json());
|
|
@@ -30241,7 +30341,7 @@ const handler$6 = async (c) => {
|
|
|
30241
30341
|
};
|
|
30242
30342
|
//#endregion
|
|
30243
30343
|
//#region src/routes/account/managed-service-credentials/[id]/PATCH.ts
|
|
30244
|
-
const handler$
|
|
30344
|
+
const handler$6 = async (c) => {
|
|
30245
30345
|
const { organizationId } = c.get("organization");
|
|
30246
30346
|
const user = c.get("user");
|
|
30247
30347
|
const credentialId = c.req.param("id");
|
|
@@ -30272,7 +30372,7 @@ const handler$5 = async (c) => {
|
|
|
30272
30372
|
};
|
|
30273
30373
|
//#endregion
|
|
30274
30374
|
//#region src/routes/account/managed-service-credentials/[id]/DELETE.ts
|
|
30275
|
-
const handler$
|
|
30375
|
+
const handler$5 = async (c) => {
|
|
30276
30376
|
const { organizationId } = c.get("organization");
|
|
30277
30377
|
const credentialId = c.req.param("id");
|
|
30278
30378
|
if (!credentialId) return c.json(ErrorResponseSchema.parse({ error: "Credential id is required" }), 400);
|
|
@@ -30391,7 +30491,7 @@ async function postTeamRequestToSlack(input) {
|
|
|
30391
30491
|
}
|
|
30392
30492
|
//#endregion
|
|
30393
30493
|
//#region src/routes/account/team-requests/POST.ts
|
|
30394
|
-
const handler$
|
|
30494
|
+
const handler$4 = async (c) => {
|
|
30395
30495
|
const user = c.get("user");
|
|
30396
30496
|
const organizationContext = c.get("organization");
|
|
30397
30497
|
const parsed = SubmitTeamRequestRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
@@ -30436,7 +30536,7 @@ function mountAccountRoutes(options) {
|
|
|
30436
30536
|
const projectScoped = new Hono();
|
|
30437
30537
|
const protect = requireSession(createDefaultAuthJwtVerifier());
|
|
30438
30538
|
const deleteCredential = createDeleteCredentialHandler({ mcp: options.mcp });
|
|
30439
|
-
account.get("/mcp/oauth/callback", handler$
|
|
30539
|
+
account.get("/mcp/oauth/callback", handler$16);
|
|
30440
30540
|
account.use("/*", protect);
|
|
30441
30541
|
orgScoped.use("/*", protect);
|
|
30442
30542
|
orgScoped.use("/*", requireOrganization());
|
|
@@ -30458,109 +30558,113 @@ function mountAccountRoutes(options) {
|
|
|
30458
30558
|
const requireProjectManageMembers = authorize(projectActions.manageMembers);
|
|
30459
30559
|
const requireInvitableProjectRole = authorizePayload(InviteProjectMembersRequestSchema, ({ c, ctx, body }) => canInviteToProject(ctx, { invitePermission: getProjectInvitePermission(c) }, body.role));
|
|
30460
30560
|
const requireOrgParam = requireOrganizationParam();
|
|
30461
|
-
account.get("/organizations", handler$
|
|
30462
|
-
account.get("/organizations/slug-available", handler$
|
|
30561
|
+
account.get("/organizations", handler$102);
|
|
30562
|
+
account.get("/organizations/slug-available", handler$101);
|
|
30463
30563
|
account.post("/organizations", createOrganizationHandler(options));
|
|
30464
|
-
account.get("/organizations/:organizationId", requireOrgParam, handler$
|
|
30465
|
-
account.patch("/organizations/:organizationId", requireOrgParam, requireOrgUpdate, handler$
|
|
30466
|
-
account.get("/organizations/:organizationId/branding", requireOrgParam, handler$
|
|
30467
|
-
account.patch("/organizations/:organizationId/branding", requireOrgParam, requireOrgUpdate, handler$
|
|
30468
|
-
account.post("/organizations/:organizationId/branding/logo/presign", requireOrgParam, requireOrgUpdate, handler$
|
|
30469
|
-
account.get("/invitations", handler$
|
|
30470
|
-
account.post("/invitations/:invitationId/accept", handler$
|
|
30471
|
-
account.post("/invitations/:invitationId/decline", handler$
|
|
30472
|
-
account.get("/users/me/avatar", handler$
|
|
30473
|
-
account.post("/users/me/avatar/presign", handler$
|
|
30474
|
-
account.patch("/users/me/avatar", handler$
|
|
30475
|
-
account.get("/users/me/preferences", handler$
|
|
30476
|
-
account.patch("/users/me/preferences", handler$
|
|
30564
|
+
account.get("/organizations/:organizationId", requireOrgParam, handler$100);
|
|
30565
|
+
account.patch("/organizations/:organizationId", requireOrgParam, requireOrgUpdate, handler$99);
|
|
30566
|
+
account.get("/organizations/:organizationId/branding", requireOrgParam, handler$98);
|
|
30567
|
+
account.patch("/organizations/:organizationId/branding", requireOrgParam, requireOrgUpdate, handler$97);
|
|
30568
|
+
account.post("/organizations/:organizationId/branding/logo/presign", requireOrgParam, requireOrgUpdate, handler$96);
|
|
30569
|
+
account.get("/invitations", handler$25);
|
|
30570
|
+
account.post("/invitations/:invitationId/accept", handler$24);
|
|
30571
|
+
account.post("/invitations/:invitationId/decline", handler$23);
|
|
30572
|
+
account.get("/users/me/avatar", handler$107);
|
|
30573
|
+
account.post("/users/me/avatar/presign", handler$106);
|
|
30574
|
+
account.patch("/users/me/avatar", handler$105);
|
|
30575
|
+
account.get("/users/me/preferences", handler$104);
|
|
30576
|
+
account.patch("/users/me/preferences", handler$103);
|
|
30477
30577
|
const withOrgDb = withOrganizationProjectDatabase();
|
|
30478
|
-
orgScoped.get("/apps", handler$
|
|
30479
|
-
orgScoped.get("/apps/slug-available", handler$
|
|
30480
|
-
orgScoped.get("/channel-platforms", handler$
|
|
30481
|
-
orgScoped.post("/apps/discover", requireOrgUpdate, handler$
|
|
30482
|
-
orgScoped.post("/apps/discover-openapi", requireOrgUpdate, handler$
|
|
30483
|
-
orgScoped.post("/apps/discover-graphql", requireOrgUpdate, handler$
|
|
30484
|
-
orgScoped.post("/apps", requireOrgUpdate, handler$
|
|
30485
|
-
orgScoped.post("/apps/:slug/mcp/oauth/connections", requireOrgUpdate, withOrgDb, handler$
|
|
30486
|
-
orgScoped.get("/apps/:slug/catalog", handler$
|
|
30487
|
-
orgScoped.get("/apps/:slug", handler$
|
|
30488
|
-
account.post("/team-requests", requireOrganization(), handler$
|
|
30489
|
-
orgScoped.get("/members", handler$
|
|
30490
|
-
orgScoped.post("/members/invitations", requireUserInvite, requireInvitableRole, handler$
|
|
30491
|
-
orgScoped.patch("/members/:userId", requireUserManage, handler$
|
|
30492
|
-
orgScoped.delete("/members/:userId", requireUserManage, handler$
|
|
30493
|
-
orgScoped.get("/api-keys", handler$
|
|
30494
|
-
orgScoped.post("/api-keys", requireApiKeyCreate, handler$
|
|
30495
|
-
orgScoped.delete("/api-keys/:apiKeyId", handler$
|
|
30496
|
-
orgScoped.get("/managed-service-credentials", requireManagedServicesRead, handler$
|
|
30497
|
-
orgScoped.post("/managed-service-credentials", requireManagedServicesManage, handler$
|
|
30498
|
-
orgScoped.patch("/managed-service-credentials/:id", requireManagedServicesManage, handler$
|
|
30499
|
-
orgScoped.delete("/managed-service-credentials/:id", requireManagedServicesManage, handler$
|
|
30500
|
-
orgScoped.get("/agents", withOrgDb, handler$
|
|
30501
|
-
orgScoped.get("/agents/:agentId", withOrgDb, handler$
|
|
30502
|
-
orgScoped.get("/agents/:agentId/memory/files", withOrgDb, handler$
|
|
30503
|
-
orgScoped.get("/agents/:agentId/memory/files/content", withOrgDb, handler$
|
|
30504
|
-
orgScoped.get("/agents/:agentId/workspace/files", withOrgDb, handler$
|
|
30505
|
-
orgScoped.get("/agents/:agentId/workspace/files/content", withOrgDb, handler$
|
|
30506
|
-
orgScoped.get("/workflows", withOrgDb, handler$
|
|
30507
|
-
orgScoped.get("/workflows/:workflowId", withOrgDb, handler$
|
|
30508
|
-
orgScoped.get("/workflows/:workflowId/canvas", withOrgDb, handler$
|
|
30509
|
-
orgScoped.get("/workflows/:workflowId/canvas/credentials", withOrgDb, handler$
|
|
30510
|
-
orgScoped.get("/workflows/:workflowId/canvas/runs/:runId", withOrgDb, handler$
|
|
30511
|
-
orgScoped.get("/workflows/:workflowId/overview", withOrgDb, handler$
|
|
30512
|
-
orgScoped.get("/workflows/:workflowId/runs", withOrgDb, handler$
|
|
30513
|
-
orgScoped.get("/workflows/:workflowId/run-inputs", withOrgDb, handler$
|
|
30514
|
-
orgScoped.put("/workflows/:workflowId/run-inputs", withOrgDb, handler$
|
|
30515
|
-
orgScoped.post("/workflows/:workflowId/run", withOrgDb, handler$
|
|
30516
|
-
orgScoped.
|
|
30517
|
-
orgScoped.
|
|
30518
|
-
orgScoped.
|
|
30519
|
-
orgScoped.
|
|
30520
|
-
orgScoped.
|
|
30521
|
-
orgScoped.get("/
|
|
30522
|
-
orgScoped.get("/
|
|
30523
|
-
orgScoped.get("/triggers
|
|
30524
|
-
orgScoped.get("/triggers/:triggerId
|
|
30525
|
-
orgScoped.
|
|
30526
|
-
orgScoped.
|
|
30527
|
-
orgScoped.get("/
|
|
30528
|
-
orgScoped.get("/
|
|
30529
|
-
orgScoped.
|
|
30530
|
-
orgScoped.
|
|
30531
|
-
orgScoped.
|
|
30532
|
-
orgScoped.get("/
|
|
30533
|
-
orgScoped.
|
|
30534
|
-
orgScoped.
|
|
30535
|
-
orgScoped.
|
|
30536
|
-
orgScoped.
|
|
30578
|
+
orgScoped.get("/apps", handler$22);
|
|
30579
|
+
orgScoped.get("/apps/slug-available", handler$15);
|
|
30580
|
+
orgScoped.get("/channel-platforms", handler$12);
|
|
30581
|
+
orgScoped.post("/apps/discover", requireOrgUpdate, handler$20);
|
|
30582
|
+
orgScoped.post("/apps/discover-openapi", requireOrgUpdate, handler$19);
|
|
30583
|
+
orgScoped.post("/apps/discover-graphql", requireOrgUpdate, handler$18);
|
|
30584
|
+
orgScoped.post("/apps", requireOrgUpdate, handler$21);
|
|
30585
|
+
orgScoped.post("/apps/:slug/mcp/oauth/connections", requireOrgUpdate, withOrgDb, handler$17);
|
|
30586
|
+
orgScoped.get("/apps/:slug/catalog", handler$13);
|
|
30587
|
+
orgScoped.get("/apps/:slug", handler$14);
|
|
30588
|
+
account.post("/team-requests", requireOrganization(), handler$4);
|
|
30589
|
+
orgScoped.get("/members", handler$29);
|
|
30590
|
+
orgScoped.post("/members/invitations", requireUserInvite, requireInvitableRole, handler$28);
|
|
30591
|
+
orgScoped.patch("/members/:userId", requireUserManage, handler$27);
|
|
30592
|
+
orgScoped.delete("/members/:userId", requireUserManage, handler$26);
|
|
30593
|
+
orgScoped.get("/api-keys", handler$11);
|
|
30594
|
+
orgScoped.post("/api-keys", requireApiKeyCreate, handler$10);
|
|
30595
|
+
orgScoped.delete("/api-keys/:apiKeyId", handler$9);
|
|
30596
|
+
orgScoped.get("/managed-service-credentials", requireManagedServicesRead, handler$8);
|
|
30597
|
+
orgScoped.post("/managed-service-credentials", requireManagedServicesManage, handler$7);
|
|
30598
|
+
orgScoped.patch("/managed-service-credentials/:id", requireManagedServicesManage, handler$6);
|
|
30599
|
+
orgScoped.delete("/managed-service-credentials/:id", requireManagedServicesManage, handler$5);
|
|
30600
|
+
orgScoped.get("/agents", withOrgDb, handler$93);
|
|
30601
|
+
orgScoped.get("/agents/:agentId", withOrgDb, handler$92);
|
|
30602
|
+
orgScoped.get("/agents/:agentId/memory/files", withOrgDb, handler$91);
|
|
30603
|
+
orgScoped.get("/agents/:agentId/memory/files/content", withOrgDb, handler$90);
|
|
30604
|
+
orgScoped.get("/agents/:agentId/workspace/files", withOrgDb, handler$89);
|
|
30605
|
+
orgScoped.get("/agents/:agentId/workspace/files/content", withOrgDb, handler$88);
|
|
30606
|
+
orgScoped.get("/workflows", withOrgDb, handler$86);
|
|
30607
|
+
orgScoped.get("/workflows/:workflowId", withOrgDb, handler$85);
|
|
30608
|
+
orgScoped.get("/workflows/:workflowId/canvas", withOrgDb, handler$84);
|
|
30609
|
+
orgScoped.get("/workflows/:workflowId/canvas/credentials", withOrgDb, handler$83);
|
|
30610
|
+
orgScoped.get("/workflows/:workflowId/canvas/runs/:runId", withOrgDb, handler$82);
|
|
30611
|
+
orgScoped.get("/workflows/:workflowId/overview", withOrgDb, handler$81);
|
|
30612
|
+
orgScoped.get("/workflows/:workflowId/runs", withOrgDb, handler$72);
|
|
30613
|
+
orgScoped.get("/workflows/:workflowId/run-inputs", withOrgDb, handler$80);
|
|
30614
|
+
orgScoped.put("/workflows/:workflowId/run-inputs", withOrgDb, handler$79);
|
|
30615
|
+
orgScoped.post("/workflows/:workflowId/run", withOrgDb, handler$78);
|
|
30616
|
+
orgScoped.get("/workflows/:workflowId/form", withOrgDb, handler$77);
|
|
30617
|
+
orgScoped.put("/workflows/:workflowId/form", withOrgDb, handler$76);
|
|
30618
|
+
orgScoped.delete("/workflows/:workflowId/form", withOrgDb, handler$75);
|
|
30619
|
+
orgScoped.post("/workflows/:workflowId/form/rotate", withOrgDb, handler$74);
|
|
30620
|
+
orgScoped.post("/workflows/:workflowId/attachments/presign", withOrgDb, handler$73);
|
|
30621
|
+
orgScoped.get("/skills", withOrgDb, handler$70);
|
|
30622
|
+
orgScoped.get("/skills/:skillId", withOrgDb, handler$69);
|
|
30623
|
+
orgScoped.get("/triggers", withOrgDb, handler$68);
|
|
30624
|
+
orgScoped.get("/triggers/:triggerId", withOrgDb, handler$67);
|
|
30625
|
+
orgScoped.get("/triggers/:triggerId/runs", withOrgDb, handler$66);
|
|
30626
|
+
orgScoped.get("/triggers/:triggerId/file", withOrgDb, handler$65);
|
|
30627
|
+
orgScoped.get("/triggers/:triggerId/overview", withOrgDb, handler$64);
|
|
30628
|
+
orgScoped.get("/triggers/:triggerId/invoke-inputs", withOrgDb, handler$61);
|
|
30629
|
+
orgScoped.post("/triggers/:triggerId/invoke", withOrgDb, handler$62);
|
|
30630
|
+
orgScoped.patch("/triggers/:triggerId/attachments/:attachmentId", withOrgDb, handler$63);
|
|
30631
|
+
orgScoped.get("/recents", withOrgDb, handler$60);
|
|
30632
|
+
orgScoped.get("/history", withOrgDb, handler$95);
|
|
30633
|
+
orgScoped.get("/history/:runId", withOrgDb, handler$94);
|
|
30634
|
+
orgScoped.post("/workflows/runs/:runId/cancel", withOrgDb, handler$71);
|
|
30635
|
+
orgScoped.post("/agents/sessions/:sessionId/cancel", withOrgDb, handler$87);
|
|
30636
|
+
orgScoped.get("/credentials", withOrgDb, handler$34);
|
|
30637
|
+
orgScoped.post("/credentials", withOrgDb, handler$33);
|
|
30638
|
+
orgScoped.get("/credentials/:credentialId", withOrgDb, (c, next) => c.req.param("credentialId") === "instances" ? next() : handler$32(c, next));
|
|
30639
|
+
orgScoped.patch("/credentials/:credentialId", withOrgDb, handler$31);
|
|
30640
|
+
orgScoped.post("/credentials/:credentialId/duplicate", withOrgDb, handler$30);
|
|
30537
30641
|
orgScoped.delete("/credentials/:credentialId", withOrgDb, deleteCredential);
|
|
30538
|
-
orgScoped.get("/projects", handler$
|
|
30539
|
-
orgScoped.get("/projects/slug-available", handler$
|
|
30540
|
-
orgScoped.get("/projects/metrics", withOrgDb, handler$
|
|
30642
|
+
orgScoped.get("/projects", handler$59);
|
|
30643
|
+
orgScoped.get("/projects/slug-available", handler$56);
|
|
30644
|
+
orgScoped.get("/projects/metrics", withOrgDb, handler$58);
|
|
30541
30645
|
orgScoped.post("/projects", createCreateProjectHandler(options.projectQuotaGate));
|
|
30542
|
-
projectScoped.get("/:projectId", requireProject(), requireProjectMember, handler$
|
|
30543
|
-
projectScoped.patch("/:projectId", requireProject(), requireProjectMember, requireProjectUpdate, handler$
|
|
30544
|
-
projectScoped.delete("/:projectId", requireProject(), requireProjectMember, requireProjectDelete, handler$
|
|
30545
|
-
projectScoped.get("/:projectId/settings", requireProject(), requireProjectMember, handler$
|
|
30546
|
-
projectScoped.patch("/:projectId/settings", requireProject(), requireProjectMember, requireProjectUpdate, handler$
|
|
30547
|
-
projectScoped.get("/:projectId/members", requireProject(), requireProjectMember, handler$
|
|
30548
|
-
projectScoped.post("/:projectId/members", requireProject(), requireProjectMember, requireInvitableProjectRole, handler$
|
|
30549
|
-
projectScoped.patch("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$
|
|
30550
|
-
projectScoped.delete("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$
|
|
30551
|
-
projectScoped.delete("/:projectId/members/me", requireProject(), requireProjectMember, handler$
|
|
30646
|
+
projectScoped.get("/:projectId", requireProject(), requireProjectMember, handler$55);
|
|
30647
|
+
projectScoped.patch("/:projectId", requireProject(), requireProjectMember, requireProjectUpdate, handler$54);
|
|
30648
|
+
projectScoped.delete("/:projectId", requireProject(), requireProjectMember, requireProjectDelete, handler$53);
|
|
30649
|
+
projectScoped.get("/:projectId/settings", requireProject(), requireProjectMember, handler$36);
|
|
30650
|
+
projectScoped.patch("/:projectId/settings", requireProject(), requireProjectMember, requireProjectUpdate, handler$35);
|
|
30651
|
+
projectScoped.get("/:projectId/members", requireProject(), requireProjectMember, handler$41);
|
|
30652
|
+
projectScoped.post("/:projectId/members", requireProject(), requireProjectMember, requireInvitableProjectRole, handler$40);
|
|
30653
|
+
projectScoped.patch("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$39);
|
|
30654
|
+
projectScoped.delete("/:projectId/members/:userId", requireProject(), requireProjectMember, requireProjectManageMembers, handler$38);
|
|
30655
|
+
projectScoped.delete("/:projectId/members/me", requireProject(), requireProjectMember, handler$37);
|
|
30552
30656
|
projectScoped.get("/:projectId/reachability", requireProject(), requireProjectMember, createProjectReachabilityHandler(options.hosting));
|
|
30553
|
-
projectScoped.get("/:projectId/files", requireProject(), requireProjectMember, withOrgDb, handler$
|
|
30554
|
-
projectScoped.post("/:projectId/agents/:slug/attachments/presign", requireProject(), requireProjectMember, withOrgDb, handler$
|
|
30555
|
-
projectScoped.get("/:projectId/agents/:slug/attachments/:key{.+}", requireProject(), requireProjectMember, withOrgDb, handler$
|
|
30556
|
-
projectScoped.get("/:projectId/artifacts/:artifactId/files/content", requireProject(), requireProjectMember, handler$
|
|
30557
|
-
projectScoped.get("/:projectId/deployments", requireProject(), requireProjectMember, handler$
|
|
30558
|
-
projectScoped.get("/:projectId/artifacts/active/download", requireProject(), requireProjectMember, requireProjectDeploy, handler$
|
|
30559
|
-
projectScoped.get("/:projectId/artifacts/active/source", requireProject(), requireProjectMember, withOrgDb, handler$
|
|
30560
|
-
projectScoped.post("/:projectId/artifacts", requireProject(), requireProjectMember, requireProjectDeploy, handler$
|
|
30561
|
-
projectScoped.post("/:projectId/artifacts/:artifactId/complete", requireProject(), requireProjectMember, requireProjectDeploy, handler$
|
|
30562
|
-
projectScoped.post("/:projectId/artifacts/:artifactId/source/presign", requireProject(), requireProjectMember, requireProjectDeploy, handler$
|
|
30563
|
-
projectScoped.post("/:projectId/artifacts/:artifactId/source/manifest", requireProject(), requireProjectMember, requireProjectDeploy, handler$
|
|
30657
|
+
projectScoped.get("/:projectId/files", requireProject(), requireProjectMember, withOrgDb, handler$43);
|
|
30658
|
+
projectScoped.post("/:projectId/agents/:slug/attachments/presign", requireProject(), requireProjectMember, withOrgDb, handler$45);
|
|
30659
|
+
projectScoped.get("/:projectId/agents/:slug/attachments/:key{.+}", requireProject(), requireProjectMember, withOrgDb, handler$44);
|
|
30660
|
+
projectScoped.get("/:projectId/artifacts/:artifactId/files/content", requireProject(), requireProjectMember, handler$42);
|
|
30661
|
+
projectScoped.get("/:projectId/deployments", requireProject(), requireProjectMember, handler$52);
|
|
30662
|
+
projectScoped.get("/:projectId/artifacts/active/download", requireProject(), requireProjectMember, requireProjectDeploy, handler$50);
|
|
30663
|
+
projectScoped.get("/:projectId/artifacts/active/source", requireProject(), requireProjectMember, withOrgDb, handler$49);
|
|
30664
|
+
projectScoped.post("/:projectId/artifacts", requireProject(), requireProjectMember, requireProjectDeploy, handler$51);
|
|
30665
|
+
projectScoped.post("/:projectId/artifacts/:artifactId/complete", requireProject(), requireProjectMember, requireProjectDeploy, handler$48);
|
|
30666
|
+
projectScoped.post("/:projectId/artifacts/:artifactId/source/presign", requireProject(), requireProjectMember, requireProjectDeploy, handler$47);
|
|
30667
|
+
projectScoped.post("/:projectId/artifacts/:artifactId/source/manifest", requireProject(), requireProjectMember, requireProjectDeploy, handler$46);
|
|
30564
30668
|
orgScoped.route("/projects", projectScoped);
|
|
30565
30669
|
account.route("/", orgScoped);
|
|
30566
30670
|
return account;
|
|
@@ -30836,7 +30940,7 @@ async function loadModelIds() {
|
|
|
30836
30940
|
})();
|
|
30837
30941
|
return pendingFetch;
|
|
30838
30942
|
}
|
|
30839
|
-
async function handler$
|
|
30943
|
+
async function handler$3(c) {
|
|
30840
30944
|
try {
|
|
30841
30945
|
const models = await loadModelIds();
|
|
30842
30946
|
return c.json(PublicModelsResponseSchema.parse({ models }));
|
|
@@ -30847,21 +30951,34 @@ async function handler$2(c) {
|
|
|
30847
30951
|
}
|
|
30848
30952
|
}
|
|
30849
30953
|
//#endregion
|
|
30954
|
+
//#region src/lib/client-ip.ts
|
|
30955
|
+
function clientIp(c) {
|
|
30956
|
+
const forwarded = c.req.header("x-forwarded-for")?.split(",")[0]?.trim();
|
|
30957
|
+
if (forwarded) return forwarded;
|
|
30958
|
+
const realIp = c.req.header("x-real-ip")?.trim();
|
|
30959
|
+
if (realIp) return realIp;
|
|
30960
|
+
try {
|
|
30961
|
+
return getConnInfo(c).remote.address ?? "unknown";
|
|
30962
|
+
} catch {
|
|
30963
|
+
return "unknown";
|
|
30964
|
+
}
|
|
30965
|
+
}
|
|
30966
|
+
//#endregion
|
|
30850
30967
|
//#region src/lib/contact-rate-limit.ts
|
|
30851
|
-
const WINDOW_MS = 6e4;
|
|
30852
|
-
const MAX_REQUESTS_PER_WINDOW = 5;
|
|
30853
|
-
const hits = /* @__PURE__ */ new Map();
|
|
30968
|
+
const WINDOW_MS$1 = 6e4;
|
|
30969
|
+
const MAX_REQUESTS_PER_WINDOW$1 = 5;
|
|
30970
|
+
const hits$1 = /* @__PURE__ */ new Map();
|
|
30854
30971
|
function consumeContactRateLimit(key) {
|
|
30855
30972
|
const now = Date.now();
|
|
30856
|
-
const entry = hits.get(key);
|
|
30973
|
+
const entry = hits$1.get(key);
|
|
30857
30974
|
if (!entry || now >= entry.resetAt) {
|
|
30858
|
-
hits.set(key, {
|
|
30975
|
+
hits$1.set(key, {
|
|
30859
30976
|
count: 1,
|
|
30860
|
-
resetAt: now + WINDOW_MS
|
|
30977
|
+
resetAt: now + WINDOW_MS$1
|
|
30861
30978
|
});
|
|
30862
30979
|
return true;
|
|
30863
30980
|
}
|
|
30864
|
-
if (entry.count >= MAX_REQUESTS_PER_WINDOW) return false;
|
|
30981
|
+
if (entry.count >= MAX_REQUESTS_PER_WINDOW$1) return false;
|
|
30865
30982
|
entry.count += 1;
|
|
30866
30983
|
return true;
|
|
30867
30984
|
}
|
|
@@ -30917,18 +31034,7 @@ async function postMarketingContactToSlack(input) {
|
|
|
30917
31034
|
}
|
|
30918
31035
|
//#endregion
|
|
30919
31036
|
//#region src/routes/public/contact/POST.ts
|
|
30920
|
-
function
|
|
30921
|
-
const forwarded = c.req.header("x-forwarded-for")?.split(",")[0]?.trim();
|
|
30922
|
-
if (forwarded) return forwarded;
|
|
30923
|
-
const realIp = c.req.header("x-real-ip")?.trim();
|
|
30924
|
-
if (realIp) return realIp;
|
|
30925
|
-
try {
|
|
30926
|
-
return getConnInfo(c).remote.address ?? "unknown";
|
|
30927
|
-
} catch {
|
|
30928
|
-
return "unknown";
|
|
30929
|
-
}
|
|
30930
|
-
}
|
|
30931
|
-
async function handler$1(c) {
|
|
31037
|
+
async function handler$2(c) {
|
|
30932
31038
|
if (!consumeContactRateLimit(clientIp(c))) return c.json({ error: "Too many requests" }, 429);
|
|
30933
31039
|
const parsed = SubmitMarketingContactRequestSchema.safeParse(await c.req.json().catch(() => null));
|
|
30934
31040
|
if (!parsed.success) {
|
|
@@ -30950,6 +31056,115 @@ async function handler$1(c) {
|
|
|
30950
31056
|
return c.json(SubmitMarketingContactResponseSchema.parse({ ok: true }), 200);
|
|
30951
31057
|
}
|
|
30952
31058
|
//#endregion
|
|
31059
|
+
//#region src/routes/public/forms/resolve.ts
|
|
31060
|
+
async function resolvePublicWorkflowForm(token) {
|
|
31061
|
+
const publishedForm = await selectEnabledPublishedFormByToken(token);
|
|
31062
|
+
if (!publishedForm) return null;
|
|
31063
|
+
const workflow = await withProjectScope(publishedForm.project.id, () => selectActiveWorkflowBySlug(publishedForm.form.workflowSlug));
|
|
31064
|
+
if (!workflow) return null;
|
|
31065
|
+
const requestSchema = await resolveWorkflowRequestSchema(publishedForm.project.id, workflow);
|
|
31066
|
+
if (!requestSchema) return null;
|
|
31067
|
+
const inputSchema = jsonSchemaToWorkflowInputSchema(requestSchema);
|
|
31068
|
+
if (inputSchema.fields.length === 0 || schemaHasFileFields(inputSchema) || schemaHasUnsupportedFormFields(inputSchema)) return null;
|
|
31069
|
+
return {
|
|
31070
|
+
publishedForm,
|
|
31071
|
+
workflow,
|
|
31072
|
+
requestSchema,
|
|
31073
|
+
inputSchema
|
|
31074
|
+
};
|
|
31075
|
+
}
|
|
31076
|
+
//#endregion
|
|
31077
|
+
//#region src/routes/public/forms/GET.ts
|
|
31078
|
+
async function handler$1(c) {
|
|
31079
|
+
const token = c.req.param("token")?.trim();
|
|
31080
|
+
if (!token) return c.json(ErrorResponseSchema.parse({ error: "Form not found" }), 404);
|
|
31081
|
+
const resolved = await resolvePublicWorkflowForm(token);
|
|
31082
|
+
if (!resolved) return c.json(ErrorResponseSchema.parse({ error: "Form not found" }), 404);
|
|
31083
|
+
const { publishedForm, workflow, inputSchema } = resolved;
|
|
31084
|
+
const branding = publishedForm.organization;
|
|
31085
|
+
return c.json(PublicFormMetadataSchema.parse({
|
|
31086
|
+
title: publishedForm.form.title ?? workflow.name,
|
|
31087
|
+
description: publishedForm.form.description ?? workflow.description,
|
|
31088
|
+
fields: resolvePublicFormFields(inputSchema, publishedForm.form.fieldConfig),
|
|
31089
|
+
branding: {
|
|
31090
|
+
organizationName: branding.name,
|
|
31091
|
+
projectName: publishedForm.project.name,
|
|
31092
|
+
logoLightUrl: branding.customLogoEnabled ? branding.logoLightUrl : null,
|
|
31093
|
+
logoDarkUrl: branding.customLogoEnabled ? branding.logoDarkUrl : null,
|
|
31094
|
+
logoHeightPx: branding.logoHeightPx
|
|
31095
|
+
}
|
|
31096
|
+
}));
|
|
31097
|
+
}
|
|
31098
|
+
//#endregion
|
|
31099
|
+
//#region src/lib/public-form-rate-limit.ts
|
|
31100
|
+
const WINDOW_MS = 6e4;
|
|
31101
|
+
const MAX_REQUESTS_PER_WINDOW = 5;
|
|
31102
|
+
const hits = /* @__PURE__ */ new Map();
|
|
31103
|
+
/** Limits a visitor's submissions to one published form. */
|
|
31104
|
+
function consumePublicFormRateLimit(formToken, ip) {
|
|
31105
|
+
const key = `${formToken}:${ip}`;
|
|
31106
|
+
const now = Date.now();
|
|
31107
|
+
const entry = hits.get(key);
|
|
31108
|
+
if (!entry || now >= entry.resetAt) {
|
|
31109
|
+
hits.set(key, {
|
|
31110
|
+
count: 1,
|
|
31111
|
+
resetAt: now + WINDOW_MS
|
|
31112
|
+
});
|
|
31113
|
+
return true;
|
|
31114
|
+
}
|
|
31115
|
+
if (entry.count >= MAX_REQUESTS_PER_WINDOW) return false;
|
|
31116
|
+
entry.count += 1;
|
|
31117
|
+
return true;
|
|
31118
|
+
}
|
|
31119
|
+
//#endregion
|
|
31120
|
+
//#region src/routes/public/forms/submit/POST.ts
|
|
31121
|
+
function parseRunInput(requestSchema, input) {
|
|
31122
|
+
if (typeof z.fromJSONSchema === "function") return z.fromJSONSchema(requestSchema).parse(input ?? {});
|
|
31123
|
+
return z.record(z.string(), z.unknown()).parse(input ?? {});
|
|
31124
|
+
}
|
|
31125
|
+
function createHandler(promptCreditGate) {
|
|
31126
|
+
return async (c) => {
|
|
31127
|
+
const token = c.req.param("token")?.trim();
|
|
31128
|
+
if (!token) return c.json(ErrorResponseSchema.parse({ error: "Form not found" }), 404);
|
|
31129
|
+
const resolved = await resolvePublicWorkflowForm(token);
|
|
31130
|
+
if (!resolved) return c.json(ErrorResponseSchema.parse({ error: "Form not found" }), 404);
|
|
31131
|
+
if (!consumePublicFormRateLimit(token, clientIp(c))) return c.json(ErrorResponseSchema.parse({ error: "Too many requests" }), 429);
|
|
31132
|
+
const parsed = PublicFormSubmitBodySchema.safeParse(await c.req.json().catch(() => null));
|
|
31133
|
+
if (!parsed.success) {
|
|
31134
|
+
const message = parsed.error.issues[0]?.message ?? "Invalid request body";
|
|
31135
|
+
return c.json(ErrorResponseSchema.parse({ error: message }), 400);
|
|
31136
|
+
}
|
|
31137
|
+
if (parsed.data.website?.trim()) return c.json(PublicFormSubmitResponseSchema.parse({ ok: true }), 202);
|
|
31138
|
+
const { publishedForm, requestSchema, workflow } = resolved;
|
|
31139
|
+
if (promptCreditGate) try {
|
|
31140
|
+
const creditResult = await promptCreditGate(publishedForm.organization.id);
|
|
31141
|
+
if (!creditResult.allow) return c.json(ErrorResponseSchema.parse({
|
|
31142
|
+
error: creditResult.reason,
|
|
31143
|
+
message: "This workspace is out of credits. Add credits in billing settings to run workflows."
|
|
31144
|
+
}), 402);
|
|
31145
|
+
} catch (error) {
|
|
31146
|
+
console.error("[public-forms] prompt credit gate failed (allowing):", error);
|
|
31147
|
+
}
|
|
31148
|
+
const organization = await selectOrganizationById(publishedForm.organization.id);
|
|
31149
|
+
if (!organization) return c.json(ErrorResponseSchema.parse({ error: "Form not found" }), 404);
|
|
31150
|
+
try {
|
|
31151
|
+
await withProjectScope(publishedForm.project.id, async () => {
|
|
31152
|
+
const scheduler = await getProjectScheduler(organization, publishedForm.project.id);
|
|
31153
|
+
await enqueueWorkflowRunByKey({
|
|
31154
|
+
workflowKey: workflow.slug,
|
|
31155
|
+
input: parsed.data.values,
|
|
31156
|
+
jobQueue: scheduler,
|
|
31157
|
+
parseInput: (value) => parseRunInput(requestSchema, value)
|
|
31158
|
+
});
|
|
31159
|
+
});
|
|
31160
|
+
} catch (error) {
|
|
31161
|
+
if (error instanceof ZodError) return c.json(validationErrorResponse(error, "Invalid workflow input"), 400);
|
|
31162
|
+
throw error;
|
|
31163
|
+
}
|
|
31164
|
+
return c.json(PublicFormSubmitResponseSchema.parse({ ok: true }), 202);
|
|
31165
|
+
};
|
|
31166
|
+
}
|
|
31167
|
+
//#endregion
|
|
30953
31168
|
//#region src/routes/well-known/oauth-client-metadata/GET.ts
|
|
30954
31169
|
/** Public CIMD document for outbound MCP OAuth (no session required). */
|
|
30955
31170
|
async function handler(c) {
|
|
@@ -30976,8 +31191,10 @@ async function createApp$1(auth, options) {
|
|
|
30976
31191
|
},
|
|
30977
31192
|
mountAccount: async (app) => {
|
|
30978
31193
|
app.get(OAUTH_CLIENT_METADATA_PATH, handler);
|
|
30979
|
-
app.post("/api/public/contact", handler$
|
|
30980
|
-
app.get("/api/public/models", handler$
|
|
31194
|
+
app.post("/api/public/contact", handler$2);
|
|
31195
|
+
app.get("/api/public/models", handler$3);
|
|
31196
|
+
app.get("/api/public/forms/:token", handler$1);
|
|
31197
|
+
app.post("/api/public/forms/:token/submit", createHandler(options.promptCreditGate));
|
|
30981
31198
|
app.route("/api", mountAccountRoutes({
|
|
30982
31199
|
hosting: options.hosting,
|
|
30983
31200
|
storage: options.storage,
|
|
@@ -31139,4 +31356,4 @@ async function startPlatformServer(platformConfig, hooks = {}) {
|
|
|
31139
31356
|
//#endregion
|
|
31140
31357
|
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 };
|
|
31141
31358
|
|
|
31142
|
-
//# sourceMappingURL=start-
|
|
31359
|
+
//# sourceMappingURL=start-C00o7s8a.mjs.map
|