nolo-cli 0.16.0-alpha.4 → 0.16.0-alpha.6
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-TZUDMB24.js → _executeModel-XF7VJZ6O.js} +28 -28
- package/{action-GUOZYYGN.js → action-F5JACQBG.js} +4 -4
- package/{addContentAction-QDGHGUBH.js → addContentAction-AQXEYRBE.js} +3 -3
- package/{addDialogAgentAction-Z4YCYZIV.js → addDialogAgentAction-EJHHJZWW.js} +2 -2
- package/{agentDeleteCommand-EMXLYNAH.js → agentDeleteCommand-X35VSSVM.js} +17 -17
- package/{agentEmailCommands-A4U3WMMS.js → agentEmailCommands-LGMEEMQP.js} +34 -34
- package/{agentListCommands-HQZNTYEG.js → agentListCommands-LLQHUE4O.js} +19 -19
- package/{agentMachineCommands-VFFEYHWZ.js → agentMachineCommands-4Q5PFIKF.js} +17 -17
- package/{agentRecordCommands-MV6SFG6W.js → agentRecordCommands-XUYVG7BS.js} +33 -33
- package/{agentRunCommand-5M2V6PJT.js → agentRunCommand-NORLSA7L.js} +33 -33
- package/{agentRuntimeLocal-WGVEZMXW.js → agentRuntimeLocal-N56G2ZJK.js} +14 -14
- package/{agentSlice-ILWKFTS5.js → agentSlice-JE5BREZQ.js} +3 -3
- package/{appDeleteCommands-N5AHOOHG.js → appDeleteCommands-WHRYDQLZ.js} +18 -18
- package/{appDeployCommands-GDD4CHRI.js → appDeployCommands-USRWBT6T.js} +18 -18
- package/{appDeployStatusCommands-3ZQH2E2A.js → appDeployStatusCommands-R632IBVL.js} +18 -18
- package/{appGetCommands-U4BGN2SW.js → appGetCommands-PKGC2JWH.js} +18 -18
- package/{appListCommands-S5BF2T4A.js → appListCommands-OMRAEOAL.js} +18 -18
- package/{authCommand-WKMPIXR6.js → authCommand-P22WCVOP.js} +7 -7
- package/{chunk-WFFFQD6S.js → chunk-2B3BNWPC.js} +2 -2
- package/{chunk-SFXYKGK2.js → chunk-3S2VOMIF.js} +3 -3
- package/{chunk-MEZVPVXM.js → chunk-3STYIYRD.js} +2 -2
- package/{chunk-4QQFLN5C.js → chunk-4IF3B7WC.js} +4 -4
- package/{chunk-WIZX3ACC.js → chunk-4XR5OJ7J.js} +1 -1
- package/{chunk-OGGHETUE.js → chunk-5BP2BROQ.js} +18 -16
- package/{chunk-OLNFFJVY.js → chunk-6EFJQCL6.js} +560 -113
- package/{chunk-U7LEGLEB.js → chunk-6N4KODMN.js} +1 -1
- package/{chunk-3GSNWWY3.js → chunk-AKYTMRBP.js} +1 -1
- package/{chunk-2L6OCZ6Z.js → chunk-ASZ2C44S.js} +1 -1
- package/{chunk-VD24AND2.js → chunk-AWGYJBWX.js} +10 -10
- package/{chunk-CT3XKUX4.js → chunk-BH4AZ7S6.js} +24 -24
- package/{chunk-I4NUTIXT.js → chunk-BOPYCNN3.js} +1 -1
- package/{chunk-AO2YB7PG.js → chunk-BS5STUTA.js} +3 -3
- package/{chunk-7LFS3UL6.js → chunk-C2BYYSAO.js} +18 -6
- package/{chunk-W3574B3G.js → chunk-CI2G2Z2L.js} +1 -1
- package/{chunk-36GPBUJ2.js → chunk-CTZLNWT3.js} +3 -3
- package/{chunk-TTGAVETO.js → chunk-EABWT43X.js} +2 -2
- package/{chunk-NY6KTTLA.js → chunk-EFNMO3YF.js} +1 -1
- package/{chunk-WNUSEMPU.js → chunk-FJHD7FHN.js} +1 -1
- package/{chunk-XVP3C2KY.js → chunk-IWLUTMYX.js} +1 -1
- package/{chunk-3SCCWSA3.js → chunk-J2DR42U3.js} +13 -13
- package/{chunk-XXUNUXCS.js → chunk-J4VLNDI7.js} +1 -1
- package/{chunk-4MSDMVUW.js → chunk-KFEVY3ST.js} +10 -2
- package/{chunk-WNLPAOIT.js → chunk-KFHN5NGJ.js} +1 -1
- package/{chunk-ZODEA6YR.js → chunk-KOW2R4MZ.js} +17 -12
- package/{chunk-27DJM3CW.js → chunk-LJIJWXIT.js} +5 -5
- package/{chunk-524BDL33.js → chunk-LPWS7HMQ.js} +1 -15
- package/{chunk-NCMP6Q3I.js → chunk-NY5FDXZL.js} +3 -3
- package/{chunk-OOIN7HSO.js → chunk-OIX36K6R.js} +1 -1
- package/{chunk-ONELX7AM.js → chunk-QSWWWYGA.js} +1 -1
- package/{chunk-JS33TCQ3.js → chunk-RPDGJO4D.js} +2 -2
- package/{chunk-IKXL2HZ3.js → chunk-UALQTIWY.js} +1 -1
- package/{chunk-463YM7CS.js → chunk-XBOY5KZG.js} +21 -21
- package/{chunk-V2J635L5.js → chunk-XOIF2TNF.js} +2 -2
- package/{chunk-VPTJB4HM.js → chunk-XPC5C7BK.js} +0 -3
- package/{chunk-TY27RYCD.js → chunk-XQW4K7D3.js} +3 -3
- package/{chunk-N5424GSW.js → chunk-YJKXGHJ6.js} +1 -1
- package/{chunk-4CANFLI7.js → chunk-YLVJ7NB4.js} +2 -2
- package/{chunk-JKWWVF2I.js → chunk-YQMTILRW.js} +1 -1
- package/{chunk-2ZDQ5PN5.js → chunk-YXQA6X6I.js} +16 -16
- package/chunk-ZHXJ6M7T.js +27 -0
- package/{chunk-LTZL7WC3.js → chunk-ZRDWHLMQ.js} +1 -1
- package/{chunk-MRDODOWX.js → chunk-ZTRZ2O5B.js} +3 -3
- package/{chunk-VOVNQ4YU.js → chunk-ZVBKL6NS.js} +4 -4
- package/{createAgentAutomationAction-QHGTCNTZ.js → createAgentAutomationAction-MEYL7OTC.js} +13 -13
- package/{createDialogAction-BEO3QLUA.js → createDialogAction-OUK5YIH4.js} +14 -14
- package/{createPageAction-35EGISA5.js → createPageAction-NEBMC6AB.js} +13 -13
- package/{dbSlice-OP6UPXKA.js → dbSlice-7KQH6GOU.js} +2 -2
- package/{dialogCommands-V7UHKTXT.js → dialogCommands-L4LMXQAI.js} +18 -18
- package/{dialogSlice-PWTRW5CX.js → dialogSlice-BKRE6NDW.js} +13 -13
- package/{docCreateCommands-TNC5RGE6.js → docCreateCommands-C4HJCM47.js} +17 -17
- package/{docDeleteCommands-PDMKS5KK.js → docDeleteCommands-Y6W6A3W6.js} +18 -18
- package/{docReadCommands-GGAFPAUO.js → docReadCommands-2WUIDAR6.js} +17 -17
- package/{docStore-BIJALNX5.js → docStore-XIPSSX7U.js} +14 -14
- package/{docUpdateCommands-NCZK5UPH.js → docUpdateCommands-XVL2CBKE.js} +17 -17
- package/{getPricing-UGDJHI7M.js → getPricing-HXWUZAEN.js} +4 -4
- package/{handleSendMessageAction-EN7ZJLBM.js → handleSendMessageAction-NTDBIOMZ.js} +13 -13
- package/index.js +47 -47
- package/{machineCommands-WF2VFJD2.js → machineCommands-SXOARUBD.js} +32 -32
- package/{machineWsRunDispatch-7675PUSK.js → machineWsRunDispatch-OZQ4WNCE.js} +32 -32
- package/{models-LSCRJJ6P.js → models-DQUMNIGQ.js} +2 -2
- package/package.json +1 -1
- package/{read-HXHAZBKH.js → read-CN3TNXIP.js} +1 -1
- package/{readDocTool-VPBDTO4G.js → readDocTool-WF3675ED.js} +1 -1
- package/{readlineWorkspace-4VTHXHUB.js → readlineWorkspace-AM2FA7HS.js} +36 -36
- package/{removeDialogAgentAction-HUFVN35S.js → removeDialogAgentAction-YDHBFEGI.js} +5 -5
- package/{runAgentClientLoop-ZAZSFAAO.js → runAgentClientLoop-ISTTN5QO.js} +25 -25
- package/{setDialogExtraReferencesAction-2VLGWQKG.js → setDialogExtraReferencesAction-LR6MSIXO.js} +2 -2
- package/{setPrimaryDialogAgentAction-VB4UV2CC.js → setPrimaryDialogAgentAction-IIVDCY5C.js} +5 -5
- package/{settingSlice-7JYPQNAC.js → settingSlice-O23YDK2O.js} +3 -3
- package/{spaceCommands-IASX6FPL.js → spaceCommands-PYFLKEAW.js} +17 -17
- package/{spaceSlice-HGDO7QJK.js → spaceSlice-QER2OEYB.js} +13 -13
- package/{streamAgentChatTurn-KTDBTZUL.js → streamAgentChatTurn-VBXKG5JA.js} +29 -29
- package/{tools-IUKU5H6C.js → tools-XMFFOQXS.js} +19 -19
- package/{tuiSummaryLlmCaller-RV6ZXCLV.js → tuiSummaryLlmCaller-ENLQTJUV.js} +7 -7
- package/{updateDialogTitleAction-6R62F4XS.js → updateDialogTitleAction-QJEJGVZD.js} +13 -13
- package/chunk-BYXBJQAS.js +0 -0
|
@@ -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-CN3TNXIP.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,10 +5,10 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3STYIYRD.js";
|
|
9
9
|
import {
|
|
10
10
|
performFetchRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-J2DR42U3.js";
|
|
12
12
|
import {
|
|
13
13
|
createSSEParser,
|
|
14
14
|
createToolRunId,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
toolRunSetPending,
|
|
20
20
|
toolRunStarted,
|
|
21
21
|
toolRunSucceeded
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BH4AZ7S6.js";
|
|
23
23
|
import {
|
|
24
24
|
getPublicImageAgentMode
|
|
25
25
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
messageStreaming,
|
|
30
30
|
selectCurrentSpaceId,
|
|
31
31
|
updateToolMessage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XBOY5KZG.js";
|
|
33
33
|
import {
|
|
34
34
|
streamAgentChatTurn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZVBKL6NS.js";
|
|
36
36
|
import {
|
|
37
37
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZTRZ2O5B.js";
|
|
39
39
|
import {
|
|
40
40
|
accumulateToolCallDelta,
|
|
41
41
|
createThinkParserState,
|
|
@@ -47,10 +47,10 @@ import {
|
|
|
47
47
|
} from "./chunk-LSFAWXKC.js";
|
|
48
48
|
import {
|
|
49
49
|
getModelInfo
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-4IF3B7WC.js";
|
|
51
51
|
import {
|
|
52
52
|
getApiEndpoint
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-5BP2BROQ.js";
|
|
54
54
|
import {
|
|
55
55
|
extractCustomId
|
|
56
56
|
} from "./chunk-DFFIZ25G.js";
|
|
@@ -64,10 +64,10 @@ import {
|
|
|
64
64
|
} from "./chunk-HNMXYYJR.js";
|
|
65
65
|
import {
|
|
66
66
|
selectCurrentServer
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-EABWT43X.js";
|
|
68
68
|
import {
|
|
69
69
|
write
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-3S2VOMIF.js";
|
|
71
71
|
import {
|
|
72
72
|
createDialogMessageKeyAndId,
|
|
73
73
|
dialogMessageKey,
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
sortSafeAgentSummaries,
|
|
10
10
|
toSafeAgentSummary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OIX36K6R.js";
|
|
12
12
|
import {
|
|
13
13
|
getUserDataItemTimestamp,
|
|
14
14
|
mergeAndDedupUserData
|
|
15
15
|
} from "./chunk-KQHGZWSV.js";
|
|
16
16
|
import {
|
|
17
17
|
createDocState
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XQW4K7D3.js";
|
|
19
19
|
import {
|
|
20
20
|
readDocFunc,
|
|
21
21
|
readDocFunctionSchema,
|
|
22
22
|
readPageFunc,
|
|
23
23
|
readPageFunctionSchema,
|
|
24
24
|
slateToSimplifiedMarkdown
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6N4KODMN.js";
|
|
26
26
|
import {
|
|
27
27
|
markdownToSlate
|
|
28
28
|
} from "./chunk-3LY4F7SV.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "./chunk-VF4K2QE6.js";
|
|
38
38
|
import {
|
|
39
39
|
createDialogAction
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-CTZLNWT3.js";
|
|
41
41
|
import {
|
|
42
42
|
buildSkillDocMarkdown,
|
|
43
43
|
normalizeSkillBudgetTier,
|
|
@@ -76,13 +76,13 @@ import {
|
|
|
76
76
|
updateContentCategory,
|
|
77
77
|
updateContentTitle,
|
|
78
78
|
updateStep
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-XBOY5KZG.js";
|
|
80
80
|
import {
|
|
81
81
|
createAgent,
|
|
82
82
|
runLlm,
|
|
83
83
|
streamAgentChatTurn,
|
|
84
84
|
updateAgent
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-ZVBKL6NS.js";
|
|
86
86
|
import {
|
|
87
87
|
NOLO_WORKSPACE_TOOL_NAMES,
|
|
88
88
|
buildNoloSubjectRefQueryTarget,
|
|
@@ -101,10 +101,10 @@ import {
|
|
|
101
101
|
} from "./chunk-B4KT7RN2.js";
|
|
102
102
|
import {
|
|
103
103
|
buildDatabaseFileContentUrl
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-4IF3B7WC.js";
|
|
105
105
|
import {
|
|
106
106
|
DEFAULT_MODEL
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-5BP2BROQ.js";
|
|
108
108
|
import {
|
|
109
109
|
ToolApiError,
|
|
110
110
|
buildToolRequestHeaders,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
} from "./chunk-HNMXYYJR.js";
|
|
131
131
|
import {
|
|
132
132
|
shareResourceAction
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-YJKXGHJ6.js";
|
|
134
134
|
import {
|
|
135
135
|
AGENT_UPDATE_FIELD_NAMES,
|
|
136
136
|
SYSTEM_AGENT_CAPABILITIES,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
selectAutoApproveSelfUpdateFields,
|
|
140
140
|
selectCurrentServer,
|
|
141
141
|
selectSyncServers
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-EABWT43X.js";
|
|
143
143
|
import {
|
|
144
144
|
asRecordOrEmpty
|
|
145
145
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
addContentAction,
|
|
148
148
|
createSpaceKey,
|
|
149
149
|
normalizeSpaceId
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-IWLUTMYX.js";
|
|
151
151
|
import {
|
|
152
152
|
patch,
|
|
153
153
|
read,
|
|
@@ -155,7 +155,7 @@ import {
|
|
|
155
155
|
readAndWaitAction,
|
|
156
156
|
toTimestampMs,
|
|
157
157
|
write
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-3S2VOMIF.js";
|
|
159
159
|
import {
|
|
160
160
|
SEPARATOR,
|
|
161
161
|
createAgentKey,
|
|
@@ -180,7 +180,7 @@ import {
|
|
|
180
180
|
} from "./chunk-QSJ3HFEF.js";
|
|
181
181
|
import {
|
|
182
182
|
readAction
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-XPC5C7BK.js";
|
|
184
184
|
import {
|
|
185
185
|
createAsyncThunk,
|
|
186
186
|
getRuntimeServerContext,
|
|
@@ -992,7 +992,7 @@ var ai_locale_default = {
|
|
|
992
992
|
params: {
|
|
993
993
|
name: "The name of the Agent, e.g., 'Meeting Minutes Assistant'.",
|
|
994
994
|
model: "The model name to use. Logic: Default 'nolo/glm-5.2'. Complex tasks: 'openai/gpt-5.2'. Cost-saving: 'openai/gpt-5.1'. Aesthetic/Creative: 'gemini-3.6-flash'. Reliable low-cost summary/reasoning: 'deepseek-v4-pro'. Image Generation: 'gemini-3-pro-image-preview' (Best/Expensive), 'gemini-3.1-flash-image-preview' (Ordinary), or 'gemini-3.1-flash-lite-image' (Fastest/Cheapest).",
|
|
995
|
-
provider: "The model provider identifier, must match the selected model, e.g., 'openrouter', '
|
|
995
|
+
provider: "The model provider identifier, must match the selected model, e.g., 'openrouter', 'nolo', 'fireworks', 'mistral', etc.",
|
|
996
996
|
prompt: "System prompt/instruction describing the Agent's role, tone, and usage.",
|
|
997
997
|
introduction: "Introduction displayed in the app market or list, explanatory text for end users.",
|
|
998
998
|
greeting: {
|
|
@@ -1381,7 +1381,7 @@ var ai_locale_default = {
|
|
|
1381
1381
|
params: {
|
|
1382
1382
|
name: "Agent \u7684\u540D\u79F0\uFF0C\u4F8B\u5982\uFF1A'\u4F1A\u8BAE\u7EAA\u8981\u52A9\u624B'\u3002",
|
|
1383
1383
|
model: "\u9ED8\u8BA4\u4F7F\u7528 'nolo/glm-5.2'\u3002\u590D\u6742\u4EFB\u52A1: 'openai/gpt-5.2'\u3002\u7701\u6210\u672C\u4F46\u590D\u6742: 'openai/gpt-5.1'\u3002\u8FFD\u6C42\u7F8E\u89C2/\u521B\u610F: 'gemini-3.6-flash'\u3002\u4F4E\u6210\u672C\u6458\u8981/\u63A8\u7406: 'deepseek-v4-pro'\u3002\u751F\u6210\u56FE\u7247: \u8D35/\u9AD8\u8D28\u91CF\u9009 'gemini-3-pro-image-preview'\uFF0C\u666E\u901A\u9009 'gemini-3.1-flash-image-preview'\uFF0C\u6700\u5FEB\u6700\u4FBF\u5B9C\u9009 'gemini-3.1-flash-lite-image'\u3002",
|
|
1384
|
-
provider: "\u6A21\u578B\u63D0\u4F9B\u65B9\u6807\u8BC6\uFF0C\u5FC5\u987B\u4E0E\u6240\u9009\u6A21\u578B\u76F8\u5339\u914D\uFF0C\u4F8B\u5982 'openrouter'\u3001'
|
|
1384
|
+
provider: "\u6A21\u578B\u63D0\u4F9B\u65B9\u6807\u8BC6\uFF0C\u5FC5\u987B\u4E0E\u6240\u9009\u6A21\u578B\u76F8\u5339\u914D\uFF0C\u4F8B\u5982 'openrouter'\u3001'nolo'\u3001'fireworks'\u3001'mistral' \u7B49\u3002",
|
|
1385
1385
|
prompt: "\u7CFB\u7EDF\u63D0\u793A\u8BCD / \u6307\u4EE4\uFF0C\u63CF\u8FF0\u8FD9\u4E2A Agent \u7684\u89D2\u8272\u3001\u8BED\u6C14\u548C\u4F7F\u7528\u65B9\u5F0F\u3002",
|
|
1386
1386
|
introduction: "\u5728\u5E94\u7528\u5E02\u573A\u6216\u5217\u8868\u4E2D\u5C55\u793A\u7684\u7B80\u4ECB\uFF0C\u9762\u5411\u7EC8\u7AEF\u7528\u6237\u7684\u8BF4\u660E\u6587\u6848\u3002",
|
|
1387
1387
|
greeting: {
|
|
@@ -11483,7 +11483,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
|
|
|
11483
11483
|
workspace: { mode: "lease" }
|
|
11484
11484
|
};
|
|
11485
11485
|
var findModelConfig = async (modelName, provider) => {
|
|
11486
|
-
const { ALL_MODELS } = await import("./models-
|
|
11486
|
+
const { ALL_MODELS } = await import("./models-DQUMNIGQ.js");
|
|
11487
11487
|
const name = toTrimmedString(modelName);
|
|
11488
11488
|
const prov = toTrimmedString(provider ?? "");
|
|
11489
11489
|
if (!name) return null;
|
|
@@ -11724,7 +11724,7 @@ var buildFormDataFromArgs = async (args) => {
|
|
|
11724
11724
|
const trimmedModel = toTrimmedString(model);
|
|
11725
11725
|
const trimmedProvider = toTrimmedString(provider);
|
|
11726
11726
|
const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
|
|
11727
|
-
const { getModelPricing } = await import("./getPricing-
|
|
11727
|
+
const { getModelPricing } = await import("./getPricing-HXWUZAEN.js");
|
|
11728
11728
|
const normalizedTools = tools ?? [];
|
|
11729
11729
|
const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
|
|
11730
11730
|
const formData = {
|
|
@@ -14154,7 +14154,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
14154
14154
|
const deletedDialogIds = [];
|
|
14155
14155
|
const deletedDialogKeys = [];
|
|
14156
14156
|
const failures = [];
|
|
14157
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
14157
|
+
const { deleteDialog } = await import("./dialogSlice-BKRE6NDW.js");
|
|
14158
14158
|
for (const target of targets) {
|
|
14159
14159
|
try {
|
|
14160
14160
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -14418,7 +14418,7 @@ var readSkillDocFunctionSchema = {
|
|
|
14418
14418
|
}
|
|
14419
14419
|
};
|
|
14420
14420
|
async function readSkillDocFunc(args, thunkApi) {
|
|
14421
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
14421
|
+
const { buildReadDocResult } = await import("./readDocTool-WF3675ED.js");
|
|
14422
14422
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
14423
14423
|
if (typeof id !== "string" || !id.trim()) {
|
|
14424
14424
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -19868,7 +19868,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
|
|
|
19868
19868
|
var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
|
|
19869
19869
|
async function addImageContentToSpace(input) {
|
|
19870
19870
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
19871
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
19871
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-AQXEYRBE.js")).addContentAction;
|
|
19872
19872
|
await addContentAction2(
|
|
19873
19873
|
{
|
|
19874
19874
|
spaceId: input.spaceId,
|
|
@@ -23404,7 +23404,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23404
23404
|
if (!executionInput) {
|
|
23405
23405
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
23406
23406
|
}
|
|
23407
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
23407
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-XMFFOQXS.js");
|
|
23408
23408
|
const { executor } = findToolExecutor2(run.toolName);
|
|
23409
23409
|
toolRunStarted({
|
|
23410
23410
|
id: run.id,
|
|
@@ -23428,7 +23428,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23428
23428
|
const latestState = thunkApi.getState();
|
|
23429
23429
|
const userId = latestState.auth?.currentUser?.userId;
|
|
23430
23430
|
if (userId) {
|
|
23431
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
23431
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-QER2OEYB.js");
|
|
23432
23432
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
23433
23433
|
}
|
|
23434
23434
|
}
|
|
@@ -25911,7 +25911,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25911
25911
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
25912
25912
|
};
|
|
25913
25913
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
25914
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
25914
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-XIPSSX7U.js");
|
|
25915
25915
|
if (getDocState().pageKey === id) {
|
|
25916
25916
|
applyExternalDocUpdate({
|
|
25917
25917
|
slateData: finalSlateData,
|
|
@@ -25936,7 +25936,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25936
25936
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
25937
25937
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
25938
25938
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
25939
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-
|
|
25939
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-O23YDK2O.js")).setSettings;
|
|
25940
25940
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
25941
25941
|
}
|
|
25942
25942
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AKYTMRBP.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FJHD7FHN.js";
|
|
8
8
|
import {
|
|
9
9
|
toSafeAgentSummary
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OIX36K6R.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/agentListHelpers.ts
|
|
13
13
|
function parseAgentRecordId(privateKey, explicitId) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
providerHttpFailure,
|
|
5
5
|
readSseFrames,
|
|
6
6
|
throwIfChatCompletionStreamFailed
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KOW2R4MZ.js";
|
|
8
8
|
import {
|
|
9
9
|
parseToolArgumentsJson
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZTRZ2O5B.js";
|
|
11
11
|
import {
|
|
12
12
|
createThinkParserState,
|
|
13
13
|
createToolCallAccumulator,
|
|
@@ -18,14 +18,15 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
requiresBareImageUrl,
|
|
20
20
|
toBareImageUrlMessages
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ASZ2C44S.js";
|
|
22
22
|
import {
|
|
23
|
+
shouldStripReasoningContentForOutbound,
|
|
23
24
|
toOpenAiCompatibleMessages
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KFEVY3ST.js";
|
|
25
26
|
import {
|
|
26
27
|
buildProviderAuthHeaders,
|
|
27
28
|
buildProviderExecutionPlan
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LJIJWXIT.js";
|
|
29
30
|
import {
|
|
30
31
|
canonicalizeToolName,
|
|
31
32
|
createGlob,
|
|
@@ -87,10 +88,20 @@ function parseSseDataLineJson(line) {
|
|
|
87
88
|
return null;
|
|
88
89
|
}
|
|
89
90
|
}
|
|
91
|
+
function parseSseDataLineObject(line) {
|
|
92
|
+
const parsed = parseSseDataLineJson(line);
|
|
93
|
+
return parsed && typeof parsed === "object" ? parsed : null;
|
|
94
|
+
}
|
|
90
95
|
|
|
91
96
|
// packages/agent-runtime/openAiCompatibleProvider.ts
|
|
92
97
|
function buildOpenAiCompatibleChatCompletionRequest(args) {
|
|
93
|
-
const
|
|
98
|
+
const shouldStripReasoning = shouldStripReasoningContentForOutbound(
|
|
99
|
+
args.providerConfig.provider,
|
|
100
|
+
args.providerConfig.model
|
|
101
|
+
);
|
|
102
|
+
const messages = toOpenAiCompatibleMessages(args.messages, {
|
|
103
|
+
stripReasoningContent: shouldStripReasoning
|
|
104
|
+
});
|
|
94
105
|
const body = {
|
|
95
106
|
model: args.providerConfig.model,
|
|
96
107
|
messages: requiresBareImageUrl({
|
|
@@ -3619,6 +3630,7 @@ function createLocalWorkspaceToolExecutors(args) {
|
|
|
3619
3630
|
|
|
3620
3631
|
export {
|
|
3621
3632
|
parseSseDataLineJson,
|
|
3633
|
+
parseSseDataLineObject,
|
|
3622
3634
|
buildOpenAiCompatibleChatCompletionRequest,
|
|
3623
3635
|
parseOpenAiCompatibleChatCompletionResponse,
|
|
3624
3636
|
readOpenAiCompatibleSseCompletion,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
prepareAndPersistMessage,
|
|
4
4
|
uiAskChoiceFunc,
|
|
5
5
|
uiAskChoiceFunctionSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XBOY5KZG.js";
|
|
7
7
|
import {
|
|
8
8
|
require_date_fns
|
|
9
9
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
PLATFORM_HOSTED_GLM_52_MODEL,
|
|
15
15
|
PLATFORM_HOSTED_GLM_PRICE,
|
|
16
16
|
PLATFORM_HOSTED_KIMI_PROVIDER
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LPWS7HMQ.js";
|
|
18
18
|
import {
|
|
19
19
|
read,
|
|
20
20
|
readAndWait,
|
|
21
21
|
removeCachedEntity,
|
|
22
22
|
upsertSSREntity,
|
|
23
23
|
write
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3S2VOMIF.js";
|
|
25
25
|
import {
|
|
26
26
|
createAgentKey,
|
|
27
27
|
createDialogKey,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
toTimestampMs,
|
|
11
11
|
upsert,
|
|
12
12
|
write
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3S2VOMIF.js";
|
|
14
14
|
import {
|
|
15
15
|
createUserKey,
|
|
16
16
|
createUserPreferenceKey,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-QSJ3HFEF.js";
|
|
22
22
|
import {
|
|
23
23
|
BUILTIN_NOLO_AGENT_KEY
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XPC5C7BK.js";
|
|
25
25
|
import {
|
|
26
26
|
asyncThunkCreator,
|
|
27
27
|
buildCreateSlice,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
3
3
|
isAntigravityOAuthAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CI2G2Z2L.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText,
|
|
7
7
|
fetchAndSerializeTable,
|
|
8
8
|
waitForAbortableDelay
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BH4AZ7S6.js";
|
|
10
10
|
import {
|
|
11
11
|
createDrainExhaustedResponse,
|
|
12
12
|
isCoreDrainingBody,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-RQSOAMPJ.js";
|
|
17
17
|
import {
|
|
18
18
|
slateToSimplifiedMarkdown
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6N4KODMN.js";
|
|
20
20
|
import {
|
|
21
21
|
extractCategorizedMentions
|
|
22
22
|
} from "./chunk-VP4WJWKW.js";
|
|
@@ -26,38 +26,38 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
fetchAndCacheMessages,
|
|
28
28
|
shouldUseServerProxy
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XBOY5KZG.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchServerSyncedCredential
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ZVBKL6NS.js";
|
|
33
33
|
import {
|
|
34
34
|
buildCurrentTimeBlock,
|
|
35
35
|
buildIdentityBlock,
|
|
36
36
|
buildRuntimeGuidanceBlocks,
|
|
37
37
|
requiresBareImageUrl,
|
|
38
38
|
toBareImageUrlMessages
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ASZ2C44S.js";
|
|
40
40
|
import {
|
|
41
41
|
convertMessagesToResponsesInput,
|
|
42
42
|
preserveAgentStateFields
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KFEVY3ST.js";
|
|
44
44
|
import {
|
|
45
45
|
buildProviderAuthHeaders,
|
|
46
46
|
isOpenAiResponsesModel,
|
|
47
47
|
resolvePlatformChatCompletionsEndpoint,
|
|
48
48
|
resolvePlatformResponsesEndpoint
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-LJIJWXIT.js";
|
|
50
50
|
import {
|
|
51
51
|
canonicalizeToolNames
|
|
52
52
|
} from "./chunk-B4KT7RN2.js";
|
|
53
53
|
import {
|
|
54
54
|
estimateTokenCount
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-4IF3B7WC.js";
|
|
56
56
|
import {
|
|
57
57
|
clampReasoningEffort,
|
|
58
58
|
getModelConfig,
|
|
59
59
|
isModelSupportReasoningEffort
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-5BP2BROQ.js";
|
|
61
61
|
import {
|
|
62
62
|
createFileCredentialBroker
|
|
63
63
|
} from "./chunk-5CS33IBL.js";
|
|
@@ -75,13 +75,13 @@ import {
|
|
|
75
75
|
isDeepInfraKimiModel,
|
|
76
76
|
isFireworksKimiModel,
|
|
77
77
|
resolveFireworksKimiModel
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-LPWS7HMQ.js";
|
|
79
79
|
import {
|
|
80
80
|
createSpaceKey
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-IWLUTMYX.js";
|
|
82
82
|
import {
|
|
83
83
|
read
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-3S2VOMIF.js";
|
|
85
85
|
import {
|
|
86
86
|
asNonEmptyStringArray
|
|
87
87
|
} from "./chunk-I42VC5KR.js";
|
|
@@ -30,6 +30,13 @@ function toOpenAiCompatibleMessages(messages, options) {
|
|
|
30
30
|
}, options)
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
+
function shouldStripReasoningContentForOutbound(provider, model) {
|
|
34
|
+
const p = provider?.trim().toLowerCase();
|
|
35
|
+
const m = model?.trim().toLowerCase();
|
|
36
|
+
if (!p || !m) return false;
|
|
37
|
+
if (p === "deepseek" || p === "nolo") return m === "deepseek-v4-flash";
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
33
40
|
|
|
34
41
|
// packages/integrations/openai/responsesHelpers.ts
|
|
35
42
|
var RESPONSES_TOP_LEVEL_SCHEMA_KEYS = ["anyOf", "oneOf", "allOf", "enum", "not"];
|
|
@@ -99,7 +106,7 @@ var toResponsesTools = (tools) => {
|
|
|
99
106
|
};
|
|
100
107
|
}).filter(Boolean);
|
|
101
108
|
};
|
|
102
|
-
var convertMessagesToResponsesInput = (messages) => {
|
|
109
|
+
var convertMessagesToResponsesInput = (messages, options) => {
|
|
103
110
|
const input = [];
|
|
104
111
|
for (const message of messages) {
|
|
105
112
|
if (!message?.role) continue;
|
|
@@ -113,7 +120,7 @@ var convertMessagesToResponsesInput = (messages) => {
|
|
|
113
120
|
continue;
|
|
114
121
|
}
|
|
115
122
|
const role = message.role;
|
|
116
|
-
if (role === "assistant" && typeof message.reasoning_content === "string" && message.reasoning_content) {
|
|
123
|
+
if (role === "assistant" && !options?.stripReasoningContent && typeof message.reasoning_content === "string" && message.reasoning_content) {
|
|
117
124
|
input.push({ type: "reasoning", content: message.reasoning_content });
|
|
118
125
|
}
|
|
119
126
|
const contentParts = normalizeMessageParts(message.content, role);
|
|
@@ -239,6 +246,7 @@ export {
|
|
|
239
246
|
hasImageParts,
|
|
240
247
|
preserveAgentStateFields,
|
|
241
248
|
toOpenAiCompatibleMessages,
|
|
249
|
+
shouldStripReasoningContentForOutbound,
|
|
242
250
|
toResponsesTools,
|
|
243
251
|
convertMessagesToResponsesInput,
|
|
244
252
|
extractTextFromResponseOutput,
|