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
|
@@ -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`,
|
|
@@ -7,24 +7,24 @@ import {
|
|
|
7
7
|
hadToolImages,
|
|
8
8
|
projectOpenAiToolImages,
|
|
9
9
|
toolImages
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X4O7FJF5.js";
|
|
11
11
|
import {
|
|
12
12
|
getModelContextWindow
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RH44TIHX.js";
|
|
14
14
|
import {
|
|
15
15
|
isRecord
|
|
16
16
|
} from "./chunk-KUG52IAP.js";
|
|
17
|
+
import {
|
|
18
|
+
asOptionalTrimmedString
|
|
19
|
+
} from "./chunk-G3SUCT4W.js";
|
|
17
20
|
import {
|
|
18
21
|
PLATFORM_HOSTED_KIMI_K3_MODEL,
|
|
19
22
|
isFireworksKimiModel,
|
|
20
23
|
isNoloHostedProvider
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-U4VSBDO5.js";
|
|
22
25
|
import {
|
|
23
26
|
asTrimmedLowercaseString
|
|
24
27
|
} from "./chunk-QSJ3HFEF.js";
|
|
25
|
-
import {
|
|
26
|
-
asOptionalTrimmedString
|
|
27
|
-
} from "./chunk-G3SUCT4W.js";
|
|
28
28
|
|
|
29
29
|
// packages/integrations/openai/responsesHelpers.ts
|
|
30
30
|
var RESPONSES_TOP_LEVEL_SCHEMA_KEYS = ["anyOf", "oneOf", "allOf", "enum", "not"];
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
// packages/agent-runtime/mcpConnectionSpecs.ts
|
|
2
|
+
var MCP_TOOL_NAMES = Object.freeze(["listMcpConnections", "listMcpTools", "callMcpTool"]);
|
|
3
|
+
var MCP_PRESET_SPECS = Object.freeze([
|
|
4
|
+
Object.freeze({
|
|
5
|
+
id: "zoho-mail",
|
|
6
|
+
title: "Zoho Mail MCP",
|
|
7
|
+
summary: "\u63A5\u5165 Zoho \u5B98\u65B9\u4E3A\u4F60\u8D26\u53F7\u751F\u6210\u7684\u4E13\u5C5E MCP HTTPS \u670D\u52A1\u5730\u5740\uFF0C\u5728\u53D7\u63A7\u5DE5\u5177\u767D\u540D\u5355\u4E0E\u786E\u8BA4\u95E8\u4E0B\u8BFB\u53D6\u6216\u68C0\u7D22\u90AE\u4EF6\u3002",
|
|
8
|
+
defaultAuthKind: "none",
|
|
9
|
+
endpointPlaceholder: "https://mail.zoho.com/mcp/...",
|
|
10
|
+
note: "Zoho \u751F\u6210\u7684\u4E13\u5C5E Server URL \u5185\u542B\u8BBF\u95EE\u5BC6\u94A5\uFF0C\u4FDD\u5B58\u65F6\u5C06\u76F4\u63A5\u52A0\u5BC6\u5B58\u5165\u53D7\u63A7\u5BC6\u6587\u5E93\uFF0C\u4E0D\u4F1A\u4EE5\u660E\u6587\u56DE\u663E\u3002"
|
|
11
|
+
}),
|
|
12
|
+
Object.freeze({
|
|
13
|
+
id: "home-assistant",
|
|
14
|
+
title: "Home Assistant MCP",
|
|
15
|
+
summary: "\u63A5\u5165\u516C\u7F51 HTTPS \u53EF\u8FBE\u7684 Home Assistant \u5B98\u65B9 MCP Server\uFF08\u5982 /api/mcp\uFF09\uFF0C\u7ECF\u6BCF\u6B21\u8C03\u7528\u786E\u8BA4\u540E\u67E5\u770B\u6216\u63A7\u5236\u5B9E\u4F53\u3002",
|
|
16
|
+
defaultAuthKind: "bearer",
|
|
17
|
+
endpointPlaceholder: "https://ha.example.com/api/mcp",
|
|
18
|
+
note: "\u670D\u52A1\u7AEF\u8FDE\u63A5\u4EC5\u8BBF\u95EE\u516C\u7F51 HTTPS\uFF08\u81EA\u52A8\u62E6\u622A\u5185\u7F51/\u79C1\u7F51\u5730\u5740\uFF09\uFF0C\u9700\u63D0\u4F9B\u957F\u671F\u8BBF\u95EE\u4EE4\u724C\uFF08Bearer Token\uFF09\u3002"
|
|
19
|
+
})
|
|
20
|
+
]);
|
|
21
|
+
var failure = (code) => ({ ok: false, error: { code } });
|
|
22
|
+
function sameMcpPlacement(a, b) {
|
|
23
|
+
return a.kind === b.kind && (a.kind !== "machine" || b.kind === "machine" && a.machineId === b.machineId);
|
|
24
|
+
}
|
|
25
|
+
function freezeSchema(value) {
|
|
26
|
+
for (const child of Object.values(value)) if (child && typeof child === "object") freezeSchema(child);
|
|
27
|
+
return Object.freeze(value);
|
|
28
|
+
}
|
|
29
|
+
var text = (maxLength) => ({ type: "string", minLength: 1, maxLength, pattern: "^[^\\u0000-\\u001f\\u007f]+$" });
|
|
30
|
+
var idSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$" };
|
|
31
|
+
var refSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_:-]{0,127}$" };
|
|
32
|
+
var revisionSchema = { type: "integer", minimum: 1, maximum: Number.MAX_SAFE_INTEGER };
|
|
33
|
+
var objectSchema = (properties, required = Object.keys(properties)) => ({ type: "object", properties, required, additionalProperties: false });
|
|
34
|
+
var placements = {
|
|
35
|
+
oneOf: [
|
|
36
|
+
{ type: "object", required: ["kind"], properties: { kind: { const: "local" } }, additionalProperties: false },
|
|
37
|
+
{ type: "object", required: ["kind"], properties: { kind: { const: "server" } }, additionalProperties: false },
|
|
38
|
+
{ type: "object", required: ["kind", "machineId"], properties: { kind: { const: "machine" }, machineId: idSchema }, additionalProperties: false }
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
var MCP_CONNECTION_WRITE_SCHEMA = {
|
|
42
|
+
type: "object",
|
|
43
|
+
required: ["schemaVersion", "label", "enabled", "placement", "transport", "auth", "allowedToolNames", "readPolicies"],
|
|
44
|
+
properties: {
|
|
45
|
+
schemaVersion: { const: 1 },
|
|
46
|
+
label: { type: "string", minLength: 1, maxLength: 160, pattern: "^[^:/\\\\\\r\\n]+$" },
|
|
47
|
+
enabled: { type: "boolean" },
|
|
48
|
+
presetId: { enum: ["zoho-mail", "home-assistant"] },
|
|
49
|
+
placement: placements,
|
|
50
|
+
allowedToolNames: { type: "array", maxItems: 256, items: text(160) },
|
|
51
|
+
readPolicies: { type: "array", maxItems: 256, items: { type: "object", required: ["toolName", "arguments"], properties: { toolName: text(160), arguments: { type: "object", maxProperties: 128, additionalProperties: { type: "array", maxItems: 256 } } }, additionalProperties: false } },
|
|
52
|
+
transport: { type: "object", required: ["kind", "endpointRef"], properties: { kind: { const: "streamable-http" }, endpointRef: refSchema }, additionalProperties: false },
|
|
53
|
+
auth: { oneOf: [{ type: "object", required: ["kind"], properties: { kind: { const: "oauth" } }, additionalProperties: false }, { type: "object", required: ["kind"], properties: { kind: { const: "none" } }, additionalProperties: false }, { type: "object", required: ["kind", "credentialRef"], properties: { kind: { const: "bearer" }, credentialRef: refSchema }, additionalProperties: false }] }
|
|
54
|
+
},
|
|
55
|
+
additionalProperties: false
|
|
56
|
+
};
|
|
57
|
+
var MCP_CONNECTION_UPDATE_SCHEMA = freezeSchema(objectSchema({
|
|
58
|
+
connectionId: idSchema,
|
|
59
|
+
expectedRevision: revisionSchema,
|
|
60
|
+
connection: MCP_CONNECTION_WRITE_SCHEMA
|
|
61
|
+
}));
|
|
62
|
+
var MCP_LIST_TOOLS_INPUT_SCHEMA = freezeSchema(objectSchema({
|
|
63
|
+
connectionId: idSchema,
|
|
64
|
+
expectedRevision: revisionSchema,
|
|
65
|
+
cursor: text(2048)
|
|
66
|
+
}, ["connectionId", "expectedRevision"]));
|
|
67
|
+
var MCP_CALL_TOOL_INPUT_SCHEMA = freezeSchema(objectSchema({
|
|
68
|
+
connectionId: idSchema,
|
|
69
|
+
expectedRevision: revisionSchema,
|
|
70
|
+
catalogRevision: idSchema,
|
|
71
|
+
toolName: text(256),
|
|
72
|
+
arguments: { type: "object", additionalProperties: {} }
|
|
73
|
+
}));
|
|
74
|
+
function isRecord(value) {
|
|
75
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
76
|
+
return Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null;
|
|
77
|
+
}
|
|
78
|
+
function matches(schema, value) {
|
|
79
|
+
if (schema.oneOf && schema.oneOf.filter((branch) => matches(branch, value)).length !== 1) return false;
|
|
80
|
+
if (schema.const !== void 0 && value !== schema.const) return false;
|
|
81
|
+
if (schema.enum && (typeof value !== "string" || !schema.enum.includes(value))) return false;
|
|
82
|
+
switch (schema.type) {
|
|
83
|
+
case "string":
|
|
84
|
+
return typeof value === "string" && value.length >= (schema.minLength ?? 0) && value.length <= (schema.maxLength ?? Infinity) && (!schema.pattern || new RegExp(schema.pattern, "u").test(value));
|
|
85
|
+
case "integer":
|
|
86
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= (schema.minimum ?? -Infinity) && value <= (schema.maximum ?? Infinity);
|
|
87
|
+
case "boolean":
|
|
88
|
+
return typeof value === "boolean";
|
|
89
|
+
case "array":
|
|
90
|
+
return Array.isArray(value) && value.length <= (schema.maxItems ?? Infinity) && value.every((item) => !schema.items || matches(schema.items, item));
|
|
91
|
+
case "object": {
|
|
92
|
+
if (!isRecord(value) || Object.keys(value).length > (schema.maxProperties ?? Infinity)) return false;
|
|
93
|
+
if (schema.required?.some((key) => !Object.hasOwn(value, key))) return false;
|
|
94
|
+
return Object.entries(value).every(([key, entry]) => {
|
|
95
|
+
if (schema.propertyNames && !matches(schema.propertyNames, key)) return false;
|
|
96
|
+
const property = schema.properties && Object.hasOwn(schema.properties, key) ? schema.properties[key] : schema.additionalProperties;
|
|
97
|
+
return property === void 0 || property === false ? property !== false : matches(property, entry);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
default:
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function isBoundedJson(value, depth = 0, budget = { nodes: 0, chars: 0 }) {
|
|
105
|
+
if (++budget.nodes > 1e4 || depth > 32) return false;
|
|
106
|
+
if (typeof value === "string") return (budget.chars += value.length) <= 262144;
|
|
107
|
+
if (value === null || typeof value === "boolean") return true;
|
|
108
|
+
if (typeof value === "number") return Number.isFinite(value);
|
|
109
|
+
if (!Array.isArray(value) && !isRecord(value)) return false;
|
|
110
|
+
return Object.entries(Object.getOwnPropertyDescriptors(value)).every(([key, descriptor]) => {
|
|
111
|
+
if (Array.isArray(value) && key === "length") return true;
|
|
112
|
+
if (["__proto__", "prototype", "constructor"].includes(key) || !Object.hasOwn(descriptor, "value")) return false;
|
|
113
|
+
budget.chars += key.length;
|
|
114
|
+
return budget.chars <= 262144 && isBoundedJson(descriptor.value, depth + 1, budget);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function parse(schema, value) {
|
|
118
|
+
if (!isBoundedJson(value) || !matches(schema, value)) return failure("invalid_input");
|
|
119
|
+
return { ok: true, value: JSON.parse(JSON.stringify(value)) };
|
|
120
|
+
}
|
|
121
|
+
function parseMcpConnectionWrite(value) {
|
|
122
|
+
const parsed = parse(MCP_CONNECTION_WRITE_SCHEMA, value);
|
|
123
|
+
if (!parsed.ok) {
|
|
124
|
+
if (isRecord(value) && Object.getOwnPropertyDescriptor(value, "schemaVersion")?.value !== void 0 && Object.getOwnPropertyDescriptor(value, "schemaVersion")?.value !== 1) return failure("unsupported_version");
|
|
125
|
+
return parsed;
|
|
126
|
+
}
|
|
127
|
+
const connection = parsed.value;
|
|
128
|
+
if (new Set(connection.allowedToolNames).size !== connection.allowedToolNames.length || new Set(connection.readPolicies.map((p) => p.toolName)).size !== connection.readPolicies.length || connection.readPolicies.some((p) => !connection.allowedToolNames.includes(p.toolName))) return failure("invalid_input");
|
|
129
|
+
return parsed;
|
|
130
|
+
}
|
|
131
|
+
function parseMcpListToolsInput(value) {
|
|
132
|
+
return parse(MCP_LIST_TOOLS_INPUT_SCHEMA, value);
|
|
133
|
+
}
|
|
134
|
+
function parseMcpCallToolInput(value) {
|
|
135
|
+
return parse(MCP_CALL_TOOL_INPUT_SCHEMA, value);
|
|
136
|
+
}
|
|
137
|
+
var MCP_LIST_CONNECTIONS_INPUT_SCHEMA = freezeSchema(objectSchema({}, []));
|
|
138
|
+
function toMcpConnectionSummary(connection) {
|
|
139
|
+
return {
|
|
140
|
+
schemaVersion: 1,
|
|
141
|
+
id: connection.id,
|
|
142
|
+
label: connection.label,
|
|
143
|
+
enabled: connection.enabled,
|
|
144
|
+
revision: connection.revision,
|
|
145
|
+
...connection.presetId ? { presetId: connection.presetId } : {},
|
|
146
|
+
allowedToolNames: [...connection.allowedToolNames],
|
|
147
|
+
readPolicies: structuredClone(connection.readPolicies),
|
|
148
|
+
placement: connection.placement.kind === "machine" ? { kind: "machine", machineId: connection.placement.machineId } : { kind: connection.placement.kind },
|
|
149
|
+
transportKind: connection.transport.kind,
|
|
150
|
+
authKind: connection.auth.kind,
|
|
151
|
+
endpointConfigured: true,
|
|
152
|
+
credentialConfigured: connection.auth.kind === "bearer"
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export {
|
|
157
|
+
MCP_TOOL_NAMES,
|
|
158
|
+
sameMcpPlacement,
|
|
159
|
+
MCP_LIST_TOOLS_INPUT_SCHEMA,
|
|
160
|
+
MCP_CALL_TOOL_INPUT_SCHEMA,
|
|
161
|
+
parseMcpConnectionWrite,
|
|
162
|
+
parseMcpListToolsInput,
|
|
163
|
+
parseMcpCallToolInput,
|
|
164
|
+
MCP_LIST_CONNECTIONS_INPUT_SCHEMA,
|
|
165
|
+
toMcpConnectionSummary
|
|
166
|
+
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
loadMemoryVNextCatalog
|
|
3
|
-
} from "./chunk-XI2BWJM5.js";
|
|
4
1
|
import {
|
|
5
2
|
recallMemoryVNextLocal
|
|
6
3
|
} from "./chunk-4D4QD7FT.js";
|
|
7
4
|
import {
|
|
8
5
|
DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
|
|
9
6
|
buildMemoryOverlay
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PVFYPUIM.js";
|
|
8
|
+
import {
|
|
9
|
+
isWorkContextState
|
|
10
|
+
} from "./chunk-C5A54QS7.js";
|
|
11
|
+
import {
|
|
12
|
+
loadMemoryVNextCatalog
|
|
13
|
+
} from "./chunk-324FWHUA.js";
|
|
11
14
|
import {
|
|
12
15
|
createMemoryKey
|
|
13
16
|
} from "./chunk-SYTHYBMI.js";
|
|
@@ -56,7 +59,7 @@ var buildSynthesizedStateItem = (state, entity, ownerType, ownerId) => ({
|
|
|
56
59
|
async function resolvePureVNextRuntime(input) {
|
|
57
60
|
const { db, owners, userInput } = input;
|
|
58
61
|
if (owners.length === 0 || !userInput.trim()) {
|
|
59
|
-
return { selectedItems: [], promptBlock:
|
|
62
|
+
return { selectedItems: [], promptBlock: buildMemoryOverlay([], { injectionEmit: input.injectionEmit }), recalledStateCount: 0 };
|
|
60
63
|
}
|
|
61
64
|
const ownerIds = owners.map((o) => `${o.ownerType}:${encodeURIComponent(o.ownerId)}`);
|
|
62
65
|
const catalogs = await Promise.all(
|
|
@@ -67,7 +70,9 @@ async function resolvePureVNextRuntime(input) {
|
|
|
67
70
|
for (let i = 0; i < owners.length; i++) {
|
|
68
71
|
const owner = owners[i];
|
|
69
72
|
const catalog = catalogs[i];
|
|
70
|
-
const currentStates = catalog.states.filter(
|
|
73
|
+
const currentStates = catalog.states.filter(
|
|
74
|
+
(s) => !s.retiredAt && s.text.trim() && !isWorkContextState(s)
|
|
75
|
+
);
|
|
71
76
|
const hits = recallMemoryVNextLocal({
|
|
72
77
|
query: userInput,
|
|
73
78
|
entities: catalog.entities,
|
|
@@ -83,7 +88,9 @@ async function resolvePureVNextRuntime(input) {
|
|
|
83
88
|
);
|
|
84
89
|
}
|
|
85
90
|
}
|
|
86
|
-
const promptBlock =
|
|
91
|
+
const promptBlock = buildMemoryOverlay(selectedItems, {
|
|
92
|
+
sources: new Map(selectedItems.map((item) => [item, "vnext"])),
|
|
93
|
+
injectionEmit: input.injectionEmit,
|
|
87
94
|
maxTokens: input.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET
|
|
88
95
|
});
|
|
89
96
|
return {
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
buildLocalAgentLookupKeys
|
|
3
|
-
} from "./chunk-2ZKFCIJJ.js";
|
|
4
|
-
import {
|
|
5
|
-
LOCAL_CODEX_AGENT_ID,
|
|
6
|
-
LOCAL_CODEX_AGENT_KEY
|
|
7
|
-
} from "./chunk-BR3GT6MR.js";
|
|
8
1
|
import {
|
|
9
2
|
applyPublicAgentCatalogOverride
|
|
10
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4UK6UBXF.js";
|
|
11
4
|
import {
|
|
12
5
|
applyBuiltinAgentRuntimeOverride,
|
|
13
6
|
resolveBuiltinPlatformAgentConfig
|
|
14
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JBWXPACD.js";
|
|
15
8
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./chunk-
|
|
9
|
+
buildLocalAgentLookupKeys
|
|
10
|
+
} from "./chunk-VCU5GV42.js";
|
|
11
|
+
import {
|
|
12
|
+
localDialogMessageRecordToRuntimeMessage,
|
|
13
|
+
orderDialogHistory
|
|
14
|
+
} from "./chunk-RGUWOMXU.js";
|
|
18
15
|
import {
|
|
19
16
|
resolveAgentRuntimeConfigFromRecord
|
|
20
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SBRSXY67.js";
|
|
21
18
|
import {
|
|
22
19
|
dialogMessagePrefix,
|
|
23
20
|
dialogMessageRange
|
|
24
21
|
} from "./chunk-OJKUU3LP.js";
|
|
22
|
+
import {
|
|
23
|
+
LOCAL_CODEX_AGENT_ID,
|
|
24
|
+
LOCAL_CODEX_AGENT_KEY
|
|
25
|
+
} from "./chunk-BR3GT6MR.js";
|
|
25
26
|
|
|
26
27
|
// packages/cli/client/cliLocalAgentRecordReader.ts
|
|
27
28
|
function resolveBuiltinLocalCliAgentConfig(agentRef, userId) {
|
|
@@ -86,7 +87,7 @@ async function readDialogMessages(args) {
|
|
|
86
87
|
const message = localDialogMessageRecordToRuntimeMessage(entry.record);
|
|
87
88
|
if (message) messages.push({ ...message, cliMessageId: entry.messageId });
|
|
88
89
|
}
|
|
89
|
-
return messages;
|
|
90
|
+
return orderDialogHistory(messages);
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
export {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-J2XZZXIH.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-3UNAGTBW.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SBRJOYND.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-DPAIQLAL.js";
|
|
31
31
|
import {
|
|
32
32
|
addToolMessage,
|
|
33
33
|
messageStreamEnd,
|
|
@@ -35,31 +35,31 @@ import {
|
|
|
35
35
|
toast,
|
|
36
36
|
toolResultNeedsUserConfirmation,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ODGSLWLO.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-QYNABNNQ.js";
|
|
42
42
|
import {
|
|
43
43
|
getCurrentSpaceId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ZCVBIIUE.js";
|
|
45
|
+
import {
|
|
46
|
+
write
|
|
47
|
+
} from "./chunk-6MQWGA5F.js";
|
|
45
48
|
import {
|
|
46
49
|
addActiveController,
|
|
47
50
|
getActiveDialogKey,
|
|
48
51
|
removeActiveController,
|
|
49
52
|
tokenUsageLiveUpdate
|
|
50
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-I2OYPD3Y.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-AVHRSJUH.js";
|
|
59
|
+
} from "./chunk-CJTB3OYB.js";
|
|
60
60
|
import {
|
|
61
61
|
createAsyncThunk
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-247AAJRK.js";
|
|
63
63
|
import {
|
|
64
64
|
selectIdentityToken
|
|
65
65
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
projectUserPartForModel,
|
|
71
71
|
resolveOutboundDiagnosticSink,
|
|
72
72
|
resolveOutboundWire
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-ONFFUQYM.js";
|
|
74
74
|
import {
|
|
75
75
|
accumulateToolCallDelta,
|
|
76
76
|
createThinkParserState,
|
|
@@ -82,24 +82,27 @@ import {
|
|
|
82
82
|
} from "./chunk-56GBUMO5.js";
|
|
83
83
|
import {
|
|
84
84
|
normalizeChatCompletionsBodyForProvider
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-F4MCAOWN.js";
|
|
86
86
|
import {
|
|
87
87
|
classifyApiError,
|
|
88
88
|
classifyGenerationError,
|
|
89
89
|
extractErrorDiagnostics
|
|
90
90
|
} from "./chunk-TLE77UJ5.js";
|
|
91
|
+
import {
|
|
92
|
+
LIST_AGENTS_OUTPUT_BUDGET,
|
|
93
|
+
isCompleteInstructionOutput,
|
|
94
|
+
sanitizeToolOutputText,
|
|
95
|
+
scrubSecrets
|
|
96
|
+
} from "./chunk-WFGNWWJI.js";
|
|
91
97
|
import {
|
|
92
98
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
93
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-4F7SWSWO.js";
|
|
94
100
|
import {
|
|
95
101
|
getModelInfo
|
|
96
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-RH44TIHX.js";
|
|
97
103
|
import {
|
|
98
104
|
isAbortError
|
|
99
105
|
} from "./chunk-7DPNBQSV.js";
|
|
100
|
-
import {
|
|
101
|
-
extractCustomId
|
|
102
|
-
} from "./chunk-M2EJHDJP.js";
|
|
103
106
|
import {
|
|
104
107
|
toTrimmedString
|
|
105
108
|
} from "./chunk-SYTHYBMI.js";
|
|
@@ -107,6 +110,9 @@ import {
|
|
|
107
110
|
createDialogMessageKeyAndId,
|
|
108
111
|
dialogMessageKey
|
|
109
112
|
} from "./chunk-OJKUU3LP.js";
|
|
113
|
+
import {
|
|
114
|
+
extractCustomId
|
|
115
|
+
} from "./chunk-M2EJHDJP.js";
|
|
110
116
|
import {
|
|
111
117
|
getPublicImageAgentMode
|
|
112
118
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -118,7 +124,7 @@ import {
|
|
|
118
124
|
} from "./chunk-3EUW3WEO.js";
|
|
119
125
|
import {
|
|
120
126
|
getApiEndpoint
|
|
121
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-OJRTTERA.js";
|
|
122
128
|
import {
|
|
123
129
|
isRecord
|
|
124
130
|
} from "./chunk-KUG52IAP.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) {
|
|
@@ -693,8 +716,11 @@ var processToolData = createAsyncThunk(
|
|
|
693
716
|
parentMessageId,
|
|
694
717
|
toolRunId,
|
|
695
718
|
agentKey,
|
|
719
|
+
effectiveModel: args.effectiveModel,
|
|
720
|
+
runKind: "interactive",
|
|
696
721
|
// 定档信号:这里是前台对话流式路径,来源恒为 chat;对话 id 用于数历史搜索。
|
|
697
722
|
...args.dialogId ? { dialogId: args.dialogId } : {},
|
|
723
|
+
...args.userMessageId ? { userMessageId: args.userMessageId } : {},
|
|
698
724
|
origin: "chat"
|
|
699
725
|
});
|
|
700
726
|
const rawData = toolResult?.rawData ?? toolResult;
|
|
@@ -740,10 +766,8 @@ var processToolData = createAsyncThunk(
|
|
|
740
766
|
const structured = getToolResultErrorData(e);
|
|
741
767
|
const confirmationKey = structured?.code ? CONFIRMATION_INPUT_KEYS[structured.code] : void 0;
|
|
742
768
|
if (confirmationKey) {
|
|
743
|
-
const confirmedInput = {
|
|
744
|
-
|
|
745
|
-
[confirmationKey]: true
|
|
746
|
-
};
|
|
769
|
+
const confirmedInput = structured?.code === "knowledge_capture_requires_confirmation" ? structured?.rawData?.confirmationInput : { ...executionToolArgs ?? {}, [confirmationKey]: true };
|
|
770
|
+
if (!confirmedInput) throw e;
|
|
747
771
|
const summary2 = typeof structured?.displayData === "string" && structured.displayData.trim() || `\u26A0\uFE0F ${canonicalName} \u9700\u8981\u786E\u8BA4\u540E\u6267\u884C`;
|
|
748
772
|
toolRunStarted({
|
|
749
773
|
id: toolRunId,
|
|
@@ -873,7 +897,9 @@ var handleToolCalls = createAsyncThunk(
|
|
|
873
897
|
parentMessageId: messageId,
|
|
874
898
|
toolRunId,
|
|
875
899
|
agentKey: agentConfig.dbKey,
|
|
876
|
-
|
|
900
|
+
effectiveModel: agentConfig.model,
|
|
901
|
+
dialogId,
|
|
902
|
+
userMessageId: args.userMessageId
|
|
877
903
|
})
|
|
878
904
|
).unwrap();
|
|
879
905
|
const toolName = result.toolName;
|
|
@@ -1564,7 +1590,8 @@ async function processAccumulatedToolCalls(state, ctx) {
|
|
|
1564
1590
|
agentConfig: ctx.agentConfig,
|
|
1565
1591
|
messageId: ctx.messageId,
|
|
1566
1592
|
dialogId: ctx.dialogId,
|
|
1567
|
-
dialogKey: ctx.dialogKey
|
|
1593
|
+
dialogKey: ctx.dialogKey,
|
|
1594
|
+
userMessageId: ctx.userMessageId
|
|
1568
1595
|
})
|
|
1569
1596
|
).unwrap();
|
|
1570
1597
|
const nextState = {
|
|
@@ -1627,7 +1654,8 @@ async function handleStreamCompletion(state, ctx, finalizeCtx) {
|
|
|
1627
1654
|
agentConfig: ctx.agentConfig,
|
|
1628
1655
|
dialogId: ctx.dialogId,
|
|
1629
1656
|
dialogKey: ctx.dialogKey,
|
|
1630
|
-
messageId: ctx.messageId
|
|
1657
|
+
messageId: ctx.messageId,
|
|
1658
|
+
userMessageId: ctx.userMessageId
|
|
1631
1659
|
});
|
|
1632
1660
|
let next = toolResult.state;
|
|
1633
1661
|
hasHandedOff ||= toolResult.hasHandedOff;
|
|
@@ -1649,7 +1677,8 @@ var sendOpenAICompletionsRequest = async ({
|
|
|
1649
1677
|
disableToolsForThisRequest = false,
|
|
1650
1678
|
quickChatPerfStartedAt,
|
|
1651
1679
|
streamThrottlerOptions,
|
|
1652
|
-
outboundDiagnostics
|
|
1680
|
+
outboundDiagnostics,
|
|
1681
|
+
userMessageId
|
|
1653
1682
|
}) => {
|
|
1654
1683
|
const { dispatch, getState, signal: thunkSignal } = thunkApi;
|
|
1655
1684
|
const dialogId = extractCustomId(dialogKey);
|
|
@@ -1935,7 +1964,8 @@ var sendOpenAICompletionsRequest = async ({
|
|
|
1935
1964
|
dialogId,
|
|
1936
1965
|
dialogKey: finalizeCtx.dialogKey,
|
|
1937
1966
|
messageId,
|
|
1938
|
-
agentConfig
|
|
1967
|
+
agentConfig,
|
|
1968
|
+
userMessageId
|
|
1939
1969
|
},
|
|
1940
1970
|
finalizeCtx
|
|
1941
1971
|
);
|
|
@@ -2093,6 +2123,7 @@ ${errorText}`
|
|
|
2093
2123
|
};
|
|
2094
2124
|
|
|
2095
2125
|
export {
|
|
2126
|
+
serializeAgentRunMessages,
|
|
2096
2127
|
filterAndCleanMessages,
|
|
2097
2128
|
persistToolMessages,
|
|
2098
2129
|
deliverHtmlArtifactToolResult,
|