nolo-cli 0.226.0-alpha.2 → 0.226.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -5
- package/{_executeModel-IKZGZZXW.js → _executeModel-IZ2MCXHO.js} +89 -83
- package/{action-CK64LS6S.js → action-VDEW6WLI.js} +9 -6
- package/{addContentAction-EQXMFNPR.js → addContentAction-7YVXHIPQ.js} +15 -14
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-BX7B47HF.js} +18 -17
- package/{agentDeleteCommand-IZY3VF5F.js → agentDeleteCommand-N7ELXPLD.js} +145 -138
- package/{agentEmailCommands-YWL567CL.js → agentEmailCommands-OFS477PV.js} +144 -133
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/agentListCommands-IQQHJSXP.js +644 -0
- package/{agentMachineCommands-AXJ4A772.js → agentMachineCommands-NS65BEW7.js} +75 -66
- package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-SS6M6VGY.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
- package/agentRecordCommands-4VE7CNLC.js +188 -0
- package/agentRunCommand-2MUXHKNW.js +223 -0
- package/{agentRunControl-DFEEOFC7.js → agentRunControl-55GL6Q3M.js} +23 -15
- package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5DB2P4MU.js} +63 -49
- package/{agentSlice-5F5U5X2U.js → agentSlice-5VTAFG43.js} +19 -18
- package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-EDKUPHJM.js} +67 -58
- package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-JO74GW4L.js} +67 -58
- package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-U77ZUHX7.js} +67 -58
- package/{appGetCommands-LN72GAOA.js → appGetCommands-QCMHBYPX.js} +67 -58
- package/{appListCommands-IJQQ3VND.js → appListCommands-ZQJYEXI6.js} +67 -58
- package/{authCommand-7JXW54U4.js → authCommand-W4KXRZLI.js} +33 -28
- package/{authCommands-YDNAIDEY.js → authCommands-6AUYO65N.js} +15 -10
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-GHE3RD3V.js} +8 -8
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-TBPM6MR4.js} +6 -6
- package/{chunk-7Z6EW7AH.js → chunk-247AAJRK.js} +13 -6
- package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
- package/{chunk-4HFTBHBF.js → chunk-2N4UBHUU.js} +8 -8
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-GBUDWITV.js → chunk-2T5BHLID.js} +2871 -1565
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-VFBVA3U2.js → chunk-3OQFXODL.js} +131 -40
- package/{chunk-BGGHA5DV.js → chunk-3ORFJP2Z.js} +1 -1
- package/{chunk-E5EIYI34.js → chunk-3UNAGTBW.js} +32 -95
- package/{chunk-LM2PS3YS.js → chunk-4F7SWSWO.js} +26 -13
- package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
- package/{chunk-GOAPXKQU.js → chunk-4UK6UBXF.js} +4 -4
- package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-NEKH3XDV.js → chunk-5GRWWUB4.js} +4 -4
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-ZH6MUQEO.js → chunk-6326DRQY.js} +1 -1
- package/{chunk-AVHRSJUH.js → chunk-6MQWGA5F.js} +31 -24
- package/{chunk-67BE44IS.js → chunk-6MX6S6TE.js} +3 -3
- package/chunk-6RSNVJGO.js +279 -0
- package/{chunk-L4NFXFFF.js → chunk-6S6CZUXK.js} +42 -33
- package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-JHRQXQ4A.js → chunk-6XLWUNZB.js} +25 -25
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
- package/{chunk-6J4TTPS2.js → chunk-7AWKDRXG.js} +5 -5
- package/{chunk-3KNEE64G.js → chunk-7GTXPS3D.js} +16 -16
- package/{chunk-RRVQ446B.js → chunk-7HUHOCIY.js} +147 -162
- package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
- package/chunk-BEM6LPD2.js +734 -0
- package/{chunk-AGP3YSEC.js → chunk-BH7CEVOH.js} +46 -1
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-4AMQZTE7.js → chunk-C4KX626C.js} +15 -15
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-BYH3HMUP.js → chunk-CHYYSFFM.js} +6 -6
- package/{chunk-VREDDN25.js → chunk-CJTB3OYB.js} +14 -9
- package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-EOWLBDY6.js → chunk-DOK7GDRU.js} +1 -1
- package/{chunk-T3T57NVP.js → chunk-DPAIQLAL.js} +105 -102
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-XN23AUVU.js → chunk-EKXPHL7M.js} +8 -5
- package/{chunk-DISQCYPE.js → chunk-ENYTIRIO.js} +6 -6
- package/{chunk-2TIQO6TC.js → chunk-ER3P6MBT.js} +206 -308
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-JM5C4EUA.js → chunk-F4MCAOWN.js} +6 -6
- package/chunk-FDZ2GBWO.js +166 -0
- package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
- package/{chunk-N5PQJKCY.js → chunk-GES5GIAU.js} +14 -13
- package/{chunk-QTMIHVLE.js → chunk-HQVNO7FH.js} +66 -35
- package/chunk-HSWEFHFS.js +103 -0
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-F7DU25CE.js → chunk-IIG3TT73.js} +460 -123
- package/{chunk-AK5O76CC.js → chunk-IZJFTY4R.js} +3 -3
- package/{chunk-2VA6TU4I.js → chunk-J25ESVUW.js} +22 -19
- package/{chunk-2COEG5ZV.js → chunk-J2XZZXIH.js} +4 -4
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-D726I5AZ.js → chunk-JVJ53XCH.js} +2 -2
- package/{chunk-TXGQ4O5S.js → chunk-KC2QVCI7.js} +20 -174
- package/{chunk-UKS7D2NL.js → chunk-KF2DWSAH.js} +113 -28
- package/chunk-KK3FCYZM.js +647 -0
- package/{chunk-HHL7WG65.js → chunk-KLD7K5FD.js} +349 -16
- package/{chunk-WSJMT3FA.js → chunk-KMW5CRRM.js} +1564 -2955
- package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
- package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
- package/{chunk-KZU52OJ5.js → chunk-LZOOUQAZ.js} +6 -6
- package/{chunk-VV7TXWOC.js → chunk-M5EA44QU.js} +6 -6
- package/{chunk-UYOICCYG.js → chunk-MEDPR36J.js} +64 -89
- package/chunk-MFXJY44K.js +133 -0
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
- package/{chunk-SOF4OWDM.js → chunk-NEG5LYK5.js} +1 -3
- package/{chunk-W772FYAQ.js → chunk-ODGSLWLO.js} +593 -370
- package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
- package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
- package/{chunk-2VUZSVAS.js → chunk-OKPC4QNX.js} +57 -20
- package/{chunk-SOG7OEXX.js → chunk-ONFFUQYM.js} +1 -1
- package/{chunk-KNIIRXHF.js → chunk-P244EH4W.js} +46 -8
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-YDBMZ7FV.js → chunk-PK7VT4ZU.js} +3 -3
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
- package/{chunk-EFX3Q5SM.js → chunk-QUJKDFZW.js} +17 -17
- package/{chunk-C4VAR65S.js → chunk-QXUVCIPB.js} +204 -124
- package/{chunk-BLSNUIZD.js → chunk-QYNABNNQ.js} +13 -13
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-KC4SCKXO.js → chunk-RGUWOMXU.js} +1234 -1451
- package/{chunk-IZIN2UNJ.js → chunk-RH44TIHX.js} +206 -27
- package/{chunk-GNHMRBYZ.js → chunk-RIMFTQMC.js} +282 -58
- package/{chunk-VQUWV3YR.js → chunk-S25VJYXV.js} +9 -3
- package/{chunk-EJU6WCDH.js → chunk-SBRJOYND.js} +723 -355
- package/{chunk-UEKXWO7A.js → chunk-SBRSXY67.js} +18 -7
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
- package/chunk-T3WSFTBS.js +62 -0
- package/{chunk-KEN3N2TN.js → chunk-TB5KTLNB.js} +15 -12
- package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
- package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
- package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
- package/{chunk-GGKNJ42M.js → chunk-UDT4SI37.js} +18 -108
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/{chunk-GVGOEMNV.js → chunk-UQXOORR3.js} +5 -5
- package/{chunk-6O5YP6FX.js → chunk-UR7555FE.js} +9 -9
- package/{chunk-QLFCTYRH.js → chunk-UWOCASVL.js} +20 -13
- package/{chunk-C4WTX5TU.js → chunk-V2V5Q6DU.js} +2 -2
- package/{chunk-2ZKFCIJJ.js → chunk-VCU5GV42.js} +1 -1
- package/{chunk-FTQWYWUI.js → chunk-VMWY7TUA.js} +1 -1
- package/chunk-VNALJT32.js +33394 -0
- package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
- package/chunk-WBSJAIZP.js +170 -0
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/chunk-WVOZ35E4.js +1438 -0
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/{chunk-GIABSSWQ.js → chunk-XDNXKFWF.js} +6 -6
- package/{chunk-GBZ4YKEO.js → chunk-XLN2GD6Z.js} +7 -7
- package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
- package/{chunk-EWPDMS4N.js → chunk-Y22P6ASC.js} +32 -17
- package/{chunk-LJSNEV7M.js → chunk-Y3DOUQQQ.js} +8 -8
- package/{chunk-KOXKKHFE.js → chunk-Y5EBOURK.js} +10 -5
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/{chunk-PVZY6P3S.js → chunk-YTEY27GN.js} +2 -2
- package/chunk-YUZ2DAIH.js +34 -0
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-MOMR7NMG.js → chunk-ZCVBIIUE.js} +4 -4
- package/{chunk-AZQZ5XPM.js → chunk-ZCZLTJEW.js} +98 -57
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-6OFDHJFT.js} +13 -13
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/cliLocalAgentRecordReader-FHIMCBUK.js +102 -0
- package/{commandRegistry-6EQXVODF.js → commandRegistry-OKIWAJIS.js} +113 -101
- package/{contentThunks-ANUP57QV.js → contentThunks-VF2DCU46.js} +41 -38
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-QL6DWGVU.js} +4 -4
- package/{createAgentAutomationAction-XMUWUDKQ.js → createAgentAutomationAction-BGET7Q6K.js} +41 -38
- package/{createDialogAction-43QJIQDH.js → createDialogAction-XYDQZETK.js} +42 -40
- package/{createPageAction-SJO7UC3J.js → createPageAction-74S5RO7U.js} +46 -43
- package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
- package/{dbSlice-ZJPDIFER.js → dbSlice-FI7VNDR5.js} +14 -13
- package/{deleteFile-Q3YDB4ML.js → deleteFile-GD62MPZW.js} +10 -7
- package/{dialogCommands-V5IYEOQP.js → dialogCommands-Y6DHZUAM.js} +71 -64
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-MKXL4NGL.js} +15 -15
- package/{dialogSlice-FQ6WOKWJ.js → dialogSlice-XAUKSWZ4.js} +41 -38
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-BZPKR3DW.js} +6 -6
- package/{docCreateCommands-36WS33BK.js → docCreateCommands-PHDFOQBM.js} +66 -57
- package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-OSHJM67Y.js} +69 -60
- package/{docReadCommands-QZMSFMPN.js → docReadCommands-E6QYCFMS.js} +66 -57
- package/{docStore-BZ2O7WLF.js → docStore-ZZT2BEBU.js} +16 -15
- package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-DHIOPK2C.js} +66 -57
- package/fetchMessages-TQEUZD7H.js +2 -2
- package/{getPricing-VNGFM4PN.js → getPricing-RNRITFOP.js} +6 -6
- package/{handleSendMessageAction-I5J7QR7K.js → handleSendMessageAction-ARUU6CNF.js} +83 -78
- package/{hostCredentialCreate-AVPMK7EQ.js → hostCredentialCreate-SNQT73H4.js} +131 -119
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +1 -1
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
- package/{localRuntimeAdapter-S56R76HN.js → localRuntimeAdapter-MHI6Y2IZ.js} +143 -130
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
- package/{machineCommands-77NFB2AE.js → machineCommands-3O6Y27R4.js} +283 -348
- package/machineWsRunDispatch-5PFLR5XC.js +203 -0
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/mcpLocalAuthorizeCommand-BQCQ2KRJ.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-TU6A6OBV.js} +24 -19
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-GNOSYH6F.js → projectArchive-X2EVXU3N.js} +47 -44
- package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-HUWNV2NI.js} +7 -7
- package/{providerRegistry-KJGB5XWS.js → providerRegistry-7FWKDKZJ.js} +7 -7
- package/{read-Q7GOHGNP.js → read-QAHEQID5.js} +9 -8
- package/{readDocTool-Z5OQ6422.js → readDocTool-KG5DP6EM.js} +1 -1
- package/{readlineWorkspace-2PONGBUP.js → readlineWorkspace-SO3APHVP.js} +8125 -6196
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-QZCCVK2G.js} +20 -19
- package/{runAgentClientLoop-WEXFFHVS.js → runAgentClientLoop-FLHHCOVH.js} +106 -81
- package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-DN3I52C6.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-36BCE3UE.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-PDPTYSEW.js} +17 -16
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-DOUIPR66.js} +20 -19
- package/{settingThunks-AXTBX3Q5.js → settingThunks-MHGGP6UE.js} +186 -67
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-GUKMDRWN.js → spaceCommands-JH7UYE3K.js} +70 -61
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-D2WFS5MF.js → streamAgentChatTurn-VDDA2TX6.js} +200 -195
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-7USK3DAP.js} +18 -17
- package/{tableCommands-HITDSLHS.js → tableCommands-UONBFC7L.js} +15 -12
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
- package/{tools-YKE6PQHT.js → tools-MIOCXKMG.js} +72 -68
- package/tuiRestart-ET3QISZ5.js +41 -0
- package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-MSINBP3M.js} +21 -20
- package/{updateCommands-RJVCRSBP.js → updateCommands-5OYND6EF.js} +8 -6
- package/{updateDialogTitleAction-D5NCA4FC.js → updateDialogTitleAction-2L4CC4YO.js} +43 -40
- package/{usageCommand-YPJ2ZI2F.js → usageCommand-JTKDAG6I.js} +3 -3
- package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-4TFZCKXM.js} +4 -4
- package/webapi-24RZDIIQ.js +2488 -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-YBNOQ5T3.js +0 -991
- package/agentRecordCommands-WUUC2CX7.js +0 -177
- package/agentRunCommand-W6MDKVLJ.js +0 -208
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-OLMJR6UM.js +0 -357
- package/chunk-QVBXJNZ2.js +0 -81
- package/chunk-QZI44GWV.js +0 -776
- package/cliLocalAgentRecordReader-6FXGFBI3.js +0 -90
- package/machineWsRunDispatch-5XWFUJ53.js +0 -192
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
- package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
- package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
- package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
- package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildCliPrompt
|
|
3
3
|
} from "./chunk-ATNTHIZI.js";
|
|
4
|
-
import {
|
|
5
|
-
applyImageConfigRuntimeOverride,
|
|
6
|
-
buildDynamicContexts,
|
|
7
|
-
buildForegroundTurnAdmissionFetchInit,
|
|
8
|
-
buildStaticContexts,
|
|
9
|
-
compressOldToolResults,
|
|
10
|
-
consumeAgentRunStream,
|
|
11
|
-
mergeAgentToolsWithRuntime,
|
|
12
|
-
mergeContexts,
|
|
13
|
-
projectDesktopToolUiContent,
|
|
14
|
-
pushGate,
|
|
15
|
-
resolveImageGenerationStreamingState,
|
|
16
|
-
resolveTurnToolContext,
|
|
17
|
-
targetForRunKind,
|
|
18
|
-
validateAccessAndBalance,
|
|
19
|
-
withRequestContextBlocks
|
|
20
|
-
} from "./chunk-RRVQ446B.js";
|
|
21
|
-
import {
|
|
22
|
-
resolveUserSkillRuntime
|
|
23
|
-
} from "./chunk-OLMJR6UM.js";
|
|
24
4
|
import {
|
|
25
5
|
buildEmptyCompletionRepairBody,
|
|
26
6
|
buildFinalCompletionsRequestBody,
|
|
@@ -30,14 +10,15 @@ import {
|
|
|
30
10
|
persistToolMessages,
|
|
31
11
|
readStreamChunk,
|
|
32
12
|
sendOpenAICompletionsRequest,
|
|
13
|
+
serializeAgentRunMessages,
|
|
33
14
|
updateTotalUsage
|
|
34
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HQVNO7FH.js";
|
|
35
16
|
import "./chunk-JEXVIMYZ.js";
|
|
36
17
|
import {
|
|
37
18
|
inlineImageUrlsForCustomProvider,
|
|
38
19
|
prepareTools,
|
|
39
20
|
shouldInlineImageUrlsForAgent
|
|
40
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-J2XZZXIH.js";
|
|
41
22
|
import {
|
|
42
23
|
DirectApiKeyResolutionError,
|
|
43
24
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -49,38 +30,58 @@ import {
|
|
|
49
30
|
sanitizeOutboundResponsesInput,
|
|
50
31
|
selectResponsesConversationState,
|
|
51
32
|
updateResponsesConversationState
|
|
52
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3UNAGTBW.js";
|
|
53
34
|
import "./chunk-HS7MLR74.js";
|
|
54
|
-
import "./chunk-EJU6WCDH.js";
|
|
55
|
-
import "./chunk-KFHREHUQ.js";
|
|
56
35
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
36
|
+
selectMaxExecutionTime
|
|
37
|
+
} from "./chunk-SBRJOYND.js";
|
|
38
|
+
import {
|
|
39
|
+
isGptProModel,
|
|
40
|
+
isPlatformPaidAgentCall,
|
|
41
|
+
shouldBlockForGptPro
|
|
42
|
+
} from "./chunk-WVOZ35E4.js";
|
|
43
|
+
import "./chunk-AMWMV56B.js";
|
|
44
|
+
import "./chunk-MVOZ22RZ.js";
|
|
45
|
+
import "./chunk-WDWZPASX.js";
|
|
46
|
+
import "./chunk-UDT4SI37.js";
|
|
47
|
+
import "./chunk-Y5EBOURK.js";
|
|
48
|
+
import {
|
|
49
|
+
applyImageConfigRuntimeOverride,
|
|
50
|
+
buildDynamicContexts,
|
|
51
|
+
buildForegroundTurnAdmissionFetchInit,
|
|
52
|
+
buildStaticContexts,
|
|
53
|
+
clearGateTurn,
|
|
54
|
+
compressOldToolResults,
|
|
55
|
+
consumeAgentRunStream,
|
|
56
|
+
mergeAgentToolsWithRuntime,
|
|
57
|
+
mergeContexts,
|
|
58
|
+
projectDesktopToolUiContent,
|
|
59
|
+
pushGate,
|
|
60
|
+
resolveImageGenerationStreamingState,
|
|
61
|
+
resolveTurnToolContext,
|
|
62
|
+
targetForRunKind,
|
|
63
|
+
validateAccessAndBalance,
|
|
64
|
+
withRequestContextBlocks
|
|
65
|
+
} from "./chunk-7HUHOCIY.js";
|
|
66
|
+
import {
|
|
67
|
+
resolveUserSkillRuntime
|
|
68
|
+
} from "./chunk-MFXJY44K.js";
|
|
60
69
|
import {
|
|
61
70
|
performServerProxyFetchWithRetry
|
|
62
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-6S6CZUXK.js";
|
|
63
72
|
import {
|
|
64
73
|
createSSEParser,
|
|
65
|
-
selectMaxExecutionTime,
|
|
66
74
|
waitForAbortableDelay
|
|
67
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-DPAIQLAL.js";
|
|
68
76
|
import "./chunk-NF64D32W.js";
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-FJ23FZXF.js";
|
|
72
|
-
import "./chunk-AGIM7IMJ.js";
|
|
73
|
-
import "./chunk-63W5N6P3.js";
|
|
77
|
+
import "./chunk-HSWEFHFS.js";
|
|
78
|
+
import "./chunk-CHYYSFFM.js";
|
|
74
79
|
import "./chunk-VF4K2QE6.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-AK5O76CC.js";
|
|
81
|
-
import "./chunk-HHL7WG65.js";
|
|
82
|
-
import "./chunk-BJF2MHJ3.js";
|
|
83
|
-
import "./chunk-JHRQXQ4A.js";
|
|
80
|
+
import "./chunk-XDNXKFWF.js";
|
|
81
|
+
import "./chunk-3ORFJP2Z.js";
|
|
82
|
+
import "./chunk-AGIM7IMJ.js";
|
|
83
|
+
import "./chunk-KLD7K5FD.js";
|
|
84
|
+
import "./chunk-6XLWUNZB.js";
|
|
84
85
|
import {
|
|
85
86
|
addToolMessage,
|
|
86
87
|
addUserMessage,
|
|
@@ -102,25 +103,40 @@ import {
|
|
|
102
103
|
updateDialogSummaryAction,
|
|
103
104
|
updateTokens,
|
|
104
105
|
updateToolMessage
|
|
105
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-ODGSLWLO.js";
|
|
106
107
|
import "./chunk-TZXPT53C.js";
|
|
107
108
|
import "./chunk-BUDVRYES.js";
|
|
108
|
-
import "./chunk-KEPOVMF4.js";
|
|
109
109
|
import "./chunk-523DITKR.js";
|
|
110
|
-
import "./chunk-
|
|
110
|
+
import "./chunk-QYNABNNQ.js";
|
|
111
111
|
import {
|
|
112
112
|
getCurrentSpaceId
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-ZCVBIIUE.js";
|
|
114
114
|
import "./chunk-BYXBJQAS.js";
|
|
115
|
-
import "./chunk-QYPE3TS3.js";
|
|
116
115
|
import {
|
|
117
116
|
createCliChatTurnStream,
|
|
118
117
|
getCliChatSession,
|
|
119
118
|
startCliChatSession
|
|
120
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-UQXOORR3.js";
|
|
121
120
|
import "./chunk-5RGU3J7P.js";
|
|
122
121
|
import "./chunk-UVLYNWIE.js";
|
|
123
122
|
import "./chunk-YNIYE47Z.js";
|
|
123
|
+
import "./chunk-YTEY27GN.js";
|
|
124
|
+
import "./chunk-UAD2WT54.js";
|
|
125
|
+
import {
|
|
126
|
+
patch,
|
|
127
|
+
read,
|
|
128
|
+
selectById,
|
|
129
|
+
write
|
|
130
|
+
} from "./chunk-6MQWGA5F.js";
|
|
131
|
+
import "./chunk-3PVYUPXK.js";
|
|
132
|
+
import "./chunk-V2V5Q6DU.js";
|
|
133
|
+
import "./chunk-HXER7YJF.js";
|
|
134
|
+
import "./chunk-YUZ2DAIH.js";
|
|
135
|
+
import "./chunk-DXWGFL2Z.js";
|
|
136
|
+
import "./chunk-3L2WKC3W.js";
|
|
137
|
+
import "./chunk-S25VJYXV.js";
|
|
138
|
+
import "./chunk-4YFC3DWW.js";
|
|
139
|
+
import "./chunk-QYPE3TS3.js";
|
|
124
140
|
import {
|
|
125
141
|
addActiveController,
|
|
126
142
|
claimDialogTurnPhase,
|
|
@@ -134,46 +150,36 @@ import {
|
|
|
134
150
|
setDialogTurnPhase,
|
|
135
151
|
subscribe,
|
|
136
152
|
tokenUsageLiveUpdate
|
|
137
|
-
} from "./chunk-
|
|
138
|
-
import "./chunk-
|
|
139
|
-
import
|
|
140
|
-
selectCurrentServer
|
|
141
|
-
} from "./chunk-VREDDN25.js";
|
|
142
|
-
import "./chunk-HXER7YJF.js";
|
|
143
|
-
import "./chunk-PVZY6P3S.js";
|
|
144
|
-
import "./chunk-UAD2WT54.js";
|
|
145
|
-
import {
|
|
146
|
-
patch,
|
|
147
|
-
read,
|
|
148
|
-
selectById,
|
|
149
|
-
write
|
|
150
|
-
} from "./chunk-AVHRSJUH.js";
|
|
151
|
-
import "./chunk-3PVYUPXK.js";
|
|
152
|
-
import "./chunk-C4WTX5TU.js";
|
|
153
|
-
import "./chunk-GBWGPTA7.js";
|
|
154
|
-
import "./chunk-QLFCTYRH.js";
|
|
153
|
+
} from "./chunk-I2OYPD3Y.js";
|
|
154
|
+
import "./chunk-RD3QLZQV.js";
|
|
155
|
+
import "./chunk-UWOCASVL.js";
|
|
155
156
|
import {
|
|
156
157
|
selectRuntimeCurrentServer
|
|
157
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-OKPC4QNX.js";
|
|
158
159
|
import "./chunk-UEILX4EV.js";
|
|
159
|
-
import "./chunk-
|
|
160
|
+
import "./chunk-IZJFTY4R.js";
|
|
161
|
+
import {
|
|
162
|
+
selectCurrentServer
|
|
163
|
+
} from "./chunk-CJTB3OYB.js";
|
|
164
|
+
import "./chunk-247AAJRK.js";
|
|
160
165
|
import {
|
|
161
166
|
getIsDesktopApp
|
|
162
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-BH7CEVOH.js";
|
|
168
|
+
import "./chunk-WBSJAIZP.js";
|
|
163
169
|
import "./chunk-QQ56R7KS.js";
|
|
164
170
|
import {
|
|
165
171
|
selectIdentityToken,
|
|
166
172
|
selectIdentityUser,
|
|
167
173
|
selectIdentityUserId
|
|
168
174
|
} from "./chunk-PXYBUFDB.js";
|
|
169
|
-
import "./chunk-
|
|
175
|
+
import "./chunk-GBWGPTA7.js";
|
|
170
176
|
import {
|
|
171
177
|
applyPublicAgentCatalogOverride
|
|
172
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-4UK6UBXF.js";
|
|
173
179
|
import {
|
|
174
180
|
applyBuiltinAgentRuntimeOverride,
|
|
175
181
|
resolveBuiltinPlatformAgentRecord
|
|
176
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-JBWXPACD.js";
|
|
177
183
|
import {
|
|
178
184
|
assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets,
|
|
179
185
|
buildDesktopAgentRuntimeAgentConfigSnapshot,
|
|
@@ -181,123 +187,119 @@ import {
|
|
|
181
187
|
evaluateRequestBudget,
|
|
182
188
|
extractImageUrlsFromMessages,
|
|
183
189
|
stripImagePartsForTextOnlyAgent
|
|
184
|
-
} from "./chunk-
|
|
185
|
-
import "./chunk-2WZXXAQD.js";
|
|
186
|
-
import "./chunk-KNIIRXHF.js";
|
|
190
|
+
} from "./chunk-SBRSXY67.js";
|
|
187
191
|
import {
|
|
188
192
|
projectUserPartForModel
|
|
189
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-ONFFUQYM.js";
|
|
190
194
|
import "./chunk-56GBUMO5.js";
|
|
191
|
-
import
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
import "./chunk-C4VAR65S.js";
|
|
196
|
-
import "./chunk-HOCHUZQ7.js";
|
|
197
|
-
import {
|
|
198
|
-
resolveRuntimeToolSurfaceForAgent
|
|
199
|
-
} from "./chunk-SOF4OWDM.js";
|
|
195
|
+
import "./chunk-ER3P6MBT.js";
|
|
196
|
+
import "./chunk-QXUVCIPB.js";
|
|
197
|
+
import "./chunk-FDZ2GBWO.js";
|
|
198
|
+
import "./chunk-QJTZ76CP.js";
|
|
200
199
|
import {
|
|
201
200
|
extractImagePartsFromResponseOutput,
|
|
202
201
|
extractTextFromResponseOutput,
|
|
203
202
|
toResponsesTools
|
|
204
|
-
} from "./chunk-
|
|
205
|
-
import "./chunk-
|
|
203
|
+
} from "./chunk-F4MCAOWN.js";
|
|
204
|
+
import "./chunk-X4O7FJF5.js";
|
|
205
|
+
import "./chunk-BYXBJQAS.js";
|
|
206
|
+
import "./chunk-P244EH4W.js";
|
|
206
207
|
import {
|
|
207
208
|
isContextOverflowText,
|
|
208
209
|
parseApiError
|
|
209
210
|
} from "./chunk-TLE77UJ5.js";
|
|
210
|
-
import "./chunk-
|
|
211
|
+
import "./chunk-WFGNWWJI.js";
|
|
211
212
|
import {
|
|
212
213
|
resolveAgentCallPlan,
|
|
213
214
|
resolveClientWire
|
|
214
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-ENYTIRIO.js";
|
|
216
|
+
import "./chunk-DOK7GDRU.js";
|
|
215
217
|
import {
|
|
216
218
|
resolveAgentContextWindow
|
|
217
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-4F7SWSWO.js";
|
|
218
220
|
import "./chunk-5ZUL4CUO.js";
|
|
219
221
|
import {
|
|
220
222
|
getModelInfo
|
|
221
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-RH44TIHX.js";
|
|
222
224
|
import "./chunk-H57T64RA.js";
|
|
223
|
-
import
|
|
224
|
-
|
|
225
|
-
} from "./chunk-UKZX3NHN.js";
|
|
225
|
+
import "./chunk-UKZX3NHN.js";
|
|
226
|
+
import "./chunk-SR4FE5VD.js";
|
|
226
227
|
import "./chunk-5MMAK75Q.js";
|
|
227
|
-
import "./chunk-
|
|
228
|
+
import "./chunk-USGHJSGO.js";
|
|
229
|
+
import "./chunk-OQHIVPG4.js";
|
|
228
230
|
import {
|
|
229
231
|
asRecordOrEmpty
|
|
230
232
|
} from "./chunk-KX6YBIHG.js";
|
|
231
|
-
import "./chunk-
|
|
233
|
+
import "./chunk-EWQ3HGNZ.js";
|
|
234
|
+
import {
|
|
235
|
+
estimateTokenCount
|
|
236
|
+
} from "./chunk-PSCNXBYA.js";
|
|
232
237
|
import "./chunk-DWLEOOGR.js";
|
|
233
238
|
import "./chunk-OW765XBU.js";
|
|
234
239
|
import {
|
|
235
240
|
isAbortError
|
|
236
241
|
} from "./chunk-7DPNBQSV.js";
|
|
237
|
-
import "./chunk-
|
|
238
|
-
import
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
import "./chunk-
|
|
242
|
-
import "./chunk-
|
|
243
|
-
import "./chunk-
|
|
244
|
-
import "./chunk-
|
|
245
|
-
import
|
|
246
|
-
isSystemBuiltinTrustedAgentKey
|
|
247
|
-
} from "./chunk-UJKTI5PG.js";
|
|
248
|
-
import {
|
|
249
|
-
extractCustomId
|
|
250
|
-
} from "./chunk-M2EJHDJP.js";
|
|
242
|
+
import "./chunk-YGDYYFRX.js";
|
|
243
|
+
import "./chunk-2SXN7LAY.js";
|
|
244
|
+
import "./chunk-G7Y4GXTY.js";
|
|
245
|
+
import "./chunk-6UBGXX2W.js";
|
|
246
|
+
import "./chunk-BV3FLP2L.js";
|
|
247
|
+
import "./chunk-RIMFTQMC.js";
|
|
248
|
+
import "./chunk-AETZ7AD6.js";
|
|
249
|
+
import "./chunk-ZVOL2MAJ.js";
|
|
250
|
+
import "./chunk-KHCLMKZZ.js";
|
|
251
251
|
import "./chunk-SYTHYBMI.js";
|
|
252
252
|
import {
|
|
253
253
|
createDialogMessageKeyAndId,
|
|
254
254
|
dialogMessageKey
|
|
255
255
|
} from "./chunk-OJKUU3LP.js";
|
|
256
256
|
import "./chunk-YZMNK53S.js";
|
|
257
|
+
import {
|
|
258
|
+
resolveRuntimeToolSurfaceForAgent
|
|
259
|
+
} from "./chunk-NEG5LYK5.js";
|
|
260
|
+
import "./chunk-YLAHYLDQ.js";
|
|
261
|
+
import {
|
|
262
|
+
isSystemBuiltinTrustedAgentKey
|
|
263
|
+
} from "./chunk-WRKMXMU7.js";
|
|
264
|
+
import {
|
|
265
|
+
extractCustomId
|
|
266
|
+
} from "./chunk-M2EJHDJP.js";
|
|
257
267
|
import "./chunk-I42VC5KR.js";
|
|
258
|
-
import "./chunk-
|
|
268
|
+
import "./chunk-Y3DOUQQQ.js";
|
|
259
269
|
import {
|
|
260
270
|
getPublicImageAgentDefaultProfile,
|
|
261
271
|
getPublicImageAgentMode
|
|
262
272
|
} from "./chunk-VIDPVFP3.js";
|
|
263
273
|
import "./chunk-4JH2UMJR.js";
|
|
264
|
-
import "./chunk-
|
|
265
|
-
import "./chunk-
|
|
266
|
-
import "./chunk-
|
|
267
|
-
import "./chunk-
|
|
268
|
-
import "./chunk-EWQ3HGNZ.js";
|
|
269
|
-
import {
|
|
270
|
-
estimateTokenCount
|
|
271
|
-
} from "./chunk-PSCNXBYA.js";
|
|
272
|
-
import "./chunk-4NA3YTBC.js";
|
|
273
|
-
import {
|
|
274
|
-
isOpenAiResponsesModel
|
|
275
|
-
} from "./chunk-45LZIYXB.js";
|
|
274
|
+
import "./chunk-U6VC4MU4.js";
|
|
275
|
+
import "./chunk-LCBAMY2M.js";
|
|
276
|
+
import "./chunk-776CXKMX.js";
|
|
277
|
+
import "./chunk-Y22P6ASC.js";
|
|
276
278
|
import {
|
|
277
279
|
toErrorMessage
|
|
278
280
|
} from "./chunk-HNMXYYJR.js";
|
|
281
|
+
import "./chunk-LMFMV5UC.js";
|
|
282
|
+
import {
|
|
283
|
+
isOpenAiResponsesModel
|
|
284
|
+
} from "./chunk-XNEDFWT4.js";
|
|
279
285
|
import {
|
|
280
286
|
asTrimmedString
|
|
281
287
|
} from "./chunk-3EUW3WEO.js";
|
|
288
|
+
import "./chunk-WWC7I6TA.js";
|
|
282
289
|
import {
|
|
283
290
|
getApiEndpoint
|
|
284
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-OJRTTERA.js";
|
|
285
292
|
import "./chunk-JRTNUU5Z.js";
|
|
286
293
|
import {
|
|
287
294
|
isRecord
|
|
288
295
|
} from "./chunk-KUG52IAP.js";
|
|
289
|
-
import "./chunk-OBSEKCVK.js";
|
|
290
|
-
import "./chunk-QSJ3HFEF.js";
|
|
291
|
-
import "./chunk-U6VC4MU4.js";
|
|
292
|
-
import "./chunk-WWC7I6TA.js";
|
|
293
|
-
import "./chunk-LCBAMY2M.js";
|
|
294
296
|
import {
|
|
295
297
|
asOptionalTrimmedString
|
|
296
298
|
} from "./chunk-G3SUCT4W.js";
|
|
297
299
|
import "./chunk-4SN6J65J.js";
|
|
298
300
|
import "./chunk-CF7PE763.js";
|
|
299
|
-
import "./chunk-
|
|
300
|
-
import "./chunk-
|
|
301
|
+
import "./chunk-U4VSBDO5.js";
|
|
302
|
+
import "./chunk-QSJ3HFEF.js";
|
|
301
303
|
import "./chunk-U67V476Y.js";
|
|
302
304
|
|
|
303
305
|
// packages/ai/agent/isVoiceModel.ts
|
|
@@ -537,7 +539,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
537
539
|
parentMessageId,
|
|
538
540
|
messageMetadata,
|
|
539
541
|
quickChatPerfStartedAt,
|
|
540
|
-
fallbackBodyData
|
|
542
|
+
fallbackBodyData,
|
|
543
|
+
userMessageId
|
|
541
544
|
}) => {
|
|
542
545
|
const { dispatch, getState, signal: thunkSignal } = thunkApi;
|
|
543
546
|
const dialogId = extractCustomId(dialogKey);
|
|
@@ -770,7 +773,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
770
773
|
agentConfig,
|
|
771
774
|
messageId,
|
|
772
775
|
dialogId,
|
|
773
|
-
dialogKey
|
|
776
|
+
dialogKey,
|
|
777
|
+
userMessageId
|
|
774
778
|
})
|
|
775
779
|
).unwrap();
|
|
776
780
|
state.content = Array.isArray(result.finalContentBuffer) ? result.finalContentBuffer.filter((part) => part?.type === "text").map((part) => part.text ?? "").join("") : state.content;
|
|
@@ -1242,39 +1246,6 @@ async function admitWebRequest(options) {
|
|
|
1242
1246
|
throw new Error("Context budget admission failed");
|
|
1243
1247
|
}
|
|
1244
1248
|
|
|
1245
|
-
// packages/ai/agent/platformPaidCall.ts
|
|
1246
|
-
var asTrimmed = (value) => typeof value === "string" ? value.trim() : "";
|
|
1247
|
-
var hasOAuthCredentialShape = (agentConfig) => isOAuthApiKeyRef(agentConfig?.apiKeyRef) || isAntigravityOAuthAgent({
|
|
1248
|
-
key: "platform-paid-call-probe",
|
|
1249
|
-
apiKeyRef: agentConfig?.apiKeyRef ?? void 0,
|
|
1250
|
-
provider: agentConfig?.provider ?? void 0,
|
|
1251
|
-
customProviderUrl: agentConfig?.customProviderUrl ?? void 0
|
|
1252
|
-
});
|
|
1253
|
-
function isPlatformPaidAgentCall(probe) {
|
|
1254
|
-
const agentConfig = probe?.agentConfig ?? {};
|
|
1255
|
-
const authKind = asTrimmed(probe?.authKind);
|
|
1256
|
-
if (authKind) return authKind === "platform-key";
|
|
1257
|
-
if (asTrimmed(agentConfig.apiSource) === "cli") return false;
|
|
1258
|
-
return resolveBillingSource({
|
|
1259
|
-
local: agentConfig.local,
|
|
1260
|
-
isLocal: agentConfig.isLocal,
|
|
1261
|
-
cliProvider: agentConfig.cliProvider,
|
|
1262
|
-
apiSource: agentConfig.apiSource,
|
|
1263
|
-
provider: agentConfig.provider,
|
|
1264
|
-
billingSource: agentConfig.billingSource,
|
|
1265
|
-
// 形态证明而非记录自声明(见文件头):自声明 isOAuth 不足以证明 OAuth 通道归属。
|
|
1266
|
-
isOAuth: hasOAuthCredentialShape(agentConfig),
|
|
1267
|
-
apiKeyRef: agentConfig.apiKeyRef,
|
|
1268
|
-
customProviderUrl: agentConfig.customProviderUrl,
|
|
1269
|
-
isOwned: isOwnedAgentRecord(
|
|
1270
|
-
agentConfig,
|
|
1271
|
-
asTrimmed(probe?.callerUserId) || void 0
|
|
1272
|
-
),
|
|
1273
|
-
userId: agentConfig.userId,
|
|
1274
|
-
ownerId: agentConfig.ownerId
|
|
1275
|
-
}) === "platform_credits";
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
1249
|
// packages/ai/agent/persistMessageWithFixedId.ts
|
|
1279
1250
|
async function persistMessageWithFixedId(dispatch, message) {
|
|
1280
1251
|
dispatch(addUserMessage(message));
|
|
@@ -2085,7 +2056,45 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2085
2056
|
let loopKey = null;
|
|
2086
2057
|
let runtimeDialogKey = explicitDialogKey ?? null;
|
|
2087
2058
|
let turnPhaseTurnId = null;
|
|
2059
|
+
const secretGateTurnId = createDialogMessageKeyAndId("secret-gate").messageId;
|
|
2060
|
+
const secretGateAnchors = /* @__PURE__ */ new Set();
|
|
2061
|
+
const receiveActionGate = (gate, target, dialogId) => {
|
|
2062
|
+
const secret = gate.kind === "input" && gate.payload?.action === "secret_request";
|
|
2063
|
+
if (!secret || target?.kind === "local") {
|
|
2064
|
+
pushGate(gate, target);
|
|
2065
|
+
return;
|
|
2066
|
+
}
|
|
2067
|
+
const { messageId, key } = createDialogMessageKeyAndId(dialogId);
|
|
2068
|
+
secretGateAnchors.add(messageId);
|
|
2069
|
+
pushGate(gate, target, { dialogId, turnId: secretGateTurnId, messageId });
|
|
2070
|
+
dispatch(messageStreaming({
|
|
2071
|
+
id: messageId,
|
|
2072
|
+
dbKey: key,
|
|
2073
|
+
dialogId,
|
|
2074
|
+
role: "tool",
|
|
2075
|
+
toolName: "secret-request",
|
|
2076
|
+
content: "",
|
|
2077
|
+
isStreaming: true
|
|
2078
|
+
}));
|
|
2079
|
+
};
|
|
2088
2080
|
const batchExecution = createUserBatchExecution(loopController.signal, () => !thunkApi.signal.aborted && (!turnPhaseTurnId || !runtimeDialogKey || getDialogRuntimeState(runtimeDialogKey).turnPhaseTurnId === turnPhaseTurnId));
|
|
2081
|
+
const workMemoryUserMessageId = (dialogId, activeId) => {
|
|
2082
|
+
if (!activeId) return void 0;
|
|
2083
|
+
const users = selectAllMsgs(getState(), dialogId).filter((message) => message.role === "user");
|
|
2084
|
+
const bound = users.find((message) => message.id === activeId);
|
|
2085
|
+
if (!bound || bound.metadata?.queueState === "pending") return void 0;
|
|
2086
|
+
const receipt = bound.metadata?.userBatchReceipt;
|
|
2087
|
+
if (receipt) {
|
|
2088
|
+
const ids = receipt.messageIds;
|
|
2089
|
+
return Array.isArray(ids) && ids.length === 1 && ids[0] === activeId ? activeId : void 0;
|
|
2090
|
+
}
|
|
2091
|
+
const batchId = bound.metadata?.acceptedUserBatchId;
|
|
2092
|
+
if (batchId) {
|
|
2093
|
+
const batch = users.filter((message) => message.metadata?.acceptedUserBatchId === batchId);
|
|
2094
|
+
return batch.length === 1 && batch[0]?.id === activeId ? activeId : void 0;
|
|
2095
|
+
}
|
|
2096
|
+
return activeId;
|
|
2097
|
+
};
|
|
2089
2098
|
let remoteTransientMessageId = null;
|
|
2090
2099
|
let remoteTransientMessageFinalized = false;
|
|
2091
2100
|
let modelRequestStarted = false;
|
|
@@ -2280,7 +2289,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2280
2289
|
agentKey,
|
|
2281
2290
|
userInput: agentRunUserInput,
|
|
2282
2291
|
...Array.isArray(contextBlocks) && contextBlocks.length > 0 ? { contextBlocks } : {},
|
|
2283
|
-
messages: cleanedMessages,
|
|
2292
|
+
messages: serializeAgentRunMessages(cleanedMessages),
|
|
2284
2293
|
stream: true,
|
|
2285
2294
|
persistDialog: true,
|
|
2286
2295
|
continueDialogId: dialogId2,
|
|
@@ -2291,7 +2300,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2291
2300
|
runtime: "react",
|
|
2292
2301
|
entrypoint: "chat-dialog",
|
|
2293
2302
|
capabilities: ["streaming", "dialog-ui", "machine-bound-cli", "durable-user-batch", "client-user-prepersisted"],
|
|
2294
|
-
userMessageId
|
|
2303
|
+
...args.userMessageId ? { userMessageId: args.userMessageId } : {}
|
|
2295
2304
|
},
|
|
2296
2305
|
...dialogConfig?.spaceId ? { spaceId: dialogConfig.spaceId } : {}
|
|
2297
2306
|
}),
|
|
@@ -2339,12 +2348,13 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2339
2348
|
return { reject: payload.message || "\u7535\u8111\u7AEF Agent \u6267\u884C\u5931\u8D25" };
|
|
2340
2349
|
}
|
|
2341
2350
|
if (payload.type === "action_gate" && payload.gate) {
|
|
2342
|
-
|
|
2351
|
+
receiveActionGate(
|
|
2343
2352
|
payload.gate,
|
|
2344
2353
|
targetForRunKind("server-run", {
|
|
2345
2354
|
server: currentServer2,
|
|
2346
2355
|
token
|
|
2347
|
-
})
|
|
2356
|
+
}),
|
|
2357
|
+
dialogId2
|
|
2348
2358
|
);
|
|
2349
2359
|
}
|
|
2350
2360
|
remoteToolHandlers.handleToolPayload(payload);
|
|
@@ -2896,9 +2906,10 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2896
2906
|
} else if (event.type === "execution_location") {
|
|
2897
2907
|
desktopToolExecutionLocation = event.location;
|
|
2898
2908
|
} else if (event.type === "action_gate") {
|
|
2899
|
-
|
|
2909
|
+
receiveActionGate(
|
|
2900
2910
|
event.gate,
|
|
2901
|
-
targetForRunKind("desktop-local")
|
|
2911
|
+
targetForRunKind("desktop-local"),
|
|
2912
|
+
dialogId
|
|
2902
2913
|
);
|
|
2903
2914
|
} else if (event.type === "done") {
|
|
2904
2915
|
streamResult = event.result;
|
|
@@ -3216,7 +3227,7 @@ ${info.actionHint}` : streamError;
|
|
|
3216
3227
|
agentKey,
|
|
3217
3228
|
userInput: agentRunUserInput,
|
|
3218
3229
|
...Array.isArray(contextBlocks) && contextBlocks.length > 0 ? { contextBlocks } : {},
|
|
3219
|
-
messages: cleanedMessages,
|
|
3230
|
+
messages: serializeAgentRunMessages(cleanedMessages),
|
|
3220
3231
|
stream: true,
|
|
3221
3232
|
persistDialog: false,
|
|
3222
3233
|
clientDialogId: dialogId,
|
|
@@ -3296,12 +3307,13 @@ ${info.actionHint}` : streamError;
|
|
|
3296
3307
|
return { reject: payload.message || "\u8FDC\u7AEF Agent \u6267\u884C\u5931\u8D25" };
|
|
3297
3308
|
}
|
|
3298
3309
|
if (payload.type === "action_gate" && payload.gate) {
|
|
3299
|
-
|
|
3310
|
+
receiveActionGate(
|
|
3300
3311
|
payload.gate,
|
|
3301
3312
|
targetForRunKind("server-run", {
|
|
3302
3313
|
server: explicitServerBase,
|
|
3303
3314
|
token
|
|
3304
|
-
})
|
|
3315
|
+
}),
|
|
3316
|
+
dialogId
|
|
3305
3317
|
);
|
|
3306
3318
|
}
|
|
3307
3319
|
if (payload.type === "agent_handoff") {
|
|
@@ -3407,7 +3419,8 @@ ${info.actionHint}` : streamError;
|
|
|
3407
3419
|
referencedTools: referenceTools,
|
|
3408
3420
|
recommendedSkillTools: turnToolContext.recommendedSkillTools,
|
|
3409
3421
|
recommendedSkillHints: turnToolContext.recommendedSkillHints,
|
|
3410
|
-
skillPromptPatches: turnToolContext.skillPromptPatches
|
|
3422
|
+
skillPromptPatches: turnToolContext.skillPromptPatches,
|
|
3423
|
+
skillPromptContributions: turnToolContext.skillPromptContributions
|
|
3411
3424
|
};
|
|
3412
3425
|
const initialRawMsgs = selectAdmittedMessages(selectAllMsgs(state, dialogId));
|
|
3413
3426
|
const initialHistoryIds = new Set(initialRawMsgs.map((m) => m.id));
|
|
@@ -3457,7 +3470,7 @@ ${info.actionHint}` : streamError;
|
|
|
3457
3470
|
responseApi: true
|
|
3458
3471
|
});
|
|
3459
3472
|
let appendTempUserInput2 = true;
|
|
3460
|
-
let activeTurnUserMessageId2;
|
|
3473
|
+
let activeTurnUserMessageId2 = args.userMessageId;
|
|
3461
3474
|
let currentParentMessageId2 = parentMessageId ?? void 0;
|
|
3462
3475
|
const storedResponsesState = currentDialog?.responsesState;
|
|
3463
3476
|
let responsesState = selectResponsesConversationState(
|
|
@@ -3591,12 +3604,6 @@ ${info.actionHint}` : streamError;
|
|
|
3591
3604
|
isStreaming: false
|
|
3592
3605
|
}
|
|
3593
3606
|
];
|
|
3594
|
-
activeTurnUserMessageId2 = tempId;
|
|
3595
|
-
} else {
|
|
3596
|
-
const lastMsg = visibleMessages[visibleMessages.length - 1];
|
|
3597
|
-
if (lastMsg && typeof lastMsg.id === "string") {
|
|
3598
|
-
activeTurnUserMessageId2 = lastMsg.id;
|
|
3599
|
-
}
|
|
3600
3607
|
}
|
|
3601
3608
|
}
|
|
3602
3609
|
const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
|
|
@@ -3671,7 +3678,8 @@ ${info.actionHint}` : streamError;
|
|
|
3671
3678
|
parentMessageId: currentParentMessageId2,
|
|
3672
3679
|
messageMetadata: streamingMessageMetadata,
|
|
3673
3680
|
quickChatPerfStartedAt,
|
|
3674
|
-
fallbackBodyData
|
|
3681
|
+
fallbackBodyData,
|
|
3682
|
+
userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId2)
|
|
3675
3683
|
})
|
|
3676
3684
|
})).unwrap();
|
|
3677
3685
|
if (!meta || loopController.signal.aborted || thunkApi.signal.aborted) break;
|
|
@@ -3781,7 +3789,7 @@ ${info.actionHint}` : streamError;
|
|
|
3781
3789
|
responseApi: false
|
|
3782
3790
|
});
|
|
3783
3791
|
let appendTempUserInput = true;
|
|
3784
|
-
let activeTurnUserMessageId;
|
|
3792
|
+
let activeTurnUserMessageId = args.userMessageId;
|
|
3785
3793
|
let currentParentMessageId = parentMessageId ?? void 0;
|
|
3786
3794
|
const w = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
|
|
3787
3795
|
if (w) w.__LOOP_STOP_REASON__ = null;
|
|
@@ -3904,12 +3912,6 @@ ${info.actionHint}` : streamError;
|
|
|
3904
3912
|
isStreaming: false
|
|
3905
3913
|
}
|
|
3906
3914
|
];
|
|
3907
|
-
activeTurnUserMessageId = tempId;
|
|
3908
|
-
} else {
|
|
3909
|
-
const lastMsg = visibleMessages[visibleMessages.length - 1];
|
|
3910
|
-
if (lastMsg && typeof lastMsg.id === "string") {
|
|
3911
|
-
activeTurnUserMessageId = lastMsg.id;
|
|
3912
|
-
}
|
|
3913
3915
|
}
|
|
3914
3916
|
}
|
|
3915
3917
|
const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
|
|
@@ -3999,7 +4001,8 @@ ${info.actionHint}` : streamError;
|
|
|
3999
4001
|
parentMessageId: currentParentMessageId,
|
|
4000
4002
|
messageMetadata: streamingMessageMetadata,
|
|
4001
4003
|
disableToolsForThisRequest,
|
|
4002
|
-
quickChatPerfStartedAt
|
|
4004
|
+
quickChatPerfStartedAt,
|
|
4005
|
+
userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId)
|
|
4003
4006
|
})
|
|
4004
4007
|
})).unwrap();
|
|
4005
4008
|
if (!meta || loopController.signal.aborted || thunkApi.signal.aborted) break;
|
|
@@ -4106,6 +4109,8 @@ ${info.actionHint}` : streamError;
|
|
|
4106
4109
|
);
|
|
4107
4110
|
} finally {
|
|
4108
4111
|
batchExecution.dispose();
|
|
4112
|
+
clearGateTurn(secretGateTurnId);
|
|
4113
|
+
for (const id of secretGateAnchors) dispatch(removeTransientMessage(id));
|
|
4109
4114
|
clearDialogTurnPhase({ dialogKey: runtimeDialogKey ?? void 0, turnId: turnPhaseTurnId ?? void 0 });
|
|
4110
4115
|
if (loopKey && runtimeDialogKey) {
|
|
4111
4116
|
dispatch(removeActiveController({ messageId: loopKey, dialogKey: runtimeDialogKey }));
|