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
|
@@ -7,27 +7,28 @@ import {
|
|
|
7
7
|
listUserRecordsFromServers,
|
|
8
8
|
readDbRecordFromServers,
|
|
9
9
|
readLiveDbRecordAfterTombstoneMerge
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5UAKGCQG.js";
|
|
11
11
|
import {
|
|
12
12
|
parsePositiveFiniteNumberOrFallback
|
|
13
13
|
} from "./chunk-Y5GCAMGP.js";
|
|
14
14
|
import {
|
|
15
|
+
loadLocalRunChildDialogIds
|
|
16
|
+
} from "./chunk-EQZZASCD.js";
|
|
17
|
+
import {
|
|
18
|
+
buildDialogAttachmentPlan,
|
|
19
|
+
extractFileContentIds,
|
|
15
20
|
fetchWithTransientRetry
|
|
16
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DXWGFL2Z.js";
|
|
17
22
|
import {
|
|
18
23
|
DRAIN_EXHAUSTED_USER_MESSAGE,
|
|
19
24
|
isDrainExhaustedResponse
|
|
20
25
|
} from "./chunk-3L2WKC3W.js";
|
|
21
26
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./chunk-KEPOVMF4.js";
|
|
25
|
-
import {
|
|
26
|
-
resolveRunsDir
|
|
27
|
-
} from "./chunk-XIEYGCN6.js";
|
|
27
|
+
createClientLogger
|
|
28
|
+
} from "./chunk-QQ56R7KS.js";
|
|
28
29
|
import {
|
|
29
30
|
getDefaultCliLocalRuntimeDb
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-2BSLGODA.js";
|
|
31
32
|
import {
|
|
32
33
|
isLevelLockError
|
|
33
34
|
} from "./chunk-ZYKJBRZ3.js";
|
|
@@ -36,14 +37,11 @@ import {
|
|
|
36
37
|
resolveNoloHome,
|
|
37
38
|
resolveServerDbPath
|
|
38
39
|
} from "./chunk-GLKOYSRU.js";
|
|
39
|
-
import {
|
|
40
|
-
createClientLogger
|
|
41
|
-
} from "./chunk-QQ56R7KS.js";
|
|
42
40
|
import {
|
|
43
41
|
boundSummaryText,
|
|
44
42
|
buildDialogReadEnvelope,
|
|
45
43
|
projectDialogReadForAgent
|
|
46
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LOF2EFUE.js";
|
|
47
45
|
import {
|
|
48
46
|
asRecordOrEmpty
|
|
49
47
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -51,11 +49,15 @@ import {
|
|
|
51
49
|
isLevelNotFoundError
|
|
52
50
|
} from "./chunk-OW765XBU.js";
|
|
53
51
|
import {
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
dialogIdFromKey,
|
|
53
|
+
isSupportedDialogId,
|
|
54
|
+
parseDialogPathIdentity,
|
|
55
|
+
splitDialogKeyIdentity
|
|
56
|
+
} from "./chunk-YZMNK53S.js";
|
|
56
57
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
asNonEmptyStringArray,
|
|
59
|
+
asTrimmedNonEmptyStringArray
|
|
60
|
+
} from "./chunk-I42VC5KR.js";
|
|
59
61
|
import {
|
|
60
62
|
parseUserIdFromAuthToken,
|
|
61
63
|
readOption,
|
|
@@ -63,29 +65,29 @@ import {
|
|
|
63
65
|
resolveDeleteServerCandidates,
|
|
64
66
|
resolveServerCandidates,
|
|
65
67
|
resolveServerUrl
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import {
|
|
68
|
-
DEFAULT_LOCAL_API_ORIGIN
|
|
69
|
-
} from "./chunk-4SN6J65J.js";
|
|
68
|
+
} from "./chunk-BIDSIRTS.js";
|
|
70
69
|
import {
|
|
71
70
|
t
|
|
72
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-OGZE6BZG.js";
|
|
73
72
|
import {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
parseDialogPathIdentity,
|
|
77
|
-
splitDialogKeyIdentity
|
|
78
|
-
} from "./chunk-YZMNK53S.js";
|
|
79
|
-
import {
|
|
80
|
-
asNonEmptyStringArray,
|
|
81
|
-
asTrimmedNonEmptyStringArray
|
|
82
|
-
} from "./chunk-I42VC5KR.js";
|
|
73
|
+
toErrorMessage
|
|
74
|
+
} from "./chunk-HNMXYYJR.js";
|
|
83
75
|
import {
|
|
84
76
|
asTrimmedString
|
|
85
77
|
} from "./chunk-3EUW3WEO.js";
|
|
78
|
+
import {
|
|
79
|
+
isRecord
|
|
80
|
+
} from "./chunk-KUG52IAP.js";
|
|
86
81
|
import {
|
|
87
82
|
asOptionalTrimmedString
|
|
88
83
|
} from "./chunk-G3SUCT4W.js";
|
|
84
|
+
import {
|
|
85
|
+
DEFAULT_LOCAL_API_ORIGIN
|
|
86
|
+
} from "./chunk-4SN6J65J.js";
|
|
87
|
+
|
|
88
|
+
// packages/cli/dialogCommands.ts
|
|
89
|
+
import { write as writeFd } from "node:fs";
|
|
90
|
+
import { Writable } from "node:stream";
|
|
89
91
|
|
|
90
92
|
// packages/cli/dialogAttachmentCleanup.ts
|
|
91
93
|
function asText(value) {
|
|
@@ -205,32 +207,6 @@ function parsePositiveIntegerOrFallback(value, fallback) {
|
|
|
205
207
|
return Number.isInteger(parsed) && parsed > 0 ? parsed : fallback;
|
|
206
208
|
}
|
|
207
209
|
|
|
208
|
-
// packages/cli/tui/localRunChildDialogIds.ts
|
|
209
|
-
import { readdirSync, readFileSync } from "node:fs";
|
|
210
|
-
import { join } from "node:path";
|
|
211
|
-
function loadLocalRunChildDialogIds(args = {}) {
|
|
212
|
-
const ids = /* @__PURE__ */ new Set();
|
|
213
|
-
const runsDir = resolveRunsDir(args.env, args.homedir);
|
|
214
|
-
let entries;
|
|
215
|
-
try {
|
|
216
|
-
entries = readdirSync(runsDir);
|
|
217
|
-
} catch {
|
|
218
|
-
return ids;
|
|
219
|
-
}
|
|
220
|
-
for (const name of entries) {
|
|
221
|
-
if (!name.endsWith(".json")) continue;
|
|
222
|
-
try {
|
|
223
|
-
const record = JSON.parse(readFileSync(join(runsDir, name), "utf8"));
|
|
224
|
-
const dialogId = record?.dialogId;
|
|
225
|
-
if (typeof dialogId === "string" && dialogId.trim()) {
|
|
226
|
-
ids.add(dialogId.trim());
|
|
227
|
-
}
|
|
228
|
-
} catch {
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
return ids;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
210
|
// packages/cli/dialogCommands.ts
|
|
235
211
|
var logger = createClientLogger("cli:dialog");
|
|
236
212
|
var DEFAULT_DIALOG_LIST_LIMIT = 50;
|
|
@@ -344,6 +320,73 @@ ${indented}`);
|
|
|
344
320
|
output.write(`${JSON.stringify(value, null, 2)}
|
|
345
321
|
`);
|
|
346
322
|
}
|
|
323
|
+
async function writeDialogReadJson(output, json) {
|
|
324
|
+
const text = `${json}
|
|
325
|
+
`;
|
|
326
|
+
if (output === process.stdout) {
|
|
327
|
+
const bytes = Buffer.from(text, "utf8");
|
|
328
|
+
let offset = 0;
|
|
329
|
+
while (offset < bytes.length) {
|
|
330
|
+
const written = await new Promise((resolve, reject) => {
|
|
331
|
+
const attempt = () => writeFd(1, bytes, offset, Math.min(16384, bytes.length - offset), null, (error, count) => {
|
|
332
|
+
if (error?.code === "EAGAIN" || error?.code === "EWOULDBLOCK") {
|
|
333
|
+
setTimeout(attempt, 1);
|
|
334
|
+
} else if (error) reject(error);
|
|
335
|
+
else resolve(count);
|
|
336
|
+
});
|
|
337
|
+
attempt();
|
|
338
|
+
});
|
|
339
|
+
if (written <= 0) throw new Error("stdout write made no progress");
|
|
340
|
+
offset += written;
|
|
341
|
+
}
|
|
342
|
+
} else if (output instanceof Writable) {
|
|
343
|
+
await new Promise((resolve, reject) => {
|
|
344
|
+
let settled = false;
|
|
345
|
+
let writeStarted = false;
|
|
346
|
+
let stateCheck;
|
|
347
|
+
const cleanup = () => {
|
|
348
|
+
clearInterval(stateCheck);
|
|
349
|
+
output.off("error", onError);
|
|
350
|
+
output.off("close", checkState);
|
|
351
|
+
output.off("finish", checkState);
|
|
352
|
+
};
|
|
353
|
+
const settle = (error) => {
|
|
354
|
+
if (settled) return;
|
|
355
|
+
settled = true;
|
|
356
|
+
if (error) setTimeout(() => {
|
|
357
|
+
cleanup();
|
|
358
|
+
reject(error);
|
|
359
|
+
}, 0);
|
|
360
|
+
else {
|
|
361
|
+
cleanup();
|
|
362
|
+
resolve();
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
const onError = (error) => settle(error);
|
|
366
|
+
const checkState = () => {
|
|
367
|
+
if (output.errored) settle(output.errored);
|
|
368
|
+
else if (output.destroyed || output.closed || output.writableFinished || !writeStarted && output.writableEnded) {
|
|
369
|
+
settle(new Error("stdout Writable closed before write completion"));
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
output.on("error", onError);
|
|
373
|
+
output.on("close", checkState);
|
|
374
|
+
output.on("finish", checkState);
|
|
375
|
+
checkState();
|
|
376
|
+
if (settled) return;
|
|
377
|
+
stateCheck = setInterval(checkState, 10);
|
|
378
|
+
try {
|
|
379
|
+
writeStarted = true;
|
|
380
|
+
output.write(text, (error) => settle(error));
|
|
381
|
+
checkState();
|
|
382
|
+
} catch (error) {
|
|
383
|
+
settle(error instanceof Error ? error : new Error(String(error)));
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
} else {
|
|
387
|
+
output.write(text);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
347
390
|
function writeJsonlStream(output, items) {
|
|
348
391
|
for (const item of items) {
|
|
349
392
|
output.write(`${JSON.stringify(item)}
|
|
@@ -782,7 +825,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
|
|
|
782
825
|
return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
|
|
783
826
|
}
|
|
784
827
|
async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
|
|
785
|
-
const reader = readLocalDialog ?? (await import("./localDialogRead-
|
|
828
|
+
const reader = readLocalDialog ?? (await import("./localDialogRead-3T2KMCRC.js")).readDialogFromLocalDb;
|
|
786
829
|
const result = await reader({ dialogKey, dialogId, limit });
|
|
787
830
|
return {
|
|
788
831
|
...result,
|
|
@@ -797,7 +840,7 @@ async function readLocalDialogAtDbPathDefault(args) {
|
|
|
797
840
|
);
|
|
798
841
|
}
|
|
799
842
|
const db = await getDefaultCliLocalRuntimeDb();
|
|
800
|
-
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-
|
|
843
|
+
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-3T2KMCRC.js");
|
|
801
844
|
return reader({ ...args, db });
|
|
802
845
|
}
|
|
803
846
|
async function readDialogFromLocalDbWithFallback(args) {
|
|
@@ -1355,11 +1398,10 @@ async function runDialogReadCommand(args, deps = {}) {
|
|
|
1355
1398
|
},
|
|
1356
1399
|
options: { maxResponseChars: agentMaxResponseChars }
|
|
1357
1400
|
});
|
|
1358
|
-
output
|
|
1359
|
-
output.write("\n");
|
|
1401
|
+
await writeDialogReadJson(output, built.serialized);
|
|
1360
1402
|
return 0;
|
|
1361
1403
|
}
|
|
1362
|
-
output
|
|
1404
|
+
await writeDialogReadJson(output, JSON.stringify({
|
|
1363
1405
|
source: read.source,
|
|
1364
1406
|
base: read.resolvedBase,
|
|
1365
1407
|
triedBases: read.candidateBases,
|
|
@@ -1408,11 +1450,11 @@ async function runDialogReadCommand(args, deps = {}) {
|
|
|
1408
1450
|
lastAssistantMessage,
|
|
1409
1451
|
messages: outputMsgs
|
|
1410
1452
|
}, null, 2));
|
|
1411
|
-
output.write("\n");
|
|
1412
1453
|
return 0;
|
|
1413
1454
|
} catch (error) {
|
|
1414
|
-
|
|
1415
|
-
|
|
1455
|
+
const diagnostic = `${formatDialogReadFailure(error, target.dialogId)}
|
|
1456
|
+
`;
|
|
1457
|
+
(deps.error ?? (output instanceof Writable ? process.stderr : output)).write(diagnostic);
|
|
1416
1458
|
return 1;
|
|
1417
1459
|
}
|
|
1418
1460
|
}
|
|
@@ -1985,7 +2027,6 @@ ${d.title}
|
|
|
1985
2027
|
}
|
|
1986
2028
|
|
|
1987
2029
|
export {
|
|
1988
|
-
loadLocalRunChildDialogIds,
|
|
1989
2030
|
normalizeDialogRecord,
|
|
1990
2031
|
sortDialogs,
|
|
1991
2032
|
isScheduledDialog,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// packages/cli/agentCommandSupport.ts
|
|
6
6
|
async function getDefaultCliDb() {
|
|
7
|
-
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-
|
|
7
|
+
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-5WZ4RJJO.js");
|
|
8
8
|
return getDefaultCliLocalRuntimeDb();
|
|
9
9
|
}
|
|
10
10
|
function createNullCliDb() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalizeToolName
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YLAHYLDQ.js";
|
|
4
4
|
|
|
5
5
|
// packages/ai/tools/toolExecutionSemantics.ts
|
|
6
6
|
var UNKNOWN_TOOL_EXECUTION_CONTRACT = {
|
|
@@ -38,6 +38,34 @@ var serverConfirmedHandoffStep = () => ({
|
|
|
38
38
|
durableWebForeground: false
|
|
39
39
|
});
|
|
40
40
|
var TOOL_EXECUTION_CONTRACT = Object.freeze({
|
|
41
|
+
listPlugins: serverPureRead(false),
|
|
42
|
+
configurePlugin: serverPureRead(false),
|
|
43
|
+
diagnosePlugin: serverPureRead(false),
|
|
44
|
+
setPluginEnabled: {
|
|
45
|
+
replay: "unsafe",
|
|
46
|
+
sideEffects: "mutation",
|
|
47
|
+
locality: "server",
|
|
48
|
+
interaction: "none",
|
|
49
|
+
concurrency: "exclusive",
|
|
50
|
+
durableWebForeground: false
|
|
51
|
+
},
|
|
52
|
+
listMcpConnections: serverPureRead(false),
|
|
53
|
+
listMcpTools: {
|
|
54
|
+
replay: "unsafe",
|
|
55
|
+
sideEffects: "observable",
|
|
56
|
+
locality: "server",
|
|
57
|
+
interaction: "none",
|
|
58
|
+
concurrency: "exclusive",
|
|
59
|
+
durableWebForeground: false
|
|
60
|
+
},
|
|
61
|
+
callMcpTool: {
|
|
62
|
+
replay: "unsafe",
|
|
63
|
+
sideEffects: "unknown",
|
|
64
|
+
locality: "server",
|
|
65
|
+
interaction: "confirm",
|
|
66
|
+
concurrency: "exclusive",
|
|
67
|
+
durableWebForeground: false
|
|
68
|
+
},
|
|
41
69
|
// Proven durable network reads. They execute on the server but touch external
|
|
42
70
|
// systems, so replay/cost semantics are intentionally not called "pure".
|
|
43
71
|
exa_search: serverExternalRead("read-only"),
|
|
@@ -125,6 +153,14 @@ var TOOL_EXECUTION_CONTRACT = Object.freeze({
|
|
|
125
153
|
concurrency: "safe",
|
|
126
154
|
durableWebForeground: false
|
|
127
155
|
},
|
|
156
|
+
searchFiles: {
|
|
157
|
+
replay: "idempotent",
|
|
158
|
+
sideEffects: "none",
|
|
159
|
+
locality: "device",
|
|
160
|
+
interaction: "none",
|
|
161
|
+
concurrency: "safe",
|
|
162
|
+
durableWebForeground: false
|
|
163
|
+
},
|
|
128
164
|
createDoc: {
|
|
129
165
|
replay: "unsafe",
|
|
130
166
|
sideEffects: "mutation",
|
|
@@ -4,9 +4,18 @@ import {
|
|
|
4
4
|
normalizeNonNegativeMs,
|
|
5
5
|
parseRetryAfterHeaderMs
|
|
6
6
|
} from "./chunk-3L2WKC3W.js";
|
|
7
|
+
import {
|
|
8
|
+
dialogMessageKey
|
|
9
|
+
} from "./chunk-OJKUU3LP.js";
|
|
7
10
|
import {
|
|
8
11
|
toErrorMessage
|
|
9
12
|
} from "./chunk-HNMXYYJR.js";
|
|
13
|
+
import {
|
|
14
|
+
asOptionalFiniteNumber
|
|
15
|
+
} from "./chunk-WWC7I6TA.js";
|
|
16
|
+
import {
|
|
17
|
+
asOptionalTrimmedString
|
|
18
|
+
} from "./chunk-G3SUCT4W.js";
|
|
10
19
|
import {
|
|
11
20
|
isLoopbackHostname
|
|
12
21
|
} from "./chunk-4SN6J65J.js";
|
|
@@ -124,7 +133,86 @@ async function fetchWithTransientRetry(fetchImpl, input, init, options = {}) {
|
|
|
124
133
|
throw lastError;
|
|
125
134
|
}
|
|
126
135
|
|
|
136
|
+
// packages/core/chat/dialogAttachmentCleanup.ts
|
|
137
|
+
var FILE_CONTENT_RE = /(?:https?:\/\/[^/"'\s]+)?\/api\/v1\/db\/file\/content\/([^?#"'\s)]+)/g;
|
|
138
|
+
function extractFileContentIds(value) {
|
|
139
|
+
const ids = /* @__PURE__ */ new Set();
|
|
140
|
+
const visit = (input) => {
|
|
141
|
+
if (typeof input === "string") {
|
|
142
|
+
for (const match of input.matchAll(FILE_CONTENT_RE)) {
|
|
143
|
+
const fileId = decodeURIComponent(match[1] ?? "").trim();
|
|
144
|
+
if (fileId) ids.add(fileId);
|
|
145
|
+
}
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (Array.isArray(input)) {
|
|
149
|
+
for (const item of input) visit(item);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (input && typeof input === "object") {
|
|
153
|
+
for (const item of Object.values(input)) visit(item);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
visit(value);
|
|
157
|
+
return [...ids];
|
|
158
|
+
}
|
|
159
|
+
function messageDbKey(dialogId, message) {
|
|
160
|
+
const dbKey = asOptionalTrimmedString(message.dbKey);
|
|
161
|
+
if (dbKey) return dbKey;
|
|
162
|
+
const id = asOptionalTrimmedString(message.id);
|
|
163
|
+
if (id) return dialogMessageKey(dialogId, id);
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
function asText(value) {
|
|
167
|
+
return asOptionalTrimmedString(value) ?? null;
|
|
168
|
+
}
|
|
169
|
+
function buildDialogAttachmentPlan(args) {
|
|
170
|
+
const messageKeys = new Set(
|
|
171
|
+
args.messages.map((message) => messageDbKey(args.dialogId, message)).filter((key) => Boolean(key))
|
|
172
|
+
);
|
|
173
|
+
const referencedFileIds = [
|
|
174
|
+
...new Set(args.messages.flatMap((message) => extractFileContentIds(message)))
|
|
175
|
+
];
|
|
176
|
+
const candidates = referencedFileIds.map((fileId) => {
|
|
177
|
+
const metadata = args.metadataByFileId[fileId];
|
|
178
|
+
const ownerType = asText(metadata?.ownerType);
|
|
179
|
+
const ownerId = asText(metadata?.ownerId);
|
|
180
|
+
const ownerDbKey = asText(metadata?.ownerDbKey);
|
|
181
|
+
const fileDbKey = asText(metadata?.dbKey);
|
|
182
|
+
const source = asText(metadata?.source);
|
|
183
|
+
const ownedByDialog = ownerType === "dialog" && ownerId === args.dialogId;
|
|
184
|
+
const ownedByMessage = Boolean(ownerDbKey && messageKeys.has(ownerDbKey));
|
|
185
|
+
const userOwnedReferenced = args.includeUserOwnedReferenced === true && Boolean(args.ownerId) && ownerType === "user" && ownerId === args.ownerId;
|
|
186
|
+
const canDelete = Boolean(fileDbKey && (ownedByDialog || ownedByMessage || userOwnedReferenced));
|
|
187
|
+
return {
|
|
188
|
+
fileId,
|
|
189
|
+
fileDbKey,
|
|
190
|
+
size: asOptionalFiniteNumber(metadata?.size) ?? null,
|
|
191
|
+
ownerType,
|
|
192
|
+
ownerId,
|
|
193
|
+
ownerDbKey,
|
|
194
|
+
source,
|
|
195
|
+
status: canDelete ? "delete" : "retain",
|
|
196
|
+
reason: canDelete ? ownedByMessage ? "ownerDbKey matches a message in this dialog" : userOwnedReferenced ? "user-owned file is referenced by this dialog and explicit referenced-attachment deletion is enabled" : "ownerType/ownerId matches this dialog" : fileDbKey ? "file ownership is not exclusive to this dialog" : "file metadata not found"
|
|
197
|
+
};
|
|
198
|
+
});
|
|
199
|
+
const deleteCandidates = candidates.filter((candidate) => candidate.status === "delete");
|
|
200
|
+
const retainedCandidates = candidates.filter((candidate) => candidate.status === "retain");
|
|
201
|
+
return {
|
|
202
|
+
dialogId: args.dialogId,
|
|
203
|
+
messageCount: args.messages.length,
|
|
204
|
+
referencedFileIds,
|
|
205
|
+
candidates,
|
|
206
|
+
deleteCandidates,
|
|
207
|
+
retainedCandidates,
|
|
208
|
+
bytesToDelete: deleteCandidates.reduce((sum, candidate) => sum + (candidate.size ?? 0), 0),
|
|
209
|
+
metadataReadFailures: args.metadataReadFailures ?? []
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
|
|
127
213
|
export {
|
|
128
214
|
isTransientFetchError,
|
|
129
|
-
fetchWithTransientRetry
|
|
215
|
+
fetchWithTransientRetry,
|
|
216
|
+
extractFileContentIds,
|
|
217
|
+
buildDialogAttachmentPlan
|
|
130
218
|
};
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
chmodSync,
|
|
13
13
|
existsSync,
|
|
14
|
+
lstatSync,
|
|
14
15
|
mkdirSync,
|
|
15
16
|
readFileSync,
|
|
16
17
|
unlinkSync,
|
|
@@ -79,7 +80,9 @@ function migrateApiKeyCredentialIfNeeded(ref, homeDir, migration) {
|
|
|
79
80
|
}
|
|
80
81
|
function readApiKeyCredential(ref, homeDir, migration) {
|
|
81
82
|
migrateApiKeyCredentialIfNeeded(ref, homeDir, migration);
|
|
82
|
-
|
|
83
|
+
return readApiKeyCredentialFile(getApiKeyCredentialPath(ref, homeDir));
|
|
84
|
+
}
|
|
85
|
+
function readApiKeyCredentialFile(path) {
|
|
83
86
|
if (!existsSync(path)) return null;
|
|
84
87
|
try {
|
|
85
88
|
const raw = readFileSync(path, "utf8");
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSseFrames
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
|
-
import {
|
|
5
|
-
resolveToolImagePolicy
|
|
6
|
-
} from "./chunk-3HTP4WZQ.js";
|
|
7
4
|
import {
|
|
8
5
|
accumulateToolCallDelta,
|
|
9
6
|
createThinkParserState,
|
|
@@ -31,7 +28,10 @@ import {
|
|
|
31
28
|
stablePromptCacheKey,
|
|
32
29
|
toOpenAiCompatibleMessages,
|
|
33
30
|
toResponsesTools
|
|
34
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-W3HSD32M.js";
|
|
32
|
+
import {
|
|
33
|
+
resolveToolImagePolicy
|
|
34
|
+
} from "./chunk-SX6AWTNK.js";
|
|
35
35
|
import {
|
|
36
36
|
isMeaningfulChatCompletionOutput,
|
|
37
37
|
isMeaningfulResponsesOutput
|
|
@@ -51,14 +51,14 @@ import {
|
|
|
51
51
|
resolvePlatformAuthToken,
|
|
52
52
|
resolvePlatformServerUrl,
|
|
53
53
|
resolveProviderTransportDecision
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-K26XPZRB.js";
|
|
55
55
|
import {
|
|
56
56
|
isRecord
|
|
57
57
|
} from "./chunk-KUG52IAP.js";
|
|
58
58
|
import {
|
|
59
59
|
NOLO_CLIENT_VERSION_HEADER,
|
|
60
60
|
isPlatformMimoProviderModel
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-PQ63BDV3.js";
|
|
62
62
|
|
|
63
63
|
// packages/ai/token/sseUsageExtract.ts
|
|
64
64
|
var TOKEN_FIELDS = [
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveRunsDir
|
|
3
|
+
} from "./chunk-XKV53E4E.js";
|
|
1
4
|
import {
|
|
2
5
|
isLoopbackHostname
|
|
3
6
|
} from "./chunk-4SN6J65J.js";
|
|
@@ -66,7 +69,34 @@ async function defaultLoopbackRequest(input, init) {
|
|
|
66
69
|
});
|
|
67
70
|
}
|
|
68
71
|
|
|
72
|
+
// packages/cli/tui/localRunChildDialogIds.ts
|
|
73
|
+
import { readdirSync, readFileSync } from "node:fs";
|
|
74
|
+
import { join } from "node:path";
|
|
75
|
+
function loadLocalRunChildDialogIds(args = {}) {
|
|
76
|
+
const ids = /* @__PURE__ */ new Set();
|
|
77
|
+
const runsDir = resolveRunsDir(args.env, args.homedir);
|
|
78
|
+
let entries;
|
|
79
|
+
try {
|
|
80
|
+
entries = readdirSync(runsDir);
|
|
81
|
+
} catch {
|
|
82
|
+
return ids;
|
|
83
|
+
}
|
|
84
|
+
for (const name of entries) {
|
|
85
|
+
if (!name.endsWith(".json")) continue;
|
|
86
|
+
try {
|
|
87
|
+
const record = JSON.parse(readFileSync(join(runsDir, name), "utf8"));
|
|
88
|
+
const dialogId = record?.dialogId;
|
|
89
|
+
if (typeof dialogId === "string" && dialogId.trim()) {
|
|
90
|
+
ids.add(dialogId.trim());
|
|
91
|
+
}
|
|
92
|
+
} catch {
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return ids;
|
|
96
|
+
}
|
|
97
|
+
|
|
69
98
|
export {
|
|
70
99
|
isLoopbackUrl,
|
|
71
|
-
defaultLoopbackRequest
|
|
100
|
+
defaultLoopbackRequest,
|
|
101
|
+
loadLocalRunChildDialogIds
|
|
72
102
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getModelConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CD2DK5JA.js";
|
|
4
4
|
import {
|
|
5
5
|
isPlatformHostedDeepseekModel,
|
|
6
6
|
isPlatformHostedOpenAIImageModel,
|
|
7
7
|
resolvePlatformHostedRouting
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PQ63BDV3.js";
|
|
9
9
|
import {
|
|
10
10
|
asTrimmedLowercaseString
|
|
11
11
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -101,6 +101,7 @@ function resolvePlatformHostedCredentialProvider(provider, model) {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
export {
|
|
104
|
+
OPENAI_RESPONSES_ENDPOINT,
|
|
104
105
|
isOpenAiResponsesModel,
|
|
105
106
|
resolvePlatformResponsesEndpoint,
|
|
106
107
|
resolvePlatformChatCompletionsEndpoint,
|
|
@@ -14,6 +14,16 @@ var authRoutes = {
|
|
|
14
14
|
method: "POST",
|
|
15
15
|
createPath: () => `${API_VERSION}/users/signup`
|
|
16
16
|
},
|
|
17
|
+
google: {
|
|
18
|
+
start: { path: `${API_VERSION}/users/google/start`, method: "POST", createPath: () => `${API_VERSION}/users/google/start` },
|
|
19
|
+
callback: { path: `${API_VERSION}/users/google/callback`, method: "GET", createPath: () => `${API_VERSION}/users/google/callback` },
|
|
20
|
+
complete: { path: `${API_VERSION}/users/google/complete`, method: "POST", createPath: () => `${API_VERSION}/users/google/complete` },
|
|
21
|
+
bindConfirm: { path: `${API_VERSION}/users/google/bind/confirm`, method: "POST", createPath: () => `${API_VERSION}/users/google/bind/confirm` },
|
|
22
|
+
binding: { path: `${API_VERSION}/users/google/binding`, method: "GET", createPath: () => `${API_VERSION}/users/google/binding` },
|
|
23
|
+
sessionLogout: { path: `${API_VERSION}/users/google/session/logout`, method: "POST", createPath: () => `${API_VERSION}/users/google/session/logout` },
|
|
24
|
+
sessionRevokeStart: { path: `${API_VERSION}/users/google/session-revoke/start`, method: "POST", createPath: () => `${API_VERSION}/users/google/session-revoke/start` },
|
|
25
|
+
sessionRevokeConfirm: { path: `${API_VERSION}/users/google/session-revoke/confirm`, method: "POST", createPath: () => `${API_VERSION}/users/google/session-revoke/confirm` }
|
|
26
|
+
},
|
|
17
27
|
users: {
|
|
18
28
|
cliLoginStart: {
|
|
19
29
|
path: `${API_VERSION}/users/cli-login/start`,
|