nolo-cli 0.259.0-alpha.1 → 0.260.0-alpha.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 +1 -1
- package/{_executeModel-MTM4BJK3.js → _executeModel-EO6JFCOF.js} +97 -83
- package/accountResolver-NGICIMEE.js +1 -1
- package/{action-C6IQAKN4.js → action-WIA56QT4.js} +12 -10
- package/{addContentAction-53364YDW.js → addContentAction-OCMWZLYG.js} +14 -13
- package/{addDialogAgentAction-U5DD5EN5.js → addDialogAgentAction-ER2NZ7BC.js} +20 -24
- package/{agentDeleteCommand-53NN3VSK.js → agentDeleteCommand-KSXSNPAU.js} +184 -146
- package/{agentEmailCommands-KOGGIT6I.js → agentEmailCommands-NXRWS7NS.js} +142 -126
- package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-D2S7LCTU.js} +8 -5
- package/{agentListCommands-62UYUQDI.js → agentListCommands-PFXGZZ3Y.js} +87 -68
- package/{agentMachineCommands-W6TNJXEA.js → agentMachineCommands-2Q55CSL4.js} +68 -59
- package/{agentProviderCommands-QLTABYR7.js → agentProviderCommands-EUNS7Y2Z.js} +10 -7
- package/{agentPullCommand-2EYJ5ENC.js → agentPullCommand-S2VMPSWL.js} +9 -6
- package/agentRecordCommands-FUFI526H.js +210 -0
- package/agentRun-ZNMUPDHF.js +250 -0
- package/agentRunCommand-ISVQ2UYC.js +248 -0
- package/{agentRunControl-LXMADX3N.js → agentRunControl-NEK44LDM.js} +19 -12
- package/{agentRuntimeLocal-YGNJMQW3.js → agentRuntimeLocal-SST4EPLT.js} +62 -49
- package/{agentSlice-3HHYUQLM.js → agentSlice-4ZJJJN4M.js} +15 -18
- package/appConfigCommands-MPHS6FHD.js +417 -0
- package/{appDeleteCommands-5COJ6CSG.js → appDeleteCommands-W26WGENW.js} +68 -58
- package/{appDeployCommands-3JPAT3XO.js → appDeployCommands-ER7IOF5E.js} +74 -59
- package/{appDeployStatusCommands-RHZKF3G4.js → appDeployStatusCommands-VKLL3A77.js} +68 -58
- package/{appGetCommands-73DXOAQW.js → appGetCommands-P6GXJNUD.js} +74 -58
- package/{appListCommands-HD5LOQ3G.js → appListCommands-ACA2IZZM.js} +74 -58
- package/appMigrateCommands-OGF4E2W6.js +230 -0
- package/appSourceCommands-GAHVBRUM.js +279 -0
- package/{authCommand-V6EOMZX6.js → authCommand-PXE7NZTQ.js} +26 -40
- package/{authCommands-T5FODCEG.js → authCommands-AZPYXTUB.js} +20 -17
- package/{builtinSkillRegistry-EDHD2UHU.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
- package/{chromeOpsCommands-3SSTDFRF.js → chromeOpsCommands-7UKKUOBU.js} +68 -18
- package/{chunk-KLMBM6P6.js → chunk-2CKFROQS.js} +2454 -1115
- package/{chunk-MJBLXJMP.js → chunk-2I4R6ZRV.js} +12 -9
- package/{chunk-FXEPZKNJ.js → chunk-2MIZHEND.js} +506 -64
- package/{chunk-TLE77UJ5.js → chunk-2OROOEOQ.js} +0 -1
- package/{chunk-6RSNVJGO.js → chunk-2ZBPWX7N.js} +4 -4
- package/chunk-35JIFLIG.js +30 -0
- package/{chunk-ZYPXOQS2.js → chunk-3EPED3UO.js} +1 -1
- package/{chunk-DNNPARJK.js → chunk-3QMN3T6L.js} +50 -37
- package/{chunk-DMPZMYH4.js → chunk-3R4AYHJR.js} +13 -1
- package/{chunk-HPDLPEUG.js → chunk-42JZNSAY.js} +267 -234
- package/{chunk-223KZUJ6.js → chunk-4HZCBA4Q.js} +18 -15
- package/{chunk-C5A54QS7.js → chunk-4INJGWE3.js} +18 -5
- package/chunk-4IVMDQBA.js +261 -0
- package/chunk-4Y6CZ2N4.js +82 -0
- package/{chunk-OKAXQFON.js → chunk-52BNL6GP.js} +4 -4
- package/{chunk-KZ4A7EIV.js → chunk-56OAS5RZ.js} +1 -1
- package/{chunk-QGFLVQ6E.js → chunk-6KUTNAPU.js} +4 -14
- package/{chunk-MNFUKRRU.js → chunk-6XAAKRJB.js} +7 -7
- package/{chunk-P27E22MA.js → chunk-6Z6DGDPI.js} +1 -1
- package/chunk-72VWN4VK.js +51 -0
- package/{chunk-L4XST72F.js → chunk-75FZ2Z7C.js} +16027 -17392
- package/{chunk-ADYWV732.js → chunk-76B6YUQS.js} +264 -177
- package/{chunk-MXA54TQM.js → chunk-76K4GTY5.js} +1 -1
- package/{chunk-VNHZJEQN.js → chunk-7HUCUD2I.js} +3 -3
- package/chunk-7LR2IFUH.js +100 -0
- package/{chunk-S73EPYNC.js → chunk-7LS5ATRP.js} +20 -6
- package/{chunk-Y2TCTNUD.js → chunk-7QO6YSA4.js} +4 -4
- package/{chunk-DBJODIZ6.js → chunk-7RYH7YIY.js} +19 -27
- package/{chunk-KHYSFS3W.js → chunk-A454UXB6.js} +148 -73
- package/chunk-AMNZPQCY.js +635 -0
- package/chunk-AMTF6FJD.js +356 -0
- package/{chunk-4MXYCQBS.js → chunk-AQNWWJLH.js} +2 -56
- package/{chunk-WSLL7VV4.js → chunk-B4NA5UJR.js} +9 -9
- package/{chunk-LHCGKAFO.js → chunk-BKP325XS.js} +184 -112
- package/{chunk-PENRYZ4D.js → chunk-BPB3T5EU.js} +4 -7
- package/{chunk-46FETNLF.js → chunk-BTIFQBYW.js} +7 -6
- package/{chunk-2JHGUL5K.js → chunk-BVYHE6QD.js} +2 -2
- package/{chunk-KXOPLLFP.js → chunk-CA7LGAHV.js} +69 -9
- package/{chunk-2FZVXOFX.js → chunk-CEIWXKHP.js} +112 -200
- package/{chunk-AIFQKNPP.js → chunk-CL33RFD7.js} +1 -1
- package/{chunk-MPGR4ZNR.js → chunk-CRGPRAJ4.js} +46 -42
- package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
- package/{chunk-R3TUHCSJ.js → chunk-CZHIOBBK.js} +8 -3
- package/chunk-D3ONA3FP.js +762 -0
- package/chunk-D3SAQ6T7.js +1697 -0
- package/{chunk-PIVTQRX6.js → chunk-DDKA6V6X.js} +111 -12
- package/{chunk-KQHEGELM.js → chunk-DEAII55O.js} +16 -6
- package/{chunk-J55F3IEZ.js → chunk-DKJQEFNG.js} +1 -1
- package/chunk-DLXL4NSL.js +1179 -0
- package/{chunk-EJQE5HB7.js → chunk-DSBRIUX5.js} +4 -2
- package/{chunk-XRGBJHZX.js → chunk-E36V7MPY.js} +9 -5
- package/{chunk-4YPH5KRA.js → chunk-EDKMRDET.js} +1 -1
- package/chunk-EJHLDJWZ.js +58 -0
- package/{chunk-6B2OBX5B.js → chunk-EMFZXJTN.js} +15 -47
- package/chunk-ER6NTALN.js +34 -0
- package/chunk-EUHMI5KG.js +101 -0
- package/{chunk-YQLAFJRQ.js → chunk-FBNVJ2TO.js} +1 -1
- package/{chunk-Q2EERN52.js → chunk-FF5ZRKW7.js} +12 -7
- package/{chunk-YFEK7ACQ.js → chunk-FGD4NMTP.js} +4 -4
- package/{chunk-6XIE5ZGI.js → chunk-FGFJUFPS.js} +5 -6
- package/chunk-FI4DPLR7.js +902 -0
- package/chunk-FKVLQNGJ.js +25 -0
- package/{chunk-JCQ3WCQ3.js → chunk-FOC4TORM.js} +69 -3
- package/{chunk-JPXACKSW.js → chunk-G22P2J7O.js} +30 -81
- package/{chunk-7WHCIA5V.js → chunk-G5IAIGGD.js} +3 -8
- package/{chunk-5BIDJVNX.js → chunk-G5JGA5YM.js} +180 -31
- package/{chunk-57V4PADY.js → chunk-GMBWWBSJ.js} +781 -449
- package/{chunk-WS36XPJD.js → chunk-GYFKKTDI.js} +82 -6
- package/{chunk-KT7S7ANZ.js → chunk-GZ4I5EMM.js} +9 -9
- package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
- package/chunk-HJTI7RZV.js +94 -0
- package/{chunk-QXTEEEIN.js → chunk-HPIY372N.js} +7 -7
- package/{chunk-Q2MPKE4B.js → chunk-HVRG27HI.js} +76 -26
- package/{chunk-HDKMVYNJ.js → chunk-I3NWAILT.js} +6 -4
- package/{chunk-JZO7KUF3.js → chunk-IM7HCFB4.js} +313 -275
- package/{chunk-UWWOWTW2.js → chunk-INN2PBW7.js} +1 -1
- package/chunk-IV6VUVLJ.js +88 -0
- package/chunk-J42X32PV.js +472 -0
- package/{chunk-UA3QTA2S.js → chunk-JHQNWV2C.js} +4441 -2569
- package/{chunk-R7XWZDOH.js → chunk-JUMQJSQF.js} +1423 -282
- package/{chunk-BIDSIRTS.js → chunk-JUNYPVL6.js} +10 -16
- package/chunk-JVEKCQAP.js +222 -0
- package/{chunk-KVMLM5VD.js → chunk-KAHYBAEN.js} +211 -472
- package/chunk-KDDXC2IH.js +148 -0
- package/chunk-KGKTN2NX.js +25 -0
- package/chunk-KGWE224L.js +246 -0
- package/chunk-L3UFGEDU.js +17157 -0
- package/{chunk-CBIGMWMI.js → chunk-LHJB4BXJ.js} +1 -1
- package/{chunk-7OVOZRZF.js → chunk-LIH7WSX5.js} +23 -379
- package/chunk-LJOPY4TL.js +443 -0
- package/{chunk-TRRXYFTR.js → chunk-LOFRSJX2.js} +1 -0
- package/{chunk-SQL7YNED.js → chunk-LPXBBC32.js} +71 -5
- package/chunk-LXP53WGF.js +168 -0
- package/chunk-MDAYRIP7.js +1889 -0
- package/chunk-MRACVEPZ.js +7 -0
- package/chunk-NHLLXINQ.js +8 -0
- package/{chunk-FP37ELBT.js → chunk-NTBTVKKB.js} +17 -25
- package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
- package/{chunk-2C5VN7NH.js → chunk-P4XAHM4B.js} +1 -1
- package/chunk-PL5RKESU.js +40 -0
- package/{chunk-MHKPUGPD.js → chunk-PQ3QZMJK.js} +20 -4
- package/chunk-Q5FJJ6XI.js +103 -0
- package/{createAgentAutomationAction-GRZ6XY7Q.js → chunk-QKM55LP2.js} +3 -160
- package/{chunk-6YX2RAQN.js → chunk-QZCLCAYC.js} +89 -164
- package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
- package/{chunk-JLZJL3WC.js → chunk-RDZ5OIAT.js} +370 -39
- package/{chunk-5RGU3J7P.js → chunk-REAE2SZK.js} +0 -1
- package/chunk-RF576RYE.js +117 -0
- package/chunk-RI7SXDJW.js +1317 -0
- package/{chunk-FEIVARWR.js → chunk-RIOAPUGV.js} +238 -25
- package/{chunk-2CT2J3O6.js → chunk-RL6H2A2Z.js} +2493 -4055
- package/{chunk-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
- package/{chunk-J7JRCOIW.js → chunk-RWXHGPWJ.js} +1 -1
- package/chunk-S7BF2OGX.js +432 -0
- package/{chunk-6VEO7Z3Y.js → chunk-SD4MBKZ7.js} +6 -6
- package/{chunk-KWNVPY6M.js → chunk-SGEBRBF3.js} +7 -4
- package/{chunk-6SOWMEAY.js → chunk-SR57FDTX.js} +2 -258
- package/{chunk-CEKRIR22.js → chunk-SU4NCTW4.js} +1 -1
- package/{chunk-Y2GWUBNS.js → chunk-SX6PDLBZ.js} +279 -149
- package/{chunk-XNNBXUEM.js → chunk-T4WU747C.js} +5 -5
- package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
- package/{chunk-QIGQFON2.js → chunk-TXMFSGRY.js} +1 -1
- package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
- package/{chunk-NCFKHYDM.js → chunk-UOLGGEEC.js} +774 -119
- package/{chunk-4EACJPZI.js → chunk-USFG4EWQ.js} +51 -42
- package/{chunk-LLUBUHNT.js → chunk-UYZOBSSO.js} +5 -9
- package/{chunk-XPETQ4MR.js → chunk-VDC3BW24.js} +24 -10
- package/chunk-VH356OQ3.js +425 -0
- package/{chunk-U6QNVOR5.js → chunk-VKM7DOYB.js} +130 -6
- package/{chunk-CJOOF4L5.js → chunk-VPAO5WQX.js} +17 -14
- package/{chunk-OYUMJMC5.js → chunk-W2RQYNPI.js} +5 -0
- package/{chunk-6BMTKYAO.js → chunk-W2Z5E2R7.js} +126 -698
- package/{chunk-4ZCTKB27.js → chunk-W5GKF5ZW.js} +1 -0
- package/{chunk-NUHQO3RB.js → chunk-WIVVNJUS.js} +1 -1
- package/chunk-WLJNHFEB.js +1710 -0
- package/chunk-WMBJDXMY.js +408 -0
- package/chunk-WSQLCWLQ.js +201 -0
- package/{chunk-YN23INFZ.js → chunk-WXD6Y7DW.js} +23 -2
- package/{chunk-OOVOAG4Q.js → chunk-WY6DMHMG.js} +1 -1
- package/{chunk-6K32PBRY.js → chunk-XJW6SLBZ.js} +3 -3
- package/{chunk-7BIJFGKS.js → chunk-XQFDCRG3.js} +105 -51
- package/chunk-XT6C2QZW.js +46 -0
- package/{chunk-5YS6QHGT.js → chunk-Y7THFNVJ.js} +9 -9
- package/{chunk-ZEZC7IIM.js → chunk-YFSM2366.js} +35 -35
- package/{chunk-RD3QLZQV.js → chunk-YM5XULB2.js} +324 -2
- package/{chunk-FZENZCIA.js → chunk-YNP3ITPU.js} +19 -12
- package/{chunk-U35UUM5K.js → chunk-YOUSQIIK.js} +1 -1
- package/{chunk-RIWKZT7E.js → chunk-YRPIUIEQ.js} +11 -9
- package/{chunk-IYLUK67R.js → chunk-YU235GGN.js} +25 -8
- package/chunk-YWEZSBLL.js +790 -0
- package/chunk-Z3KTXWWB.js +76 -0
- package/{chunk-YLAHYLDQ.js → chunk-ZC3CMUKU.js} +2 -89
- package/chunk-ZD7OULYZ.js +368 -0
- package/{chunk-5P3PPQVP.js → chunk-ZQAADXSF.js} +1 -1
- package/{chunk-HQUGB2HM.js → chunk-ZTCMXPIS.js} +62 -50
- package/{cliAgentConfigHelpers-BXHQ3PXP.js → cliAgentConfigHelpers-KMXS7JP5.js} +20 -14
- package/{cliAuthorityBrokerClient-TFNXJLXL.js → cliAuthorityBrokerClient-3SKOA7OZ.js} +3 -1
- package/cliAuthorityBrokerProcess-DCCUT4YQ.js +34 -0
- package/{cliEnvHelpers-CNMP3RDX.js → cliEnvHelpers-YDGDHIEE.js} +5 -2
- package/{cliExecutor-K6FDZTQ2.js → cliExecutor-Z62UBJ5S.js} +12 -6
- package/cliLocalAgentRecordReader-X2YHEBWI.js +113 -0
- package/cloudAutomationCommands-C6Q3BFRB.js +310 -0
- package/{commandRegistry-IFYQLPGM.js → commandRegistry-TYYYTW5E.js} +260 -121
- package/{contentThunks-QCFCD2X3.js → contentThunks-E6BJ5YSX.js} +45 -43
- package/{cooldownCommands-WDOI5VD7.js → cooldownCommands-FPAFS7XG.js} +1 -1
- package/createAgentAutomationAction-L3NLCIIW.js +172 -0
- package/{createDialogAction-ZAJERW62.js → createDialogAction-QSWKRPWQ.js} +46 -42
- package/{createPageAction-QCVBMP4C.js → createPageAction-ZVVUT4CZ.js} +49 -45
- package/{db-VR74ADGC.js → db-KTQ3LL2Q.js} +3 -3
- package/{dbSlice-RWPSVHBC.js → dbSlice-SEVKNA7A.js} +21 -16
- package/deleteDbKey-43MTK2DI.js +86 -0
- package/{dialogCommands-4IEQUALS.js → dialogCommands-UVMTIFSA.js} +80 -66
- package/{dialogMessageRecord-OAV77LT7.js → dialogMessageRecord-2HJTEXQX.js} +1 -1
- package/{dialogNotifyCommand-IASQGEMW.js → dialogNotifyCommand-LMWF7EQI.js} +22 -14
- package/dialogPortabilityCommands-PAMLEBST.js +3036 -0
- package/{dialogSlice-XFYID6KE.js → dialogSlice-VHPXENDZ.js} +43 -42
- package/{dialogTraceCommand-Y67NRFCV.js → dialogTraceCommand-SO2WKAXW.js} +83 -69
- package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-EUO6JXTD.js} +6 -3
- package/{docCreateCommands-QLRIWRQE.js → docCreateCommands-H4RLIUNX.js} +68 -59
- package/{docDeleteCommands-XPRYA532.js → docDeleteCommands-OVAKCBMT.js} +68 -59
- package/{docReadCommands-EXQI7ETH.js → docReadCommands-KFISIUVA.js} +67 -58
- package/{docStore-MWFUKZL2.js → docStore-X7BEA735.js} +16 -17
- package/{docUpdateCommands-EFBFQV77.js → docUpdateCommands-VOEER36L.js} +68 -59
- package/{ebookDownloaderAgentCommand-DYSKF5ZY.js → ebookDownloaderAgentCommand-2DHPGEOQ.js} +14 -17
- package/{fetchMessages-TQEUZD7H.js → fetchMessages-RGPIYEPZ.js} +2 -2
- package/{getPricing-5BLZRPTM.js → getPricing-BK6CUBAE.js} +8 -4
- package/{handleSendMessageAction-GG3TR62X.js → handleSendMessageAction-GQ2KKOET.js} +265 -119
- package/{hostCredentialCreate-26S6DDJ5.js → hostCredentialCreate-PJAIKZQP.js} +138 -122
- package/index.js +35 -21
- package/{keys-RWF7UCB4.js → keys-FXEGMKSG.js} +2 -2
- package/localAutomationCommands-UU66LOWB.js +198 -0
- package/localAutomationRuntime-SW4R42SZ.js +60 -0
- package/{localDialogRead-BJJT3TF5.js → localDialogRead-W2EVXISA.js} +2 -2
- package/{localRuntimeAdapter-VREWZWPC.js → localRuntimeAdapter-WRBLXFUZ.js} +136 -119
- package/localRuntimeAuthority-3YDFZD3L.js +44 -0
- package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-CJWJK47G.js} +1 -1
- package/{machineCommands-CL5XK5UC.js → machineCommands-JFYED66N.js} +251 -357
- package/{machineInfo-LWHTEBHJ.js → machineInfo-BJIU3WQ5.js} +4 -2
- package/machineWsRunDispatch-CZUV2FXE.js +227 -0
- package/{mcpLocalAuthorizeCommand-RBXJDE6J.js → mcpLocalAuthorizeCommand-HLU72QME.js} +40 -22
- package/mcpLocalManageCommands-OHHU6F5C.js +212 -0
- package/{memberThunks-43B7UYC5.js → memberThunks-FJW4GPM5.js} +102 -22
- package/{memoryCommands-BC6REPQB.js → memoryCommands-2RLHDMU2.js} +25 -34
- package/{models-ZX2BYIMB.js → models-TOXYINNM.js} +3 -2
- package/{offlineMarxistsAgentCommand-XVXUE6G5.js → offlineMarxistsAgentCommand-WZBJBCPZ.js} +16 -22
- package/package.json +3 -3
- package/parityCommands-7EWR34P3.js +613 -0
- package/{projectArchive-OC63TWTD.js → projectArchive-JIVRMXVV.js} +49 -45
- package/{providerPresetApply-NTJUINI6.js → providerPresetApply-IRJ56XIZ.js} +12 -16
- package/{providerRegistry-W45SLUV6.js → providerRegistry-26PAUYH2.js} +3 -13
- package/{read-KG6INYUT.js → read-6YR57D6V.js} +11 -10
- package/{readDocTool-N3GA52JR.js → readDocTool-NKOGL2MW.js} +5 -1
- package/{readlineWorkspace-2NO6D6IZ.js → readlineWorkspace-V26AN2FL.js} +926 -572
- package/{rememberExplicit-CPAPONSI.js → rememberExplicit-7KX4HXQC.js} +4 -4
- package/remove-BF33RCTH.js +32 -0
- package/{removeDialogAgentAction-EEVSOQOJ.js → removeDialogAgentAction-GWHBWF4W.js} +22 -26
- package/{runAgentClientLoop-U7V32UTD.js → runAgentClientLoop-EKD2EEEA.js} +117 -82
- package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-IALUR5BZ.js} +23 -16
- package/{secretCommands-KVVZS7A6.js → secretCommands-CSTQYB6T.js} +2 -2
- package/{setDialogExtraReferencesAction-DNO5POHA.js → setDialogExtraReferencesAction-RL6FGO7T.js} +16 -17
- package/{setPrimaryDialogAgentAction-QABBEO4C.js → setPrimaryDialogAgentAction-XJASBB3K.js} +23 -27
- package/{settingThunks-DVKG4X4S.js → settingThunks-ZT7ZYXXL.js} +170 -497
- package/{skillDiscovery-5GEGWJ6N.js → skillDiscovery-IUEZZG2B.js} +3 -3
- package/{spaceCommands-7QKXKBDQ.js → spaceCommands-65WQHVOI.js} +68 -57
- package/spacePruneCommand-PTMRUWYJ.js +233 -0
- package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
- package/{streamAgentChatTurn-UAGFOXNJ.js → streamAgentChatTurn-B5NICHZW.js} +225 -137
- package/{switchDialogAgentAction-KYWJSGOO.js → switchDialogAgentAction-X6DFOIAX.js} +19 -23
- package/{tableCommands-EFA754RE.js → tableCommands-6E77VD73.js} +28 -49
- package/{toolApiClient-N5PYW2R3.js → toolApiClient-GTTWEV6P.js} +15 -4
- package/{tools-2Q2LBDUC.js → tools-UMCPIQX6.js} +73 -63
- package/{tuiRestart-4QDWLHYZ.js → tuiRestart-O7UDLNQU.js} +20 -13
- package/tuiSummaryLlmCaller-7APIUIIV.js +52 -0
- package/{updateCommands-GJGRS6JK.js → updateCommands-DXDIAQFS.js} +12 -7
- package/{updateDialogTitleAction-GGNTTI5L.js → updateDialogTitleAction-HZLKWVKM.js} +57 -58
- package/{usageCommand-WI6SQOPB.js → usageCommand-WYLNBDHB.js} +6 -8
- package/{usageRebuildCommand-WQRLLZAT.js → usageRebuildCommand-AEUPY2PE.js} +11 -15
- package/{windowsSelfUpdate-C7LGVWYX.js → windowsSelfUpdate-SXSVXK4X.js} +2 -2
- package/workContext-ZAW6VXT7.js +18 -0
- package/workContextQueryProjection-CACY5VFE.js +23 -0
- package/{workloadLifecycle-DYX5ZMAT.js → workloadLifecycle-P2SJVV3S.js} +1 -1
- package/agentFavoriteCommands-7LOP3HUD.js +0 -186
- package/agentRecordCommands-TPE7NSZ6.js +0 -194
- package/agentRunCommand-DMVGBPLI.js +0 -232
- package/chunk-2MBTWINN.js +0 -89
- package/chunk-523DITKR.js +0 -32
- package/chunk-BUDVRYES.js +0 -2213
- package/chunk-BZMDWGQQ.js +0 -47
- package/chunk-GAHJLSDO.js +0 -107
- package/chunk-GYX6XTAI.js +0 -84
- package/chunk-HNUWUO75.js +0 -93
- package/chunk-HSBHS6KT.js +0 -33401
- package/chunk-KG27JIG4.js +0 -136
- package/chunk-OB4FBZXJ.js +0 -364
- package/chunk-OKH74FML.js +0 -3746
- package/chunk-OLZBQWZU.js +0 -6
- package/chunk-OOV5JN25.js +0 -1317
- package/chunk-OQFOE4SJ.js +0 -405
- package/chunk-PXYBUFDB.js +0 -53
- package/chunk-R3FZHW4Q.js +0 -103
- package/chunk-R3MV2GII.js +0 -106
- package/chunk-SCAC3NM5.js +0 -11751
- package/chunk-SR4FE5VD.js +0 -9
- package/chunk-SYTHYBMI.js +0 -3558
- package/chunk-UKZX3NHN.js +0 -48
- package/chunk-UVLYNWIE.js +0 -74
- package/chunk-VQX5JJNI.js +0 -861
- package/chunk-X4O7FJF5.js +0 -160
- package/chunk-YJPK35HB.js +0 -175
- package/chunk-YNIYE47Z.js +0 -105
- package/chunk-Z4PCXPUE.js +0 -127
- package/chunk-ZR5IVL4N.js +0 -862
- package/chunk-ZTHAJU3O.js +0 -2537
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +0 -22
- package/cliLocalAgentRecordReader-34UKRBLY.js +0 -104
- package/deleteFile-ECU6FU5C.js +0 -55
- package/localRuntimeAuthority-UF2DAQ3F.js +0 -28
- package/machineWsRunDispatch-TBVOYOAH.js +0 -209
- package/markdownToSlate-PXYAIBVL.js +0 -8
- package/tuiSummaryLlmCaller-HROLGN4F.js +0 -45
- package/webapi-QVV65DQF.js +0 -2487
- package/workContext-Y3ADAPZU.js +0 -14
- package/{chunk-USGHJSGO.js → chunk-GX2MFKF3.js} +3 -3
- package/{chunk-PHREU2KZ.js → chunk-WX266G2C.js} +0 -0
- package/{chunk-DXWGFL2Z.js → chunk-YY7IGJMN.js} +3 -3
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_react
|
|
3
|
+
} from "./chunk-YM5XULB2.js";
|
|
4
|
+
import {
|
|
5
|
+
DEFAULT_SYSTEM_AGENT_CAPABILITIES
|
|
6
|
+
} from "./chunk-EUGTFFO6.js";
|
|
7
|
+
import {
|
|
8
|
+
noloAgentId
|
|
9
|
+
} from "./chunk-ZQAADXSF.js";
|
|
10
|
+
import {
|
|
11
|
+
normalizeServerOrigin
|
|
12
|
+
} from "./chunk-CF7PE763.js";
|
|
13
|
+
import {
|
|
14
|
+
__toESM
|
|
15
|
+
} from "./chunk-U67V476Y.js";
|
|
16
|
+
|
|
17
|
+
// packages/ai/skills/userPromptSkillSlugs.ts
|
|
18
|
+
var RECOMMENDED_PROMPT_SKILL_SLUGS = ["ub-mode"];
|
|
19
|
+
var ALLOWED_PROMPT_SKILL_SLUGS = new Set(
|
|
20
|
+
RECOMMENDED_PROMPT_SKILL_SLUGS
|
|
21
|
+
);
|
|
22
|
+
function normalizeEnabledPromptSkills(value) {
|
|
23
|
+
if (!Array.isArray(value)) {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
const result = [];
|
|
27
|
+
const seen = /* @__PURE__ */ new Set();
|
|
28
|
+
for (const item of value) {
|
|
29
|
+
if (typeof item !== "string") {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
const trimmed = item.trim();
|
|
33
|
+
if (ALLOWED_PROMPT_SKILL_SLUGS.has(trimmed) && !seen.has(trimmed)) {
|
|
34
|
+
seen.add(trimmed);
|
|
35
|
+
result.push(trimmed);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// packages/ai/skills/userSkills.ts
|
|
42
|
+
var NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS = [
|
|
43
|
+
"response-presentation",
|
|
44
|
+
"external-copywriting"
|
|
45
|
+
];
|
|
46
|
+
function isAccountOnDemandWorkflowSkill(slug) {
|
|
47
|
+
return typeof slug === "string" && NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS.some((candidate) => candidate === slug.trim());
|
|
48
|
+
}
|
|
49
|
+
var SUPPORTED_USER_SKILL_SLUGS = [
|
|
50
|
+
"ub-mode",
|
|
51
|
+
"auto-review",
|
|
52
|
+
"code-style",
|
|
53
|
+
"worktree-isolation",
|
|
54
|
+
"systematic-investigation",
|
|
55
|
+
"show-me",
|
|
56
|
+
"caveman",
|
|
57
|
+
"secrets-manager",
|
|
58
|
+
"skill-creator",
|
|
59
|
+
"code-planning",
|
|
60
|
+
"coding",
|
|
61
|
+
"coding-review",
|
|
62
|
+
"android-adb",
|
|
63
|
+
"mihome-assistant",
|
|
64
|
+
"stock-quotes",
|
|
65
|
+
"unslop-ui",
|
|
66
|
+
...NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS
|
|
67
|
+
];
|
|
68
|
+
var SUPPORTED_USER_SKILL_SLUG_SET = new Set(
|
|
69
|
+
SUPPORTED_USER_SKILL_SLUGS
|
|
70
|
+
);
|
|
71
|
+
function normalizeEnabledSkills(value) {
|
|
72
|
+
if (!Array.isArray(value)) {
|
|
73
|
+
return [];
|
|
74
|
+
}
|
|
75
|
+
const result = [];
|
|
76
|
+
const seen = /* @__PURE__ */ new Set();
|
|
77
|
+
for (const item of value) {
|
|
78
|
+
if (typeof item !== "string") {
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
const trimmed = item.trim();
|
|
82
|
+
if (SUPPORTED_USER_SKILL_SLUG_SET.has(trimmed) && !seen.has(trimmed)) {
|
|
83
|
+
seen.add(trimmed);
|
|
84
|
+
result.push(trimmed);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
function resolveUserEnabledSkills(preferences) {
|
|
90
|
+
if (!preferences || typeof preferences !== "object") {
|
|
91
|
+
return [];
|
|
92
|
+
}
|
|
93
|
+
if (Object.prototype.hasOwnProperty.call(preferences, "enabledSkills")) {
|
|
94
|
+
return normalizeEnabledSkills(preferences.enabledSkills);
|
|
95
|
+
}
|
|
96
|
+
if (Object.prototype.hasOwnProperty.call(preferences, "enabledPromptSkills")) {
|
|
97
|
+
const legacy = normalizeEnabledPromptSkills(preferences.enabledPromptSkills);
|
|
98
|
+
return legacy.filter((slug) => SUPPORTED_USER_SKILL_SLUG_SET.has(slug));
|
|
99
|
+
}
|
|
100
|
+
return [];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// packages/app/settings/accountChatDisplayOwner.ts
|
|
104
|
+
var DEFAULT_CHAT_UI_PREFERENCES = Object.freeze({
|
|
105
|
+
showThinking: true,
|
|
106
|
+
showScrollToTopButton: false,
|
|
107
|
+
showScrollToBottomButton: false,
|
|
108
|
+
// 默认关闭以降噪:新建文件仅显示路径,不展示正文和 Diff 切换。
|
|
109
|
+
showNewFileDiff: false,
|
|
110
|
+
// 默认关闭以降噪:tree 保留命令和退出码,输出区显示隐藏提示。
|
|
111
|
+
showShellTreeOutput: false
|
|
112
|
+
});
|
|
113
|
+
var CHAT_UI_PREFERENCE_KEYS = Object.keys(DEFAULT_CHAT_UI_PREFERENCES);
|
|
114
|
+
|
|
115
|
+
// packages/app/settings/settingTypes.ts
|
|
116
|
+
var SYSTEM_DEFAULT_AGENT_ID = "system-default";
|
|
117
|
+
|
|
118
|
+
// packages/app/settings/settingNormalizers.ts
|
|
119
|
+
var hasOwn = (target, key) => Object.prototype.hasOwnProperty.call(target, key);
|
|
120
|
+
var normalizeDefaultAgentIdSetting = (value) => {
|
|
121
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
122
|
+
return void 0;
|
|
123
|
+
}
|
|
124
|
+
return value === noloAgentId || value === SYSTEM_DEFAULT_AGENT_ID ? SYSTEM_DEFAULT_AGENT_ID : value;
|
|
125
|
+
};
|
|
126
|
+
var normalizeAuthorityHomeServerSetting = (value) => {
|
|
127
|
+
const normalized = normalizeServerOrigin(value);
|
|
128
|
+
return /^https?:\/\//i.test(normalized) ? normalized : null;
|
|
129
|
+
};
|
|
130
|
+
var resolveDefaultAgentIdSetting = (value) => normalizeDefaultAgentIdSetting(value) ?? SYSTEM_DEFAULT_AGENT_ID;
|
|
131
|
+
var omitKeys = (record, keys) => {
|
|
132
|
+
const next = { ...record };
|
|
133
|
+
keys.forEach((key) => {
|
|
134
|
+
delete next[key];
|
|
135
|
+
});
|
|
136
|
+
return next;
|
|
137
|
+
};
|
|
138
|
+
var isRecordLike = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
139
|
+
var normalizeSystemBuiltinSkills = (value, defaults2) => {
|
|
140
|
+
const base = isRecordLike(value) ? value : {};
|
|
141
|
+
const result = { ...defaults2 };
|
|
142
|
+
for (const key of Object.keys(base)) {
|
|
143
|
+
result[key] = Boolean(base[key]);
|
|
144
|
+
}
|
|
145
|
+
return result;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// packages/app/settings/userPreferencesStore.ts
|
|
149
|
+
var import_react = __toESM(require_react());
|
|
150
|
+
|
|
151
|
+
// packages/ai/policy/selfUpdateFields.ts
|
|
152
|
+
var AGENT_UPDATE_FIELD_NAMES = [
|
|
153
|
+
"name",
|
|
154
|
+
"handle",
|
|
155
|
+
"model",
|
|
156
|
+
"provider",
|
|
157
|
+
"prompt",
|
|
158
|
+
"introduction",
|
|
159
|
+
"greeting",
|
|
160
|
+
"isPublic",
|
|
161
|
+
"tags",
|
|
162
|
+
"tools",
|
|
163
|
+
"references",
|
|
164
|
+
"temperature",
|
|
165
|
+
"top_p",
|
|
166
|
+
"frequency_penalty",
|
|
167
|
+
"presence_penalty",
|
|
168
|
+
"max_tokens",
|
|
169
|
+
"reasoning_effort"
|
|
170
|
+
];
|
|
171
|
+
var PRIMARY_AUTO_APPROVE_SELF_UPDATE_FIELDS = [
|
|
172
|
+
"greeting",
|
|
173
|
+
"introduction",
|
|
174
|
+
"tags"
|
|
175
|
+
];
|
|
176
|
+
var DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS = [
|
|
177
|
+
...PRIMARY_AUTO_APPROVE_SELF_UPDATE_FIELDS
|
|
178
|
+
];
|
|
179
|
+
var VALID_AGENT_UPDATE_FIELDS = new Set(AGENT_UPDATE_FIELD_NAMES);
|
|
180
|
+
var normalizeAgentUpdateFieldList = (value, fallback = DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS) => {
|
|
181
|
+
if (!Array.isArray(value)) {
|
|
182
|
+
return [...fallback];
|
|
183
|
+
}
|
|
184
|
+
const normalized = Array.from(
|
|
185
|
+
new Set(
|
|
186
|
+
value.filter(
|
|
187
|
+
(item) => typeof item === "string" && VALID_AGENT_UPDATE_FIELDS.has(item)
|
|
188
|
+
)
|
|
189
|
+
)
|
|
190
|
+
);
|
|
191
|
+
return normalized;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
// packages/app/settings/userPreferencesStore.ts
|
|
195
|
+
var policyDefaults = {
|
|
196
|
+
enabledPromptSkills: Object.freeze([]),
|
|
197
|
+
autoApproveSelfUpdateFields: Object.freeze([...DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS]),
|
|
198
|
+
aiRecentContentLimit: 50,
|
|
199
|
+
systemBuiltinSkills: Object.freeze({ ...DEFAULT_SYSTEM_AGENT_CAPABILITIES }),
|
|
200
|
+
maxExecutionTime: 6e5,
|
|
201
|
+
maxCost: 1,
|
|
202
|
+
defaultAgentId: SYSTEM_DEFAULT_AGENT_ID,
|
|
203
|
+
quickChatAutoAgentId: ""
|
|
204
|
+
};
|
|
205
|
+
var ACCOUNT_POLICY_KEYS = [
|
|
206
|
+
...Object.keys(policyDefaults),
|
|
207
|
+
"enabledSkills",
|
|
208
|
+
"quickChatRuntimeTarget"
|
|
209
|
+
];
|
|
210
|
+
var DEFAULT_SHORTCUTS = Object.freeze({
|
|
211
|
+
heading: true,
|
|
212
|
+
ulist: true,
|
|
213
|
+
olist: true,
|
|
214
|
+
quote: true,
|
|
215
|
+
code: true,
|
|
216
|
+
tasklist: true
|
|
217
|
+
});
|
|
218
|
+
var defaults = Object.freeze({
|
|
219
|
+
...DEFAULT_CHAT_UI_PREFERENCES,
|
|
220
|
+
editorDefaultMode: "markdown",
|
|
221
|
+
editorLightCodeTheme: "default",
|
|
222
|
+
editorDarkCodeTheme: "okaidia",
|
|
223
|
+
editorWordCountEnabled: true,
|
|
224
|
+
editorShortcuts: DEFAULT_SHORTCUTS,
|
|
225
|
+
editorFontSize: 14,
|
|
226
|
+
editorAutoSave: true,
|
|
227
|
+
editorAutoSaveInterval: 30,
|
|
228
|
+
editorLineNumbers: false,
|
|
229
|
+
editorWordWrap: true,
|
|
230
|
+
editorSpellCheck: true,
|
|
231
|
+
editorTabSize: 2,
|
|
232
|
+
editorFontFamily: "SF Mono, Monaco, Cascadia Code, Roboto Mono, monospace",
|
|
233
|
+
ocrModel: "google_document_ocr",
|
|
234
|
+
developerModeEnabled: false,
|
|
235
|
+
diagnosticModeEnabled: false
|
|
236
|
+
});
|
|
237
|
+
var DEFAULT_USER_PREFERENCES = Object.freeze({ ...defaults, ...policyDefaults });
|
|
238
|
+
var USER_PREFERENCE_KEYS = [...Object.keys(defaults), ...ACCOUNT_POLICY_KEYS];
|
|
239
|
+
function pickUserPreferences(record) {
|
|
240
|
+
if (!record || typeof record !== "object") return {};
|
|
241
|
+
const source = record;
|
|
242
|
+
const patch = {};
|
|
243
|
+
for (const key of USER_PREFERENCE_KEYS) {
|
|
244
|
+
if (!Object.prototype.hasOwnProperty.call(source, key)) continue;
|
|
245
|
+
const value = source[key];
|
|
246
|
+
switch (key) {
|
|
247
|
+
case "enabledPromptSkills":
|
|
248
|
+
patch[key] = Object.freeze(normalizeEnabledPromptSkills(value));
|
|
249
|
+
break;
|
|
250
|
+
case "enabledSkills":
|
|
251
|
+
patch[key] = Object.freeze(normalizeEnabledSkills(value));
|
|
252
|
+
break;
|
|
253
|
+
case "defaultAgentId":
|
|
254
|
+
patch[key] = resolveDefaultAgentIdSetting(value);
|
|
255
|
+
break;
|
|
256
|
+
case "autoApproveSelfUpdateFields":
|
|
257
|
+
patch[key] = Object.freeze(normalizeAgentUpdateFieldList(value, DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS));
|
|
258
|
+
break;
|
|
259
|
+
case "systemBuiltinSkills":
|
|
260
|
+
patch[key] = Object.freeze(normalizeSystemBuiltinSkills(value, DEFAULT_SYSTEM_AGENT_CAPABILITIES));
|
|
261
|
+
break;
|
|
262
|
+
case "quickChatRuntimeTarget": {
|
|
263
|
+
const target = value;
|
|
264
|
+
if (target?.kind === "server" || target?.kind === "machine") {
|
|
265
|
+
patch[key] = Object.freeze({
|
|
266
|
+
kind: target.kind,
|
|
267
|
+
...typeof target.machineId === "string" ? { machineId: target.machineId } : {},
|
|
268
|
+
...typeof target.serverOrigin === "string" ? { serverOrigin: target.serverOrigin } : {}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
case "editorDefaultMode":
|
|
274
|
+
if (value === "markdown" || value === "block") patch[key] = value;
|
|
275
|
+
break;
|
|
276
|
+
case "ocrModel":
|
|
277
|
+
if (value === "none" || value === "olm_ocr" || value === "google_document_ocr") patch[key] = value;
|
|
278
|
+
break;
|
|
279
|
+
case "editorShortcuts": {
|
|
280
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) break;
|
|
281
|
+
const shortcuts = { ...DEFAULT_SHORTCUTS };
|
|
282
|
+
for (const name of Object.keys(shortcuts)) {
|
|
283
|
+
const candidate = value[name];
|
|
284
|
+
if (typeof candidate === "boolean") shortcuts[name] = candidate;
|
|
285
|
+
}
|
|
286
|
+
patch[key] = Object.freeze(shortcuts);
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
default:
|
|
290
|
+
if (typeof value === typeof DEFAULT_USER_PREFERENCES[key] && (typeof value !== "number" || Number.isFinite(value))) patch[key] = value;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return patch;
|
|
294
|
+
}
|
|
295
|
+
var sameSession = (a, b) => a?.accountId === b?.accountId && a?.generation === b?.generation;
|
|
296
|
+
var DEFAULT_RUNTIME = Object.freeze({
|
|
297
|
+
autoApproveCredits: 0,
|
|
298
|
+
serverAuthorityEchoSeq: 0,
|
|
299
|
+
localIntentEpoch: 0,
|
|
300
|
+
localIntentKeyEpochs: Object.freeze({}),
|
|
301
|
+
lastWriteFailure: null
|
|
302
|
+
});
|
|
303
|
+
function createUserPreferencesStore(initialPersist) {
|
|
304
|
+
let session = null;
|
|
305
|
+
let snapshot = DEFAULT_USER_PREFERENCES;
|
|
306
|
+
let runtime = DEFAULT_RUNTIME;
|
|
307
|
+
let persist = initialPersist;
|
|
308
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
309
|
+
const notify = () => listeners.forEach((listener) => listener());
|
|
310
|
+
const publishRuntime = (patch) => {
|
|
311
|
+
runtime = Object.freeze({ ...runtime, ...patch });
|
|
312
|
+
notify();
|
|
313
|
+
};
|
|
314
|
+
const publish = (expected, record) => {
|
|
315
|
+
if (!sameSession(session, expected)) return;
|
|
316
|
+
const changes = pickUserPreferences(record);
|
|
317
|
+
const next = { ...snapshot };
|
|
318
|
+
let changed = false;
|
|
319
|
+
for (const [key, value] of Object.entries(changes)) {
|
|
320
|
+
const previous = snapshot[key];
|
|
321
|
+
if (previous === value || value && previous && typeof value === "object" && typeof previous === "object" && Object.keys(previous).length === Object.keys(value).length && Object.entries(value).every(([name, item]) => Object.hasOwn(previous, name) && Reflect.get(previous, name) === item)) continue;
|
|
322
|
+
Object.assign(next, { [key]: value });
|
|
323
|
+
changed = true;
|
|
324
|
+
}
|
|
325
|
+
if (!changed) return;
|
|
326
|
+
snapshot = Object.freeze(next);
|
|
327
|
+
notify();
|
|
328
|
+
};
|
|
329
|
+
const update = async (changes) => {
|
|
330
|
+
const expected = session;
|
|
331
|
+
if (!expected) throw new Error("User not found for persisting settings.");
|
|
332
|
+
if (!persist) throw new Error("User preferences persistence is not bound.");
|
|
333
|
+
const patch = pickUserPreferences(changes);
|
|
334
|
+
if (Object.keys(patch).length === 0) return;
|
|
335
|
+
const before = snapshot;
|
|
336
|
+
const pending = persist(patch, expected);
|
|
337
|
+
if (snapshot === before) publish(expected, patch);
|
|
338
|
+
await pending;
|
|
339
|
+
};
|
|
340
|
+
return {
|
|
341
|
+
getSnapshot: () => snapshot,
|
|
342
|
+
getRuntimeSnapshot: () => runtime,
|
|
343
|
+
bumpLocalIntentEpoch: (keys) => {
|
|
344
|
+
const localIntentEpoch = runtime.localIntentEpoch + 1;
|
|
345
|
+
const localIntentKeyEpochs = { ...runtime.localIntentKeyEpochs };
|
|
346
|
+
for (const key of keys) Object.defineProperty(localIntentKeyEpochs, key, {
|
|
347
|
+
value: localIntentEpoch,
|
|
348
|
+
enumerable: true,
|
|
349
|
+
configurable: true
|
|
350
|
+
});
|
|
351
|
+
publishRuntime({ localIntentEpoch, localIntentKeyEpochs: Object.freeze(localIntentKeyEpochs) });
|
|
352
|
+
return localIntentEpoch;
|
|
353
|
+
},
|
|
354
|
+
recordSettingsWriteFailure: (lastWriteFailure) => publishRuntime({ lastWriteFailure }),
|
|
355
|
+
recordServerAuthorityEcho: (autoApproveCredits) => {
|
|
356
|
+
if (Number.isFinite(autoApproveCredits)) publishRuntime({
|
|
357
|
+
autoApproveCredits,
|
|
358
|
+
serverAuthorityEchoSeq: runtime.serverAuthorityEchoSeq + 1
|
|
359
|
+
});
|
|
360
|
+
},
|
|
361
|
+
hydrateAutoApproveCredits: (autoApproveCredits, expectedSeq) => {
|
|
362
|
+
if (runtime.serverAuthorityEchoSeq === expectedSeq) publishRuntime({ autoApproveCredits });
|
|
363
|
+
},
|
|
364
|
+
getServerSnapshot: () => DEFAULT_USER_PREFERENCES,
|
|
365
|
+
getSession: () => session,
|
|
366
|
+
subscribe: (listener) => {
|
|
367
|
+
listeners.add(listener);
|
|
368
|
+
return () => {
|
|
369
|
+
listeners.delete(listener);
|
|
370
|
+
};
|
|
371
|
+
},
|
|
372
|
+
setSession: (next) => {
|
|
373
|
+
if (sameSession(session, next)) return;
|
|
374
|
+
runtime = Object.freeze({ ...runtime, ...session ? { autoApproveCredits: 0 } : {} });
|
|
375
|
+
session = next;
|
|
376
|
+
snapshot = DEFAULT_USER_PREFERENCES;
|
|
377
|
+
notify();
|
|
378
|
+
},
|
|
379
|
+
bindPersistence: (write) => {
|
|
380
|
+
persist = write;
|
|
381
|
+
},
|
|
382
|
+
hydrate: publish,
|
|
383
|
+
applyLocalPatch: publish,
|
|
384
|
+
updatePolicy: (changes) => update(changes),
|
|
385
|
+
setSystemBuiltinSkill: (id, enabled) => update({
|
|
386
|
+
systemBuiltinSkills: { ...snapshot.systemBuiltinSkills, [id]: enabled }
|
|
387
|
+
}),
|
|
388
|
+
updateEditor: (changes) => update(changes),
|
|
389
|
+
updateChatUi: (changes) => update(changes),
|
|
390
|
+
setOcrModel: (ocrModel) => update({ ocrModel }),
|
|
391
|
+
setDeveloperMode: (enabled) => update(enabled ? { developerModeEnabled: true } : { developerModeEnabled: false, diagnosticModeEnabled: false }),
|
|
392
|
+
setDiagnosticMode: (diagnosticModeEnabled) => snapshot.developerModeEnabled ? update({ diagnosticModeEnabled }) : Promise.resolve(),
|
|
393
|
+
toggleEditorShortcut: (key) => update({
|
|
394
|
+
editorShortcuts: { ...snapshot.editorShortcuts, [key]: !snapshot.editorShortcuts[key] }
|
|
395
|
+
})
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
var owners = /* @__PURE__ */ new WeakMap();
|
|
399
|
+
function getUserPreferencesStore(getState) {
|
|
400
|
+
let owner = owners.get(getState);
|
|
401
|
+
if (!owner) {
|
|
402
|
+
owner = createUserPreferencesStore();
|
|
403
|
+
owners.set(getState, owner);
|
|
404
|
+
}
|
|
405
|
+
return owner;
|
|
406
|
+
}
|
|
407
|
+
var defaultStore = createUserPreferencesStore();
|
|
408
|
+
var UserPreferencesContext = (0, import_react.createContext)(null);
|
|
409
|
+
|
|
410
|
+
// packages/app/settings/storeUserPreferences.ts
|
|
411
|
+
function preferenceSessionFromSnapshot(snapshot) {
|
|
412
|
+
return snapshot.transition === "idle" && snapshot.activeAccountId ? { accountId: snapshot.activeAccountId, generation: snapshot.sessionGeneration } : null;
|
|
413
|
+
}
|
|
414
|
+
function bindUserPreferencesSession(owner, core) {
|
|
415
|
+
const sync = () => owner.setSession(preferenceSessionFromSnapshot(core.getSnapshot()));
|
|
416
|
+
const unsubscribe = core.subscribe(sync);
|
|
417
|
+
sync();
|
|
418
|
+
return () => {
|
|
419
|
+
unsubscribe();
|
|
420
|
+
owner.setSession(null);
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export {
|
|
425
|
+
normalizeEnabledPromptSkills,
|
|
426
|
+
isAccountOnDemandWorkflowSkill,
|
|
427
|
+
normalizeEnabledSkills,
|
|
428
|
+
resolveUserEnabledSkills,
|
|
429
|
+
CHAT_UI_PREFERENCE_KEYS,
|
|
430
|
+
AGENT_UPDATE_FIELD_NAMES,
|
|
431
|
+
normalizeAgentUpdateFieldList,
|
|
432
|
+
SYSTEM_DEFAULT_AGENT_ID,
|
|
433
|
+
hasOwn,
|
|
434
|
+
normalizeDefaultAgentIdSetting,
|
|
435
|
+
normalizeAuthorityHomeServerSetting,
|
|
436
|
+
omitKeys,
|
|
437
|
+
ACCOUNT_POLICY_KEYS,
|
|
438
|
+
USER_PREFERENCE_KEYS,
|
|
439
|
+
pickUserPreferences,
|
|
440
|
+
getUserPreferencesStore,
|
|
441
|
+
preferenceSessionFromSnapshot,
|
|
442
|
+
bindUserPreferencesSession
|
|
443
|
+
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// packages/database-engine/cliAuthorityBrokerTypes.ts
|
|
2
|
+
var CLI_AUTHORITY_BROKER_PROTOCOL_VERSION = 2;
|
|
3
|
+
var MAX_BROKER_ITERATE_PAGE_LIMIT = 1e3;
|
|
4
|
+
|
|
1
5
|
// packages/database-engine/cliAuthorityBrokerClient.ts
|
|
2
6
|
import { createConnection } from "node:net";
|
|
3
7
|
import { connect as connectTls } from "node:tls";
|
|
@@ -67,6 +71,18 @@ function isBrokerUnavailableCause(error) {
|
|
|
67
71
|
if (/malformed response|protocol mismatch/i.test(message)) return false;
|
|
68
72
|
return /ECONNREFUSED|ENOENT|ECONNRESET|EPIPE|closed connection without response|returned no response/i.test(message);
|
|
69
73
|
}
|
|
74
|
+
function outdatedBrokerError(options, version) {
|
|
75
|
+
const { endpoint } = options;
|
|
76
|
+
const metadata = options.readBrokerProcess?.();
|
|
77
|
+
const owner = metadata?.supervisorPid ?? metadata?.pid;
|
|
78
|
+
const command = metadata?.supervisorPid ? "__authority-broker-supervise" : "__authority-broker";
|
|
79
|
+
const processInfo = metadata ? ` (worker PID ${metadata.pid}${metadata.supervisorPid ? `, supervisor PID ${metadata.supervisorPid}` : ""})` : "";
|
|
80
|
+
const instructions = owner ? `Run \`ps -p ${owner} -o pid,ppid,args\` and confirm it belongs to this endpoint and is the old ${command} process. Only then run \`kill -TERM ${owner}\`.` : "Run `ps -ax -o pid,ppid,args | grep '[a]uthority-broker'` and match the endpoint. Stop the verified old `__authority-broker-supervise` (or standalone `__authority-broker`) with `kill -TERM <verified-pid>`.";
|
|
81
|
+
return new CliAuthorityBrokerProtocolError({
|
|
82
|
+
code: "BROKER_PROTOCOL_OUTDATED",
|
|
83
|
+
message: `The running CLI Authority Broker at ${endpoint}${processInfo} is outdated${version === void 0 ? "" : ` (protocol ${version}; requires ${CLI_AUTHORITY_BROKER_PROTOCOL_VERSION})`} and lacks the dialogTurn protocol. Let any active Nolo runs finish before restarting the broker. On Linux/macOS: ${instructions} If managed as a service, stop the old broker through its service manager instead. Wait for it to exit, then rerun the updated CLI; it starts a new broker using the same database. Do not delete any data files.`
|
|
84
|
+
});
|
|
85
|
+
}
|
|
70
86
|
function resolveBrokerSocketTarget(endpoint) {
|
|
71
87
|
if (endpoint.startsWith("unix://")) {
|
|
72
88
|
return { kind: "unix", path: endpoint.slice("unix://".length) };
|
|
@@ -516,8 +532,28 @@ async function invokeBrokerRequest(options, request) {
|
|
|
516
532
|
throw error;
|
|
517
533
|
}
|
|
518
534
|
}
|
|
535
|
+
function createCliAuthorityDialogTurnClient(options) {
|
|
536
|
+
const request = async (args) => {
|
|
537
|
+
const result = await invokeBrokerRequest(options, args).catch((error) => {
|
|
538
|
+
if (isUnsupportedBrokerRequestError(error)) throw outdatedBrokerError(options);
|
|
539
|
+
throw error;
|
|
540
|
+
});
|
|
541
|
+
if (result.type !== args.type || !("response" in result)) {
|
|
542
|
+
throw new CliAuthorityBrokerProtocolError({ code: "MALFORMED_RESPONSE", message: `CLI authority broker protocol mismatch for ${args.type}` });
|
|
543
|
+
}
|
|
544
|
+
return result;
|
|
545
|
+
};
|
|
546
|
+
return {
|
|
547
|
+
getDialogTurnState: async (input) => (await request({ type: "dialogTurnGetState", input })).response,
|
|
548
|
+
beginDialogTurn: async (input) => (await request({ type: "dialogTurnBegin", input })).response,
|
|
549
|
+
heartbeatDialogTurn: async (input) => (await request({ type: "dialogTurnHeartbeat", input })).response,
|
|
550
|
+
endDialogTurn: async (input) => (await request({ type: "dialogTurnEnd", input })).response,
|
|
551
|
+
commitDialogTurn: async (input) => (await request({ type: "dialogTurnCommit", input })).response,
|
|
552
|
+
patchDialogMetadata: async (input) => (await request({ type: "dialogTurnPatchMetadata", input })).response
|
|
553
|
+
};
|
|
554
|
+
}
|
|
519
555
|
function createCliAuthorityBrokerClient(options) {
|
|
520
|
-
const pageSize = options.iteratorPageSize ?? DEFAULT_ITERATOR_PAGE_SIZE;
|
|
556
|
+
const pageSize = Math.min(options.iteratorPageSize ?? DEFAULT_ITERATOR_PAGE_SIZE, MAX_BROKER_ITERATE_PAGE_LIMIT);
|
|
521
557
|
let batchGetUnsupported = false;
|
|
522
558
|
const fallbackBatchGet = (keys) => Promise.all(
|
|
523
559
|
keys.map(async (key) => {
|
|
@@ -550,7 +586,24 @@ function createCliAuthorityBrokerClient(options) {
|
|
|
550
586
|
return options.status ?? "broker";
|
|
551
587
|
},
|
|
552
588
|
async open() {
|
|
553
|
-
await invokeBrokerRequest(options, { type: "status" });
|
|
589
|
+
const result = await invokeBrokerRequest(options, options.verifyLocation ? { type: "status", includeLocation: true } : { type: "status" });
|
|
590
|
+
if (result.type !== "status") {
|
|
591
|
+
throw new CliAuthorityBrokerProtocolError({
|
|
592
|
+
code: "MALFORMED_RESPONSE",
|
|
593
|
+
message: `CLI authority broker protocol mismatch for status at ${options.endpoint}`
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
if (options.requireDialogTurn) {
|
|
597
|
+
const version = result.protocolVersion === void 0 ? 1 : result.protocolVersion;
|
|
598
|
+
if (!Number.isInteger(version) || version < 1) {
|
|
599
|
+
throw new CliAuthorityBrokerProtocolError({
|
|
600
|
+
code: "MALFORMED_RESPONSE",
|
|
601
|
+
message: `Invalid status protocolVersion from CLI authority broker at ${options.endpoint}`
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
if (version < CLI_AUTHORITY_BROKER_PROTOCOL_VERSION) throw outdatedBrokerError(options, version);
|
|
605
|
+
}
|
|
606
|
+
options.verifyLocation?.(result.location);
|
|
554
607
|
},
|
|
555
608
|
async close() {
|
|
556
609
|
},
|
|
@@ -589,6 +642,13 @@ function createCliAuthorityBrokerClient(options) {
|
|
|
589
642
|
}
|
|
590
643
|
return { status: result.status };
|
|
591
644
|
},
|
|
645
|
+
async conditionalDelete(key, expectedRevision) {
|
|
646
|
+
const result = await invokeBrokerRequest(options, { type: "conditionalDelete", key, expectedRevision });
|
|
647
|
+
if (!result || result.type !== "conditionalDelete" || result.status !== "updated" && result.status !== "conflict" || Object.keys(result).some((key2) => key2 !== "type" && key2 !== "status")) {
|
|
648
|
+
throw new CliAuthorityBrokerProtocolError({ code: "BROKER_PROTOCOL_MISMATCH", message: "Invalid conditionalDelete response" });
|
|
649
|
+
}
|
|
650
|
+
return { status: result.status };
|
|
651
|
+
},
|
|
592
652
|
async put(key, value) {
|
|
593
653
|
await invokeBrokerRequest(options, { type: "put", key, value });
|
|
594
654
|
},
|
|
@@ -612,15 +672,16 @@ function createCliAuthorityBrokerClient(options) {
|
|
|
612
672
|
}
|
|
613
673
|
};
|
|
614
674
|
},
|
|
615
|
-
iterator(iteratorOptions = {}) {
|
|
675
|
+
iterator({ limit, ...iteratorOptions } = {}) {
|
|
616
676
|
return async function* iterate() {
|
|
617
677
|
let cursor = void 0;
|
|
618
|
-
|
|
678
|
+
let remaining = limit !== void 0 && Number.isSafeInteger(limit) && limit >= 0 ? limit : Infinity;
|
|
679
|
+
while (remaining > 0) {
|
|
619
680
|
const result = await invokeBrokerRequest(options, {
|
|
620
681
|
type: "iterator",
|
|
621
682
|
options: iteratorOptions,
|
|
622
683
|
cursor,
|
|
623
|
-
limit: pageSize
|
|
684
|
+
limit: Math.min(pageSize, remaining)
|
|
624
685
|
});
|
|
625
686
|
if (result.type !== "iterator") {
|
|
626
687
|
throw new Error(
|
|
@@ -628,7 +689,9 @@ function createCliAuthorityBrokerClient(options) {
|
|
|
628
689
|
);
|
|
629
690
|
}
|
|
630
691
|
for (const entry of result.page.entries) {
|
|
692
|
+
remaining--;
|
|
631
693
|
yield entry;
|
|
694
|
+
if (remaining === 0) return;
|
|
632
695
|
}
|
|
633
696
|
if (result.page.done || !result.page.nextCursor) return;
|
|
634
697
|
cursor = result.page.nextCursor;
|
|
@@ -639,6 +702,8 @@ function createCliAuthorityBrokerClient(options) {
|
|
|
639
702
|
}
|
|
640
703
|
|
|
641
704
|
export {
|
|
705
|
+
CLI_AUTHORITY_BROKER_PROTOCOL_VERSION,
|
|
706
|
+
MAX_BROKER_ITERATE_PAGE_LIMIT,
|
|
642
707
|
CliAuthorityBrokerUnavailableError,
|
|
643
708
|
CliAuthorityBrokerTimeoutError,
|
|
644
709
|
CliAuthorityBrokerProtocolError,
|
|
@@ -646,5 +711,6 @@ export {
|
|
|
646
711
|
isCliAuthorityBrokerTimeoutError,
|
|
647
712
|
isCliAuthorityBrokerProtocolError,
|
|
648
713
|
createCliAuthorityBrokerSocketInvoker,
|
|
714
|
+
createCliAuthorityDialogTurnClient,
|
|
649
715
|
createCliAuthorityBrokerClient
|
|
650
716
|
};
|