nolo-cli 0.219.0 → 0.220.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-WW57SJN4.js → _executeModel-BNEMFCAO.js} +74 -74
- package/{action-CK64LS6S.js → action-GDZDXPMB.js} +7 -7
- package/{addContentAction-EQXMFNPR.js → addContentAction-7RO4AMRI.js} +12 -12
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-EVYBGTXB.js} +14 -14
- package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-7QTQNFCO.js} +114 -115
- package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-I7SHOSD6.js} +115 -116
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-5UNM7CGG.js → agentListCommands-GUGMORTK.js} +84 -70
- package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-UMDKILU3.js} +56 -55
- package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-STI3DQ6A.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-KHV4EELF.js} +5 -5
- package/{agentRecordCommands-DX2WE6BH.js → agentRecordCommands-YTAMTHOY.js} +102 -103
- package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-DBM6YNO6.js} +113 -112
- package/{agentRunControl-QDFW5P2T.js → agentRunControl-MBG4U6SL.js} +20 -14
- package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-TU4LA353.js} +39 -39
- package/{agentSlice-ACZGTZVW.js → agentSlice-DPG7Q7IA.js} +16 -16
- package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-JWP3XPUA.js} +50 -49
- package/{appDeployCommands-2BAHY522.js → appDeployCommands-6E4TQCWI.js} +50 -49
- package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-ALU4SADG.js} +50 -49
- package/{appGetCommands-WKFEJO6A.js → appGetCommands-JEY4L6L4.js} +50 -49
- package/{appListCommands-HNAZZLFX.js → appListCommands-PCAVHU7M.js} +50 -49
- package/{authCommand-4FDPL7WG.js → authCommand-CGRIIOOV.js} +26 -23
- package/{authCommands-GAJ3NIXO.js → authCommands-55OGQGCR.js} +9 -6
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-WAA45NCS.js} +6 -6
- package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
- package/{chunk-5OZC7R7Y.js → chunk-2MCB7CD7.js} +13 -12
- package/{chunk-IWH5SOU4.js → chunk-2NPD3FTX.js} +3 -3
- package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-QWYFFHCJ.js → chunk-3NNXR7EH.js} +10 -10
- package/{chunk-JWXITTQB.js → chunk-3P54D2E4.js} +1 -1
- package/{chunk-EGXPAWLG.js → chunk-3U44JB3O.js} +1 -1
- package/{chunk-KAVGK4ES.js → chunk-44J7Z5AQ.js} +18 -18
- package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
- package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
- package/{chunk-C4WTX5TU.js → chunk-4ZGPHFLE.js} +2 -2
- package/{chunk-FVZW66K4.js → chunk-53MFERZ3.js} +177 -94
- package/{chunk-MOMR7NMG.js → chunk-547ENH5T.js} +1 -1
- package/{chunk-N7HVLYOY.js → chunk-5WKDR7HS.js} +3 -3
- package/chunk-5ZUOVCKT.js +32 -0
- package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
- package/{chunk-KOXKKHFE.js → chunk-6QHKRARD.js} +2 -2
- package/{chunk-N3J4VDGV.js → chunk-6RDBLXVQ.js} +15 -15
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-JC5XLWZK.js → chunk-7JGMNKKG.js} +19 -15
- package/{chunk-FRSBYNWI.js → chunk-AGYPUBFW.js} +31 -205
- package/{chunk-UYOICCYG.js → chunk-ALAES342.js} +59 -88
- package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
- package/{chunk-6NKA6RKF.js → chunk-AUAJTAFM.js} +8 -8
- package/{chunk-7UH3DGV6.js → chunk-AWIL6EHN.js} +7 -7
- package/chunk-BIDSIRTS.js +307 -0
- package/chunk-BIWI5M4E.js +62 -0
- package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
- package/{chunk-BGGHA5DV.js → chunk-BP5ZJ6B4.js} +1 -1
- package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
- package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
- package/{chunk-AVHRSJUH.js → chunk-CMMI3DAT.js} +13 -13
- package/{chunk-H7R3365N.js → chunk-CYWNWA77.js} +5 -5
- package/{chunk-6D7NVU66.js → chunk-D6YNCNM6.js} +17 -14
- package/{chunk-6RQFZCKH.js → chunk-DBUR22G5.js} +6 -6
- package/{chunk-PVZY6P3S.js → chunk-DEA37IUY.js} +2 -2
- package/{chunk-QLFCTYRH.js → chunk-DGYCDA6W.js} +3 -3
- package/{chunk-SRL56PI2.js → chunk-DUUDXSLX.js} +21 -7
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
- package/{chunk-KN3HEZIQ.js → chunk-EVGU5P4U.js} +1 -1
- package/{chunk-CXDPIPZ4.js → chunk-F6Z6ZCUV.js} +2 -2
- package/{chunk-EOWLBDY6.js → chunk-FJSNBZXR.js} +1 -1
- package/{chunk-GNHMRBYZ.js → chunk-G7IUT2V3.js} +4 -3
- package/{chunk-4NMHE7CX.js → chunk-GPOV42YM.js} +14 -14
- package/{chunk-SASHAZ67.js → chunk-GUXZK7SE.js} +2 -2
- package/{chunk-65XXHYZ5.js → chunk-GV6PRJBU.js} +3 -3
- package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
- package/{chunk-OOF7XDZF.js → chunk-HHFGE2WF.js} +6 -6
- package/{chunk-DJSTBAOU.js → chunk-HSSBDZLD.js} +4 -4
- package/{chunk-GIABSSWQ.js → chunk-HYLRQDEE.js} +4 -4
- package/{chunk-UJKTI5PG.js → chunk-ILHQ2AXT.js} +0 -1
- package/{chunk-S7SB7L2I.js → chunk-JJMR2EA3.js} +19 -19
- package/{chunk-3ESU44FG.js → chunk-JLAMNSBC.js} +3 -3
- package/{chunk-TVFRV3UQ.js → chunk-JUSHVFNF.js} +238 -185
- package/{chunk-MKQ2UTTX.js → chunk-KHVFJSVE.js} +22 -19
- package/{chunk-7WPAI5JJ.js → chunk-KRI6N5QZ.js} +14 -14
- package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
- package/{chunk-3N4ASIP6.js → chunk-LMRRCEDE.js} +11 -11
- package/{chunk-2KTUDBG7.js → chunk-M4SFKP5L.js} +1 -1
- package/{chunk-VHPAA6MT.js → chunk-MSMHU36U.js} +6 -6
- package/{chunk-F3TQURKK.js → chunk-MXKWTPUM.js} +19 -19
- package/{chunk-XFJ4ZPFC.js → chunk-MXRUXMZ3.js} +25 -25
- package/{chunk-OXKUPBAQ.js → chunk-NHY322ZU.js} +151 -10
- package/{chunk-UMRI2IRY.js → chunk-OBIC6EG7.js} +6 -6
- package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
- package/{chunk-SYQR7FQS.js → chunk-OG6MQOQG.js} +96 -28
- package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
- package/{chunk-K5FNYHZC.js → chunk-OWKNSIXL.js} +149 -54
- package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
- package/{chunk-AFHOCBSP.js → chunk-QBZCGP34.js} +1 -1
- package/{chunk-2ZKFCIJJ.js → chunk-QCB42576.js} +1 -1
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-XWGDCWXY.js → chunk-QRGDJA4B.js} +9 -9
- package/{chunk-4A2JIXR2.js → chunk-QYB23WUH.js} +1 -1
- package/{chunk-652XYZGP.js → chunk-R44TU3MZ.js} +8 -3
- package/{chunk-2VUZSVAS.js → chunk-R6Z5S5GA.js} +7 -7
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-GGKNJ42M.js → chunk-RBPUNSG5.js} +2 -2
- package/{chunk-GVGOEMNV.js → chunk-RG2DGNL6.js} +3 -3
- package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
- package/{chunk-C4VAR65S.js → chunk-RYOLWYBK.js} +120 -116
- package/{chunk-T3O6BLYU.js → chunk-S5NA3C52.js} +147 -115
- package/{chunk-D726I5AZ.js → chunk-S6FDXXZV.js} +2 -2
- package/{chunk-JVRQ6YVK.js → chunk-S6K5F3KP.js} +1 -1
- package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
- package/{chunk-KO63FPG3.js → chunk-SZVMASJ2.js} +750 -2523
- package/{chunk-Q7WP5RPC.js → chunk-TGNIKIHR.js} +5 -5
- package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
- package/{chunk-5R63B62U.js → chunk-TSPMLCWI.js} +7 -7
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/{chunk-J6T25AJ6.js → chunk-XSW4EXQV.js} +82 -18
- package/{chunk-O2CYENYJ.js → chunk-XTETTSKN.js} +2107 -1092
- package/{chunk-DVQH4BTR.js → chunk-YKY4OVOX.js} +14 -10
- package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
- package/chunk-ZOHO6MOF.js +376 -0
- package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-BTRHMPW2.js} +12 -12
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-M3F76NIP.js} +45 -45
- package/{commandRegistry-SDSYBKMC.js → commandRegistry-T3UBK6OA.js} +93 -93
- package/{contentThunks-G3TRPEAU.js → contentThunks-YEPZAHXU.js} +36 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-YB5H5BBK.js} +4 -4
- package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-TBIIO5WT.js} +36 -35
- package/{createDialogAction-KWSBNAPJ.js → createDialogAction-KBKMYFTQ.js} +37 -36
- package/{createPageAction-HXKJ7OFG.js → createPageAction-3FGAPLJO.js} +37 -36
- package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
- package/{dbSlice-ZJPDIFER.js → dbSlice-XRUZOGSU.js} +11 -11
- package/{deleteFile-Q3YDB4ML.js → deleteFile-6URDHYRB.js} +7 -7
- package/{dialogCommands-6KQEBHSG.js → dialogCommands-NRLCOPJR.js} +52 -52
- package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-SHGPCU22.js} +13 -13
- package/{dialogSlice-HXPKFGRL.js → dialogSlice-DP2WTMNO.js} +34 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-W2WCSGKF.js} +1 -1
- package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-YJRDA3RX.js} +48 -47
- package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-A5QIHZNF.js} +50 -49
- package/{docReadCommands-TTMXCDER.js → docReadCommands-CF2LTMYH.js} +48 -47
- package/{docStore-A2B3GH33.js → docStore-NDY3K3PK.js} +12 -12
- package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-QRKV4ZXE.js} +48 -47
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
- package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-IUGVVJ43.js} +65 -65
- package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-X2ZFRXDR.js} +102 -103
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +1 -1
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-CCOCVGAP.js} +1 -1
- package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
- package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-KAG3T4LF.js} +109 -110
- package/{machineCommands-WFWV25IR.js → machineCommands-6NIQJE2A.js} +111 -112
- package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-RA5NOSGG.js} +100 -101
- package/{memberThunks-JRYNONYV.js → memberThunks-7Y3OYSJQ.js} +15 -15
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
- package/package.json +1 -1
- package/{projectArchive-ULJDLUA6.js → projectArchive-OIUP63MV.js} +42 -41
- package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-WHAMP2D5.js} +6 -6
- package/{providerRegistry-TA7EGCVZ.js → providerRegistry-ZI2KORJ7.js} +6 -6
- package/{read-Q7GOHGNP.js → read-TYMBGEXO.js} +8 -8
- package/{readDocTool-Z5OQ6422.js → readDocTool-SKQVHBLO.js} +1 -1
- package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-ZGC4KSXG.js} +3946 -4393
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-F5QE2O2B.js} +16 -16
- package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-NKUW2DSJ.js} +71 -67
- package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-RRKPBGVO.js} +14 -14
- package/{secretCommands-LJXOOYA7.js → secretCommands-KZWBZIYS.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-72L27ERM.js} +13 -13
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +16 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-ZRGWVGZD.js} +15 -15
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
- package/{spaceCommands-IB6FKWIC.js → spaceCommands-MEH3HJBC.js} +53 -52
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-FJTUUXHJ.js} +89 -128
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-IIJBPND3.js} +14 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-FTAOCBTX.js} +11 -11
- package/{tools-JVOJ5HC4.js → tools-ZXHIAOSP.js} +58 -58
- package/tuiRestart-2IL37YIB.js +41 -0
- package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-W2QN4VAC.js} +18 -18
- package/{updateCommands-RJVCRSBP.js → updateCommands-CPATDG6J.js} +8 -6
- package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-JMKLKL4P.js} +36 -35
- package/{usageCommand-RVKHEPLU.js → usageCommand-2BF74MKF.js} +2 -2
- package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-UHB55BQM.js} +3 -3
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-KEPOVMF4.js +0 -91
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
- package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.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/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
upsertSSREntity,
|
|
3
3
|
write
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CMMI3DAT.js";
|
|
5
5
|
import {
|
|
6
6
|
getRuntimeServerContext,
|
|
7
7
|
resolveRecordAuthority
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R6Z5S5GA.js";
|
|
9
9
|
import {
|
|
10
10
|
TIMEOUT,
|
|
11
11
|
asyncThunkCreator,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
applyAgentSecretMigrationUpdates,
|
|
17
17
|
migrateAgentSecrets,
|
|
18
18
|
normalizeAgentRuntimeToolPolicy
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-USGHJSGO.js";
|
|
20
20
|
import {
|
|
21
21
|
asRecordOrEmpty
|
|
22
22
|
} from "./chunk-KX6YBIHG.js";
|
|
23
23
|
import {
|
|
24
24
|
createFileCredentialBroker
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OQHIVPG4.js";
|
|
26
26
|
import {
|
|
27
27
|
isLevelNotFoundError
|
|
28
28
|
} from "./chunk-OW765XBU.js";
|
|
@@ -31,15 +31,15 @@ import {
|
|
|
31
31
|
createUserKey,
|
|
32
32
|
toTrimmedString
|
|
33
33
|
} from "./chunk-SYTHYBMI.js";
|
|
34
|
+
import {
|
|
35
|
+
API_ENDPOINTS
|
|
36
|
+
} from "./chunk-LCBAMY2M.js";
|
|
34
37
|
import {
|
|
35
38
|
asTrimmedString
|
|
36
39
|
} from "./chunk-3EUW3WEO.js";
|
|
37
40
|
import {
|
|
38
41
|
isRecord
|
|
39
42
|
} from "./chunk-KUG52IAP.js";
|
|
40
|
-
import {
|
|
41
|
-
API_ENDPOINTS
|
|
42
|
-
} from "./chunk-LCBAMY2M.js";
|
|
43
43
|
import {
|
|
44
44
|
asOptionalTrimmedString
|
|
45
45
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
|
|
|
458
458
|
const overrides = {};
|
|
459
459
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
460
460
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
461
|
-
const { _executeModel } = await import("./_executeModel-
|
|
461
|
+
const { _executeModel } = await import("./_executeModel-BNEMFCAO.js");
|
|
462
462
|
return _executeModel(
|
|
463
463
|
{
|
|
464
464
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
|
|
|
479
479
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
480
480
|
*/
|
|
481
481
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
482
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
482
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-NKUW2DSJ.js");
|
|
483
483
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
484
484
|
{
|
|
485
485
|
agentKey: args.agentKey,
|
|
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
|
|
|
495
495
|
* 聊天轮次流式 Agent 调用
|
|
496
496
|
*/
|
|
497
497
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
498
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
498
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-FJTUUXHJ.js");
|
|
499
499
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
500
500
|
}),
|
|
501
501
|
/**
|
|
@@ -2,46 +2,49 @@ import {
|
|
|
2
2
|
clipMultilineText,
|
|
3
3
|
fetchAndSerializeTable,
|
|
4
4
|
waitForAbortableDelay
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LMRRCEDE.js";
|
|
6
6
|
import {
|
|
7
7
|
isGatewayHttpStatus
|
|
8
8
|
} from "./chunk-NF64D32W.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
parseRetryAfterHeaderMs
|
|
14
|
-
} from "./chunk-3L2WKC3W.js";
|
|
10
|
+
resolvePageReadMarkdown,
|
|
11
|
+
slateToSimplifiedMarkdown
|
|
12
|
+
} from "./chunk-BP5ZJ6B4.js";
|
|
15
13
|
import {
|
|
16
14
|
extractCategorizedMentions
|
|
17
15
|
} from "./chunk-AGIM7IMJ.js";
|
|
18
|
-
import {
|
|
19
|
-
resolvePageReadMarkdown,
|
|
20
|
-
slateToSimplifiedMarkdown
|
|
21
|
-
} from "./chunk-BGGHA5DV.js";
|
|
22
16
|
import {
|
|
23
17
|
fetchAndCacheMessages
|
|
24
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-53MFERZ3.js";
|
|
19
|
+
import {
|
|
20
|
+
createDrainExhaustedResponse,
|
|
21
|
+
isCoreDrainingBody,
|
|
22
|
+
normalizeNonNegativeMs,
|
|
23
|
+
parseRetryAfterHeaderMs
|
|
24
|
+
} from "./chunk-3L2WKC3W.js";
|
|
25
25
|
import {
|
|
26
26
|
createSpaceKey
|
|
27
27
|
} from "./chunk-UAD2WT54.js";
|
|
28
28
|
import {
|
|
29
29
|
read
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CMMI3DAT.js";
|
|
31
31
|
import {
|
|
32
32
|
getRuntimeServerContext
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-R6Z5S5GA.js";
|
|
34
34
|
import {
|
|
35
35
|
classifyGenerationError
|
|
36
36
|
} from "./chunk-TLE77UJ5.js";
|
|
37
37
|
import {
|
|
38
38
|
isAbortError
|
|
39
39
|
} from "./chunk-7DPNBQSV.js";
|
|
40
|
+
import {
|
|
41
|
+
estimateTokenCount
|
|
42
|
+
} from "./chunk-PSCNXBYA.js";
|
|
40
43
|
import {
|
|
41
44
|
extractRuntimePageCapabilities,
|
|
42
45
|
resolveBuiltinSkillPage,
|
|
43
46
|
resolveSkillGraphFromRoots
|
|
44
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-G7IUT2V3.js";
|
|
45
48
|
import {
|
|
46
49
|
extractCustomId
|
|
47
50
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -50,10 +53,7 @@ import {
|
|
|
50
53
|
} from "./chunk-OJKUU3LP.js";
|
|
51
54
|
import {
|
|
52
55
|
wrapHistoricalSummaryWithReplayGuard
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import {
|
|
55
|
-
estimateTokenCount
|
|
56
|
-
} from "./chunk-PSCNXBYA.js";
|
|
56
|
+
} from "./chunk-BNMPUQW6.js";
|
|
57
57
|
import {
|
|
58
58
|
asTrimmedString
|
|
59
59
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -123,6 +123,7 @@ var MIN_SHARED_TOKENS = 2;
|
|
|
123
123
|
var MAX_LOCAL_RECALL_STATES = 8;
|
|
124
124
|
var IDF_MIN_CORPUS = 20;
|
|
125
125
|
var RARE_DF_RATIO = 0.05;
|
|
126
|
+
var RARE_DF_MAX_DOCS = 5;
|
|
126
127
|
var SAFE_TECHNICAL_SYNONYMS = {
|
|
127
128
|
pr: ["\u5BA1\u67E5", "\u4EE3\u7801\u5BA1\u67E5", "diff"],
|
|
128
129
|
diff: ["\u5BA1\u67E5", "\u4EE3\u7801\u5BA1\u67E5"],
|
|
@@ -158,7 +159,7 @@ var recallMemoryVNextLocal = (input) => {
|
|
|
158
159
|
}
|
|
159
160
|
if (prepared.length === 0) return [];
|
|
160
161
|
const useIdf = prepared.length >= IDF_MIN_CORPUS;
|
|
161
|
-
const rareCutoff = prepared.length * RARE_DF_RATIO;
|
|
162
|
+
const rareCutoff = Math.min(prepared.length * RARE_DF_RATIO, RARE_DF_MAX_DOCS);
|
|
162
163
|
const rareTokens = /* @__PURE__ */ new Set();
|
|
163
164
|
if (useIdf) {
|
|
164
165
|
for (const token of queryTokens) {
|
|
@@ -195,5 +196,6 @@ export {
|
|
|
195
196
|
MAX_LOCAL_RECALL_STATES,
|
|
196
197
|
IDF_MIN_CORPUS,
|
|
197
198
|
RARE_DF_RATIO,
|
|
199
|
+
RARE_DF_MAX_DOCS,
|
|
198
200
|
recallMemoryVNextLocal
|
|
199
201
|
};
|
|
@@ -40,6 +40,13 @@ var KIND_PRIORITY = {
|
|
|
40
40
|
procedural: 1,
|
|
41
41
|
episodic: 2
|
|
42
42
|
};
|
|
43
|
+
var emptyMemoryInjectionObservation = () => ({
|
|
44
|
+
vnextInjectedLines: 0,
|
|
45
|
+
legacyUncoveredInjectedLines: 0,
|
|
46
|
+
unattributedInjectedLines: 0,
|
|
47
|
+
totalInjectedLines: 0,
|
|
48
|
+
empty: true
|
|
49
|
+
});
|
|
43
50
|
var FACET_DISPLAY = {
|
|
44
51
|
unfinished: { label: "\u8FD8\u6CA1\u5B9A\u4E0B", strip: "\u8FD8\u6CA1\u51B3\u5B9A" },
|
|
45
52
|
tension: { label: "\u5728\u6743\u8861", strip: "\u5728\u6743\u8861" },
|
|
@@ -100,7 +107,7 @@ var truncateLineToTokens = (lineText, budgetTokens) => {
|
|
|
100
107
|
if (cut <= 2) return null;
|
|
101
108
|
return `${lineText.slice(0, cut).trimEnd()}${TRUNCATED_SUFFIX}`;
|
|
102
109
|
};
|
|
103
|
-
var fitLinesToBudget = (allLines, remainingBudget) => {
|
|
110
|
+
var fitLinesToBudget = (allLines, remainingBudget, onKept) => {
|
|
104
111
|
let usedTokens = 0;
|
|
105
112
|
const keptByKind = {};
|
|
106
113
|
let truncatedCount = 0;
|
|
@@ -118,6 +125,7 @@ var fitLinesToBudget = (allLines, remainingBudget) => {
|
|
|
118
125
|
if (candidate.lineTokens <= remaining) {
|
|
119
126
|
usedTokens += candidate.lineTokens;
|
|
120
127
|
pushLine(candidate.kind, candidate.lineText);
|
|
128
|
+
onKept(candidate);
|
|
121
129
|
continue;
|
|
122
130
|
}
|
|
123
131
|
const truncated = truncateLineToTokens(candidate.lineText, remaining);
|
|
@@ -127,6 +135,7 @@ var fitLinesToBudget = (allLines, remainingBudget) => {
|
|
|
127
135
|
}
|
|
128
136
|
usedTokens += estimateTokens(truncated);
|
|
129
137
|
pushLine(candidate.kind, truncated);
|
|
138
|
+
onKept(candidate);
|
|
130
139
|
truncatedCount += 1;
|
|
131
140
|
}
|
|
132
141
|
return { keptByKind, truncatedCount, droppedCount };
|
|
@@ -141,7 +150,7 @@ var EMPTY_RESIDENT_FIT = {
|
|
|
141
150
|
truncatedCount: 0,
|
|
142
151
|
droppedCount: 0
|
|
143
152
|
};
|
|
144
|
-
var fitResidentLines = (lines, remainingBudget) => {
|
|
153
|
+
var fitResidentLines = (lines, remainingBudget, onKept) => {
|
|
145
154
|
let usedTokens = 0;
|
|
146
155
|
const keptLines = [];
|
|
147
156
|
let truncatedCount = 0;
|
|
@@ -155,6 +164,7 @@ var fitResidentLines = (lines, remainingBudget) => {
|
|
|
155
164
|
if (candidate.lineTokens <= remaining) {
|
|
156
165
|
usedTokens += candidate.lineTokens;
|
|
157
166
|
keptLines.push(candidate.lineText);
|
|
167
|
+
onKept(candidate);
|
|
158
168
|
continue;
|
|
159
169
|
}
|
|
160
170
|
const truncated = truncateLineToTokens(candidate.lineText, remaining);
|
|
@@ -164,6 +174,7 @@ var fitResidentLines = (lines, remainingBudget) => {
|
|
|
164
174
|
}
|
|
165
175
|
usedTokens += estimateTokens(truncated);
|
|
166
176
|
keptLines.push(truncated);
|
|
177
|
+
onKept(candidate);
|
|
167
178
|
truncatedCount += 1;
|
|
168
179
|
}
|
|
169
180
|
return { keptLines, truncatedCount, droppedCount };
|
|
@@ -186,7 +197,22 @@ var buildBudgetFooter = (fit, residentFit) => {
|
|
|
186
197
|
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
198
|
};
|
|
188
199
|
var buildMemoryOverlay = (items, options) => {
|
|
189
|
-
|
|
200
|
+
const injection = emptyMemoryInjectionObservation();
|
|
201
|
+
const onKept = (line) => {
|
|
202
|
+
injection.totalInjectedLines++;
|
|
203
|
+
injection.empty = false;
|
|
204
|
+
if (line.source === "vnext") injection.vnextInjectedLines++;
|
|
205
|
+
else if (line.source === "legacy-uncovered") injection.legacyUncoveredInjectedLines++;
|
|
206
|
+
else injection.unattributedInjectedLines++;
|
|
207
|
+
};
|
|
208
|
+
const finish = (prompt) => {
|
|
209
|
+
try {
|
|
210
|
+
options?.injectionEmit?.(injection);
|
|
211
|
+
} catch {
|
|
212
|
+
}
|
|
213
|
+
return prompt;
|
|
214
|
+
};
|
|
215
|
+
if (items.length === 0) return finish(null);
|
|
190
216
|
const maxTokens = options?.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET;
|
|
191
217
|
const perKindLimit = options?.perKindLimit ?? 3;
|
|
192
218
|
const residentMaxTokens = options?.residentMaxTokens ?? RESIDENT_MEMORY_OVERLAY_TOKEN_BUDGET;
|
|
@@ -195,9 +221,10 @@ var buildMemoryOverlay = (items, options) => {
|
|
|
195
221
|
const residentFit = residentItems.length === 0 ? EMPTY_RESIDENT_FIT : fitResidentLines(
|
|
196
222
|
residentItems.map((item) => {
|
|
197
223
|
const lineText = `- ${isInferredMemory(item) ? "\uFF08\u63A8\u65AD\uFF09" : ""}${normalizeDisplayContent(item)}`;
|
|
198
|
-
return { kind: item.kind, lineText, lineTokens: estimateTokens(lineText) };
|
|
224
|
+
return { kind: item.kind, lineText, lineTokens: estimateTokens(lineText), source: options?.sources?.get(item) };
|
|
199
225
|
}),
|
|
200
|
-
residentMaxTokens - estimateTokens(RESIDENT_SECTION_HEADER)
|
|
226
|
+
residentMaxTokens - estimateTokens(RESIDENT_SECTION_HEADER),
|
|
227
|
+
onKept
|
|
201
228
|
);
|
|
202
229
|
const byKind = {
|
|
203
230
|
episodic: [],
|
|
@@ -214,10 +241,10 @@ var buildMemoryOverlay = (items, options) => {
|
|
|
214
241
|
const allLines = Object.entries(byKind).filter(([, list]) => list.length > 0).flatMap(
|
|
215
242
|
([kind, list]) => pickWithinKind(list, perKindLimit).map((item) => {
|
|
216
243
|
const lineText = `- ${isInferredMemory(item) ? "\uFF08\u63A8\u65AD\uFF09" : ""}${normalizeDisplayContent(item)}`;
|
|
217
|
-
return { kind, lineText, lineTokens: estimateTokens(lineText) };
|
|
244
|
+
return { kind, lineText, lineTokens: estimateTokens(lineText), source: options?.sources?.get(item) };
|
|
218
245
|
})
|
|
219
246
|
).sort((a, b) => (KIND_PRIORITY[a.kind] ?? 99) - (KIND_PRIORITY[b.kind] ?? 99));
|
|
220
|
-
retrievalFit = fitLinesToBudget(allLines, remainingBudget);
|
|
247
|
+
retrievalFit = fitLinesToBudget(allLines, remainingBudget, onKept);
|
|
221
248
|
const kindOrder = ["semantic", "procedural", "episodic"];
|
|
222
249
|
retrievalSections = kindOrder.filter(
|
|
223
250
|
(kind) => retrievalFit.keptByKind[kind] && retrievalFit.keptByKind[kind].length > 0
|
|
@@ -230,17 +257,18 @@ var buildMemoryOverlay = (items, options) => {
|
|
|
230
257
|
...retrievalSections
|
|
231
258
|
];
|
|
232
259
|
if (sections.length === 0) {
|
|
233
|
-
return OVERLAY_HEADER_LINES.join("\n");
|
|
260
|
+
return finish(OVERLAY_HEADER_LINES.join("\n"));
|
|
234
261
|
}
|
|
235
|
-
return [
|
|
262
|
+
return finish([
|
|
236
263
|
...OVERLAY_HEADER_LINES,
|
|
237
264
|
...sections,
|
|
238
265
|
...buildBudgetFooter(retrievalFit, residentFit)
|
|
239
|
-
].join("\n");
|
|
266
|
+
].join("\n"));
|
|
240
267
|
};
|
|
241
268
|
|
|
242
269
|
export {
|
|
243
270
|
EXPLICIT_REMEMBER_PREFIX_REGEX,
|
|
271
|
+
emptyMemoryInjectionObservation,
|
|
244
272
|
DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
|
|
245
273
|
RESIDENT_MEMORY_OVERLAY_TOKEN_BUDGET,
|
|
246
274
|
buildMemoryOverlay
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRuntimeServerContext,
|
|
3
3
|
scheduleDeleteReplication
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R6Z5S5GA.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchFromClientDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4N6G2CKP.js";
|
|
8
8
|
import {
|
|
9
9
|
selectIdentityToken
|
|
10
10
|
} from "./chunk-PXYBUFDB.js";
|