nolo-cli 0.8.0-alpha.11 → 0.8.0-alpha.13
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-GPU2276G.js → _executeModel-EBU7YBDV.js} +26 -22
- package/{action-PAXRPJJF.js → action-SQGI5JY5.js} +5 -4
- package/{addContentAction-CZVWF3QZ.js → addContentAction-ZX2PUS3X.js} +4 -3
- package/{addDialogAgentAction-CCIDTPHC.js → addDialogAgentAction-ULADQX2Q.js} +3 -2
- package/{agentDeleteCommand-4ZZFM6AT.js → agentDeleteCommand-GNVYHOGZ.js} +11 -8
- package/{agentEmailCommands-C4FIVQYV.js → agentEmailCommands-IC52LATA.js} +29 -25
- package/{agentListCommands-VQAKVNEX.js → agentListCommands-FM4OWXYT.js} +12 -9
- package/{agentMachineCommands-ONFDXZUQ.js → agentMachineCommands-SFWC6KN4.js} +11 -8
- package/{agentRecordCommands-QANUGHLK.js → agentRecordCommands-VLMLWLCM.js} +29 -25
- package/{agentRunCommand-A3OSRB5Q.js → agentRunCommand-D2PVHUGR.js} +30 -25
- package/{agentRuntimeLocal-62ZB2ODP.js → agentRuntimeLocal-XL5PLRJV.js} +16 -12
- package/{agentSlice-GCGLVR2N.js → agentSlice-IIC7AISR.js} +5 -4
- package/{chunk-YOUZDXU7.js → chunk-3N55DSXH.js} +21 -17
- package/chunk-4ZDM73SD.js +34 -0
- package/{chunk-TDIQFT2F.js → chunk-5CS33IBL.js} +1 -1
- package/{chunk-IYQV26RA.js → chunk-6A3LI5TZ.js} +2 -2
- package/{chunk-VEJLAVTC.js → chunk-6CBN7GGH.js} +2 -2
- package/{chunk-BSTNFPHD.js → chunk-6XKX2N2E.js} +1 -1
- package/{chunk-7OC5VCLW.js → chunk-7EPLXPTM.js} +4 -4
- package/{chunk-GCMRDRCQ.js → chunk-7IPLJUYC.js} +1 -1
- package/{chunk-53DNV5AT.js → chunk-7U4TQSWU.js} +3 -3
- package/{chunk-GGUO4FKF.js → chunk-7XN726FS.js} +41 -19
- package/{chunk-I3D64LRJ.js → chunk-BKPVTIEK.js} +4 -4
- package/{chunk-7YLKNMOM.js → chunk-DAB7DRXD.js} +6 -6
- package/{chunk-LM25IZBJ.js → chunk-DG7AAAR3.js} +1 -1
- package/{chunk-F6QQI5YI.js → chunk-DGFWICQJ.js} +1 -1
- package/chunk-DSNONPGW.js +386 -0
- package/{chunk-LAWBMYBC.js → chunk-FE2TZO7Z.js} +2 -2
- package/{chunk-R2HXWML7.js → chunk-HLM6MG7F.js} +19 -20
- package/chunk-I42VC5KR.js +15 -0
- package/{chunk-J5KV47ZW.js → chunk-IBJC3GOP.js} +2 -2
- package/chunk-JEXVIMYZ.js +55 -0
- package/{chunk-6B7G54GE.js → chunk-KH4OXCBK.js} +5 -5
- package/{chunk-SYOF5TAS.js → chunk-MXLQWBVM.js} +36 -95
- package/chunk-OPZYGHUC.js +89 -0
- package/{chunk-J4576WMJ.js → chunk-PCWC3JTN.js} +1 -1
- package/{chunk-HEIIIZBX.js → chunk-Q2YZULBH.js} +1 -1
- package/{chunk-KB7YFGL6.js → chunk-Q3K5K4KS.js} +1 -1
- package/{chunk-IAXBCTTE.js → chunk-QO4YO77G.js} +2 -2
- package/{chunk-GGXABIPP.js → chunk-RJKDVL4L.js} +2 -2
- package/{chunk-CJH2VTEU.js → chunk-RLCFUU46.js} +3 -3
- package/{chunk-2UZXR7WO.js → chunk-SACYB45H.js} +19 -378
- package/{chunk-PN7AFLOK.js → chunk-SH2CFQOH.js} +3 -13
- package/{chunk-XBIUN5CR.js → chunk-TWPGVS2U.js} +2 -2
- package/{chunk-G5H7RNFL.js → chunk-V2AISYMA.js} +2 -2
- package/{chunk-TZNCFAUP.js → chunk-XOH46MRF.js} +8 -15
- package/{chunk-CQAHS7YO.js → chunk-YDESHYQC.js} +56 -12
- package/{chunk-AUGHVUFE.js → chunk-YYUCRDOK.js} +1 -1
- package/{chunk-H2RMRZJE.js → chunk-ZDXZSXYQ.js} +1 -1
- package/{chunk-NXZGF7F7.js → chunk-ZQ2UM4KG.js} +1 -1
- package/{chunk-QR5IPGT3.js → chunk-ZRS4MX3R.js} +170 -176
- package/{createAgentAutomationAction-537X433B.js → createAgentAutomationAction-GNRYFKTT.js} +12 -10
- package/{createDialogAction-YUD4RKBS.js → createDialogAction-Q4ISCARO.js} +15 -13
- package/{createPageAction-KJMFHL4C.js → createPageAction-7YCAZPK3.js} +13 -11
- package/{dbSlice-C4UJLRZP.js → dbSlice-TO2TSMWM.js} +3 -2
- package/{dialogCommands-H74KJKHC.js → dialogCommands-DWSE4PMW.js} +13 -10
- package/{dialogSlice-ETSD4YWS.js → dialogSlice-5KZA46HM.js} +12 -10
- package/{docCreateCommands-ADUSU34K.js → docCreateCommands-UFJL5PUM.js} +12 -9
- package/{docDeleteCommands-ZXV3S5OS.js → docDeleteCommands-XHEIBAB2.js} +13 -10
- package/{docReadCommands-YYYI6LT7.js → docReadCommands-PEDIC2CW.js} +12 -9
- package/{docStore-ZBF5DDKR.js → docStore-M7K7QFVS.js} +13 -11
- package/{docUpdateCommands-7MGJ3BYA.js → docUpdateCommands-WBRODQ7P.js} +12 -9
- package/{fetchMessages-JOCYIFKL.js → fetchMessages-U6ZHN56A.js} +3 -2
- package/{handleSendMessageAction-MGKI62Y6.js → handleSendMessageAction-SEV4YIPL.js} +12 -10
- package/index.js +40 -36
- package/{localDialogRead-D3BELSTF.js → localDialogRead-Z5UTAJPU.js} +1 -1
- package/{machineCommands-RMTMN7VQ.js → machineCommands-T4DN3MOU.js} +28 -24
- package/{machineWsRunDispatch-UIP355FN.js → machineWsRunDispatch-QRIIT2AK.js} +28 -24
- package/package.json +1 -1
- package/{readlineWorkspace-CRNQRZ6D.js → readlineWorkspace-DXOTOVHL.js} +163 -31
- package/{removeDialogAgentAction-CXLST3N6.js → removeDialogAgentAction-3MUQGFZX.js} +5 -4
- package/{runAgentClientLoop-2S334SGA.js → runAgentClientLoop-UEQEP3XG.js} +21 -19
- package/{setDialogExtraReferencesAction-LP6VYGU7.js → setDialogExtraReferencesAction-MXHX2HPK.js} +3 -2
- package/{setPrimaryDialogAgentAction-D3GGH23T.js → setPrimaryDialogAgentAction-7DLDZHDT.js} +5 -4
- package/{settingSlice-J4I3Z5H7.js → settingSlice-PNLASZGI.js} +4 -3
- package/{spaceCommands-NDEWMFZJ.js → spaceCommands-ORSFAWEY.js} +11 -8
- package/{spaceSlice-RLB6RTHO.js → spaceSlice-HOMW64JA.js} +12 -10
- package/{streamAgentChatTurn-Y2TTYPBD.js → streamAgentChatTurn-REWDBIL3.js} +28 -26
- package/{tools-YZYLY2ZQ.js → tools-L4UQS5VW.js} +19 -17
- package/tuiSummaryLlmCaller-JSI4GL6W.js +78 -0
- package/{understanding-HCSFPE7R.js → understanding-YH4X3XU6.js} +3 -2
- package/{updateDialogTitleAction-LQV6QLBW.js → updateDialogTitleAction-CKLNP73H.js} +14 -11
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
normalizeDialogRecord,
|
|
4
4
|
readDialogSnapshot,
|
|
5
5
|
sortDialogs
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BKPVTIEK.js";
|
|
7
7
|
import {
|
|
8
8
|
CLI_AUTO_TIER_AGENT_KEY_TABLE,
|
|
9
9
|
CLI_IMAGE_AGENT_KEY,
|
|
@@ -37,65 +37,72 @@ import {
|
|
|
37
37
|
t,
|
|
38
38
|
themeColorSequence,
|
|
39
39
|
themeText
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YDESHYQC.js";
|
|
41
41
|
import "./chunk-2FTTDCD4.js";
|
|
42
42
|
import {
|
|
43
43
|
listFavoriteAgentIdsAcrossServers,
|
|
44
44
|
listLocalCachedAgents,
|
|
45
45
|
listRemoteAgents,
|
|
46
46
|
listRemoteAgentsAcrossServers
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TWPGVS2U.js";
|
|
48
48
|
import "./chunk-4CQLVGRV.js";
|
|
49
49
|
import "./chunk-DZ3XJVET.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-3N55DSXH.js";
|
|
51
51
|
import "./chunk-EHLHSX7R.js";
|
|
52
52
|
import {
|
|
53
53
|
listUserRecordsFromServers
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-7IPLJUYC.js";
|
|
55
55
|
import {
|
|
56
56
|
getReadableCliDb
|
|
57
57
|
} from "./chunk-W4NVOSFF.js";
|
|
58
58
|
import {
|
|
59
59
|
queryUserRecords,
|
|
60
60
|
readDbRecord
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-RJKDVL4L.js";
|
|
62
|
+
import "./chunk-DGFWICQJ.js";
|
|
63
63
|
import {
|
|
64
64
|
resolveCliAgentKeyInput
|
|
65
65
|
} from "./chunk-VHBWHNVT.js";
|
|
66
66
|
import "./chunk-CM54RSSA.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-6XKX2N2E.js";
|
|
68
68
|
import "./chunk-X7W4TNB4.js";
|
|
69
69
|
import "./chunk-ATNTHIZI.js";
|
|
70
70
|
import "./chunk-JBTJAPUF.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-JEXVIMYZ.js";
|
|
72
|
+
import "./chunk-FE2TZO7Z.js";
|
|
72
73
|
import "./chunk-KKY4B2Q2.js";
|
|
73
74
|
import "./chunk-2MALU52L.js";
|
|
74
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-7XN726FS.js";
|
|
75
76
|
import "./chunk-GAKEBQD6.js";
|
|
76
77
|
import "./chunk-KQHGZWSV.js";
|
|
77
78
|
import "./chunk-XKIMRZO2.js";
|
|
78
79
|
import "./chunk-3LY4F7SV.js";
|
|
79
80
|
import "./chunk-VP4WJWKW.js";
|
|
80
81
|
import "./chunk-63W5N6P3.js";
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-7U4TQSWU.js";
|
|
83
|
+
import "./chunk-7EPLXPTM.js";
|
|
84
|
+
import "./chunk-ZQ2UM4KG.js";
|
|
84
85
|
import "./chunk-OWOHNGCN.js";
|
|
85
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-Q2YZULBH.js";
|
|
86
87
|
import {
|
|
88
|
+
DEFAULT_CONTEXT_WINDOW,
|
|
89
|
+
extractReferenceKeysFromMessage,
|
|
87
90
|
getModelContextWindow,
|
|
91
|
+
planCompression,
|
|
88
92
|
serializeMessageContent
|
|
89
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-ZRS4MX3R.js";
|
|
94
|
+
import {
|
|
95
|
+
buildBuiltinSummaryContent
|
|
96
|
+
} from "./chunk-4ZDM73SD.js";
|
|
90
97
|
import "./chunk-MRC4Q34M.js";
|
|
91
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-PCWC3JTN.js";
|
|
92
99
|
import "./chunk-CWMSB67P.js";
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-DAB7DRXD.js";
|
|
101
|
+
import "./chunk-6A3LI5TZ.js";
|
|
95
102
|
import "./chunk-Z4NR32XR.js";
|
|
96
103
|
import "./chunk-M76ECQRD.js";
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-YYUCRDOK.js";
|
|
105
|
+
import "./chunk-ZDXZSXYQ.js";
|
|
99
106
|
import "./chunk-UAD2WT54.js";
|
|
100
107
|
import "./chunk-USZMK5UT.js";
|
|
101
108
|
import {
|
|
@@ -120,20 +127,22 @@ import {
|
|
|
120
127
|
} from "./chunk-OLZBQWZU.js";
|
|
121
128
|
import {
|
|
122
129
|
getProcessRegistry
|
|
123
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-SACYB45H.js";
|
|
131
|
+
import "./chunk-DSNONPGW.js";
|
|
124
132
|
import "./chunk-ZNFJWEN4.js";
|
|
125
133
|
import "./chunk-TILFE6LV.js";
|
|
126
134
|
import {
|
|
127
135
|
readCommandActionGatePayload,
|
|
128
136
|
resolveAgentImageInputSupport
|
|
129
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-MXLQWBVM.js";
|
|
138
|
+
import "./chunk-OPZYGHUC.js";
|
|
130
139
|
import "./chunk-XDVAYP26.js";
|
|
131
|
-
import "./chunk-
|
|
140
|
+
import "./chunk-DG7AAAR3.js";
|
|
132
141
|
import {
|
|
133
142
|
clipCompactText
|
|
134
143
|
} from "./chunk-5MMAK75Q.js";
|
|
135
144
|
import "./chunk-572EKYLF.js";
|
|
136
|
-
import "./chunk-
|
|
145
|
+
import "./chunk-5CS33IBL.js";
|
|
137
146
|
import "./chunk-JZPBVBIY.js";
|
|
138
147
|
import "./chunk-BR2WP3DF.js";
|
|
139
148
|
import "./chunk-5MIDPSSK.js";
|
|
@@ -149,16 +158,17 @@ import {
|
|
|
149
158
|
} from "./chunk-HNMXYYJR.js";
|
|
150
159
|
import "./chunk-H33743XH.js";
|
|
151
160
|
import "./chunk-LM6IYQ3F.js";
|
|
152
|
-
import "./chunk-
|
|
153
|
-
import "./chunk-
|
|
161
|
+
import "./chunk-QO4YO77G.js";
|
|
162
|
+
import "./chunk-6CBN7GGH.js";
|
|
154
163
|
import "./chunk-Y5GCAMGP.js";
|
|
155
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-V2AISYMA.js";
|
|
156
165
|
import "./chunk-AZPCASRE.js";
|
|
157
166
|
import "./chunk-2EISRLRC.js";
|
|
158
167
|
import "./chunk-KX6YBIHG.js";
|
|
159
168
|
import {
|
|
160
169
|
require_index_umd
|
|
161
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-SH2CFQOH.js";
|
|
171
|
+
import "./chunk-I42VC5KR.js";
|
|
162
172
|
import "./chunk-WWC7I6TA.js";
|
|
163
173
|
import {
|
|
164
174
|
asTrimmedLowercaseString
|
|
@@ -212,6 +222,35 @@ async function readDialogRecord(fetchImpl, serverUrl, authToken, dialogKey) {
|
|
|
212
222
|
const data = await res.json();
|
|
213
223
|
return data;
|
|
214
224
|
}
|
|
225
|
+
async function readDialogMessages(fetchImpl, serverUrl, authToken, dialogId) {
|
|
226
|
+
const res = await fetchImpl(`${serverUrl}/api/dialog-read`, {
|
|
227
|
+
method: "POST",
|
|
228
|
+
headers: {
|
|
229
|
+
"Content-Type": "application/json",
|
|
230
|
+
Authorization: `Bearer ${authToken}`
|
|
231
|
+
},
|
|
232
|
+
body: JSON.stringify({ dialogId, limit: 0 })
|
|
233
|
+
});
|
|
234
|
+
if (!res.ok) {
|
|
235
|
+
console.warn(`[nolo] compact: dialog-read failed: HTTP ${res.status}`);
|
|
236
|
+
return [];
|
|
237
|
+
}
|
|
238
|
+
const data = await res.json();
|
|
239
|
+
return Array.isArray(data?.msgs) ? data.msgs : [];
|
|
240
|
+
}
|
|
241
|
+
async function patchDialog(fetchImpl, serverUrl, authToken, dialogKey, changes) {
|
|
242
|
+
const res = await fetchImpl(`${serverUrl}${DB_PATH}/patch/${dialogKey}`, {
|
|
243
|
+
method: "PATCH",
|
|
244
|
+
headers: {
|
|
245
|
+
"Content-Type": "application/json",
|
|
246
|
+
Authorization: `Bearer ${authToken}`
|
|
247
|
+
},
|
|
248
|
+
body: JSON.stringify({ data: changes })
|
|
249
|
+
});
|
|
250
|
+
if (!res.ok) {
|
|
251
|
+
throw new Error(`Failed to patch dialog "${dialogKey}": HTTP ${res.status}`);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
215
254
|
var FORKED_CARRY_FIELDS = [
|
|
216
255
|
"cybots",
|
|
217
256
|
"type",
|
|
@@ -222,7 +261,12 @@ var FORKED_CARRY_FIELDS = [
|
|
|
222
261
|
"triggerType",
|
|
223
262
|
"schedule",
|
|
224
263
|
"taskPrompt",
|
|
225
|
-
"executionMode"
|
|
264
|
+
"executionMode",
|
|
265
|
+
// Compression state — inherited so the forked dialog continues with
|
|
266
|
+
// the compressed context rather than starting clean.
|
|
267
|
+
"summary",
|
|
268
|
+
"summarizedBeforeId",
|
|
269
|
+
"compressionCount"
|
|
226
270
|
];
|
|
227
271
|
function buildForkedDialogRecord(current, userId) {
|
|
228
272
|
const newId = (0, import_ulid.ulid)();
|
|
@@ -295,6 +339,27 @@ async function addDialogToSpaceIfNeeded(fetchImpl, serverUrl, authToken, record)
|
|
|
295
339
|
console.warn(`[nolo] compact: addDialogToSpace error: ${error}`);
|
|
296
340
|
}
|
|
297
341
|
}
|
|
342
|
+
function formatMessagesForSummary(msgs) {
|
|
343
|
+
return msgs.map((m) => {
|
|
344
|
+
const content = serializeMessageContent(m.content) || "[\u975E\u6587\u672C\u5185\u5BB9]";
|
|
345
|
+
return `${m.role}: ${content}`;
|
|
346
|
+
}).join("\n");
|
|
347
|
+
}
|
|
348
|
+
async function resolveContextWindow(fetchImpl, serverUrl, authToken, agentKey) {
|
|
349
|
+
if (!agentKey) return DEFAULT_CONTEXT_WINDOW;
|
|
350
|
+
try {
|
|
351
|
+
const res = await fetchImpl(`${serverUrl}${DB_PATH}/read/${agentKey}`, {
|
|
352
|
+
headers: { Authorization: `Bearer ${authToken}` }
|
|
353
|
+
});
|
|
354
|
+
if (!res.ok) return DEFAULT_CONTEXT_WINDOW;
|
|
355
|
+
const agent = await res.json();
|
|
356
|
+
if (agent?.model) {
|
|
357
|
+
return getModelContextWindow(agent.model) || DEFAULT_CONTEXT_WINDOW;
|
|
358
|
+
}
|
|
359
|
+
} catch {
|
|
360
|
+
}
|
|
361
|
+
return DEFAULT_CONTEXT_WINDOW;
|
|
362
|
+
}
|
|
298
363
|
async function compactDialog(options) {
|
|
299
364
|
const fetchImpl = options.fetchImpl ?? fetch;
|
|
300
365
|
const userId = parseTokenUserId(options.authToken);
|
|
@@ -310,6 +375,71 @@ async function compactDialog(options) {
|
|
|
310
375
|
options.authToken,
|
|
311
376
|
dialogKey
|
|
312
377
|
);
|
|
378
|
+
let summaryGenerated = false;
|
|
379
|
+
if (options.summaryLlmCaller) {
|
|
380
|
+
const allMsgs = await readDialogMessages(
|
|
381
|
+
fetchImpl,
|
|
382
|
+
options.serverUrl,
|
|
383
|
+
options.authToken,
|
|
384
|
+
options.dialogId
|
|
385
|
+
);
|
|
386
|
+
if (allMsgs.length > 0) {
|
|
387
|
+
const agentKey = Array.isArray(current.cybots) && current.cybots.length > 0 ? current.cybots[0] : void 0;
|
|
388
|
+
const contextWindow = await resolveContextWindow(
|
|
389
|
+
fetchImpl,
|
|
390
|
+
options.serverUrl,
|
|
391
|
+
options.authToken,
|
|
392
|
+
agentKey
|
|
393
|
+
);
|
|
394
|
+
const plan = planCompression({
|
|
395
|
+
allMsgs,
|
|
396
|
+
summarizedBeforeId: current.summarizedBeforeId,
|
|
397
|
+
summary: current.summary || "",
|
|
398
|
+
contextWindow,
|
|
399
|
+
force: true,
|
|
400
|
+
reason: "manual"
|
|
401
|
+
});
|
|
402
|
+
if (plan.shouldCompress && plan.msgsToCompress.length > 0) {
|
|
403
|
+
const previousSummary = current.summary || "";
|
|
404
|
+
const messagesText = formatMessagesForSummary(plan.msgsToCompress);
|
|
405
|
+
const promptContent = buildBuiltinSummaryContent(
|
|
406
|
+
previousSummary,
|
|
407
|
+
messagesText
|
|
408
|
+
);
|
|
409
|
+
try {
|
|
410
|
+
const newSummary = await options.summaryLlmCaller(promptContent);
|
|
411
|
+
if (newSummary && newSummary.trim()) {
|
|
412
|
+
const compressionCount = current.compressionCount || 0;
|
|
413
|
+
const extractedKeys = new Set(
|
|
414
|
+
Array.isArray(current.referenceKeys) ? current.referenceKeys : []
|
|
415
|
+
);
|
|
416
|
+
for (const msg of plan.msgsToCompress) {
|
|
417
|
+
for (const key of extractReferenceKeysFromMessage(msg)) {
|
|
418
|
+
extractedKeys.add(key);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
await patchDialog(fetchImpl, options.serverUrl, options.authToken, dialogKey, {
|
|
422
|
+
summary: newSummary.trim(),
|
|
423
|
+
summarizedBeforeId: plan.newSummarizedBeforeId,
|
|
424
|
+
compressionCount: compressionCount + 1,
|
|
425
|
+
referenceKeys: Array.from(extractedKeys),
|
|
426
|
+
summaryPending: false
|
|
427
|
+
});
|
|
428
|
+
current.summary = newSummary.trim();
|
|
429
|
+
current.summarizedBeforeId = plan.newSummarizedBeforeId;
|
|
430
|
+
current.compressionCount = compressionCount + 1;
|
|
431
|
+
current.referenceKeys = Array.from(extractedKeys);
|
|
432
|
+
summaryGenerated = true;
|
|
433
|
+
console.log(
|
|
434
|
+
`[nolo] compact: compressed ${plan.compressCount} messages into summary (len: ${newSummary.trim().length})`
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
} catch (error) {
|
|
438
|
+
console.warn(`[nolo] compact: summary generation failed: ${error}`);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
313
443
|
const next = buildForkedDialogRecord(current, userId);
|
|
314
444
|
await writeDialogRecord(fetchImpl, options.serverUrl, options.authToken, next);
|
|
315
445
|
await addDialogToSpaceIfNeeded(
|
|
@@ -321,7 +451,8 @@ async function compactDialog(options) {
|
|
|
321
451
|
return {
|
|
322
452
|
dialogId: extractCustomId(next.dbKey),
|
|
323
453
|
dialogKey: next.dbKey,
|
|
324
|
-
spaceId: typeof next.spaceId === "string" ? next.spaceId : void 0
|
|
454
|
+
spaceId: typeof next.spaceId === "string" ? next.spaceId : void 0,
|
|
455
|
+
summaryGenerated
|
|
325
456
|
};
|
|
326
457
|
}
|
|
327
458
|
|
|
@@ -4716,7 +4847,8 @@ ${t("copyViewHint")}
|
|
|
4716
4847
|
const compactResult = await runner({
|
|
4717
4848
|
serverUrl: state.serverUrl,
|
|
4718
4849
|
authToken,
|
|
4719
|
-
dialogId: result.action.dialogId
|
|
4850
|
+
dialogId: result.action.dialogId,
|
|
4851
|
+
summaryLlmCaller: options.summaryLlmCaller
|
|
4720
4852
|
});
|
|
4721
4853
|
state = {
|
|
4722
4854
|
...state,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanupCliSessionForDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6A3LI5TZ.js";
|
|
4
4
|
import {
|
|
5
5
|
getPrimaryDialogAgentId,
|
|
6
6
|
removeDialogAgentId
|
|
@@ -11,16 +11,17 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
getActiveDialogKey
|
|
13
13
|
} from "./chunk-3ASDTTEI.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-6CBN7GGH.js";
|
|
15
15
|
import "./chunk-Y5GCAMGP.js";
|
|
16
16
|
import {
|
|
17
17
|
patch,
|
|
18
18
|
selectById
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-V2AISYMA.js";
|
|
20
20
|
import "./chunk-AZPCASRE.js";
|
|
21
21
|
import "./chunk-2EISRLRC.js";
|
|
22
22
|
import "./chunk-KX6YBIHG.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-SH2CFQOH.js";
|
|
24
|
+
import "./chunk-I42VC5KR.js";
|
|
24
25
|
import "./chunk-WWC7I6TA.js";
|
|
25
26
|
import "./chunk-QSJ3HFEF.js";
|
|
26
27
|
import "./chunk-ELRRLDWI.js";
|
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAgentContexts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q3K5K4KS.js";
|
|
4
4
|
import {
|
|
5
5
|
generateRequestBody,
|
|
6
6
|
mergeReferences,
|
|
7
7
|
performFetchRequest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XOH46MRF.js";
|
|
9
9
|
import "./chunk-KKY4B2Q2.js";
|
|
10
10
|
import "./chunk-2MALU52L.js";
|
|
11
11
|
import {
|
|
12
12
|
findToolExecutor,
|
|
13
13
|
getToolResultErrorData
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7XN726FS.js";
|
|
15
15
|
import "./chunk-GAKEBQD6.js";
|
|
16
16
|
import "./chunk-KQHGZWSV.js";
|
|
17
17
|
import "./chunk-XKIMRZO2.js";
|
|
18
18
|
import "./chunk-3LY4F7SV.js";
|
|
19
19
|
import "./chunk-VP4WJWKW.js";
|
|
20
20
|
import "./chunk-63W5N6P3.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-7U4TQSWU.js";
|
|
22
|
+
import "./chunk-7EPLXPTM.js";
|
|
23
|
+
import "./chunk-ZQ2UM4KG.js";
|
|
24
|
+
import "./chunk-Q2YZULBH.js";
|
|
25
25
|
import {
|
|
26
26
|
updateTokensAction
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZRS4MX3R.js";
|
|
28
|
+
import "./chunk-4ZDM73SD.js";
|
|
28
29
|
import "./chunk-MRC4Q34M.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-PCWC3JTN.js";
|
|
30
31
|
import "./chunk-CWMSB67P.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-DAB7DRXD.js";
|
|
33
|
+
import "./chunk-6A3LI5TZ.js";
|
|
33
34
|
import "./chunk-Z4NR32XR.js";
|
|
34
35
|
import "./chunk-M76ECQRD.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-YYUCRDOK.js";
|
|
37
|
+
import "./chunk-ZDXZSXYQ.js";
|
|
37
38
|
import "./chunk-UAD2WT54.js";
|
|
38
39
|
import "./chunk-USZMK5UT.js";
|
|
39
40
|
import "./chunk-XDVAYP26.js";
|
|
40
41
|
import {
|
|
41
42
|
canonicalizeToolName
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DG7AAAR3.js";
|
|
43
44
|
import "./chunk-5MMAK75Q.js";
|
|
44
45
|
import {
|
|
45
46
|
getApiEndpoint
|
|
46
47
|
} from "./chunk-572EKYLF.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-5CS33IBL.js";
|
|
48
49
|
import "./chunk-JZPBVBIY.js";
|
|
49
50
|
import "./chunk-BR2WP3DF.js";
|
|
50
51
|
import "./chunk-5MIDPSSK.js";
|
|
@@ -54,18 +55,19 @@ import {
|
|
|
54
55
|
import "./chunk-3ASDTTEI.js";
|
|
55
56
|
import "./chunk-DWLEOOGR.js";
|
|
56
57
|
import "./chunk-HNMXYYJR.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-QO4YO77G.js";
|
|
58
59
|
import {
|
|
59
60
|
selectCurrentServer
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-6CBN7GGH.js";
|
|
61
62
|
import "./chunk-Y5GCAMGP.js";
|
|
62
63
|
import {
|
|
63
64
|
read
|
|
64
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-V2AISYMA.js";
|
|
65
66
|
import "./chunk-AZPCASRE.js";
|
|
66
67
|
import "./chunk-2EISRLRC.js";
|
|
67
68
|
import "./chunk-KX6YBIHG.js";
|
|
68
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-SH2CFQOH.js";
|
|
70
|
+
import "./chunk-I42VC5KR.js";
|
|
69
71
|
import "./chunk-WWC7I6TA.js";
|
|
70
72
|
import "./chunk-QSJ3HFEF.js";
|
|
71
73
|
import "./chunk-ELRRLDWI.js";
|
package/{setDialogExtraReferencesAction-LP6VYGU7.js → setDialogExtraReferencesAction-MXHX2HPK.js}
RENAMED
|
@@ -7,10 +7,11 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
patch,
|
|
9
9
|
selectById
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V2AISYMA.js";
|
|
11
11
|
import "./chunk-AZPCASRE.js";
|
|
12
12
|
import "./chunk-2EISRLRC.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-SH2CFQOH.js";
|
|
14
|
+
import "./chunk-I42VC5KR.js";
|
|
14
15
|
import "./chunk-WWC7I6TA.js";
|
|
15
16
|
import "./chunk-QSJ3HFEF.js";
|
|
16
17
|
import "./chunk-ELRRLDWI.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanupCliSessionForDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6A3LI5TZ.js";
|
|
4
4
|
import {
|
|
5
5
|
getPrimaryDialogAgentId,
|
|
6
6
|
replacePrimaryDialogAgentId
|
|
@@ -11,16 +11,17 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
getActiveDialogKey
|
|
13
13
|
} from "./chunk-3ASDTTEI.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-6CBN7GGH.js";
|
|
15
15
|
import "./chunk-Y5GCAMGP.js";
|
|
16
16
|
import {
|
|
17
17
|
patch,
|
|
18
18
|
selectById
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-V2AISYMA.js";
|
|
20
20
|
import "./chunk-AZPCASRE.js";
|
|
21
21
|
import "./chunk-2EISRLRC.js";
|
|
22
22
|
import "./chunk-KX6YBIHG.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-SH2CFQOH.js";
|
|
24
|
+
import "./chunk-I42VC5KR.js";
|
|
24
25
|
import "./chunk-WWC7I6TA.js";
|
|
25
26
|
import "./chunk-QSJ3HFEF.js";
|
|
26
27
|
import "./chunk-ELRRLDWI.js";
|
|
@@ -86,13 +86,14 @@ import {
|
|
|
86
86
|
toggleEditorWordCount,
|
|
87
87
|
toggleEnableReadCurrentSpace,
|
|
88
88
|
toggleShowThinking
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-6CBN7GGH.js";
|
|
90
90
|
import "./chunk-Y5GCAMGP.js";
|
|
91
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-V2AISYMA.js";
|
|
92
92
|
import "./chunk-AZPCASRE.js";
|
|
93
93
|
import "./chunk-2EISRLRC.js";
|
|
94
94
|
import "./chunk-KX6YBIHG.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-SH2CFQOH.js";
|
|
96
|
+
import "./chunk-I42VC5KR.js";
|
|
96
97
|
import "./chunk-WWC7I6TA.js";
|
|
97
98
|
import "./chunk-QSJ3HFEF.js";
|
|
98
99
|
import "./chunk-ELRRLDWI.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readLiveDbRecordAfterTombstoneMerge
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7IPLJUYC.js";
|
|
4
4
|
import {
|
|
5
5
|
readDbRecord,
|
|
6
6
|
writeAgentRecord
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-RJKDVL4L.js";
|
|
8
|
+
import "./chunk-DGFWICQJ.js";
|
|
9
9
|
import "./chunk-VHBWHNVT.js";
|
|
10
10
|
import "./chunk-KQHGZWSV.js";
|
|
11
11
|
import {
|
|
@@ -24,15 +24,17 @@ import {
|
|
|
24
24
|
resolveServerUrl
|
|
25
25
|
} from "./chunk-ISNCLGUZ.js";
|
|
26
26
|
import "./chunk-OLZBQWZU.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-SACYB45H.js";
|
|
28
|
+
import "./chunk-DSNONPGW.js";
|
|
28
29
|
import "./chunk-ZNFJWEN4.js";
|
|
29
30
|
import "./chunk-TILFE6LV.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-MXLQWBVM.js";
|
|
32
|
+
import "./chunk-OPZYGHUC.js";
|
|
31
33
|
import "./chunk-XDVAYP26.js";
|
|
32
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-DG7AAAR3.js";
|
|
33
35
|
import "./chunk-5MMAK75Q.js";
|
|
34
36
|
import "./chunk-572EKYLF.js";
|
|
35
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-5CS33IBL.js";
|
|
36
38
|
import "./chunk-JZPBVBIY.js";
|
|
37
39
|
import "./chunk-BR2WP3DF.js";
|
|
38
40
|
import "./chunk-DWLEOOGR.js";
|
|
@@ -43,7 +45,8 @@ import {
|
|
|
43
45
|
import "./chunk-KX6YBIHG.js";
|
|
44
46
|
import {
|
|
45
47
|
require_index_umd
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-SH2CFQOH.js";
|
|
49
|
+
import "./chunk-I42VC5KR.js";
|
|
47
50
|
import "./chunk-WWC7I6TA.js";
|
|
48
51
|
import "./chunk-QSJ3HFEF.js";
|
|
49
52
|
import "./chunk-GBRG75BQ.js";
|
|
@@ -49,34 +49,36 @@ import {
|
|
|
49
49
|
updateContentTitle,
|
|
50
50
|
updateSpace,
|
|
51
51
|
uploadAndAddFileToSpace
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-ZRS4MX3R.js";
|
|
53
|
+
import "./chunk-4ZDM73SD.js";
|
|
53
54
|
import "./chunk-MRC4Q34M.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-PCWC3JTN.js";
|
|
55
56
|
import "./chunk-CWMSB67P.js";
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-DAB7DRXD.js";
|
|
58
|
+
import "./chunk-6A3LI5TZ.js";
|
|
58
59
|
import "./chunk-Z4NR32XR.js";
|
|
59
60
|
import "./chunk-M76ECQRD.js";
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-YYUCRDOK.js";
|
|
62
|
+
import "./chunk-ZDXZSXYQ.js";
|
|
62
63
|
import "./chunk-UAD2WT54.js";
|
|
63
64
|
import "./chunk-USZMK5UT.js";
|
|
64
65
|
import "./chunk-5MMAK75Q.js";
|
|
65
66
|
import "./chunk-572EKYLF.js";
|
|
66
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-5CS33IBL.js";
|
|
67
68
|
import "./chunk-JZPBVBIY.js";
|
|
68
69
|
import "./chunk-BR2WP3DF.js";
|
|
69
70
|
import "./chunk-DFFIZ25G.js";
|
|
70
71
|
import "./chunk-3ASDTTEI.js";
|
|
71
72
|
import "./chunk-DWLEOOGR.js";
|
|
72
73
|
import "./chunk-HNMXYYJR.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-6CBN7GGH.js";
|
|
74
75
|
import "./chunk-Y5GCAMGP.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-V2AISYMA.js";
|
|
76
77
|
import "./chunk-AZPCASRE.js";
|
|
77
78
|
import "./chunk-2EISRLRC.js";
|
|
78
79
|
import "./chunk-KX6YBIHG.js";
|
|
79
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-SH2CFQOH.js";
|
|
81
|
+
import "./chunk-I42VC5KR.js";
|
|
80
82
|
import "./chunk-WWC7I6TA.js";
|
|
81
83
|
import "./chunk-QSJ3HFEF.js";
|
|
82
84
|
import "./chunk-ELRRLDWI.js";
|