nolo-cli 0.152.0-alpha.1 → 0.153.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-4KHFMQT4.js → _executeModel-YAHIA3TR.js} +44 -45
- package/{accountResolver-7RYB4D2P.js → accountResolver-55EDKEIK.js} +1 -1
- package/{action-SXJD5N5R.js → action-GPPJC5TI.js} +4 -4
- package/{addContentAction-ZV774PHH.js → addContentAction-BI6RDRTQ.js} +8 -8
- package/{addDialogAgentAction-A6SMKAGH.js → addDialogAgentAction-4RJYUSIK.js} +7 -7
- package/{agentDeleteCommand-EKFV5FC7.js → agentDeleteCommand-6W2VQADC.js} +57 -57
- package/{agentEmailCommands-MNV3MUH5.js → agentEmailCommands-ZTS5JSP5.js} +59 -59
- package/{agentListCommands-E6FYKXC3.js → agentListCommands-MM5OLPBY.js} +23 -23
- package/{agentMachineCommands-2GFUU7GF.js → agentMachineCommands-WPFV4TSD.js} +22 -21
- package/{agentProviderCommands-HL6MBLCL.js → agentProviderCommands-MKG2OOEY.js} +2 -2
- package/{agentRecordCommands-LPHHTEPM.js → agentRecordCommands-YW7XO5CX.js} +57 -57
- package/{agentRunCommand-JSPW7W32.js → agentRunCommand-R2JTIRPZ.js} +59 -58
- package/{agentRunControl-IFM7IGMG.js → agentRunControl-2C5GM3BW.js} +5 -5
- package/{agentRuntimeLocal-ARS4TV77.js → agentRuntimeLocal-RJKTDWNN.js} +16 -16
- package/{agentSlice-IP4DZNNV.js → agentSlice-7FNTOPHE.js} +8 -8
- package/{appDeleteCommands-JHTLKQSX.js → appDeleteCommands-7EOM274T.js} +21 -21
- package/{appDeployCommands-5V26M2KA.js → appDeployCommands-2I3QYJ5G.js} +21 -21
- package/{appDeployStatusCommands-SBSPS627.js → appDeployStatusCommands-LEML7FPR.js} +21 -21
- package/{appGetCommands-NKPD2L45.js → appGetCommands-ZQSVHGQM.js} +21 -21
- package/{appListCommands-ZOGRZFYY.js → appListCommands-BVA7XKQO.js} +21 -21
- package/{authCommand-QYN47CQD.js → authCommand-NIV3DKPF.js} +13 -293
- package/{authCommands-77CHYBGF.js → authCommands-AMNIAKEG.js} +2 -2
- package/{builtinSkillRegistry-TDQ6JB2E.js → builtinSkillRegistry-H3AY27TR.js} +3 -3
- package/{chromeCommands-OBBNJCLS.js → chromeCommands-IY4NVSXZ.js} +17 -10
- package/{chunk-SW4S4XYB.js → chunk-2AB2HA4M.js} +84 -34
- package/{chunk-VNP54NZL.js → chunk-2EROINJB.js} +14 -14
- package/{chunk-4PXHOOFA.js → chunk-2MTE2PEH.js} +3 -3
- package/{chunk-4YRTZIVN.js → chunk-2SGAI64X.js} +2 -2
- package/{chunk-QFEW2ULV.js → chunk-32ZKZET7.js} +1 -1
- package/{chunk-GQV5KHJU.js → chunk-3C2QLERX.js} +1 -1
- package/{chunk-XPWGOTBQ.js → chunk-3L2WKC3W.js} +1 -8
- package/{chunk-WD4XYDYC.js → chunk-3WIXU4XO.js} +224 -1
- package/{chunk-MZHOLWW5.js → chunk-4J4RVSHE.js} +3 -3
- package/{chunk-YBNHPX4S.js → chunk-4RJJDA57.js} +1 -1
- package/{chunk-OFVFQYIE.js → chunk-6COBMDV4.js} +19 -13
- package/{chunk-HL3O3PCQ.js → chunk-6TF64IF2.js} +2 -2
- package/{chunk-BNDETALN.js → chunk-7NSQJKGA.js} +45 -13
- package/{chunk-UUPR3TD7.js → chunk-7RF4O6AT.js} +1 -3
- package/{chunk-LC23WBCU.js → chunk-ACTR4SH2.js} +6 -6
- package/{chunk-HSJPKBLC.js → chunk-ANJTRG52.js} +2 -2
- package/{chunk-2GGXHQIW.js → chunk-BLVSFYQ3.js} +4 -2
- package/{chunk-ISQL4V7C.js → chunk-C3OK72G3.js} +1 -1
- package/{chunk-CHCS6XPJ.js → chunk-CGFNDIKK.js} +65 -0
- package/{chunk-F32Z66T4.js → chunk-CON6SI7N.js} +1 -1
- package/{chunk-HIQ4GF53.js → chunk-DC3SZCRR.js} +7 -3
- package/{chunk-RQ6E3G5L.js → chunk-DRPDGHQB.js} +18 -2
- package/{chunk-RVWMAFIT.js → chunk-FYYSDHVQ.js} +1 -1
- package/{chunk-XTWDF6RU.js → chunk-GLUL4C5S.js} +21 -17
- package/{chunk-TYYRSFBG.js → chunk-HB4XPBC7.js} +3 -35
- package/{chunk-6MJNEXUU.js → chunk-HGDKT2D6.js} +4 -0
- package/{chunk-UBUH2TCC.js → chunk-I2RMFLLH.js} +2 -2
- package/{chunk-VJXHL6MH.js → chunk-ICRRXBRN.js} +3 -3
- package/{chunk-XS47QOFV.js → chunk-IE5PXKVU.js} +2 -264
- package/{chunk-KMM2X7LP.js → chunk-ILVOUUMR.js} +3 -3
- package/{chunk-KFHQQ3NO.js → chunk-INFHX73M.js} +1 -1
- package/{chunk-XRUSXPCQ.js → chunk-IPAW7XLD.js} +57 -4
- package/{chunk-PLSVXHSA.js → chunk-IRTOYSA2.js} +3 -3
- package/{chunk-GCKHQECX.js → chunk-IYBIRCQV.js} +1 -1
- package/{chunk-ILU2NPWY.js → chunk-J2ATF74A.js} +2 -2
- package/{chunk-XZNCX52W.js → chunk-JGRPBIZZ.js} +1 -1
- package/{chunk-E2AKSW7L.js → chunk-JPJGMOIM.js} +2 -2
- package/{chunk-6LIKQYG4.js → chunk-JZYIISJB.js} +21 -23
- package/{chunk-44WXLHFI.js → chunk-K43ZF2C3.js} +1 -1
- package/{chunk-I2ZMGXXF.js → chunk-KFHREHUQ.js} +1 -1
- package/{chunk-JKMLSTZK.js → chunk-KLA62VVE.js} +3 -3
- package/{chunk-AHYBQP3M.js → chunk-L57R6PFF.js} +3 -3
- package/{chunk-DYYMIUN4.js → chunk-L6EQV5OC.js} +4 -4
- package/{chunk-EZVK3N5L.js → chunk-LOEO7LRC.js} +56 -0
- package/{chunk-EDX5XSJM.js → chunk-M2P3OGXZ.js} +3 -3
- package/{chunk-YVLQXTUB.js → chunk-MM3662RS.js} +1 -1
- package/{chunk-CBHGZRCE.js → chunk-MYOH447Z.js} +1 -1
- package/{chunk-A4MW3YZL.js → chunk-NDZOXXIM.js} +18 -4
- package/{chunk-EHFS4XZO.js → chunk-NKBMD4TC.js} +12 -8
- package/{chunk-64PFYIAY.js → chunk-OJ2PQXBV.js} +674 -637
- package/{chunk-36OMEXXR.js → chunk-OON4OBWI.js} +1 -1
- package/{chunk-SEJ5OS6F.js → chunk-PXYBUFDB.js} +4 -0
- package/{chunk-XCA6HQGS.js → chunk-QEONMOV7.js} +5 -5
- package/{chunk-USHQX6VT.js → chunk-QPY264HO.js} +1 -1
- package/{chunk-PFBIXTFB.js → chunk-QSKN3E7Q.js} +52 -26
- package/{chunk-TNIX77YM.js → chunk-R5GO3YZP.js} +34 -1
- package/{chunk-I5V3V2H4.js → chunk-RL2OOQUM.js} +37 -25
- package/{chunk-AIZE5TDM.js → chunk-SPKLALBU.js} +2 -2
- package/{chunk-K2AER7RX.js → chunk-SUKSWFLP.js} +2 -2
- package/{chunk-I4SN4NUQ.js → chunk-TRW43TSC.js} +1 -1
- package/{chunk-D2QN6CTI.js → chunk-UCLSOLX4.js} +8 -6
- package/{chunk-TYJ5XFEA.js → chunk-UFYBYB26.js} +1 -1
- package/{chunk-SCMHQUMK.js → chunk-US6MKPE7.js} +1 -1
- package/{chunk-ZIWPQEFU.js → chunk-VYNMQ6HW.js} +1 -28
- package/{chunk-PPU323UE.js → chunk-W2NNEHHW.js} +183 -66
- package/{chunk-IJERIUXS.js → chunk-WRCZXJ4N.js} +6 -3
- package/chunk-Y5GCAMGP.js +9 -0
- package/{chunk-GKXCHNTE.js → chunk-Y6ORVLSS.js} +1 -1
- package/{chunk-RSHPU4PD.js → chunk-YANF2RR4.js} +2 -2
- package/{chunk-EYWJT7A2.js → chunk-YPG7TUQD.js} +3 -3
- package/{chunk-PMYAE4OZ.js → chunk-YPY2S3DV.js} +3 -3
- package/{chunk-ZF6526IQ.js → chunk-ZEY4NJRE.js} +2 -2
- package/{chunk-JWTSWUPS.js → chunk-ZGG7BBVE.js} +7 -6
- package/{chunk-T5BHHWA5.js → chunk-ZGSW3HWM.js} +7 -7
- package/{chunk-74RAWNQN.js → chunk-ZVQHBIWV.js} +6 -6
- package/{chunk-DTODXBHK.js → chunk-ZWG3C7VI.js} +2 -2
- package/{commandRegistry-VBALU4Q4.js → commandRegistry-ZPK4AUWM.js} +79 -87
- package/{contentThunks-HPY2QNWZ.js → contentThunks-SXEQLAFP.js} +20 -20
- package/{createAgentAutomationAction-6ADGPGY6.js → createAgentAutomationAction-INVACTI3.js} +20 -20
- package/{createDialogAction-6ABMSEW2.js → createDialogAction-FDO3DYW4.js} +21 -21
- package/{createPageAction-OC4NNRPC.js → createPageAction-Q5CQPEQH.js} +20 -20
- package/{dbSlice-J37OGIXH.js → dbSlice-DC2J53RC.js} +7 -7
- package/{deleteFile-6JWDDRVP.js → deleteFile-KYWEMNFX.js} +4 -4
- package/{dialogCommands-EIGBRSQP.js → dialogCommands-MUFYPVMP.js} +24 -23
- package/{dialogSlice-SI45KJOH.js → dialogSlice-DS22VO6X.js} +19 -19
- package/{docCreateCommands-3JDBBMU5.js → docCreateCommands-OPWOKG62.js} +19 -19
- package/{docDeleteCommands-5M6C7UUB.js → docDeleteCommands-IBV3WMKI.js} +20 -20
- package/{docReadCommands-DUB57F6V.js → docReadCommands-LVALHMLZ.js} +19 -19
- package/{docStore-L43MDEK4.js → docStore-UFEWRQ5W.js} +8 -8
- package/{docUpdateCommands-WF7MAMPK.js → docUpdateCommands-Z5OUEAK7.js} +19 -19
- package/{getPricing-FKK3F5EJ.js → getPricing-TX35D7PI.js} +3 -3
- package/{handleSendMessageAction-BSMU7SVS.js → handleSendMessageAction-AOPC2RYQ.js} +33 -33
- package/index.js +7 -7
- package/{localRuntimeAdapter-N5PDR26F.js → localRuntimeAdapter-OK722XHN.js} +57 -55
- package/{machineCommands-TMXJKZCE.js → machineCommands-NW3KT5RE.js} +61 -59
- package/{machineWsRunDispatch-25H63KEH.js → machineWsRunDispatch-EWQDI6TL.js} +56 -56
- package/{memberThunks-66DH6ABQ.js → memberThunks-2DWKLE6W.js} +8 -8
- package/{models-LAS4B2B5.js → models-PZQC7VV4.js} +2 -2
- package/package.json +1 -1
- package/{profileConfig-ZGOFORWV.js → profileConfig-KN3N2BLF.js} +7 -1
- package/{providerPresetApply-MY66I6NT.js → providerPresetApply-GSJI4JBJ.js} +6 -6
- package/{providerRegistry-QOE2FT57.js → providerRegistry-TSSTPGWF.js} +6 -6
- package/{read-DC4NUGN6.js → read-L7QEJETH.js} +5 -5
- package/{readDocTool-NCJ5NT25.js → readDocTool-QELXV2GW.js} +1 -1
- package/{readlineWorkspace-BS7WVCL2.js → readlineWorkspace-ZTNEFMTX.js} +330 -118
- package/{removeDialogAgentAction-E2H3OZU6.js → removeDialogAgentAction-376XSUP2.js} +9 -9
- package/{runAgentClientLoop-BVKRI4SY.js → runAgentClientLoop-PQTFXXFA.js} +48 -44
- package/{runtimeDoctorCommands-GIOGC5SC.js → runtimeDoctorCommands-56NWKNON.js} +5 -5
- package/{secretCommands-ZXZRLR3R.js → secretCommands-DNY56NSU.js} +11 -1
- package/{setDialogExtraReferencesAction-SITRPMYU.js → setDialogExtraReferencesAction-QBDSH63D.js} +8 -8
- package/{setPrimaryDialogAgentAction-U7N45TGC.js → setPrimaryDialogAgentAction-537QFGW3.js} +9 -9
- package/settingThunks-4Z43ZSAT.js +923 -0
- package/{spaceCommands-5EWREUWS.js → spaceCommands-AWIIP7J5.js} +19 -19
- package/{streamAgentChatTurn-B4VFUV52.js → streamAgentChatTurn-I4M3CUBF.js} +53 -103
- package/{switchDialogAgentAction-OMGBD3N2.js → switchDialogAgentAction-CSO6AKRL.js} +7 -7
- package/{tableCommands-U3QDY4L6.js → tableCommands-LBH3QPPO.js} +1 -1
- package/{toolApiClient-7WSJJJBV.js → toolApiClient-HGNO53TC.js} +2 -2
- package/{tools-5WYAUKMK.js → tools-TOSN72UD.js} +37 -37
- package/{tuiSummaryLlmCaller-PPU7YDBG.js → tuiSummaryLlmCaller-KLK6K3Q3.js} +8 -8
- package/{updateCommands-NQXAGFM7.js → updateCommands-LXZLG44Y.js} +2 -2
- package/{updateDialogTitleAction-YJHDKHFX.js → updateDialogTitleAction-TJWFUJX4.js} +20 -20
- package/{workloadLifecycle-36DXRZKU.js → workloadLifecycle-6O6PMISX.js} +2 -2
- package/chunk-W4S6OTSC.js +0 -35
- package/settingThunks-Y7SVJOMZ.js +0 -1371
|
@@ -7,15 +7,17 @@ import {
|
|
|
7
7
|
listUserRecordsFromServers,
|
|
8
8
|
readDbRecordFromServers,
|
|
9
9
|
readLiveDbRecordAfterTombstoneMerge
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QPY264HO.js";
|
|
11
|
+
import {
|
|
12
|
+
parsePositiveFiniteNumberOrFallback
|
|
13
|
+
} from "./chunk-Y5GCAMGP.js";
|
|
11
14
|
import {
|
|
12
15
|
fetchWithTransientRetry
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KFHREHUQ.js";
|
|
14
17
|
import {
|
|
15
18
|
DRAIN_EXHAUSTED_USER_MESSAGE,
|
|
16
|
-
isDrainExhaustedResponse
|
|
17
|
-
|
|
18
|
-
} from "./chunk-XPWGOTBQ.js";
|
|
19
|
+
isDrainExhaustedResponse
|
|
20
|
+
} from "./chunk-3L2WKC3W.js";
|
|
19
21
|
import {
|
|
20
22
|
buildDialogAttachmentPlan,
|
|
21
23
|
extractFileContentIds
|
|
@@ -40,7 +42,7 @@ import {
|
|
|
40
42
|
} from "./chunk-I42VC5KR.js";
|
|
41
43
|
import {
|
|
42
44
|
resolveRunsDir
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MM3662RS.js";
|
|
44
46
|
import {
|
|
45
47
|
isRecord
|
|
46
48
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
206
206
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
|
-
const { readAction } = await import("./read-
|
|
209
|
+
const { readAction } = await import("./read-L7QEJETH.js");
|
|
210
210
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
211
211
|
if (!pageData) {
|
|
212
212
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
noloAgentId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y6ORVLSS.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeServerOrigin
|
|
6
6
|
} from "./chunk-CF7PE763.js";
|
|
7
|
-
import {
|
|
8
|
-
asTrimmedLowercaseString
|
|
9
|
-
} from "./chunk-QSJ3HFEF.js";
|
|
10
|
-
|
|
11
|
-
// packages/app/theme/fontPreference.ts
|
|
12
|
-
var FONT_PRESET_ALIASES = {
|
|
13
|
-
system: "system",
|
|
14
|
-
default: "system",
|
|
15
|
-
hei: "hei",
|
|
16
|
-
heiti: "hei",
|
|
17
|
-
sans: "hei",
|
|
18
|
-
song: "song",
|
|
19
|
-
songti: "song",
|
|
20
|
-
serif: "song",
|
|
21
|
-
kai: "kai",
|
|
22
|
-
kaiti: "kai",
|
|
23
|
-
"kai-ti": "kai",
|
|
24
|
-
"fang-song": "fang-song",
|
|
25
|
-
fangsong: "fang-song",
|
|
26
|
-
"fang song": "fang-song"
|
|
27
|
-
};
|
|
28
|
-
var normalizeFontPreset = (value) => {
|
|
29
|
-
const normalized = asTrimmedLowercaseString(value);
|
|
30
|
-
if (!Object.hasOwn(FONT_PRESET_ALIASES, normalized)) return void 0;
|
|
31
|
-
return FONT_PRESET_ALIASES[normalized];
|
|
32
|
-
};
|
|
33
7
|
|
|
34
8
|
// packages/ai/policy/types.ts
|
|
35
9
|
var DEFAULT_AGENT_BASE_POLICY = {
|
|
@@ -147,7 +121,6 @@ var normalizeAgentUpdateFieldList = (value, fallback = DEFAULT_AUTO_APPROVED_SEL
|
|
|
147
121
|
};
|
|
148
122
|
|
|
149
123
|
export {
|
|
150
|
-
normalizeFontPreset,
|
|
151
124
|
DEFAULT_AGENT_BASE_POLICY,
|
|
152
125
|
DEFAULT_USER_PREFERENCE_PROFILE,
|
|
153
126
|
AGENT_UPDATE_FIELD_NAMES,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assembleAgentDiscoveryResult,
|
|
3
3
|
resolveDiscoveryScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KLA62VVE.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchWithTransientRetry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KFHREHUQ.js";
|
|
8
8
|
import {
|
|
9
9
|
getUserDataItemTimestamp,
|
|
10
10
|
mergeAndDedupUserData
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
toolRunUpdated,
|
|
21
21
|
uiCardFallback,
|
|
22
22
|
waitForAbortableDelay
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NKBMD4TC.js";
|
|
24
24
|
import {
|
|
25
25
|
isGatewayHttpStatus
|
|
26
26
|
} from "./chunk-NF64D32W.js";
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
isDrainExhaustedResponse,
|
|
31
31
|
normalizeNonNegativeMs,
|
|
32
32
|
parseRetryAfterHeaderMs
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3L2WKC3W.js";
|
|
34
34
|
import {
|
|
35
35
|
AGENT_UPDATE_FIELD_NAMES,
|
|
36
36
|
normalizeAgentUpdateFieldList
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-VYNMQ6HW.js";
|
|
38
38
|
import {
|
|
39
39
|
ToolApiError,
|
|
40
40
|
buildToolRequestHeaders,
|
|
@@ -42,14 +42,14 @@ import {
|
|
|
42
42
|
getRequestConfig,
|
|
43
43
|
getToolBaseUrl,
|
|
44
44
|
getToolRequestContext
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MYOH447Z.js";
|
|
46
46
|
import {
|
|
47
47
|
readDocFunc,
|
|
48
48
|
readDocFunctionSchema,
|
|
49
49
|
readPageFunc,
|
|
50
50
|
readPageFunctionSchema,
|
|
51
51
|
resolvePageReadMarkdown
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-US6MKPE7.js";
|
|
53
53
|
import {
|
|
54
54
|
markdownToSlate
|
|
55
55
|
} from "./chunk-5MM7NNO6.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-VF4K2QE6.js";
|
|
65
65
|
import {
|
|
66
66
|
createDocState
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-ILVOUUMR.js";
|
|
68
68
|
import {
|
|
69
69
|
addMemberSpace,
|
|
70
70
|
fetchAuthoritativeRemoteSpace,
|
|
@@ -76,16 +76,16 @@ import {
|
|
|
76
76
|
setMembershipRejected,
|
|
77
77
|
setSpaceInitialized,
|
|
78
78
|
updateMemberSpaceName
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-J2ATF74A.js";
|
|
80
80
|
import {
|
|
81
81
|
createDialogAction
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-QEONMOV7.js";
|
|
83
83
|
import {
|
|
84
84
|
setDialogExtraReferencesAction
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-CON6SI7N.js";
|
|
86
86
|
import {
|
|
87
87
|
shareResourceAction
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-YPG7TUQD.js";
|
|
89
89
|
import {
|
|
90
90
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
91
91
|
addContentToSpace,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
updateContentCategory,
|
|
103
103
|
updateContentTitle,
|
|
104
104
|
writeStoredCollapsedCategories
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-6COBMDV4.js";
|
|
106
106
|
import {
|
|
107
107
|
buildDatabaseFileContentUrl,
|
|
108
108
|
deleteDialog,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
selectMsgById,
|
|
116
116
|
uiAskChoiceFunc,
|
|
117
117
|
uiAskChoiceFunctionSchema
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-QSKN3E7Q.js";
|
|
119
119
|
import {
|
|
120
120
|
buildMediaToolConfirmation,
|
|
121
121
|
normalizeMediaConfirmExecutionRevision
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
runLlm,
|
|
127
127
|
streamAgentChatTurn,
|
|
128
128
|
updateAgent
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-ACTR4SH2.js";
|
|
130
130
|
import {
|
|
131
131
|
getCurrentSpaceId,
|
|
132
132
|
getCurrentSpaceIdRaw,
|
|
@@ -148,12 +148,12 @@ import {
|
|
|
148
148
|
import {
|
|
149
149
|
selectCurrentServer,
|
|
150
150
|
selectSyncServers
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-32ZKZET7.js";
|
|
152
152
|
import {
|
|
153
153
|
UNCATEGORIZED_ID,
|
|
154
154
|
addContentAction,
|
|
155
155
|
checkSpaceMembership
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-M2P3OGXZ.js";
|
|
157
157
|
import {
|
|
158
158
|
createSpaceKey,
|
|
159
159
|
normalizeSpaceId
|
|
@@ -169,10 +169,10 @@ import {
|
|
|
169
169
|
selectEntities,
|
|
170
170
|
toTimestampMs,
|
|
171
171
|
write
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-ZVQHBIWV.js";
|
|
173
173
|
import {
|
|
174
174
|
readAction
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-NDZOXXIM.js";
|
|
176
176
|
import {
|
|
177
177
|
DEVICE_LOCAL_OWNER_ID,
|
|
178
178
|
getRuntimeServerContext,
|
|
@@ -182,16 +182,16 @@ import {
|
|
|
182
182
|
resolveEffectiveSpaceActorId,
|
|
183
183
|
resolveRecordOwnerUserId,
|
|
184
184
|
selectRuntimeSnapshot
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-2SGAI64X.js";
|
|
186
186
|
import {
|
|
187
187
|
createAsyncThunk,
|
|
188
188
|
noloWriteRequest
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-WRCZXJ4N.js";
|
|
190
190
|
import {
|
|
191
191
|
selectIdentityToken,
|
|
192
192
|
selectIdentityUserBalance,
|
|
193
193
|
selectIdentityUserId
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-PXYBUFDB.js";
|
|
195
195
|
import {
|
|
196
196
|
buildTombstoneRecord,
|
|
197
197
|
isTombstoneRecord
|
|
@@ -199,7 +199,7 @@ import {
|
|
|
199
199
|
import {
|
|
200
200
|
listBuiltinSkills,
|
|
201
201
|
resolveBuiltinSkillByName
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-DC3SZCRR.js";
|
|
203
203
|
import {
|
|
204
204
|
CAPABILITY_PACKS
|
|
205
205
|
} from "./chunk-JZX2XLKC.js";
|
|
@@ -302,7 +302,7 @@ import {
|
|
|
302
302
|
DEFAULT_MODEL,
|
|
303
303
|
clampReasoningEffort,
|
|
304
304
|
resolveModelReasoningCapabilityWithCache
|
|
305
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-TRW43TSC.js";
|
|
306
306
|
import {
|
|
307
307
|
isRecord
|
|
308
308
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -1019,7 +1019,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
|
|
|
1019
1019
|
workspace: { mode: "lease" }
|
|
1020
1020
|
};
|
|
1021
1021
|
var findModelConfig = async (modelName, provider) => {
|
|
1022
|
-
const { ALL_MODELS } = await import("./models-
|
|
1022
|
+
const { ALL_MODELS } = await import("./models-PZQC7VV4.js");
|
|
1023
1023
|
const name = toTrimmedString(modelName);
|
|
1024
1024
|
const prov = toTrimmedString(provider ?? "");
|
|
1025
1025
|
if (!name) return null;
|
|
@@ -1264,7 +1264,7 @@ var buildPlatformFormDataFromArgs = async (args) => {
|
|
|
1264
1264
|
const trimmedModel = toTrimmedString(model);
|
|
1265
1265
|
const trimmedProvider = toTrimmedString(provider);
|
|
1266
1266
|
const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
|
|
1267
|
-
const { getModelPricing } = await import("./getPricing-
|
|
1267
|
+
const { getModelPricing } = await import("./getPricing-TX35D7PI.js");
|
|
1268
1268
|
const normalizedTools = tools ?? [];
|
|
1269
1269
|
const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
|
|
1270
1270
|
const formData = {
|
|
@@ -3881,7 +3881,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3881
3881
|
const deletedDialogIds = [];
|
|
3882
3882
|
const deletedDialogKeys = [];
|
|
3883
3883
|
const failures = [];
|
|
3884
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3884
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-DS22VO6X.js");
|
|
3885
3885
|
for (const target of targets) {
|
|
3886
3886
|
try {
|
|
3887
3887
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -4197,7 +4197,7 @@ var readSkillDocFunctionSchema = {
|
|
|
4197
4197
|
}
|
|
4198
4198
|
};
|
|
4199
4199
|
async function readSkillDocFunc(args, thunkApi) {
|
|
4200
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
4200
|
+
const { buildReadDocResult } = await import("./readDocTool-QELXV2GW.js");
|
|
4201
4201
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
4202
4202
|
if (typeof id !== "string" || !id.trim()) {
|
|
4203
4203
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -4467,6 +4467,7 @@ var createInitialState = () => ({
|
|
|
4467
4467
|
favoritedAtById: {},
|
|
4468
4468
|
initialized: false,
|
|
4469
4469
|
loading: false,
|
|
4470
|
+
snapshotComplete: false,
|
|
4470
4471
|
error: null
|
|
4471
4472
|
});
|
|
4472
4473
|
var state = createInitialState();
|
|
@@ -4986,7 +4987,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
4986
4987
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
4987
4988
|
const readSpace = async (dbKey) => {
|
|
4988
4989
|
try {
|
|
4989
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
4990
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-DC2J53RC.js");
|
|
4990
4991
|
if (fresh) {
|
|
4991
4992
|
return await dispatch(readAndWait2(dbKey)).unwrap();
|
|
4992
4993
|
}
|
|
@@ -9297,7 +9298,7 @@ ${preview}`
|
|
|
9297
9298
|
// packages/ai/tools/exaSearchTool.ts
|
|
9298
9299
|
var exaSearchSchema = {
|
|
9299
9300
|
name: "exa_search",
|
|
9300
|
-
description: "\u4F7F\u7528 Exa
|
|
9301
|
+
description: "\u4F7F\u7528 Exa \u667A\u80FD\u641C\u7D22\u5F15\u64CE\u67E5\u627E\u4FE1\u606F\u3002\u53EF\u9009\u5730\u6309\u68C0\u7D22\u610F\u56FE\u3001\u5185\u5BB9\u7C7B\u76EE\u3001\u65F6\u95F4\u8303\u56F4\u4E0E\u57DF\u540D\u505A\u6536\u7A84\u3002",
|
|
9301
9302
|
parameters: {
|
|
9302
9303
|
type: "object",
|
|
9303
9304
|
properties: {
|
|
@@ -9307,49 +9308,160 @@ var exaSearchSchema = {
|
|
|
9307
9308
|
},
|
|
9308
9309
|
numResults: {
|
|
9309
9310
|
type: "number",
|
|
9310
|
-
description: "\u8FD4\u56DE\u7684\u7ED3\u679C\u6570\u91CF\
|
|
9311
|
-
default: 5
|
|
9311
|
+
description: "\u8FD4\u56DE\u7684\u7ED3\u679C\u6570\u91CF\uFF1B\u4E0D\u586B\u5219\u6309\u670D\u52A1\u7AEF\u5B9A\u6863\u53D6\u503C\u3002"
|
|
9312
9312
|
},
|
|
9313
|
-
|
|
9314
|
-
type: "
|
|
9315
|
-
|
|
9316
|
-
|
|
9313
|
+
intent: {
|
|
9314
|
+
type: "string",
|
|
9315
|
+
enum: ["quick", "research", "exhaustive"],
|
|
9316
|
+
description: "\u68C0\u7D22\u610F\u56FE\u6863\u4F4D\uFF1Aquick\uFF1D\u5FEB\u901F\u626B\u4E00\u773C\uFF08\u9ED8\u8BA4\u6863\uFF0C\u591F\u7528\u5373\u53EF\uFF09\uFF1Bresearch\uFF1D\u6DF1\u5165\u8C03\u7814\uFF0C\u9700\u8981\u66F4\u5B8C\u6574\u7684\u7ED3\u679C\u4E0E\u66F4\u957F\u7684\u6458\u8981\uFF1Bexhaustive\uFF1D\u7A77\u5C3D\u5F0F\u68C0\u7D22\uFF0C\u7ED3\u679C\u6700\u591A\u3001\u5F00\u9500\u4E5F\u6700\u5927\u3002\u7EDD\u5927\u591A\u6570\u60C5\u51B5\u8BF7\u7701\u7565\u672C\u9879\u2014\u2014\u7701\u7565\u5373\u7531\u670D\u52A1\u7AEF\u6309\u573A\u666F\u81EA\u52A8\u5B9A\u6863\uFF0C\u4E0D\u8981\u4E3A\u4E86\u586B\u5B83\u800C\u731C\u6D4B\u3002"
|
|
9317
9317
|
},
|
|
9318
|
-
|
|
9318
|
+
category: {
|
|
9319
9319
|
type: "string",
|
|
9320
|
-
|
|
9321
|
-
description: "\u641C\u7D22\u7C7B\u578B\uFF1A'neural' (\u8BED\u4E49\u641C\u7D22\uFF0C\u9ED8\u8BA4) \u6216 'keyword' (\u7CBE\u786E\u5339\u914D)\u3002",
|
|
9322
|
-
default: "neural"
|
|
9320
|
+
description: "\u5185\u5BB9\u7C7B\u76EE\u7B5B\u9009\u3002\u5E38\u89C1\u53D6\u503C\uFF1Apublication\uFF08\u8BBA\u6587/\u51FA\u7248\u7269\uFF09\u3001company\uFF08\u516C\u53F8\u4FE1\u606F\uFF09\u3001people\uFF08\u4EBA\u7269\uFF09\u3001news\uFF08\u65B0\u95FB\u8D44\u8BAF\uFF09\u3002\u4E0D\u786E\u5B9A\u7C7B\u76EE\u5C31\u522B\u586B\uFF0C\u7559\u7A7A\u5373\u53EF\u3002"
|
|
9323
9321
|
},
|
|
9324
|
-
|
|
9325
|
-
type: "
|
|
9326
|
-
|
|
9327
|
-
|
|
9322
|
+
timeRange: {
|
|
9323
|
+
type: "string",
|
|
9324
|
+
enum: ["day", "week", "month", "year"],
|
|
9325
|
+
description: "\u53EA\u4FDD\u7559\u8BE5\u65F6\u95F4\u8303\u56F4\u5185\u53D1\u5E03\u7684\u7ED3\u679C\uFF08day\uFF1D24 \u5C0F\u65F6\u5185\uFF0Cweek\uFF1D\u4E00\u5468\u5185\uFF0Cmonth\uFF1D\u4E00\u6708\u5185\uFF0Cyear\uFF1D\u4E00\u5E74\u5185\uFF09\u3002\u4E0D\u586B\u5219\u4E0D\u9650\u65F6\u95F4\u3002"
|
|
9326
|
+
},
|
|
9327
|
+
includeDomains: {
|
|
9328
|
+
type: "array",
|
|
9329
|
+
items: { type: "string" },
|
|
9330
|
+
description: '\u53EA\u4FDD\u7559\u8FD9\u4E9B\u57DF\u540D\u4E0B\u7684\u7ED3\u679C\uFF08\u4F8B\u5982 ["arxiv.org"]\uFF09\u3002\u4E0D\u586B\u5219\u4E0D\u9650\u3002'
|
|
9331
|
+
},
|
|
9332
|
+
excludeDomains: {
|
|
9333
|
+
type: "array",
|
|
9334
|
+
items: { type: "string" },
|
|
9335
|
+
description: '\u6392\u9664\u8FD9\u4E9B\u57DF\u540D\u4E0B\u7684\u7ED3\u679C\uFF08\u4F8B\u5982 ["pinterest.com"]\uFF09\u3002\u4E0D\u586B\u5219\u4E0D\u6392\u9664\u3002'
|
|
9328
9336
|
}
|
|
9329
9337
|
},
|
|
9330
9338
|
required: ["query"]
|
|
9331
9339
|
}
|
|
9332
9340
|
};
|
|
9333
|
-
var
|
|
9334
|
-
|
|
9335
|
-
|
|
9341
|
+
var EXA_SEARCH_TOOL_NAME = "exa_search";
|
|
9342
|
+
var NON_COMPLETED_TOOL_STATUS = /* @__PURE__ */ new Set(["running", "pending"]);
|
|
9343
|
+
var collectDialogMessages = (state2, dialogId) => {
|
|
9344
|
+
if (!dialogId) return [];
|
|
9345
|
+
const slice = state2?.message ?? state2?.messages;
|
|
9346
|
+
const dialogState = slice?.[dialogId];
|
|
9347
|
+
const msgs = dialogState?.msgs ?? dialogState;
|
|
9348
|
+
if (!msgs || typeof msgs !== "object") return [];
|
|
9349
|
+
const entities = msgs.entities ?? {};
|
|
9350
|
+
const ids = Array.isArray(msgs.ids) ? msgs.ids : Object.keys(entities);
|
|
9351
|
+
const out = [];
|
|
9352
|
+
for (const id of ids) {
|
|
9353
|
+
const m = entities[id];
|
|
9354
|
+
if (m && typeof m === "object") out.push(m);
|
|
9355
|
+
}
|
|
9356
|
+
return out;
|
|
9357
|
+
};
|
|
9358
|
+
var isExaSearchRow = (m) => {
|
|
9359
|
+
if (!m || typeof m !== "object") return false;
|
|
9360
|
+
const payload = m.toolPayload;
|
|
9361
|
+
const name = m.toolName ?? payload?.toolName;
|
|
9362
|
+
const status = payload?.status;
|
|
9363
|
+
if (typeof status === "string" && NON_COMPLETED_TOOL_STATUS.has(status)) {
|
|
9364
|
+
return false;
|
|
9365
|
+
}
|
|
9366
|
+
return name === EXA_SEARCH_TOOL_NAME;
|
|
9367
|
+
};
|
|
9368
|
+
var readResultCount = (m) => {
|
|
9369
|
+
const candidates = [
|
|
9370
|
+
m?.content,
|
|
9371
|
+
m?.toolPayload?.rawData,
|
|
9372
|
+
m?.toolPayload?.output,
|
|
9373
|
+
m?.toolPayload?.result
|
|
9374
|
+
];
|
|
9375
|
+
for (const candidate of candidates) {
|
|
9376
|
+
let value = candidate;
|
|
9377
|
+
if (typeof value === "string") {
|
|
9378
|
+
try {
|
|
9379
|
+
value = JSON.parse(value);
|
|
9380
|
+
} catch {
|
|
9381
|
+
continue;
|
|
9382
|
+
}
|
|
9383
|
+
}
|
|
9384
|
+
if (!value || typeof value !== "object") continue;
|
|
9385
|
+
const inner = value.rawData ?? value;
|
|
9386
|
+
const results = inner?.results;
|
|
9387
|
+
if (Array.isArray(results)) return results.length;
|
|
9388
|
+
}
|
|
9389
|
+
return void 0;
|
|
9390
|
+
};
|
|
9391
|
+
var resolvePlanSignals = (thunkApi, context2) => {
|
|
9392
|
+
let priorSearches = context2?.priorSearches;
|
|
9393
|
+
let lastResultCount = context2?.lastResultCount;
|
|
9394
|
+
if (priorSearches === void 0) {
|
|
9395
|
+
let rows = [];
|
|
9396
|
+
try {
|
|
9397
|
+
rows = collectDialogMessages(
|
|
9398
|
+
thunkApi?.getState?.(),
|
|
9399
|
+
context2?.dialogId
|
|
9400
|
+
);
|
|
9401
|
+
} catch {
|
|
9402
|
+
rows = [];
|
|
9403
|
+
}
|
|
9404
|
+
if (rows.length > 0) {
|
|
9405
|
+
const history = rows.filter(
|
|
9406
|
+
(m) => isExaSearchRow(m) && (!context2?.parentMessageId || m.parentMessageId !== context2.parentMessageId)
|
|
9407
|
+
);
|
|
9408
|
+
priorSearches = history.length;
|
|
9409
|
+
const last = history[history.length - 1];
|
|
9410
|
+
if (last) lastResultCount = readResultCount(last);
|
|
9411
|
+
}
|
|
9412
|
+
}
|
|
9413
|
+
return {
|
|
9414
|
+
...typeof priorSearches === "number" && Number.isFinite(priorSearches) ? { priorSearches: Math.max(0, Math.trunc(priorSearches)) } : {},
|
|
9415
|
+
...typeof lastResultCount === "number" && Number.isFinite(lastResultCount) ? { lastResultCount: Math.max(0, Math.trunc(lastResultCount)) } : {},
|
|
9416
|
+
...context2?.origin ? { origin: context2.origin } : {}
|
|
9417
|
+
};
|
|
9418
|
+
};
|
|
9419
|
+
var exaSearchFunc = async (input, thunkApi, context2) => {
|
|
9420
|
+
const {
|
|
9336
9421
|
query,
|
|
9337
9422
|
numResults,
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9423
|
+
intent,
|
|
9424
|
+
category,
|
|
9425
|
+
timeRange,
|
|
9426
|
+
includeDomains,
|
|
9427
|
+
excludeDomains,
|
|
9428
|
+
includeContent
|
|
9429
|
+
} = input;
|
|
9430
|
+
const body = { query };
|
|
9431
|
+
if (numResults !== void 0) body.numResults = numResults;
|
|
9432
|
+
if (typeof intent === "string" && intent) body.intent = intent;
|
|
9433
|
+
if (typeof category === "string" && category) body.category = category;
|
|
9434
|
+
if (typeof timeRange === "string" && timeRange) body.timeRange = timeRange;
|
|
9435
|
+
if (Array.isArray(includeDomains) && includeDomains.length > 0) {
|
|
9436
|
+
body.includeDomains = includeDomains;
|
|
9437
|
+
}
|
|
9438
|
+
if (Array.isArray(excludeDomains) && excludeDomains.length > 0) {
|
|
9439
|
+
body.excludeDomains = excludeDomains;
|
|
9440
|
+
}
|
|
9441
|
+
if (typeof includeContent === "boolean") body.includeContent = includeContent;
|
|
9442
|
+
const signals = resolvePlanSignals(thunkApi, context2);
|
|
9443
|
+
if (signals.priorSearches !== void 0) body.priorSearches = signals.priorSearches;
|
|
9444
|
+
if (signals.lastResultCount !== void 0) body.lastResultCount = signals.lastResultCount;
|
|
9445
|
+
if (signals.origin) body.origin = signals.origin;
|
|
9446
|
+
const data = await callToolApi(thunkApi, "/api/exa-search", body, { withAuth: true });
|
|
9447
|
+
const results = (data.results || []).map((item) => {
|
|
9448
|
+
const raw = item.text ?? (Array.isArray(item.highlights) ? item.highlights.join("\n") : void 0);
|
|
9449
|
+
return {
|
|
9450
|
+
title: item.title,
|
|
9451
|
+
url: item.url,
|
|
9452
|
+
publishedDate: item.publishedDate,
|
|
9453
|
+
author: item.author,
|
|
9454
|
+
content: typeof raw === "string" ? raw.slice(0, 2500) : void 0
|
|
9455
|
+
};
|
|
9456
|
+
});
|
|
9457
|
+
const warnings = Array.isArray(data.warnings) ? data.warnings : void 0;
|
|
9349
9458
|
return {
|
|
9350
9459
|
summary: `Found ${results.length} results for "${query}"`,
|
|
9351
9460
|
results,
|
|
9352
|
-
queryUsed: data.autopromptString || query
|
|
9461
|
+
queryUsed: data.queryUsed || data.autopromptString || query,
|
|
9462
|
+
...warnings && warnings.length > 0 ? { warnings } : {},
|
|
9463
|
+
// plan.ruleId 让调用方能判断服务端这次命中的定档规则是否合预期。
|
|
9464
|
+
...data.plan && typeof data.plan === "object" ? { plan: data.plan } : {}
|
|
9353
9465
|
};
|
|
9354
9466
|
};
|
|
9355
9467
|
|
|
@@ -10744,7 +10856,7 @@ var cloudflareCrawlStatusFunctionSchema = {
|
|
|
10744
10856
|
async function cloudflareCrawlStatusFunc(args, thunkApi) {
|
|
10745
10857
|
const { jobId, limit, status, cursor } = args;
|
|
10746
10858
|
if (!jobId) throw new Error("\u5FC5\u987B\u63D0\u4F9B jobId");
|
|
10747
|
-
const { getToolRequestContext: getToolRequestContext2 } = await import("./toolApiClient-
|
|
10859
|
+
const { getToolRequestContext: getToolRequestContext2 } = await import("./toolApiClient-HGNO53TC.js");
|
|
10748
10860
|
const { baseUrl, token } = getToolRequestContext2(thunkApi);
|
|
10749
10861
|
const params = new URLSearchParams();
|
|
10750
10862
|
if (limit !== void 0) params.set("limit", String(limit));
|
|
@@ -11522,7 +11634,7 @@ var selectUserIdFromState = (state2) => {
|
|
|
11522
11634
|
var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
|
|
11523
11635
|
async function addImageContentToSpace(input) {
|
|
11524
11636
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
11525
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
11637
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-BI6RDRTQ.js")).addContentAction;
|
|
11526
11638
|
await addContentAction2(
|
|
11527
11639
|
{
|
|
11528
11640
|
spaceId: input.spaceId,
|
|
@@ -17758,6 +17870,8 @@ function toAppSummary(record, fallbackServerOrigin) {
|
|
|
17758
17870
|
}
|
|
17759
17871
|
|
|
17760
17872
|
// packages/app/utils/myContentItems.ts
|
|
17873
|
+
var dialogSummaryStatus = (value) => value === null || typeof value === "string" && ["pending", "running", "done", "completed", "failed", "cancelled"].includes(value) ? value : void 0;
|
|
17874
|
+
var dialogSummaryUnreadAt = (value) => value === null || typeof value === "number" && Number.isFinite(value) && value > 0 ? value : void 0;
|
|
17761
17875
|
var MY_CONTENT_USER_DATA_TYPES = [
|
|
17762
17876
|
"app" /* APP */,
|
|
17763
17877
|
"page" /* DOC */,
|
|
@@ -17837,9 +17951,12 @@ function buildMyContentItemsFromUserData(records, currentServer, spaceNameById,
|
|
|
17837
17951
|
fileSize: typeof record.fileSize === "number" ? record.fileSize : void 0,
|
|
17838
17952
|
originalName: typeof record.originalName === "string" && record.originalName.trim().length > 0 ? record.originalName : void 0,
|
|
17839
17953
|
contentKey,
|
|
17954
|
+
...record.type === "dialog" ? { status: dialogSummaryStatus(record.status), unreadAt: dialogSummaryUnreadAt(record.unreadAt) } : {},
|
|
17840
17955
|
pinned: Boolean(record.pinned),
|
|
17841
17956
|
createdAt: record.createdAt ?? record.created ?? 0,
|
|
17842
17957
|
updatedAt: timestamp,
|
|
17958
|
+
...record.deletedAt !== void 0 ? { deletedAt: record.deletedAt } : {},
|
|
17959
|
+
...record.restoredAt !== void 0 ? { restoredAt: record.restoredAt } : {},
|
|
17843
17960
|
spaceId,
|
|
17844
17961
|
spaceName,
|
|
17845
17962
|
serverOrigin: typeof record.serverOrigin === "string" && record.serverOrigin.trim().length > 0 ? record.serverOrigin : void 0,
|
|
@@ -18079,7 +18196,7 @@ var getMessageSortValue = (message) => {
|
|
|
18079
18196
|
const id = normalizeDialogSearchText(message.id);
|
|
18080
18197
|
return id ? id : normalizeDialogSearchText(message.dbKey);
|
|
18081
18198
|
};
|
|
18082
|
-
async function
|
|
18199
|
+
async function collectDialogMessages2(db, dialogId) {
|
|
18083
18200
|
if (!db?.iterator) return [];
|
|
18084
18201
|
const { start, end } = dialogMessageRange(dialogId);
|
|
18085
18202
|
let iterator = db.iterator({
|
|
@@ -18128,7 +18245,7 @@ async function fetchDialogMessagesFromServer(args) {
|
|
|
18128
18245
|
}));
|
|
18129
18246
|
}
|
|
18130
18247
|
async function collectBestAvailableDialogMessages(db, dialogId, thunkApi, scanLimit, dialogKey) {
|
|
18131
|
-
const localMessages = await
|
|
18248
|
+
const localMessages = await collectDialogMessages2(db, dialogId);
|
|
18132
18249
|
const state2 = thunkApi?.getState?.();
|
|
18133
18250
|
const runtime = state2 ? selectRuntimeSnapshot(state2) : null;
|
|
18134
18251
|
const serverBases = Array.from(new Set([
|
|
@@ -18307,7 +18424,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18307
18424
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18308
18425
|
};
|
|
18309
18426
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18310
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18427
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-UFEWRQ5W.js");
|
|
18311
18428
|
if (getDocState().pageKey === id) {
|
|
18312
18429
|
applyExternalDocUpdate({
|
|
18313
18430
|
slateData: finalSlateData,
|
|
@@ -18332,7 +18449,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18332
18449
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
18333
18450
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
18334
18451
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
18335
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-
|
|
18452
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-4Z43ZSAT.js")).setSettings;
|
|
18336
18453
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
18337
18454
|
}
|
|
18338
18455
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -20155,7 +20272,7 @@ var baseToolDefinitions = [
|
|
|
20155
20272
|
executor: exaSearchFunc,
|
|
20156
20273
|
description: {
|
|
20157
20274
|
name: "exa_search",
|
|
20158
|
-
description: "\u4F7F\u7528 Exa \
|
|
20275
|
+
description: "\u4F7F\u7528 Exa \u667A\u80FD\u641C\u7D22\u5F15\u64CE\u83B7\u53D6\u9AD8\u8D28\u91CF\u3001\u7ED3\u6784\u5316\u7684\u7F51\u7EDC\u4FE1\u606F\uFF1B\u53EF\u6309\u68C0\u7D22\u610F\u56FE\u3001\u5185\u5BB9\u7C7B\u76EE\u3001\u65F6\u95F4\u8303\u56F4\u4E0E\u57DF\u540D\u6536\u7A84\uFF0C\u9ED8\u8BA4\u7531\u670D\u52A1\u7AEF\u6309\u573A\u666F\u81EA\u52A8\u5B9A\u6863\u3002",
|
|
20159
20276
|
category: "\u7F51\u7EDC\u4E0E\u667A\u80FD"
|
|
20160
20277
|
},
|
|
20161
20278
|
behavior: "data"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectIdentityToken
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PXYBUFDB.js";
|
|
4
4
|
import {
|
|
5
5
|
isAbortError
|
|
6
6
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -996,7 +996,7 @@ function peek(draft, prop) {
|
|
|
996
996
|
return source[prop];
|
|
997
997
|
}
|
|
998
998
|
function isRelocatedBaseRef(state, prop, value) {
|
|
999
|
-
if (state.type_ !== 1 || !state.allIndicesReassigned_ ||
|
|
999
|
+
if (state.type_ !== 1 || !state.allIndicesReassigned_ || !isDraftable(value) || value[DRAFT_STATE]) {
|
|
1000
1000
|
return false;
|
|
1001
1001
|
}
|
|
1002
1002
|
return state.baseRefs_.has(value);
|
|
@@ -1219,8 +1219,11 @@ function currentImpl(value) {
|
|
|
1219
1219
|
} else {
|
|
1220
1220
|
copy = shallowCopy(value, true);
|
|
1221
1221
|
}
|
|
1222
|
+
const source = copy;
|
|
1223
|
+
if (isSet(copy))
|
|
1224
|
+
copy = /* @__PURE__ */ new Set();
|
|
1222
1225
|
each(
|
|
1223
|
-
|
|
1226
|
+
source,
|
|
1224
1227
|
(key, childValue) => {
|
|
1225
1228
|
set(copy, key, currentImpl(childValue));
|
|
1226
1229
|
},
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// packages/core/positiveFiniteNumberOrFallback.ts
|
|
2
|
+
function parsePositiveFiniteNumberOrFallback(value, fallback) {
|
|
3
|
+
const parsed = Number(value);
|
|
4
|
+
return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
parsePositiveFiniteNumberOrFallback
|
|
9
|
+
};
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
} from "./chunk-WWC7I6TA.js";
|
|
13
13
|
import {
|
|
14
14
|
getModelConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TRW43TSC.js";
|
|
16
16
|
import {
|
|
17
17
|
isPlatformHostedImageModel,
|
|
18
18
|
isPlatformManagedProvider,
|
|
19
19
|
resolvePlatformEffectiveModel
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CGFNDIKK.js";
|
|
21
21
|
|
|
22
22
|
// packages/ai/llm/getPricing.ts
|
|
23
23
|
var MAX_OUTPUT_TOKENS = 8192;
|