nolo-cli 0.228.0-alpha.2 → 0.228.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -5
- package/{_executeModel-VYCHHZVT.js → _executeModel-AKCTHGMP.js} +89 -83
- package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
- package/{action-GDZDXPMB.js → action-C6IQAKN4.js} +8 -5
- package/{addContentAction-7RO4AMRI.js → addContentAction-53364YDW.js} +13 -12
- package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-U5DD5EN5.js} +16 -15
- package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-2E5FAGUO.js} +128 -115
- package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-UGZZAH7E.js} +128 -111
- package/{agentListCommands-4WLG32IW.js → agentListCommands-JCTW3J2K.js} +398 -179
- package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-QPG5ZXF4.js} +58 -47
- package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentPullCommand-KHV4EELF.js → agentPullCommand-2EYJ5ENC.js} +1 -1
- package/agentRecordCommands-4NTVR6MZ.js +194 -0
- package/agentRunCommand-VHF34PYC.js +232 -0
- package/{agentRunControl-MBG4U6SL.js → agentRunControl-QYTXUQGY.js} +14 -9
- package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-U54AKHXH.js} +58 -43
- package/{agentSlice-UG76KEBH.js → agentSlice-4JGDEXWK.js} +14 -13
- package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-XBE5QJ6P.js} +58 -47
- package/{appDeployCommands-AU4IUN33.js → appDeployCommands-QIYLXXGA.js} +58 -47
- package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-JXS6ZQZZ.js} +58 -47
- package/{appGetCommands-BGTLIQ4K.js → appGetCommands-SZS7SJPK.js} +58 -47
- package/{appListCommands-CUCPRUXW.js → appListCommands-B3GBJSNV.js} +58 -47
- package/{authCommand-OZ2KTP4Z.js → authCommand-V6EOMZX6.js} +25 -19
- package/{authCommands-55OGQGCR.js → authCommands-T5FODCEG.js} +12 -6
- package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-ZQC3IIO2.js} +8 -7
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
- package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-OFX7ZGKP.js} +3 -3
- package/{chunk-DBUR22G5.js → chunk-223KZUJ6.js} +19 -15
- package/{chunk-3U44JB3O.js → chunk-2C5VN7NH.js} +1 -1
- package/{chunk-PWTNI4N7.js → chunk-2E4BYAUE.js} +22 -0
- package/{chunk-L32W3PRP.js → chunk-2FZVXOFX.js} +234 -18
- package/{chunk-HBRDSQ3M.js → chunk-2JHGUL5K.js} +3 -2
- package/chunk-2SXN7LAY.js +15 -0
- package/chunk-3A5NNQCN.js +64 -0
- package/chunk-3F2FRLIO.js +372 -0
- package/{chunk-DEA37IUY.js → chunk-46FETNLF.js} +2 -2
- package/{chunk-ZEVQHCLM.js → chunk-4GYVS4PM.js} +8 -6
- package/{chunk-CBUZ6DKA.js → chunk-4YPH5KRA.js} +1 -1
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-7FEP5USX.js → chunk-5AYP5QBB.js} +5 -5
- package/{chunk-XAG3FWBE.js → chunk-5ISNPTQH.js} +5 -5
- package/{chunk-EVGU5P4U.js → chunk-5P3PPQVP.js} +1 -1
- package/{chunk-XSW4EXQV.js → chunk-6BMTKYAO.js} +55 -18
- package/chunk-6PAHSSD2.js +33401 -0
- package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
- package/{chunk-7JGMNKKG.js → chunk-6SOWMEAY.js} +30 -9
- package/{chunk-RG2DGNL6.js → chunk-6VEO7Z3Y.js} +3 -3
- package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-DGYCDA6W.js → chunk-7BIJFGKS.js} +36 -17
- package/{chunk-WFDNADFX.js → chunk-7OVOZRZF.js} +8 -8
- package/{chunk-WCFFRBL5.js → chunk-7PON4LBY.js} +45 -27
- package/{chunk-QRGDJA4B.js → chunk-7WHCIA5V.js} +33 -7
- package/{chunk-CMMI3DAT.js → chunk-ADYWV732.js} +59 -30
- package/{chunk-QYB23WUH.js → chunk-AIFQKNPP.js} +1 -1
- package/{chunk-HGDKT2D6.js → chunk-BPB3T5EU.js} +174 -1
- package/{chunk-DUUDXSLX.js → chunk-BZLGPM5B.js} +28 -4
- package/{chunk-ATEKLSLR.js → chunk-BZMDWGQQ.js} +14 -9
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-S6K5F3KP.js → chunk-CEKRIR22.js} +1 -1
- package/{chunk-42OKN2LI.js → chunk-D634SL2Y.js} +9 -107
- package/{chunk-DLXMMTGM.js → chunk-DHRPLRIR.js} +1283 -786
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-OBIC6EG7.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-X3E6EHJW.js → chunk-E3LSO6EI.js} +292 -207
- package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
- package/chunk-EHFBP6IK.js +791 -0
- package/chunk-EJQE5HB7.js +21 -0
- package/{chunk-VQ5N5GSV.js → chunk-EL5NRJHI.js} +4 -4
- package/chunk-EUGTFFO6.js +42 -0
- package/{chunk-7BCG67EI.js → chunk-EVHTYVD2.js} +1199 -442
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-262R3XNN.js → chunk-FEIVARWR.js} +377 -112
- package/{chunk-3VZLEKV2.js → chunk-FLBJ7IJI.js} +14 -14
- package/{chunk-EEOOBRA7.js → chunk-FXEPZKNJ.js} +13 -6
- package/{chunk-XTJKU3Z4.js → chunk-FYAMUU55.js} +677 -140
- package/{chunk-M3OZRQNH.js → chunk-FZANZZ63.js} +1 -1
- package/chunk-GAHJLSDO.js +107 -0
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-4N6G2CKP.js → chunk-HDKMVYNJ.js} +47 -1
- package/chunk-HEVRQGGH.js +106 -0
- package/{chunk-BIWI5M4E.js → chunk-HFHJPHFK.js} +1 -1
- package/{chunk-R6Z5S5GA.js → chunk-HPDLPEUG.js} +60 -17
- package/{chunk-YKY4OVOX.js → chunk-HQUGB2HM.js} +17 -170
- package/chunk-IIRJ4P4I.js +24 -0
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-ALAES342.js → chunk-IYLUK67R.js} +9 -5
- package/{chunk-N5Z2V73W.js → chunk-J55F3IEZ.js} +1 -1
- package/{chunk-S6FDXXZV.js → chunk-J7JRCOIW.js} +2 -2
- package/{chunk-OWKNSIXL.js → chunk-JAKRY74O.js} +470 -83
- package/{chunk-VS276URX.js → chunk-JCQ3WCQ3.js} +4 -2
- package/chunk-JLZJL3WC.js +988 -0
- package/{chunk-OBSEKCVK.js → chunk-JPXACKSW.js} +219 -52
- package/{chunk-OTKSESZR.js → chunk-KDBDOXOM.js} +138 -54
- package/{chunk-VP3BINY7.js → chunk-KDDHQMSH.js} +31 -1
- package/{chunk-RBPUNSG5.js → chunk-KG27JIG4.js} +18 -108
- package/{chunk-4WVJLODK.js → chunk-KHYSFS3W.js} +88 -7
- package/{chunk-TCZ2VJZQ.js → chunk-KKIQAVDR.js} +9 -9
- package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
- package/chunk-KXOPLLFP.js +190 -0
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-HYLRQDEE.js → chunk-LLUBUHNT.js} +6 -6
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-RTHFJZ6M.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-TI2EPRHE.js → chunk-MNFUKRRU.js} +3 -3
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-CNMY2XM6.js → chunk-O3A2CHAL.js} +6 -6
- package/{chunk-TSPMLCWI.js → chunk-OB4FBZXJ.js} +5 -5
- package/{chunk-LYD6C7OU.js → chunk-OJSJJKHF.js} +6 -6
- package/{chunk-M4SFKP5L.js → chunk-OKAXQFON.js} +3 -3
- package/{chunk-CD3RU7XL.js → chunk-OKH74FML.js} +121 -14
- package/{chunk-U2HBB7RS.js → chunk-OOV5JN25.js} +130 -30
- package/{chunk-ZH3KXFHS.js → chunk-OOVOAG4Q.js} +1 -1
- package/chunk-OQFOE4SJ.js +405 -0
- package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-SRCCSTIM.js → chunk-P4R5KXU7.js} +4 -4
- package/{chunk-FJ23FZXF.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-HSSBDZLD.js → chunk-PIVTQRX6.js} +43 -13
- package/{chunk-XFXFPUO7.js → chunk-PJL7OJRC.js} +13 -39
- package/{chunk-RRDRQOEC.js → chunk-PNLDLUMO.js} +276 -303
- package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
- package/{chunk-HHFGE2WF.js → chunk-QGFLVQ6E.js} +5 -5
- package/{chunk-EGHP7KOY.js → chunk-QONAOHVW.js} +38 -29
- package/chunk-R3FZHW4Q.js +103 -0
- package/{chunk-ZYKJBRZ3.js → chunk-R3MV2GII.js} +1 -47
- package/chunk-R72QWIFO.js +50 -0
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-ILHQ2AXT.js → chunk-RIWKZT7E.js} +36 -8
- package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
- package/{chunk-45CAVC35.js → chunk-S7H4KTMB.js} +2568 -337
- package/{chunk-OJ45MEEI.js → chunk-SA356NGW.js} +1 -1
- package/{chunk-F6Z6ZCUV.js → chunk-SCAC3NM5.js} +3 -3
- package/{chunk-YVFH2MFB.js → chunk-SLUN7W6S.js} +7 -7
- package/chunk-SQL7YNED.js +650 -0
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-HF7BLF3F.js → chunk-SSOR2EDT.js} +107 -104
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-3QIYD3VM.js → chunk-TUOHSUK5.js} +20068 -18402
- package/chunk-TYJCIA2O.js +835 -0
- package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
- package/{chunk-GAYNXB6T.js → chunk-U3BUWDUP.js} +1031 -2155
- package/{chunk-BP5ZJ6B4.js → chunk-U6QNVOR5.js} +1 -1
- package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
- package/chunk-UAF5VQCE.js +77 -0
- package/{chunk-TQEKUOTI.js → chunk-UFGUJ2IH.js} +12 -12
- package/{chunk-VMJVAJ6W.js → chunk-UP7KBWLE.js} +109 -33
- package/{chunk-2X7WFDT6.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-5YMA6DDZ.js → chunk-UZKBVQUX.js} +1 -1
- package/chunk-V5TI7HJH.js +133 -0
- package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
- package/{chunk-MNEZUL5S.js → chunk-VJFDG3ZG.js} +63 -94
- package/{chunk-G7IUT2V3.js → chunk-WC3J5SL2.js} +635 -350
- package/{chunk-HXB4VDGK.js → chunk-WD5547ZF.js} +33 -30
- package/chunk-WDWZPASX.js +29 -0
- package/{chunk-4ZGPHFLE.js → chunk-WS36XPJD.js} +2 -2
- package/{chunk-6QHKRARD.js → chunk-WSLL7VV4.js} +29 -5
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-MZG5CETE.js → chunk-Y2KWJTOZ.js} +4 -4
- package/{dialogUsageCommand-W2WCSGKF.js → chunk-Y2TCTNUD.js} +27 -20
- package/chunk-YJPK35HB.js +175 -0
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/{chunk-547ENH5T.js → chunk-YN23INFZ.js} +4 -4
- package/{chunk-4QYJPWHH.js → chunk-YXK3GJF5.js} +232 -10
- package/{chunk-MJI3UAXN.js → chunk-Z2OWAYMI.js} +77 -51
- package/{chunk-7Z6EW7AH.js → chunk-ZTHAJU3O.js} +106 -14
- package/{chunk-YFLVRVYK.js → chunk-ZYPXOQS2.js} +1 -1
- package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-BXHQ3PXP.js} +9 -9
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
- package/cliLocalAgentRecordReader-47PXMHPH.js +104 -0
- package/{commandRegistry-FVYPE2IN.js → commandRegistry-CTMPAQH2.js} +111 -162
- package/{contentThunks-GNFPG32S.js → contentThunks-CAHIIZO5.js} +38 -36
- package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-WDOI5VD7.js} +3 -3
- package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-M25XZSPD.js} +38 -36
- package/{createDialogAction-EVTOPY7A.js → createDialogAction-4SN7FKI7.js} +39 -37
- package/{createPageAction-2UYF2IDZ.js → createPageAction-N7QPDN3M.js} +43 -41
- package/{db-M7FU2GNK.js → db-VR74ADGC.js} +7 -2
- package/{dbSlice-XRUZOGSU.js → dbSlice-RWPSVHBC.js} +12 -11
- package/{deleteFile-6URDHYRB.js → deleteFile-ECU6FU5C.js} +15 -7
- package/{dialogCommands-6SZD4TYP.js → dialogCommands-BBHWCKDP.js} +69 -53
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-IASQGEMW.js} +11 -11
- package/{dialogSlice-5EQ2A6LY.js → dialogSlice-JI3J22RV.js} +39 -37
- package/dialogTraceCommand-EW2KK6A4.js +961 -0
- package/dialogUsageCommand-WJ3U6KZU.js +27 -0
- package/{docCreateCommands-25E6PGN3.js → docCreateCommands-QSX3X5U4.js} +57 -46
- package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-63JBG2HQ.js} +59 -48
- package/{docReadCommands-JY2E5XEN.js → docReadCommands-CQFKRQUI.js} +57 -46
- package/{docStore-OKKIKLT3.js → docStore-XLBKGGNM.js} +14 -13
- package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-534LUK25.js} +57 -46
- package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-LF5C4XSI.js → getPricing-5BLZRPTM.js} +4 -4
- package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-Q2VMEVOR.js} +127 -81
- package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-C57T7YPE.js} +127 -109
- package/index.js +23 -11
- package/{localDialogRead-CCOCVGAP.js → localDialogRead-BJJT3TF5.js} +1 -1
- package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-OALZPFZU.js} +134 -115
- package/localRuntimeAuthority-UF2DAQ3F.js +28 -0
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-ZJFGNHML.js} +1 -1
- package/{machineCommands-HSQHDHOT.js → machineCommands-N6IVWRZT.js} +262 -325
- package/machineWsRunDispatch-PDWYB33B.js +209 -0
- package/markdownToSlate-PXYAIBVL.js +8 -0
- package/mcpLocalAuthorizeCommand-KYI4EGF5.js +110 -0
- package/{memberThunks-7Y3OYSJQ.js → memberThunks-43B7UYC5.js} +21 -16
- package/{models-H5NNZRLH.js → models-ZX2BYIMB.js} +2 -2
- package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
- package/package.json +2 -1
- package/{projectArchive-FQO654Z3.js → projectArchive-TJNW5DLM.js} +46 -44
- package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-NTJUINI6.js} +36 -17
- package/{providerRegistry-ZI2KORJ7.js → providerRegistry-W45SLUV6.js} +6 -6
- package/{read-TYMBGEXO.js → read-KG6INYUT.js} +13 -7
- package/{readDocTool-SKQVHBLO.js → readDocTool-N3GA52JR.js} +1 -1
- package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-PJZJVGA5.js} +7486 -4492
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-EEVSOQOJ.js} +18 -17
- package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-3VC5TCDW.js} +107 -76
- package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
- package/{secretCommands-KZWBZIYS.js → secretCommands-KVVZS7A6.js} +3 -3
- package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-DNO5POHA.js} +15 -14
- package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-QABBEO4C.js} +18 -17
- package/{settingThunks-ZRGWVGZD.js → settingThunks-DVKG4X4S.js} +181 -66
- package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-ZMJH36AK.js} +4 -3
- package/{spaceCommands-5VNWMDBE.js → spaceCommands-AGGZXPY3.js} +235 -87
- package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-4GTLL2OF.js} +242 -169
- package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-KYWJSGOO.js} +16 -15
- package/{tableCommands-FTAOCBTX.js → tableCommands-EFA754RE.js} +7 -4
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
- package/{tools-M35PTIFB.js → tools-5AGPOPLW.js} +69 -65
- package/{tuiRestart-2IL37YIB.js → tuiRestart-77E7PL4R.js} +11 -10
- package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-HROLGN4F.js} +16 -15
- package/{updateCommands-CPATDG6J.js → updateCommands-GJGRS6JK.js} +3 -3
- package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-5OSEDGRK.js} +40 -38
- package/{usageCommand-2BF74MKF.js → usageCommand-WI6SQOPB.js} +2 -2
- package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
- package/webapi-QVV65DQF.js +2487 -0
- package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-VU5I4LKZ.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-P2SJVV3S.js} +2 -2
- package/agentRecordCommands-IZYUVHME.js +0 -177
- package/agentRunCommand-QM7ETUTX.js +0 -209
- package/chunk-2YGBI2XB.js +0 -30
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-5ZUOVCKT.js +0 -32
- package/chunk-62HXNQVV.js +0 -134
- package/chunk-FJSNBZXR.js +0 -142
- package/chunk-FPBJM2BW.js +0 -689
- package/chunk-JQZRSXS5.js +0 -90
- package/chunk-P2ZLUIW2.js +0 -795
- package/chunk-PPJYZRSQ.js +0 -160
- package/chunk-TUSTONB3.js +0 -81
- package/chunk-ZXF6D3I6.js +0 -359
- package/cliLocalAgentRecordReader-H3HYQRRR.js +0 -91
- package/lib-OT5OTXRU.js +0 -21046
- package/localRuntimeAuthority-IBJAT62G.js +0 -16
- package/machineWsRunDispatch-L6H7J66T.js +0 -192
- package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import {
|
|
2
|
+
applyMemoryInterpreterMutation
|
|
3
|
+
} from "./chunk-6RSNVJGO.js";
|
|
4
|
+
import {
|
|
5
|
+
getMemoryEntityVNext,
|
|
6
|
+
getMemoryEvidenceVNextStrict,
|
|
7
|
+
getMemoryStateVNext,
|
|
8
|
+
listMemoryStatesForEntityVNext
|
|
9
|
+
} from "./chunk-324FWHUA.js";
|
|
10
|
+
import {
|
|
11
|
+
normalizeTopicKey
|
|
12
|
+
} from "./chunk-MVOZ22RZ.js";
|
|
13
|
+
import {
|
|
14
|
+
sha256Hex
|
|
15
|
+
} from "./chunk-SR4FE5VD.js";
|
|
16
|
+
|
|
17
|
+
// packages/ai/memory/vnext/rememberExplicit.ts
|
|
18
|
+
async function rememberExplicitVNext(db, item) {
|
|
19
|
+
const ownerId = `${item.ownerType}:${encodeURIComponent(item.ownerId)}`;
|
|
20
|
+
const topicKey = normalizeTopicKey(item.topicKey);
|
|
21
|
+
if (!topicKey) {
|
|
22
|
+
const digest = sha256Hex(
|
|
23
|
+
JSON.stringify([
|
|
24
|
+
ownerId,
|
|
25
|
+
item.subjectType,
|
|
26
|
+
item.subjectId,
|
|
27
|
+
item.kind,
|
|
28
|
+
item.content
|
|
29
|
+
])
|
|
30
|
+
);
|
|
31
|
+
const entityId2 = `explicit-${digest}`;
|
|
32
|
+
const stateId = `explicit-${digest}`;
|
|
33
|
+
let saved2;
|
|
34
|
+
await applyMemoryInterpreterMutation(db, ownerId, async () => {
|
|
35
|
+
const existing = await getMemoryStateVNext(db, ownerId, stateId);
|
|
36
|
+
if (existing?.retiredAt)
|
|
37
|
+
throw new Error("Explicit memory conflicts with a retired state");
|
|
38
|
+
const entity = await getMemoryEntityVNext(db, ownerId, entityId2);
|
|
39
|
+
const createdAt = existing?.createdAt ?? item.createdAt;
|
|
40
|
+
const oldValue = existing?.value && typeof existing.value === "object" ? existing.value : {};
|
|
41
|
+
const confidence = Math.max(
|
|
42
|
+
Number(oldValue.confidence) || 0,
|
|
43
|
+
item.confidence ?? 0
|
|
44
|
+
);
|
|
45
|
+
const resident = oldValue.resident === true || item.resident === true;
|
|
46
|
+
const evidenceId = `explicit-${digest}-${sha256Hex(
|
|
47
|
+
JSON.stringify([
|
|
48
|
+
item.confidence,
|
|
49
|
+
item.sourceDialogId ?? null,
|
|
50
|
+
item.provenance ?? null
|
|
51
|
+
])
|
|
52
|
+
).slice(0, 24)}`;
|
|
53
|
+
const evidence = await getMemoryEvidenceVNextStrict(
|
|
54
|
+
db,
|
|
55
|
+
ownerId,
|
|
56
|
+
evidenceId
|
|
57
|
+
);
|
|
58
|
+
saved2 = {
|
|
59
|
+
...item,
|
|
60
|
+
id: `vnext-state-${stateId}`,
|
|
61
|
+
createdAt,
|
|
62
|
+
confidence,
|
|
63
|
+
...resident ? { resident: true } : {}
|
|
64
|
+
};
|
|
65
|
+
return {
|
|
66
|
+
action: existing ? "update" : "create",
|
|
67
|
+
reason: "Explicit memory save",
|
|
68
|
+
entities: entity ? [] : [
|
|
69
|
+
{
|
|
70
|
+
id: entityId2,
|
|
71
|
+
ownerId,
|
|
72
|
+
type: "concept",
|
|
73
|
+
name: item.content,
|
|
74
|
+
createdAt,
|
|
75
|
+
updatedAt: createdAt
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
evidence: evidence ? [] : [
|
|
79
|
+
{
|
|
80
|
+
id: evidenceId,
|
|
81
|
+
ownerId,
|
|
82
|
+
text: item.content,
|
|
83
|
+
confidence: item.confidence,
|
|
84
|
+
...item.provenance ? { provenance: item.provenance } : {},
|
|
85
|
+
sourceRef: item.sourceDialogId ? `dialog:${item.sourceDialogId}` : `explicit:${digest}`,
|
|
86
|
+
createdAt
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
states: [
|
|
90
|
+
{
|
|
91
|
+
id: stateId,
|
|
92
|
+
ownerId,
|
|
93
|
+
entityId: entityId2,
|
|
94
|
+
facet: "explicit-memory",
|
|
95
|
+
text: item.content,
|
|
96
|
+
value: {
|
|
97
|
+
...oldValue,
|
|
98
|
+
kind: item.kind,
|
|
99
|
+
subjectType: item.subjectType,
|
|
100
|
+
subjectId: item.subjectId,
|
|
101
|
+
confidence,
|
|
102
|
+
resident,
|
|
103
|
+
visibility: item.visibility,
|
|
104
|
+
tags: item.tags,
|
|
105
|
+
importance: item.importance,
|
|
106
|
+
patternKey: item.patternKey,
|
|
107
|
+
recurrenceEvidence: item.recurrenceEvidence,
|
|
108
|
+
provenance: item.provenance,
|
|
109
|
+
sourceKind: item.sourceKind,
|
|
110
|
+
sourceDialogId: item.sourceDialogId
|
|
111
|
+
},
|
|
112
|
+
evidenceIds: [
|
|
113
|
+
.../* @__PURE__ */ new Set([...existing?.evidenceIds ?? [], evidenceId])
|
|
114
|
+
],
|
|
115
|
+
createdAt,
|
|
116
|
+
updatedAt: item.createdAt
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
return saved2;
|
|
122
|
+
}
|
|
123
|
+
const topicDigest = sha256Hex(
|
|
124
|
+
JSON.stringify([
|
|
125
|
+
ownerId,
|
|
126
|
+
item.subjectType,
|
|
127
|
+
item.subjectId,
|
|
128
|
+
item.kind,
|
|
129
|
+
topicKey
|
|
130
|
+
])
|
|
131
|
+
);
|
|
132
|
+
const entityId = `explicit-topic-${topicDigest}`;
|
|
133
|
+
const contentDigest = sha256Hex(
|
|
134
|
+
JSON.stringify([
|
|
135
|
+
ownerId,
|
|
136
|
+
item.subjectType,
|
|
137
|
+
item.subjectId,
|
|
138
|
+
item.kind,
|
|
139
|
+
item.content
|
|
140
|
+
])
|
|
141
|
+
);
|
|
142
|
+
let saved;
|
|
143
|
+
await applyMemoryInterpreterMutation(db, ownerId, async () => {
|
|
144
|
+
const entity = await getMemoryEntityVNext(db, ownerId, entityId);
|
|
145
|
+
const entityStates = (await listMemoryStatesForEntityVNext(db, ownerId, entityId)).filter((state) => state.facet === "explicit-memory");
|
|
146
|
+
const activeStates = entityStates.filter((state) => !state.retiredAt);
|
|
147
|
+
const matchingCurrent = activeStates.find(
|
|
148
|
+
(state) => state.text === item.content
|
|
149
|
+
);
|
|
150
|
+
if (matchingCurrent) {
|
|
151
|
+
const stateId2 = matchingCurrent.id;
|
|
152
|
+
const createdAt2 = matchingCurrent.createdAt;
|
|
153
|
+
const oldValue = matchingCurrent.value && typeof matchingCurrent.value === "object" ? matchingCurrent.value : {};
|
|
154
|
+
const confidence2 = Math.max(
|
|
155
|
+
Number(oldValue.confidence) || 0,
|
|
156
|
+
item.confidence ?? 0
|
|
157
|
+
);
|
|
158
|
+
const resident2 = oldValue.resident === true || item.resident === true;
|
|
159
|
+
const existingSupersedes = Array.isArray(oldValue.supersedesStateIds) ? oldValue.supersedesStateIds.map(String) : void 0;
|
|
160
|
+
const evidenceId2 = `${stateId2}-${sha256Hex(
|
|
161
|
+
JSON.stringify([
|
|
162
|
+
item.confidence,
|
|
163
|
+
item.sourceDialogId ?? null,
|
|
164
|
+
item.provenance ?? null
|
|
165
|
+
])
|
|
166
|
+
).slice(0, 24)}`;
|
|
167
|
+
const evidence2 = await getMemoryEvidenceVNextStrict(
|
|
168
|
+
db,
|
|
169
|
+
ownerId,
|
|
170
|
+
evidenceId2
|
|
171
|
+
);
|
|
172
|
+
saved = {
|
|
173
|
+
...item,
|
|
174
|
+
topicKey,
|
|
175
|
+
...existingSupersedes?.length ? { supersedesStateIds: existingSupersedes } : {},
|
|
176
|
+
id: `vnext-state-${stateId2}`,
|
|
177
|
+
createdAt: createdAt2,
|
|
178
|
+
confidence: confidence2,
|
|
179
|
+
...resident2 ? { resident: true } : {}
|
|
180
|
+
};
|
|
181
|
+
return {
|
|
182
|
+
action: "update",
|
|
183
|
+
reason: "Explicit memory save (topicKey idempotent update)",
|
|
184
|
+
entities: entity ? [] : [
|
|
185
|
+
{
|
|
186
|
+
id: entityId,
|
|
187
|
+
ownerId,
|
|
188
|
+
type: "concept",
|
|
189
|
+
subtype: "explicit-topic",
|
|
190
|
+
name: topicKey,
|
|
191
|
+
createdAt: createdAt2,
|
|
192
|
+
updatedAt: createdAt2
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
evidence: evidence2 ? [] : [
|
|
196
|
+
{
|
|
197
|
+
id: evidenceId2,
|
|
198
|
+
ownerId,
|
|
199
|
+
text: item.content,
|
|
200
|
+
confidence: item.confidence,
|
|
201
|
+
...item.provenance ? { provenance: item.provenance } : {},
|
|
202
|
+
sourceRef: item.sourceDialogId ? `dialog:${item.sourceDialogId}` : `explicit:${topicDigest}`,
|
|
203
|
+
createdAt: item.createdAt
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
states: [
|
|
207
|
+
{
|
|
208
|
+
id: stateId2,
|
|
209
|
+
ownerId,
|
|
210
|
+
entityId,
|
|
211
|
+
facet: "explicit-memory",
|
|
212
|
+
text: item.content,
|
|
213
|
+
value: {
|
|
214
|
+
...oldValue,
|
|
215
|
+
kind: item.kind,
|
|
216
|
+
subjectType: item.subjectType,
|
|
217
|
+
subjectId: item.subjectId,
|
|
218
|
+
confidence: confidence2,
|
|
219
|
+
resident: resident2,
|
|
220
|
+
visibility: item.visibility,
|
|
221
|
+
tags: item.tags,
|
|
222
|
+
importance: item.importance,
|
|
223
|
+
patternKey: item.patternKey,
|
|
224
|
+
recurrenceEvidence: item.recurrenceEvidence,
|
|
225
|
+
provenance: item.provenance,
|
|
226
|
+
sourceKind: item.sourceKind,
|
|
227
|
+
sourceDialogId: item.sourceDialogId,
|
|
228
|
+
topicKey,
|
|
229
|
+
...existingSupersedes?.length ? { supersedesStateIds: existingSupersedes } : {}
|
|
230
|
+
},
|
|
231
|
+
evidenceIds: [
|
|
232
|
+
.../* @__PURE__ */ new Set([...matchingCurrent.evidenceIds, evidenceId2])
|
|
233
|
+
],
|
|
234
|
+
createdAt: createdAt2,
|
|
235
|
+
updatedAt: item.createdAt
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
const supersededIds = activeStates.map((state) => state.id);
|
|
241
|
+
const isSupersede = supersededIds.length > 0;
|
|
242
|
+
const version = entityStates.length + 1;
|
|
243
|
+
const stateId = `explicit-topic-${topicDigest.slice(0, 24)}-v${version}-${contentDigest.slice(0, 16)}`;
|
|
244
|
+
const createdAt = item.createdAt;
|
|
245
|
+
const confidence = item.confidence ?? 0;
|
|
246
|
+
const resident = item.resident === true;
|
|
247
|
+
const evidenceId = `${stateId}-${sha256Hex(
|
|
248
|
+
JSON.stringify([
|
|
249
|
+
item.confidence,
|
|
250
|
+
item.sourceDialogId ?? null,
|
|
251
|
+
item.provenance ?? null
|
|
252
|
+
])
|
|
253
|
+
).slice(0, 24)}`;
|
|
254
|
+
const evidence = await getMemoryEvidenceVNextStrict(
|
|
255
|
+
db,
|
|
256
|
+
ownerId,
|
|
257
|
+
evidenceId
|
|
258
|
+
);
|
|
259
|
+
const relations = supersededIds.map(
|
|
260
|
+
(oldId, idx) => ({
|
|
261
|
+
id: `rel-supersedes-${stateId}-${idx}`,
|
|
262
|
+
ownerId,
|
|
263
|
+
from: stateId,
|
|
264
|
+
type: "supersedes",
|
|
265
|
+
to: oldId,
|
|
266
|
+
createdAt
|
|
267
|
+
})
|
|
268
|
+
);
|
|
269
|
+
saved = {
|
|
270
|
+
...item,
|
|
271
|
+
topicKey,
|
|
272
|
+
...isSupersede ? { supersedesStateIds: supersededIds } : {},
|
|
273
|
+
id: `vnext-state-${stateId}`,
|
|
274
|
+
createdAt,
|
|
275
|
+
confidence,
|
|
276
|
+
...resident ? { resident: true } : {}
|
|
277
|
+
};
|
|
278
|
+
return {
|
|
279
|
+
action: isSupersede ? "supersede" : "create",
|
|
280
|
+
reason: isSupersede ? "Explicit memory topicKey supersede" : "Explicit memory save (topicKey)",
|
|
281
|
+
entities: entity ? [] : [
|
|
282
|
+
{
|
|
283
|
+
id: entityId,
|
|
284
|
+
ownerId,
|
|
285
|
+
type: "concept",
|
|
286
|
+
subtype: "explicit-topic",
|
|
287
|
+
name: topicKey,
|
|
288
|
+
createdAt,
|
|
289
|
+
updatedAt: createdAt
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
evidence: evidence ? [] : [
|
|
293
|
+
{
|
|
294
|
+
id: evidenceId,
|
|
295
|
+
ownerId,
|
|
296
|
+
text: item.content,
|
|
297
|
+
confidence: item.confidence,
|
|
298
|
+
...item.provenance ? { provenance: item.provenance } : {},
|
|
299
|
+
sourceRef: item.sourceDialogId ? `dialog:${item.sourceDialogId}` : `explicit:${topicDigest}`,
|
|
300
|
+
createdAt
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
states: [
|
|
304
|
+
{
|
|
305
|
+
id: stateId,
|
|
306
|
+
ownerId,
|
|
307
|
+
entityId,
|
|
308
|
+
facet: "explicit-memory",
|
|
309
|
+
text: item.content,
|
|
310
|
+
value: {
|
|
311
|
+
kind: item.kind,
|
|
312
|
+
subjectType: item.subjectType,
|
|
313
|
+
subjectId: item.subjectId,
|
|
314
|
+
confidence,
|
|
315
|
+
resident,
|
|
316
|
+
visibility: item.visibility,
|
|
317
|
+
tags: item.tags,
|
|
318
|
+
importance: item.importance,
|
|
319
|
+
patternKey: item.patternKey,
|
|
320
|
+
recurrenceEvidence: item.recurrenceEvidence,
|
|
321
|
+
provenance: item.provenance,
|
|
322
|
+
sourceKind: item.sourceKind,
|
|
323
|
+
sourceDialogId: item.sourceDialogId,
|
|
324
|
+
topicKey,
|
|
325
|
+
...isSupersede ? { supersedesStateIds: supersededIds } : {}
|
|
326
|
+
},
|
|
327
|
+
evidenceIds: [evidenceId],
|
|
328
|
+
createdAt,
|
|
329
|
+
updatedAt: item.createdAt
|
|
330
|
+
}
|
|
331
|
+
],
|
|
332
|
+
...isSupersede ? { supersededStateIds: supersededIds, relations } : {}
|
|
333
|
+
};
|
|
334
|
+
});
|
|
335
|
+
return saved;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export {
|
|
339
|
+
rememberExplicitVNext
|
|
340
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
deriveCredentialGroup
|
|
3
|
-
} from "./chunk-RRDRQOEC.js";
|
|
4
1
|
import {
|
|
5
2
|
listUserRecordsFromServers,
|
|
6
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FZANZZ63.js";
|
|
8
5
|
import {
|
|
9
6
|
agentRecordHasConfiguredCredential
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UFGUJ2IH.js";
|
|
8
|
+
import {
|
|
9
|
+
deriveCredentialGroup
|
|
10
|
+
} from "./chunk-PNLDLUMO.js";
|
|
11
11
|
import {
|
|
12
12
|
isTombstoneRecord
|
|
13
13
|
} from "./chunk-BV3FLP2L.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAgentImageInputSupport
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BZLGPM5B.js";
|
|
4
4
|
import {
|
|
5
5
|
TOOL_HAD_IMAGES,
|
|
6
6
|
hadToolImages
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
isCompleteInstructionOutput,
|
|
10
10
|
sanitizeToolOutputText,
|
|
11
11
|
scrubSecrets
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VH7UO6E5.js";
|
|
13
13
|
import {
|
|
14
14
|
asTrimmedString
|
|
15
15
|
} from "./chunk-3EUW3WEO.js";
|
|
16
|
-
import {
|
|
17
|
-
isRecord
|
|
18
|
-
} from "./chunk-KUG52IAP.js";
|
|
19
16
|
import {
|
|
20
17
|
asOptionalFiniteNumber
|
|
21
18
|
} from "./chunk-WWC7I6TA.js";
|
|
19
|
+
import {
|
|
20
|
+
isRecord
|
|
21
|
+
} from "./chunk-KUG52IAP.js";
|
|
22
22
|
import {
|
|
23
23
|
asOptionalTrimmedString
|
|
24
24
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-R5GO3YZP.js";
|
|
8
8
|
import {
|
|
9
9
|
getCliLocale
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FEIVARWR.js";
|
|
11
11
|
import {
|
|
12
12
|
ANTIGRAVITY_AUTH_URL,
|
|
13
13
|
ANTIGRAVITY_CALLBACK_PATH,
|
|
@@ -21,19 +21,19 @@ import {
|
|
|
21
21
|
getAntigravityUserAgent,
|
|
22
22
|
normalizeAntigravityTokenPayload,
|
|
23
23
|
refreshAntigravityToken
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6SOWMEAY.js";
|
|
25
25
|
import {
|
|
26
26
|
toErrorMessage
|
|
27
27
|
} from "./chunk-HNMXYYJR.js";
|
|
28
28
|
import {
|
|
29
29
|
asTrimmedString
|
|
30
30
|
} from "./chunk-3EUW3WEO.js";
|
|
31
|
-
import {
|
|
32
|
-
isRecord
|
|
33
|
-
} from "./chunk-KUG52IAP.js";
|
|
34
31
|
import {
|
|
35
32
|
asOptionalFiniteNumber
|
|
36
33
|
} from "./chunk-WWC7I6TA.js";
|
|
34
|
+
import {
|
|
35
|
+
isRecord
|
|
36
|
+
} from "./chunk-KUG52IAP.js";
|
|
37
37
|
|
|
38
38
|
// packages/cli/tui/wtAmbiguousWidth.ts
|
|
39
39
|
import fs from "node:fs";
|
|
@@ -371,6 +371,11 @@ function stripOsc8Hyperlinks(text) {
|
|
|
371
371
|
function stripAnsi2(text) {
|
|
372
372
|
return text.replace(ANSI_ESCAPE_REGEX, "").replace(ALL_ANSI_ESCAPE_REGEX, "");
|
|
373
373
|
}
|
|
374
|
+
var OSC8_KEEP_SPLIT_REGEX = /(\x1b\]8;[^;\x07\x1b]*;[^\x07\x1b]*(?:\x07|\x1b\\))/g;
|
|
375
|
+
var OSC8_WRAPPER_TOKEN_REGEX = /^\x1b\]8;[^;\x07\x1b]*;([^\x07\x1b]*)(?:\x07|\x1b\\)$/;
|
|
376
|
+
function stripAnsiKeepingOsc8(text) {
|
|
377
|
+
return text.split(OSC8_KEEP_SPLIT_REGEX).map((part, index) => index % 2 === 1 ? part : stripAnsi2(part)).join("");
|
|
378
|
+
}
|
|
374
379
|
var SGR_SEQUENCE_REGEX = /^\x1b\[[0-9;]*m/;
|
|
375
380
|
var TRAILING_SGR_REGEX = /(?:\x1b\[[0-9;]*m)+$/;
|
|
376
381
|
function applyTerminalOutputToText(existing, chunk) {
|
|
@@ -631,7 +636,7 @@ function tokenizeAnsiLine(line) {
|
|
|
631
636
|
let index = 0;
|
|
632
637
|
while (index < line.length) {
|
|
633
638
|
if (line[index] === "\x1B") {
|
|
634
|
-
const osc = line.slice(index).match(/^\x1b\]8
|
|
639
|
+
const osc = line.slice(index).match(/^\x1b\]8;[^;\x07\x1b]*;[^\x07\x1b]*(?:\x07|\x1b\\)/);
|
|
635
640
|
if (osc) {
|
|
636
641
|
tokens.push({ kind: "sgr", value: osc[0], width: 0, charIndex: index });
|
|
637
642
|
index += osc[0].length;
|
|
@@ -680,6 +685,7 @@ function buildSourceMapping(rawLine, styledLine, prefixCharCount) {
|
|
|
680
685
|
while (contentStart < rawLine.length && rawLine[contentStart] === " ") contentStart++;
|
|
681
686
|
lineToParse = rawLine.slice(contentStart);
|
|
682
687
|
}
|
|
688
|
+
const visibleBody = stripAnsi2(styledLine.slice(prefixCharCount));
|
|
683
689
|
const INLINE_RE = /(\[([^\]]+)\]\(([^)\s]+)\)|`([^`]+)`|\*\*(.+?)\*\*|(?<!\*)\*([^*]+?)\*(?!\*)|~~([^~]+?)~~)/g;
|
|
684
690
|
const mapping = [];
|
|
685
691
|
let lastIdx = 0;
|
|
@@ -693,18 +699,37 @@ function buildSourceMapping(rawLine, styledLine, prefixCharCount) {
|
|
|
693
699
|
if (match[2] !== void 0 && match[3] !== void 0) {
|
|
694
700
|
const linkText = match[2];
|
|
695
701
|
const linkUrl = match[3];
|
|
702
|
+
const cleanText = linkText.replace(/[\u0000-\u001f\u007f]/g, "");
|
|
703
|
+
const cleanUrl = linkUrl.replace(/[\u0000-\u001f\u007f]/g, "");
|
|
704
|
+
const cursor = mapping.length;
|
|
696
705
|
const textOffset = contentStart + match.index + 1;
|
|
697
|
-
for (let c = 0; c <
|
|
706
|
+
for (let c = 0; c < cleanText.length; c++) {
|
|
698
707
|
mapping.push(textOffset + c);
|
|
699
708
|
}
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
709
|
+
if (visibleBody.startsWith(`${cleanText} \u2197`, cursor)) {
|
|
710
|
+
const closeParenOffset = contentStart + match.index + fullMatch.length - 1;
|
|
711
|
+
mapping.push(closeParenOffset);
|
|
712
|
+
mapping.push(closeParenOffset);
|
|
713
|
+
} else if (visibleBody.startsWith(`${cleanText} (${cleanUrl})`, cursor)) {
|
|
714
|
+
const parenOffset = textOffset + linkText.length;
|
|
715
|
+
mapping.push(parenOffset);
|
|
716
|
+
mapping.push(parenOffset + 1);
|
|
717
|
+
const urlOffset = parenOffset + 2;
|
|
718
|
+
for (let c = 0; c < cleanUrl.length; c++) {
|
|
719
|
+
mapping.push(urlOffset + c);
|
|
720
|
+
}
|
|
721
|
+
mapping.push(urlOffset + linkUrl.length);
|
|
722
|
+
} else if (visibleBody.startsWith(cleanText, cursor) && cleanText.trim() === cleanUrl.trim()) {
|
|
723
|
+
} else if (linkText.trim() !== linkUrl.trim()) {
|
|
724
|
+
const parenOffset = textOffset + linkText.length;
|
|
725
|
+
mapping.push(parenOffset);
|
|
726
|
+
mapping.push(parenOffset + 1);
|
|
727
|
+
const urlOffset = parenOffset + 2;
|
|
728
|
+
for (let c = 0; c < linkUrl.length; c++) {
|
|
729
|
+
mapping.push(urlOffset + c);
|
|
730
|
+
}
|
|
731
|
+
mapping.push(urlOffset + linkUrl.length);
|
|
706
732
|
}
|
|
707
|
-
mapping.push(urlOffset + linkUrl.length);
|
|
708
733
|
} else if (match[4] !== void 0) {
|
|
709
734
|
const codeText = match[4];
|
|
710
735
|
const codeOffset = contentStart + match.index + 1;
|
|
@@ -753,12 +778,19 @@ function wrapTranscriptLineWithLayout(line, columns, hangingIndent = "", lineSou
|
|
|
753
778
|
const tokens = tokenizeAnsiLine(line);
|
|
754
779
|
const rows = [];
|
|
755
780
|
let activeStyles = [];
|
|
781
|
+
let activeOsc8 = null;
|
|
756
782
|
const applyStyleToken = (value) => {
|
|
783
|
+
const oscMatch = OSC8_WRAPPER_TOKEN_REGEX.exec(value);
|
|
784
|
+
if (oscMatch) {
|
|
785
|
+
activeOsc8 = (oscMatch[1] ?? "") === "" ? null : value;
|
|
786
|
+
return false;
|
|
787
|
+
}
|
|
757
788
|
if (SGR_RESET_REGEX.test(value)) {
|
|
758
789
|
activeStyles = [];
|
|
759
790
|
} else {
|
|
760
791
|
activeStyles.push(value);
|
|
761
792
|
}
|
|
793
|
+
return true;
|
|
762
794
|
};
|
|
763
795
|
let lastContentTokenIndex = -1;
|
|
764
796
|
for (let i = tokens.length - 1; i >= 0; i -= 1) {
|
|
@@ -791,6 +823,7 @@ function wrapTranscriptLineWithLayout(line, columns, hangingIndent = "", lineSou
|
|
|
791
823
|
while (start < tokens.length) {
|
|
792
824
|
if (start > lastContentTokenIndex && rows.length > 0) break;
|
|
793
825
|
const openingStyles = [...activeStyles];
|
|
826
|
+
const openingOsc8 = activeOsc8;
|
|
794
827
|
const isContinuation = rows.length > 0;
|
|
795
828
|
const currentPrefixWidth = isContinuation ? visibleWidth(hangingIndent) : prefixWidth;
|
|
796
829
|
const indentWidth = isContinuation ? visibleWidth(hangingIndent) : 0;
|
|
@@ -852,13 +885,15 @@ function wrapTranscriptLineWithLayout(line, columns, hangingIndent = "", lineSou
|
|
|
852
885
|
const token = tokens[i];
|
|
853
886
|
segment += token.value;
|
|
854
887
|
if (token.kind === "sgr") {
|
|
855
|
-
|
|
856
|
-
|
|
888
|
+
if (applyStyleToken(token.value)) {
|
|
889
|
+
sawStyle = true;
|
|
890
|
+
}
|
|
857
891
|
}
|
|
858
892
|
}
|
|
859
|
-
const prefix = openingStyles.join("")
|
|
893
|
+
const prefix = `${openingOsc8 ?? ""}${openingStyles.join("")}`;
|
|
860
894
|
const needsReset = (sawStyle || activeStyles.length > 0) && !segment.endsWith("\x1B[0m");
|
|
861
|
-
const
|
|
895
|
+
const needsOscClose = activeOsc8 !== null && !/\x1b\]8;[^;\x07\x1b]*;(?:\x07|\x1b\\)$/.test(segment);
|
|
896
|
+
const lineContent = `${prefix}${segment}${needsReset ? "\x1B[0m" : ""}${needsOscClose ? "\x1B]8;;\x1B\\" : ""}`;
|
|
862
897
|
const rowRendered = isContinuation && hangingIndent.length > 0 ? `${hangingIndent}${lineContent}` : lineContent;
|
|
863
898
|
let segSourceStart = lineSourceStart;
|
|
864
899
|
let segSourceEnd = lineSourceStart;
|
|
@@ -2410,7 +2445,9 @@ var cursorRefresh = refreshCursorToken;
|
|
|
2410
2445
|
export {
|
|
2411
2446
|
ANSI_ESCAPE_REGEX,
|
|
2412
2447
|
stripAnsi2 as stripAnsi,
|
|
2448
|
+
stripAnsiKeepingOsc8,
|
|
2413
2449
|
applyTerminalOutputToText,
|
|
2450
|
+
resolveAmbiguousWidth,
|
|
2414
2451
|
resolveBoxCharset,
|
|
2415
2452
|
boxGlyphs,
|
|
2416
2453
|
displayWidth,
|