0sec-cli 0.25.0 → 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 +41 -40
- package/chunks/{adapt-loop-L2PXCD4J.js → adapt-loop-P4HKONB5.js} +4 -4
- package/chunks/{artifact-scraper-W3LGLXBM.js → artifact-scraper-IIRJNYKT.js} +2 -2
- package/chunks/{assumption-mining-7IJ6ZWZE.js → assumption-mining-YA6VJ2V6.js} +17 -17
- package/chunks/{backend-connections-MYH4QRQG.js → backend-connections-64PKYKL7.js} +3 -3
- package/chunks/{chunk-EEP6GBUO.js → chunk-3MWQNNJU.js} +151 -58
- package/chunks/{chunk-ZZV56ACK.js → chunk-3VQ5EZKG.js} +9 -9
- package/chunks/{chunk-I4VIAQHM.js → chunk-6GV5G6U3.js} +1 -1
- package/chunks/{chunk-OFPF26WL.js → chunk-6SNOKNCS.js} +2 -2
- package/chunks/{chunk-YXTV2FRE.js → chunk-72PU46MS.js} +66 -112
- package/chunks/{chunk-NO543ZBU.js → chunk-A7G6S5RA.js} +1 -1
- package/chunks/{chunk-ITEMDJAB.js → chunk-AFJ2UMPR.js} +2 -2
- package/chunks/{chunk-FOLTHXRH.js → chunk-B7XL6RON.js} +1 -1
- package/chunks/{chunk-76CLUI54.js → chunk-BM6EYP2D.js} +3 -3
- package/chunks/{chunk-NBLKIQCW.js → chunk-D4M5WURF.js} +2 -2
- package/chunks/{chunk-DHNYJ2ML.js → chunk-EHNVP6QB.js} +1 -1
- package/chunks/{chunk-C6ZMPXN2.js → chunk-FBZBJYZS.js} +3 -3
- package/chunks/{chunk-S3B6HFSM.js → chunk-GYEYTNHK.js} +1 -1
- package/chunks/{chunk-EIONVEFN.js → chunk-HS2NQ7K6.js} +192 -36
- package/chunks/{chunk-HJKJ4NQP.js → chunk-HUZ2EC2R.js} +1 -1
- package/chunks/{chunk-5H2PXZ7Q.js → chunk-IUUNIJPM.js} +1 -1
- package/chunks/{chunk-3DF55BWV.js → chunk-JGDA6EIJ.js} +2 -2
- package/chunks/{chunk-GOUGG7IQ.js → chunk-K3PTYN43.js} +2 -2
- package/chunks/{chunk-7TIWL6E5.js → chunk-KCABBZHN.js} +7 -7
- package/chunks/{chunk-ACYZMJHC.js → chunk-LRD5N2TQ.js} +1 -1
- package/chunks/{chunk-ITHDAIRY.js → chunk-MNK373HF.js} +1 -1
- package/chunks/{chunk-JCRQV4FE.js → chunk-MOEVVXML.js} +2 -2
- package/chunks/{chunk-3HMO42M2.js → chunk-MOGWEHSC.js} +68 -771
- package/chunks/{chunk-TFKY6D7O.js → chunk-N7YCONYR.js} +1 -1
- package/chunks/{chunk-FI2H6HV2.js → chunk-NA3FKCI2.js} +1 -1
- package/chunks/{chunk-PMAKX6KP.js → chunk-NABVDAAO.js} +2 -2
- package/chunks/{chunk-YYFODVZG.js → chunk-NNMOTHKC.js} +4 -4
- package/chunks/{chunk-RBTJYREN.js → chunk-OILVEROI.js} +17 -4
- package/chunks/{chunk-GXSECFUE.js → chunk-PAMJEXE2.js} +1 -1
- package/chunks/{chunk-2J3STRJT.js → chunk-R7VWEY45.js} +1 -1
- package/chunks/{chunk-27SXCYWH.js → chunk-RZZ6VPRY.js} +1 -1
- package/chunks/{chunk-HFUOUT2B.js → chunk-SIR7XW2S.js} +1392 -826
- package/chunks/{chunk-HDJSHLRM.js → chunk-SSPP64FF.js} +2 -2
- package/chunks/{chunk-WK6VUCKK.js → chunk-STPHTPSD.js} +1 -1
- package/chunks/{chunk-SEWZ76MN.js → chunk-UGCTPKJG.js} +14 -6
- package/chunks/{chunk-MY44EZKD.js → chunk-ULRLUXSS.js} +1 -1
- package/chunks/{chunk-BWUW6ZQR.js → chunk-UQS7XCBV.js} +75 -60
- package/chunks/{chunk-6TA3CWND.js → chunk-V2KJQVYE.js} +42 -21
- package/chunks/{chunk-RFK5F45W.js → chunk-VJBEB2K6.js} +1 -1
- package/chunks/{chunk-D4IBEO2K.js → chunk-VWE36MUN.js} +1 -1
- package/chunks/{chunk-B5TIXHCO.js → chunk-WNWDQ2TO.js} +1 -1
- package/chunks/{chunk-S2WCYEK2.js → chunk-WPJMA5AK.js} +2 -2
- package/chunks/{chunk-FI5YL4R2.js → chunk-XJ2TBEV7.js} +3 -3
- package/chunks/{chunk-3T5R7P4T.js → chunk-XOVYV7TT.js} +4 -4
- package/chunks/{chunk-DJGJECBV.js → chunk-YGYJ2FTH.js} +4 -3
- package/chunks/{chunk-ZWAWZU6C.js → chunk-YJGPPPUB.js} +37 -9
- package/chunks/chunk-YP2DHYNI.js +650 -0
- package/chunks/{chunk-DMDWIW3E.js → chunk-Z2VLJEQJ.js} +4 -4
- package/chunks/{chunk-EQBC2ZWL.js → chunk-ZPVSDB63.js} +1604 -246
- package/chunks/{codex-models-KCUIVS3R.js → codex-models-CI22KIHY.js} +7 -7
- package/chunks/{commands-MPPAADGY.js → commands-C2WRSCNB.js} +210 -101
- package/chunks/dashboard-XO2X2SPD.js +75 -0
- package/chunks/{db-R2AQSESC.js → db-FU3OIGQK.js} +3 -3
- package/chunks/{deep-review-Q6BJKEV4.js → deep-review-5AL6QYTK.js} +30 -30
- package/chunks/{disclose-GGULOW27.js → disclose-YPV5KIUU.js} +3 -3
- package/chunks/{dist-6RNAVFAY.js → dist-ONIRKDH6.js} +29 -29
- package/chunks/{dist-OLGNKDB2.js → dist-QLMPTFT7.js} +2 -2
- package/chunks/{dist-DWN7U5OV.js → dist-QXJKD743.js} +1 -1
- package/chunks/{eval-runner-WCTTIYN4.js → eval-runner-D3RUCU3R.js} +17 -17
- package/chunks/{exploit-agent-M3KUMZJH.js → exploit-agent-4E4HXKUA.js} +1 -1
- package/chunks/{exploit-autoclimb-QTTWC5WM.js → exploit-autoclimb-5GRXI6VQ.js} +1 -1
- package/chunks/{exploit-climb-E4KDELTN.js → exploit-climb-AHQEJ2I2.js} +2 -2
- package/chunks/{fix-U5FFJD4F.js → fix-CHD7LXDS.js} +7 -7
- package/chunks/{harness-FMKIMEH5.js → harness-E63KDHPG.js} +3 -3
- package/chunks/{hunt-scan-RYPWRUQD.js → hunt-scan-ME2Z4CTC.js} +16 -16
- package/chunks/{kernel-primitive-CVG2E7MJ.js → kernel-primitive-S566GXWP.js} +2 -2
- package/chunks/{kernel-vm-runner-62KISULQ.js → kernel-vm-runner-KREBY4DC.js} +2 -2
- package/chunks/{local-engine-WP3I7K7G.js → local-engine-ZRTZVSSX.js} +5 -5
- package/chunks/managed-operation-ZMLLRCCQ.js +59 -0
- package/chunks/{native-loop-HC77R5NQ.js → native-loop-UV3Z4Z2F.js} +16 -16
- package/chunks/{operator-services-E2NONBQS.js → operator-services-JOCREEBA.js} +35 -35
- package/chunks/{orchestrate-Z3DW265M.js → orchestrate-ZF6ZTSIQ.js} +30 -30
- package/chunks/{prepare-7DTS6RJT.js → prepare-PLDVGLDX.js} +5 -5
- package/chunks/{provider-model-discovery-QGUGL3XW.js → provider-model-discovery-3X6DON3Y.js} +7 -2
- package/chunks/{remote-workflow-runtime-6CEVRZXS.js → remote-workflow-runtime-GOI4TYP5.js} +2 -2
- package/chunks/routing-WCQLO5SP.js +61 -0
- package/chunks/{runtime-W6JNDQRO.js → runtime-6ZIXFTW5.js} +2 -2
- package/chunks/{runtime-PZJ77QES.js → runtime-TVH5ORUK.js} +11 -7
- package/chunks/{scan-stream-6VOJTHTR.js → scan-stream-HJVTWZ44.js} +4 -4
- package/chunks/{scope-FHXW6EX6.js → scope-RCYXVGJR.js} +2 -2
- package/chunks/service-plugins-TN6KDX4L.js +63 -0
- package/chunks/{session-store-DBBI544Y.js → session-store-6QR3CVUA.js} +2 -2
- package/chunks/{variant-candidates-DPR6DJ3N.js → variant-candidates-SGLKPPHI.js} +7 -7
- package/chunks/{web-recon-prepass-HWDHDQMN.js → web-recon-prepass-GO7CTMVQ.js} +5 -5
- package/chunks/{workflow-runtime-PLB32XC3.js → workflow-runtime-CQTDASFA.js} +43 -43
- package/dashboard/assets/{abnfDiagram-VCTEODGH-6e39CQKz.js → abnfDiagram-VCTEODGH-DDZsU70-.js} +1 -1
- package/dashboard/assets/{arc-ClYun86B.js → arc-iDXNTSL6.js} +1 -1
- package/dashboard/assets/{architecture-7GRP2DOG-rM-lWo7E.js → architecture-7GRP2DOG-DJcY9RFg.js} +1 -1
- package/dashboard/assets/{architectureDiagram-5GKGNRK7-C9gEGZIU.js → architectureDiagram-5GKGNRK7-d0ZuOniQ.js} +1 -1
- package/dashboard/assets/{blockDiagram-I7D4REHJ-Dgh2n5Lf.js → blockDiagram-I7D4REHJ-B-EWfMy1.js} +1 -1
- package/dashboard/assets/{c4Diagram-7LVT6UL2-CsorW08z.js → c4Diagram-7LVT6UL2-KcZRuXZC.js} +1 -1
- package/dashboard/assets/channel-CeWMIm0w.js +1 -0
- package/dashboard/assets/{chunk-4HAMMTFA-4_b_LGGQ.js → chunk-4HAMMTFA-DXWulBlo.js} +1 -1
- package/dashboard/assets/{chunk-75Z2AOVW-qzNlKGCp.js → chunk-75Z2AOVW-RiLZItrz.js} +1 -1
- package/dashboard/assets/{chunk-DU6HZSFF-SAPICW28.js → chunk-DU6HZSFF-MBcaIyTX.js} +1 -1
- package/dashboard/assets/{chunk-F27PBJKO-DlLotIQx.js → chunk-F27PBJKO-kLWCBX_W.js} +1 -1
- package/dashboard/assets/{chunk-GMAD6QVW-DNnr65Nb.js → chunk-GMAD6QVW-BeQeSjpW.js} +1 -1
- package/dashboard/assets/{chunk-GVQU2GXP-DTwv0VfU.js → chunk-GVQU2GXP-CjCMlOIB.js} +1 -1
- package/dashboard/assets/{chunk-IMKFNOWR-B1fk1q_W.js → chunk-IMKFNOWR-BwNst53D.js} +1 -1
- package/dashboard/assets/{chunk-L3NEJ4N5-ByVjFIox.js → chunk-L3NEJ4N5-CHXWQrkL.js} +1 -1
- package/dashboard/assets/{chunk-OSK3NFVY-DUDCzjbh.js → chunk-OSK3NFVY-B2vd19Ed.js} +1 -1
- package/dashboard/assets/{chunk-P2QGCYS3-D_D5qEso.js → chunk-P2QGCYS3-Dk7Fyh6n.js} +1 -1
- package/dashboard/assets/{chunk-POPQ4Y6H-CetM-tVm.js → chunk-POPQ4Y6H-CPAgOvYe.js} +1 -1
- package/dashboard/assets/{chunk-PWAF6VOD-BcJX4exl.js → chunk-PWAF6VOD-BotyfMha.js} +1 -1
- package/dashboard/assets/{chunk-SHT3W25Y-BWQql238.js → chunk-SHT3W25Y-Buz5gLRP.js} +1 -1
- package/dashboard/assets/{chunk-SVP7TREG-BSLOD1JE.js → chunk-SVP7TREG-_rpYEZcs.js} +1 -1
- package/dashboard/assets/{chunk-TICWLB2K-DReOl-g_.js → chunk-TICWLB2K-DOJxPoec.js} +1 -1
- package/dashboard/assets/{chunk-XXDRQBXY-DSdSMeei.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-CRRsylCH.js → common-VLJRx-Jq.js} +1 -1
- package/dashboard/assets/{cose-bilkent-JH36ORCC-fg-DIBqt.js → cose-bilkent-JH36ORCC-B1SVC57o.js} +1 -1
- package/dashboard/assets/{cynefin-OW5HDTMX-XmrbEIFh.js → cynefin-OW5HDTMX-BzhRorj4.js} +1 -1
- package/dashboard/assets/{cynefinDiagram-5FMLGOSQ-CoQ7QEPl.js → cynefinDiagram-5FMLGOSQ-JXzRmldX.js} +1 -1
- package/dashboard/assets/{dagre-GXQ25YYZ-qtQtsg6c.js → dagre-GXQ25YYZ-1LZ-X0-Z.js} +1 -1
- package/dashboard/assets/{diagram-S7CK7UJ4-B_ts4_58.js → diagram-S7CK7UJ4-C_-J_LQ4.js} +1 -1
- package/dashboard/assets/{diagram-UQ7AKVKN-DwHbbxFy.js → diagram-UQ7AKVKN-CnxL1k8g.js} +1 -1
- package/dashboard/assets/{diagram-VSXAHHWV-2Tg_RG89.js → diagram-VSXAHHWV-WzSb3aby.js} +1 -1
- package/dashboard/assets/{diagram-VX7I27RA-BFYp-YjF.js → diagram-VX7I27RA-DKhrMInE.js} +1 -1
- package/dashboard/assets/{diagram-Z3DM3KII-DrPiS4V0.js → diagram-Z3DM3KII-CDhI2WGP.js} +1 -1
- package/dashboard/assets/{dist-cbVssBvx.js → dist-B0bfBMeP.js} +1 -1
- package/dashboard/assets/{ebnfDiagram-PWID7BFC-DCMOZtU2.js → ebnfDiagram-PWID7BFC-iL5NQ1PE.js} +1 -1
- package/dashboard/assets/{erDiagram-RLTQ6QDP-CW4rUJGU.js → erDiagram-RLTQ6QDP-RK2Voa5O.js} +1 -1
- package/dashboard/assets/{eventmodeling-NTZA5JFV-C2q-Aaav.js → eventmodeling-NTZA5JFV-WgE7OJBb.js} +1 -1
- package/dashboard/assets/flowDiagram-HODETNUW-B9YcQ0Aq.js +1 -0
- package/dashboard/assets/{ganttDiagram-EL5Y4UJY-C1AqcwIF.js → ganttDiagram-EL5Y4UJY-D8CJXHRF.js} +1 -1
- package/dashboard/assets/{gitGraph-4MIJSDKK-DYR76gtd.js → gitGraph-4MIJSDKK-BuZ9Lg04.js} +1 -1
- package/dashboard/assets/{gitGraphDiagram-WWUBYQGX-B7hL98CE.js → gitGraphDiagram-WWUBYQGX-LEJMh54j.js} +1 -1
- package/dashboard/assets/{info-A6RAGUB7-TXB43LiH.js → info-A6RAGUB7-BL5k3pev.js} +1 -1
- package/dashboard/assets/{infoDiagram-27XIBGKW-Dk5dXmh_.js → infoDiagram-27XIBGKW-LJvntUnZ.js} +1 -1
- package/dashboard/assets/{ishikawaDiagram-5VMMS53U-BQDuNMka.js → ishikawaDiagram-5VMMS53U-BYTYgKCG.js} +1 -1
- package/dashboard/assets/{journeyDiagram-3NMN7TZE-DkustddD.js → journeyDiagram-3NMN7TZE-G25qgQgO.js} +1 -1
- package/dashboard/assets/{kanban-definition-UXKFOSKX-BW7Ann84.js → kanban-definition-UXKFOSKX-Bk3uLl1i.js} +1 -1
- package/dashboard/assets/{line-DVxcLeru.js → line-i4qHBaWO.js} +1 -1
- package/dashboard/assets/{linear-DOM_l9bO.js → linear-DmrqRsKG.js} +1 -1
- package/dashboard/assets/{mermaid-parser.core-CKg9fDvJ.js → mermaid-parser.core-BxbKr4QF.js} +3 -3
- package/dashboard/assets/{mermaid.core-DruW_5-Y.js → mermaid.core-Cltee6FS.js} +4 -4
- package/dashboard/assets/{mindmap-definition-YA3MSWOX-Di5W5VB3.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-BABwqtNu.js → packet-AYTQ26CC-uZQUKnrE.js} +1 -1
- package/dashboard/assets/{pegDiagram-XKGWAZYB-Cx4ABT6q.js → pegDiagram-XKGWAZYB-CrOEi00T.js} +1 -1
- package/dashboard/assets/{pie-WAS4IAKB-CNdXyrze.js → pie-WAS4IAKB-Dn9_tpQT.js} +1 -1
- package/dashboard/assets/{pieDiagram-E7YTZNPT-BilfQbIs.js → pieDiagram-E7YTZNPT-D-niUkzc.js} +1 -1
- package/dashboard/assets/{quadrantDiagram-AXDQQJYC-BVmMQHE5.js → quadrantDiagram-AXDQQJYC-CJOTiG5V.js} +1 -1
- package/dashboard/assets/{radar-RG4KPBEZ-fKNmDeoK.js → radar-RG4KPBEZ-DIIVz4e8.js} +1 -1
- package/dashboard/assets/{railroad-74A4TZTK-DhcvDCOh.js → railroad-74A4TZTK-1kiqDEID.js} +1 -1
- package/dashboard/assets/{railroad-abnf-HS5TGJTU-BTRVAmf0.js → railroad-abnf-HS5TGJTU-DK6rQPZR.js} +1 -1
- package/dashboard/assets/{railroad-ebnf-LZEXJU2U-CwS8fgC_.js → railroad-ebnf-LZEXJU2U-C6cOgYW4.js} +1 -1
- package/dashboard/assets/{railroad-peg-WCYAUIDC-CXuhXlNp.js → railroad-peg-WCYAUIDC-CQ3ptKef.js} +1 -1
- package/dashboard/assets/{railroadDiagram-O6MQD6OU-DnBru-jf.js → railroadDiagram-O6MQD6OU-nEfkpa-m.js} +1 -1
- package/dashboard/assets/{requirementDiagram-BXWQKSXE-FwdvUZ7_.js → requirementDiagram-BXWQKSXE-CdFMY8tG.js} +1 -1
- package/dashboard/assets/{sankeyDiagram-P5KCCOFB-BQvDORai.js → sankeyDiagram-P5KCCOFB-C0KxrFYv.js} +1 -1
- package/dashboard/assets/{sequenceDiagram-WJ2MYXX4-FWYQLzcY.js → sequenceDiagram-WJ2MYXX4-DeZ5ATiu.js} +1 -1
- package/dashboard/assets/{src-BwkPhlcp.js → src-Cg-chcoE.js} +1 -1
- package/dashboard/assets/{stateDiagram-D77RDMKH-CjPBd_Sa.js → stateDiagram-D77RDMKH-B9MwWL5B.js} +1 -1
- package/dashboard/assets/stateDiagram-v2-MP3YSRHH-SucFndhx.js +1 -0
- package/dashboard/assets/{swimlanes-42K2YHIH-SQLNsa4J.js → swimlanes-42K2YHIH-DB--fwQE.js} +1 -1
- package/dashboard/assets/swimlanesDiagram-VR7AAH4N-BzH-rIaK.js +8 -0
- package/dashboard/assets/{timeline-definition-24CTP7MA-BxCf20k1.js → timeline-definition-24CTP7MA-DLkkTbWb.js} +1 -1
- package/dashboard/assets/{treeView-Q6P3EWNA-BGLYAyGp.js → treeView-Q6P3EWNA-XkZ9rl9H.js} +1 -1
- package/dashboard/assets/{treemap-WGGIJYW6-BlzAwncU.js → treemap-WGGIJYW6-JCtVKxCE.js} +1 -1
- package/dashboard/assets/{vennDiagram-4TSXK5OY-D76RIZLz.js → vennDiagram-4TSXK5OY-DEb-x29Z.js} +1 -1
- package/dashboard/assets/{wardley-WFR3VGLG-Ba_reiVw.js → wardley-WFR3VGLG-DhI7ROY3.js} +1 -1
- package/dashboard/assets/{wardleyDiagram-VM6X3IG4-Cux4coOD.js → wardleyDiagram-VM6X3IG4-KNckudc5.js} +1 -1
- package/dashboard/assets/{xychartDiagram-S5SC5T6Z-Ch5mvnlH.js → xychartDiagram-S5SC5T6Z-D4c0ynCk.js} +1 -1
- package/dashboard/index.html +13 -2
- package/package.json +1 -1
- package/worker-assets/demo-target/README.md +7 -3
- package/chunks/chunk-AL32F74R.js +0 -1123
- package/chunks/dashboard-MN7GZLLX.js +0 -75
- package/chunks/managed-operation-642WPTLC.js +0 -59
- package/chunks/routing-ITJZBJIU.js +0 -61
- package/chunks/service-plugins-CN6Q2NSN.js +0 -63
- package/dashboard/assets/channel-BBlDqIBl.js +0 -1
- package/dashboard/assets/classDiagram-ZZMXUADV-CRH2kB8G.js +0 -1
- package/dashboard/assets/classDiagram-v2-VYDZK3BY-CRH2kB8G.js +0 -1
- package/dashboard/assets/flowDiagram-HODETNUW-3NOabgG3.js +0 -1
- package/dashboard/assets/operations-B-t_k60U.js +0 -194
- package/dashboard/assets/operations-D2ZKZFOF.css +0 -1
- package/dashboard/assets/stateDiagram-v2-MP3YSRHH-DHmenujm.js +0 -1
- package/dashboard/assets/swimlanesDiagram-VR7AAH4N-D1bH4ETZ.js +0 -8
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
createWorkbenchProviderBroker,
|
|
8
8
|
runSmolvmWorkbench,
|
|
9
9
|
snapshotSmolvmWorkspace
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3MWQNNJU.js";
|
|
11
11
|
import {
|
|
12
12
|
getReleaseChannel
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VWE36MUN.js";
|
|
14
14
|
import {
|
|
15
15
|
TOOL_DEFINITIONS
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SIR7XW2S.js";
|
|
17
17
|
import {
|
|
18
18
|
ANALYTICS_LEVEL_ENV,
|
|
19
19
|
getSmolvmWorkbenchStatus,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
levelAtLeast,
|
|
22
22
|
loadCloudCredentials,
|
|
23
23
|
resolveAnalyticsLevel
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XOVYV7TT.js";
|
|
25
25
|
import {
|
|
26
26
|
ScopePolicy,
|
|
27
27
|
aggregateCapabilities,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
readInstalledPlugin,
|
|
35
35
|
reconcile,
|
|
36
36
|
writeEnablement
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RZZ6VPRY.js";
|
|
38
38
|
import {
|
|
39
39
|
BackendIdSchema,
|
|
40
40
|
DEFAULT_ALLOW_MODEL_SELF_EXTENSION,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
VERSION,
|
|
43
43
|
findingSchema,
|
|
44
44
|
homeStateDir
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GYEYTNHK.js";
|
|
46
46
|
import {
|
|
47
47
|
external_exports
|
|
48
48
|
} from "./chunk-5XOYTAOK.js";
|
|
@@ -991,7 +991,7 @@ var KEYBINDINGS = [
|
|
|
991
991
|
description: "Cycle the autonomy mode: Standard \u2192 Co-pilot \u2192 YOLO \u2192 Recon; no preconfigured scope is required.",
|
|
992
992
|
category: "Autonomy",
|
|
993
993
|
lockReason: "mode-cycle",
|
|
994
|
-
handler: "
|
|
994
|
+
handler: "showToast(String(`YOLO is the only mode`))"
|
|
995
995
|
}
|
|
996
996
|
];
|
|
997
997
|
var MODIFIER_ALIASES = {
|
|
@@ -1810,6 +1810,14 @@ var PROVIDER_DEFS = [
|
|
|
1810
1810
|
fileSource: "~/.codex/auth.json (override with ZERO_CHATGPT_AUTH_FILE)",
|
|
1811
1811
|
hint: "run `codex login` to write ~/.codex/auth.json, or invoke 0 with env ZERO_CHATGPT_OAUTH_REFRESH_TOKEN=..."
|
|
1812
1812
|
},
|
|
1813
|
+
{
|
|
1814
|
+
id: "chatgpt-plan",
|
|
1815
|
+
label: "ChatGPT",
|
|
1816
|
+
methods: ["oauth"],
|
|
1817
|
+
envVars: [],
|
|
1818
|
+
fileSource: "0 native ChatGPT connection",
|
|
1819
|
+
hint: "connect your ChatGPT account through 0 native sign-in"
|
|
1820
|
+
},
|
|
1813
1821
|
{
|
|
1814
1822
|
id: "deepseek",
|
|
1815
1823
|
label: "DeepSeek",
|
|
@@ -1857,20 +1865,18 @@ var PROVIDER_DEFS = [
|
|
|
1857
1865
|
{
|
|
1858
1866
|
id: "kimi",
|
|
1859
1867
|
label: "Moonshot Kimi",
|
|
1860
|
-
//
|
|
1861
|
-
//
|
|
1862
|
-
// Bearer (llm-api.ts reads it there, no change needed), and the refresh
|
|
1863
|
-
// token to the 0-owned var so the store can round-trip it.
|
|
1868
|
+
// New sign-ins require an explicitly registered 0 client. Existing stored
|
|
1869
|
+
// OAuth credentials remain readable through the original environment keys.
|
|
1864
1870
|
methods: ["oauth", "api-key"],
|
|
1865
1871
|
envVars: ["KIMI_API_KEY", "ZERO_KIMI_OAUTH_REFRESH_TOKEN"],
|
|
1866
|
-
hint: "
|
|
1872
|
+
hint: "set KIMI_API_KEY from your Kimi coding plan (endpoint override: KIMI_BASE_URL); browser sign-in requires ZERO_KIMI_OAUTH_CLIENT_ID registered for 0"
|
|
1867
1873
|
},
|
|
1868
1874
|
{
|
|
1869
1875
|
id: "qwen",
|
|
1870
1876
|
label: "Alibaba Qwen",
|
|
1871
1877
|
methods: ["api-key"],
|
|
1872
1878
|
envVars: ["QWEN_API_KEY"],
|
|
1873
|
-
hint: "set QWEN_API_KEY
|
|
1879
|
+
hint: "set QWEN_API_KEY and QWEN_BASE_URL for the same QwenCloud or Alibaba Model Studio product and region; Qwen OAuth is discontinued"
|
|
1874
1880
|
},
|
|
1875
1881
|
{
|
|
1876
1882
|
id: "xai",
|
|
@@ -1881,7 +1887,7 @@ var PROVIDER_DEFS = [
|
|
|
1881
1887
|
// token to the 0-owned var so the store can round-trip it.
|
|
1882
1888
|
methods: ["oauth", "api-key"],
|
|
1883
1889
|
envVars: ["XAI_API_KEY", "ZERO_XAI_OAUTH_REFRESH_TOKEN"],
|
|
1884
|
-
hint: "
|
|
1890
|
+
hint: "set XAI_API_KEY from console.x.ai (endpoint override: XAI_BASE_URL); browser sign-in requires ZERO_XAI_OAUTH_CLIENT_ID registered for 0"
|
|
1885
1891
|
},
|
|
1886
1892
|
{
|
|
1887
1893
|
id: "cline",
|
|
@@ -1906,7 +1912,7 @@ var PROVIDER_DEFS = [
|
|
|
1906
1912
|
// there is no refresh-token env var.
|
|
1907
1913
|
methods: ["oauth"],
|
|
1908
1914
|
envVars: ["ZERO_COPILOT_GITHUB_TOKEN"],
|
|
1909
|
-
hint: "sign
|
|
1915
|
+
hint: "browser sign-in requires ZERO_COPILOT_OAUTH_CLIENT_ID registered for 0 and Copilot service access; existing ZERO_COPILOT_GITHUB_TOKEN credentials remain supported (endpoint override: COPILOT_BASE_URL)"
|
|
1910
1916
|
},
|
|
1911
1917
|
{
|
|
1912
1918
|
id: "google",
|
|
@@ -1918,7 +1924,7 @@ var PROVIDER_DEFS = [
|
|
|
1918
1924
|
// pasted-key equivalent — Code Assist authenticates only via OAuth.
|
|
1919
1925
|
methods: ["oauth"],
|
|
1920
1926
|
envVars: ["ZERO_GEMINI_ACCESS_TOKEN", "ZERO_GEMINI_OAUTH_REFRESH_TOKEN"],
|
|
1921
|
-
hint: "
|
|
1927
|
+
hint: "browser sign-in requires ZERO_GOOGLE_OAUTH_CLIENT_ID registered for 0 and Code Assist access (plus ZERO_GOOGLE_OAUTH_CLIENT_SECRET if required); existing ZERO_GEMINI_OAUTH_REFRESH_TOKEN credentials remain supported"
|
|
1922
1928
|
},
|
|
1923
1929
|
{
|
|
1924
1930
|
id: "anthropic",
|
|
@@ -2207,7 +2213,7 @@ function serializeSubmission(payload, target, env) {
|
|
|
2207
2213
|
if (!target.sentryKey || !payload.diagnostic) return serializePayload(payload);
|
|
2208
2214
|
const diagnostic = payload.diagnostic;
|
|
2209
2215
|
const cliVersion = VERSION;
|
|
2210
|
-
const commit = /^[0-9a-f]{40}$/i.test("
|
|
2216
|
+
const commit = /^[0-9a-f]{40}$/i.test("45384f71627b3e076ae0b7af35318b1fd4c1baf2") ? "45384f71627b3e076ae0b7af35318b1fd4c1baf2".toLowerCase() : void 0;
|
|
2211
2217
|
const releaseChannel = getReleaseChannel(env);
|
|
2212
2218
|
const environment = releaseChannel === "beta" ? "production" : "development";
|
|
2213
2219
|
const event = JSON.stringify({
|
|
@@ -2394,7 +2400,7 @@ function serializeWorkbenchConfig(config, workspace) {
|
|
|
2394
2400
|
if (config[key] !== void 0) throw new Error(`Host ${key} cannot execute through the workbench controller`);
|
|
2395
2401
|
}
|
|
2396
2402
|
const result = { workspaceRoot: "/workspace", target: mapWorkbenchTarget(config.target ?? "", workspace) };
|
|
2397
|
-
for (const key of ["role", "tools", "codebaseLearning", "scanId", "maxToolIterations", "allowScanners", "systemPrompt", "autonomyMode", "refineObjective", "allowModelSelfExtension", "costModel", "contextWindowTokens", "compaction", "initialMessages"]) {
|
|
2403
|
+
for (const key of ["role", "tools", "codebaseLearning", "scanId", "maxToolIterations", "allowScanners", "webSearchEnabled", "systemPrompt", "autonomyMode", "refineObjective", "allowModelSelfExtension", "costModel", "contextWindowTokens", "compaction", "initialMessages"]) {
|
|
2398
2404
|
if (config[key] !== void 0) result[key] = structuredClone(config[key]);
|
|
2399
2405
|
}
|
|
2400
2406
|
if (config.maxTurnTokens !== void 0 && Number.isFinite(config.maxTurnTokens)) result.maxTurnTokens = config.maxTurnTokens;
|
|
@@ -2624,7 +2630,7 @@ var Controller = class {
|
|
|
2624
2630
|
const artifacts = this.options.artifactDirectory ?? await realpath2(await mkdtemp2(join7(root, "run-")));
|
|
2625
2631
|
const reader = new WorkbenchFrameReader();
|
|
2626
2632
|
const launch = guestCommand(this.options, this.cli);
|
|
2627
|
-
const connections = this.cli ? [] : (await import("./service-plugins-
|
|
2633
|
+
const connections = this.cli ? [] : (await import("./service-plugins-TN6KDX4L.js")).loadServicePluginConnections(this.options.pluginHomeDir).filter((item) => item.enabled);
|
|
2628
2634
|
const servicePluginConnections = validateGuestServicePluginConnections(connections, this.options.network);
|
|
2629
2635
|
this.redact = servicePluginSecretRedactor(servicePluginConnections);
|
|
2630
2636
|
const plugins = stagedPlugins = await prepareWorkbenchPlugins(this.workspace, this.options.pluginHomeDir);
|
|
@@ -2838,7 +2844,8 @@ function createWorkbenchConsoleSession(options) {
|
|
|
2838
2844
|
throw new Error("Workbench source context persistence failed");
|
|
2839
2845
|
}
|
|
2840
2846
|
};
|
|
2841
|
-
let
|
|
2847
|
+
let webSearchEnabled = config.webSearchEnabled ?? config.initialCheckpoint?.webSearchEnabled;
|
|
2848
|
+
let autonomyMode = config.initialCheckpoint?.autonomyMode ?? config.autonomyMode ?? "standard";
|
|
2842
2849
|
let systemPrompt = config.systemPrompt ?? "";
|
|
2843
2850
|
let tools = config.tools ?? [];
|
|
2844
2851
|
let sourceContext;
|
|
@@ -2965,6 +2972,7 @@ function createWorkbenchConsoleSession(options) {
|
|
|
2965
2972
|
scope = state.scope ? new ScopePolicy(state.scope) : void 0;
|
|
2966
2973
|
localScopePath = state.localScopePath ? hostWorkspacePath(String(state.localScopePath), workspace) : void 0;
|
|
2967
2974
|
autonomyMode = state.autonomyMode;
|
|
2975
|
+
if (typeof state.webSearchEnabled === "boolean") webSearchEnabled = state.webSearchEnabled;
|
|
2968
2976
|
checkpoint = state.checkpoint ? mapWorkbenchCheckpoint(state.checkpoint, workspace, true) : void 0;
|
|
2969
2977
|
} else if (frame.type === "event") {
|
|
2970
2978
|
if (!EVENTS.has(String(frame.name)) || !Array.isArray(frame.args)) throw new Error("Invalid guest render callback");
|
|
@@ -3012,8 +3020,21 @@ function createWorkbenchConsoleSession(options) {
|
|
|
3012
3020
|
explicitYoloSourceGrant = true;
|
|
3013
3021
|
sourceScopePath ??= workspace;
|
|
3014
3022
|
}
|
|
3023
|
+
if (!controller.done && serial.initialCheckpoint) {
|
|
3024
|
+
serial.initialCheckpoint = { ...serial.initialCheckpoint, autonomyMode: mode };
|
|
3025
|
+
if (checkpoint) checkpoint = { ...checkpoint, autonomyMode: mode };
|
|
3026
|
+
}
|
|
3015
3027
|
queue("autonomy", mode);
|
|
3016
3028
|
},
|
|
3029
|
+
get webSearchEnabled() {
|
|
3030
|
+
return webSearchEnabled;
|
|
3031
|
+
},
|
|
3032
|
+
async setWebSearchEnabled(enabled) {
|
|
3033
|
+
if (active) throw new Error("Wait for the current turn before changing web search.");
|
|
3034
|
+
if (controller.done) await controller.request("webSearch", { value: enabled });
|
|
3035
|
+
webSearchEnabled = enabled;
|
|
3036
|
+
serial.webSearchEnabled = enabled;
|
|
3037
|
+
},
|
|
3017
3038
|
configureEngagement(selection) {
|
|
3018
3039
|
if (selection.target !== void 0) target = selection.target;
|
|
3019
3040
|
if (selection.scope !== void 0) scope = selection.scope ?? void 0;
|
|
@@ -3248,7 +3269,7 @@ async function launchConfiguredWorkbench(args) {
|
|
|
3248
3269
|
return void 0;
|
|
3249
3270
|
}
|
|
3250
3271
|
if (process.platform === "linux" && isAdmittedSmolvmWorkbench()) return void 0;
|
|
3251
|
-
if (["workbench", "config", "web", "dashboard", "console", "chat", "team", "tui", "watch", "doctor", "help", "--help", "-h", "--version", "-v"].includes(args[0] ?? "") || args.length === 0) return void 0;
|
|
3272
|
+
if (["api", "workbench", "config", "web", "dashboard", "console", "chat", "team", "tui", "watch", "doctor", "help", "--help", "-h", "--version", "-v"].includes(args[0] ?? "") || args.length === 0) return void 0;
|
|
3252
3273
|
if (remoteBackendClientId(args)) return void 0;
|
|
3253
3274
|
const hostSettings = loadGlobalSettings(home, { requireExecutionProfile: existsSync2(workbenchConfigPath(home)) });
|
|
3254
3275
|
if (hostSettings.executionProfile !== "smolvm") return void 0;
|
|
@@ -3,7 +3,7 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
getFindingPriority
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GYEYTNHK.js";
|
|
7
7
|
|
|
8
8
|
// packages/core/dist/disclose/cwe.js
|
|
9
9
|
var CWE_MAP = {
|
|
@@ -3,7 +3,7 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GYEYTNHK.js";
|
|
7
7
|
|
|
8
8
|
// packages/cli/src/tui/runtime.ts
|
|
9
9
|
function getReleaseChannel(env = process.env) {
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
extractFileRefs,
|
|
12
12
|
redactSensitiveHeaders
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VJBEB2K6.js";
|
|
14
14
|
import {
|
|
15
15
|
getFindingPriority
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GYEYTNHK.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM
|
|
19
19
|
} from "./chunk-VCSFCHAJ.js";
|
|
@@ -3,13 +3,13 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
createJournalWriter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LRD5N2TQ.js";
|
|
7
7
|
import {
|
|
8
8
|
verifyKernelFinding
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B7XL6RON.js";
|
|
10
10
|
import {
|
|
11
11
|
homeStateDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GYEYTNHK.js";
|
|
13
13
|
|
|
14
14
|
// packages/core/dist/cve/adapt-loop.js
|
|
15
15
|
import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
@@ -3,13 +3,13 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
eventBus
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ULRLUXSS.js";
|
|
7
7
|
import {
|
|
8
8
|
redactAuthHeaders
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VJBEB2K6.js";
|
|
10
10
|
import {
|
|
11
11
|
ScopePolicy
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RZZ6VPRY.js";
|
|
13
13
|
import {
|
|
14
14
|
allowlistedChildEnv,
|
|
15
15
|
sanitizedEnv
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
VERSION,
|
|
19
19
|
cloudStateDir,
|
|
20
20
|
homeStateDir
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GYEYTNHK.js";
|
|
22
22
|
import {
|
|
23
23
|
external_exports
|
|
24
24
|
} from "./chunk-5XOYTAOK.js";
|
|
@@ -3,10 +3,10 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
isAdmittedSmolvmWorkbench
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XOVYV7TT.js";
|
|
7
7
|
import {
|
|
8
8
|
isScopeEnforcementEnabled
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RZZ6VPRY.js";
|
|
10
10
|
import {
|
|
11
11
|
external_exports
|
|
12
12
|
} from "./chunk-5XOYTAOK.js";
|
|
@@ -1024,7 +1024,8 @@ function isScopedPath(scopePath, inputPath) {
|
|
|
1024
1024
|
const root = realpathSync4(scopePath);
|
|
1025
1025
|
const logicalCandidate = isAbsolute4(inputPath) ? resolve4(inputPath) : resolve4(root, inputPath);
|
|
1026
1026
|
const candidate = canonicalizePath(logicalCandidate);
|
|
1027
|
-
|
|
1027
|
+
const prefix = root.endsWith(sep4) ? root : root + sep4;
|
|
1028
|
+
return candidate === root || candidate.startsWith(prefix);
|
|
1028
1029
|
}
|
|
1029
1030
|
function resolveScopedPath(scopePath, inputPath) {
|
|
1030
1031
|
const boundary2 = getLocalSourceBoundary();
|
|
@@ -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
|
import {
|
|
8
8
|
external_exports
|
|
9
9
|
} from "./chunk-5XOYTAOK.js";
|
|
@@ -108,6 +108,7 @@ var workerSchema = external_exports.object({
|
|
|
108
108
|
var consoleStateSchema = external_exports.object({
|
|
109
109
|
configuration: external_exports.object({
|
|
110
110
|
modelSource: external_exports.literal("local").optional(),
|
|
111
|
+
webSearchEnabled: external_exports.boolean().optional(),
|
|
111
112
|
workflowId: external_exports.string().regex(/^[A-Za-z0-9_-]{1,128}$/).optional(),
|
|
112
113
|
skillId: external_exports.string().min(1).max(384).refine((value) => !/[\u0000-\u001f\u007f]/.test(value)).optional(),
|
|
113
114
|
target: external_exports.string().max(8e3),
|
|
@@ -135,7 +136,7 @@ var consoleStateSchema = external_exports.object({
|
|
|
135
136
|
lastOutcome: external_exports.object({
|
|
136
137
|
assistantText: boundedString,
|
|
137
138
|
stopReason: external_exports.enum(["end_turn", "max_tool_iterations", "max_turn_tokens", "output_cap", "cancelled", "error"]),
|
|
138
|
-
budget: external_exports.object({ tokensUsed: finite, tokenBudget: finite.nullable(), iterations: finite, maxToolIterations: finite }).strict(),
|
|
139
|
+
budget: external_exports.object({ tokensUsed: finite, tokenBudget: finite.nullable(), iterations: finite, maxToolIterations: finite.nullable() }).strict(),
|
|
139
140
|
error: boundedString.optional(),
|
|
140
141
|
usage: external_exports.object({ inputTokens: finite, outputTokens: finite }).strict().optional(),
|
|
141
142
|
contextInputTokens: finite.optional(),
|
|
@@ -155,7 +156,7 @@ var consoleStateSchema = external_exports.object({
|
|
|
155
156
|
focusedFindingId: external_exports.string().max(256).optional(),
|
|
156
157
|
stagedPrompt: boundedString.optional()
|
|
157
158
|
}).strict();
|
|
158
|
-
function parseConsoleState(value) {
|
|
159
|
+
function parseConsoleState(value, recoverDisplayState = false) {
|
|
159
160
|
let nodes = 0;
|
|
160
161
|
const ancestors = /* @__PURE__ */ new Set();
|
|
161
162
|
const boundedJson = (entry, depth) => {
|
|
@@ -174,7 +175,28 @@ function parseConsoleState(value) {
|
|
|
174
175
|
try {
|
|
175
176
|
if (JSON.stringify(value).length > 4 * 1024 * 1024) return void 0;
|
|
176
177
|
const parsed = consoleStateSchema.safeParse(value);
|
|
177
|
-
|
|
178
|
+
if (parsed.success) return parsed.data;
|
|
179
|
+
if (!recoverDisplayState) return void 0;
|
|
180
|
+
const configuration = consoleStateSchema.shape.configuration.safeParse(rawValue(value, "configuration"));
|
|
181
|
+
if (!configuration.success || !configuration.data || rawValue(value, "version") !== 1) return void 0;
|
|
182
|
+
const field = (key, fallback) => {
|
|
183
|
+
const result = consoleStateSchema.shape[key].safeParse(rawValue(value, key));
|
|
184
|
+
return result.success ? result.data : fallback;
|
|
185
|
+
};
|
|
186
|
+
return {
|
|
187
|
+
version: 1,
|
|
188
|
+
configuration: configuration.data,
|
|
189
|
+
title: field("title", "Resumed chat"),
|
|
190
|
+
objective: field("objective", ""),
|
|
191
|
+
usage: field("usage", { inputTokens: 0, outputTokens: 0 }),
|
|
192
|
+
lastOutcome: field("lastOutcome", null),
|
|
193
|
+
todos: field("todos", null),
|
|
194
|
+
workers: field("workers", []),
|
|
195
|
+
compaction: field("compaction", null),
|
|
196
|
+
queuedMessages: field("queuedMessages", []),
|
|
197
|
+
userAttributions: field("userAttributions", []),
|
|
198
|
+
...field("contextInputTokens", void 0) !== void 0 ? { contextInputTokens: field("contextInputTokens", void 0) } : {}
|
|
199
|
+
};
|
|
178
200
|
} catch {
|
|
179
201
|
return void 0;
|
|
180
202
|
}
|
|
@@ -188,7 +210,7 @@ function parseSession(id, text) {
|
|
|
188
210
|
}
|
|
189
211
|
const messages = rawValue(raw, "messages");
|
|
190
212
|
if (!Array.isArray(messages)) return null;
|
|
191
|
-
const consoleState = parseConsoleState(rawValue(raw, "consoleState"));
|
|
213
|
+
const consoleState = parseConsoleState(rawValue(raw, "consoleState"), true);
|
|
192
214
|
return { ...storedSessionMetadata(id, raw, messages.length), messages, ...consoleState ? { consoleState } : {} };
|
|
193
215
|
}
|
|
194
216
|
function saveSession(session, homeDir) {
|
|
@@ -245,10 +267,16 @@ function listSessions(homeDir, opts) {
|
|
|
245
267
|
} catch {
|
|
246
268
|
continue;
|
|
247
269
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
270
|
+
let raw;
|
|
271
|
+
try {
|
|
272
|
+
raw = JSON.parse(text);
|
|
273
|
+
} catch {
|
|
274
|
+
continue;
|
|
275
|
+
}
|
|
276
|
+
const messages = rawValue(raw, "messages");
|
|
277
|
+
if (!Array.isArray(messages)) continue;
|
|
278
|
+
const meta = storedSessionMetadata(id, raw, messages.length);
|
|
279
|
+
if (opts?.cwd !== void 0 && meta.cwd !== opts.cwd) continue;
|
|
252
280
|
out.push(meta);
|
|
253
281
|
}
|
|
254
282
|
out.sort((a, b) => b.savedAt - a.savedAt || a.id.localeCompare(b.id));
|