nolo-cli 0.225.0-alpha.1 → 0.225.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/{_executeModel-L5VHAXSU.js → _executeModel-UCWDB72C.js} +79 -73
- package/{action-CK64LS6S.js → action-24MZYW2B.js} +11 -8
- package/{addContentAction-EQXMFNPR.js → addContentAction-HEMCSSHT.js} +14 -13
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-SQYDOXHA.js} +15 -14
- package/{agentDeleteCommand-4WC7INCX.js → agentDeleteCommand-P7O3ACNJ.js} +131 -124
- package/{agentEmailCommands-3XFR6WY7.js → agentEmailCommands-A5BRSYWK.js} +134 -123
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-BBCP5XYW.js → agentListCommands-LDRCOOMO.js} +112 -496
- package/{agentMachineCommands-YZDCOLQL.js → agentMachineCommands-AYL53KJV.js} +65 -58
- package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-N5EA3ED2.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
- package/agentRecordCommands-FICBZ57C.js +188 -0
- package/{agentRunCommand-NHYBV4G5.js → agentRunCommand-CTXQGDUM.js} +135 -120
- package/{agentRunControl-7A2FOXIJ.js → agentRunControl-CO6BASZF.js} +20 -14
- package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5YN4D5WT.js} +48 -41
- package/{agentSlice-O6IGTM3Y.js → agentSlice-DJ5D4DU4.js} +18 -17
- package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-B4E7N7M2.js} +58 -51
- package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-E4DTXRRM.js} +58 -51
- package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-FCNHYHZM.js} +58 -51
- package/{appGetCommands-LN72GAOA.js → appGetCommands-4DXSQHUZ.js} +58 -51
- package/{appListCommands-IJQQ3VND.js → appListCommands-2NN5E4F6.js} +58 -51
- package/{authCommand-7JXW54U4.js → authCommand-47DR6GZT.js} +33 -28
- package/{authCommands-YDNAIDEY.js → authCommands-ZZ3L5IFM.js} +16 -11
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +5 -5
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-VZWAY2KR.js} +6 -6
- package/{chunk-YDBMZ7FV.js → chunk-24GVXSWK.js} +3 -3
- package/{chunk-JCK3EFZS.js → chunk-25OCZXSX.js} +63 -32
- package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-N5PQJKCY.js → chunk-2XMKW2OY.js} +13 -12
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-UKS7D2NL.js → chunk-3NFWMSTA.js} +111 -26
- package/{chunk-TZEP5J4A.js → chunk-3V6JT6WN.js} +2935 -1412
- package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
- package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-VFBVA3U2.js → chunk-5TJE4QCL.js} +131 -40
- package/{chunk-YXMBJ7UH.js → chunk-6BGJHJRN.js} +21 -21
- package/chunk-6D25V6CB.js +133 -0
- package/chunk-6RSNVJGO.js +279 -0
- package/{chunk-IZIN2UNJ.js → chunk-6X3CS6NJ.js} +203 -24
- package/{chunk-XZGQ6ZCV.js → chunk-6XBOPKUH.js} +27 -90
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7OTNBI77.js} +13 -6
- package/{chunk-HOK3ILHA.js → chunk-7Q7MKJZN.js} +590 -330
- package/{chunk-KZU52OJ5.js → chunk-7U2TFUWW.js} +6 -6
- package/{chunk-IUD7YR3B.js → chunk-B72AFRR2.js} +15 -15
- package/{chunk-4HFTBHBF.js → chunk-BDERPCJW.js} +8 -8
- package/chunk-BEM6LPD2.js +734 -0
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-6J4TTPS2.js → chunk-BIJTI5SX.js} +5 -5
- package/chunk-BWW6WRX6.js +1438 -0
- package/{chunk-AGP3YSEC.js → chunk-C3GOEQJF.js} +46 -1
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-MOMR7NMG.js → chunk-C646JEUV.js} +2 -2
- package/{chunk-YI5CDUJD.js → chunk-CT6GT2BG.js} +9 -9
- package/{chunk-PVZY6P3S.js → chunk-CZLSTOVM.js} +2 -2
- package/{chunk-LJSNEV7M.js → chunk-DGUUOHBF.js} +8 -8
- package/{chunk-C4WTX5TU.js → chunk-DIBQXNGW.js} +2 -2
- package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
- package/{chunk-K44HIUBX.js → chunk-DLTMAXLF.js} +13 -13
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-SOG7OEXX.js → chunk-DWWUVRB5.js} +1 -1
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
- package/{chunk-KC4SCKXO.js → chunk-EIFSCI4C.js} +990 -1370
- package/{chunk-F3YK7KIU.js → chunk-EW37CXCQ.js} +4 -4
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-2VUZSVAS.js → chunk-F3FQPVHE.js} +57 -20
- package/{chunk-ZRAARRA3.js → chunk-FCAMGBLY.js} +1399 -2978
- package/{chunk-AK5O76CC.js → chunk-FPMPWNVQ.js} +3 -3
- package/{chunk-WQEMD4Z4.js → chunk-FSIEHQNH.js} +420 -120
- package/{chunk-FNDSBM4J.js → chunk-FXX6VFMV.js} +571 -348
- package/{chunk-7XS4W5KP.js → chunk-G6OPRPXH.js} +128 -149
- package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
- package/{chunk-2TIQO6TC.js → chunk-GCVFX6ZL.js} +206 -308
- package/{chunk-P25E3CKY.js → chunk-H6CHPU6M.js} +4 -4
- package/chunk-HNWZJI4N.js +33394 -0
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-KNIIRXHF.js → chunk-IPRPYKBP.js} +46 -8
- package/{chunk-C4VAR65S.js → chunk-IUXBKS5L.js} +200 -120
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-Z6USB65D.js → chunk-KGIIZXPL.js} +347 -14
- package/chunk-KK3FCYZM.js +647 -0
- package/{chunk-GBZ4YKEO.js → chunk-KOIDLCAQ.js} +8 -8
- package/{chunk-2ZKFCIJJ.js → chunk-LCQJH7KN.js} +1 -1
- package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
- package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
- package/{chunk-XN23AUVU.js → chunk-LMZRXDWG.js} +8 -5
- package/{chunk-EWPDMS4N.js → chunk-LN4ZVSO7.js} +30 -15
- package/{chunk-GOAPXKQU.js → chunk-LT3DMEIB.js} +4 -4
- package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-FTQWYWUI.js → chunk-MDVP5TLI.js} +1 -1
- package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
- package/{chunk-D726I5AZ.js → chunk-NBB2EBQD.js} +2 -2
- package/{chunk-DISQCYPE.js → chunk-NL7J2J5Z.js} +6 -6
- package/{chunk-JM5C4EUA.js → chunk-NQQL2DKF.js} +6 -6
- package/{chunk-LS2MGTUS.js → chunk-NWWQY2J5.js} +15 -15
- package/{chunk-TXGQ4O5S.js → chunk-OATIWAKN.js} +20 -174
- package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
- package/{chunk-VV7TXWOC.js → chunk-OYHJ4TW7.js} +6 -6
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-2VA6TU4I.js → chunk-QES2NCVM.js} +17 -14
- package/{chunk-WG2LFJYB.js → chunk-QGMIUVBT.js} +39 -30
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-AMEOV5VZ.js → chunk-S25VJYXV.js} +41 -35
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
- package/{chunk-GVGOEMNV.js → chunk-T444ENEC.js} +3 -3
- package/{chunk-67BE44IS.js → chunk-TE2XH4KH.js} +1 -1
- package/{chunk-5RKUPJYL.js → chunk-TFGGNRT6.js} +11 -3
- package/{chunk-ZH6MUQEO.js → chunk-TTEBPPUV.js} +1 -1
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-AVHRSJUH.js → chunk-TXFYIWAW.js} +32 -25
- package/{chunk-KOXKKHFE.js → chunk-TXQVH72L.js} +9 -4
- package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
- package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
- package/{chunk-KDAGMRDA.js → chunk-UAHUJ4HH.js} +100 -32
- package/{chunk-BGGHA5DV.js → chunk-UAOFSUG7.js} +1 -1
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/chunk-UKSKCDBG.js +62 -0
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UYOICCYG.js → chunk-WHO3LYDW.js} +64 -89
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-QLFCTYRH.js → chunk-X37RQEA3.js} +17 -10
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/chunk-X7IA2B7R.js +166 -0
- package/{chunk-GIABSSWQ.js → chunk-XAFOLWLU.js} +4 -4
- package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
- package/{chunk-EOJZGQAE.js → chunk-Y5RN44VH.js} +103 -100
- package/{chunk-OB6DVWPF.js → chunk-YFRJAE3R.js} +319 -95
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-3KNEE64G.js → chunk-YMCSR7PA.js} +14 -14
- package/chunk-YUZ2DAIH.js +34 -0
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-XQBIZRGW.js → chunk-ZBQ5UGYY.js} +3 -3
- package/{chunk-VREDDN25.js → chunk-ZQUCJBS4.js} +14 -9
- package/{chunk-UEKXWO7A.js → chunk-ZT3DYK5T.js} +15 -4
- package/{chunk-LM2PS3YS.js → chunk-ZTLTDUV6.js} +24 -11
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-RFR7ZCSK.js} +12 -12
- 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-6FXGFBI3.js → cliLocalAgentRecordReader-AJ4UKHKT.js} +51 -45
- package/{commandRegistry-HJDPQSQ4.js → commandRegistry-IHWZVV4G.js} +98 -94
- package/{contentThunks-I6OR5ENG.js → contentThunks-YQRCBDKF.js} +38 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-W67DE765.js} +4 -4
- package/{createAgentAutomationAction-7BCCTWO5.js → createAgentAutomationAction-ERSDNR4R.js} +38 -35
- package/{createDialogAction-CU27KSCJ.js → createDialogAction-QXC7JZPE.js} +39 -37
- package/{createPageAction-CWRTEYVA.js → createPageAction-RLZ7776F.js} +40 -37
- package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
- package/{dbSlice-ZJPDIFER.js → dbSlice-7M2ESEUO.js} +13 -12
- package/{deleteFile-Q3YDB4ML.js → deleteFile-WO6WSSNK.js} +10 -7
- package/{dialogCommands-OPTRZWTE.js → dialogCommands-UIRO4QNN.js} +62 -56
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-VDUFYBZV.js} +14 -14
- package/{dialogSlice-XODSLDHY.js → dialogSlice-A4U3C76D.js} +36 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-SEC6UZWM.js} +3 -3
- package/{docCreateCommands-36WS33BK.js → docCreateCommands-MHPYTJWR.js} +56 -49
- package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-VYULMBAQ.js} +58 -51
- package/{docReadCommands-QZMSFMPN.js → docReadCommands-FV3GGZ7V.js} +56 -49
- package/{docStore-TVN4SNVE.js → docStore-AWWI72FA.js} +15 -14
- package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-JNS3HX7F.js} +56 -49
- package/fetchMessages-TQEUZD7H.js +2 -2
- package/{getPricing-VNGFM4PN.js → getPricing-U5AR7ZHS.js} +5 -5
- package/{handleSendMessageAction-NSEMVHWX.js → handleSendMessageAction-WDJOUDNV.js} +68 -63
- package/{hostCredentialCreate-WBZY7DZB.js → hostCredentialCreate-H3FF2SAO.js} +123 -111
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +2 -2
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
- package/{localRuntimeAdapter-OAIWERFA.js → localRuntimeAdapter-JAQQXZJP.js} +126 -113
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
- package/{machineCommands-OI37ZUQ4.js → machineCommands-WYOFNB5I.js} +146 -120
- package/{machineWsRunDispatch-73HKPV6D.js → machineWsRunDispatch-Y7UIAZNM.js} +118 -107
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/mcpLocalAuthorizeCommand-SCYEFLRK.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-DIITWU4M.js} +22 -17
- 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-GVEARCOG.js → projectArchive-IZJXBW5N.js} +43 -40
- package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-2QWXPJXZ.js} +6 -6
- package/{providerRegistry-KJGB5XWS.js → providerRegistry-W4LCKK6V.js} +6 -6
- package/{read-Q7GOHGNP.js → read-OBLJNMA2.js} +9 -8
- package/{readDocTool-Z5OQ6422.js → readDocTool-QQZ4DAER.js} +1 -1
- package/{readlineWorkspace-5DWUGNSU.js → readlineWorkspace-WF3SWZGR.js} +7055 -5248
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-HC3SOY3G.js} +17 -16
- package/{runAgentClientLoop-RDXIPF34.js → runAgentClientLoop-Z7V6TA3O.js} +97 -72
- package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-KX6YLPWV.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-STRAX275.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-DDZUQPY6.js} +16 -15
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-EB67OMAJ.js} +17 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-TN6GFASU.js} +181 -62
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-GUKMDRWN.js → spaceCommands-HBYQUVJI.js} +61 -54
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-XEYQZPDJ.js → streamAgentChatTurn-CM7QQXOS.js} +178 -173
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-XY5TKQQE.js} +15 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-MXFL3JIT.js} +13 -10
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
- package/{tools-6DFTHCFX.js → tools-AT6H73LD.js} +66 -62
- package/tuiRestart-272SAYSK.js +41 -0
- package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-K2OVRVHG.js} +20 -19
- package/{updateCommands-RJVCRSBP.js → updateCommands-O3BOVVVN.js} +8 -6
- package/{updateDialogTitleAction-AMSBV2H7.js → updateDialogTitleAction-PGY4UPLH.js} +38 -35
- package/{usageCommand-YPJ2ZI2F.js → usageCommand-SCF3ROV2.js} +4 -4
- package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-K5WPIBA5.js} +5 -5
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-WJDUZLEO.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/agentRecordCommands-KLYKI4Z7.js +0 -177
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-652XYZGP.js +0 -352
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-QZI44GWV.js +0 -776
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.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
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deriveStateResident
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GAHJLSDO.js";
|
|
4
4
|
import {
|
|
5
5
|
_appendRetiredStateBatch,
|
|
6
6
|
loadMemoryVNextCatalog
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-324FWHUA.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveMachineId
|
|
10
10
|
} from "./chunk-S73EPYNC.js";
|
|
11
|
+
import {
|
|
12
|
+
gBase64
|
|
13
|
+
} from "./chunk-X7IA2B7R.js";
|
|
11
14
|
import {
|
|
12
15
|
getDefaultCliLocalRuntimeDb
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LELADM5Q.js";
|
|
14
17
|
import {
|
|
15
18
|
createMemoryKey,
|
|
16
19
|
createMemoryOwnerIndexKey,
|
|
@@ -20,6 +23,12 @@ import {
|
|
|
20
23
|
import {
|
|
21
24
|
asTrimmedNonEmptyStringArray
|
|
22
25
|
} from "./chunk-I42VC5KR.js";
|
|
26
|
+
import {
|
|
27
|
+
resolveAuthTokenFromEnv
|
|
28
|
+
} from "./chunk-BIDSIRTS.js";
|
|
29
|
+
import {
|
|
30
|
+
DEFAULT_NOLO_SERVER_URL
|
|
31
|
+
} from "./chunk-OLZBQWZU.js";
|
|
23
32
|
import {
|
|
24
33
|
buildCliRuntimeEnv,
|
|
25
34
|
clearProfileAuthToken,
|
|
@@ -32,179 +41,10 @@ import {
|
|
|
32
41
|
import {
|
|
33
42
|
asTrimmedString
|
|
34
43
|
} from "./chunk-3EUW3WEO.js";
|
|
35
|
-
import {
|
|
36
|
-
resolveAuthTokenFromEnv
|
|
37
|
-
} from "./chunk-2THCNKE4.js";
|
|
38
|
-
import {
|
|
39
|
-
DEFAULT_NOLO_SERVER_URL
|
|
40
|
-
} from "./chunk-OLZBQWZU.js";
|
|
41
44
|
|
|
42
45
|
// packages/core/crypto.ts
|
|
43
46
|
import nacl from "tweetnacl";
|
|
44
47
|
|
|
45
|
-
// node_modules/js-base64/base64.mjs
|
|
46
|
-
var version = "3.9.6";
|
|
47
|
-
var VERSION = version;
|
|
48
|
-
var _TD = typeof TextDecoder === "function" ? new TextDecoder("utf-8", { ignoreBOM: true }) : void 0;
|
|
49
|
-
var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
|
|
50
|
-
var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
51
|
-
var b64chs = Array.prototype.slice.call(b64ch);
|
|
52
|
-
var b64tab = ((a) => {
|
|
53
|
-
let tab = {};
|
|
54
|
-
a.forEach((c, i) => tab[c] = i);
|
|
55
|
-
return tab;
|
|
56
|
-
})(b64chs);
|
|
57
|
-
var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
|
|
58
|
-
var _fromCC = String.fromCharCode.bind(String);
|
|
59
|
-
var _U8Afrom = typeof Uint8Array.from === "function" ? Uint8Array.from.bind(Uint8Array) : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
|
|
60
|
-
var _mkUriSafe = (src) => src.replace(/=/g, "").replace(/[+\/]/g, (m0) => m0 == "+" ? "-" : "_");
|
|
61
|
-
var _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, "");
|
|
62
|
-
var btoaPolyfill = (bin) => {
|
|
63
|
-
let u32, c0, c1, c2, asc = "";
|
|
64
|
-
const pad = bin.length % 3;
|
|
65
|
-
for (let i = 0; i < bin.length; ) {
|
|
66
|
-
if ((c0 = bin.charCodeAt(i++)) > 255 || (c1 = bin.charCodeAt(i++)) > 255 || (c2 = bin.charCodeAt(i++)) > 255)
|
|
67
|
-
throw new TypeError("invalid character found");
|
|
68
|
-
u32 = c0 << 16 | c1 << 8 | c2;
|
|
69
|
-
asc += b64chs[u32 >> 18 & 63] + b64chs[u32 >> 12 & 63] + b64chs[u32 >> 6 & 63] + b64chs[u32 & 63];
|
|
70
|
-
}
|
|
71
|
-
return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
|
|
72
|
-
};
|
|
73
|
-
var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : btoaPolyfill;
|
|
74
|
-
var _fromUint8Array = typeof Uint8Array.prototype.toBase64 === "function" ? Function.prototype.call.bind(Uint8Array.prototype.toBase64) : (u8a) => {
|
|
75
|
-
const maxargs = 4096;
|
|
76
|
-
let strs = [];
|
|
77
|
-
for (let i = 0, l = u8a.length; i < l; i += maxargs) {
|
|
78
|
-
strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
|
|
79
|
-
}
|
|
80
|
-
return _btoa(strs.join(""));
|
|
81
|
-
};
|
|
82
|
-
var fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
|
|
83
|
-
var cb_utob = (c) => {
|
|
84
|
-
if (c.length < 2) {
|
|
85
|
-
var cc = c.charCodeAt(0);
|
|
86
|
-
return cc < 128 ? c : cc < 2048 ? _fromCC(192 | cc >>> 6) + _fromCC(128 | cc & 63) : _fromCC(224 | cc >>> 12 & 15) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
|
|
87
|
-
} else {
|
|
88
|
-
var cc = 65536 + (c.charCodeAt(0) - 55296) * 1024 + (c.charCodeAt(1) - 56320);
|
|
89
|
-
return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g;
|
|
93
|
-
var utob = (u) => u.replace(re_utob, cb_utob);
|
|
94
|
-
var _encode = _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
|
|
95
|
-
var encode = (src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode(src)) : _encode(src);
|
|
96
|
-
var encodeURI = (src) => encode(src, true);
|
|
97
|
-
var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
|
|
98
|
-
var cb_btou = (cccc) => {
|
|
99
|
-
switch (cccc.length) {
|
|
100
|
-
case 4:
|
|
101
|
-
var cp = (7 & cccc.charCodeAt(0)) << 18 | (63 & cccc.charCodeAt(1)) << 12 | (63 & cccc.charCodeAt(2)) << 6 | 63 & cccc.charCodeAt(3), offset = cp - 65536;
|
|
102
|
-
return _fromCC((offset >>> 10) + 55296) + _fromCC((offset & 1023) + 56320);
|
|
103
|
-
case 3:
|
|
104
|
-
return _fromCC((15 & cccc.charCodeAt(0)) << 12 | (63 & cccc.charCodeAt(1)) << 6 | 63 & cccc.charCodeAt(2));
|
|
105
|
-
default:
|
|
106
|
-
return _fromCC((31 & cccc.charCodeAt(0)) << 6 | 63 & cccc.charCodeAt(1));
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
var btou = (b) => b.replace(re_btou, cb_btou);
|
|
110
|
-
var atobPolyfill = (asc) => {
|
|
111
|
-
asc = asc.replace(/\s+/g, "");
|
|
112
|
-
if (!b64re.test(asc))
|
|
113
|
-
throw new TypeError("malformed base64.");
|
|
114
|
-
asc += "==".slice(2 - (asc.length & 3));
|
|
115
|
-
let u24, r1, r2;
|
|
116
|
-
let binArray = [];
|
|
117
|
-
for (let i = 0; i < asc.length; ) {
|
|
118
|
-
u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
|
|
119
|
-
if (r1 === 64) {
|
|
120
|
-
binArray.push(_fromCC(u24 >> 16 & 255));
|
|
121
|
-
} else if (r2 === 64) {
|
|
122
|
-
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
|
|
123
|
-
} else {
|
|
124
|
-
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return binArray.join("");
|
|
128
|
-
};
|
|
129
|
-
var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : atobPolyfill;
|
|
130
|
-
var _toUint8Array = typeof Uint8Array.fromBase64 === "function" ? (a) => Uint8Array.fromBase64(a) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
|
|
131
|
-
var toUint8Array = (a) => _toUint8Array(_unURI(a));
|
|
132
|
-
var _decode = _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
|
|
133
|
-
var _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/"));
|
|
134
|
-
var decode = (src) => _decode(_unURI(src));
|
|
135
|
-
var isValid = (src) => {
|
|
136
|
-
if (typeof src !== "string")
|
|
137
|
-
return false;
|
|
138
|
-
const s = src.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
139
|
-
if (s.length % 4 === 1)
|
|
140
|
-
return false;
|
|
141
|
-
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
142
|
-
};
|
|
143
|
-
var _noEnum = (v) => {
|
|
144
|
-
return {
|
|
145
|
-
value: v,
|
|
146
|
-
enumerable: false,
|
|
147
|
-
writable: true,
|
|
148
|
-
configurable: true
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
var extendString = function() {
|
|
152
|
-
const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
|
|
153
|
-
_add("fromBase64", function() {
|
|
154
|
-
return decode(this);
|
|
155
|
-
});
|
|
156
|
-
_add("toBase64", function(urlsafe) {
|
|
157
|
-
return encode(this, urlsafe);
|
|
158
|
-
});
|
|
159
|
-
_add("toBase64URI", function() {
|
|
160
|
-
return encode(this, true);
|
|
161
|
-
});
|
|
162
|
-
_add("toBase64URL", function() {
|
|
163
|
-
return encode(this, true);
|
|
164
|
-
});
|
|
165
|
-
_add("toUint8Array", function() {
|
|
166
|
-
return toUint8Array(this);
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
var extendUint8Array = function() {
|
|
170
|
-
const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
|
|
171
|
-
_add("toBase64", function(urlsafe) {
|
|
172
|
-
return fromUint8Array(this, urlsafe);
|
|
173
|
-
});
|
|
174
|
-
_add("toBase64URI", function() {
|
|
175
|
-
return fromUint8Array(this, true);
|
|
176
|
-
});
|
|
177
|
-
_add("toBase64URL", function() {
|
|
178
|
-
return fromUint8Array(this, true);
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
var extendBuiltins = () => {
|
|
182
|
-
extendString();
|
|
183
|
-
extendUint8Array();
|
|
184
|
-
};
|
|
185
|
-
var gBase64 = {
|
|
186
|
-
version,
|
|
187
|
-
VERSION,
|
|
188
|
-
atob: _atob,
|
|
189
|
-
atobPolyfill,
|
|
190
|
-
btoa: _btoa,
|
|
191
|
-
btoaPolyfill,
|
|
192
|
-
fromBase64: decode,
|
|
193
|
-
toBase64: encode,
|
|
194
|
-
encode,
|
|
195
|
-
encodeURI,
|
|
196
|
-
encodeURL: encodeURI,
|
|
197
|
-
utob,
|
|
198
|
-
btou,
|
|
199
|
-
decode,
|
|
200
|
-
isValid,
|
|
201
|
-
fromUint8Array,
|
|
202
|
-
toUint8Array,
|
|
203
|
-
extendString,
|
|
204
|
-
extendUint8Array,
|
|
205
|
-
extendBuiltins
|
|
206
|
-
};
|
|
207
|
-
|
|
208
48
|
// packages/core/authToken.ts
|
|
209
49
|
var parseToken = (token) => {
|
|
210
50
|
try {
|
|
@@ -220,7 +60,13 @@ var isAccountIdentity = (value) => typeof value === "object" && value !== null &
|
|
|
220
60
|
var parseUserToken = (token) => {
|
|
221
61
|
if (typeof token !== "string" || !token.trim()) return null;
|
|
222
62
|
const parsed = parseToken(token);
|
|
223
|
-
|
|
63
|
+
if (!isAccountIdentity(parsed)) return null;
|
|
64
|
+
if (parsed.authKind === "google-session-v1") {
|
|
65
|
+
const account = { userId: parsed.userId };
|
|
66
|
+
if (typeof parsed.username === "string") account.username = parsed.username;
|
|
67
|
+
return account;
|
|
68
|
+
}
|
|
69
|
+
return parsed;
|
|
224
70
|
};
|
|
225
71
|
var parseStoredTokenEntries = (tokens) => {
|
|
226
72
|
if (!Array.isArray(tokens)) return [];
|
|
@@ -352,7 +198,7 @@ var AccountSessionCore = class {
|
|
|
352
198
|
this.setSnapshot({
|
|
353
199
|
...this.snapshot,
|
|
354
200
|
transition
|
|
355
|
-
});
|
|
201
|
+
}, true);
|
|
356
202
|
}
|
|
357
203
|
/**
|
|
358
204
|
* Activate `token` as the active account and complete the current transition.
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
resolvePlatformEffectiveModel,
|
|
11
11
|
toCnyCredits,
|
|
12
12
|
zaiModels
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-U4VSBDO5.js";
|
|
14
14
|
|
|
15
15
|
// packages/integrations/qwen/models.ts
|
|
16
16
|
var qwenModels = [
|
|
@@ -2708,6 +2708,26 @@ var GPT_6_ASTRA_LONG_CONTEXT_PRICE = {
|
|
|
2708
2708
|
output: 600,
|
|
2709
2709
|
inputCacheHit: 16
|
|
2710
2710
|
};
|
|
2711
|
+
var GPT_6_2_ASTRA_STANDARD_PRICE = {
|
|
2712
|
+
input: 64,
|
|
2713
|
+
output: 320,
|
|
2714
|
+
inputCacheHit: 3.2
|
|
2715
|
+
};
|
|
2716
|
+
var GPT_6_2_ASTRA_LONG_CONTEXT_PRICE = {
|
|
2717
|
+
input: 128,
|
|
2718
|
+
output: 480,
|
|
2719
|
+
inputCacheHit: 6.4
|
|
2720
|
+
};
|
|
2721
|
+
var GPT_6_2_SOL_STANDARD_PRICE = {
|
|
2722
|
+
input: 16,
|
|
2723
|
+
output: 80,
|
|
2724
|
+
inputCacheHit: 0.8
|
|
2725
|
+
};
|
|
2726
|
+
var GPT_6_2_SOL_LONG_CONTEXT_PRICE = {
|
|
2727
|
+
input: 32,
|
|
2728
|
+
output: 120,
|
|
2729
|
+
inputCacheHit: 1.6
|
|
2730
|
+
};
|
|
2711
2731
|
var openAIModels = [
|
|
2712
2732
|
{
|
|
2713
2733
|
name: "gpt-5.5",
|
|
@@ -2779,6 +2799,44 @@ var openAIModels = [
|
|
|
2779
2799
|
supportsReasoningEffort: true,
|
|
2780
2800
|
price: GPT_5_6_LUNA_PRICE
|
|
2781
2801
|
},
|
|
2802
|
+
{
|
|
2803
|
+
name: "gpt-6.2-astra",
|
|
2804
|
+
displayName: "GPT-6.2 Astra",
|
|
2805
|
+
endpointKey: "responses",
|
|
2806
|
+
hasVision: true,
|
|
2807
|
+
contextWindow: 105e4,
|
|
2808
|
+
maxOutputTokens: 128e3,
|
|
2809
|
+
supportsReasoningEffort: true,
|
|
2810
|
+
price: GPT_6_2_ASTRA_STANDARD_PRICE,
|
|
2811
|
+
pricingStrategy: {
|
|
2812
|
+
type: "tiered_context",
|
|
2813
|
+
tiers: [
|
|
2814
|
+
{
|
|
2815
|
+
minContext: 272001,
|
|
2816
|
+
price: GPT_6_2_ASTRA_LONG_CONTEXT_PRICE
|
|
2817
|
+
}
|
|
2818
|
+
]
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
name: "gpt-6.2-sol",
|
|
2823
|
+
displayName: "GPT-6.2 Sol",
|
|
2824
|
+
endpointKey: "responses",
|
|
2825
|
+
hasVision: true,
|
|
2826
|
+
contextWindow: 105e4,
|
|
2827
|
+
maxOutputTokens: 128e3,
|
|
2828
|
+
supportsReasoningEffort: true,
|
|
2829
|
+
price: GPT_6_2_SOL_STANDARD_PRICE,
|
|
2830
|
+
pricingStrategy: {
|
|
2831
|
+
type: "tiered_context",
|
|
2832
|
+
tiers: [
|
|
2833
|
+
{
|
|
2834
|
+
minContext: 272001,
|
|
2835
|
+
price: GPT_6_2_SOL_LONG_CONTEXT_PRICE
|
|
2836
|
+
}
|
|
2837
|
+
]
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2782
2840
|
{
|
|
2783
2841
|
name: "gpt-6-astra",
|
|
2784
2842
|
displayName: "GPT-6 Astra",
|
|
@@ -3027,6 +3085,15 @@ function getCachedOpenRouterModelReasoning(modelId) {
|
|
|
3027
3085
|
var GATEWAY_PROVIDERS = /* @__PURE__ */ new Set(["openrouter", "nolo"]);
|
|
3028
3086
|
var THINKING_MECHANISM_PROVIDERS = /* @__PURE__ */ new Set(["anthropic", "google"]);
|
|
3029
3087
|
var MODEL_REASONING_OVERRIDES = [
|
|
3088
|
+
// Platform GPT models accept medium even though the nolo provider fallback
|
|
3089
|
+
// describes DeepSeek's narrower low/high/max scale.
|
|
3090
|
+
...["gpt-6.2-sol", "gpt-6.2-astra", "gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-6-astra"].map((prefix) => ({
|
|
3091
|
+
providers: ["openai"],
|
|
3092
|
+
prefix,
|
|
3093
|
+
exact: true,
|
|
3094
|
+
efforts: ["none", "low", "medium", "high", "xhigh", "max"],
|
|
3095
|
+
note: "GPT-6 model-specific reasoning scale (platformHosted.ts model metadata)"
|
|
3096
|
+
})),
|
|
3030
3097
|
// ---- OpenAI ----
|
|
3031
3098
|
{
|
|
3032
3099
|
providers: ["openai"],
|
|
@@ -3228,6 +3295,8 @@ function resolveModelReasoningCapabilityWithCache(provider, model) {
|
|
|
3228
3295
|
// packages/ai/llm/reasoningModels.ts
|
|
3229
3296
|
var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
|
|
3230
3297
|
"deepseek-flash",
|
|
3298
|
+
"deepseek-v4-flash",
|
|
3299
|
+
"deepseek-v4.1-flash",
|
|
3231
3300
|
"deepseek-v4-pro",
|
|
3232
3301
|
"gemini-3.7-flash",
|
|
3233
3302
|
"gemini-3.8-flash",
|
|
@@ -3238,6 +3307,8 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
|
|
|
3238
3307
|
"gemini-3-pro-preview",
|
|
3239
3308
|
"gemini-3.1-pro-preview",
|
|
3240
3309
|
"gpt-5.5-pro",
|
|
3310
|
+
"gpt-6.2-astra",
|
|
3311
|
+
"gpt-6.2-sol",
|
|
3241
3312
|
"gpt-6-astra",
|
|
3242
3313
|
"gpt-6.1-sol",
|
|
3243
3314
|
"gpt-6.1-terra",
|
|
@@ -3266,7 +3337,10 @@ var isModelSupportReasoningEffort = (model, provider) => {
|
|
|
3266
3337
|
if (provider && provider.toLowerCase() === "openrouter") {
|
|
3267
3338
|
return true;
|
|
3268
3339
|
}
|
|
3269
|
-
|
|
3340
|
+
const p = provider?.toLowerCase();
|
|
3341
|
+
const base = model.toLowerCase().split("/").pop() ?? "";
|
|
3342
|
+
const deepseekFlash = ["deepseek-flash", "deepseek-v4-flash", "deepseek-v4.1-flash"].includes(base);
|
|
3343
|
+
return REASONING_MODEL_NAMES.has(model) || deepseekFlash && ["commandcode", "opendesign", "ollama-cloud", "lithosai"].includes(p ?? "");
|
|
3270
3344
|
};
|
|
3271
3345
|
var supportedReasoningModels = Array.from(REASONING_MODEL_NAMES);
|
|
3272
3346
|
var EFFORT_ORDER = [
|
|
@@ -3612,6 +3686,7 @@ export {
|
|
|
3612
3686
|
commandCodeModels,
|
|
3613
3687
|
opencodeGoModels,
|
|
3614
3688
|
DEFAULT_REASONING_EFFORT,
|
|
3689
|
+
resolveModelReasoningCapability,
|
|
3615
3690
|
resolveModelReasoningCapabilityWithCache,
|
|
3616
3691
|
isModelSupportReasoningEffort,
|
|
3617
3692
|
clampReasoningEffort,
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSseFrames
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
|
-
import {
|
|
5
|
-
resolveToolImagePolicy
|
|
6
|
-
} from "./chunk-KNIIRXHF.js";
|
|
7
4
|
import {
|
|
8
5
|
accumulateToolCallDelta,
|
|
9
6
|
createThinkParserState,
|
|
@@ -31,7 +28,10 @@ import {
|
|
|
31
28
|
stablePromptCacheKey,
|
|
32
29
|
toOpenAiCompatibleMessages,
|
|
33
30
|
toResponsesTools
|
|
34
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NQQL2DKF.js";
|
|
32
|
+
import {
|
|
33
|
+
resolveToolImagePolicy
|
|
34
|
+
} from "./chunk-IPRPYKBP.js";
|
|
35
35
|
import {
|
|
36
36
|
isMeaningfulChatCompletionOutput,
|
|
37
37
|
isMeaningfulResponsesOutput
|
|
@@ -51,14 +51,14 @@ import {
|
|
|
51
51
|
resolvePlatformAuthToken,
|
|
52
52
|
resolvePlatformServerUrl,
|
|
53
53
|
resolveProviderTransportDecision
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-LMFMV5UC.js";
|
|
55
55
|
import {
|
|
56
56
|
isRecord
|
|
57
57
|
} from "./chunk-KUG52IAP.js";
|
|
58
58
|
import {
|
|
59
59
|
NOLO_CLIENT_VERSION_HEADER,
|
|
60
60
|
isPlatformMimoProviderModel
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-U4VSBDO5.js";
|
|
62
62
|
|
|
63
63
|
// packages/ai/token/sseUsageExtract.ts
|
|
64
64
|
var TOKEN_FIELDS = [
|
|
@@ -30,6 +30,7 @@ var estimateTokens = (text) => {
|
|
|
30
30
|
}
|
|
31
31
|
return Math.ceil(cjk * 1.5 + ascii / 4);
|
|
32
32
|
};
|
|
33
|
+
var estimateMemoryBlockTokens = estimateTokens;
|
|
33
34
|
var OVERLAY_HEADER_LINES = [
|
|
34
35
|
"--- Memory (\u76F8\u5173\u65F6\u53C2\u8003\uFF0C\u7528\u6237\u8F93\u5165\u4F18\u5148) ---",
|
|
35
36
|
""
|
|
@@ -40,6 +41,13 @@ var KIND_PRIORITY = {
|
|
|
40
41
|
procedural: 1,
|
|
41
42
|
episodic: 2
|
|
42
43
|
};
|
|
44
|
+
var emptyMemoryInjectionObservation = () => ({
|
|
45
|
+
vnextInjectedLines: 0,
|
|
46
|
+
legacyUncoveredInjectedLines: 0,
|
|
47
|
+
unattributedInjectedLines: 0,
|
|
48
|
+
totalInjectedLines: 0,
|
|
49
|
+
empty: true
|
|
50
|
+
});
|
|
43
51
|
var FACET_DISPLAY = {
|
|
44
52
|
unfinished: { label: "\u8FD8\u6CA1\u5B9A\u4E0B", strip: "\u8FD8\u6CA1\u51B3\u5B9A" },
|
|
45
53
|
tension: { label: "\u5728\u6743\u8861", strip: "\u5728\u6743\u8861" },
|
|
@@ -100,7 +108,7 @@ var truncateLineToTokens = (lineText, budgetTokens) => {
|
|
|
100
108
|
if (cut <= 2) return null;
|
|
101
109
|
return `${lineText.slice(0, cut).trimEnd()}${TRUNCATED_SUFFIX}`;
|
|
102
110
|
};
|
|
103
|
-
var fitLinesToBudget = (allLines, remainingBudget) => {
|
|
111
|
+
var fitLinesToBudget = (allLines, remainingBudget, onKept) => {
|
|
104
112
|
let usedTokens = 0;
|
|
105
113
|
const keptByKind = {};
|
|
106
114
|
let truncatedCount = 0;
|
|
@@ -118,6 +126,7 @@ var fitLinesToBudget = (allLines, remainingBudget) => {
|
|
|
118
126
|
if (candidate.lineTokens <= remaining) {
|
|
119
127
|
usedTokens += candidate.lineTokens;
|
|
120
128
|
pushLine(candidate.kind, candidate.lineText);
|
|
129
|
+
onKept(candidate);
|
|
121
130
|
continue;
|
|
122
131
|
}
|
|
123
132
|
const truncated = truncateLineToTokens(candidate.lineText, remaining);
|
|
@@ -127,6 +136,7 @@ var fitLinesToBudget = (allLines, remainingBudget) => {
|
|
|
127
136
|
}
|
|
128
137
|
usedTokens += estimateTokens(truncated);
|
|
129
138
|
pushLine(candidate.kind, truncated);
|
|
139
|
+
onKept(candidate);
|
|
130
140
|
truncatedCount += 1;
|
|
131
141
|
}
|
|
132
142
|
return { keptByKind, truncatedCount, droppedCount };
|
|
@@ -141,7 +151,7 @@ var EMPTY_RESIDENT_FIT = {
|
|
|
141
151
|
truncatedCount: 0,
|
|
142
152
|
droppedCount: 0
|
|
143
153
|
};
|
|
144
|
-
var fitResidentLines = (lines, remainingBudget) => {
|
|
154
|
+
var fitResidentLines = (lines, remainingBudget, onKept) => {
|
|
145
155
|
let usedTokens = 0;
|
|
146
156
|
const keptLines = [];
|
|
147
157
|
let truncatedCount = 0;
|
|
@@ -155,6 +165,7 @@ var fitResidentLines = (lines, remainingBudget) => {
|
|
|
155
165
|
if (candidate.lineTokens <= remaining) {
|
|
156
166
|
usedTokens += candidate.lineTokens;
|
|
157
167
|
keptLines.push(candidate.lineText);
|
|
168
|
+
onKept(candidate);
|
|
158
169
|
continue;
|
|
159
170
|
}
|
|
160
171
|
const truncated = truncateLineToTokens(candidate.lineText, remaining);
|
|
@@ -164,6 +175,7 @@ var fitResidentLines = (lines, remainingBudget) => {
|
|
|
164
175
|
}
|
|
165
176
|
usedTokens += estimateTokens(truncated);
|
|
166
177
|
keptLines.push(truncated);
|
|
178
|
+
onKept(candidate);
|
|
167
179
|
truncatedCount += 1;
|
|
168
180
|
}
|
|
169
181
|
return { keptLines, truncatedCount, droppedCount };
|
|
@@ -186,7 +198,22 @@ var buildBudgetFooter = (fit, residentFit) => {
|
|
|
186
198
|
return [`\uFF08${notices.join("\u3001")}\uFF1B\u9700\u8981\u5B8C\u6574\u5185\u5BB9\u6216\u66F4\u591A\u76F8\u5173\u8BB0\u5FC6\u65F6\u7528 queryMemory \u68C0\u7D22\uFF09`];
|
|
187
199
|
};
|
|
188
200
|
var buildMemoryOverlay = (items, options) => {
|
|
189
|
-
|
|
201
|
+
const injection = emptyMemoryInjectionObservation();
|
|
202
|
+
const onKept = (line) => {
|
|
203
|
+
injection.totalInjectedLines++;
|
|
204
|
+
injection.empty = false;
|
|
205
|
+
if (line.source === "vnext") injection.vnextInjectedLines++;
|
|
206
|
+
else if (line.source === "legacy-uncovered") injection.legacyUncoveredInjectedLines++;
|
|
207
|
+
else injection.unattributedInjectedLines++;
|
|
208
|
+
};
|
|
209
|
+
const finish = (prompt) => {
|
|
210
|
+
try {
|
|
211
|
+
options?.injectionEmit?.(injection);
|
|
212
|
+
} catch {
|
|
213
|
+
}
|
|
214
|
+
return prompt;
|
|
215
|
+
};
|
|
216
|
+
if (items.length === 0) return finish(null);
|
|
190
217
|
const maxTokens = options?.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET;
|
|
191
218
|
const perKindLimit = options?.perKindLimit ?? 3;
|
|
192
219
|
const residentMaxTokens = options?.residentMaxTokens ?? RESIDENT_MEMORY_OVERLAY_TOKEN_BUDGET;
|
|
@@ -195,9 +222,10 @@ var buildMemoryOverlay = (items, options) => {
|
|
|
195
222
|
const residentFit = residentItems.length === 0 ? EMPTY_RESIDENT_FIT : fitResidentLines(
|
|
196
223
|
residentItems.map((item) => {
|
|
197
224
|
const lineText = `- ${isInferredMemory(item) ? "\uFF08\u63A8\u65AD\uFF09" : ""}${normalizeDisplayContent(item)}`;
|
|
198
|
-
return { kind: item.kind, lineText, lineTokens: estimateTokens(lineText) };
|
|
225
|
+
return { kind: item.kind, lineText, lineTokens: estimateTokens(lineText), source: options?.sources?.get(item) };
|
|
199
226
|
}),
|
|
200
|
-
residentMaxTokens - estimateTokens(RESIDENT_SECTION_HEADER)
|
|
227
|
+
residentMaxTokens - estimateTokens(RESIDENT_SECTION_HEADER),
|
|
228
|
+
onKept
|
|
201
229
|
);
|
|
202
230
|
const byKind = {
|
|
203
231
|
episodic: [],
|
|
@@ -214,10 +242,10 @@ var buildMemoryOverlay = (items, options) => {
|
|
|
214
242
|
const allLines = Object.entries(byKind).filter(([, list]) => list.length > 0).flatMap(
|
|
215
243
|
([kind, list]) => pickWithinKind(list, perKindLimit).map((item) => {
|
|
216
244
|
const lineText = `- ${isInferredMemory(item) ? "\uFF08\u63A8\u65AD\uFF09" : ""}${normalizeDisplayContent(item)}`;
|
|
217
|
-
return { kind, lineText, lineTokens: estimateTokens(lineText) };
|
|
245
|
+
return { kind, lineText, lineTokens: estimateTokens(lineText), source: options?.sources?.get(item) };
|
|
218
246
|
})
|
|
219
247
|
).sort((a, b) => (KIND_PRIORITY[a.kind] ?? 99) - (KIND_PRIORITY[b.kind] ?? 99));
|
|
220
|
-
retrievalFit = fitLinesToBudget(allLines, remainingBudget);
|
|
248
|
+
retrievalFit = fitLinesToBudget(allLines, remainingBudget, onKept);
|
|
221
249
|
const kindOrder = ["semantic", "procedural", "episodic"];
|
|
222
250
|
retrievalSections = kindOrder.filter(
|
|
223
251
|
(kind) => retrievalFit.keptByKind[kind] && retrievalFit.keptByKind[kind].length > 0
|
|
@@ -230,17 +258,19 @@ var buildMemoryOverlay = (items, options) => {
|
|
|
230
258
|
...retrievalSections
|
|
231
259
|
];
|
|
232
260
|
if (sections.length === 0) {
|
|
233
|
-
return OVERLAY_HEADER_LINES.join("\n");
|
|
261
|
+
return finish(OVERLAY_HEADER_LINES.join("\n"));
|
|
234
262
|
}
|
|
235
|
-
return [
|
|
263
|
+
return finish([
|
|
236
264
|
...OVERLAY_HEADER_LINES,
|
|
237
265
|
...sections,
|
|
238
266
|
...buildBudgetFooter(retrievalFit, residentFit)
|
|
239
|
-
].join("\n");
|
|
267
|
+
].join("\n"));
|
|
240
268
|
};
|
|
241
269
|
|
|
242
270
|
export {
|
|
243
271
|
EXPLICIT_REMEMBER_PREFIX_REGEX,
|
|
272
|
+
estimateMemoryBlockTokens,
|
|
273
|
+
emptyMemoryInjectionObservation,
|
|
244
274
|
DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
|
|
245
275
|
RESIDENT_MEMORY_OVERLAY_TOKEN_BUDGET,
|
|
246
276
|
buildMemoryOverlay
|
|
@@ -1,34 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveDefaultReasoningEffort
|
|
3
|
+
} from "./chunk-YUZ2DAIH.js";
|
|
1
4
|
import {
|
|
2
5
|
buildRestorePatch
|
|
3
6
|
} from "./chunk-BV3FLP2L.js";
|
|
4
7
|
import {
|
|
5
8
|
buildLocalAgentLookupKeys,
|
|
6
9
|
shouldReadAgentKeyRemotely
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LCQJH7KN.js";
|
|
8
11
|
import {
|
|
9
12
|
resolveCliAgentKeyInput
|
|
10
13
|
} from "./chunk-BR3GT6MR.js";
|
|
11
14
|
import {
|
|
12
15
|
createHostCredentialBrokerChain,
|
|
13
16
|
createStrictHostCredentialBroker
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BEM6LPD2.js";
|
|
15
18
|
import {
|
|
16
19
|
collectInvalidAgentSkillModes,
|
|
17
20
|
formatInvalidAgentSkillModeMessage,
|
|
18
21
|
formatInvalidAgentSkillModesFieldMessage,
|
|
19
22
|
isAgentSkillModesFieldShapeValid
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MM73SP4K.js";
|
|
21
24
|
import {
|
|
22
25
|
buildAgentApiKeyCredentialRef,
|
|
23
26
|
migrateAgentSecrets
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-USGHJSGO.js";
|
|
25
28
|
import {
|
|
26
29
|
assertCredentialRef,
|
|
27
30
|
createFileCredentialBroker
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OQHIVPG4.js";
|
|
29
32
|
import {
|
|
30
33
|
createAgentKey
|
|
31
34
|
} from "./chunk-SYTHYBMI.js";
|
|
35
|
+
import {
|
|
36
|
+
parseUserIdFromAuthToken,
|
|
37
|
+
readOption,
|
|
38
|
+
resolveAuthToken,
|
|
39
|
+
resolveServerCandidates,
|
|
40
|
+
resolveServerUrl
|
|
41
|
+
} from "./chunk-BIDSIRTS.js";
|
|
32
42
|
import {
|
|
33
43
|
readPipeText,
|
|
34
44
|
spawnProcess
|
|
@@ -36,13 +46,6 @@ import {
|
|
|
36
46
|
import {
|
|
37
47
|
toErrorMessage
|
|
38
48
|
} from "./chunk-HNMXYYJR.js";
|
|
39
|
-
import {
|
|
40
|
-
parseUserIdFromAuthToken,
|
|
41
|
-
readOption,
|
|
42
|
-
resolveAuthToken,
|
|
43
|
-
resolveServerCandidates,
|
|
44
|
-
resolveServerUrl
|
|
45
|
-
} from "./chunk-2THCNKE4.js";
|
|
46
49
|
|
|
47
50
|
// packages/agent-runtime/sessionCredentialBroker.ts
|
|
48
51
|
function createSessionMemoryCredentialBroker() {
|
|
@@ -763,7 +766,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
763
766
|
const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
|
|
764
767
|
const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
|
|
765
768
|
if (args.parsed.presetId) {
|
|
766
|
-
const { resolveProviderPresetFields } = await import("./providerPresetApply-
|
|
769
|
+
const { resolveProviderPresetFields } = await import("./providerPresetApply-2QWXPJXZ.js");
|
|
767
770
|
const fields = resolveProviderPresetFields(args.parsed.presetId);
|
|
768
771
|
if (fields.kind === "manual") {
|
|
769
772
|
throw new Error(
|
|
@@ -784,7 +787,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
784
787
|
}
|
|
785
788
|
if (!u.model && fields.model) u.model = fields.model;
|
|
786
789
|
if (fields.defaultReasoningEffort && u.reasoning_effort == null) {
|
|
787
|
-
u.reasoning_effort = fields.defaultReasoningEffort;
|
|
790
|
+
u.reasoning_effort = resolveDefaultReasoningEffort({ provider: typeof u.provider === "string" ? u.provider : void 0, model: typeof u.model === "string" ? u.model : void 0, fallback: fields.defaultReasoningEffort });
|
|
788
791
|
}
|
|
789
792
|
}
|
|
790
793
|
if (args.parsed.copyProviderFrom) {
|