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
|
@@ -27,7 +27,10 @@ var readIndexed = async (db, prefix) => {
|
|
|
27
27
|
var putMemoryEntityVNext = async (db, entity) => {
|
|
28
28
|
await db.put(entityKey(entity.ownerId, entity.id), entity);
|
|
29
29
|
};
|
|
30
|
-
var getMemoryEntityVNext = async (db, ownerId, entityId) => db.get(entityKey(ownerId, entityId)).catch(() =>
|
|
30
|
+
var getMemoryEntityVNext = async (db, ownerId, entityId) => db.get(entityKey(ownerId, entityId)).catch((error) => {
|
|
31
|
+
if (isLevelNotFoundError(error)) return null;
|
|
32
|
+
throw error;
|
|
33
|
+
});
|
|
31
34
|
var listMemoryEntitiesVNext = async (db, ownerId) => {
|
|
32
35
|
const rows = [];
|
|
33
36
|
for await (const [, value] of db.iterator({
|
|
@@ -62,7 +65,10 @@ var putMemoryStateVNext = async (db, state) => {
|
|
|
62
65
|
_appendStateBatch(batch, state);
|
|
63
66
|
await batch.write();
|
|
64
67
|
};
|
|
65
|
-
var getMemoryStateVNext = async (db, ownerId, stateId) => db.get(stateKey(ownerId, stateId)).catch(() =>
|
|
68
|
+
var getMemoryStateVNext = async (db, ownerId, stateId) => db.get(stateKey(ownerId, stateId)).catch((error) => {
|
|
69
|
+
if (isLevelNotFoundError(error)) return null;
|
|
70
|
+
throw error;
|
|
71
|
+
});
|
|
66
72
|
var listMemoryStatesForEntityVNext = (db, ownerId, entityId) => readIndexed(db, stateEntityIndexPrefix(ownerId, entityId));
|
|
67
73
|
var retireMemoryStateVNext = async (db, ownerId, stateId, retiredAt) => {
|
|
68
74
|
const existing = await getMemoryStateVNext(db, ownerId, stateId);
|
|
@@ -129,6 +135,16 @@ var _appendRelationBatch = (batch, relation) => {
|
|
|
129
135
|
batch.put(relationFromIndexKey(relation.ownerId, relation.from, relation.id), { key });
|
|
130
136
|
batch.put(relationToIndexKey(relation.ownerId, relation.to, relation.id), { key });
|
|
131
137
|
};
|
|
138
|
+
var loadNativeCaptureEvidenceContext = async (db, ownerId, excludeId, limit = 40) => {
|
|
139
|
+
const evidence = [];
|
|
140
|
+
const prefix = `mem2-v-${enc(ownerId)}-`;
|
|
141
|
+
let scanned = 0;
|
|
142
|
+
for await (const [, value] of db.iterator({ ...rangeOf(prefix), reverse: false })) {
|
|
143
|
+
if (++scanned > limit) return { evidence, truncated: true };
|
|
144
|
+
if (value?.nativeCapture && value.id !== excludeId) evidence.push(value);
|
|
145
|
+
}
|
|
146
|
+
return { evidence, truncated: false };
|
|
147
|
+
};
|
|
132
148
|
|
|
133
149
|
export {
|
|
134
150
|
putMemoryEntityVNext,
|
|
@@ -150,5 +166,6 @@ export {
|
|
|
150
166
|
_appendEvidenceBatch,
|
|
151
167
|
_appendStateBatch,
|
|
152
168
|
_appendRetiredStateBatch,
|
|
153
|
-
_appendRelationBatch
|
|
169
|
+
_appendRelationBatch,
|
|
170
|
+
loadNativeCaptureEvidenceContext
|
|
154
171
|
};
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
streamSseDataValues
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
|
-
import {
|
|
5
|
-
resolveToolImagePolicy
|
|
6
|
-
} from "./chunk-KNIIRXHF.js";
|
|
7
4
|
import {
|
|
8
5
|
projectOpenAiToolImages
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X4O7FJF5.js";
|
|
7
|
+
import {
|
|
8
|
+
resolveToolImagePolicy
|
|
9
|
+
} from "./chunk-P244EH4W.js";
|
|
10
10
|
import {
|
|
11
11
|
getAntigravityUserAgent,
|
|
12
12
|
readAntigravityProjectId,
|
|
13
13
|
resolveAntigravityCloudCodeBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Y22P6ASC.js";
|
|
15
15
|
import {
|
|
16
16
|
asOptionalTrimmedString
|
|
17
17
|
} from "./chunk-G3SUCT4W.js";
|
|
18
18
|
|
|
19
|
+
// packages/agent-runtime/types.ts
|
|
20
|
+
var AGENT_PROMPT_IN_MESSAGES = Symbol("agent-prompt-in-messages");
|
|
21
|
+
function hasAssembledAgentPrompt(messages) {
|
|
22
|
+
return messages.some((raw) => {
|
|
23
|
+
if (!raw || typeof raw !== "object") return false;
|
|
24
|
+
const message = raw;
|
|
25
|
+
return message.role === "system" && message[AGENT_PROMPT_IN_MESSAGES] === true;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
// packages/core/chat/upstreamErrorBody.ts
|
|
20
30
|
function parseUpstreamErrorBody(errorText, statusText) {
|
|
21
31
|
if (errorText) {
|
|
@@ -41,53 +51,115 @@ var WIRE_PROFILES = {
|
|
|
41
51
|
// Antigravity discovery exposes 3.7 Flash as one tiered wire model.
|
|
42
52
|
// The UI labels its effort variants (Low/Medium/High), but the literal
|
|
43
53
|
// -medium/-high ids return 404 from streamGenerateContent.
|
|
44
|
-
"gemini-3.7-flash-tiered": {
|
|
54
|
+
"gemini-3.7-flash-tiered": {
|
|
55
|
+
modelEnum: "MODEL_PLACEHOLDER_M301",
|
|
56
|
+
maxOutputTokens: 65536
|
|
57
|
+
},
|
|
45
58
|
// Gemini 3.8 Flash 沿用 3.7 的 tiered 兼容策略:仓库内暂无 Antigravity discovery
|
|
46
59
|
// 证据确认 3.8 的 wire modelEnum,禁止虚构,先只声明同档输出上限;enum 待
|
|
47
60
|
// discovery 证据到位后补齐。
|
|
48
61
|
"gemini-3.8-flash-tiered": { maxOutputTokens: 65536 },
|
|
49
|
-
//
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"gemini-4-argon": {
|
|
62
|
+
// Discovery (2026-11-16) exposes separate enabled Argon effort variants.
|
|
63
|
+
"gemini-4-argon-low": {
|
|
64
|
+
modelEnum: "MODEL_PLACEHOLDER_M419",
|
|
65
|
+
maxOutputTokens: 65536
|
|
66
|
+
},
|
|
67
|
+
"gemini-4-argon-medium": {
|
|
68
|
+
modelEnum: "MODEL_PLACEHOLDER_M418",
|
|
69
|
+
maxOutputTokens: 65536
|
|
70
|
+
},
|
|
71
|
+
"gemini-4-argon-high": {
|
|
72
|
+
modelEnum: "MODEL_PLACEHOLDER_M417",
|
|
73
|
+
maxOutputTokens: 65536
|
|
74
|
+
},
|
|
75
|
+
// Discovery (2026-11-17) exposes Carbon effort variants with their own enums and a
|
|
76
|
+
// 262144 output cap (Argon caps at 65536). 裸 gemini-4-carbon 不在 discovery 里,
|
|
77
|
+
// 必须折叠到 effort 变体,否则上游回 404。
|
|
78
|
+
"gemini-4-carbon-low": {
|
|
79
|
+
modelEnum: "MODEL_PLACEHOLDER_M438",
|
|
80
|
+
maxOutputTokens: 262144
|
|
81
|
+
},
|
|
82
|
+
"gemini-4-carbon-medium": {
|
|
83
|
+
modelEnum: "MODEL_PLACEHOLDER_M437",
|
|
84
|
+
maxOutputTokens: 262144
|
|
85
|
+
},
|
|
86
|
+
"gemini-4-carbon-high": {
|
|
87
|
+
modelEnum: "MODEL_PLACEHOLDER_M427",
|
|
88
|
+
maxOutputTokens: 262144
|
|
89
|
+
},
|
|
90
|
+
// Antigravity discovery 暴露 -medium / -high 变体;尚无 modelEnum 证据时不虚构 enum,仅声明 65536 输出上限。
|
|
91
|
+
"gemini-4-hydrogen-medium": { maxOutputTokens: 65536 },
|
|
92
|
+
"gemini-4-hydrogen-high": { maxOutputTokens: 65536 },
|
|
59
93
|
"gemini-3.6-flash-low": { maxOutputTokens: 65536 },
|
|
60
94
|
"gemini-3.6-flash-medium": { maxOutputTokens: 65536 },
|
|
61
95
|
"gemini-3.6-flash-high": { maxOutputTokens: 65536 },
|
|
62
96
|
// 旧模型 wire 映射保留:存量自定义 agent 仍可能引用(注册表已下线不影响此处)。
|
|
63
|
-
"gemini-3.5-flash-extra-low": {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"gemini-
|
|
97
|
+
"gemini-3.5-flash-extra-low": {
|
|
98
|
+
modelEnum: "MODEL_PLACEHOLDER_M187",
|
|
99
|
+
maxOutputTokens: 65536
|
|
100
|
+
},
|
|
101
|
+
"gemini-3.5-flash-low": {
|
|
102
|
+
modelEnum: "MODEL_PLACEHOLDER_M20",
|
|
103
|
+
maxOutputTokens: 65536
|
|
104
|
+
},
|
|
105
|
+
"gemini-3-flash-agent": {
|
|
106
|
+
modelEnum: "MODEL_PLACEHOLDER_M132",
|
|
107
|
+
maxOutputTokens: 65536
|
|
108
|
+
},
|
|
109
|
+
"gemini-3.1-pro-low": {
|
|
110
|
+
modelEnum: "MODEL_PLACEHOLDER_M36",
|
|
111
|
+
maxOutputTokens: 65535
|
|
112
|
+
},
|
|
113
|
+
"gemini-pro-agent": {
|
|
114
|
+
modelEnum: "MODEL_PLACEHOLDER_M16",
|
|
115
|
+
maxOutputTokens: 65535
|
|
116
|
+
},
|
|
68
117
|
"claude-sonnet-5": { maxOutputTokens: 64e3 },
|
|
69
118
|
"claude-sonnet-4-6": { maxOutputTokens: 64e3 },
|
|
70
119
|
"claude-opus-4-6-thinking": { maxOutputTokens: 64e3 },
|
|
71
120
|
"gemini-2.5-flash": { maxOutputTokens: 65536 },
|
|
72
121
|
"gemini-2.5-pro": { maxOutputTokens: 65536 }
|
|
73
122
|
};
|
|
74
|
-
function resolveAntigravityWireModel(logicalModelId) {
|
|
123
|
+
function resolveAntigravityWireModel(logicalModelId, reasoningEffort) {
|
|
75
124
|
const id = logicalModelId.trim();
|
|
76
125
|
const lower = id.toLowerCase();
|
|
77
126
|
if (lower === "gemini-3.5-flash") {
|
|
78
127
|
const wireModelId = "gemini-3.5-flash-low";
|
|
79
128
|
return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
|
|
80
129
|
}
|
|
81
|
-
if (lower === "gemini-3.7-flash" || [
|
|
130
|
+
if (lower === "gemini-3.7-flash" || [
|
|
131
|
+
"gemini-3.7-flash-low",
|
|
132
|
+
"gemini-3.7-flash-medium",
|
|
133
|
+
"gemini-3.7-flash-high"
|
|
134
|
+
].includes(lower)) {
|
|
82
135
|
const wireModelId = "gemini-3.7-flash-tiered";
|
|
83
136
|
return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
|
|
84
137
|
}
|
|
85
|
-
if (lower === "gemini-3.8-flash" || [
|
|
138
|
+
if (lower === "gemini-3.8-flash" || [
|
|
139
|
+
"gemini-3.8-flash-low",
|
|
140
|
+
"gemini-3.8-flash-medium",
|
|
141
|
+
"gemini-3.8-flash-high"
|
|
142
|
+
].includes(lower)) {
|
|
86
143
|
const wireModelId = "gemini-3.8-flash-tiered";
|
|
87
144
|
return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
|
|
88
145
|
}
|
|
89
|
-
|
|
90
|
-
|
|
146
|
+
const gemini4 = /^gemini-4-(argon|carbon)(?:-(low|medium|high))?$/.exec(
|
|
147
|
+
lower
|
|
148
|
+
);
|
|
149
|
+
if (gemini4) {
|
|
150
|
+
const family = gemini4[1] ?? "argon";
|
|
151
|
+
const explicitEffort = gemini4[2];
|
|
152
|
+
const effort = reasoningEffort?.trim().toLowerCase();
|
|
153
|
+
const selected = explicitEffort ?? (effort === "low" || effort === "high" ? effort : "medium");
|
|
154
|
+
const wireModelId = `gemini-4-${family}-${selected}`;
|
|
155
|
+
return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
|
|
156
|
+
}
|
|
157
|
+
const hydrogen = /^gemini-4-hydrogen(?:-(medium|high))?$/.exec(lower);
|
|
158
|
+
if (hydrogen) {
|
|
159
|
+
const explicitEffort = hydrogen[1];
|
|
160
|
+
const effort = reasoningEffort?.trim().toLowerCase();
|
|
161
|
+
const selected = explicitEffort ?? (effort === "high" ? "high" : "medium");
|
|
162
|
+
const wireModelId = `gemini-4-hydrogen-${selected}`;
|
|
91
163
|
return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
|
|
92
164
|
}
|
|
93
165
|
if (lower === "gemini-3.6-flash") {
|
|
@@ -608,10 +680,13 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
|
|
|
608
680
|
const branchRequired = Array.isArray(sanitized.required) ? sanitized.required : [];
|
|
609
681
|
requiredIntersection = requiredIntersection === void 0 ? [...branchRequired] : requiredIntersection.filter((r) => branchRequired.includes(r));
|
|
610
682
|
}
|
|
611
|
-
|
|
683
|
+
const combinedProperties = {
|
|
612
684
|
...out.properties ?? {},
|
|
613
685
|
...mergedProperties
|
|
614
686
|
};
|
|
687
|
+
out.properties = Object.fromEntries(
|
|
688
|
+
Object.keys(combinedProperties).sort().map((key) => [key, combinedProperties[key]])
|
|
689
|
+
);
|
|
615
690
|
if (requiredIntersection !== void 0 && requiredIntersection.length > 0) {
|
|
616
691
|
out.required = requiredIntersection;
|
|
617
692
|
}
|
|
@@ -639,10 +714,13 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
|
|
|
639
714
|
for (const branch of src.allOf) {
|
|
640
715
|
const sanitized = sanitizeGeminiSchemaNode(branch, seen);
|
|
641
716
|
if (out.type === void 0 || out.type === "object" || out.properties || sanitized.properties) {
|
|
642
|
-
|
|
717
|
+
const merged = {
|
|
643
718
|
...out.properties ?? {},
|
|
644
719
|
...sanitized.properties ?? {}
|
|
645
720
|
};
|
|
721
|
+
out.properties = Object.fromEntries(
|
|
722
|
+
Object.keys(merged).sort().map((key) => [key, merged[key]])
|
|
723
|
+
);
|
|
646
724
|
}
|
|
647
725
|
if (Array.isArray(sanitized.required)) {
|
|
648
726
|
out.required = [
|
|
@@ -656,11 +734,10 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
|
|
|
656
734
|
if (typeof out.type !== "string") out.type = "object";
|
|
657
735
|
}
|
|
658
736
|
if (src.properties && typeof src.properties === "object") {
|
|
737
|
+
const rawProperties = src.properties;
|
|
659
738
|
const properties = {};
|
|
660
|
-
for (const
|
|
661
|
-
|
|
662
|
-
)) {
|
|
663
|
-
properties[key] = sanitizeGeminiSchemaNode(value, seen);
|
|
739
|
+
for (const key of Object.keys(rawProperties).sort()) {
|
|
740
|
+
properties[key] = sanitizeGeminiSchemaNode(rawProperties[key], seen);
|
|
664
741
|
}
|
|
665
742
|
out.properties = properties;
|
|
666
743
|
if (typeof out.type !== "string") out.type = "object";
|
|
@@ -706,6 +783,7 @@ function convertOpenAiToolsToGemini(tools) {
|
|
|
706
783
|
});
|
|
707
784
|
}
|
|
708
785
|
if (declarations.length === 0) return void 0;
|
|
786
|
+
declarations.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|
|
709
787
|
return [{ functionDeclarations: declarations }];
|
|
710
788
|
}
|
|
711
789
|
function createGeminiAccumulatorState() {
|
|
@@ -721,19 +799,25 @@ function applyGeminiChunk(chunk, state, options) {
|
|
|
721
799
|
const response = "response" in chunk && chunk.response && typeof chunk.response === "object" ? chunk.response : chunk;
|
|
722
800
|
if ("usageMetadata" in response && response.usageMetadata && typeof response.usageMetadata === "object") {
|
|
723
801
|
const meta = response.usageMetadata;
|
|
724
|
-
const
|
|
802
|
+
const hasPromptTokenCount = typeof meta.promptTokenCount === "number" && Number.isFinite(meta.promptTokenCount);
|
|
803
|
+
const hasCachedContentTokenCount = typeof meta.cachedContentTokenCount === "number" && Number.isFinite(meta.cachedContentTokenCount);
|
|
804
|
+
const prompt = hasPromptTokenCount ? meta.promptTokenCount : 0;
|
|
725
805
|
const candidates2 = typeof meta.candidatesTokenCount === "number" ? meta.candidatesTokenCount : 0;
|
|
726
806
|
const total = typeof meta.totalTokenCount === "number" ? meta.totalTokenCount : prompt + candidates2;
|
|
727
|
-
const
|
|
807
|
+
const clampedPrompt = Math.max(0, Math.floor(prompt));
|
|
808
|
+
const cached = hasCachedContentTokenCount ? (
|
|
728
809
|
// cached ⊆ prompt;对畸形上游防御性钳位,避免 cache_read > input 破坏归一化与计费
|
|
729
|
-
Math.min(
|
|
810
|
+
Math.min(
|
|
811
|
+
Math.max(0, Math.floor(meta.cachedContentTokenCount)),
|
|
812
|
+
clampedPrompt
|
|
813
|
+
)
|
|
730
814
|
) : 0;
|
|
731
815
|
const thoughts = typeof meta.thoughtsTokenCount === "number" ? meta.thoughtsTokenCount : Array.isArray(meta.candidatesTokensDetails) && typeof meta.candidatesTokensDetails[0]?.tokensCount === "number" ? meta.candidatesTokensDetails[0].tokensCount : void 0;
|
|
732
816
|
state.usage = {
|
|
733
817
|
prompt_tokens: prompt,
|
|
734
818
|
completion_tokens: candidates2,
|
|
735
819
|
total_tokens: total,
|
|
736
|
-
...
|
|
820
|
+
...hasPromptTokenCount || hasCachedContentTokenCount ? { cache_read_input_tokens: cached } : {},
|
|
737
821
|
...thoughts !== void 0 ? {
|
|
738
822
|
completion_tokens_details: {
|
|
739
823
|
reasoning_tokens: thoughts
|
|
@@ -840,7 +924,7 @@ function buildGeminiGenerateContentRequest(args) {
|
|
|
840
924
|
maxImagesPerRequest: toolImagePolicy.maxImagesPerRequest
|
|
841
925
|
}
|
|
842
926
|
);
|
|
843
|
-
const request = {
|
|
927
|
+
const request = {};
|
|
844
928
|
if (systemTexts.length > 0) {
|
|
845
929
|
request.systemInstruction = {
|
|
846
930
|
role: "user",
|
|
@@ -852,6 +936,7 @@ function buildGeminiGenerateContentRequest(args) {
|
|
|
852
936
|
request.tools = toolsResult;
|
|
853
937
|
request.toolConfig = { functionCallingConfig: { mode: "AUTO" } };
|
|
854
938
|
}
|
|
939
|
+
request.contents = contents;
|
|
855
940
|
const generationConfig = {};
|
|
856
941
|
if (typeof args.maxTokens === "number" && args.maxTokens > 0) {
|
|
857
942
|
generationConfig.maxOutputTokens = args.maxTokens;
|
|
@@ -898,7 +983,10 @@ function buildCloudCodeAssistPayload(args) {
|
|
|
898
983
|
);
|
|
899
984
|
}
|
|
900
985
|
const logicalModel = asOptionalTrimmedString(args.openAiBody.model) ?? asOptionalTrimmedString(args.agentConfig.model) ?? "gemini-3.1-pro";
|
|
901
|
-
const { wireModelId: model, profile } = resolveAntigravityWireModel(
|
|
986
|
+
const { wireModelId: model, profile } = resolveAntigravityWireModel(
|
|
987
|
+
logicalModel,
|
|
988
|
+
asOptionalTrimmedString(args.openAiBody.reasoning_effort) ?? args.agentConfig.reasoning_effort
|
|
989
|
+
);
|
|
902
990
|
const rawMessages = Array.isArray(args.openAiBody.messages) ? args.openAiBody.messages : [];
|
|
903
991
|
const quirks = resolveGeminiModelQuirks(model);
|
|
904
992
|
const isClaude = quirks.isClaudeCrossModel;
|
|
@@ -916,8 +1004,8 @@ function buildCloudCodeAssistPayload(args) {
|
|
|
916
1004
|
throw new Error("Antigravity Cloud Code Assist request has no user/model contents.");
|
|
917
1005
|
}
|
|
918
1006
|
const prompt = args.agentConfig.prompt?.trim();
|
|
919
|
-
if (prompt) systemTexts.unshift(prompt);
|
|
920
|
-
const request = {
|
|
1007
|
+
if (prompt && !hasAssembledAgentPrompt(rawMessages)) systemTexts.unshift(prompt);
|
|
1008
|
+
const request = {};
|
|
921
1009
|
if (systemTexts.length > 0) {
|
|
922
1010
|
request.systemInstruction = {
|
|
923
1011
|
role: "user",
|
|
@@ -931,6 +1019,7 @@ function buildCloudCodeAssistPayload(args) {
|
|
|
931
1019
|
request.tools = tools;
|
|
932
1020
|
request.toolConfig = { functionCallingConfig: { mode: "AUTO" } };
|
|
933
1021
|
}
|
|
1022
|
+
request.contents = contents;
|
|
934
1023
|
const generationConfig = {};
|
|
935
1024
|
if (profile?.maxOutputTokens) {
|
|
936
1025
|
generationConfig.maxOutputTokens = profile.maxOutputTokens;
|
|
@@ -1199,6 +1288,8 @@ function buildDevinOAuthCredential(token, now = Date.now()) {
|
|
|
1199
1288
|
}
|
|
1200
1289
|
|
|
1201
1290
|
export {
|
|
1291
|
+
AGENT_PROMPT_IN_MESSAGES,
|
|
1292
|
+
hasAssembledAgentPrompt,
|
|
1202
1293
|
parseSseDataLineJson,
|
|
1203
1294
|
parseSseDataLineObject,
|
|
1204
1295
|
parseUpstreamErrorBody,
|
|
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
206
206
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
|
-
const { readAction } = await import("./read-
|
|
209
|
+
const { readAction } = await import("./read-QAHEQID5.js");
|
|
210
210
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
211
211
|
if (!pageData) {
|
|
212
212
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
@@ -3,26 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6S6CZUXK.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QYNABNNQ.js";
|
|
10
10
|
import {
|
|
11
|
-
CREDENTIAL_HYGIENE_RULE,
|
|
12
|
-
DELETE_SAFETY_RED_LINE,
|
|
13
|
-
DISPATCH_BACKEND_POLICY,
|
|
14
|
-
DISPATCH_CANDIDATE_POLICY,
|
|
15
|
-
PARALLEL_DISPATCH_DEFAULT_RULE,
|
|
16
|
-
PLATFORM_RISK_CONTROL_RULE,
|
|
17
|
-
VERIFY_BEFORE_CONCLUDING_RULE,
|
|
18
|
-
buildConsultationModeBlock,
|
|
19
11
|
buildIdentityBlock,
|
|
12
|
+
buildPlatformStaticContextLayers,
|
|
20
13
|
buildResponseGuidelines,
|
|
21
14
|
buildRuntimeGuidanceBlocks,
|
|
22
15
|
compileContextLayers,
|
|
23
16
|
detectDispatchIntentFromMessages,
|
|
24
17
|
resolveToolGuidedSections
|
|
25
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ER3P6MBT.js";
|
|
26
19
|
import {
|
|
27
20
|
convertMessagesToResponsesInput,
|
|
28
21
|
getUsageRequestOptions,
|
|
@@ -31,32 +24,36 @@ import {
|
|
|
31
24
|
resolveReasoningReplayOptions,
|
|
32
25
|
shouldStripReasoningContentForOutbound,
|
|
33
26
|
stablePromptCacheKey
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-F4MCAOWN.js";
|
|
35
28
|
import {
|
|
36
29
|
resolveAgentCallPlan,
|
|
37
30
|
resolveClientWire
|
|
38
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ENYTIRIO.js";
|
|
39
32
|
import {
|
|
40
33
|
createFileCredentialBroker
|
|
41
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OQHIVPG4.js";
|
|
35
|
+
import {
|
|
36
|
+
MEMORY_USE_GUIDANCE,
|
|
37
|
+
buildUserResponseLanguageContext
|
|
38
|
+
} from "./chunk-YGDYYFRX.js";
|
|
39
|
+
import {
|
|
40
|
+
wrapHistoricalSummaryWithReplayGuard
|
|
41
|
+
} from "./chunk-2SXN7LAY.js";
|
|
42
42
|
import {
|
|
43
|
-
WORKTREE_ISOLATION_PRELUDE,
|
|
44
43
|
buildSkillGuidancePromptBlock
|
|
45
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-RIMFTQMC.js";
|
|
46
45
|
import {
|
|
47
46
|
canonicalizeToolNames
|
|
48
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-YLAHYLDQ.js";
|
|
49
48
|
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
wrapHistoricalSummaryWithReplayGuard
|
|
53
|
-
} from "./chunk-L5I543VB.js";
|
|
54
|
-
import {
|
|
55
|
-
buildProviderAuthHeaders
|
|
56
|
-
} from "./chunk-4NA3YTBC.js";
|
|
49
|
+
API_ENDPOINTS
|
|
50
|
+
} from "./chunk-LCBAMY2M.js";
|
|
57
51
|
import {
|
|
58
52
|
toErrorMessage
|
|
59
53
|
} from "./chunk-HNMXYYJR.js";
|
|
54
|
+
import {
|
|
55
|
+
buildProviderAuthHeaders
|
|
56
|
+
} from "./chunk-LMFMV5UC.js";
|
|
60
57
|
import {
|
|
61
58
|
asTrimmedString
|
|
62
59
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -64,25 +61,22 @@ import {
|
|
|
64
61
|
clampReasoningEffort,
|
|
65
62
|
getModelConfig,
|
|
66
63
|
isModelSupportReasoningEffort
|
|
67
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-OJRTTERA.js";
|
|
68
65
|
import {
|
|
69
66
|
isRecord
|
|
70
67
|
} from "./chunk-KUG52IAP.js";
|
|
71
|
-
import {
|
|
72
|
-
isDeepInfraKimiModel,
|
|
73
|
-
isFireworksKimiModel,
|
|
74
|
-
isPlatformMimoProviderModel,
|
|
75
|
-
resolveFireworksKimiModel
|
|
76
|
-
} from "./chunk-OBSEKCVK.js";
|
|
77
|
-
import {
|
|
78
|
-
API_ENDPOINTS
|
|
79
|
-
} from "./chunk-LCBAMY2M.js";
|
|
80
68
|
import {
|
|
81
69
|
asOptionalTrimmedString
|
|
82
70
|
} from "./chunk-G3SUCT4W.js";
|
|
83
71
|
import {
|
|
84
72
|
isLoopbackUrl
|
|
85
73
|
} from "./chunk-4SN6J65J.js";
|
|
74
|
+
import {
|
|
75
|
+
isDeepInfraKimiModel,
|
|
76
|
+
isFireworksKimiModel,
|
|
77
|
+
isPlatformMimoProviderModel,
|
|
78
|
+
resolveFireworksKimiModel
|
|
79
|
+
} from "./chunk-U4VSBDO5.js";
|
|
86
80
|
|
|
87
81
|
// packages/agent-runtime/responsesConversationState.ts
|
|
88
82
|
function supportsResponsesConversationState(agent) {
|
|
@@ -247,8 +241,7 @@ ${mainPrompt}` : "";
|
|
|
247
241
|
emailRegistrationWorkflow
|
|
248
242
|
} = buildRuntimeGuidanceBlocks(agentTools);
|
|
249
243
|
const clarifyingSection = !mainPrompt || hasAskTool ? CLARIFICATION_MODE_INSTRUCTIONS : "";
|
|
250
|
-
const userGlobalPromptSection =
|
|
251
|
-
${contexts.userGlobalPrompt.trim()} ` : "";
|
|
244
|
+
const userGlobalPromptSection = "";
|
|
252
245
|
const effectiveViewport = viewport ?? contexts.viewport;
|
|
253
246
|
const isMobile = effectiveViewport !== void 0 ? effectiveViewport.width < mobileBreakpoint : typeof contexts.isMobile === "boolean" ? contexts.isMobile : isBrowser && typeof window !== "undefined" ? window.innerWidth < mobileBreakpoint : false;
|
|
254
247
|
const responseGuidelinesSection = buildResponseGuidelines(isMobile);
|
|
@@ -267,65 +260,8 @@ ${contexts.userGlobalPrompt.trim()} ` : "";
|
|
|
267
260
|
const dialogSummarySection = contexts.dialogSummary?.trim() ? `--- \u5386\u53F2\u5BF9\u8BDD\u6458\u8981 ---
|
|
268
261
|
${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
269
262
|
return compileContextLayers([
|
|
270
|
-
//
|
|
271
|
-
|
|
272
|
-
{
|
|
273
|
-
id: "delete-safety-red-line",
|
|
274
|
-
owner: "platform",
|
|
275
|
-
cacheScope: "static",
|
|
276
|
-
content: DELETE_SAFETY_RED_LINE
|
|
277
|
-
},
|
|
278
|
-
// 凭据纪律:与红线同为无条件系统层块,四条装配线同源。
|
|
279
|
-
{
|
|
280
|
-
id: "credential-hygiene",
|
|
281
|
-
owner: "platform",
|
|
282
|
-
cacheScope: "static",
|
|
283
|
-
content: CREDENTIAL_HYGIENE_RULE
|
|
284
|
-
},
|
|
285
|
-
// 先验证再下结论:一切动作的前提,紧随凭据纪律、先于并行/派发/发布规则。
|
|
286
|
-
{
|
|
287
|
-
id: "verify-before-concluding",
|
|
288
|
-
owner: "platform",
|
|
289
|
-
cacheScope: "static",
|
|
290
|
-
content: VERIFY_BEFORE_CONCLUDING_RULE
|
|
291
|
-
},
|
|
292
|
-
// 并行是默认:系统层固定块,紧随红线(同为无条件前缀,不随工具/轮次变化)。
|
|
293
|
-
{
|
|
294
|
-
id: "parallel-dispatch-default",
|
|
295
|
-
owner: "platform",
|
|
296
|
-
cacheScope: "static",
|
|
297
|
-
content: PARALLEL_DISPATCH_DEFAULT_RULE
|
|
298
|
-
},
|
|
299
|
-
// 派发落点:并行派发纪律的下一层(派到哪个执行后端),紧随并行块。
|
|
300
|
-
{
|
|
301
|
-
id: "dispatch-backend-policy",
|
|
302
|
-
owner: "platform",
|
|
303
|
-
cacheScope: "static",
|
|
304
|
-
content: DISPATCH_BACKEND_POLICY
|
|
305
|
-
},
|
|
306
|
-
// 派发选人:可用性重扫与速度口径(与后端块同级,紧随其后)。
|
|
307
|
-
{
|
|
308
|
-
id: "dispatch-candidate-policy",
|
|
309
|
-
owner: "platform",
|
|
310
|
-
cacheScope: "static",
|
|
311
|
-
content: DISPATCH_CANDIDATE_POLICY
|
|
312
|
-
},
|
|
313
|
-
// 平台风控纪律:无条件静态前缀,紧随并行派发块。
|
|
314
|
-
{
|
|
315
|
-
id: "platform-risk-control",
|
|
316
|
-
owner: "platform",
|
|
317
|
-
cacheScope: "static",
|
|
318
|
-
content: PLATFORM_RISK_CONTROL_RULE
|
|
319
|
-
},
|
|
320
|
-
{ id: "consultation-mode", owner: "platform", cacheScope: "static", content: buildConsultationModeBlock() },
|
|
321
|
-
// Git 任务隔离:仓库改动前置,系统层固定块(原 worktree-isolation skill 上移,
|
|
322
|
-
// 不受 skill 配置 disabled 影响)。排在既有平台块之后,不扰动其顺序契约。
|
|
323
|
-
{
|
|
324
|
-
id: "worktree-isolation-prelude",
|
|
325
|
-
owner: "platform",
|
|
326
|
-
cacheScope: "static",
|
|
327
|
-
content: WORKTREE_ISOLATION_PRELUDE
|
|
328
|
-
},
|
|
263
|
+
// 顶部固定平台层(唯一真源见 agent-runtime/platformStaticPromptLayers.ts)。
|
|
264
|
+
...buildPlatformStaticContextLayers(),
|
|
329
265
|
{ id: "identity", owner: "platform", cacheScope: "session", content: identitySection },
|
|
330
266
|
{ id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
|
|
331
267
|
{ id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
|
|
@@ -1234,6 +1170,7 @@ function sanitizeOutboundBody(body) {
|
|
|
1234
1170
|
|
|
1235
1171
|
// packages/ai/tools/stripModelConfirmationFlags.ts
|
|
1236
1172
|
var CONFIRMATION_INPUT_KEYS = {
|
|
1173
|
+
knowledge_capture_requires_confirmation: "__confirmedKnowledgeCapture",
|
|
1237
1174
|
self_evolution_requires_confirmation: "__confirmedSelfEvolution",
|
|
1238
1175
|
agent_update_requires_confirmation: "__confirmedSelfEvolution",
|
|
1239
1176
|
media_job_start_requires_confirmation: "__confirmedMediaJobStart"
|
|
@@ -3,10 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-5ZUL4CUO.js";
|
|
4
4
|
import {
|
|
5
5
|
getModelContextWindow
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
BUILTIN_NOLO_AGENT_KEY
|
|
9
|
-
} from "./chunk-UJKTI5PG.js";
|
|
6
|
+
} from "./chunk-RH44TIHX.js";
|
|
10
7
|
import {
|
|
11
8
|
isPageKey,
|
|
12
9
|
isTableMetaKey
|
|
@@ -14,6 +11,9 @@ import {
|
|
|
14
11
|
import {
|
|
15
12
|
isDialogRecordKey
|
|
16
13
|
} from "./chunk-OJKUU3LP.js";
|
|
14
|
+
import {
|
|
15
|
+
BUILTIN_NOLO_AGENT_KEY
|
|
16
|
+
} from "./chunk-WRKMXMU7.js";
|
|
17
17
|
import {
|
|
18
18
|
asTrimmedString
|
|
19
19
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -453,11 +453,24 @@ function resolveEmptyAssistantFallbackMessage(reason) {
|
|
|
453
453
|
if (reason === "stagnant_tool_calls") return STAGNANT_TOOL_CALLS_FALLBACK_MESSAGE;
|
|
454
454
|
return EMPTY_ASSISTANT_FALLBACK_MESSAGE;
|
|
455
455
|
}
|
|
456
|
+
var DEGENERATE_CLOSING_BRACKET_FRAGMENT_RE = /^[}\])]+$/;
|
|
457
|
+
var MAX_DEGENERATE_FRAGMENT_CHARS = 4;
|
|
458
|
+
function isDegenerateClosingBracketFragment(text) {
|
|
459
|
+
if (typeof text !== "string") return false;
|
|
460
|
+
const compact = text.replace(/\s+/g, "");
|
|
461
|
+
return compact.length >= 1 && compact.length <= MAX_DEGENERATE_FRAGMENT_CHARS && DEGENERATE_CLOSING_BRACKET_FRAGMENT_RE.test(compact);
|
|
462
|
+
}
|
|
456
463
|
function hasAssistantVisibleOutput(content) {
|
|
457
|
-
if (typeof content === "string")
|
|
464
|
+
if (typeof content === "string") {
|
|
465
|
+
const trimmed = content.trim();
|
|
466
|
+
return trimmed.length > 0 && !isDegenerateClosingBracketFragment(trimmed);
|
|
467
|
+
}
|
|
458
468
|
if (!Array.isArray(content)) return false;
|
|
459
469
|
return content.some((part) => {
|
|
460
|
-
if (part?.type === "text"
|
|
470
|
+
if (part?.type === "text") {
|
|
471
|
+
const text = String(part.text ?? "").trim();
|
|
472
|
+
return text.length > 0 && !isDegenerateClosingBracketFragment(text);
|
|
473
|
+
}
|
|
461
474
|
if (part?.type === "image_url") {
|
|
462
475
|
const url = part?.image_url?.url;
|
|
463
476
|
return typeof url === "string" && url.trim().length > 0;
|
|
@@ -493,13 +506,6 @@ function resolveTruncatedReasoningTailLog(reason, reasoning_content) {
|
|
|
493
506
|
}
|
|
494
507
|
|
|
495
508
|
export {
|
|
496
|
-
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
497
|
-
resolveAutoExecutionProfile,
|
|
498
|
-
ATTACHMENT_PART_TYPE,
|
|
499
|
-
ATTACHMENT_PART_VERSION,
|
|
500
|
-
normalizeAttachmentPart,
|
|
501
|
-
attachmentKind,
|
|
502
|
-
describeAttachmentForModel,
|
|
503
509
|
isCodexOAuthAgent,
|
|
504
510
|
resolveCodexOAuthEffectiveModel,
|
|
505
511
|
CODEX_OAUTH_CATALOG_TTL_MS,
|
|
@@ -511,6 +517,13 @@ export {
|
|
|
511
517
|
codexOAuthCatalogWindow,
|
|
512
518
|
devinChannelContextWindow,
|
|
513
519
|
resolveAgentContextWindow,
|
|
520
|
+
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
521
|
+
resolveAutoExecutionProfile,
|
|
522
|
+
ATTACHMENT_PART_TYPE,
|
|
523
|
+
ATTACHMENT_PART_VERSION,
|
|
524
|
+
normalizeAttachmentPart,
|
|
525
|
+
attachmentKind,
|
|
526
|
+
describeAttachmentForModel,
|
|
514
527
|
asOptionalJsonRecord,
|
|
515
528
|
extractReferenceKeysFromMessage,
|
|
516
529
|
EMPTY_ASSISTANT_REPAIR_PROMPT,
|