nolo-cli 0.227.0-alpha.1 → 0.227.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-JKQGZ3HU.js → _executeModel-CXOFYVHC.js} +93 -87
- package/{action-CK64LS6S.js → action-R2EIXR7I.js} +11 -8
- package/{addContentAction-CARFID6E.js → addContentAction-W6JVLQ6H.js} +17 -16
- package/{addDialogAgentAction-APLZLFW5.js → addDialogAgentAction-LVNKMXKZ.js} +20 -19
- package/{agentDeleteCommand-NVR2V2HH.js → agentDeleteCommand-VFSZPEQ5.js} +145 -137
- package/{agentEmailCommands-UCVOWD3S.js → agentEmailCommands-KRUIF4EH.js} +149 -137
- package/{agentFavoriteCommands-4PDOP3GW.js → agentFavoriteCommands-7LOP3HUD.js} +6 -6
- package/{agentGrantCommands-FLCEXLUH.js → agentGrantCommands-L6O2HVJI.js} +7 -7
- package/agentListCommands-TDFOLWN3.js +644 -0
- package/{agentMachineCommands-V3DGEJU4.js → agentMachineCommands-PSH7Q5PF.js} +76 -67
- package/{agentProviderCommands-7QBFRFRK.js → agentProviderCommands-C5T7C5KZ.js} +7 -7
- package/{agentPullCommand-E6JBGBVG.js → agentPullCommand-QQQZSC6S.js} +7 -7
- package/agentRecordCommands-KCKCW2QU.js +188 -0
- package/agentRunCommand-EF2T2QWD.js +223 -0
- package/{agentRunControl-SNZZ5XP4.js → agentRunControl-CSMSJFFB.js} +25 -17
- package/{agentRuntimeLocal-GOX2DIY7.js → agentRuntimeLocal-6QXQS3TS.js} +64 -50
- package/{agentSlice-N7H2FRJA.js → agentSlice-IZ5ANAF7.js} +19 -18
- package/{appDeleteCommands-LZDN26FU.js → appDeleteCommands-4M7ETEEG.js} +68 -59
- package/{appDeployCommands-6IO6TTZH.js → appDeployCommands-2VJ2NDW5.js} +68 -59
- package/{appDeployStatusCommands-FG3LX24J.js → appDeployStatusCommands-LDFSWOPQ.js} +68 -59
- package/{appGetCommands-NAKVDVD4.js → appGetCommands-RHVNOPT4.js} +68 -59
- package/{appListCommands-KL56RN73.js → appListCommands-U3XEVTL4.js} +68 -59
- package/{authCommand-AUN5MXV2.js → authCommand-PVZ45QRO.js} +36 -31
- package/{authCommands-D2IPS6ES.js → authCommands-6AUYO65N.js} +18 -13
- package/{builtinSkillRegistry-UQGLKRYP.js → builtinSkillRegistry-LRVAQCPW.js} +6 -6
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
- package/{chromeOpsCommands-UJWN5HWH.js → chromeOpsCommands-TBPM6MR4.js} +8 -8
- package/{chunk-ABGULE7H.js → chunk-22YUCKMK.js} +16 -16
- package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
- package/{chunk-GOLPOTG5.js → chunk-2COM7SAH.js} +4 -4
- package/{chunk-ULAQPRHX.js → chunk-2FK2KZSL.js} +1 -1
- package/{chunk-PLPLH2XZ.js → chunk-2IPR4PBB.js} +2 -2
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-7Z3WUZ4Q.js → chunk-3YYFU6H7.js} +74 -46
- package/{chunk-C2B7M567.js → chunk-4OXPN3WC.js} +17 -6
- package/chunk-4TVOZGOS.js +62 -0
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53AEDFBL.js +33394 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-OXA5GWHU.js → chunk-56O2J2Y4.js} +3 -3
- package/{chunk-IAJJYHIB.js → chunk-56PB7FEN.js} +8 -8
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-AGP3YSEC.js → chunk-5PASH2MB.js} +46 -1
- package/{chunk-PHOSZT3E.js → chunk-5UAKGCQG.js} +1 -1
- package/{chunk-5RKRXQ2H.js → chunk-5VVP7DW3.js} +20 -13
- package/chunk-6ASGEP5D.js +21 -0
- package/chunk-6PXFEPHL.js +103 -0
- package/chunk-6RSNVJGO.js +279 -0
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-KMRKZNGT.js → chunk-6YYTTLJV.js} +14 -13
- package/{chunk-VREDDN25.js → chunk-76HAJUOJ.js} +14 -9
- package/{chunk-FKEZOMIF.js → chunk-7DXFOL5B.js} +1410 -768
- package/{chunk-LA7JYAKF.js → chunk-AKPKOI5Z.js} +6 -6
- package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
- package/{chunk-F5AY2UZL.js → chunk-AO6T7U62.js} +592 -68
- package/{chunk-LJSNEV7M.js → chunk-AS6L5KSD.js} +8 -8
- package/{chunk-GOQ6ZVTN.js → chunk-AVSZ6PBM.js} +5 -5
- package/chunk-BIDSIRTS.js +307 -0
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-KYH7XW3K.js → chunk-CD2DK5JA.js} +135 -14
- package/{chunk-G6HJUMST.js → chunk-CJQBWHNM.js} +2 -2
- package/{chunk-EVGU5P4U.js → chunk-CO6E7YK6.js} +1 -1
- package/{chunk-ZYA2YDB6.js → chunk-CT5JXREL.js} +17 -17
- package/{chunk-VPAZ6BEN.js → chunk-CTWCZKNS.js} +42 -17
- package/{chunk-4OKTPFNX.js → chunk-CX2LYFZQ.js} +107 -66
- package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
- package/{chunk-IX2BXN2K.js → chunk-EDT65EUE.js} +6 -6
- package/{chunk-VP3BINY7.js → chunk-EQZZASCD.js} +31 -1
- package/{chunk-45LZIYXB.js → chunk-ESN4WNWU.js} +3 -2
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-CVERLOJM.js → chunk-F4XIS5DL.js} +1215 -1431
- package/chunk-FDZ2GBWO.js +166 -0
- package/chunk-FGHEF6WI.js +34 -0
- package/{chunk-CSW7IPVD.js → chunk-FMYNIAI6.js} +61 -24
- package/{chunk-VIHDJ3FK.js → chunk-FNT5VENS.js} +15 -15
- package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
- package/{chunk-GRXSJR2Z.js → chunk-GVTFSLNI.js} +112 -109
- package/{chunk-UN7HIYMH.js → chunk-GX6DITLQ.js} +1 -1
- package/{chunk-3VFYQH3I.js → chunk-HIDVLMZC.js} +203 -156
- package/{chunk-5LQDHFBN.js → chunk-IDFGIROZ.js} +20 -17
- package/{chunk-UCFPVYP7.js → chunk-IFWXH7LH.js} +1 -1
- package/{chunk-LXTC53TN.js → chunk-J45ACAOQ.js} +815 -361
- package/{chunk-S6K5F3KP.js → chunk-JP2BH4NC.js} +1 -1
- package/{chunk-X2KRQP7V.js → chunk-JV5FHHF7.js} +1 -1
- package/{chunk-6EDAMVG6.js → chunk-K26XPZRB.js} +11 -11
- package/{chunk-RU6DULV4.js → chunk-KB5RQRSJ.js} +1 -1
- package/{chunk-T43K75CK.js → chunk-KC2QVCI7.js} +24 -178
- package/chunk-KK3FCYZM.js +647 -0
- package/{chunk-XZODOEKU.js → chunk-KMDHRVS7.js} +29 -5
- package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
- package/{chunk-UAPNPNSG.js → chunk-KW72WVHO.js} +2085 -1046
- package/{chunk-ILHQ2AXT.js → chunk-KZAT2M2V.js} +14 -8
- package/{chunk-L42CBKBZ.js → chunk-KZKMH374.js} +3 -3
- package/{chunk-ZI5SZ3MV.js → chunk-L6BLA6BT.js} +40 -31
- package/{chunk-AK5O76CC.js → chunk-LC5CVWP2.js} +3 -3
- package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
- package/chunk-LHCGKAFO.js +739 -0
- package/{chunk-YOT437BH.js → chunk-LOF2EFUE.js} +203 -123
- package/{chunk-YQETUZ5V.js → chunk-LTVEOOZL.js} +29 -16
- package/{chunk-T2BEPTAG.js → chunk-MAA42MMV.js} +272 -26
- package/{chunk-NAOO4PVX.js → chunk-MECW2HJG.js} +16 -16
- package/{chunk-5HL4KC4A.js → chunk-MEDPR36J.js} +62 -87
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-YPPKC6FL.js → chunk-MYYNZG2M.js} +140 -40
- package/{chunk-UVUVQVZ6.js → chunk-MZVCFV3T.js} +19 -15
- package/{chunk-CQVGR3MX.js → chunk-N7MXFYLU.js} +7 -7
- package/{chunk-IC2I373Q.js → chunk-NEG5LYK5.js} +4 -4
- package/chunk-NJJK3PDA.js +133 -0
- package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
- package/{chunk-M3Y4IBIR.js → chunk-OHUYN3YU.js} +6 -6
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-SFTTXGPM.js → chunk-PDAXMBLW.js} +35 -28
- package/{chunk-OBSEKCVK.js → chunk-PQ63BDV3.js} +210 -51
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-SRG5CNLC.js → chunk-QIVE5WJE.js} +8 -8
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
- package/{chunk-7Z6EW7AH.js → chunk-QOURTDZL.js} +97 -11
- package/{chunk-VZW34YUL.js → chunk-QWSH3UAQ.js} +8 -5
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-SW6OD4KE.js → chunk-RDPAIR67.js} +351 -18
- package/{chunk-NO3VBWTL.js → chunk-RXTZB2DH.js} +4 -4
- package/{chunk-AXYH4734.js → chunk-S25VJYXV.js} +21 -15
- package/{chunk-MWHOH4RJ.js → chunk-SESKIWB4.js} +6 -6
- package/{chunk-GUVXQSFZ.js → chunk-SF4GMDZO.js} +18 -108
- package/{chunk-TINJKQSO.js → chunk-SQRKAYQW.js} +25 -25
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-3HTP4WZQ.js → chunk-SX6AWTNK.js} +46 -8
- package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
- package/{chunk-CLCXHIBS.js → chunk-T4QY3HZ5.js} +1 -1
- package/{chunk-HVUDBOQG.js → chunk-TB5KTLNB.js} +9 -6
- package/{chunk-KRRE4A7D.js → chunk-TKE4OJ4B.js} +280 -56
- package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
- package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/{chunk-T5N6NHAT.js → chunk-UPOW5HTG.js} +6 -6
- package/{chunk-WJP4TH6U.js → chunk-VEVLLBFK.js} +2 -2
- package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
- package/{chunk-KJAAPGBE.js → chunk-VUHKG4KS.js} +6 -6
- package/{chunk-TOKPHZ55.js → chunk-W3HSD32M.js} +17 -10
- package/{chunk-2SKTCNWO.js → chunk-W5OJBZLZ.js} +4 -4
- package/chunk-WBSJAIZP.js +170 -0
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/{chunk-HYKGIXNO.js → chunk-XGWRH3OF.js} +114 -29
- package/{chunk-XIEYGCN6.js → chunk-XKV53E4E.js} +460 -117
- package/{chunk-JHF6VLVL.js → chunk-XYRTC2Y3.js} +155 -170
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-ZADGPNTV.js → chunk-YHWMKGOX.js} +77 -103
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-PVAWNHP5.js → chunk-ZP26NIZE.js} +647 -387
- package/{chunk-2G3YSVO6.js → chunk-ZQ6K57FJ.js} +3 -3
- package/{cliAgentConfigHelpers-QVSQYTKC.js → cliAgentConfigHelpers-37ZNEY5Y.js} +16 -16
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
- package/{cliEnvHelpers-D6HMC46Z.js → cliEnvHelpers-CNMP3RDX.js} +2 -2
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/cliLocalAgentRecordReader-53773JID.js +102 -0
- package/{commandRegistry-TKR6OWXP.js → commandRegistry-RJUO2VOD.js} +113 -101
- package/{contentThunks-BQWRPCTM.js → contentThunks-4EFHLUTB.js} +44 -41
- package/{cooldownCommands-FZYQOWI5.js → cooldownCommands-QL6DWGVU.js} +3 -3
- package/{createAgentAutomationAction-GFI6SJZV.js → createAgentAutomationAction-ZFFGJ7CZ.js} +44 -41
- package/{createDialogAction-MMBIHFFU.js → createDialogAction-SDUGVTPS.js} +45 -43
- package/{createPageAction-EEYUE5FB.js → createPageAction-NNM3OFLY.js} +49 -46
- package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
- package/{dbSlice-X4Z4E4QU.js → dbSlice-5MQ3ELID.js} +16 -15
- package/{deleteFile-QOOP2UK7.js → deleteFile-VCCHS72Y.js} +12 -9
- package/{dialogCommands-OXBQ73DD.js → dialogCommands-SJK5KWXU.js} +73 -66
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-VWS5G4OO.js → dialogNotifyCommand-PST75COP.js} +19 -19
- package/{dialogSlice-KGYIABDY.js → dialogSlice-2KLMHECR.js} +44 -41
- package/{dialogUsageCommand-FEWCN7IA.js → dialogUsageCommand-BZPKR3DW.js} +8 -8
- package/{docCreateCommands-LS32VKY3.js → docCreateCommands-K7CDL2HY.js} +66 -57
- package/{docDeleteCommands-JTYR5RPH.js → docDeleteCommands-ZEY5YCSP.js} +69 -60
- package/{docReadCommands-E5LTVKWN.js → docReadCommands-A4ROLIQG.js} +66 -57
- package/{docStore-TVS2FNER.js → docStore-A4O6YJAM.js} +19 -18
- package/{docUpdateCommands-I3J3JDZ2.js → docUpdateCommands-6HTFQY4O.js} +66 -57
- package/{fetchMessages-Q3INLN5F.js → fetchMessages-TQEUZD7H.js} +3 -3
- package/{getPricing-VNGFM4PN.js → getPricing-FCHYVRJU.js} +6 -6
- package/{handleSendMessageAction-SSON36TJ.js → handleSendMessageAction-6WEFYBUC.js} +87 -82
- package/{hostCredentialCreate-WTW4THJF.js → hostCredentialCreate-WOWCNOYM.js} +136 -123
- package/index.js +54 -16
- package/keys-RWF7UCB4.js +1 -1
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-V36DX2Q2.js → localDialogRead-3T2KMCRC.js} +2 -2
- package/{localRuntimeAdapter-MI2JGXSF.js → localRuntimeAdapter-7EDBDRYW.js} +147 -133
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
- package/{machineCommands-3LROJZDK.js → machineCommands-XRPC67LL.js} +290 -354
- package/machineWsRunDispatch-SOGFW472.js +203 -0
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/mcpLocalAuthorizeCommand-VOJARP3M.js +106 -0
- package/{memberThunks-CFEPHAND.js → memberThunks-KC3WJGL3.js} +26 -21
- package/{memoryCommands-JQMEJO7J.js → memoryCommands-BC6REPQB.js} +6 -6
- package/{models-H5NNZRLH.js → models-EP7VG6N2.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-3X54XFVN.js → projectArchive-GDVPIZX2.js} +50 -47
- package/{providerPresetApply-FO36N5TX.js → providerPresetApply-4H7YP5D7.js} +9 -9
- package/{providerRegistry-U2BSFE6K.js → providerRegistry-F3UPOTIY.js} +9 -9
- package/{read-KA3L2V7O.js → read-T7VU2IMO.js} +11 -10
- package/{readDocTool-AMAZAPAW.js → readDocTool-BPQ3QJSD.js} +1 -1
- package/{readlineWorkspace-Z3YUH4SX.js → readlineWorkspace-OWQIIUGH.js} +9406 -6791
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-JQOJSUM7.js → removeDialogAgentAction-FEUUVMYC.js} +23 -22
- package/{runAgentClientLoop-4FCFLMDJ.js → runAgentClientLoop-SJREK2B7.js} +107 -86
- package/{runtimeDoctorCommands-CXOCVDPU.js → runtimeDoctorCommands-XQD4MN4I.js} +19 -19
- package/{secretCommands-GGUAWAE7.js → secretCommands-LH7QTJO2.js} +3 -3
- package/{setDialogExtraReferencesAction-YXQTGXIN.js → setDialogExtraReferencesAction-JSTQJPXL.js} +19 -18
- package/{setPrimaryDialogAgentAction-YNLB66WE.js → setPrimaryDialogAgentAction-Z2BQE3IY.js} +23 -22
- package/{settingThunks-E6N7RSSS.js → settingThunks-C2YWCNYI.js} +186 -67
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-DB5DKC2J.js → spaceCommands-YRBQ52PG.js} +71 -62
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-FCBGMD4D.js → streamAgentChatTurn-NCA4BKDZ.js} +244 -185
- package/{switchDialogAgentAction-LAHLUECU.js → switchDialogAgentAction-G7XVAOGH.js} +20 -19
- package/{tableCommands-VNSXHAMG.js → tableCommands-UHEA5QNL.js} +14 -11
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
- package/{tools-6JD36D6K.js → tools-6WQVUGKV.js} +74 -70
- package/tuiRestart-3J7LRMPR.js +41 -0
- package/{tuiSummaryLlmCaller-UHZIPGAX.js → tuiSummaryLlmCaller-2J6NG53N.js} +24 -23
- package/{updateCommands-KZ54HCU5.js → updateCommands-5OYND6EF.js} +8 -6
- package/{updateDialogTitleAction-RV3EUEN3.js → updateDialogTitleAction-QCSN3RYO.js} +46 -43
- package/{usageCommand-KFVV6UL3.js → usageCommand-SK7JTEPC.js} +3 -3
- package/{usageRebuildCommand-HHFSNK46.js → usageRebuildCommand-DF3HUP6F.js} +4 -4
- package/webapi-QVV65DQF.js +2487 -0
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-ZCSQCHG3.js} +9 -9
- package/agentListCommands-C65UESYM.js +0 -1004
- package/agentRecordCommands-6RCJS2EY.js +0 -176
- package/agentRunCommand-P3GRKXKS.js +0 -208
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-62HXNQVV.js +0 -134
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-PXKF5CV4.js +0 -357
- package/chunk-WACI5I6V.js +0 -147
- package/chunk-YGILMZ7N.js +0 -81
- package/cliLocalAgentRecordReader-SPKAJYME.js +0 -90
- package/machineWsRunDispatch-BUUJRUUB.js +0 -191
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +4 -4
- package/{chunk-VXL2FZTP.js → chunk-HXER7YJF.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SSGTV4FC.js → chunk-USGHJSGO.js} +5 -5
- package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
- package/{offlineMarxistsAgentCommand-AGA2X5E4.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +5 -5
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W5OJBZLZ.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YHWMKGOX.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-J45ACAOQ.js";
|
|
22
22
|
import {
|
|
23
23
|
createSSEParser,
|
|
24
24
|
createToolRunId,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
toolRunSetPending,
|
|
28
28
|
toolRunStarted,
|
|
29
29
|
toolRunSucceeded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GVTFSLNI.js";
|
|
31
31
|
import {
|
|
32
32
|
addToolMessage,
|
|
33
33
|
messageStreamEnd,
|
|
@@ -35,37 +35,34 @@ import {
|
|
|
35
35
|
toast,
|
|
36
36
|
toolResultNeedsUserConfirmation,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZP26NIZE.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-22YUCKMK.js";
|
|
42
42
|
import {
|
|
43
43
|
getCurrentSpaceId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-RXTZB2DH.js";
|
|
45
|
+
import {
|
|
46
|
+
write
|
|
47
|
+
} from "./chunk-PDAXMBLW.js";
|
|
45
48
|
import {
|
|
46
49
|
addActiveController,
|
|
47
50
|
getActiveDialogKey,
|
|
48
51
|
removeActiveController,
|
|
49
52
|
tokenUsageLiveUpdate
|
|
50
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-U35UUM5K.js";
|
|
51
54
|
import {
|
|
52
55
|
require_react
|
|
53
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-RD3QLZQV.js";
|
|
54
57
|
import {
|
|
55
58
|
selectCurrentServer
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import {
|
|
58
|
-
write
|
|
59
|
-
} from "./chunk-SFTTXGPM.js";
|
|
59
|
+
} from "./chunk-76HAJUOJ.js";
|
|
60
60
|
import {
|
|
61
61
|
createAsyncThunk
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-QOURTDZL.js";
|
|
63
63
|
import {
|
|
64
64
|
selectIdentityToken
|
|
65
65
|
} from "./chunk-PXYBUFDB.js";
|
|
66
|
-
import {
|
|
67
|
-
getPublicImageAgentMode
|
|
68
|
-
} from "./chunk-VIDPVFP3.js";
|
|
69
66
|
import {
|
|
70
67
|
classifyOutboundErrorCategory,
|
|
71
68
|
createOutboundDiagnosticCall,
|
|
@@ -73,7 +70,7 @@ import {
|
|
|
73
70
|
projectUserPartForModel,
|
|
74
71
|
resolveOutboundDiagnosticSink,
|
|
75
72
|
resolveOutboundWire
|
|
76
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-2FK2KZSL.js";
|
|
77
74
|
import {
|
|
78
75
|
accumulateToolCallDelta,
|
|
79
76
|
createThinkParserState,
|
|
@@ -85,33 +82,27 @@ import {
|
|
|
85
82
|
} from "./chunk-56GBUMO5.js";
|
|
86
83
|
import {
|
|
87
84
|
normalizeChatCompletionsBodyForProvider
|
|
88
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-W3HSD32M.js";
|
|
89
86
|
import {
|
|
90
87
|
classifyApiError,
|
|
91
88
|
classifyGenerationError,
|
|
92
89
|
extractErrorDiagnostics
|
|
93
90
|
} from "./chunk-TLE77UJ5.js";
|
|
91
|
+
import {
|
|
92
|
+
LIST_AGENTS_OUTPUT_BUDGET,
|
|
93
|
+
isCompleteInstructionOutput,
|
|
94
|
+
sanitizeToolOutputText,
|
|
95
|
+
scrubSecrets
|
|
96
|
+
} from "./chunk-WFGNWWJI.js";
|
|
94
97
|
import {
|
|
95
98
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
96
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-LTVEOOZL.js";
|
|
97
100
|
import {
|
|
98
101
|
getModelInfo
|
|
99
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-MAA42MMV.js";
|
|
100
103
|
import {
|
|
101
104
|
isAbortError
|
|
102
105
|
} from "./chunk-7DPNBQSV.js";
|
|
103
|
-
import {
|
|
104
|
-
toErrorMessage
|
|
105
|
-
} from "./chunk-HNMXYYJR.js";
|
|
106
|
-
import {
|
|
107
|
-
extractCustomId
|
|
108
|
-
} from "./chunk-M2EJHDJP.js";
|
|
109
|
-
import {
|
|
110
|
-
getApiEndpoint
|
|
111
|
-
} from "./chunk-KYH7XW3K.js";
|
|
112
|
-
import {
|
|
113
|
-
isRecord
|
|
114
|
-
} from "./chunk-KUG52IAP.js";
|
|
115
106
|
import {
|
|
116
107
|
toTrimmedString
|
|
117
108
|
} from "./chunk-SYTHYBMI.js";
|
|
@@ -119,9 +110,24 @@ import {
|
|
|
119
110
|
createDialogMessageKeyAndId,
|
|
120
111
|
dialogMessageKey
|
|
121
112
|
} from "./chunk-OJKUU3LP.js";
|
|
113
|
+
import {
|
|
114
|
+
extractCustomId
|
|
115
|
+
} from "./chunk-M2EJHDJP.js";
|
|
116
|
+
import {
|
|
117
|
+
getPublicImageAgentMode
|
|
118
|
+
} from "./chunk-VIDPVFP3.js";
|
|
119
|
+
import {
|
|
120
|
+
toErrorMessage
|
|
121
|
+
} from "./chunk-HNMXYYJR.js";
|
|
122
122
|
import {
|
|
123
123
|
asTrimmedString
|
|
124
124
|
} from "./chunk-3EUW3WEO.js";
|
|
125
|
+
import {
|
|
126
|
+
getApiEndpoint
|
|
127
|
+
} from "./chunk-CD2DK5JA.js";
|
|
128
|
+
import {
|
|
129
|
+
isRecord
|
|
130
|
+
} from "./chunk-KUG52IAP.js";
|
|
125
131
|
import {
|
|
126
132
|
asOptionalTrimmedString
|
|
127
133
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -130,6 +136,12 @@ import {
|
|
|
130
136
|
} from "./chunk-U67V476Y.js";
|
|
131
137
|
|
|
132
138
|
// packages/integrations/openai/filterAndCleanMessages.ts
|
|
139
|
+
function serializeAgentRunMessages(messages) {
|
|
140
|
+
return messages.map((message) => {
|
|
141
|
+
const metadata = message.tool_result_metadata;
|
|
142
|
+
return message.role === "tool" && isCompleteInstructionOutput(message.name, metadata, typeof message.content === "string" ? message.content : "") ? { ...message, tool_result_metadata: { projectInstruction: true } } : message;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
133
145
|
var isValidMessagePart = (part) => {
|
|
134
146
|
if (!part || typeof part !== "object") return false;
|
|
135
147
|
if (part.type === "text") return typeof part.text === "string";
|
|
@@ -141,12 +153,19 @@ var isValidMessagePart = (part) => {
|
|
|
141
153
|
};
|
|
142
154
|
var extractContent = (msg) => {
|
|
143
155
|
if (msg.role === "tool") {
|
|
156
|
+
const budget = (msg.name ?? msg.toolName ?? msg.toolPayload?.toolName) === "listAgents" ? LIST_AGENTS_OUTPUT_BUDGET : void 0;
|
|
157
|
+
const metadata = msg.tool_result_metadata ?? msg.metadata;
|
|
144
158
|
const llmContext = asTrimmedString(msg.toolPayload?.llmContext);
|
|
145
|
-
if (
|
|
159
|
+
if (isCompleteInstructionOutput(extractName(msg), metadata, typeof msg.content === "string" ? msg.content : "")) {
|
|
160
|
+
const safe = scrubSecrets(sanitizeToolOutputText(llmContext || String(msg.content ?? ""))).cleaned;
|
|
161
|
+
if (isCompleteInstructionOutput(extractName(msg), metadata, safe)) return safe;
|
|
162
|
+
return clipHeadAndTail(safe, { toolCallId: extractToolCallId(msg) ?? void 0 }).content;
|
|
163
|
+
}
|
|
164
|
+
if (llmContext) return clipHeadAndTail(llmContext, { toolCallId: extractToolCallId(msg) ?? void 0, ...budget ? { maxTotalBytes: budget } : {} }).content;
|
|
146
165
|
const summary = asTrimmedString(msg.toolPayload?.summary);
|
|
147
|
-
if (summary) return clipHeadAndTail(summary, { toolCallId: extractToolCallId(msg) ?? void 0 }).content;
|
|
148
|
-
if (typeof msg.content === "string") return clipHeadAndTail(msg.content, { toolCallId: extractToolCallId(msg) ?? void 0 }).content;
|
|
149
|
-
if (msg.content != null) return clipHeadAndTail(JSON.stringify(msg.content), { toolCallId: extractToolCallId(msg) ?? void 0 }).content;
|
|
166
|
+
if (summary) return clipHeadAndTail(summary, { toolCallId: extractToolCallId(msg) ?? void 0, ...budget ? { maxTotalBytes: budget } : {} }).content;
|
|
167
|
+
if (typeof msg.content === "string") return clipHeadAndTail(msg.content, { toolCallId: extractToolCallId(msg) ?? void 0, ...budget ? { maxTotalBytes: budget } : {} }).content;
|
|
168
|
+
if (msg.content != null) return clipHeadAndTail(JSON.stringify(msg.content), { toolCallId: extractToolCallId(msg) ?? void 0, ...budget ? { maxTotalBytes: budget } : {} }).content;
|
|
150
169
|
return null;
|
|
151
170
|
}
|
|
152
171
|
if (typeof msg.content === "string") return msg.content;
|
|
@@ -232,6 +251,10 @@ var toOpenAIMessage = (rawMsg) => {
|
|
|
232
251
|
if (reasoningContent) cleaned.reasoning_content = reasoningContent;
|
|
233
252
|
}
|
|
234
253
|
if (role === "tool") {
|
|
254
|
+
const metadata = msg.tool_result_metadata ?? msg.metadata;
|
|
255
|
+
if (isCompleteInstructionOutput(name, metadata, typeof content === "string" ? content : "")) {
|
|
256
|
+
Object.defineProperty(cleaned, "tool_result_metadata", { value: metadata, enumerable: false });
|
|
257
|
+
}
|
|
235
258
|
const toolCallId = extractToolCallId(msg);
|
|
236
259
|
if (toolCallId) cleaned.tool_call_id = toolCallId;
|
|
237
260
|
if (!cleaned.tool_call_id) {
|
|
@@ -697,6 +720,7 @@ var processToolData = createAsyncThunk(
|
|
|
697
720
|
runKind: "interactive",
|
|
698
721
|
// 定档信号:这里是前台对话流式路径,来源恒为 chat;对话 id 用于数历史搜索。
|
|
699
722
|
...args.dialogId ? { dialogId: args.dialogId } : {},
|
|
723
|
+
...args.userMessageId ? { userMessageId: args.userMessageId } : {},
|
|
700
724
|
origin: "chat"
|
|
701
725
|
});
|
|
702
726
|
const rawData = toolResult?.rawData ?? toolResult;
|
|
@@ -742,10 +766,8 @@ var processToolData = createAsyncThunk(
|
|
|
742
766
|
const structured = getToolResultErrorData(e);
|
|
743
767
|
const confirmationKey = structured?.code ? CONFIRMATION_INPUT_KEYS[structured.code] : void 0;
|
|
744
768
|
if (confirmationKey) {
|
|
745
|
-
const confirmedInput = {
|
|
746
|
-
|
|
747
|
-
[confirmationKey]: true
|
|
748
|
-
};
|
|
769
|
+
const confirmedInput = structured?.code === "knowledge_capture_requires_confirmation" ? structured?.rawData?.confirmationInput : { ...executionToolArgs ?? {}, [confirmationKey]: true };
|
|
770
|
+
if (!confirmedInput) throw e;
|
|
749
771
|
const summary2 = typeof structured?.displayData === "string" && structured.displayData.trim() || `\u26A0\uFE0F ${canonicalName} \u9700\u8981\u786E\u8BA4\u540E\u6267\u884C`;
|
|
750
772
|
toolRunStarted({
|
|
751
773
|
id: toolRunId,
|
|
@@ -876,7 +898,8 @@ var handleToolCalls = createAsyncThunk(
|
|
|
876
898
|
toolRunId,
|
|
877
899
|
agentKey: agentConfig.dbKey,
|
|
878
900
|
effectiveModel: agentConfig.model,
|
|
879
|
-
dialogId
|
|
901
|
+
dialogId,
|
|
902
|
+
userMessageId: args.userMessageId
|
|
880
903
|
})
|
|
881
904
|
).unwrap();
|
|
882
905
|
const toolName = result.toolName;
|
|
@@ -1567,7 +1590,8 @@ async function processAccumulatedToolCalls(state, ctx) {
|
|
|
1567
1590
|
agentConfig: ctx.agentConfig,
|
|
1568
1591
|
messageId: ctx.messageId,
|
|
1569
1592
|
dialogId: ctx.dialogId,
|
|
1570
|
-
dialogKey: ctx.dialogKey
|
|
1593
|
+
dialogKey: ctx.dialogKey,
|
|
1594
|
+
userMessageId: ctx.userMessageId
|
|
1571
1595
|
})
|
|
1572
1596
|
).unwrap();
|
|
1573
1597
|
const nextState = {
|
|
@@ -1630,7 +1654,8 @@ async function handleStreamCompletion(state, ctx, finalizeCtx) {
|
|
|
1630
1654
|
agentConfig: ctx.agentConfig,
|
|
1631
1655
|
dialogId: ctx.dialogId,
|
|
1632
1656
|
dialogKey: ctx.dialogKey,
|
|
1633
|
-
messageId: ctx.messageId
|
|
1657
|
+
messageId: ctx.messageId,
|
|
1658
|
+
userMessageId: ctx.userMessageId
|
|
1634
1659
|
});
|
|
1635
1660
|
let next = toolResult.state;
|
|
1636
1661
|
hasHandedOff ||= toolResult.hasHandedOff;
|
|
@@ -1652,7 +1677,8 @@ var sendOpenAICompletionsRequest = async ({
|
|
|
1652
1677
|
disableToolsForThisRequest = false,
|
|
1653
1678
|
quickChatPerfStartedAt,
|
|
1654
1679
|
streamThrottlerOptions,
|
|
1655
|
-
outboundDiagnostics
|
|
1680
|
+
outboundDiagnostics,
|
|
1681
|
+
userMessageId
|
|
1656
1682
|
}) => {
|
|
1657
1683
|
const { dispatch, getState, signal: thunkSignal } = thunkApi;
|
|
1658
1684
|
const dialogId = extractCustomId(dialogKey);
|
|
@@ -1938,7 +1964,8 @@ var sendOpenAICompletionsRequest = async ({
|
|
|
1938
1964
|
dialogId,
|
|
1939
1965
|
dialogKey: finalizeCtx.dialogKey,
|
|
1940
1966
|
messageId,
|
|
1941
|
-
agentConfig
|
|
1967
|
+
agentConfig,
|
|
1968
|
+
userMessageId
|
|
1942
1969
|
},
|
|
1943
1970
|
finalizeCtx
|
|
1944
1971
|
);
|
|
@@ -2096,6 +2123,7 @@ ${errorText}`
|
|
|
2096
2123
|
};
|
|
2097
2124
|
|
|
2098
2125
|
export {
|
|
2126
|
+
serializeAgentRunMessages,
|
|
2099
2127
|
filterAndCleanMessages,
|
|
2100
2128
|
persistToolMessages,
|
|
2101
2129
|
deliverHtmlArtifactToolResult,
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveAgentImageInputSupport
|
|
3
|
-
} from "./chunk-3HTP4WZQ.js";
|
|
4
1
|
import {
|
|
5
2
|
TOOL_HAD_IMAGES,
|
|
6
3
|
hadToolImages
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X4O7FJF5.js";
|
|
8
5
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
resolveAgentImageInputSupport
|
|
7
|
+
} from "./chunk-SX6AWTNK.js";
|
|
8
|
+
import {
|
|
9
|
+
isCompleteInstructionOutput,
|
|
10
|
+
sanitizeToolOutputText,
|
|
11
|
+
scrubSecrets
|
|
12
|
+
} from "./chunk-WFGNWWJI.js";
|
|
11
13
|
import {
|
|
12
14
|
asTrimmedString
|
|
13
15
|
} from "./chunk-3EUW3WEO.js";
|
|
14
16
|
import {
|
|
15
17
|
asOptionalFiniteNumber
|
|
16
18
|
} from "./chunk-WWC7I6TA.js";
|
|
19
|
+
import {
|
|
20
|
+
isRecord
|
|
21
|
+
} from "./chunk-KUG52IAP.js";
|
|
17
22
|
import {
|
|
18
23
|
asOptionalTrimmedString
|
|
19
24
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -419,6 +424,12 @@ function sanitizeChatMessage(value) {
|
|
|
419
424
|
if (role === "tool" && (hadToolImages(value) || isRecord(metadata) && metadata[TOOL_HAD_IMAGES] === true)) {
|
|
420
425
|
message.tool_result_metadata = { [TOOL_HAD_IMAGES]: true };
|
|
421
426
|
}
|
|
427
|
+
const toolName = asOptionalTrimmedString(value.toolName) ?? asOptionalTrimmedString(value.name);
|
|
428
|
+
if (role === "tool" && typeof content === "string" && isCompleteInstructionOutput(toolName, metadata, content)) {
|
|
429
|
+
message.content = scrubSecrets(sanitizeToolOutputText(content)).cleaned;
|
|
430
|
+
message.toolName = toolName;
|
|
431
|
+
message.tool_result_metadata = { ...message.tool_result_metadata, projectInstruction: true };
|
|
432
|
+
}
|
|
422
433
|
const toolCalls = sanitizeToolCalls(value.tool_calls);
|
|
423
434
|
if (toolCalls) message.tool_calls = toolCalls;
|
|
424
435
|
if (typeof value.reasoning_content === "string" && value.reasoning_content) {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isPidGone
|
|
3
|
+
} from "./chunk-XKV53E4E.js";
|
|
4
|
+
|
|
5
|
+
// packages/cli/tui/tuiRestart.ts
|
|
6
|
+
import { realpathSync } from "node:fs";
|
|
7
|
+
import { isAbsolute, resolve } from "node:path";
|
|
8
|
+
function getRestartBlocker(state, checks) {
|
|
9
|
+
if (!checks.supported) return "\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u539F\u5730\u91CD\u542F\u3002";
|
|
10
|
+
if (checks.activeProcesses || checks.activeRuns) return "\u540E\u53F0\u4EFB\u52A1\u4ECD\u5728\u8FD0\u884C\u6216\u72B6\u6001\u672A\u786E\u8BA4\uFF0C\u4E0D\u80FD\u91CD\u542F\uFF1B\u8BF7\u7B49\u5F85\u4EFB\u52A1\u7ED3\u675F\u3002";
|
|
11
|
+
if (state.attachedImages.length || state.attachedDocs.length || state.attachedSkills.length || state.pendingCwdNotice || state.pendingTranscripts?.length || state.pendingChildRunNotices?.length || state.pendingProcessNotices?.length) {
|
|
12
|
+
return "\u6709\u672A\u53D1\u9001\u9644\u4EF6\u6216\u5F85\u5904\u7406\u901A\u77E5\uFF0C\u4E0D\u80FD\u91CD\u542F\uFF1B\u8BF7\u5148\u5904\u7406\u3002";
|
|
13
|
+
}
|
|
14
|
+
return void 0;
|
|
15
|
+
}
|
|
16
|
+
function buildRestartEnv(env, state) {
|
|
17
|
+
return {
|
|
18
|
+
...env,
|
|
19
|
+
// Override the startup snapshot, including an empty value after revocation.
|
|
20
|
+
// Omitting the key would let the next process inherit stale grants.
|
|
21
|
+
NOLO_PERMISSION_GRANTS: ["local", "remote"].filter((bucket) => state.permissionGrants?.[bucket] === true).join(","),
|
|
22
|
+
NOLO_CWD: state.cwd,
|
|
23
|
+
NOLO_AGENT: state.agentKey,
|
|
24
|
+
NOLO_AGENT_NAME: state.agentName,
|
|
25
|
+
NOLO_SERVER: state.serverUrl,
|
|
26
|
+
NOLO_RUNTIME_MODE: state.runtimeMode,
|
|
27
|
+
NOLO_DIALOG_ID: state.dialogId ?? "",
|
|
28
|
+
NOLO_DIALOG_KEY: state.dialogKey ?? "",
|
|
29
|
+
NOLO_DIALOG: state.dialogLabel,
|
|
30
|
+
NOLO_TUI_RESTART: "1"
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function hasRestartBlockingRuns(records, pidGone = isPidGone) {
|
|
34
|
+
return records.some((run) => run.status === "running" && (typeof run.pid !== "number" || run.pid <= 0 || !pidGone(run.pid)));
|
|
35
|
+
}
|
|
36
|
+
function buildRestartArgv(args) {
|
|
37
|
+
return args.compiled ? [args.executable, "tui"] : [args.executable, ...args.execArgv, args.entrypoint, "tui"];
|
|
38
|
+
}
|
|
39
|
+
function replaceTuiProcess(executable, argv, env, execve = process.execve) {
|
|
40
|
+
try {
|
|
41
|
+
execve(executable, argv, env);
|
|
42
|
+
} catch (error) {
|
|
43
|
+
throw new Error(`\u539F\u5730\u91CD\u542F\u5931\u8D25\uFF1B\u672A\u542F\u52A8\u65B0\u8FDB\u7A0B\u3002\u5BF9\u8BDD ${env.NOLO_DIALOG_ID || "(new)"}\uFF1Bcwd ${env.NOLO_CWD}\uFF1B${String(error)}`, { cause: error });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function captureRestartExecutable(executable, invocation, lookup = (name) => Bun.which(name), realpath = realpathSync) {
|
|
47
|
+
const candidate = isAbsolute(invocation) ? invocation : invocation.includes("/") ? resolve(invocation) : lookup(invocation);
|
|
48
|
+
try {
|
|
49
|
+
if (candidate && realpath(candidate) === realpath(executable)) return candidate;
|
|
50
|
+
} catch {
|
|
51
|
+
}
|
|
52
|
+
return executable;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
getRestartBlocker,
|
|
57
|
+
buildRestartEnv,
|
|
58
|
+
hasRestartBlockingRuns,
|
|
59
|
+
buildRestartArgv,
|
|
60
|
+
replaceTuiProcess,
|
|
61
|
+
captureRestartExecutable
|
|
62
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// packages/agent-runtime/dialogMessageRecord.ts
|
|
2
|
+
function dialogMessageRecordToAgentRuntimeMessage(record) {
|
|
3
|
+
if (!record || typeof record !== "object") return null;
|
|
4
|
+
if (record.role !== "user" && record.role !== "assistant" && record.role !== "tool") return null;
|
|
5
|
+
return {
|
|
6
|
+
...typeof record.id === "string" ? { id: record.id } : {},
|
|
7
|
+
role: record.role,
|
|
8
|
+
...Number.isFinite(record.metadata?.cliHistoryOrder) ? { cliHistoryOrder: record.metadata.cliHistoryOrder } : {},
|
|
9
|
+
content: record.content ?? "",
|
|
10
|
+
...record.contextReference !== void 0 ? { context_reference: record.contextReference } : {},
|
|
11
|
+
...typeof record.reasoning_content === "string" ? { reasoning_content: record.reasoning_content } : {},
|
|
12
|
+
...typeof record.toolCallId === "string" ? { tool_call_id: record.toolCallId } : {},
|
|
13
|
+
...Array.isArray(record.tool_calls) ? { tool_calls: record.tool_calls } : {},
|
|
14
|
+
...record.toolPayload !== void 0 ? { toolPayload: record.toolPayload } : {},
|
|
15
|
+
...typeof record.toolName === "string" ? { toolName: record.toolName } : {},
|
|
16
|
+
// 写侧(dialogWritePlan)把 tool_result_metadata 以 `metadata` 字段落库;
|
|
17
|
+
// 回读必须还原,否则跨 turn 投影丢失 metadata 后缀,同一 tool 消息的字节
|
|
18
|
+
// 在 turn 边界漂移 → provider 前缀缓存断裂(stable projection 契约,
|
|
19
|
+
// 见 docs/plans/2026-09-05-tool-output-cache-stability.md)。
|
|
20
|
+
...record.metadata && typeof record.metadata === "object" ? { tool_result_metadata: record.metadata } : {},
|
|
21
|
+
...(() => {
|
|
22
|
+
const raw = record.createdAt;
|
|
23
|
+
const ms = typeof raw === "number" ? raw : typeof raw === "string" ? Date.parse(raw) : NaN;
|
|
24
|
+
return Number.isFinite(ms) ? { createdAt: ms } : {};
|
|
25
|
+
})()
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
dialogMessageRecordToAgentRuntimeMessage
|
|
31
|
+
};
|