nolo-cli 0.211.0 → 0.213.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-VVQEOY3D.js → _executeModel-CUJLCFWR.js} +57 -54
- package/{action-U235TV4P.js → action-DF5UYSJF.js} +4 -4
- package/{addContentAction-7C76J7ST.js → addContentAction-WERAONNY.js} +9 -9
- package/{addDialogAgentAction-KTYANUEC.js → addDialogAgentAction-7VI7YRML.js} +16 -13
- package/{agentDeleteCommand-WHRU6VDJ.js → agentDeleteCommand-XJORXPGU.js} +80 -76
- package/{agentEmailCommands-ALLHXPW3.js → agentEmailCommands-XTYYFR6Z.js} +85 -80
- package/{agentListCommands-POKMEKMS.js → agentListCommands-OBLRBLHS.js} +237 -115
- package/{agentMachineCommands-WJLZLBPI.js → agentMachineCommands-5FMT3OT5.js} +33 -31
- package/{agentProviderCommands-MN3ABDME.js → agentProviderCommands-Q5O33MED.js} +33 -4
- package/{agentRecordCommands-OULZW3KM.js → agentRecordCommands-ZQ7SVYGG.js} +75 -70
- package/{agentRunCommand-ZNG4LGNQ.js → agentRunCommand-WS7IGO2W.js} +77 -73
- package/{agentRunControl-AF7BMR22.js → agentRunControl-TAMHJQSR.js} +8 -7
- package/{agentRuntimeLocal-YMUHFV5M.js → agentRuntimeLocal-SOO2OPJG.js} +30 -27
- package/{agentSlice-WNGUIMQZ.js → agentSlice-CHR6KOZN.js} +13 -13
- package/{appDeleteCommands-6MXPLAVF.js → appDeleteCommands-GUP6P5YE.js} +34 -32
- package/{appDeployCommands-ERRSVASW.js → appDeployCommands-MH2FX4O5.js} +34 -32
- package/{appDeployStatusCommands-ULICISLI.js → appDeployStatusCommands-SUHN3HPJ.js} +34 -32
- package/{appGetCommands-WYYYWROF.js → appGetCommands-YWDEX6Z4.js} +34 -32
- package/{appListCommands-DFCUCRCV.js → appListCommands-ZQVMLPAY.js} +34 -32
- package/{authCommand-ZJMWXFMA.js → authCommand-PWX2ZNUP.js} +15 -15
- package/{authCommands-WK6E42L2.js → authCommands-HV3EAU3V.js} +2 -2
- package/{builtinSkillRegistry-HH75G5J3.js → builtinSkillRegistry-2QETTQPM.js} +5 -4
- package/{chromeOpsCommands-HEN5AX2J.js → chromeOpsCommands-DIVM2K3T.js} +1 -1
- package/{chunk-TRZP7JZ7.js → chunk-2QHFH3DR.js} +1 -0
- package/{chunk-XE4Q46FF.js → chunk-3CGG2PAL.js} +1 -1
- package/{chunk-YUXQAVRD.js → chunk-3UKL3HPD.js} +251 -14
- package/{chunk-BSISWVB4.js → chunk-4I7ERB7F.js} +1 -1
- package/{chunk-5ORJGHTL.js → chunk-4T2WNOY7.js} +6 -6
- package/{chunk-W5VC7F7V.js → chunk-5MQRBSMW.js} +84 -91
- package/{chunk-YLTLB5A7.js → chunk-6DWMYIUY.js} +7 -6
- package/chunk-6VLJ6YA7.js +11751 -0
- package/{chunk-KSTEXKL6.js → chunk-75XIDFBW.js} +4 -3
- package/{chunk-BTYQAODF.js → chunk-7BT37FK3.js} +196 -308
- package/{chunk-27E2CBBY.js → chunk-7OCO4TDT.js} +1 -1
- package/{chunk-V3M6IXQI.js → chunk-7QTZCMKL.js} +335 -131
- package/chunk-7RFNTILS.js +2213 -0
- package/{chunk-NHQKWPLP.js → chunk-7Y4YTDQF.js} +25 -23
- package/{chunk-CKAHAVMK.js → chunk-A7TFUNZO.js} +35 -25
- package/{chunk-PJNFNEJE.js → chunk-ALQ3657A.js} +28 -2
- package/{chunk-NV572QM3.js → chunk-BBJ22CLB.js} +15 -15
- package/chunk-CJEIOP3E.js +0 -0
- package/{chunk-4WCEC56C.js → chunk-COFEN36Z.js} +2 -2
- package/{chunk-25OB36GU.js → chunk-CRHOO2ZR.js} +4 -4
- package/{chunk-NTSRCTUX.js → chunk-CTPXME7U.js} +2 -2
- package/{chunk-TPCDYNJK.js → chunk-EHGEOAHI.js} +3 -3
- package/{chunk-Y2WUYX4I.js → chunk-EHSZD5OI.js} +1 -1
- package/{chunk-SU3QL7YG.js → chunk-FUGMREBO.js} +2 -2
- package/{chunk-UMEGDH6A.js → chunk-FW6YHHLI.js} +8 -8
- package/chunk-FY7F4Q6X.js +127 -0
- package/{chunk-25M2K6OA.js → chunk-G2BQWAVT.js} +3 -3
- package/chunk-G7MLNNEX.js +84 -0
- package/{chunk-DQLB4NQ3.js → chunk-GPVRUGGY.js} +2 -2
- package/{chunk-RQ22OZD7.js → chunk-H2TJUNCH.js} +1 -1
- package/{chunk-XPHZK3PJ.js → chunk-H4UOTUOX.js} +165 -51
- package/{chunk-CVCRAO6Q.js → chunk-H5HF7TJA.js} +9 -7
- package/{chunk-OP7PTBAJ.js → chunk-H7PPIYWP.js} +9 -9
- package/{chunk-QQM464AL.js → chunk-HPFCI4SK.js} +3 -3
- package/chunk-HRMJUN5J.js +26 -0
- package/{chunk-WI6OGHXJ.js → chunk-HSVBJRF4.js} +5 -5
- package/{chunk-RYWO5AKN.js → chunk-HUBHAQK2.js} +10 -10
- package/{chunk-LKDF3ATR.js → chunk-INUFILG6.js} +1 -1
- package/{chunk-NXCGNS4N.js → chunk-IXNGOHV5.js} +2 -2
- package/{chunk-ET2CWLIJ.js → chunk-J2NHJ7WX.js} +4 -4
- package/{chunk-ECX3NKRD.js → chunk-JY5NGFFH.js} +11 -0
- package/chunk-KC4XDTT3.js +227 -0
- package/{chunk-ADBWFYJD.js → chunk-KFLT5KAD.js} +9 -9
- package/{chunk-PLYWH7XM.js → chunk-KIM6CLW5.js} +7 -7
- package/{chunk-7IYBN7IA.js → chunk-LLRPJECG.js} +22 -13
- package/{chunk-3J3U3KXB.js → chunk-MDB67IWP.js} +5 -5
- package/chunk-MMA3LZ3W.js +105 -0
- package/{chunk-XDMGY5IU.js → chunk-MOIJOHA5.js} +227 -11
- package/{chunk-NLT32XBZ.js → chunk-NJLL224W.js} +2 -2
- package/{chunk-JBOUVTZX.js → chunk-NOKUNJON.js} +15 -4
- package/{chunk-C2XZM3K4.js → chunk-NSAPDIN2.js} +12 -27
- package/{chunk-PAFTGNWA.js → chunk-O2TZF4AI.js} +2 -2
- package/{chunk-UIOEHFF6.js → chunk-OQHIVPG4.js} +1 -0
- package/{chunk-TCTSYFDM.js → chunk-OQPKUBPB.js} +19 -6
- package/{chunk-X4F26D5K.js → chunk-P5L7CXOC.js} +58 -33
- package/{chunk-OXME3PEE.js → chunk-PCLE46CE.js} +1 -1
- package/{chunk-UCPAVEQB.js → chunk-PYRUW7XN.js} +1 -1
- package/{chunk-YXOBCDNW.js → chunk-QG4AOSON.js} +12 -49
- package/{chunk-RXCCWVA2.js → chunk-QHPRUL4O.js} +3 -3
- package/{chunk-I5PBXF7O.js → chunk-R5O4QAWG.js} +1 -1
- package/{chunk-HD3WR3TD.js → chunk-RLBNLZVC.js} +1 -1
- package/{chunk-SN5XE6GQ.js → chunk-RPQXPZZF.js} +4 -4
- package/{chunk-ZOO3WJIE.js → chunk-RSHTSUEG.js} +948 -108
- package/{chunk-6HVBI6TI.js → chunk-RZOV7OMV.js} +12 -229
- package/{chunk-D2MDMY2M.js → chunk-SVYO6AO7.js} +7 -1
- package/{chunk-IIHY4ZAI.js → chunk-TAKB25RM.js} +8 -4
- package/{chunk-ZN5AH4BY.js → chunk-TX5EYMGT.js} +6 -6
- package/{chunk-CKOO42G5.js → chunk-UHJGXRJ4.js} +4 -4
- package/{chunk-M4NTDZG3.js → chunk-UYD5HQ6T.js} +857 -295
- package/{chunk-WTKYP6QO.js → chunk-V5Y3R6BT.js} +114 -6
- package/{chunk-3RQVYR4B.js → chunk-VNYYOX3V.js} +59 -20
- package/{chunk-4LEGTOSR.js → chunk-VO4WSAVP.js} +3 -3
- package/{chunk-LNYHAKBP.js → chunk-W4S457LU.js} +1 -1
- package/{chunk-RIALQUSF.js → chunk-WMTBPBMP.js} +6 -6
- package/chunk-WPORQFYN.js +74 -0
- package/{chunk-Y6M7KJOA.js → chunk-WRYQ35LQ.js} +5 -5
- package/{chunk-YKFP6UGT.js → chunk-WYDI6TGM.js} +17 -17
- package/{chunk-SCYQJPGA.js → chunk-X7SDOJUM.js} +147 -20
- package/chunk-XFYFMTOM.js +92 -0
- package/{chunk-LT3EAHJY.js → chunk-XHQC4PXX.js} +65 -49
- package/{chunk-2WZXXAQD.js → chunk-YB3YZK56.js} +67 -1
- package/{chunk-JKW6LERJ.js → chunk-YJAFKXMU.js} +14 -14
- package/{chunk-GSQNH63I.js → chunk-YTF4WH7J.js} +3 -19
- package/{chunk-DA7CTWT4.js → chunk-YWSEPJ7C.js} +5 -5
- package/{chunk-3V2QMRNN.js → chunk-ZL5RAEEB.js} +3 -3
- package/{chunk-NEZGPBL7.js → chunk-ZNWI6OVT.js} +2 -2
- package/{chunk-MBS6CTZB.js → chunk-ZXOUUDCG.js} +266 -2014
- package/cliAgentConfigHelpers-WJBZQTLW.js +41 -0
- package/{commandRegistry-FI2IOQ3U.js → commandRegistry-W63CYRZJ.js} +91 -87
- package/{contentThunks-5LKNNDGY.js → contentThunks-U7PL5MQD.js} +27 -26
- package/{cooldownCommands-YXLWOXWR.js → cooldownCommands-TIGUHXTD.js} +3 -3
- package/{createAgentAutomationAction-TI4QG4CY.js → createAgentAutomationAction-OLBQDD6R.js} +27 -26
- package/{createDialogAction-TJ3JKLO4.js → createDialogAction-SVH6B3SB.js} +29 -28
- package/{createPageAction-GKXT6WEH.js → createPageAction-F4DIWZ2Z.js} +29 -28
- package/{dbSlice-LPMZ2DGJ.js → dbSlice-BVH2YZPQ.js} +8 -8
- package/{deleteFile-EPUQHKPA.js → deleteFile-5YOEKV4U.js} +4 -4
- package/{dialogCommands-IWPXIZ5P.js → dialogCommands-KHIEPY3M.js} +38 -36
- package/{dialogSlice-ZWNNS7GZ.js → dialogSlice-ZCTDV2PZ.js} +25 -24
- package/{dialogUsageCommand-ZCPPHPJ5.js → dialogUsageCommand-7KCPYGHG.js} +1 -1
- package/{docCreateCommands-HFSPKJSI.js → docCreateCommands-DPMZI7G5.js} +32 -30
- package/{docDeleteCommands-CRL62POH.js → docDeleteCommands-IRQQLUBT.js} +34 -33
- package/{docReadCommands-QOTOX3XW.js → docReadCommands-LK37XH6L.js} +32 -30
- package/{docStore-WYLRB7ED.js → docStore-V2KECILA.js} +11 -11
- package/{docUpdateCommands-7BMH4MCA.js → docUpdateCommands-O6T3HJHH.js} +32 -30
- package/{fetchMessages-YY4SATNR.js → fetchMessages-NR4KNQLO.js} +3 -3
- package/{getPricing-OQXBJ6VZ.js → getPricing-2MNMXEVG.js} +3 -3
- package/{handleSendMessageAction-P27YP2DQ.js → handleSendMessageAction-2PE25WM3.js} +49 -47
- package/hostCredentialCreate-S233UMAP.js +357 -0
- package/index.js +7 -7
- package/{keys-P4ZDOVJW.js → keys-BEGDOTRL.js} +3 -1
- package/{localDialogRead-5VCMQQZF.js → localDialogRead-7NNDVVF7.js} +1 -1
- package/{localRuntimeAdapter-GP6ZSSO3.js → localRuntimeAdapter-KY6WXNBR.js} +82 -75
- package/{machineCommands-6Z6H4BFX.js → machineCommands-Q6HA3IXF.js} +74 -69
- package/{machineWsRunDispatch-F2ZIXMYM.js → machineWsRunDispatch-WWJQ6WR3.js} +74 -69
- package/{memberThunks-YSEFJF47.js → memberThunks-7EDJADWU.js} +9 -9
- package/package.json +1 -1
- package/{projectArchive-PIGEOX3D.js → projectArchive-DRTDIMEV.js} +29 -28
- package/{providerPresetApply-ZYMLQA46.js → providerPresetApply-YXGV6NXB.js} +4 -4
- package/{providerRegistry-E34XWDLJ.js → providerRegistry-S6UL6UNA.js} +4 -4
- package/{read-DIIQBOOO.js → read-4V2RMG7N.js} +4 -4
- package/{readDocTool-HXYGOEA7.js → readDocTool-BH6ATGQO.js} +1 -1
- package/{readlineWorkspace-UG25G7KC.js → readlineWorkspace-2W4WRCOU.js} +437 -217
- package/{removeDialogAgentAction-ALJDUJ2E.js → removeDialogAgentAction-LYAZGNKW.js} +18 -15
- package/{runAgentClientLoop-IO5F7TCZ.js → runAgentClientLoop-J2VQBS2Z.js} +55 -52
- package/{runtimeDoctorCommands-PGAA47G5.js → runtimeDoctorCommands-QAI3MBKQ.js} +6 -6
- package/{secretCommands-ZCZ4KVET.js → secretCommands-LXDWOLZ6.js} +4 -4
- package/{setDialogExtraReferencesAction-O3SVMD5A.js → setDialogExtraReferencesAction-OCRPGPYH.js} +11 -11
- package/{setPrimaryDialogAgentAction-HE7RVFFF.js → setPrimaryDialogAgentAction-HFJDQIBU.js} +19 -16
- package/{settingThunks-BWWJQG4L.js → settingThunks-RAMHMTGM.js} +13 -12
- package/{spaceCommands-UAELIFEI.js → spaceCommands-KVJZVKVO.js} +32 -31
- package/{streamAgentChatTurn-VUKZQYJR.js → streamAgentChatTurn-GHBMJJ6S.js} +63 -60
- package/{switchDialogAgentAction-3VZS7SOS.js → switchDialogAgentAction-EBRMW3RA.js} +16 -13
- package/{tools-VRXJAVYI.js → tools-EWKCPKMS.js} +49 -46
- package/{tuiSummaryLlmCaller-TGCHZLSW.js → tuiSummaryLlmCaller-ALQYUUWB.js} +48 -19
- package/{updateCommands-Q6CYAEYJ.js → updateCommands-ZQYU6SCI.js} +5 -3
- package/{updateDialogTitleAction-MULWCJCW.js → updateDialogTitleAction-5GGMBTDF.js} +40 -72
- package/usageCommand-F4IPVMIZ.js +32 -0
- package/usageRebuildCommand-HAW2AD5N.js +626 -0
- package/{windowsSelfUpdate-XSQVF2GK.js → windowsSelfUpdate-257DV2T6.js} +2 -2
- package/{workloadLifecycle-4BEQHMSD.js → workloadLifecycle-4C42SVBD.js} +1 -0
- package/chunk-4LCOCOR5.js +0 -50
- package/chunk-7AUQ3WCW.js +0 -51
- package/chunk-ZRAU6T47.js +0 -56
- package/{agentFavoriteCommands-GAFEXKKP.js → agentFavoriteCommands-EDK743YA.js} +1 -1
- package/{agentGrantCommands-V5FOQKFD.js → agentGrantCommands-RQWK2TEV.js} +1 -1
- package/{agentPullCommand-2JMJP5BS.js → agentPullCommand-6EM3URVK.js} +1 -1
- package/{chunk-A2ZMIRLN.js → chunk-INN4LTAJ.js} +5 -5
- package/{chunk-PV6JJAUB.js → chunk-TCZHTTUU.js} +8 -8
- package/{chunk-AKE53VMW.js → chunk-ZCWRMUWT.js} +0 -0
- package/{tableCommands-D7WR4QSM.js → tableCommands-MP6VFSVT.js} +3 -3
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
resolveDiscoveryScope,
|
|
7
7
|
resolvePaginationArgs,
|
|
8
8
|
toDiscoverySafeAgentSummary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QG4AOSON.js";
|
|
10
10
|
import {
|
|
11
11
|
getUserDataItemTimestamp,
|
|
12
12
|
mergeAndDedupUserData
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PCLE46CE.js";
|
|
14
14
|
import {
|
|
15
15
|
addMemberSpace,
|
|
16
16
|
applyFetchSpaceFulfilled,
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
setMembershipLoading,
|
|
23
23
|
setMembershipRejected,
|
|
24
24
|
updateMemberSpaceName
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IXNGOHV5.js";
|
|
26
26
|
import {
|
|
27
27
|
markdownToSlate
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-75XIDFBW.js";
|
|
29
29
|
import {
|
|
30
30
|
ToolResultError,
|
|
31
31
|
clipMultilineText,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
toolRunUpdated,
|
|
39
39
|
uiCardFallback,
|
|
40
40
|
waitForAbortableDelay
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HUBHAQK2.js";
|
|
42
42
|
import {
|
|
43
43
|
isGatewayHttpStatus
|
|
44
44
|
} from "./chunk-NF64D32W.js";
|
|
@@ -52,10 +52,10 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
AGENT_UPDATE_FIELD_NAMES,
|
|
54
54
|
normalizeAgentUpdateFieldList
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-R5O4QAWG.js";
|
|
56
56
|
import {
|
|
57
57
|
createDocState
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-6DWMYIUY.js";
|
|
59
59
|
import {
|
|
60
60
|
ToolApiError,
|
|
61
61
|
buildToolRequestHeaders,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
readPageFunc,
|
|
71
71
|
readPageFunctionSchema,
|
|
72
72
|
resolvePageReadMarkdown
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-RLBNLZVC.js";
|
|
74
74
|
import {
|
|
75
75
|
extractMentionsFromSlate
|
|
76
76
|
} from "./chunk-AGIM7IMJ.js";
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-63W5N6P3.js";
|
|
80
80
|
import {
|
|
81
81
|
createDialogAction
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-LLRPJECG.js";
|
|
83
83
|
import {
|
|
84
84
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
85
85
|
addContentToSpace,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
updateContentCategory,
|
|
97
97
|
updateContentTitle,
|
|
98
98
|
writeStoredCollapsedCategories
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-7Y4YTDQF.js";
|
|
100
100
|
import {
|
|
101
101
|
buildDatabaseFileContentUrl,
|
|
102
102
|
deleteDialog,
|
|
@@ -109,14 +109,14 @@ import {
|
|
|
109
109
|
selectMsgById,
|
|
110
110
|
uiAskChoiceFunc,
|
|
111
111
|
uiAskChoiceFunctionSchema
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-ZXOUUDCG.js";
|
|
113
113
|
import {
|
|
114
114
|
createAgent,
|
|
115
115
|
deleteServerSyncedCredential,
|
|
116
116
|
runLlm,
|
|
117
117
|
streamAgentChatTurn,
|
|
118
118
|
updateAgent
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-KFLT5KAD.js";
|
|
120
120
|
import {
|
|
121
121
|
getCurrentSpaceId,
|
|
122
122
|
getCurrentSpaceIdRaw,
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
UNCATEGORIZED_ID,
|
|
136
136
|
addContentAction,
|
|
137
137
|
checkSpaceMembership
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-GPVRUGGY.js";
|
|
139
139
|
import {
|
|
140
140
|
createSpaceKey,
|
|
141
141
|
normalizeSpaceId
|
|
@@ -150,11 +150,11 @@ import {
|
|
|
150
150
|
} from "./chunk-YDH3FDFQ.js";
|
|
151
151
|
import {
|
|
152
152
|
shareResourceAction
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-HPFCI4SK.js";
|
|
154
154
|
import {
|
|
155
155
|
selectCurrentServer,
|
|
156
156
|
selectSyncServers
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-4I7ERB7F.js";
|
|
158
158
|
import {
|
|
159
159
|
patch,
|
|
160
160
|
read,
|
|
@@ -166,10 +166,10 @@ import {
|
|
|
166
166
|
selectEntities,
|
|
167
167
|
toTimestampMs,
|
|
168
168
|
write
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-FW6YHHLI.js";
|
|
170
170
|
import {
|
|
171
171
|
readAction
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-O2TZF4AI.js";
|
|
173
173
|
import {
|
|
174
174
|
DEVICE_LOCAL_OWNER_ID,
|
|
175
175
|
getRuntimeServerContext,
|
|
@@ -179,11 +179,11 @@ import {
|
|
|
179
179
|
resolveEffectiveSpaceActorId,
|
|
180
180
|
resolveRecordOwnerUserId,
|
|
181
181
|
selectRuntimeSnapshot
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-PYRUW7XN.js";
|
|
183
183
|
import {
|
|
184
184
|
createAsyncThunk,
|
|
185
185
|
noloWriteRequest
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-P5L7CXOC.js";
|
|
187
187
|
import {
|
|
188
188
|
selectIdentityToken,
|
|
189
189
|
selectIdentityUserBalance,
|
|
@@ -192,10 +192,10 @@ import {
|
|
|
192
192
|
import {
|
|
193
193
|
buildTombstoneRecord,
|
|
194
194
|
isTombstoneRecord
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-SVYO6AO7.js";
|
|
196
196
|
import {
|
|
197
197
|
CAPABILITY_PACKS
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-EHGEOAHI.js";
|
|
199
199
|
import {
|
|
200
200
|
buildSkillDocMarkdown,
|
|
201
201
|
normalizeSkillModalities,
|
|
@@ -217,22 +217,24 @@ import {
|
|
|
217
217
|
getNoloDialogIdFromKey,
|
|
218
218
|
normalizeNoloExcludeDialogIds,
|
|
219
219
|
normalizeNoloSpaceInput,
|
|
220
|
-
redactAgentRecordForWorkspaceTool,
|
|
221
220
|
resolveDispatchedSubtaskBudget,
|
|
222
221
|
resolveNoloDialogInput,
|
|
223
|
-
resolveReadOnlyToolConstraints,
|
|
224
222
|
verifyNoloDialogSubjectRefQuery
|
|
225
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-RZOV7OMV.js";
|
|
226
224
|
import {
|
|
227
225
|
mergeAvailabilityDeadline,
|
|
228
226
|
resolveCredentialKeyWithFallback
|
|
229
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-3UKL3HPD.js";
|
|
228
|
+
import {
|
|
229
|
+
redactAgentRecordForWorkspaceTool,
|
|
230
|
+
resolveReadOnlyToolConstraints
|
|
231
|
+
} from "./chunk-KC4XDTT3.js";
|
|
230
232
|
import {
|
|
231
233
|
clipCompactText
|
|
232
234
|
} from "./chunk-5MMAK75Q.js";
|
|
233
235
|
import {
|
|
234
236
|
createFileCredentialBroker
|
|
235
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-OQHIVPG4.js";
|
|
236
238
|
import {
|
|
237
239
|
asRecordOrEmpty
|
|
238
240
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -245,7 +247,7 @@ import {
|
|
|
245
247
|
import {
|
|
246
248
|
canonicalizeToolName,
|
|
247
249
|
canonicalizeToolNames
|
|
248
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-ZCWRMUWT.js";
|
|
249
251
|
import {
|
|
250
252
|
CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES,
|
|
251
253
|
chromeConnectorToolSchemas,
|
|
@@ -269,7 +271,7 @@ import {
|
|
|
269
271
|
formatStopRunCard,
|
|
270
272
|
normalizeRunTitle,
|
|
271
273
|
resolveRunLabel
|
|
272
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-ALQ3657A.js";
|
|
273
275
|
import {
|
|
274
276
|
DEFAULT_MODEL,
|
|
275
277
|
clampReasoningEffort,
|
|
@@ -281,6 +283,9 @@ import {
|
|
|
281
283
|
import {
|
|
282
284
|
isRecord
|
|
283
285
|
} from "./chunk-KUG52IAP.js";
|
|
286
|
+
import {
|
|
287
|
+
asTrimmedLowercaseString
|
|
288
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
284
289
|
import {
|
|
285
290
|
API_ENDPOINTS
|
|
286
291
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -305,7 +310,7 @@ import {
|
|
|
305
310
|
rowKey,
|
|
306
311
|
splitKey,
|
|
307
312
|
toTrimmedString
|
|
308
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-JY5NGFFH.js";
|
|
309
314
|
import {
|
|
310
315
|
dialogMessageRange,
|
|
311
316
|
isDialogKey,
|
|
@@ -324,9 +329,6 @@ import {
|
|
|
324
329
|
import {
|
|
325
330
|
asOptionalTrimmedString
|
|
326
331
|
} from "./chunk-G3SUCT4W.js";
|
|
327
|
-
import {
|
|
328
|
-
asTrimmedLowercaseString
|
|
329
|
-
} from "./chunk-QSJ3HFEF.js";
|
|
330
332
|
import {
|
|
331
333
|
__toESM
|
|
332
334
|
} from "./chunk-4VNS5WPM.js";
|
|
@@ -1264,7 +1266,7 @@ var buildPlatformFormDataFromArgs = async (args) => {
|
|
|
1264
1266
|
const trimmedModel = toTrimmedString(model);
|
|
1265
1267
|
const trimmedProvider = toTrimmedString(provider);
|
|
1266
1268
|
const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
|
|
1267
|
-
const { getModelPricing } = await import("./getPricing-
|
|
1269
|
+
const { getModelPricing } = await import("./getPricing-2MNMXEVG.js");
|
|
1268
1270
|
const normalizedTools = tools ?? [];
|
|
1269
1271
|
const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
|
|
1270
1272
|
const formData = {
|
|
@@ -3898,7 +3900,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3898
3900
|
const deletedDialogIds = [];
|
|
3899
3901
|
const deletedDialogKeys = [];
|
|
3900
3902
|
const failures = [];
|
|
3901
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3903
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-ZCTDV2PZ.js");
|
|
3902
3904
|
for (const target of targets) {
|
|
3903
3905
|
try {
|
|
3904
3906
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -3964,18 +3966,18 @@ async function fetchUserFavoriteAgentMap(thunkApi) {
|
|
|
3964
3966
|
}
|
|
3965
3967
|
var listAgentsFunctionSchema = {
|
|
3966
3968
|
name: "listAgents",
|
|
3967
|
-
description: "List Nolo agents available for delegation as safe summaries. By default (scope='
|
|
3969
|
+
description: "List Nolo agents available for delegation as safe summaries. By default (scope='all') returns the deduplicated union of the user's own/favorite agents and public/shared agents. scope='public' returns only public/shared agents. Public agents may consume platform credits - check each agent's billingSource before dispatching. The payload returns `credentialGroups` summarizing independent credential capacities (credentialGroup, credentialKind, agentCount, and availableAt recovery timestamps). Orchestration discipline: Never fan out parallel runs on one credential; fan out only across distinct credentialGroups. A channel verdict is valid for the current dispatch attempt only; always re-read availability before dispatching, and never reuse a failure verdict from an earlier attempt. On config_unresolved-class errors, retry once before degrading. Reserve the strongest private channels for review; execution should use cheap channels. The `agents` array carries a compact agent-selection projection per agent: runnable `agentKey` (agent-<userId>-<id> owned, agent-pub-<id> public), name, model, provider, apiSource, billingSource ('user_subscription' | 'owner_subscription' | 'user_api' | 'platform_credits' | 'local'), tools, isFavorite, isOAuth, isOwned, isPublic, credentialGroup, credentialKind. Copy `agentKey` verbatim into startAgentRun. All agents are listed, including rate-limited (429) ones: cooldown agents carry `availabilityStatus` / `availabilityReason` / `nextAvailableAt` as reference info, not a dispatch gate (quota is informational; requests are still sent and upstream results are reported as-is). `unavailableCount` reports how many agents are currently rate-limited. `showUnavailable` is deprecated and has no effect (kept for compatibility). Set `verbose: true` for full safe summary details.",
|
|
3968
3970
|
parameters: {
|
|
3969
3971
|
type: "object",
|
|
3970
3972
|
properties: {
|
|
3971
3973
|
limit: { type: "integer", description: "Maximum agents to return. Default 100, max 500." },
|
|
3972
3974
|
scope: {
|
|
3973
3975
|
type: "string",
|
|
3974
|
-
enum: ["
|
|
3975
|
-
description: "Discovery scope. '
|
|
3976
|
+
enum: ["all", "public"],
|
|
3977
|
+
description: "Discovery scope. 'all' (default): deduplicated union of the user's own/favorite agents and public/shared agents. 'public': only shared/marketplace agents (may use platform credits)."
|
|
3976
3978
|
},
|
|
3977
3979
|
publicOnly: { type: "boolean", description: "Deprecated compatibility alias for scope='public'." },
|
|
3978
|
-
showUnavailable: { type: "boolean", description: "
|
|
3980
|
+
showUnavailable: { type: "boolean", description: "Deprecated no-op: rate-limited agents are always included now (reference info, not a gate). Kept for compatibility." },
|
|
3979
3981
|
query: {
|
|
3980
3982
|
type: "string",
|
|
3981
3983
|
description: "Optional case-insensitive search substring matching agent name, model, provider, handle, or agentKey. Use to locate specific candidates like 'opus', 'devin', or 'claude'."
|
|
@@ -3987,6 +3989,19 @@ var listAgentsFunctionSchema = {
|
|
|
3987
3989
|
}
|
|
3988
3990
|
};
|
|
3989
3991
|
async function listAgentsFunc(args, thunkApi) {
|
|
3992
|
+
const runtime = getRuntime(thunkApi);
|
|
3993
|
+
if (!runtime?.currentUserId || !runtime?.currentToken) {
|
|
3994
|
+
return {
|
|
3995
|
+
rawData: {
|
|
3996
|
+
success: true,
|
|
3997
|
+
total: 0,
|
|
3998
|
+
unavailableCount: 0,
|
|
3999
|
+
agents: [],
|
|
4000
|
+
credentialGroups: []
|
|
4001
|
+
},
|
|
4002
|
+
displayData: formatAgentListCard([])
|
|
4003
|
+
};
|
|
4004
|
+
}
|
|
3990
4005
|
const pagination = resolvePaginationArgs({ limit: args?.limit, offset: args?.offset });
|
|
3991
4006
|
const hasQuery = Boolean(args?.query && typeof args?.query === "string" && args?.query.trim());
|
|
3992
4007
|
const upstreamFetchLimit = hasQuery ? Number.POSITIVE_INFINITY : Math.max(500, (pagination.offset ?? 0) + (pagination.limit ?? 100));
|
|
@@ -3996,7 +4011,6 @@ async function listAgentsFunc(args, thunkApi) {
|
|
|
3996
4011
|
Number.isFinite(upstreamFetchLimit) ? upstreamFetchLimit : 500
|
|
3997
4012
|
);
|
|
3998
4013
|
const favoritesMap = await fetchUserFavoriteAgentMap(thunkApi);
|
|
3999
|
-
const runtime = getRuntime(thunkApi);
|
|
4000
4014
|
const scope = resolveDiscoveryScope({ scope: args?.scope, publicOnly: args?.publicOnly });
|
|
4001
4015
|
let publicRecords = [];
|
|
4002
4016
|
let upstreamTruncated = false;
|
|
@@ -4085,6 +4099,7 @@ async function listAgentsFunc(args, thunkApi) {
|
|
|
4085
4099
|
scope: args?.scope,
|
|
4086
4100
|
query: args?.query,
|
|
4087
4101
|
publicOnly: args?.publicOnly,
|
|
4102
|
+
// showUnavailable 已无过滤语义(保留兼容入参,见 BuildAgentDiscoveryResultOptions)。
|
|
4088
4103
|
showUnavailable: args?.showUnavailable,
|
|
4089
4104
|
verbose: args?.verbose,
|
|
4090
4105
|
compact: args?.compact,
|
|
@@ -4103,9 +4118,10 @@ async function listAgentsFunc(args, thunkApi) {
|
|
|
4103
4118
|
...discovery.truncated ? { truncated: true } : {},
|
|
4104
4119
|
unavailableCount: discovery.unavailableCount,
|
|
4105
4120
|
// 顺序即序列化顺序:agents 在前(派发必需),大块说明字段在后。
|
|
4121
|
+
// 限流 agent 已合入 agents(带 availabilityStatus / nextAvailableAt
|
|
4122
|
+
// 参考标注),不再单列 unavailableAgents,避免两套真相。
|
|
4106
4123
|
agents: discovery.agents,
|
|
4107
|
-
credentialGroups: discovery.credentialGroups
|
|
4108
|
-
unavailableAgents: discovery.unavailableAgents
|
|
4124
|
+
credentialGroups: discovery.credentialGroups
|
|
4109
4125
|
},
|
|
4110
4126
|
displayData: formatAgentListCard(discovery.agents)
|
|
4111
4127
|
};
|
|
@@ -4277,7 +4293,7 @@ var readSkillDocFunctionSchema = {
|
|
|
4277
4293
|
}
|
|
4278
4294
|
};
|
|
4279
4295
|
async function readSkillDocFunc(args, thunkApi) {
|
|
4280
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
4296
|
+
const { buildReadDocResult } = await import("./readDocTool-BH6ATGQO.js");
|
|
4281
4297
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
4282
4298
|
if (typeof id !== "string" || !id.trim()) {
|
|
4283
4299
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -5090,7 +5106,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
5090
5106
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
5091
5107
|
const readSpace = async (dbKey) => {
|
|
5092
5108
|
try {
|
|
5093
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
5109
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-BVH2YZPQ.js");
|
|
5094
5110
|
const readPromise = fresh ? dispatch(readAndWait2(dbKey)).unwrap() : dispatch(read2({ dbKey })).unwrap();
|
|
5095
5111
|
return await withTimeout(readPromise);
|
|
5096
5112
|
} catch {
|
|
@@ -11738,7 +11754,7 @@ var selectUserIdFromState = (state2) => {
|
|
|
11738
11754
|
var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
|
|
11739
11755
|
async function addImageContentToSpace(input) {
|
|
11740
11756
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
11741
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
11757
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-WERAONNY.js")).addContentAction;
|
|
11742
11758
|
await addContentAction2(
|
|
11743
11759
|
{
|
|
11744
11760
|
spaceId: input.spaceId,
|
|
@@ -14224,7 +14240,7 @@ function buildStartAgentRunFunctionSchema(opts) {
|
|
|
14224
14240
|
},
|
|
14225
14241
|
maxToolCalls: {
|
|
14226
14242
|
type: "number",
|
|
14227
|
-
description: "\u53EF\u9009\u3002\u8FD9\u6B21\u5B50\u4EFB\u52A1\u7684\u5DE5\u5177\u8C03\u7528\u6388\u6743\u989D\u5EA6\uFF08\u786C\u4E0A\u9650\uFF09\u3002\u4E0D\u4F20\u5219\u7528 runtime \u9ED8\u8BA4 200\u3002\u5230\u9650\u5373\u505C\u6B62\u542F\u52A8\u65B0\
|
|
14243
|
+
description: "\u53EF\u9009\u3002\u8FD9\u6B21\u5B50\u4EFB\u52A1\u7684\u5DE5\u5177\u8C03\u7528\u6388\u6743\u989D\u5EA6\uFF08\u786C\u4E0A\u9650\uFF09\u3002\u4E0D\u4F20\u5219\u7528 runtime \u9ED8\u8BA4 200\u3002\u5230\u9650\u5373\u505C\u6B62\u542F\u52A8\u65B0\u5DE5\u5177\uFF1B\u5DE5\u5177\u989D\u5EA6\u5230\u9650\u65F6\u53EF\u6709\u4E00\u6B21\u65E0\u5DE5\u5177\u603B\u7ED3\uFF0C\u5899\u949F\u5230\u9650\u6216\u53D6\u6D88\u540E\u4E0D\u518D\u8BF7\u6C42\u6A21\u578B\uFF0C\u8FD4\u56DE\u4E2D\u95F4\u7ED3\u8BBA\u5E76\u6807\u8BB0 budget-exhausted\uFF08\u4E0D\u7B97 provider \u9519\u8BEF\uFF09\u3002\u5E94\u6309\u4EFB\u52A1\u610F\u56FE\u6536\u7D27\uFF1A\u6539\u4E00\u4E2A\u5E38\u91CF\u7ED9 10~20\uFF0C\u5355\u6587\u4EF6\u4FEE\u590D\u7ED9 40\uFF0C\u5BA1\u67E5\u7ED9 60\u3002\u6CE8\u610F\u9ED8\u8BA4 200 \u53EA\u7528\u6765\u515C\u65E0\u754C\u635F\u5931\uFF0C\u4E0D\u662F\u5931\u63A7\u8BC6\u522B\u2014\u2014\u8DD1\u5230\u4E0A\u9650\u4E0D\u4EE3\u8868\u4EFB\u52A1\u6B63\u5E38\u3002"
|
|
14228
14244
|
},
|
|
14229
14245
|
maxWallClockMs: {
|
|
14230
14246
|
type: "number",
|
|
@@ -18179,7 +18195,7 @@ var resolveRecordTimestamp = (record) => record.updatedAt ?? record.updated_at ?
|
|
|
18179
18195
|
function pinnedFirst(a, b) {
|
|
18180
18196
|
return Number(Boolean(b.pinned)) - Number(Boolean(a.pinned));
|
|
18181
18197
|
}
|
|
18182
|
-
function buildMyContentItemsFromUserData(records, currentServer, spaceNameById, myAppsLabel, fallbackSpaceLabel) {
|
|
18198
|
+
function buildMyContentItemsFromUserData(records, currentServer = "", spaceNameById = /* @__PURE__ */ new Map(), myAppsLabel = "", fallbackSpaceLabel = "") {
|
|
18183
18199
|
const items = records.flatMap((record) => {
|
|
18184
18200
|
const contentKey = resolveUserContentRecordKey(record);
|
|
18185
18201
|
const normalizedType = normalizeText2(record.type).toLowerCase();
|
|
@@ -18236,7 +18252,7 @@ function buildMyContentItemsFromUserData(records, currentServer, spaceNameById,
|
|
|
18236
18252
|
spaceName,
|
|
18237
18253
|
serverOrigin: typeof record.serverOrigin === "string" && record.serverOrigin.trim().length > 0 ? record.serverOrigin : void 0,
|
|
18238
18254
|
cybots: record.cybots,
|
|
18239
|
-
primaryAgentKey: record.primaryAgentKey || record.primaryCybotKey
|
|
18255
|
+
primaryAgentKey: record.primaryAgentKey || record.primaryCybotKey || record.runtimeBinding?.agentKey || (Array.isArray(record.cybots) && record.cybots.length > 0 ? record.cybots[0] : void 0)
|
|
18240
18256
|
}
|
|
18241
18257
|
];
|
|
18242
18258
|
});
|
|
@@ -18699,7 +18715,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18699
18715
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18700
18716
|
};
|
|
18701
18717
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18702
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18718
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-V2KECILA.js");
|
|
18703
18719
|
if (getDocState().pageKey === id) {
|
|
18704
18720
|
applyExternalDocUpdate({
|
|
18705
18721
|
slateData: finalSlateData,
|
|
@@ -18724,7 +18740,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18724
18740
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
18725
18741
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
18726
18742
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
18727
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-
|
|
18743
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-RAMHMTGM.js")).setSettings;
|
|
18728
18744
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
18729
18745
|
}
|
|
18730
18746
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -49,9 +49,75 @@ function clipToolText(content, maxChars, headRatio, marker = "\n\n[... tool outp
|
|
|
49
49
|
return `${normalized.slice(0, headChars)}${marker}${normalized.slice(-tailChars)}`;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
// packages/ai/context/retention.ts
|
|
53
|
+
var SAFE_BUFFER_RATIO = 0.95;
|
|
54
|
+
var CACHE_FIRST_RETENTION_STRENGTH = 0.95;
|
|
55
|
+
var clamp = (v, min, max) => Math.min(max, Math.max(min, v));
|
|
56
|
+
var planContextUsage = (params) => {
|
|
57
|
+
const { contextWindow, summaryTokens, recentLoad } = params;
|
|
58
|
+
const safeWindowLimit = Math.floor(contextWindow * SAFE_BUFFER_RATIO);
|
|
59
|
+
const iq = CACHE_FIRST_RETENTION_STRENGTH;
|
|
60
|
+
const isLargeWindow = contextWindow >= 512e3;
|
|
61
|
+
const isSmallWindow = contextWindow <= 64e3;
|
|
62
|
+
let baseHistoryRatio;
|
|
63
|
+
if (isLargeWindow) {
|
|
64
|
+
baseHistoryRatio = 0.8 + 0.2 * iq;
|
|
65
|
+
} else if (isSmallWindow) {
|
|
66
|
+
baseHistoryRatio = 0.35 + 0.3 * iq;
|
|
67
|
+
} else {
|
|
68
|
+
baseHistoryRatio = 0.55 + 0.3 * iq;
|
|
69
|
+
}
|
|
70
|
+
let historyRatio = baseHistoryRatio;
|
|
71
|
+
switch (recentLoad) {
|
|
72
|
+
case "light": {
|
|
73
|
+
const maxRatio = isLargeWindow ? 1 : isSmallWindow ? 0.75 : 0.85;
|
|
74
|
+
historyRatio = clamp(historyRatio * 1.05, 0.3, maxRatio);
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
case "heavy": {
|
|
78
|
+
const maxRatio = isLargeWindow ? 0.98 : isSmallWindow ? 0.7 : 0.8;
|
|
79
|
+
const multiplier = isLargeWindow ? 0.98 : isSmallWindow ? 0.9 : 0.9;
|
|
80
|
+
historyRatio = clamp(historyRatio * multiplier, 0.3, maxRatio);
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
case "medium":
|
|
84
|
+
default: {
|
|
85
|
+
const maxRatio = isLargeWindow ? 1 : isSmallWindow ? 0.75 : 0.85;
|
|
86
|
+
historyRatio = clamp(historyRatio, 0.3, maxRatio);
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const historyBudget = Math.max(
|
|
91
|
+
0,
|
|
92
|
+
Math.floor(safeWindowLimit * historyRatio)
|
|
93
|
+
);
|
|
94
|
+
const minRawRatio = isSmallWindow ? 0.5 : isLargeWindow ? 0.2 : 0.3;
|
|
95
|
+
const rawMessageBudget = Math.max(
|
|
96
|
+
Math.floor(historyBudget * minRawRatio),
|
|
97
|
+
historyBudget - summaryTokens,
|
|
98
|
+
0
|
|
99
|
+
);
|
|
100
|
+
let minTailTokens;
|
|
101
|
+
if (recentLoad === "light") {
|
|
102
|
+
minTailTokens = Math.min(
|
|
103
|
+
Math.floor(safeWindowLimit * 0.3),
|
|
104
|
+
8e3
|
|
105
|
+
);
|
|
106
|
+
} else if (recentLoad === "heavy") {
|
|
107
|
+
minTailTokens = Math.max(
|
|
108
|
+
Math.floor(safeWindowLimit * 0.25),
|
|
109
|
+
16e3
|
|
110
|
+
);
|
|
111
|
+
} else {
|
|
112
|
+
minTailTokens = Math.floor(safeWindowLimit * 0.2);
|
|
113
|
+
}
|
|
114
|
+
return { historyBudget, rawMessageBudget, minTailTokens };
|
|
115
|
+
};
|
|
116
|
+
|
|
52
117
|
export {
|
|
53
118
|
resolveToolOutputProfile,
|
|
54
119
|
resolveHistoricalToolContentCap,
|
|
55
120
|
projectToolMessageContent,
|
|
56
|
-
clipToolText
|
|
121
|
+
clipToolText,
|
|
122
|
+
planContextUsage
|
|
57
123
|
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G2BQWAVT.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BBJ22CLB.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XHQC4PXX.js";
|
|
22
22
|
import {
|
|
23
23
|
classifyApiError,
|
|
24
24
|
classifyGenerationError,
|
|
25
25
|
extractErrorDiagnostics
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TX5EYMGT.js";
|
|
27
27
|
import {
|
|
28
28
|
createSSEParser,
|
|
29
29
|
createToolRunId,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
toolRunSetPending,
|
|
33
33
|
toolRunStarted,
|
|
34
34
|
toolRunSucceeded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HUBHAQK2.js";
|
|
36
36
|
import {
|
|
37
37
|
getPublicImageAgentMode
|
|
38
38
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
toast,
|
|
44
44
|
toolResultNeedsUserConfirmation,
|
|
45
45
|
updateToolMessage
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ZXOUUDCG.js";
|
|
47
47
|
import {
|
|
48
48
|
streamAgentChatTurn
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-KFLT5KAD.js";
|
|
50
50
|
import {
|
|
51
51
|
getCurrentSpaceId
|
|
52
52
|
} from "./chunk-5XBUWM6I.js";
|
|
@@ -61,13 +61,13 @@ import {
|
|
|
61
61
|
} from "./chunk-YDH3FDFQ.js";
|
|
62
62
|
import {
|
|
63
63
|
selectCurrentServer
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-4I7ERB7F.js";
|
|
65
65
|
import {
|
|
66
66
|
write
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-FW6YHHLI.js";
|
|
68
68
|
import {
|
|
69
69
|
createAsyncThunk
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-P5L7CXOC.js";
|
|
71
71
|
import {
|
|
72
72
|
selectIdentityToken
|
|
73
73
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -90,13 +90,13 @@ import {
|
|
|
90
90
|
} from "./chunk-56GBUMO5.js";
|
|
91
91
|
import {
|
|
92
92
|
normalizeChatCompletionsBodyForProvider
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-H5HF7TJA.js";
|
|
94
94
|
import {
|
|
95
95
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-V5Y3R6BT.js";
|
|
97
97
|
import {
|
|
98
98
|
getModelInfo
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-7BT37FK3.js";
|
|
100
100
|
import {
|
|
101
101
|
isAbortError
|
|
102
102
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
} from "./chunk-KUG52IAP.js";
|
|
115
115
|
import {
|
|
116
116
|
toTrimmedString
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-JY5NGFFH.js";
|
|
118
118
|
import {
|
|
119
119
|
createDialogMessageKeyAndId,
|
|
120
120
|
dialogMessageKey
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
mergeAvailabilityDeadline,
|
|
3
3
|
resolveCredentialCandidateKeys,
|
|
4
4
|
resolveCredentialKeyWithFallback
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3UKL3HPD.js";
|
|
6
6
|
|
|
7
7
|
// packages/agent-runtime/credentialAvailability.ts
|
|
8
8
|
import { homedir } from "node:os";
|
|
@@ -56,8 +56,8 @@ function normalizeEntry(entry) {
|
|
|
56
56
|
const markedAt = typeof marked === "number" && Number.isFinite(marked) ? { markedAt: marked } : {};
|
|
57
57
|
if ("lastProbeAt" in entry) {
|
|
58
58
|
const probe = entry.lastProbeAt;
|
|
59
|
-
|
|
60
|
-
return { nextAvailableAt: at, ...markedAt,
|
|
59
|
+
const probeAt = typeof probe === "number" && Number.isFinite(probe) ? { lastProbeAt: probe } : {};
|
|
60
|
+
return { nextAvailableAt: at, ...markedAt, ...probeAt };
|
|
61
61
|
}
|
|
62
62
|
return { nextAvailableAt: at, ...markedAt };
|
|
63
63
|
}
|
|
@@ -164,21 +164,6 @@ async function clearCredentialAvailability(credentialKey, env = process.env, now
|
|
|
164
164
|
if (!changed) return;
|
|
165
165
|
await writeCredentialAvailability(live, env);
|
|
166
166
|
}
|
|
167
|
-
async function recordCredentialProbe(credentialKey, env = process.env, now = Date.now()) {
|
|
168
|
-
if (!credentialKey) return;
|
|
169
|
-
const live = await readCredentialEntries(env, now);
|
|
170
|
-
let targetKey = credentialKey;
|
|
171
|
-
if (!(targetKey in live)) {
|
|
172
|
-
const candidates = resolveCredentialCandidateKeys(credentialKey);
|
|
173
|
-
const found = candidates.find((k) => k in live);
|
|
174
|
-
if (!found) return;
|
|
175
|
-
targetKey = found;
|
|
176
|
-
}
|
|
177
|
-
const existing = live[targetKey];
|
|
178
|
-
if (!existing) return;
|
|
179
|
-
live[targetKey] = { ...existing, lastProbeAt: now };
|
|
180
|
-
await writeCredentialAvailability(live, env);
|
|
181
|
-
}
|
|
182
167
|
function applyCredentialAvailability(agents, credentialAvailability) {
|
|
183
168
|
if (Object.keys(credentialAvailability).length === 0) return agents;
|
|
184
169
|
return agents.map((agent) => {
|
|
@@ -204,6 +189,5 @@ export {
|
|
|
204
189
|
markCredentialUnavailable,
|
|
205
190
|
clearCredentialAvailabilityIfMarkedAt,
|
|
206
191
|
clearCredentialAvailability,
|
|
207
|
-
recordCredentialProbe,
|
|
208
192
|
applyCredentialAvailability
|
|
209
193
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAgentCallPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UHJGXRJ4.js";
|
|
4
4
|
import {
|
|
5
5
|
SUBSCRIPTION_OAUTH_PROVIDERS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KIM6CLW5.js";
|
|
7
7
|
import {
|
|
8
8
|
findModelConfig,
|
|
9
9
|
getProviderByModelName
|
|
10
10
|
} from "./chunk-SM3NSZJV.js";
|
|
11
|
-
import {
|
|
12
|
-
asOptionalTrimmedString
|
|
13
|
-
} from "./chunk-G3SUCT4W.js";
|
|
14
11
|
import {
|
|
15
12
|
asTrimmedLowercaseString
|
|
16
13
|
} from "./chunk-QSJ3HFEF.js";
|
|
14
|
+
import {
|
|
15
|
+
asOptionalTrimmedString
|
|
16
|
+
} from "./chunk-G3SUCT4W.js";
|
|
17
17
|
|
|
18
18
|
// packages/ai/llm/agentCapabilities.ts
|
|
19
19
|
var ANTIGRAVITY_EFFORT_SUFFIXES = [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolvePlatformAuthToken
|
|
3
|
+
} from "./chunk-TCZHTTUU.js";
|
|
1
4
|
import {
|
|
2
5
|
getCredentialsDir
|
|
3
6
|
} from "./chunk-G7Y4GXTY.js";
|
|
4
|
-
import {
|
|
5
|
-
resolvePlatformAuthToken
|
|
6
|
-
} from "./chunk-PV6JJAUB.js";
|
|
7
7
|
|
|
8
8
|
// packages/cli/client/authGuidance.ts
|
|
9
9
|
import { readdirSync } from "node:fs";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
isAgentSkillDisabled,
|
|
5
5
|
resolveAgentSkillConfig,
|
|
6
6
|
resolveUserEnabledSkills
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R5O4QAWG.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveBuiltinSkillEntry,
|
|
10
10
|
resolveBuiltinSkillPage,
|
|
11
11
|
resolveSkillGraphFromRoots
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WRYQ35LQ.js";
|
|
13
13
|
import {
|
|
14
14
|
parseSkillDocProtocol
|
|
15
15
|
} from "./chunk-AETZ7AD6.js";
|