nolo-cli 0.47.0 → 0.49.0-alpha.1
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-Q4NLKUPH.js → _executeModel-4BPV4B2U.js} +24 -24
- package/{action-FLLC2SIX.js → action-IU6ON7ZB.js} +4 -4
- package/{addContentAction-SVSPUUK4.js → addContentAction-5V5CCI3I.js} +3 -3
- package/{addDialogAgentAction-W3JGU4F7.js → addDialogAgentAction-KF3KZZNZ.js} +2 -2
- package/{agentDeleteCommand-6MHA67Q2.js → agentDeleteCommand-KZSETRE3.js} +11 -11
- package/{agentEmailCommands-L3XZ237J.js → agentEmailCommands-C33KPOFP.js} +29 -29
- package/{agentListCommands-6PIBJFKH.js → agentListCommands-KVLURCS7.js} +11 -11
- package/{agentMachineCommands-POTNZ57E.js → agentMachineCommands-ICOLSVID.js} +12 -12
- package/{agentRecordCommands-IMRKLUIK.js → agentRecordCommands-OWKWVY3Y.js} +28 -28
- package/{agentRunCommand-LFZCDJLJ.js → agentRunCommand-FINKBYUN.js} +28 -28
- package/{agentRuntimeLocal-BVUV26QD.js → agentRuntimeLocal-SIQYQGSK.js} +11 -11
- package/{agentSlice-CIN6FY6Z.js → agentSlice-VD3BAJAU.js} +3 -3
- package/{appDeleteCommands-QZBYALTD.js → appDeleteCommands-LSIIQFYN.js} +13 -13
- package/{appDeployCommands-UDUJPOBN.js → appDeployCommands-VYGKN7HU.js} +13 -13
- package/{appDeployStatusCommands-P2ZTUCDR.js → appDeployStatusCommands-ODFHFUR7.js} +13 -13
- package/{appGetCommands-346YWTIX.js → appGetCommands-DPQY67UZ.js} +13 -13
- package/{appListCommands-ML7PAZXO.js → appListCommands-EFXENXWX.js} +13 -13
- package/{authCommand-7A4LJ7RD.js → authCommand-WLWOEVYI.js} +6 -6
- package/{chatQueueReduxAdapter-46OTJS77.js → chatQueueReduxAdapter-N5432EP2.js} +11 -11
- package/{chunk-Z5NW3O7V.js → chunk-2JYSSXLY.js} +8 -0
- package/{chunk-OTYXCO4M.js → chunk-33BBDA67.js} +14 -14
- package/{chunk-D45NILIX.js → chunk-3YVCM5PE.js} +1 -1
- package/{chunk-3EEK7T3D.js → chunk-4RXXP6WD.js} +1 -1
- package/{chunk-5Z7NTYAZ.js → chunk-4YAMAMNA.js} +11 -11
- package/{chunk-UYWXQCPH.js → chunk-4ZL2KBI7.js} +1 -1
- package/{chunk-EK6J2BLB.js → chunk-5JXRVJAC.js} +4 -4
- package/{chunk-FJHLA6SX.js → chunk-5XCW6RQG.js} +1 -1
- package/{chunk-H3YNPYSN.js → chunk-6L6UPZNH.js} +10 -10
- package/{chunk-UL3AIGAQ.js → chunk-72COHDZR.js} +22 -22
- package/{chunk-WVGEBWA6.js → chunk-76UA7376.js} +3 -3
- package/{chunk-QKF5I66W.js → chunk-7GRFFW7R.js} +3 -3
- package/{chunk-QPIMHSA5.js → chunk-7M72YPM2.js} +8 -8
- package/{chunk-YB7675WX.js → chunk-AV4Z57LV.js} +3 -1
- package/{chunk-K3HS5RNN.js → chunk-AZ6DT2UD.js} +1 -1
- package/{chunk-LFLWZX76.js → chunk-B54WOZ77.js} +1 -1
- package/{chunk-UX4WJK6W.js → chunk-BO3YFOZR.js} +10 -1
- package/{chunk-MKZRKDQM.js → chunk-DIQCV4FR.js} +1 -1
- package/{chunk-V5LQH25J.js → chunk-F22JQTSX.js} +2 -2
- package/{chunk-2X5S4IBZ.js → chunk-HCBQVVFZ.js} +1 -1
- package/{chunk-GK74OOFT.js → chunk-HR5XDXYM.js} +2 -2
- package/{chunk-XY3V7K4L.js → chunk-IERBSHMR.js} +22 -4
- package/{chunk-2PGAWTDB.js → chunk-JBL24PK6.js} +1 -1
- package/{chunk-6DYGT4IA.js → chunk-MCX2LX27.js} +20 -20
- package/{chunk-BEDKTILE.js → chunk-OZ4JNDIL.js} +1 -1
- package/{chunk-CKCHKUQZ.js → chunk-QAG4ZQZ7.js} +1 -1
- package/{chunk-KZCDMZ6M.js → chunk-QDNFRWAX.js} +3 -3
- package/{chunk-AYXSUBVC.js → chunk-RO2IUWZE.js} +1 -1
- package/{chunk-U72222TN.js → chunk-RPO6WAZV.js} +1 -1
- package/{chunk-D57WA7W3.js → chunk-S3HB4CQY.js} +5 -5
- package/{chunk-HAPCUPEO.js → chunk-SG65C33A.js} +2 -2
- package/{chunk-HGDOIDQ4.js → chunk-SQTVMYMU.js} +1 -1
- package/{chunk-4UOFNBUR.js → chunk-VKSBVRGP.js} +1 -1
- package/{chunk-FTGZTG2J.js → chunk-VZGLZTG7.js} +12 -12
- package/{chunk-E5HKZ4TR.js → chunk-W3RZLXMA.js} +1 -1
- package/{chunk-EMEUU5IY.js → chunk-X7S7OFUX.js} +2 -2
- package/{chunk-IGQMIZ5L.js → chunk-XB7ACJFH.js} +2 -2
- package/{createAgentAutomationAction-OFRNHZWC.js → createAgentAutomationAction-IHKV53QC.js} +12 -12
- package/{createDialogAction-2FF2JSWP.js → createDialogAction-4ARDCKPP.js} +13 -13
- package/{createPageAction-6MTVIU3J.js → createPageAction-GQOCPICU.js} +12 -12
- package/{dbSlice-XWUM4QOF.js → dbSlice-FWF5F4L7.js} +2 -2
- package/{dialogCommands-MMLBXSBC.js → dialogCommands-YOTCP26N.js} +11 -11
- package/{dialogSlice-MONRO6AH.js → dialogSlice-NX26W623.js} +11 -11
- package/{docCreateCommands-K53AHACN.js → docCreateCommands-JVAMHES4.js} +12 -12
- package/{docDeleteCommands-MJVGF67W.js → docDeleteCommands-LW5DWICT.js} +12 -12
- package/{docReadCommands-VWNRVF6W.js → docReadCommands-AQOZS3I5.js} +12 -12
- package/{docStore-A3UWWGMV.js → docStore-YAE7GYHZ.js} +13 -13
- package/{docUpdateCommands-QUDD5TUR.js → docUpdateCommands-FFGGX5RG.js} +12 -12
- package/{getPricing-AQ5MSXFO.js → getPricing-JNOCWYDH.js} +2 -2
- package/{handleSendMessageAction-6TQ7JM5X.js → handleSendMessageAction-7YKH4UBI.js} +11 -11
- package/index.js +47 -47
- package/{machineCommands-W7QEV6Q6.js → machineCommands-X7YMGFMB.js} +28 -28
- package/{machineWsRunDispatch-5P6X4WMI.js → machineWsRunDispatch-KWWJ4HTI.js} +28 -28
- package/package.json +1 -1
- package/{read-DQQ75VI3.js → read-J7RVVCHH.js} +1 -1
- package/{readDocTool-HCQQFAZD.js → readDocTool-G2WBM4IH.js} +1 -1
- package/{readlineWorkspace-PPPF6OCO.js → readlineWorkspace-GEZVQ7IM.js} +28 -28
- package/{removeDialogAgentAction-DNONRKST.js → removeDialogAgentAction-RMPISD42.js} +4 -4
- package/{runAgentClientLoop-YBZTAE2J.js → runAgentClientLoop-6NCW5AS6.js} +22 -22
- package/{setDialogExtraReferencesAction-ERHUPT3F.js → setDialogExtraReferencesAction-7BUTHDAL.js} +3 -3
- package/{setPrimaryDialogAgentAction-6C2HYNEC.js → setPrimaryDialogAgentAction-WCYIBGZ4.js} +4 -4
- package/{settingSlice-YVRJFKQX.js → settingSlice-7NN2MI6Y.js} +3 -3
- package/{spaceCommands-FDZ4P33G.js → spaceCommands-7MJVL4XR.js} +11 -11
- package/{spaceSlice-NTZBL55S.js → spaceSlice-JVVDCGA3.js} +12 -12
- package/{streamAgentChatTurn-N56LGQG4.js → streamAgentChatTurn-UAKCHWFN.js} +26 -26
- package/{switchDialogAgentAction-HP57XYFP.js → switchDialogAgentAction-WGMMQHDI.js} +2 -2
- package/{tools-GROQHVCL.js → tools-ROUITGAR.js} +18 -18
- package/{tuiSummaryLlmCaller-32XPVSRB.js → tuiSummaryLlmCaller-U4EGD2SX.js} +8 -8
- package/{updateDialogTitleAction-WYAVJPLS.js → updateDialogTitleAction-R4M6ZXCX.js} +12 -12
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
refreshAntigravityOAuthToken,
|
|
5
5
|
refreshOpenAiCodexToken,
|
|
6
6
|
xaiRefresh
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3YVCM5PE.js";
|
|
8
8
|
import {
|
|
9
9
|
defaultLoopbackRequest
|
|
10
10
|
} from "./chunk-EADNWBAZ.js";
|
|
@@ -49,14 +49,14 @@ import {
|
|
|
49
49
|
} from "./chunk-WHVQA7PJ.js";
|
|
50
50
|
import {
|
|
51
51
|
inferCaptureIntent
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-RO2IUWZE.js";
|
|
53
53
|
import {
|
|
54
54
|
buildCliPrompt
|
|
55
55
|
} from "./chunk-ATNTHIZI.js";
|
|
56
56
|
import {
|
|
57
57
|
inlineImageUrlsForCustomProvider,
|
|
58
58
|
prepareTools
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-RPO6WAZV.js";
|
|
60
60
|
import {
|
|
61
61
|
getServerProviderSecret
|
|
62
62
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
isAntigravityOAuthAgent,
|
|
66
66
|
readAntigravityProjectId,
|
|
67
67
|
resolveAntigravityCloudCodeBaseUrl
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-4ZL2KBI7.js";
|
|
69
69
|
import {
|
|
70
70
|
deleteMemoryFunctionSchema,
|
|
71
71
|
readXPostFunc,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
rememberMemoryFunctionSchema,
|
|
76
76
|
resolveAgentRequiredPackIds,
|
|
77
77
|
setTodoListFunc
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-72COHDZR.js";
|
|
79
79
|
import {
|
|
80
80
|
fetchWithTransientRetry,
|
|
81
81
|
isTransientFetchError
|
|
@@ -98,13 +98,13 @@ import {
|
|
|
98
98
|
prepareTokenUsageData,
|
|
99
99
|
resolveBuiltinPlatformAgentConfig,
|
|
100
100
|
runKeyed
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-MCX2LX27.js";
|
|
102
102
|
import {
|
|
103
103
|
BUILTIN_TITLE_LLM_CONFIG
|
|
104
104
|
} from "./chunk-EVBFYPDC.js";
|
|
105
105
|
import {
|
|
106
106
|
fetchServerSyncedCredential
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-5JXRVJAC.js";
|
|
108
108
|
import {
|
|
109
109
|
require_date_fns
|
|
110
110
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
parseSyncServersEnv,
|
|
144
144
|
resolveOpenAiCompatibleProviderConfig,
|
|
145
145
|
summarizeToolArguments
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-S3HB4CQY.js";
|
|
147
147
|
import {
|
|
148
148
|
buildPlatformChatCompletionRequest,
|
|
149
149
|
canUsePlatformChatProvider,
|
|
@@ -155,18 +155,18 @@ import {
|
|
|
155
155
|
resolvePlatformChatProviderConfig,
|
|
156
156
|
shouldUsePlatformChatProvider,
|
|
157
157
|
streamSseDataValues
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-XB7ACJFH.js";
|
|
159
159
|
import {
|
|
160
160
|
resolveAgentRuntimeConfigFromRecord,
|
|
161
161
|
resolveHistoricalToolContentCap
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-VKSBVRGP.js";
|
|
163
163
|
import {
|
|
164
164
|
convertMessagesToResponsesInput,
|
|
165
165
|
toResponsesTools
|
|
166
166
|
} from "./chunk-6BYAXNH5.js";
|
|
167
167
|
import {
|
|
168
168
|
resolvePlatformAuthToken
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-JBL24PK6.js";
|
|
170
170
|
import {
|
|
171
171
|
buildNoloWorkspaceOpenAiTools,
|
|
172
172
|
parseNoloWorkspaceToolArguments,
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
} from "./chunk-2MBTWINN.js";
|
|
184
184
|
import {
|
|
185
185
|
clipCompactText
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-HR5XDXYM.js";
|
|
187
187
|
import {
|
|
188
188
|
createFileCredentialBroker,
|
|
189
189
|
resolveCurrentRunRuntimeToolPolicy,
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
} from "./chunk-FD36SCCD.js";
|
|
199
199
|
import {
|
|
200
200
|
isAdaptiveThinkingModelId
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-BO3YFOZR.js";
|
|
202
202
|
import {
|
|
203
203
|
compactWhitespace
|
|
204
204
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
} from "./chunk-QSJ3HFEF.js";
|
|
230
230
|
import {
|
|
231
231
|
isSystemBuiltinTrustedAgentKey
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-2JYSSXLY.js";
|
|
233
233
|
import {
|
|
234
234
|
isRecord
|
|
235
235
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
6
6
|
isAntigravityOAuthAgent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4ZL2KBI7.js";
|
|
8
8
|
import {
|
|
9
9
|
clipMultilineText,
|
|
10
10
|
fetchAndSerializeTable,
|
|
11
11
|
resolveBuiltinSkillPage,
|
|
12
12
|
waitForAbortableDelay
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-72COHDZR.js";
|
|
14
14
|
import {
|
|
15
15
|
isGatewayHttpStatus
|
|
16
16
|
} from "./chunk-NF64D32W.js";
|
|
@@ -22,19 +22,19 @@ import {
|
|
|
22
22
|
} from "./chunk-3L2WKC3W.js";
|
|
23
23
|
import {
|
|
24
24
|
slateToSimplifiedMarkdown
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5XCW6RQG.js";
|
|
26
26
|
import {
|
|
27
27
|
extractCategorizedMentions
|
|
28
28
|
} from "./chunk-MEYIRKDN.js";
|
|
29
29
|
import {
|
|
30
30
|
fetchAndCacheMessages
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MCX2LX27.js";
|
|
32
32
|
import {
|
|
33
33
|
shouldUseServerProxy
|
|
34
34
|
} from "./chunk-YYLHWIW6.js";
|
|
35
35
|
import {
|
|
36
36
|
fetchServerSyncedCredential
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-5JXRVJAC.js";
|
|
38
38
|
import {
|
|
39
39
|
buildSkillGuidancePromptBlock,
|
|
40
40
|
extractRuntimePageCapabilities,
|
|
@@ -54,15 +54,15 @@ import {
|
|
|
54
54
|
} from "./chunk-6BYAXNH5.js";
|
|
55
55
|
import {
|
|
56
56
|
buildProviderAuthHeaders
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-JBL24PK6.js";
|
|
58
58
|
import {
|
|
59
59
|
estimateTokenCount
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-HR5XDXYM.js";
|
|
61
61
|
import {
|
|
62
62
|
isOpenAiResponsesModel,
|
|
63
63
|
resolvePlatformChatCompletionsEndpoint,
|
|
64
64
|
resolvePlatformResponsesEndpoint
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-AV4Z57LV.js";
|
|
66
66
|
import {
|
|
67
67
|
createFileCredentialBroker
|
|
68
68
|
} from "./chunk-NQ4N4IGO.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
clampReasoningEffort,
|
|
71
71
|
getModelConfig,
|
|
72
72
|
isModelSupportReasoningEffort
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-BO3YFOZR.js";
|
|
74
74
|
import {
|
|
75
75
|
toErrorMessage
|
|
76
76
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -89,10 +89,10 @@ import {
|
|
|
89
89
|
} from "./chunk-VFN256RI.js";
|
|
90
90
|
import {
|
|
91
91
|
createSpaceKey
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-4RXXP6WD.js";
|
|
93
93
|
import {
|
|
94
94
|
read
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-76UA7376.js";
|
|
96
96
|
import {
|
|
97
97
|
asTrimmedLowercaseString
|
|
98
98
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
patch,
|
|
12
12
|
remove,
|
|
13
13
|
write
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-76UA7376.js";
|
|
15
15
|
import {
|
|
16
16
|
createAgentKey,
|
|
17
17
|
toTrimmedString
|
|
@@ -304,7 +304,7 @@ var slice = createSliceWithThunks({
|
|
|
304
304
|
const overrides = {};
|
|
305
305
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
306
306
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
307
|
-
const { _executeModel } = await import("./_executeModel-
|
|
307
|
+
const { _executeModel } = await import("./_executeModel-4BPV4B2U.js");
|
|
308
308
|
return _executeModel(
|
|
309
309
|
{
|
|
310
310
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -325,7 +325,7 @@ var slice = createSliceWithThunks({
|
|
|
325
325
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
326
326
|
*/
|
|
327
327
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
328
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
328
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-6NCW5AS6.js");
|
|
329
329
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
330
330
|
{
|
|
331
331
|
agentKey: args.agentKey,
|
|
@@ -341,7 +341,7 @@ var slice = createSliceWithThunks({
|
|
|
341
341
|
* 聊天轮次流式 Agent 调用
|
|
342
342
|
*/
|
|
343
343
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
344
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
344
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-UAKCHWFN.js");
|
|
345
345
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
346
346
|
}),
|
|
347
347
|
/**
|
|
@@ -199,7 +199,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
199
199
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
200
200
|
}
|
|
201
201
|
try {
|
|
202
|
-
const { readAction } = await import("./read-
|
|
202
|
+
const { readAction } = await import("./read-J7RVVCHH.js");
|
|
203
203
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
204
204
|
if (!pageData) {
|
|
205
205
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RPO6WAZV.js";
|
|
9
9
|
import {
|
|
10
10
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
11
11
|
buildInvalidToolCallSelfHealResult,
|
|
12
12
|
parseToolCallArguments,
|
|
13
13
|
performFetchRequest,
|
|
14
14
|
sanitizeOutboundMessages
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4YAMAMNA.js";
|
|
16
16
|
import {
|
|
17
17
|
createSSEParser,
|
|
18
18
|
createToolRunId,
|
|
@@ -23,22 +23,22 @@ import {
|
|
|
23
23
|
toolRunSetPending,
|
|
24
24
|
toolRunStarted,
|
|
25
25
|
toolRunSucceeded
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-72COHDZR.js";
|
|
27
27
|
import {
|
|
28
28
|
getPublicImageAgentMode
|
|
29
29
|
} from "./chunk-VIDPVFP3.js";
|
|
30
30
|
import {
|
|
31
31
|
getCurrentSpaceId
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7M72YPM2.js";
|
|
33
33
|
import {
|
|
34
34
|
addToolMessage,
|
|
35
35
|
messageStreamEnd,
|
|
36
36
|
messageStreaming,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MCX2LX27.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-5JXRVJAC.js";
|
|
42
42
|
import {
|
|
43
43
|
addActiveController,
|
|
44
44
|
removeActiveController,
|
|
@@ -56,19 +56,19 @@ import {
|
|
|
56
56
|
import {
|
|
57
57
|
EMPTY_ASSISTANT_REPAIR_PROMPT,
|
|
58
58
|
getModelInfo
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-F22JQTSX.js";
|
|
60
60
|
import {
|
|
61
61
|
getApiEndpoint
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BO3YFOZR.js";
|
|
63
63
|
import {
|
|
64
64
|
toErrorMessage
|
|
65
65
|
} from "./chunk-HNMXYYJR.js";
|
|
66
66
|
import {
|
|
67
67
|
selectCurrentServer
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-X7S7OFUX.js";
|
|
69
69
|
import {
|
|
70
70
|
write
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-76UA7376.js";
|
|
72
72
|
import {
|
|
73
73
|
createDialogMessageKeyAndId,
|
|
74
74
|
dialogMessageKey,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
readPageFunc,
|
|
29
29
|
readPageFunctionSchema,
|
|
30
30
|
slateToSimplifiedMarkdown
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5XCW6RQG.js";
|
|
32
32
|
import {
|
|
33
33
|
TASK_PREVIEW_MAX,
|
|
34
34
|
buildDelegatedTaskContent,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "./chunk-INZZJSQF.js";
|
|
44
44
|
import {
|
|
45
45
|
createDocState
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-QDNFRWAX.js";
|
|
47
47
|
import {
|
|
48
48
|
ToolApiError,
|
|
49
49
|
buildToolRequestHeaders,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./chunk-BANYWEYY.js";
|
|
55
55
|
import {
|
|
56
56
|
setDialogExtraReferencesAction
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-HCBQVVFZ.js";
|
|
58
58
|
import {
|
|
59
59
|
extractMentionsFromSlate
|
|
60
60
|
} from "./chunk-MEYIRKDN.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
buildBuiltinObjectSkillDbKey,
|
|
71
71
|
buildBuiltinObjectSkillPageContent,
|
|
72
72
|
createDialogAction
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-IERBSHMR.js";
|
|
74
74
|
import {
|
|
75
75
|
addCategory,
|
|
76
76
|
addContentToSpace,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
loadTableRows,
|
|
91
91
|
updateContentCategory,
|
|
92
92
|
updateContentTitle
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-7M72YPM2.js";
|
|
94
94
|
import {
|
|
95
95
|
normalizeAppRouteId,
|
|
96
96
|
resolveDialogRuntimeAgentKey,
|
|
@@ -100,13 +100,13 @@ import {
|
|
|
100
100
|
selectMsgById,
|
|
101
101
|
uiAskChoiceFunc,
|
|
102
102
|
uiAskChoiceFunctionSchema
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-MCX2LX27.js";
|
|
104
104
|
import {
|
|
105
105
|
createAgent,
|
|
106
106
|
runLlm,
|
|
107
107
|
streamAgentChatTurn,
|
|
108
108
|
updateAgent
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-5JXRVJAC.js";
|
|
110
110
|
import {
|
|
111
111
|
getActiveDialogKey,
|
|
112
112
|
require_react,
|
|
@@ -151,10 +151,10 @@ import {
|
|
|
151
151
|
} from "./chunk-IWUMSAQF.js";
|
|
152
152
|
import {
|
|
153
153
|
buildDatabaseFileContentUrl
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-HR5XDXYM.js";
|
|
155
155
|
import {
|
|
156
156
|
DEFAULT_MODEL
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-BO3YFOZR.js";
|
|
158
158
|
import {
|
|
159
159
|
compactWhitespace
|
|
160
160
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
} from "./chunk-O6OSWFZQ.js";
|
|
168
168
|
import {
|
|
169
169
|
shareResourceAction
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-SQTVMYMU.js";
|
|
171
171
|
import {
|
|
172
172
|
AGENT_UPDATE_FIELD_NAMES,
|
|
173
173
|
nolotusId,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
selectAutoApproveSelfUpdateFields,
|
|
176
176
|
selectCurrentServer,
|
|
177
177
|
selectSyncServers
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-X7S7OFUX.js";
|
|
179
179
|
import {
|
|
180
180
|
asRecordOrEmpty
|
|
181
181
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
addContentAction,
|
|
184
184
|
createSpaceKey,
|
|
185
185
|
normalizeSpaceId
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-4RXXP6WD.js";
|
|
187
187
|
import {
|
|
188
188
|
patch,
|
|
189
189
|
read,
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
selectById,
|
|
193
193
|
toTimestampMs,
|
|
194
194
|
write
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-76UA7376.js";
|
|
196
196
|
import {
|
|
197
197
|
SEPARATOR,
|
|
198
198
|
createAgentKey,
|
|
@@ -218,7 +218,7 @@ import {
|
|
|
218
218
|
import {
|
|
219
219
|
DEFAULT_CODE_PLANNER_EXECUTOR_CANDIDATE_KEYS,
|
|
220
220
|
readAction
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-2JYSSXLY.js";
|
|
222
222
|
import {
|
|
223
223
|
extractCustomId
|
|
224
224
|
} from "./chunk-BJIRLHJR.js";
|
|
@@ -12071,7 +12071,7 @@ var buildFormDataFromArgs = async (args) => {
|
|
|
12071
12071
|
const trimmedModel = toTrimmedString(model);
|
|
12072
12072
|
const trimmedProvider = toTrimmedString(provider);
|
|
12073
12073
|
const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
|
|
12074
|
-
const { getModelPricing } = await import("./getPricing-
|
|
12074
|
+
const { getModelPricing } = await import("./getPricing-JNOCWYDH.js");
|
|
12075
12075
|
const normalizedTools = tools ?? [];
|
|
12076
12076
|
const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
|
|
12077
12077
|
const formData = {
|
|
@@ -15385,7 +15385,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
15385
15385
|
const deletedDialogIds = [];
|
|
15386
15386
|
const deletedDialogKeys = [];
|
|
15387
15387
|
const failures = [];
|
|
15388
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
15388
|
+
const { deleteDialog } = await import("./dialogSlice-NX26W623.js");
|
|
15389
15389
|
for (const target of targets) {
|
|
15390
15390
|
try {
|
|
15391
15391
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -15680,7 +15680,7 @@ var readSkillDocFunctionSchema = {
|
|
|
15680
15680
|
}
|
|
15681
15681
|
};
|
|
15682
15682
|
async function readSkillDocFunc(args, thunkApi) {
|
|
15683
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
15683
|
+
const { buildReadDocResult } = await import("./readDocTool-G2WBM4IH.js");
|
|
15684
15684
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
15685
15685
|
if (typeof id !== "string" || !id.trim()) {
|
|
15686
15686
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -21135,7 +21135,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
|
|
|
21135
21135
|
var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
|
|
21136
21136
|
async function addImageContentToSpace(input) {
|
|
21137
21137
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
21138
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
21138
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-5V5CCI3I.js")).addContentAction;
|
|
21139
21139
|
await addContentAction2(
|
|
21140
21140
|
{
|
|
21141
21141
|
spaceId: input.spaceId,
|
|
@@ -24957,7 +24957,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
24957
24957
|
if (!executionInput) {
|
|
24958
24958
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
24959
24959
|
}
|
|
24960
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
24960
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-ROUITGAR.js");
|
|
24961
24961
|
const { executor } = findToolExecutor2(run.toolName);
|
|
24962
24962
|
toolRunStarted({
|
|
24963
24963
|
id: run.id,
|
|
@@ -24981,7 +24981,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
24981
24981
|
const latestState = thunkApi.getState();
|
|
24982
24982
|
const userId = latestState.auth?.currentUser?.userId;
|
|
24983
24983
|
if (userId) {
|
|
24984
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
24984
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-JVVDCGA3.js");
|
|
24985
24985
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
24986
24986
|
}
|
|
24987
24987
|
}
|
|
@@ -27464,7 +27464,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
27464
27464
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
27465
27465
|
};
|
|
27466
27466
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
27467
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
27467
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-YAE7GYHZ.js");
|
|
27468
27468
|
if (getDocState().pageKey === id) {
|
|
27469
27469
|
applyExternalDocUpdate({
|
|
27470
27470
|
slateData: finalSlateData,
|
|
@@ -27489,7 +27489,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
27489
27489
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
27490
27490
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
27491
27491
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
27492
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-
|
|
27492
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-7NN2MI6Y.js")).setSettings;
|
|
27493
27493
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
27494
27494
|
}
|
|
27495
27495
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
readAction,
|
|
14
14
|
readRequestManager,
|
|
15
15
|
resolveAgentReadServers
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2JYSSXLY.js";
|
|
17
17
|
import {
|
|
18
18
|
asyncThunkCreator,
|
|
19
19
|
buildCreateSlice,
|
|
@@ -707,7 +707,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
707
707
|
// 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
|
|
708
708
|
read: create.asyncThunk(
|
|
709
709
|
async (payload, thunkApi) => {
|
|
710
|
-
const { readAction: readAction2 } = await import("./read-
|
|
710
|
+
const { readAction: readAction2 } = await import("./read-J7RVVCHH.js");
|
|
711
711
|
return readAction2(payload, thunkApi);
|
|
712
712
|
},
|
|
713
713
|
{
|
|
@@ -781,7 +781,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
781
781
|
// 这里改成动态 import,运行期才解析,彻底断开这条边。
|
|
782
782
|
share: create.asyncThunk(
|
|
783
783
|
async (config, thunkApi) => {
|
|
784
|
-
const { shareResourceAction } = await import("./action-
|
|
784
|
+
const { shareResourceAction } = await import("./action-IU6ON7ZB.js");
|
|
785
785
|
return shareResourceAction(config, thunkApi);
|
|
786
786
|
}
|
|
787
787
|
),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-33BBDA67.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-72COHDZR.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S3HB4CQY.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-NQ4N4IGO.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteDialog,
|
|
3
3
|
toast
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MCX2LX27.js";
|
|
5
5
|
import {
|
|
6
6
|
deleteServerSyncedCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5JXRVJAC.js";
|
|
8
8
|
import {
|
|
9
9
|
require_date_fns
|
|
10
10
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-HNMXYYJR.js";
|
|
20
20
|
import {
|
|
21
21
|
isSystemAdmin
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-X7S7OFUX.js";
|
|
23
23
|
import {
|
|
24
24
|
asRecordOrEmpty
|
|
25
25
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
createSpaceKey,
|
|
31
31
|
localSpaceAuthorityPatchStamp,
|
|
32
32
|
normalizeSpaceId
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4RXXP6WD.js";
|
|
34
34
|
import {
|
|
35
35
|
patch,
|
|
36
36
|
read,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
uploadFileAction,
|
|
44
44
|
upsertSSREntity,
|
|
45
45
|
write
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-76UA7376.js";
|
|
47
47
|
import {
|
|
48
48
|
DB_PREFIX,
|
|
49
49
|
SEPARATOR,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
} from "./chunk-I42VC5KR.js";
|
|
73
73
|
import {
|
|
74
74
|
readAction
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-2JYSSXLY.js";
|
|
76
76
|
import {
|
|
77
77
|
extractUserId
|
|
78
78
|
} from "./chunk-BJIRLHJR.js";
|
|
@@ -7053,7 +7053,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
7053
7053
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
7054
7054
|
const readSpace = async (dbKey) => {
|
|
7055
7055
|
try {
|
|
7056
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
7056
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-FWF5F4L7.js");
|
|
7057
7057
|
if (fresh) {
|
|
7058
7058
|
return await dispatch(readAndWait2(dbKey)).unwrap();
|
|
7059
7059
|
}
|
|
@@ -7467,7 +7467,7 @@ var spaceSlice = createSliceWithThunks2({
|
|
|
7467
7467
|
markDialogRead: create.asyncThunk(
|
|
7468
7468
|
async (payload, thunkAPI) => {
|
|
7469
7469
|
if (payload.dialogKey) {
|
|
7470
|
-
const { patch: patch2 } = await import("./dbSlice-
|
|
7470
|
+
const { patch: patch2 } = await import("./dbSlice-FWF5F4L7.js");
|
|
7471
7471
|
try {
|
|
7472
7472
|
await thunkAPI.dispatch(
|
|
7473
7473
|
patch2({ dbKey: payload.dialogKey, changes: { unreadAt: null } })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getModelConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BO3YFOZR.js";
|
|
4
4
|
import {
|
|
5
5
|
isPlatformHostedDeepseekModel,
|
|
6
6
|
isPlatformHostedOpenAIImageModel,
|
|
@@ -18,6 +18,8 @@ var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
|
|
|
18
18
|
fireworks: "https://api.fireworks.ai/inference/v1/chat/completions",
|
|
19
19
|
google: "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",
|
|
20
20
|
openai: "https://api.openai.com/v1/chat/completions",
|
|
21
|
+
// xAI 官方 OpenAI 兼容模式(平台托管 Grok)
|
|
22
|
+
xai: "https://api.x.ai/v1/chat/completions",
|
|
21
23
|
openrouter: "https://openrouter.ai/api/v1/chat/completions",
|
|
22
24
|
// 千问 AI 平台 OpenAI 兼容模式
|
|
23
25
|
qwen: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
|