nolo-cli 0.29.2 → 0.30.0-alpha.2
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-BFVTGZXE.js → _executeModel-VBHHG7LT.js} +62 -68
- package/{action-LG32A6DJ.js → action-FENWPT3C.js} +14 -15
- package/{addContentAction-MPGMBJTQ.js → addContentAction-Z5S5ZQ7I.js} +12 -12
- package/{addDialogAgentAction-ZH23WDID.js → addDialogAgentAction-VUNVD2XR.js} +11 -11
- package/{agentDeleteCommand-4S4STG42.js → agentDeleteCommand-LLGZXUYJ.js} +60 -39
- package/{agentEmailCommands-3F4IP4DI.js → agentEmailCommands-LC2FPN6G.js} +76 -81
- package/{agentGrantCommands-JNDE4RWR.js → agentGrantCommands-E7ZZFRHK.js} +2 -1
- package/{agentListCommands-JCRV2XF6.js → agentListCommands-A6OBQ3QX.js} +57 -40
- package/{agentMachineCommands-KYXPYSFP.js → agentMachineCommands-4O4Q5B5X.js} +53 -35
- package/{agentPullCommand-ZZGU5KOY.js → agentPullCommand-4V36XNGV.js} +4 -3
- package/{agentRecordCommands-UADUPIXO.js → agentRecordCommands-W22RIQRV.js} +73 -78
- package/{agentRunCommand-MJWSR53W.js → agentRunCommand-V4OBU4FB.js} +77 -82
- package/{agentRunControl-SNUKXN6J.js → agentRunControl-AKBN2366.js} +13 -1
- package/{agentRuntimeLocal-PC5RRRPT.js → agentRuntimeLocal-I57YSGH4.js} +48 -30
- package/{agentSlice-C5OYLNBT.js → agentSlice-3ZHY7RAO.js} +12 -13
- package/{appDeleteCommands-ZXODZ5AD.js → appDeleteCommands-DJJF466K.js} +53 -35
- package/{appDeployCommands-AWC6JPZH.js → appDeployCommands-WJZGIOEZ.js} +53 -35
- package/{appDeployStatusCommands-74NXMDAI.js → appDeployStatusCommands-ICYXUJNO.js} +53 -35
- package/{appGetCommands-6YGIAP5L.js → appGetCommands-UOCWYJPV.js} +53 -35
- package/{appListCommands-DZWBHMNK.js → appListCommands-EOKWTXPW.js} +53 -35
- package/{authCommand-XMQHBK5L.js → authCommand-H5KE7K7K.js} +16 -16
- package/{authCommands-JSOG2H4E.js → authCommands-CXJ6PI2O.js} +7 -7
- package/{chunk-OEWEE4VW.js → chunk-2XM5KUNE.js} +4 -2
- package/{chunk-7H3UTGPM.js → chunk-3AUWC6EM.js} +82 -3
- package/{chunk-HEXXIS77.js → chunk-3RIWR23B.js} +1 -1
- package/{chunk-R7LOFGRE.js → chunk-446VANPP.js} +18 -14
- package/{chunk-RZNYL4LW.js → chunk-4SAV7BD7.js} +65 -1
- package/{chunk-QC6ZWDSV.js → chunk-56IUA7RU.js} +3 -3
- package/{chunk-R3JSTDQO.js → chunk-66O5MZYH.js} +1 -1
- package/{chunk-PSK2RUHV.js → chunk-7CD24PU4.js} +360 -2
- package/{chunk-G2BZ43DV.js → chunk-A4JDTA5T.js} +13 -13
- package/{chunk-DZ3XJVET.js → chunk-AOS5IN2I.js} +1 -1
- package/{chunk-SKDNBYZK.js → chunk-BOL2D2JW.js} +1 -1
- package/{chunk-YTA2QOEE.js → chunk-CAENRKNJ.js} +15 -0
- package/{chunk-2TYLTEAH.js → chunk-CV6I4HBA.js} +1 -1
- package/chunk-DCDL3GC4.js +171 -0
- package/{chunk-FVOSIYXM.js → chunk-DCWBP2O7.js} +42 -393
- package/{chunk-OLWMGSW2.js → chunk-DI6MXJK5.js} +37 -37
- package/{chunk-HRPWRVBI.js → chunk-DKRT67FG.js} +11 -11
- package/{chunk-L6RBX4L4.js → chunk-DWQNDGO7.js} +20 -8
- package/{chunk-VKBTAQWT.js → chunk-FS5TTXPS.js} +6 -6
- package/chunk-G5JHHUAK.js +73 -0
- package/{chunk-TOGGHWHI.js → chunk-G6VITLCZ.js} +3 -3
- package/{chunk-RJBTU7AS.js → chunk-GAGUBI42.js} +302 -14
- package/{chunk-NXMJ55RU.js → chunk-GVKTKT3O.js} +3 -3
- package/{chunk-5ZXNLOAG.js → chunk-HI7QZNWX.js} +17 -10
- package/{chunk-DF7SMWEV.js → chunk-HLG6GAUD.js} +1 -1
- package/{chunk-MQRZ5QUH.js → chunk-IXZX5CJK.js} +1 -1
- package/{chunk-IC7W63RM.js → chunk-IZ3CBMD5.js} +3 -3
- package/{chunk-VHBWHNVT.js → chunk-K6QEHQZ3.js} +8 -4
- package/chunk-KW47OSRJ.js +3246 -0
- package/{chunk-Q5RXHXKU.js → chunk-KWKD3BCC.js} +189 -122
- package/{chunk-L65QKSVJ.js → chunk-L3GCUVOH.js} +1 -1
- package/{chunk-4BDPDTJU.js → chunk-L3VQOVKK.js} +8 -8
- package/{chunk-HALKDXKP.js → chunk-MEUZFIAJ.js} +8 -4
- package/{chunk-H5S4XUGI.js → chunk-MMCVBEAD.js} +174 -149
- package/{chunk-XOIF2TNF.js → chunk-OB6FBSH3.js} +13 -0
- package/chunk-OYK7PA5U.js +1707 -0
- package/{chunk-6HTWA77J.js → chunk-Q24P6TUS.js} +1 -1
- package/{chunk-GMJS5AYP.js → chunk-QLV2GKU5.js} +16 -178
- package/{chunk-WMB7GVPN.js → chunk-SWOTB2TX.js} +134 -1166
- package/{chunk-GC34RRTQ.js → chunk-SWYMCHM7.js} +1 -69
- package/{chunk-BBGRJB5E.js → chunk-SZ5CBYMZ.js} +4 -4
- package/chunk-T27IEBNQ.js +149 -0
- package/{chunk-WX3ZOSTL.js → chunk-T3Y5EMJS.js} +24 -26
- package/{chunk-UFL6WHHJ.js → chunk-THTAR67C.js} +1056 -137
- package/{chunk-2FX23RGA.js → chunk-TJYWZ3LO.js} +4 -4
- package/{chunk-KEF5OBOZ.js → chunk-UKC5HU2C.js} +33 -27
- package/{chunk-HRJEPMZY.js → chunk-UTQZ73QQ.js} +2 -2
- package/{chunk-GT3GG2H7.js → chunk-VSTUQGLT.js} +1 -1
- package/{chunk-32ZM6HVI.js → chunk-W2YKDXT7.js} +95 -95
- package/{chunk-L3QFIBZG.js → chunk-WTGCTVJG.js} +1 -1
- package/{chunk-XS7UPVR7.js → chunk-XD5NQEOH.js} +5 -5
- package/{chunk-WSQLK2KR.js → chunk-XFGM5PJP.js} +6 -6
- package/{chunk-JSB4N6NU.js → chunk-YLADSPDU.js} +3 -3
- package/{chunk-FRN5QOKN.js → chunk-YWGSCF37.js} +19 -4
- package/{codingSkills-EN6Z6G6U.js → codingSkills-V35TRR4Y.js} +1 -2
- package/{createAgentAutomationAction-BK4UZJKU.js → createAgentAutomationAction-3GMH6ORX.js} +30 -37
- package/{createDialogAction-MJJUI2MK.js → createDialogAction-R5MCL4RE.js} +32 -38
- package/{createPageAction-YMZ7K363.js → createPageAction-QYTG656R.js} +43 -50
- package/{dbSlice-6QJYQUBV.js → dbSlice-OBV7VFCF.js} +11 -11
- package/{deleteFile-WDZ3VM7B.js → deleteFile-AC45HYSM.js} +5 -5
- package/{dialogCommands-OKH45ASS.js → dialogCommands-NUQGIXVZ.js} +53 -37
- package/{dialogSlice-UDOKNDHB.js → dialogSlice-CFDECXEU.js} +27 -34
- package/{docCreateCommands-MCLMR4TE.js → docCreateCommands-UNFCXB5N.js} +52 -36
- package/{docDeleteCommands-ONDHI7JV.js → docDeleteCommands-NG5IVKE5.js} +54 -38
- package/{docReadCommands-FCXBMISW.js → docReadCommands-6J7MUUX6.js} +52 -36
- package/{docStore-N66O4CGH.js → docStore-MZZWJM4F.js} +28 -35
- package/{docUpdateCommands-T3XN6XOX.js → docUpdateCommands-6AW3VZOX.js} +55 -39
- package/{fetchMessages-W4IKHPCS.js → fetchMessages-VPPQDDZ4.js} +3 -3
- package/{getPricing-X6I23RN6.js → getPricing-XQYSSVV6.js} +6 -7
- package/{handleSendMessageAction-KC4AYUZP.js → handleSendMessageAction-IU2QNTLM.js} +30 -37
- package/index.js +72 -72
- package/{localDialogRead-UFLBS6OT.js → localDialogRead-P72W2U2R.js} +1 -1
- package/{machineCommands-DIMRFA3Y.js → machineCommands-Z2QEWTHZ.js} +76 -81
- package/{machineWsRunDispatch-2DYJZI6Z.js → machineWsRunDispatch-SJTYHZHN.js} +71 -76
- package/{models-YT32CTT5.js → models-WDUTTYFS.js} +2 -2
- package/{offlineMarxistsAgentCommand-5OOWZLJI.js → offlineMarxistsAgentCommand-E6LUG63A.js} +6 -2
- package/package.json +1 -1
- package/{read-C7Y6LSBM.js → read-QK7ZRX6G.js} +6 -6
- package/{readDocTool-TOHRYJHP.js → readDocTool-EYDMVRBL.js} +2 -1
- package/{readlineWorkspace-HUPHMLDG.js → readlineWorkspace-BGKPABK4.js} +208 -183
- package/{removeDialogAgentAction-WZXPOH5S.js → removeDialogAgentAction-TBW3UZJW.js} +15 -16
- package/{runAgentClientLoop-5TGSUKHV.js → runAgentClientLoop-N3YDLTMS.js} +61 -66
- package/{setDialogExtraReferencesAction-INZY2ENI.js → setDialogExtraReferencesAction-Q3ANF2NR.js} +12 -12
- package/{setPrimaryDialogAgentAction-WCVLPYCF.js → setPrimaryDialogAgentAction-FQ5R3EFJ.js} +15 -16
- package/{settingSlice-IDUM4LWU.js → settingSlice-JKKV2T7O.js} +13 -14
- package/{skillDiscovery-ITA7BI7A.js → skillDiscovery-I3QRA7NE.js} +2 -2
- package/{spaceCommands-XSSDB3YK.js → spaceCommands-R6AEQNLG.js} +57 -40
- package/{spaceSlice-BXDCO6PT.js → spaceSlice-MCH7RLLP.js} +27 -34
- package/{streamAgentChatTurn-HRFMVSVC.js → streamAgentChatTurn-Q4U2CVMI.js} +130 -1300
- package/{switchDialogAgentAction-YBFFCBOD.js → switchDialogAgentAction-QQGVE4SL.js} +11 -11
- package/{toolApiClient-WVTUYOFM.js → toolApiClient-ARGFDJAG.js} +2 -2
- package/{tools-5V6FHWQU.js → tools-Y3UBLLYW.js} +50 -56
- package/{tuiSummaryLlmCaller-GCUPULOV.js → tuiSummaryLlmCaller-4474IBTI.js} +12 -12
- package/{updateDialogTitleAction-W62C4W4K.js → updateDialogTitleAction-3J7GH67I.js} +35 -43
- package/chunk-5CS33IBL.js +0 -301
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-HYSJHRWD.js +0 -669
- package/chunk-MRC4Q34M.js +0 -188
- package/chunk-SIZQB7BD.js +0 -91
- package/chunk-UEOPA6MV.js +0 -641
- package/chunk-VIDPVFP3.js +0 -20
- package/chunk-W2LZV5GE.js +0 -231
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YYLHWIW6.js +0 -48
- package/chunk-Z54ZAZZC.js +0 -1791
- package/chunk-ZZ2MH7LE.js +0 -84
- package/{chunk-OMP5L5NF.js → chunk-44HACRCK.js} +3 -3
- package/{chunk-ZVZMT3EA.js → chunk-KWCLUYGQ.js} +3 -3
- package/{chunk-NRY4GCKJ.js → chunk-WHLVPK32.js} +3 -3
- package/{chunk-RQSOAMPJ.js → chunk-Z5MXSEOJ.js} +2 -2
- package/{chunk-XMLRJUU5.js → chunk-ZFTCLBEX.js} +9 -9
- package/{runtimeDoctorCommands-HSU632DY.js → runtimeDoctorCommands-E2OUORHK.js} +3 -3
- package/{tableCommands-QSZILI7I.js → tableCommands-PRJNWN6Q.js} +6 -6
|
@@ -5,84 +5,84 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W2YKDXT7.js";
|
|
9
|
+
import {
|
|
10
|
+
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
11
|
+
} from "./chunk-KW47OSRJ.js";
|
|
12
|
+
import {
|
|
13
|
+
accumulateToolCallDelta,
|
|
14
|
+
createThinkParserState,
|
|
15
|
+
createToolCallTextParserState,
|
|
16
|
+
flushThinkParser,
|
|
17
|
+
flushToolCallTextParserIntoCallback,
|
|
18
|
+
processContentChunkWithToolCallStripping,
|
|
19
|
+
processThinkChunk
|
|
20
|
+
} from "./chunk-N7J63Q6C.js";
|
|
9
21
|
import {
|
|
10
22
|
performFetchRequest
|
|
11
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DCWBP2O7.js";
|
|
12
24
|
import {
|
|
13
25
|
createSSEParser,
|
|
14
|
-
createToolRunId,
|
|
15
26
|
findToolExecutor,
|
|
27
|
+
toolDefinitionsByName
|
|
28
|
+
} from "./chunk-SWOTB2TX.js";
|
|
29
|
+
import {
|
|
30
|
+
createToolRunId,
|
|
16
31
|
getToolResultErrorData,
|
|
17
|
-
toolDefinitionsByName,
|
|
18
32
|
toolRunFailed,
|
|
19
33
|
toolRunSetPending,
|
|
20
34
|
toolRunStarted,
|
|
21
35
|
toolRunSucceeded
|
|
22
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-OYK7PA5U.js";
|
|
23
37
|
import {
|
|
24
38
|
getPublicImageAgentMode
|
|
25
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YWGSCF37.js";
|
|
26
40
|
import {
|
|
27
41
|
addToolMessage,
|
|
42
|
+
getModelInfo,
|
|
28
43
|
messageStreamEnd,
|
|
29
44
|
messageStreaming,
|
|
30
45
|
selectCurrentSpaceId,
|
|
31
46
|
updateToolMessage
|
|
32
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-THTAR67C.js";
|
|
33
48
|
import {
|
|
34
49
|
streamAgentChatTurn
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import {
|
|
37
|
-
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
38
|
-
} from "./chunk-Z54ZAZZC.js";
|
|
39
|
-
import {
|
|
40
|
-
accumulateToolCallDelta,
|
|
41
|
-
createThinkParserState,
|
|
42
|
-
createToolCallTextParserState,
|
|
43
|
-
flushThinkParser,
|
|
44
|
-
flushToolCallTextParserIntoCallback,
|
|
45
|
-
processContentChunkWithToolCallStripping,
|
|
46
|
-
processThinkChunk
|
|
47
|
-
} from "./chunk-N7J63Q6C.js";
|
|
50
|
+
} from "./chunk-GAGUBI42.js";
|
|
48
51
|
import {
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import {
|
|
52
|
-
getApiEndpoint
|
|
53
|
-
} from "./chunk-GT3GG2H7.js";
|
|
52
|
+
toErrorMessage
|
|
53
|
+
} from "./chunk-HNMXYYJR.js";
|
|
54
54
|
import {
|
|
55
55
|
addActiveController,
|
|
56
56
|
removeActiveController,
|
|
57
57
|
tokenUsageLiveUpdate
|
|
58
58
|
} from "./chunk-3ASDTTEI.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
getApiEndpoint
|
|
61
|
+
} from "./chunk-VSTUQGLT.js";
|
|
62
62
|
import {
|
|
63
63
|
selectCurrentServer
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-446VANPP.js";
|
|
65
65
|
import {
|
|
66
66
|
write
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-A4JDTA5T.js";
|
|
68
68
|
import {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
toTrimmedString
|
|
72
|
-
} from "./chunk-NRY4GCKJ.js";
|
|
69
|
+
extractCustomId
|
|
70
|
+
} from "./chunk-TOW4E763.js";
|
|
73
71
|
import {
|
|
74
72
|
createAsyncThunk,
|
|
75
73
|
selectIdentityToken
|
|
76
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-ZFTCLBEX.js";
|
|
77
75
|
import {
|
|
78
76
|
isAbortError
|
|
79
77
|
} from "./chunk-R5V5G73M.js";
|
|
78
|
+
import {
|
|
79
|
+
createDialogMessageKeyAndId,
|
|
80
|
+
dialogMessageKey,
|
|
81
|
+
toTrimmedString
|
|
82
|
+
} from "./chunk-WHLVPK32.js";
|
|
80
83
|
import {
|
|
81
84
|
asTrimmedString
|
|
82
85
|
} from "./chunk-3EUW3WEO.js";
|
|
83
|
-
import {
|
|
84
|
-
extractCustomId
|
|
85
|
-
} from "./chunk-TOW4E763.js";
|
|
86
86
|
import {
|
|
87
87
|
isRecord
|
|
88
88
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer,
|
|
3
3
|
selectRemoteServers
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
createUserKey,
|
|
7
|
-
extractAgentInfo,
|
|
8
|
-
extractCoverImage,
|
|
9
|
-
resolveShareAuthorIdentity,
|
|
10
|
-
sanitizeShareData,
|
|
11
|
-
shareKey,
|
|
12
|
-
toNonEmptyString
|
|
13
|
-
} from "./chunk-NRY4GCKJ.js";
|
|
4
|
+
} from "./chunk-446VANPP.js";
|
|
14
5
|
import {
|
|
15
6
|
noloDeleteRequest,
|
|
16
7
|
noloWriteRequest,
|
|
17
8
|
selectIdentityUser,
|
|
18
9
|
selectIdentityUserId
|
|
19
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZFTCLBEX.js";
|
|
20
11
|
import {
|
|
21
12
|
normalizeTimeFields
|
|
22
13
|
} from "./chunk-R5V5G73M.js";
|
|
14
|
+
import {
|
|
15
|
+
createUserKey,
|
|
16
|
+
extractAgentInfo,
|
|
17
|
+
extractCoverImage,
|
|
18
|
+
resolveShareAuthorIdentity,
|
|
19
|
+
sanitizeShareData,
|
|
20
|
+
shareKey,
|
|
21
|
+
toNonEmptyString
|
|
22
|
+
} from "./chunk-WHLVPK32.js";
|
|
23
23
|
|
|
24
24
|
// packages/share/action.ts
|
|
25
25
|
var generateToken = () => {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
publicAgentKey
|
|
3
|
+
} from "./chunk-TOW4E763.js";
|
|
1
4
|
import {
|
|
2
5
|
getRuntimeServerContext,
|
|
3
6
|
partitionReadServers,
|
|
@@ -7,7 +10,7 @@ import {
|
|
|
7
10
|
scheduleExistingRecordReplication,
|
|
8
11
|
shouldReplaceLocalWithRemoteRecord,
|
|
9
12
|
shouldReplicateLocalRecord
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZFTCLBEX.js";
|
|
11
14
|
import {
|
|
12
15
|
fetchFromClientDb,
|
|
13
16
|
fetchFromServer,
|
|
@@ -15,12 +18,6 @@ import {
|
|
|
15
18
|
isReadTimeoutError,
|
|
16
19
|
logger
|
|
17
20
|
} from "./chunk-R5V5G73M.js";
|
|
18
|
-
import {
|
|
19
|
-
shouldReplaceWithNextRecord
|
|
20
|
-
} from "./chunk-GBRG75BQ.js";
|
|
21
|
-
import {
|
|
22
|
-
publicAgentKey
|
|
23
|
-
} from "./chunk-TOW4E763.js";
|
|
24
21
|
import {
|
|
25
22
|
NOLO_CLUSTER_SERVERS,
|
|
26
23
|
normalizeKnownServerOrigin
|
|
@@ -28,6 +25,9 @@ import {
|
|
|
28
25
|
import {
|
|
29
26
|
normalizeServerOrigin
|
|
30
27
|
} from "./chunk-CF7PE763.js";
|
|
28
|
+
import {
|
|
29
|
+
shouldReplaceWithNextRecord
|
|
30
|
+
} from "./chunk-GBRG75BQ.js";
|
|
31
31
|
|
|
32
32
|
// packages/core/builtinAgentCatalog.ts
|
|
33
33
|
var BUILTIN_AGENT_CATALOG = [
|
|
@@ -100,6 +100,16 @@ var BUILTIN_AGENT_CATALOG = [
|
|
|
100
100
|
model: "kimi-k2.6",
|
|
101
101
|
runtimeFallback: true
|
|
102
102
|
},
|
|
103
|
+
{
|
|
104
|
+
id: "01QWEN37FLASH000000000001",
|
|
105
|
+
// 内部图片预处理器(imagePreprocessing.ts),不是广场商品:只需运行时兜底
|
|
106
|
+
// 拿到 provider/model,不应被 seed 写库、上架或计费。
|
|
107
|
+
group: "internal",
|
|
108
|
+
name: "Qwen 3.7 Flash",
|
|
109
|
+
provider: "nolo",
|
|
110
|
+
model: "qwen3.7-flash",
|
|
111
|
+
runtimeFallback: true
|
|
112
|
+
},
|
|
103
113
|
{
|
|
104
114
|
id: "01GPTIMG2GEN00000000SSEBOS",
|
|
105
115
|
group: "public",
|
|
@@ -186,6 +196,8 @@ var PUBLIC_DEEPSEEK_V4_PRO_AGENT_ID = entry("01DSV4PRONPB00000001VIR3EK").id;
|
|
|
186
196
|
var PUBLIC_DEEPSEEK_V4_PRO_AGENT_KEY = publicAgentKey(PUBLIC_DEEPSEEK_V4_PRO_AGENT_ID);
|
|
187
197
|
var PUBLIC_KIMI_K26_IMAGE_AGENT_ID = entry("01KIMIK26OLLAMA0000000001").id;
|
|
188
198
|
var PUBLIC_KIMI_K26_IMAGE_AGENT_KEY = publicAgentKey(PUBLIC_KIMI_K26_IMAGE_AGENT_ID);
|
|
199
|
+
var PUBLIC_QWEN_37_FLASH_AGENT_ID = entry("01QWEN37FLASH000000000001").id;
|
|
200
|
+
var PUBLIC_QWEN_37_FLASH_AGENT_KEY = publicAgentKey(PUBLIC_QWEN_37_FLASH_AGENT_ID);
|
|
189
201
|
var PUBLIC_GPT_IMAGE_2_GENERATOR_AGENT_ID = entry("01GPTIMG2GEN00000000SSEBOS").id;
|
|
190
202
|
var PUBLIC_GPT_IMAGE_2_GENERATOR_AGENT_KEY = publicAgentKey(PUBLIC_GPT_IMAGE_2_GENERATOR_AGENT_ID);
|
|
191
203
|
var PUBLIC_GPT_IMAGE_2_EDITOR_AGENT_ID = entry("01GPTIMG2EDT00000001R4R4H4").id;
|
|
@@ -622,7 +634,7 @@ export {
|
|
|
622
634
|
builtinRuntimeFallbackEntries,
|
|
623
635
|
BUILTIN_NOLO_AGENT_KEY,
|
|
624
636
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
|
|
625
|
-
|
|
637
|
+
PUBLIC_QWEN_37_FLASH_AGENT_KEY,
|
|
626
638
|
DEFAULT_CODE_PLANNER_EXECUTOR_CANDIDATE_KEYS,
|
|
627
639
|
isSystemBuiltinTrustedAgentKey,
|
|
628
640
|
readRequestManager,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-THTAR67C.js";
|
|
4
4
|
import {
|
|
5
5
|
require_date_fns
|
|
6
6
|
} from "./chunk-M76ECQRD.js";
|
|
7
|
-
import {
|
|
8
|
-
require_react
|
|
9
|
-
} from "./chunk-3ASDTTEI.js";
|
|
10
7
|
import {
|
|
11
8
|
toErrorMessage
|
|
12
9
|
} from "./chunk-HNMXYYJR.js";
|
|
10
|
+
import {
|
|
11
|
+
require_react
|
|
12
|
+
} from "./chunk-3ASDTTEI.js";
|
|
13
13
|
import {
|
|
14
14
|
patch,
|
|
15
15
|
readAndWait
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A4JDTA5T.js";
|
|
17
17
|
import {
|
|
18
18
|
asOptionalTrimmedString
|
|
19
19
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
async function createDocState(args, thunkApi) {
|
|
370
|
-
const { createPageAction } = await import("./createPageAction-
|
|
370
|
+
const { createPageAction } = await import("./createPageAction-QYTG656R.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import {
|
|
2
|
+
slateToSimplifiedMarkdown
|
|
3
|
+
} from "./chunk-SWYMCHM7.js";
|
|
4
|
+
import {
|
|
5
|
+
toErrorMessage
|
|
6
|
+
} from "./chunk-HNMXYYJR.js";
|
|
7
|
+
|
|
8
|
+
// packages/ai/tools/readDocTool.ts
|
|
9
|
+
var readDocFunctionSchema = {
|
|
10
|
+
name: "readDoc",
|
|
11
|
+
description: [
|
|
12
|
+
"\u8BFB\u53D6\u6307\u5B9A\u9875\u9762\u7684\u5185\u5BB9\uFF0C\u5E76\u5C06\u7ED3\u6784\u5316\u7684\u6570\u636E\u8F6C\u6362\u4E3A Markdown \u683C\u5F0F\u8FD4\u56DE\u3002",
|
|
13
|
+
"\u5982\u679C\u4F60\u62FF\u5230\u4E86\u9875\u9762\u7684 dbKey\uFF08\u5982 page-xxx\uFF09\uFF0C\u8BF7\u4F7F\u7528\u6B64\u5DE5\u5177\u67E5\u770B\u9875\u9762\u5185\u5BB9\u3002"
|
|
14
|
+
].join("\n"),
|
|
15
|
+
parameters: {
|
|
16
|
+
type: "object",
|
|
17
|
+
properties: {
|
|
18
|
+
id: {
|
|
19
|
+
type: "string",
|
|
20
|
+
description: "\u9875\u9762/\u6587\u6863\u7684\u6570\u636E\u5E93\u952E\uFF08dbKey\uFF09\uFF0C\u4F8B\u5982 page-xxx\u3002"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
required: ["id"]
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var readPageFunctionSchema = {
|
|
27
|
+
...readDocFunctionSchema,
|
|
28
|
+
name: "readPage"
|
|
29
|
+
};
|
|
30
|
+
var buildReadDocResult = (pageData) => {
|
|
31
|
+
const markdownContent = slateToSimplifiedMarkdown(pageData.slateData || []);
|
|
32
|
+
const rawData = {
|
|
33
|
+
success: true,
|
|
34
|
+
id: pageData.dbKey,
|
|
35
|
+
title: pageData.title,
|
|
36
|
+
content: markdownContent,
|
|
37
|
+
metadata: {
|
|
38
|
+
spaceId: pageData.spaceId,
|
|
39
|
+
created: pageData.created
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const displayData = `\u5DF2\u6210\u529F\u8BFB\u53D6\u9875\u9762\u300A${pageData.title}\u300B\u3002
|
|
43
|
+
|
|
44
|
+
\u5185\u5BB9\u5982\u4E0B\uFF1A
|
|
45
|
+
|
|
46
|
+
${markdownContent}`;
|
|
47
|
+
return { rawData, displayData };
|
|
48
|
+
};
|
|
49
|
+
async function readDocFunc(args, thunkApi) {
|
|
50
|
+
const id = args.id ?? args.doc ?? args.docKey ?? args.pageKey ?? args.key;
|
|
51
|
+
if (!id || !id.toLowerCase().startsWith("page-")) {
|
|
52
|
+
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
53
|
+
}
|
|
54
|
+
try {
|
|
55
|
+
const { readAction } = await import("./read-QK7ZRX6G.js");
|
|
56
|
+
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
57
|
+
if (!pageData) {
|
|
58
|
+
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
59
|
+
}
|
|
60
|
+
return buildReadDocResult(pageData);
|
|
61
|
+
} catch (error) {
|
|
62
|
+
throw new Error(`\u8BFB\u53D6\u9875\u9762\u65F6\u51FA\u9519: ${toErrorMessage(error)}`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
var readPageFunc = readDocFunc;
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
readDocFunctionSchema,
|
|
69
|
+
readPageFunctionSchema,
|
|
70
|
+
buildReadDocResult,
|
|
71
|
+
readDocFunc,
|
|
72
|
+
readPageFunc
|
|
73
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCliLocalRuntimePreparedAgentCache
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MMCVBEAD.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
6
|
} from "./chunk-WFHXMLHZ.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
resolveAgentRecordFromHybridStore,
|
|
13
13
|
sanitizeAgentRecordForCliOutput,
|
|
14
14
|
writeAgentRecord
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-56IUA7RU.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveCliAgentKeyInput
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-K6QEHQZ3.js";
|
|
19
19
|
import {
|
|
20
20
|
toErrorMessage
|
|
21
21
|
} from "./chunk-HNMXYYJR.js";
|