0sec-cli 0.24.1 → 0.26.0
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/0.js +67 -62
- package/README.md +121 -82
- package/chunks/{adapt-loop-L77BWMNE.js → adapt-loop-P4HKONB5.js} +6 -5
- package/chunks/{artifact-scraper-BV67RAP5.js → artifact-scraper-IIRJNYKT.js} +4 -3
- package/chunks/{assumption-mining-RPVR77A3.js → assumption-mining-YA6VJ2V6.js} +22 -20
- package/chunks/{backend-connections-ACIXNYZN.js → backend-connections-64PKYKL7.js} +5 -4
- package/chunks/chunk-36J5ZLFE.js +18729 -0
- package/chunks/{chunk-ZM6ANQZJ.js → chunk-3MWQNNJU.js} +16180 -34467
- package/chunks/{chunk-GV5WXDHY.js → chunk-3VQ5EZKG.js} +11 -9
- package/chunks/chunk-5XOYTAOK.js +1546 -0
- package/chunks/{chunk-UJE4WOQS.js → chunk-6GV5G6U3.js} +1 -1
- package/chunks/{chunk-X2ZMSRTP.js → chunk-6SNOKNCS.js} +333 -3
- package/chunks/{chunk-BMDG6T7D.js → chunk-72PU46MS.js} +178 -133
- package/chunks/{chunk-KCA35IL3.js → chunk-7PUJI64A.js} +11 -9
- package/chunks/chunk-A7G6S5RA.js +90 -0
- package/chunks/chunk-ABKUI3QB.js +196 -0
- package/chunks/{chunk-5ETI27Q3.js → chunk-AFJ2UMPR.js} +3 -3
- package/chunks/{chunk-XA2IBHPB.js → chunk-B7XL6RON.js} +1 -1
- package/chunks/{chunk-TVS6WVSK.js → chunk-BM6EYP2D.js} +3 -3
- package/chunks/{chunk-7UHAXEOV.js → chunk-D4M5WURF.js} +226 -4
- package/chunks/{chunk-K74DRDC5.js → chunk-EHNVP6QB.js} +1 -1
- package/chunks/{chunk-I43YYHDU.js → chunk-FBZBJYZS.js} +5 -50
- package/chunks/{chunk-GXXX7AGH.js → chunk-GYEYTNHK.js} +144 -14
- package/chunks/{chunk-IJ6UPW3H.js → chunk-HS2NQ7K6.js} +393 -58
- package/chunks/chunk-HUZ2EC2R.js +196 -0
- package/chunks/{chunk-SU4IHQQI.js → chunk-IUUNIJPM.js} +1 -1
- package/chunks/chunk-JGDA6EIJ.js +49 -0
- package/chunks/{chunk-CJRZSWII.js → chunk-K3PTYN43.js} +3 -3
- package/chunks/{chunk-2NBZZFRG.js → chunk-KCABBZHN.js} +8 -10
- package/chunks/{chunk-3LPBJMHB.js → chunk-LRD5N2TQ.js} +1 -1
- package/chunks/{chunk-SQCBHFWN.js → chunk-LWMEJYCP.js} +2 -2
- package/chunks/chunk-MNK373HF.js +57 -0
- package/chunks/{chunk-R2XBH476.js → chunk-MOEVVXML.js} +2 -2
- package/chunks/{chunk-F2P25DJY.js → chunk-MOGWEHSC.js} +1448 -1050
- package/chunks/{chunk-6XMFCVJS.js → chunk-N7YCONYR.js} +1 -1
- package/chunks/{chunk-3WUPCZGF.js → chunk-NA3FKCI2.js} +1 -1
- package/chunks/{chunk-S2GITRD5.js → chunk-NABVDAAO.js} +2 -2
- package/chunks/{chunk-SZDD77KX.js → chunk-NNMOTHKC.js} +6 -10
- package/chunks/{chunk-LMP2T4G2.js → chunk-OILVEROI.js} +22 -172
- package/chunks/{chunk-YERUDEXT.js → chunk-PAE7ZAV6.js} +2780 -1255
- package/chunks/{chunk-NBV4I237.js → chunk-PAMJEXE2.js} +1 -1
- package/chunks/{chunk-PJU24AKR.js → chunk-R7VWEY45.js} +337 -257
- package/chunks/{chunk-QNRYOJEB.js → chunk-RZZ6VPRY.js} +1 -1
- package/chunks/{chunk-WUPN3D37.js → chunk-S4DFH2FJ.js} +26 -1
- package/chunks/{chunk-5WAHHZBF.js → chunk-SIR7XW2S.js} +61910 -30777
- package/chunks/{chunk-BD7WULFS.js → chunk-SSPP64FF.js} +3 -2
- package/chunks/{chunk-BOBIAHKA.js → chunk-STPHTPSD.js} +3 -333
- package/chunks/{chunk-Q7JKIKKF.js → chunk-UGCTPKJG.js} +89 -17
- package/chunks/{chunk-5PFRE522.js → chunk-ULRLUXSS.js} +1 -1
- package/chunks/{chunk-GZA7RGK7.js → chunk-UQS7XCBV.js} +2085 -1093
- package/chunks/{chunk-X2IPO5JO.js → chunk-V2KJQVYE.js} +2676 -2959
- package/chunks/{chunk-CGBDEST2.js → chunk-VJBEB2K6.js} +1 -1
- package/chunks/{chunk-ILRMLA6J.js → chunk-VWE36MUN.js} +1 -1
- package/chunks/{chunk-RURJYCWY.js → chunk-WNWDQ2TO.js} +1 -1
- package/chunks/{chunk-GTED3FSZ.js → chunk-WPJMA5AK.js} +4 -99
- package/chunks/{chunk-5NFIY2SJ.js → chunk-XJ2TBEV7.js} +3 -3
- package/chunks/{chunk-PVJUPIQG.js → chunk-XOVYV7TT.js} +6 -6
- package/chunks/{chunk-IXT64DV5.js → chunk-XPDJE537.js} +97 -1
- package/chunks/{chunk-YKWARO3T.js → chunk-YGYJ2FTH.js} +95 -21
- package/chunks/{chunk-JWSOUKFF.js → chunk-YJGPPPUB.js} +66 -21
- package/chunks/chunk-YP2DHYNI.js +650 -0
- package/chunks/{chunk-RVJVM5L4.js → chunk-Z2VLJEQJ.js} +5 -5
- package/chunks/chunk-ZPVSDB63.js +3839 -0
- package/chunks/{codex-models-6XVNFRXZ.js → codex-models-CI22KIHY.js} +9 -8
- package/chunks/{commands-FRPOFIO4.js → commands-C2WRSCNB.js} +909 -610
- package/chunks/dashboard-XO2X2SPD.js +75 -0
- package/chunks/{db-BXJNWUYJ.js → db-FU3OIGQK.js} +5 -4
- package/chunks/{deep-review-GSJEBLCG.js → deep-review-5AL6QYTK.js} +37 -38
- package/chunks/{disclose-OU6Z6GVT.js → disclose-YPV5KIUU.js} +6 -5
- package/chunks/{dist-M2X367VW.js → dist-JAZWL3SC.js} +3 -2
- package/chunks/{dist-TQMHMSBZ.js → dist-ONIRKDH6.js} +376 -333
- package/chunks/{dist-RKLQIXDT.js → dist-QLMPTFT7.js} +4 -3
- package/chunks/{dist-7KSYDDSG.js → dist-QXJKD743.js} +5 -2
- package/chunks/{dist-LNXGATR2.js → dist-WNAOCQGA.js} +5 -4
- package/chunks/eval-runner-D3RUCU3R.js +38 -0
- package/chunks/{exploit-agent-Y2P4GFIY.js → exploit-agent-4E4HXKUA.js} +1 -1
- package/chunks/{exploit-autoclimb-YRZ3TMS2.js → exploit-autoclimb-5GRXI6VQ.js} +1 -1
- package/chunks/{exploit-climb-4LEY4SDW.js → exploit-climb-AHQEJ2I2.js} +4 -3
- package/chunks/{fix-RQSIG75B.js → fix-CHD7LXDS.js} +9 -8
- package/chunks/{harness-3NVC3DDY.js → harness-E63KDHPG.js} +5 -4
- package/chunks/{http-conformance-U5F6GKYG.js → http-conformance-AXMUOE6C.js} +3 -2
- package/chunks/hunt-scan-ME2Z4CTC.js +43 -0
- package/chunks/{kernel-primitive-T47V3RD3.js → kernel-primitive-S566GXWP.js} +4 -3
- package/chunks/{kernel-vm-runner-AEL5E3SV.js → kernel-vm-runner-KREBY4DC.js} +4 -3
- package/chunks/{local-engine-ZCW4YC6E.js → local-engine-ZRTZVSSX.js} +7 -6
- package/chunks/managed-operation-ZMLLRCCQ.js +59 -0
- package/chunks/{memsafety-scan-L2Z7E7TE.js → memsafety-scan-Q2MBZEGJ.js} +1 -2
- package/chunks/{native-loop-26X2CHBV.js → native-loop-UV3Z4Z2F.js} +31 -16
- package/chunks/operator-services-JOCREEBA.js +79 -0
- package/chunks/orchestrate-ZF6ZTSIQ.js +62 -0
- package/chunks/{prepare-C3KGMBXT.js → prepare-PLDVGLDX.js} +7 -6
- package/chunks/{provider-model-discovery-QGUGL3XW.js → provider-model-discovery-3X6DON3Y.js} +7 -2
- package/chunks/{remote-workflow-runtime-DB52SINR.js → remote-workflow-runtime-GOI4TYP5.js} +4 -3
- package/chunks/routing-WCQLO5SP.js +61 -0
- package/chunks/{runtime-AUBLQUOH.js → runtime-6ZIXFTW5.js} +4 -3
- package/chunks/{runtime-U66JNSAY.js → runtime-TVH5ORUK.js} +13 -8
- package/chunks/{scan-stream-34F3LTPV.js → scan-stream-HJVTWZ44.js} +6 -4
- package/chunks/{scope-HSTG63TQ.js → scope-RCYXVGJR.js} +4 -3
- package/chunks/service-plugins-TN6KDX4L.js +63 -0
- package/chunks/{session-store-MKAAP3WL.js → session-store-6QR3CVUA.js} +8 -5
- package/chunks/{variant-candidates-LG767HWH.js → variant-candidates-SGLKPPHI.js} +9 -8
- package/chunks/{web-recon-prepass-NJP6J3E4.js → web-recon-prepass-GO7CTMVQ.js} +7 -6
- package/chunks/{workflow-runtime-AR627I26.js → workflow-runtime-CQTDASFA.js} +50 -49
- package/dashboard/assets/{abnfDiagram-VCTEODGH-Cq149Jpk.js → abnfDiagram-VCTEODGH-DDZsU70-.js} +1 -1
- package/dashboard/assets/{arc-CpP-3TRW.js → arc-iDXNTSL6.js} +1 -1
- package/dashboard/assets/architecture-7GRP2DOG-DJcY9RFg.js +1 -0
- package/dashboard/assets/architectureDiagram-5GKGNRK7-d0ZuOniQ.js +36 -0
- package/dashboard/assets/{blockDiagram-I7D4REHJ-CZYkRRDi.js → blockDiagram-I7D4REHJ-B-EWfMy1.js} +2 -2
- package/dashboard/assets/{c4Diagram-7LVT6UL2-CV7Iu3_Z.js → c4Diagram-7LVT6UL2-KcZRuXZC.js} +1 -1
- package/dashboard/assets/channel-CeWMIm0w.js +1 -0
- package/dashboard/assets/{chunk-4HAMMTFA-PKCyW4m-.js → chunk-4HAMMTFA-DXWulBlo.js} +1 -1
- package/dashboard/assets/{chunk-75Z2AOVW-C5MlFTc_.js → chunk-75Z2AOVW-RiLZItrz.js} +1 -1
- package/dashboard/assets/chunk-DU6HZSFF-MBcaIyTX.js +127 -0
- package/dashboard/assets/{chunk-F27PBJKO-DTAok0qM.js → chunk-F27PBJKO-kLWCBX_W.js} +1 -1
- package/dashboard/assets/{chunk-FOHPRMQF-DHwB1DNv.js → chunk-FOHPRMQF-COOliuUh.js} +14 -14
- package/dashboard/assets/{chunk-GMAD6QVW-CPsr2F33.js → chunk-GMAD6QVW-BeQeSjpW.js} +7 -7
- package/dashboard/assets/{chunk-GVQU2GXP-C2AXGf9A.js → chunk-GVQU2GXP-CjCMlOIB.js} +1 -1
- package/dashboard/assets/{chunk-IMKFNOWR-DMG6yD_O.js → chunk-IMKFNOWR-BwNst53D.js} +1 -1
- package/dashboard/assets/{chunk-L3NEJ4N5-BSvwdbXx.js → chunk-L3NEJ4N5-CHXWQrkL.js} +1 -1
- package/dashboard/assets/{chunk-OSK3NFVY-CfB8V7FU.js → chunk-OSK3NFVY-B2vd19Ed.js} +1 -1
- package/dashboard/assets/{chunk-P2QGCYS3-CvmZvq6n.js → chunk-P2QGCYS3-Dk7Fyh6n.js} +1 -1
- package/dashboard/assets/{chunk-POPQ4Y6H-D_TvwDxL.js → chunk-POPQ4Y6H-CPAgOvYe.js} +1 -1
- package/dashboard/assets/{chunk-PWAF6VOD-Da5GnuOY.js → chunk-PWAF6VOD-BotyfMha.js} +1 -1
- package/dashboard/assets/{chunk-SHT3W25Y-CcsMJpR-.js → chunk-SHT3W25Y-Buz5gLRP.js} +1 -1
- package/dashboard/assets/{chunk-SVP7TREG-COojjieJ.js → chunk-SVP7TREG-_rpYEZcs.js} +1 -1
- package/dashboard/assets/{chunk-TICWLB2K-nBAmJwx6.js → chunk-TICWLB2K-DOJxPoec.js} +2 -2
- package/dashboard/assets/{chunk-XXDRQBXY-r5HyhWDv.js → chunk-XXDRQBXY-EXxKJbAs.js} +1 -1
- package/dashboard/assets/classDiagram-ZZMXUADV-DV_h1NoS.js +1 -0
- package/dashboard/assets/classDiagram-v2-VYDZK3BY-DV_h1NoS.js +1 -0
- package/dashboard/assets/common-VLJRx-Jq.js +5 -0
- package/dashboard/assets/cose-bilkent-JH36ORCC-B1SVC57o.js +1 -0
- package/dashboard/assets/cynefin-OW5HDTMX-BzhRorj4.js +1 -0
- package/dashboard/assets/{cynefinDiagram-5FMLGOSQ-xodkuQtW.js → cynefinDiagram-5FMLGOSQ-JXzRmldX.js} +1 -1
- package/dashboard/assets/cytoscape.esm-BbBREfsg.js +321 -0
- package/dashboard/assets/dagre-D7JM2Yhv.js +1 -0
- package/dashboard/assets/dagre-GXQ25YYZ-1LZ-X0-Z.js +4 -0
- package/dashboard/assets/{diagram-S7CK7UJ4-DNoTMlCO.js → diagram-S7CK7UJ4-C_-J_LQ4.js} +2 -2
- package/dashboard/assets/{diagram-UQ7AKVKN-COccuyew.js → diagram-UQ7AKVKN-CnxL1k8g.js} +1 -1
- package/dashboard/assets/{diagram-VSXAHHWV-g6D1tWRb.js → diagram-VSXAHHWV-WzSb3aby.js} +1 -1
- package/dashboard/assets/{diagram-VX7I27RA-DhO4eVIC.js → diagram-VX7I27RA-DKhrMInE.js} +1 -1
- package/dashboard/assets/{diagram-Z3DM3KII-DeOQFexd.js → diagram-Z3DM3KII-CDhI2WGP.js} +1 -1
- package/dashboard/assets/{dist-BQYeOQg3.js → dist-B0bfBMeP.js} +1 -1
- package/dashboard/assets/{ebnfDiagram-PWID7BFC-MtkX2feM.js → ebnfDiagram-PWID7BFC-iL5NQ1PE.js} +1 -1
- package/dashboard/assets/{erDiagram-RLTQ6QDP-DIWSsoYZ.js → erDiagram-RLTQ6QDP-RK2Voa5O.js} +1 -1
- package/dashboard/assets/eventmodeling-NTZA5JFV-WgE7OJBb.js +1 -0
- package/dashboard/assets/flowDiagram-HODETNUW-B9YcQ0Aq.js +1 -0
- package/dashboard/assets/{ganttDiagram-EL5Y4UJY-DKggkJe0.js → ganttDiagram-EL5Y4UJY-D8CJXHRF.js} +1 -1
- package/dashboard/assets/gitGraph-4MIJSDKK-BuZ9Lg04.js +1 -0
- package/dashboard/assets/{gitGraphDiagram-WWUBYQGX-r_iR8Qzo.js → gitGraphDiagram-WWUBYQGX-LEJMh54j.js} +1 -1
- package/dashboard/assets/info-A6RAGUB7-BL5k3pev.js +1 -0
- package/dashboard/assets/{infoDiagram-27XIBGKW-ClQk7UyQ.js → infoDiagram-27XIBGKW-LJvntUnZ.js} +1 -1
- package/dashboard/assets/{ishikawaDiagram-5VMMS53U-tR7Vziog.js → ishikawaDiagram-5VMMS53U-BYTYgKCG.js} +2 -2
- package/dashboard/assets/{journeyDiagram-3NMN7TZE-Cpb9IqKL.js → journeyDiagram-3NMN7TZE-G25qgQgO.js} +1 -1
- package/dashboard/assets/{kanban-definition-UXKFOSKX-BzUuKbA9.js → kanban-definition-UXKFOSKX-Bk3uLl1i.js} +1 -1
- package/dashboard/assets/{katex-BdBmVSus.js → katex-nLxf_RlZ.js} +2 -2
- package/dashboard/assets/{line-BHY_tSHu.js → line-i4qHBaWO.js} +1 -1
- package/dashboard/assets/linear-DmrqRsKG.js +1 -0
- package/dashboard/assets/mermaid-parser.core-BxbKr4QF.js +7 -0
- package/dashboard/assets/{mermaid.core-D_QsUPU8.js → mermaid.core-Cltee6FS.js} +9 -9
- package/dashboard/assets/{mindmap-definition-YA3MSWOX-CtfLTPPJ.js → mindmap-definition-YA3MSWOX-DkzO2JgS.js} +1 -1
- package/dashboard/assets/operations-B4_timQX.css +1 -0
- package/dashboard/assets/operations-DwppJviL.js +199 -0
- package/dashboard/assets/packet-AYTQ26CC-uZQUKnrE.js +1 -0
- package/dashboard/assets/{pegDiagram-XKGWAZYB-C1Dclbzj.js → pegDiagram-XKGWAZYB-CrOEi00T.js} +1 -1
- package/dashboard/assets/pie-WAS4IAKB-Dn9_tpQT.js +1 -0
- package/dashboard/assets/{pieDiagram-E7YTZNPT-Cd7XwYo5.js → pieDiagram-E7YTZNPT-D-niUkzc.js} +1 -1
- package/dashboard/assets/{quadrantDiagram-AXDQQJYC-CaS-GQ4X.js → quadrantDiagram-AXDQQJYC-CJOTiG5V.js} +1 -1
- package/dashboard/assets/radar-RG4KPBEZ-DIIVz4e8.js +1 -0
- package/dashboard/assets/railroad-74A4TZTK-1kiqDEID.js +1 -0
- package/dashboard/assets/railroad-abnf-HS5TGJTU-DK6rQPZR.js +1 -0
- package/dashboard/assets/railroad-ebnf-LZEXJU2U-C6cOgYW4.js +1 -0
- package/dashboard/assets/railroad-peg-WCYAUIDC-CQ3ptKef.js +1 -0
- package/dashboard/assets/{railroadDiagram-O6MQD6OU-BeesTrqn.js → railroadDiagram-O6MQD6OU-nEfkpa-m.js} +1 -1
- package/dashboard/assets/{requirementDiagram-BXWQKSXE-IjyK0DhW.js → requirementDiagram-BXWQKSXE-CdFMY8tG.js} +1 -1
- package/dashboard/assets/{sankeyDiagram-P5KCCOFB-DmIluQqo.js → sankeyDiagram-P5KCCOFB-C0KxrFYv.js} +1 -1
- package/dashboard/assets/{sequenceDiagram-WJ2MYXX4-CUp8ZjTc.js → sequenceDiagram-WJ2MYXX4-DeZ5ATiu.js} +2 -2
- package/dashboard/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/dashboard/assets/src-Cg-chcoE.js +1 -0
- package/dashboard/assets/{stateDiagram-D77RDMKH-Dy9TQb8P.js → stateDiagram-D77RDMKH-B9MwWL5B.js} +1 -1
- package/dashboard/assets/stateDiagram-v2-MP3YSRHH-SucFndhx.js +1 -0
- package/dashboard/assets/swimlanes-42K2YHIH-DB--fwQE.js +1 -0
- package/dashboard/assets/swimlanesDiagram-VR7AAH4N-BzH-rIaK.js +8 -0
- package/dashboard/assets/{timeline-definition-24CTP7MA-BGdXW-iY.js → timeline-definition-24CTP7MA-DLkkTbWb.js} +1 -1
- package/dashboard/assets/treeView-Q6P3EWNA-XkZ9rl9H.js +1 -0
- package/dashboard/assets/treemap-WGGIJYW6-JCtVKxCE.js +1 -0
- package/dashboard/assets/{vennDiagram-4TSXK5OY-DzKWHJsl.js → vennDiagram-4TSXK5OY-DEb-x29Z.js} +1 -1
- package/dashboard/assets/wardley-WFR3VGLG-DhI7ROY3.js +1 -0
- package/dashboard/assets/{wardleyDiagram-VM6X3IG4-DGsjYmNJ.js → wardleyDiagram-VM6X3IG4-KNckudc5.js} +1 -1
- package/dashboard/assets/{xychartDiagram-S5SC5T6Z-C7_T_tWt.js → xychartDiagram-S5SC5T6Z-D4c0ynCk.js} +1 -1
- package/dashboard/index.html +13 -2
- package/package.json +2 -5
- package/worker-assets/demo-target/README.md +7 -3
- package/chunks/chunk-2XGBEH53.js +0 -4304
- package/chunks/chunk-4ROZFLSR.js +0 -279
- package/chunks/chunk-56UTQKXO.js +0 -56
- package/chunks/chunk-BPU6M42R.js +0 -77
- package/chunks/chunk-H5QURBBK.js +0 -1123
- package/chunks/chunk-IIBNQTOK.js +0 -1532
- package/chunks/chunk-NJLKFC66.js +0 -4790
- package/chunks/chunk-OOMBOLAF.js +0 -295
- package/chunks/chunk-VIT5ALXF.js +0 -4054
- package/chunks/chunk-VU7V2SDW.js +0 -284
- package/chunks/chunk-W624J7NF.js +0 -117
- package/chunks/chunk-YSQWZ67M.js +0 -6027
- package/chunks/dashboard-5HDSNBAU.js +0 -76
- package/chunks/eval-runner-A2DIGVP7.js +0 -31
- package/chunks/hunt-scan-W246VWJC.js +0 -40
- package/chunks/managed-operation-6R2QPPW5.js +0 -60
- package/chunks/orchestrate-OBS37FWQ.js +0 -63
- package/chunks/run-MU3MFL2Z.js +0 -28242
- package/chunks/service-plugins-5B23PWXC.js +0 -64
- package/dashboard/assets/architecture-7GRP2DOG-z5EHYkyH.js +0 -1
- package/dashboard/assets/architectureDiagram-5GKGNRK7-ewtXpjR_.js +0 -36
- package/dashboard/assets/channel-CuYjfiC5.js +0 -1
- package/dashboard/assets/chunk-DU6HZSFF-3M37ulcO.js +0 -127
- package/dashboard/assets/classDiagram-ZZMXUADV-DCuOrWUV.js +0 -1
- package/dashboard/assets/classDiagram-v2-VYDZK3BY-DCuOrWUV.js +0 -1
- package/dashboard/assets/common-C6snVPsk.js +0 -5
- package/dashboard/assets/cose-bilkent-JH36ORCC-BLGcaZHk.js +0 -1
- package/dashboard/assets/cynefin-OW5HDTMX-DbZMK00I.js +0 -1
- package/dashboard/assets/cytoscape.esm-CGd-uY3x.js +0 -321
- package/dashboard/assets/dagre-GXQ25YYZ-CRk9qfSG.js +0 -4
- package/dashboard/assets/dagre-PrKaheQc.js +0 -1
- package/dashboard/assets/eventmodeling-NTZA5JFV-D_3ez4Gv.js +0 -1
- package/dashboard/assets/flowDiagram-HODETNUW-D2boyYEd.js +0 -1
- package/dashboard/assets/gitGraph-4MIJSDKK-DFOQYwXc.js +0 -1
- package/dashboard/assets/info-A6RAGUB7-DeednLoB.js +0 -1
- package/dashboard/assets/linear-naZZ1pHk.js +0 -1
- package/dashboard/assets/mermaid-parser.core-CPvd4cEx.js +0 -7
- package/dashboard/assets/operations-BwCzhVnT.js +0 -130
- package/dashboard/assets/operations-QjKT0Hwi.css +0 -1
- package/dashboard/assets/packet-AYTQ26CC-DDQbkT9I.js +0 -1
- package/dashboard/assets/pie-WAS4IAKB-LpU4ULAs.js +0 -1
- package/dashboard/assets/radar-RG4KPBEZ-CcxW3NJm.js +0 -1
- package/dashboard/assets/railroad-74A4TZTK-9P5Rl8fP.js +0 -1
- package/dashboard/assets/railroad-abnf-HS5TGJTU-CSfpwjna.js +0 -1
- package/dashboard/assets/railroad-ebnf-LZEXJU2U-D6R5qzr-.js +0 -1
- package/dashboard/assets/railroad-peg-WCYAUIDC-DKEX7ITG.js +0 -1
- package/dashboard/assets/sizeCapture-INFHLROL-B0uUizjq.js +0 -1
- package/dashboard/assets/src-r61wDjcA.js +0 -1
- package/dashboard/assets/stateDiagram-v2-MP3YSRHH-CQb0ZtPr.js +0 -1
- package/dashboard/assets/swimlanes-42K2YHIH-CZuDV7V5.js +0 -1
- package/dashboard/assets/swimlanesDiagram-VR7AAH4N-BxgWMq8X.js +0 -8
- package/dashboard/assets/treeView-Q6P3EWNA-DlRrayjM.js +0 -1
- package/dashboard/assets/treemap-WGGIJYW6-C6UqLKfI.js +0 -1
- package/dashboard/assets/wardley-WFR3VGLG-thmyHKb0.js +0 -1
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __0CreateRequire } from "node:module";
|
|
3
|
+
const require = __0CreateRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
installPackageForEcosystem,
|
|
6
|
+
isExistingLocalTargetPath,
|
|
7
|
+
isExplicitLocalTargetPath,
|
|
8
|
+
resolveLocalTargetPath
|
|
9
|
+
} from "./chunk-R7VWEY45.js";
|
|
10
|
+
|
|
11
|
+
// packages/core/dist/prepare.js
|
|
12
|
+
import { execFileSync } from "node:child_process";
|
|
13
|
+
import { existsSync, mkdirSync, rmSync } from "node:fs";
|
|
14
|
+
import { join, basename } from "node:path";
|
|
15
|
+
import { randomUUID } from "node:crypto";
|
|
16
|
+
import { tmpdir } from "node:os";
|
|
17
|
+
function detectTargetType(target) {
|
|
18
|
+
if (target.startsWith("git@") || target.startsWith("git://") || target.endsWith(".git") || target.startsWith("https://github.com/")) {
|
|
19
|
+
return "source-code";
|
|
20
|
+
}
|
|
21
|
+
if (target.startsWith("http://") || target.startsWith("https://")) {
|
|
22
|
+
return "url";
|
|
23
|
+
}
|
|
24
|
+
if (isExplicitLocalTargetPath(target) || isExistingLocalTargetPath(target)) {
|
|
25
|
+
return "source-code";
|
|
26
|
+
}
|
|
27
|
+
if (/^(@[a-z0-9-]+\/)?[a-z0-9][a-z0-9._-]*(@.*)?$/.test(target)) {
|
|
28
|
+
return "npm-package";
|
|
29
|
+
}
|
|
30
|
+
return "source-code";
|
|
31
|
+
}
|
|
32
|
+
function installPackage(ecosystem, packageName, requestedVersion, emit) {
|
|
33
|
+
return installPackageForEcosystem(ecosystem, packageName, requestedVersion, emit);
|
|
34
|
+
}
|
|
35
|
+
function resolveRepo(repo, emit) {
|
|
36
|
+
const isUrl = repo.startsWith("https://") || repo.startsWith("http://") || repo.startsWith("git@") || repo.startsWith("git://");
|
|
37
|
+
if (!isUrl) {
|
|
38
|
+
const absPath = resolveLocalTargetPath(repo);
|
|
39
|
+
if (!existsSync(absPath)) {
|
|
40
|
+
throw new Error(`Repository path not found: ${absPath}`);
|
|
41
|
+
}
|
|
42
|
+
return { repoPath: absPath, cloned: false };
|
|
43
|
+
}
|
|
44
|
+
const tempDir = join(tmpdir(), `0-review-${randomUUID().slice(0, 8)}`);
|
|
45
|
+
mkdirSync(tempDir, { recursive: true });
|
|
46
|
+
emit({
|
|
47
|
+
type: "stage:start",
|
|
48
|
+
stage: "discovery",
|
|
49
|
+
message: `Cloning ${repo}...`
|
|
50
|
+
});
|
|
51
|
+
try {
|
|
52
|
+
execFileSync("git", ["clone", "--depth", "1", repo, `${tempDir}/repo`], {
|
|
53
|
+
timeout: 12e4,
|
|
54
|
+
stdio: "pipe"
|
|
55
|
+
});
|
|
56
|
+
} catch (err) {
|
|
57
|
+
rmSync(tempDir, { recursive: true, force: true });
|
|
58
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
59
|
+
throw new Error(`Failed to clone ${repo}: ${msg}`);
|
|
60
|
+
}
|
|
61
|
+
const repoPath = join(tempDir, "repo");
|
|
62
|
+
emit({
|
|
63
|
+
type: "stage:end",
|
|
64
|
+
stage: "discovery",
|
|
65
|
+
message: `Cloned ${basename(repo.replace(/\.git$/, ""))}`
|
|
66
|
+
});
|
|
67
|
+
return { repoPath, cloned: true, tempDir };
|
|
68
|
+
}
|
|
69
|
+
async function validateUrl(url) {
|
|
70
|
+
const controller = new AbortController();
|
|
71
|
+
const timer = setTimeout(() => controller.abort(), 1e4);
|
|
72
|
+
try {
|
|
73
|
+
const res = await fetch(url, {
|
|
74
|
+
method: "HEAD",
|
|
75
|
+
signal: controller.signal,
|
|
76
|
+
redirect: "follow"
|
|
77
|
+
});
|
|
78
|
+
if (!res.ok) {
|
|
79
|
+
throw new Error(`URL returned HTTP ${res.status}: ${url}`);
|
|
80
|
+
}
|
|
81
|
+
} catch (err) {
|
|
82
|
+
if (err instanceof Error && err.name === "AbortError") {
|
|
83
|
+
throw new Error(`URL unreachable (timeout): ${url}`);
|
|
84
|
+
}
|
|
85
|
+
throw err;
|
|
86
|
+
} finally {
|
|
87
|
+
clearTimeout(timer);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
async function prepare(target, type, opts, emit) {
|
|
91
|
+
switch (type) {
|
|
92
|
+
case "npm-package": {
|
|
93
|
+
let packageName = target;
|
|
94
|
+
let version = opts.packageVersion;
|
|
95
|
+
const atIdx = target.startsWith("@") ? target.indexOf("@", 1) : target.indexOf("@");
|
|
96
|
+
if (atIdx > 0) {
|
|
97
|
+
packageName = target.slice(0, atIdx);
|
|
98
|
+
version = version ?? target.slice(atIdx + 1);
|
|
99
|
+
}
|
|
100
|
+
const pkg = installPackage("npm", packageName, version, emit);
|
|
101
|
+
return {
|
|
102
|
+
targetType: type,
|
|
103
|
+
resolvedTarget: pkg.path,
|
|
104
|
+
packageInfo: pkg,
|
|
105
|
+
cleanup: () => {
|
|
106
|
+
try {
|
|
107
|
+
rmSync(pkg.tempDir, { recursive: true, force: true });
|
|
108
|
+
} catch {
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
case "pypi-package": {
|
|
114
|
+
const pkg = installPackage("pypi", target, opts.packageVersion, emit);
|
|
115
|
+
return {
|
|
116
|
+
targetType: type,
|
|
117
|
+
resolvedTarget: pkg.path,
|
|
118
|
+
packageInfo: pkg,
|
|
119
|
+
cleanup: () => {
|
|
120
|
+
try {
|
|
121
|
+
rmSync(pkg.tempDir, { recursive: true, force: true });
|
|
122
|
+
} catch {
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
case "cargo-package": {
|
|
128
|
+
const pkg = installPackage("cargo", target, opts.packageVersion, emit);
|
|
129
|
+
return {
|
|
130
|
+
targetType: type,
|
|
131
|
+
resolvedTarget: pkg.path,
|
|
132
|
+
packageInfo: pkg,
|
|
133
|
+
cleanup: () => {
|
|
134
|
+
try {
|
|
135
|
+
rmSync(pkg.tempDir, { recursive: true, force: true });
|
|
136
|
+
} catch {
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
case "oci-image": {
|
|
142
|
+
const pkg = installPackage("oci", target, opts.packageVersion, emit);
|
|
143
|
+
return {
|
|
144
|
+
targetType: type,
|
|
145
|
+
resolvedTarget: pkg.path,
|
|
146
|
+
packageInfo: pkg,
|
|
147
|
+
cleanup: () => {
|
|
148
|
+
try {
|
|
149
|
+
rmSync(pkg.tempDir, { recursive: true, force: true });
|
|
150
|
+
} catch {
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
case "source-code": {
|
|
156
|
+
const { repoPath, cloned, tempDir } = resolveRepo(target, emit);
|
|
157
|
+
return {
|
|
158
|
+
targetType: type,
|
|
159
|
+
resolvedTarget: repoPath,
|
|
160
|
+
repoPath,
|
|
161
|
+
cleanup: () => {
|
|
162
|
+
if (cloned && tempDir) {
|
|
163
|
+
try {
|
|
164
|
+
rmSync(tempDir, { recursive: true, force: true });
|
|
165
|
+
} catch {
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
case "url":
|
|
172
|
+
case "web-app": {
|
|
173
|
+
await validateUrl(target);
|
|
174
|
+
emit({
|
|
175
|
+
type: "stage:end",
|
|
176
|
+
stage: "discovery",
|
|
177
|
+
message: `URL reachable: ${target}`
|
|
178
|
+
});
|
|
179
|
+
return {
|
|
180
|
+
targetType: type,
|
|
181
|
+
resolvedTarget: target,
|
|
182
|
+
cleanup: () => {
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
default: {
|
|
187
|
+
const _exhaustive = type;
|
|
188
|
+
throw new Error(`Unknown target type: ${_exhaustive}`);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export {
|
|
194
|
+
detectTargetType,
|
|
195
|
+
prepare
|
|
196
|
+
};
|
|
@@ -3,7 +3,7 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
homeStateDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GYEYTNHK.js";
|
|
7
7
|
|
|
8
8
|
// packages/core/dist/cve/artifact-scraper.js
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __0CreateRequire } from "node:module";
|
|
3
|
+
const require = __0CreateRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
createLocalOllamaRoutingRuntime,
|
|
6
|
+
parseRoutingQualificationPlan,
|
|
7
|
+
qualifyTaskRouting,
|
|
8
|
+
taskRoutingFixtureRuntime
|
|
9
|
+
} from "./chunk-3MWQNNJU.js";
|
|
10
|
+
import {
|
|
11
|
+
LlmApiRuntime
|
|
12
|
+
} from "./chunk-HS2NQ7K6.js";
|
|
13
|
+
|
|
14
|
+
// packages/cli/src/commands/routing.ts
|
|
15
|
+
import { readFileSync, writeFileSync, statSync } from "node:fs";
|
|
16
|
+
function readRoutingJson(path) {
|
|
17
|
+
if (statSync(path).size > 2e6) throw new Error("routing input exceeds 2 MB limit");
|
|
18
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
19
|
+
}
|
|
20
|
+
function registerRoutingCommand(program) {
|
|
21
|
+
program.command("routing-qualify").description("Explicit offline synthetic task-routing qualification; fixture/local modes make no external API calls").requiredOption("--plan <file>", "Reviewed qualification plan JSON with models and shared limits").requiredOption("--out <file>", "Report JSON destination").option("--allow-provider-calls", "Authorize API calls only for a model-api plan and its declared limits", false).option("--regress-model <model>", "Fixture-only negative control: corrupt this model's validation state").action(async (opts) => {
|
|
22
|
+
const plan = parseRoutingQualificationPlan(readRoutingJson(opts.plan));
|
|
23
|
+
if (plan.mode === "model-api" && !opts.allowProviderCalls) throw new Error("model-api qualification requires explicit --allow-provider-calls; no provider request sent");
|
|
24
|
+
if (plan.mode !== "fixture" && opts.regressModel) throw new Error("negative control injection is fixture-only");
|
|
25
|
+
const localRuntime = plan.mode === "local-model" ? createLocalOllamaRoutingRuntime(plan) : void 0;
|
|
26
|
+
const runtime = localRuntime ?? (plan.mode === "fixture" ? taskRoutingFixtureRuntime(plan.models, opts.regressModel) : new LlmApiRuntime({ type: "api", timeout: plan.timeCapMs, model: plan.models[0], agentModels: Object.fromEntries(plan.models.map((model, index) => [`candidate-${index}`, model])) }));
|
|
27
|
+
const controller = new AbortController();
|
|
28
|
+
const cancel = () => controller.abort(new Error("operator cancelled qualification"));
|
|
29
|
+
process.once("SIGINT", cancel);
|
|
30
|
+
try {
|
|
31
|
+
const report = await qualifyTaskRouting({ plan, runtime, signal: controller.signal });
|
|
32
|
+
if (localRuntime) {
|
|
33
|
+
const observation = await localRuntime.observation();
|
|
34
|
+
report.localRuntime = observation;
|
|
35
|
+
report.externalApiFeeUsd = observation.externalApiFeeUsd;
|
|
36
|
+
}
|
|
37
|
+
writeFileSync(opts.out, JSON.stringify(report, null, 2) + "\n", { mode: 384 });
|
|
38
|
+
console.log(`${report.mode}: ${report.status}; ${report.totalCalls} calls; estimated USD ${report.estimatedUsd ?? "unknown"}; external API fee ${report.externalApiFeeUsd ?? "unknown"}; compute cost unknown; actual provider charge unknown; report ${opts.out}`);
|
|
39
|
+
if (report.status !== "completed-for-review") process.exitCode = 1;
|
|
40
|
+
} finally {
|
|
41
|
+
process.removeListener("SIGINT", cancel);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
readRoutingJson,
|
|
48
|
+
registerRoutingCommand
|
|
49
|
+
};
|
|
@@ -4,10 +4,10 @@ const require = __0CreateRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
BackendIdSchema,
|
|
6
6
|
requireBackendCapability
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GYEYTNHK.js";
|
|
8
8
|
import {
|
|
9
9
|
external_exports
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5XOYTAOK.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/remote-workflow-runtime.ts
|
|
13
13
|
var executionSchema = external_exports.object({ id: external_exports.string().min(1).max(160), status: external_exports.enum(["queued", "running", "completed", "failed", "cancelled", "interrupted"]) }).passthrough();
|
|
@@ -47,7 +47,7 @@ async function createRemoteWorkflowRuntime(options, suppliedRegistry) {
|
|
|
47
47
|
if (options.engineUrl && (options.backendId || options.configPath)) throw new Error("--engine-url cannot be combined with a registered backend.");
|
|
48
48
|
if (Boolean(options.engineUrl) !== Boolean(options.engineTokenEnv)) throw new Error("Direct engine attachment requires both --engine-url and --engine-token-env.");
|
|
49
49
|
const backendId = BackendIdSchema.parse(options.backendId ?? (options.engineUrl ? "attached-engine" : void 0));
|
|
50
|
-
const registry = suppliedRegistry ?? new (await import("./backend-connections-
|
|
50
|
+
const registry = suppliedRegistry ?? new (await import("./backend-connections-64PKYKL7.js")).BackendConnectionRegistry(options.engineUrl ? { connections: [{ id: backendId, name: "Attached engine", url: options.engineUrl, bearerTokenEnv: options.engineTokenEnv }] } : { configPath: options.configPath });
|
|
51
51
|
try {
|
|
52
52
|
const connection = await registry.handshake(backendId);
|
|
53
53
|
if (connection.backend.transport !== "http") throw new Error("Select a registered remote HTTP backend; local execution cannot use this transport.");
|
|
@@ -10,28 +10,28 @@ import {
|
|
|
10
10
|
validateWorkbenchSourceLesson,
|
|
11
11
|
workbenchConfigPath,
|
|
12
12
|
workbenchNetworkEnabled
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-V2KJQVYE.js";
|
|
14
14
|
import {
|
|
15
15
|
createWorkbenchProviderBroker
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3MWQNNJU.js";
|
|
17
17
|
import {
|
|
18
18
|
HuntMemoryStore,
|
|
19
19
|
LearningService
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SIR7XW2S.js";
|
|
21
21
|
import {
|
|
22
22
|
LearningStore,
|
|
23
23
|
learningArtifactDigest,
|
|
24
24
|
learningProjectId,
|
|
25
25
|
osecDB
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-72PU46MS.js";
|
|
27
27
|
import {
|
|
28
28
|
isAdmittedSmolvmWorkbench
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XOVYV7TT.js";
|
|
30
30
|
import {
|
|
31
31
|
SERVICE_PLUGIN_CATALOG,
|
|
32
32
|
findingSchema,
|
|
33
33
|
homeStateDir
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GYEYTNHK.js";
|
|
35
35
|
|
|
36
36
|
// packages/cli/src/web/service-plugins.ts
|
|
37
37
|
import { constants, closeSync, fstatSync, lstatSync, mkdirSync, openSync, readFileSync, renameSync, rmSync, writeFileSync, chmodSync } from "node:fs";
|
|
@@ -103,10 +103,8 @@ function createIsolatedConsoleSession(config, options = {}) {
|
|
|
103
103
|
if (realpathSync(context.workspaceRoot) !== approvedWorkspace) return [];
|
|
104
104
|
const memory2 = hostMemory();
|
|
105
105
|
return withLearning((service) => {
|
|
106
|
-
|
|
107
|
-
return memory2.recallCodebase(context.scopePath, 6).flatMap((note) => {
|
|
106
|
+
return service.recallCodebaseNotes(learningProjectId(context.scopePath), context.scopePath, memory2, 6).flatMap((note) => {
|
|
108
107
|
const sourceLinks = note.codebase.files.map((file) => ({ path: file.path, hash: file.digest }));
|
|
109
|
-
if (!entries.some((entry) => entry.status === "current" && entry.summary === note.summary && JSON.stringify(entry.sourceLinks) === JSON.stringify(sourceLinks))) return [];
|
|
110
108
|
const lesson = { title: note.title, summary: note.summary, sourceLinks: sourceLinks.map((link) => ({ ...link, path: relative(context.workspaceRoot, resolve(context.scopePath, link.path)).split(sep).join("/") })) };
|
|
111
109
|
try {
|
|
112
110
|
return [validateWorkbenchSourceLesson(lesson, context.workspaceRoot, context.scopePath)];
|
|
@@ -287,7 +285,7 @@ var ServicePluginServices = class {
|
|
|
287
285
|
}
|
|
288
286
|
async #probe(connection) {
|
|
289
287
|
try {
|
|
290
|
-
const probe = this.#options.probe ?? (await import("./dist-
|
|
288
|
+
const probe = this.#options.probe ?? (await import("./dist-ONIRKDH6.js")).testServicePluginConnection;
|
|
291
289
|
const result = await probe(connection);
|
|
292
290
|
if (!Array.isArray(result.tools) || result.tools.length > 512 || result.tools.some((tool) => typeof tool.name !== "string" || tool.name.length > 256 || typeof tool.description !== "string" || tool.description.length > 16384)) throw new Error("Invalid tool catalog.");
|
|
293
291
|
const configurations = [...readStore(this.#options.homeDir), connection];
|
|
@@ -3,7 +3,7 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
homeStateDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GYEYTNHK.js";
|
|
7
7
|
|
|
8
8
|
// packages/core/dist/agent/journal/types.js
|
|
9
9
|
var JOURNAL_SCHEMA_VERSION = 1;
|
|
@@ -3,7 +3,7 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
external_exports
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5XOYTAOK.js";
|
|
7
7
|
|
|
8
8
|
// packages/core/dist/protocol/http-conformance.js
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
@@ -20,7 +20,7 @@ var HTTP_SURFACES = ["method", "header", "status"];
|
|
|
20
20
|
var httpExerciseSchema = external_exports.object({
|
|
21
21
|
method: external_exports.string().min(1),
|
|
22
22
|
path: external_exports.string().optional(),
|
|
23
|
-
headers: external_exports.record(external_exports.string()).optional(),
|
|
23
|
+
headers: external_exports.record(external_exports.string(), external_exports.string()).optional(),
|
|
24
24
|
body: external_exports.string().optional()
|
|
25
25
|
}).strict();
|
|
26
26
|
var conformanceRuleSchema = external_exports.object({
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __0CreateRequire } from "node:module";
|
|
3
|
+
const require = __0CreateRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
source_default
|
|
6
|
+
} from "./chunk-HLFS6WV2.js";
|
|
7
|
+
|
|
8
|
+
// packages/cli/src/utils.ts
|
|
9
|
+
import { gzipSync } from "zlib";
|
|
10
|
+
async function getRuntimeAvailability() {
|
|
11
|
+
const { detectAvailableRuntimes, LlmApiRuntime } = await import("./dist-ONIRKDH6.js");
|
|
12
|
+
const apiRuntimeDiagnostics = new LlmApiRuntime({ type: "api", timeout: 5e3 }).getConfigurationDiagnostics();
|
|
13
|
+
const hasApiKey = apiRuntimeDiagnostics.valid;
|
|
14
|
+
const availableRuntimes = [...await detectAvailableRuntimes()];
|
|
15
|
+
return {
|
|
16
|
+
hasApiKey,
|
|
17
|
+
availableRuntimes,
|
|
18
|
+
apiRuntime: {
|
|
19
|
+
configured: apiRuntimeDiagnostics.reason !== "missing_key",
|
|
20
|
+
valid: apiRuntimeDiagnostics.valid,
|
|
21
|
+
providerLabel: apiRuntimeDiagnostics.providerLabel,
|
|
22
|
+
error: apiRuntimeDiagnostics.fatalError
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
async function checkRuntimeAvailability(runtime) {
|
|
27
|
+
const availability = await getRuntimeAvailability();
|
|
28
|
+
const { hasApiKey, availableRuntimes, apiRuntime } = availability;
|
|
29
|
+
if (hasApiKey) return;
|
|
30
|
+
console.log("");
|
|
31
|
+
if ((runtime === "api" || runtime === "auto") && apiRuntime.configured && apiRuntime.error) {
|
|
32
|
+
console.log(source_default.red(` ${apiRuntime.providerLabel} config error: ${apiRuntime.error.split("\n")[0]}`));
|
|
33
|
+
}
|
|
34
|
+
if (runtime === "api") {
|
|
35
|
+
console.log(source_default.yellow(
|
|
36
|
+
apiRuntime.configured ? " Warning: `--runtime api` needs a valid provider configuration. AI analysis will fail until this is fixed." : " Warning: `--runtime api` needs provider credentials. AI analysis may be skipped."
|
|
37
|
+
));
|
|
38
|
+
} else if (availableRuntimes.length > 0) {
|
|
39
|
+
console.log(source_default.cyan(` Using local runtime(s): ${availableRuntimes.join(", ")}`));
|
|
40
|
+
} else {
|
|
41
|
+
console.log(source_default.yellow(" Warning: No API key or local agent runtime detected. AI analysis will be skipped."));
|
|
42
|
+
}
|
|
43
|
+
console.log(source_default.gray(" Provider credentials: ZERO_CHATGPT_ACCESS_TOKEN | ZERO_CHATGPT_OAUTH_REFRESH_TOKEN, OPENROUTER_API_KEY, ANTHROPIC_API_KEY, AZURE_OPENAI_API_KEY, OPENAI_API_KEY"));
|
|
44
|
+
console.log("");
|
|
45
|
+
}
|
|
46
|
+
function buildShareUrl(report) {
|
|
47
|
+
const json = JSON.stringify(report);
|
|
48
|
+
const compressed = gzipSync(Buffer.from(json, "utf-8"));
|
|
49
|
+
const b64 = compressed.toString("base64url");
|
|
50
|
+
return `https://0.security/r#${b64}`;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export {
|
|
54
|
+
getRuntimeAvailability,
|
|
55
|
+
checkRuntimeAvailability,
|
|
56
|
+
buildShareUrl
|
|
57
|
+
};
|
|
@@ -3,10 +3,10 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
executeWorkflow
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3MWQNNJU.js";
|
|
7
7
|
import {
|
|
8
8
|
SecurityWorkflowStore
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-72PU46MS.js";
|
|
10
10
|
|
|
11
11
|
// packages/cli/src/managed-operation.ts
|
|
12
12
|
async function executeManagedOperation(options, dependencies = { store: (path) => new SecurityWorkflowStore(path) }) {
|