nolo-cli 0.102.1 → 0.102.3
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-WLFACVFR.js → _executeModel-TOH473HN.js} +32 -32
- package/{action-PNPQLJHG.js → action-C4KMTCJF.js} +2 -2
- package/{addContentAction-RBOUD7SJ.js → addContentAction-7TNIOVZI.js} +6 -6
- package/{addDialogAgentAction-IODCR6TB.js → addDialogAgentAction-O47J3MVW.js} +5 -5
- package/{agentDeleteCommand-XHHDYJ3U.js → agentDeleteCommand-3EV2EOUI.js} +38 -38
- package/{agentEmailCommands-GJ2TE3CV.js → agentEmailCommands-V2V54ZIH.js} +38 -38
- package/{agentListCommands-B3YHJQNM.js → agentListCommands-SRRN3TCW.js} +21 -21
- package/{agentMachineCommands-KQLRJF5O.js → agentMachineCommands-JYJMU27G.js} +19 -19
- package/{agentRecordCommands-LXDIXYQM.js → agentRecordCommands-KQMZLZHW.js} +38 -38
- package/{agentRunCommand-P2KLVSYL.js → agentRunCommand-IWKQO47Q.js} +38 -38
- package/{agentRuntimeLocal-SXYAKX3A.js → agentRuntimeLocal-3QKZ76C7.js} +16 -16
- package/{agentSlice-WBSSBKBB.js → agentSlice-MR6JWMM5.js} +7 -7
- package/{appDeleteCommands-4EX37I4K.js → appDeleteCommands-SZFKFV4S.js} +20 -20
- package/{appDeployCommands-SDBR3J75.js → appDeployCommands-JWH5HMET.js} +20 -20
- package/{appDeployStatusCommands-764PQNYN.js → appDeployStatusCommands-CLONFBVO.js} +20 -20
- package/{appGetCommands-BBCN3XJC.js → appGetCommands-4Z7V7UYA.js} +20 -20
- package/{appListCommands-OGTABCS3.js → appListCommands-IIUS64VI.js} +20 -20
- package/{authCommand-NHDLY3IB.js → authCommand-NQPMGYHP.js} +3 -3
- package/{authCommands-UDBJVSZU.js → authCommands-LWLOZETU.js} +2 -2
- package/{builtinSkillRegistry-MAR5LPAC.js → builtinSkillRegistry-GFY77VRN.js} +4 -4
- package/{chunk-UM4PH574.js → chunk-22RVE2PC.js} +1 -1
- package/{chunk-XFUBXRVI.js → chunk-2H6SEVDS.js} +1 -1
- package/{chunk-PCF3QU5Q.js → chunk-2K4TM6AW.js} +1 -1
- package/{chunk-ODTDLPBV.js → chunk-3MSJ4XDQ.js} +3 -3
- package/{chunk-VEYL5MO5.js → chunk-4G4C5SXT.js} +3 -3
- package/{chunk-WCGC6S77.js → chunk-4HTMUQIZ.js} +2 -2
- package/{chunk-4FFUDT6D.js → chunk-56HJ2LAA.js} +17 -7
- package/{chunk-E73ON47R.js → chunk-5EPHWMP5.js} +2 -2
- package/{chunk-7EPXUZOX.js → chunk-6UEJDFF7.js} +2 -2
- package/{chunk-5LTAPGPV.js → chunk-6XHM3LNF.js} +2 -2
- package/{chunk-5OA5HMTL.js → chunk-7JWCVINR.js} +1 -1
- package/{chunk-4YSOUKUR.js → chunk-7KWFIKKK.js} +1 -1
- package/{chunk-AOJB5QYD.js → chunk-AFRHU2JO.js} +10 -11
- package/{chunk-G53AA7RW.js → chunk-BML3APFI.js} +90 -18
- package/{chunk-YXZYNMYK.js → chunk-CMKQ7RCH.js} +2 -2
- package/{chunk-6O4IK4V2.js → chunk-CUF4MYKI.js} +1 -1
- package/{chunk-PTDYOADJ.js → chunk-D2GQE6AF.js} +1 -1
- package/{chunk-46Y5D2BZ.js → chunk-EV235ILT.js} +1 -1
- package/{chunk-HRYFI64G.js → chunk-F6DFZLO4.js} +3 -3
- package/{chunk-FJ5BGMNM.js → chunk-FBTNYNAL.js} +1 -1
- package/{chunk-EHER73LN.js → chunk-GCTKWVLU.js} +1 -1
- package/{chunk-CJN5OERD.js → chunk-GLD6Q25H.js} +22 -22
- package/{chunk-SEB5HAUU.js → chunk-HD3S2F7U.js} +1 -1
- package/{chunk-XIRXOUBV.js → chunk-HDYUKPEB.js} +6 -6
- package/{chunk-LKERWYPX.js → chunk-IRZTHHNM.js} +2 -2
- package/{chunk-CHNCM7EF.js → chunk-JVP74JRH.js} +7 -7
- package/{chunk-7TKWCTSY.js → chunk-KNVDNYH7.js} +2 -2
- package/{chunk-7MMSLEPA.js → chunk-LB5A6JTU.js} +3 -3
- package/{chunk-PH275YDS.js → chunk-MEZSLGQZ.js} +25 -18
- package/{chunk-TVCAR26G.js → chunk-MSFZ7FMO.js} +1 -1
- package/chunk-NKWIS6G2.js +442 -0
- package/{chunk-DNHENQ3T.js → chunk-NR7N2RWA.js} +5 -5
- package/{chunk-Z56IK6UT.js → chunk-O2LBWZLR.js} +8 -8
- package/{chunk-UJXNKP5V.js → chunk-O7SVKKLY.js} +129 -14
- package/{chunk-SNMQMOD2.js → chunk-Q7O72MF5.js} +1 -1
- package/{chunk-U6IGAJT4.js → chunk-REPRKRB2.js} +7 -7
- package/{chunk-GARACBQB.js → chunk-RILRSUGC.js} +1 -1
- package/{chunk-OYPMWCIQ.js → chunk-S274RDSE.js} +9 -9
- package/{chunk-SEA64CDY.js → chunk-TSXNDTXL.js} +1 -1
- package/{chunk-W72ISAKC.js → chunk-UNAOTLKO.js} +1 -1
- package/{chunk-KLUBZL6X.js → chunk-USTPPV3J.js} +1 -1
- package/{chunk-N4QIAW6W.js → chunk-V6YASAZR.js} +1 -1
- package/{chunk-V5OWQOJZ.js → chunk-VL3H5ZU3.js} +48 -7
- package/{chunk-AUDNYVRC.js → chunk-VLGL7FOL.js} +1 -1
- package/{chunk-NTDEBTK5.js → chunk-XMUZHRSB.js} +6 -6
- package/{chunk-ADBZWMFB.js → chunk-YDO5ERB4.js} +1 -1
- package/{chunk-U7XXEI5R.js → chunk-YGCJITP3.js} +2 -2
- package/{chunk-GUYEMTRK.js → chunk-YIEUDVD6.js} +45 -32
- package/{chunk-OW4APERY.js → chunk-YK5MHOWM.js} +54 -9
- package/{commandRegistry-TDXN5OP7.js → commandRegistry-POKHERIN.js} +50 -50
- package/{contentThunks-F2BNWOZV.js → contentThunks-HEEW3GBT.js} +15 -15
- package/{createAgentAutomationAction-5N2NRNR7.js → createAgentAutomationAction-C5UTM2ZI.js} +15 -15
- package/{createDialogAction-DSEG4L5Y.js → createDialogAction-VODZCSHM.js} +18 -18
- package/{createPageAction-K32FYQPE.js → createPageAction-XUFSVLBC.js} +16 -16
- package/{dbSlice-Q25STFGJ.js → dbSlice-QOLNF5GN.js} +5 -5
- package/{deleteFile-AJ2EZMHT.js → deleteFile-KESP65GC.js} +2 -2
- package/{dialogCommands-ODG2OKLO.js → dialogCommands-4XNYPCE7.js} +21 -21
- package/{dialogSlice-4GBOUTGL.js → dialogSlice-KXBFWRVK.js} +14 -14
- package/{docCreateCommands-Q6FQUHUF.js → docCreateCommands-P4XCR2SW.js} +21 -21
- package/{docDeleteCommands-N224CFZL.js → docDeleteCommands-KZZ3L6LS.js} +22 -22
- package/{docReadCommands-CJWAEAB4.js → docReadCommands-JN6HL4BC.js} +21 -21
- package/{docStore-ZTYSP3YE.js → docStore-PLGBTV5U.js} +6 -6
- package/{docUpdateCommands-OPG6ZY4H.js → docUpdateCommands-EYE7BTXW.js} +21 -21
- package/{fetchMessages-I5ICDDHM.js → fetchMessages-5L7OVM5Y.js} +2 -2
- package/{handleSendMessageAction-XFZH2TQS.js → handleSendMessageAction-BBB6A54Z.js} +14 -14
- package/index.js +3 -3
- package/{localDialogRead-ZHZ3KXDM.js → localDialogRead-O5A26FDK.js} +1 -1
- package/{machineCommands-KMU3D5I5.js → machineCommands-4LP4XFEY.js} +37 -37
- package/{machineWsRunDispatch-6GJ5YOSW.js → machineWsRunDispatch-4PWOZYRA.js} +37 -37
- package/{memberThunks-R75S3RWP.js → memberThunks-25K6DDRA.js} +6 -6
- package/package.json +1 -1
- package/{read-SRQMNO26.js → read-PJIT2YEJ.js} +2 -2
- package/{readDocTool-RC3JUNJ2.js → readDocTool-DRSXHGNL.js} +1 -1
- package/{readlineWorkspace-EXCG3IFX.js → readlineWorkspace-CFUUABFV.js} +70 -71
- package/{removeDialogAgentAction-46XQV5Q7.js → removeDialogAgentAction-VIWJL6MX.js} +6 -6
- package/{runAgentClientLoop-URRDZ5WG.js → runAgentClientLoop-CAPNBF7Q.js} +30 -30
- package/{setDialogExtraReferencesAction-J4V5ADQF.js → setDialogExtraReferencesAction-A7VA3NFM.js} +6 -6
- package/{setPrimaryDialogAgentAction-UHHV2QZW.js → setPrimaryDialogAgentAction-B4P7YQX2.js} +6 -6
- package/{settingThunks-PPZZZOWN.js → settingThunks-KOYSAT65.js} +5 -5
- package/{spaceCommands-7CLUNI2I.js → spaceCommands-QCZUWUMS.js} +19 -19
- package/{streamAgentChatTurn-YPUYKXDX.js → streamAgentChatTurn-XX3N3P4J.js} +33 -33
- package/{switchDialogAgentAction-A2TMVGAE.js → switchDialogAgentAction-3VYWHZKH.js} +5 -5
- package/{tools-M5ENXZRJ.js → tools-U6BT6H56.js} +27 -27
- package/{tuiSummaryLlmCaller-Q65IBDGO.js → tuiSummaryLlmCaller-QCHCULPM.js} +9 -9
- package/{updateDialogTitleAction-7PNUE23W.js → updateDialogTitleAction-NKHQ5LCX.js} +15 -15
- package/chunk-CQ3WA2NE.js +0 -299
- /package/{chunk-3AH7LNUB.js → chunk-ODAPITXL.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
assembleAgentDiscoveryResult,
|
|
6
6
|
resolveDiscoveryScope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YGCJITP3.js";
|
|
8
8
|
import {
|
|
9
9
|
fetchWithTransientRetry
|
|
10
10
|
} from "./chunk-AOTBKDRK.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
readPageFunc,
|
|
35
35
|
readPageFunctionSchema,
|
|
36
36
|
resolvePageReadMarkdown
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RILRSUGC.js";
|
|
38
38
|
import {
|
|
39
39
|
addMemberSpace,
|
|
40
40
|
fetchAuthoritativeRemoteSpace,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
setMembershipRejected,
|
|
47
47
|
setSpaceInitialized,
|
|
48
48
|
updateMemberSpaceName
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-FBTNYNAL.js";
|
|
50
50
|
import {
|
|
51
51
|
ToolApiError,
|
|
52
52
|
buildToolRequestHeaders,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
} from "./chunk-HP57OUJO.js";
|
|
58
58
|
import {
|
|
59
59
|
setDialogExtraReferencesAction
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-22RVE2PC.js";
|
|
61
61
|
import {
|
|
62
62
|
waitForAbortableDelay
|
|
63
63
|
} from "./chunk-N4G4PKQ6.js";
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
} from "./chunk-VF4K2QE6.js";
|
|
76
76
|
import {
|
|
77
77
|
createDocState
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-3MSJ4XDQ.js";
|
|
79
79
|
import {
|
|
80
80
|
createDialogAction
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-NR7N2RWA.js";
|
|
82
82
|
import {
|
|
83
83
|
TASK_PREVIEW_MAX,
|
|
84
84
|
buildDelegatedTaskContent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
updateContentCategory,
|
|
109
109
|
updateContentTitle,
|
|
110
110
|
writeStoredCollapsedCategories
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-REPRKRB2.js";
|
|
112
112
|
import {
|
|
113
113
|
getCurrentSpaceId,
|
|
114
114
|
getCurrentSpaceIdRaw,
|
|
@@ -130,14 +130,14 @@ import {
|
|
|
130
130
|
selectMsgById,
|
|
131
131
|
uiAskChoiceFunc,
|
|
132
132
|
uiAskChoiceFunctionSchema
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-GLD6Q25H.js";
|
|
134
134
|
import {
|
|
135
135
|
createAgent,
|
|
136
136
|
deleteServerSyncedCredential,
|
|
137
137
|
runLlm,
|
|
138
138
|
streamAgentChatTurn,
|
|
139
139
|
updateAgent
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-JVP74JRH.js";
|
|
141
141
|
import {
|
|
142
142
|
getActiveDialogKey,
|
|
143
143
|
selectCurrentDialogKey,
|
|
@@ -151,10 +151,10 @@ import {
|
|
|
151
151
|
resolveBuiltinCapability,
|
|
152
152
|
resolveBuiltinSkillByName,
|
|
153
153
|
resolveBuiltinSkillEntry
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-4G4C5SXT.js";
|
|
155
155
|
import {
|
|
156
156
|
CAPABILITY_PACKS
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-4HTMUQIZ.js";
|
|
158
158
|
import {
|
|
159
159
|
DEFAULT_SYSTEM_AGENT_CAPABILITIES
|
|
160
160
|
} from "./chunk-WJ3B6FX6.js";
|
|
@@ -165,7 +165,7 @@ import {
|
|
|
165
165
|
parseExternalSkillMarkdown,
|
|
166
166
|
parseSkillDocProtocol,
|
|
167
167
|
resolvePageSkillMetadata
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-VLGL7FOL.js";
|
|
169
169
|
import {
|
|
170
170
|
DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS,
|
|
171
171
|
NOLO_WORKSPACE_TOOL_NAMES,
|
|
@@ -182,10 +182,10 @@ import {
|
|
|
182
182
|
redactAgentRecordForWorkspaceTool,
|
|
183
183
|
resolveNoloDialogInput,
|
|
184
184
|
verifyNoloDialogSubjectRefQuery
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-7KWFIKKK.js";
|
|
186
186
|
import {
|
|
187
187
|
buildDatabaseFileContentUrl
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-LB5A6JTU.js";
|
|
189
189
|
import {
|
|
190
190
|
clipCompactText
|
|
191
191
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
} from "./chunk-DWLEOOGR.js";
|
|
195
195
|
import {
|
|
196
196
|
createFileCredentialBroker
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-2H6SEVDS.js";
|
|
198
198
|
import {
|
|
199
199
|
asRecordOrEmpty
|
|
200
200
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
UNCATEGORIZED_ID,
|
|
203
203
|
addContentAction,
|
|
204
204
|
checkSpaceMembership
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-5EPHWMP5.js";
|
|
206
206
|
import {
|
|
207
207
|
createSpaceKey,
|
|
208
208
|
normalizeSpaceId
|
|
@@ -218,7 +218,7 @@ import {
|
|
|
218
218
|
selectEntities,
|
|
219
219
|
toTimestampMs,
|
|
220
220
|
write
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-56HJ2LAA.js";
|
|
222
222
|
import {
|
|
223
223
|
canonicalizeToolName,
|
|
224
224
|
canonicalizeToolNames
|
|
@@ -243,7 +243,7 @@ import {
|
|
|
243
243
|
} from "./chunk-QSJ3HFEF.js";
|
|
244
244
|
import {
|
|
245
245
|
readAction
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-D2GQE6AF.js";
|
|
247
247
|
import {
|
|
248
248
|
DEVICE_LOCAL_OWNER_ID,
|
|
249
249
|
getRuntimeServerContext,
|
|
@@ -253,7 +253,7 @@ import {
|
|
|
253
253
|
resolveEffectiveSpaceActorId,
|
|
254
254
|
resolveRecordOwnerUserId,
|
|
255
255
|
selectRuntimeSnapshot
|
|
256
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-O7SVKKLY.js";
|
|
257
257
|
import {
|
|
258
258
|
buildTombstoneRecord,
|
|
259
259
|
isTombstoneRecord
|
|
@@ -266,7 +266,7 @@ import {
|
|
|
266
266
|
} from "./chunk-KUG52IAP.js";
|
|
267
267
|
import {
|
|
268
268
|
shareResourceAction
|
|
269
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-UNAOTLKO.js";
|
|
270
270
|
import {
|
|
271
271
|
selectCurrentServer,
|
|
272
272
|
selectSyncServers
|
|
@@ -291,7 +291,7 @@ import {
|
|
|
291
291
|
splitKey,
|
|
292
292
|
toTrimmedString,
|
|
293
293
|
ulid
|
|
294
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-ODAPITXL.js";
|
|
295
295
|
import {
|
|
296
296
|
asOptionalFiniteNumber
|
|
297
297
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -3892,6 +3892,8 @@ async function readDialogFunc(args, thunkApi) {
|
|
|
3892
3892
|
// 对全量消息做 materialize + 整体 stringify。
|
|
3893
3893
|
body: JSON.stringify({
|
|
3894
3894
|
dialogId: resolved.dialogId,
|
|
3895
|
+
// 同作用域已解析出的记录 key:不传则服务端退化为 `dialog-*` 全命名空间扫描。
|
|
3896
|
+
dialogKey: resolved.dbKey,
|
|
3895
3897
|
limit,
|
|
3896
3898
|
maxChars: DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS
|
|
3897
3899
|
})
|
|
@@ -3996,7 +3998,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3996
3998
|
const deletedDialogIds = [];
|
|
3997
3999
|
const deletedDialogKeys = [];
|
|
3998
4000
|
const failures = [];
|
|
3999
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
4001
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-KXBFWRVK.js");
|
|
4000
4002
|
for (const target of targets) {
|
|
4001
4003
|
try {
|
|
4002
4004
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -4312,7 +4314,7 @@ var readSkillDocFunctionSchema = {
|
|
|
4312
4314
|
}
|
|
4313
4315
|
};
|
|
4314
4316
|
async function readSkillDocFunc(args, thunkApi) {
|
|
4315
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
4317
|
+
const { buildReadDocResult } = await import("./readDocTool-DRSXHGNL.js");
|
|
4316
4318
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
4317
4319
|
if (typeof id !== "string" || !id.trim()) {
|
|
4318
4320
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -5104,7 +5106,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
5104
5106
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
5105
5107
|
const readSpace = async (dbKey) => {
|
|
5106
5108
|
try {
|
|
5107
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
5109
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-QOLNF5GN.js");
|
|
5108
5110
|
if (fresh) {
|
|
5109
5111
|
return await dispatch(readAndWait2(dbKey)).unwrap();
|
|
5110
5112
|
}
|
|
@@ -10852,7 +10854,7 @@ var selectUserIdFromState = (state2) => {
|
|
|
10852
10854
|
var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
|
|
10853
10855
|
async function addImageContentToSpace(input) {
|
|
10854
10856
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
10855
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
10857
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-7TNIOVZI.js")).addContentAction;
|
|
10856
10858
|
await addContentAction2(
|
|
10857
10859
|
{
|
|
10858
10860
|
spaceId: input.spaceId,
|
|
@@ -14905,7 +14907,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
14905
14907
|
if (!executionInput) {
|
|
14906
14908
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
14907
14909
|
}
|
|
14908
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
14910
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-U6BT6H56.js");
|
|
14909
14911
|
const { executor } = findToolExecutor2(run.toolName);
|
|
14910
14912
|
toolRunStarted({
|
|
14911
14913
|
id: run.id,
|
|
@@ -14929,7 +14931,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
14929
14931
|
const latestState = thunkApi.getState();
|
|
14930
14932
|
const userId = selectIdentityUserId(latestState);
|
|
14931
14933
|
if (userId) {
|
|
14932
|
-
const { fetchUserSpaceMemberships } = await import("./memberThunks-
|
|
14934
|
+
const { fetchUserSpaceMemberships } = await import("./memberThunks-25K6DDRA.js");
|
|
14933
14935
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
14934
14936
|
}
|
|
14935
14937
|
}
|
|
@@ -17229,7 +17231,11 @@ async function fetchDialogMessagesFromServer(args) {
|
|
|
17229
17231
|
Authorization: `Bearer ${args.token}`,
|
|
17230
17232
|
"Content-Type": "application/json"
|
|
17231
17233
|
},
|
|
17232
|
-
body: JSON.stringify({
|
|
17234
|
+
body: JSON.stringify({
|
|
17235
|
+
dialogId: args.dialogId,
|
|
17236
|
+
...args.dialogKey ? { dialogKey: args.dialogKey } : {},
|
|
17237
|
+
limit: args.limit
|
|
17238
|
+
})
|
|
17233
17239
|
});
|
|
17234
17240
|
if (!response.ok) return [];
|
|
17235
17241
|
const newestFirst = await response.json();
|
|
@@ -17239,7 +17245,7 @@ async function fetchDialogMessagesFromServer(args) {
|
|
|
17239
17245
|
dbKey: message.dbKey
|
|
17240
17246
|
}));
|
|
17241
17247
|
}
|
|
17242
|
-
async function collectBestAvailableDialogMessages(db, dialogId, thunkApi, scanLimit) {
|
|
17248
|
+
async function collectBestAvailableDialogMessages(db, dialogId, thunkApi, scanLimit, dialogKey) {
|
|
17243
17249
|
const localMessages = await collectDialogMessages(db, dialogId);
|
|
17244
17250
|
const state2 = thunkApi?.getState?.();
|
|
17245
17251
|
const runtime = state2 ? selectRuntimeSnapshot(state2) : null;
|
|
@@ -17255,6 +17261,7 @@ async function collectBestAvailableDialogMessages(db, dialogId, thunkApi, scanLi
|
|
|
17255
17261
|
serverBase: base,
|
|
17256
17262
|
token: runtime?.currentToken,
|
|
17257
17263
|
dialogId,
|
|
17264
|
+
...dialogKey ? { dialogKey } : {},
|
|
17258
17265
|
limit: scanLimit
|
|
17259
17266
|
}).catch(() => [])
|
|
17260
17267
|
)
|
|
@@ -17330,7 +17337,13 @@ async function searchDialogMessagesFunc(args, _thunkApi, context) {
|
|
|
17330
17337
|
1,
|
|
17331
17338
|
SERVER_SCAN_LIMIT
|
|
17332
17339
|
);
|
|
17333
|
-
const messages = await collectBestAvailableDialogMessages(
|
|
17340
|
+
const messages = await collectBestAvailableDialogMessages(
|
|
17341
|
+
db,
|
|
17342
|
+
dialogId,
|
|
17343
|
+
_thunkApi,
|
|
17344
|
+
scanLimit,
|
|
17345
|
+
dialogKey
|
|
17346
|
+
);
|
|
17334
17347
|
const limit = clampDialogSearchNumber(args.limit, 5, 1, MAX_LIMIT);
|
|
17335
17348
|
const contextMessages = clampDialogSearchNumber(args.contextMessages, 1, 0, MAX_CONTEXT_MESSAGES);
|
|
17336
17349
|
const results = buildDialogMessageSearchResults({
|
|
@@ -17412,7 +17425,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
17412
17425
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
17413
17426
|
};
|
|
17414
17427
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
17415
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
17428
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-PLGBTV5U.js");
|
|
17416
17429
|
if (getDocState().pageKey === id) {
|
|
17417
17430
|
applyExternalDocUpdate({
|
|
17418
17431
|
slateData: finalSlateData,
|
|
@@ -17437,7 +17450,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
17437
17450
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
17438
17451
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
17439
17452
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
17440
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-
|
|
17453
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-KOYSAT65.js")).setSettings;
|
|
17441
17454
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
17442
17455
|
}
|
|
17443
17456
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -295,6 +295,43 @@ function sanitizeGeminiSchemaNode(node, active) {
|
|
|
295
295
|
seen.delete(node);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
+
var enumMetaByNode = /* @__PURE__ */ new WeakMap();
|
|
299
|
+
function enumMetaOf(node) {
|
|
300
|
+
return node && typeof node === "object" ? enumMetaByNode.get(node) : void 0;
|
|
301
|
+
}
|
|
302
|
+
function rawEnumValues(src) {
|
|
303
|
+
if (Array.isArray(src.enum) && src.enum.length > 0) return src.enum;
|
|
304
|
+
if ("const" in src && src.const !== void 0) return [src.const];
|
|
305
|
+
return void 0;
|
|
306
|
+
}
|
|
307
|
+
function geminiEnumFields(values, baseDescription) {
|
|
308
|
+
if (values.every((v) => typeof v === "string")) {
|
|
309
|
+
return {
|
|
310
|
+
enum: [...new Set(values)],
|
|
311
|
+
description: baseDescription
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
if (values.every((v) => typeof v === "number" || typeof v === "boolean")) {
|
|
315
|
+
const allowed2 = [...new Set(values.map((v) => String(v)))].join(", ");
|
|
316
|
+
const note2 = `(allowed: ${allowed2})`;
|
|
317
|
+
return {
|
|
318
|
+
description: baseDescription ? `${baseDescription} ${note2}` : note2
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
const allowed = [...new Set(values.map(geminiEnumLiteral))].join(", ");
|
|
322
|
+
const note = `(allowed: ${allowed})`;
|
|
323
|
+
return {
|
|
324
|
+
description: baseDescription ? `${baseDescription} ${note}` : note
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
function geminiEnumLiteral(value) {
|
|
328
|
+
const json = JSON.stringify(value);
|
|
329
|
+
return json === void 0 ? String(value) : json;
|
|
330
|
+
}
|
|
331
|
+
function applyGeminiEnum(out, fields) {
|
|
332
|
+
if (fields.enum) out.enum = fields.enum;
|
|
333
|
+
if (fields.description !== void 0) out.description = fields.description;
|
|
334
|
+
}
|
|
298
335
|
function sanitizeGeminiSchemaNodeInner(src, out, seen) {
|
|
299
336
|
if (Array.isArray(src.type)) {
|
|
300
337
|
const firstNonNull = src.type.find((t) => t !== "null");
|
|
@@ -306,10 +343,12 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
|
|
|
306
343
|
if (typeof src.description === "string") out.description = src.description;
|
|
307
344
|
if (typeof src.minimum === "number") out.minimum = src.minimum;
|
|
308
345
|
if (typeof src.maximum === "number") out.maximum = src.maximum;
|
|
309
|
-
if (Array.isArray(src.enum) && src.enum.length > 0) out.enum = src.enum;
|
|
310
346
|
if (src.nullable === true) out.nullable = true;
|
|
311
|
-
|
|
312
|
-
|
|
347
|
+
const enumValues = rawEnumValues(src);
|
|
348
|
+
if (enumValues) {
|
|
349
|
+
const baseDescription = typeof src.description === "string" ? src.description : void 0;
|
|
350
|
+
enumMetaByNode.set(out, { values: enumValues, baseDescription });
|
|
351
|
+
applyGeminiEnum(out, geminiEnumFields(enumValues, baseDescription));
|
|
313
352
|
}
|
|
314
353
|
const variantBranches = [
|
|
315
354
|
...Array.isArray(src.oneOf) ? src.oneOf : [],
|
|
@@ -323,13 +362,19 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
|
|
|
323
362
|
const branchProperties = sanitized.properties ?? {};
|
|
324
363
|
for (const [key, value] of Object.entries(branchProperties)) {
|
|
325
364
|
const previous = mergedProperties[key];
|
|
326
|
-
const
|
|
327
|
-
const
|
|
328
|
-
if (
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
365
|
+
const prevMeta = enumMetaOf(previous);
|
|
366
|
+
const nextMeta = enumMetaOf(value);
|
|
367
|
+
if (prevMeta && nextMeta) {
|
|
368
|
+
const values = [...prevMeta.values, ...nextMeta.values];
|
|
369
|
+
const baseDescription = nextMeta.baseDescription ?? prevMeta.baseDescription;
|
|
370
|
+
const node = {
|
|
371
|
+
...value
|
|
332
372
|
};
|
|
373
|
+
delete node.enum;
|
|
374
|
+
delete node.description;
|
|
375
|
+
applyGeminiEnum(node, geminiEnumFields(values, baseDescription));
|
|
376
|
+
enumMetaByNode.set(node, { values, baseDescription });
|
|
377
|
+
mergedProperties[key] = node;
|
|
333
378
|
} else {
|
|
334
379
|
mergedProperties[key] = value;
|
|
335
380
|
}
|