nolo-cli 0.48.0-alpha.1 → 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-LFBAN2KT.js → _executeModel-4BPV4B2U.js} +13 -13
- package/{agentDeleteCommand-CNN5LBAO.js → agentDeleteCommand-KZSETRE3.js} +4 -4
- package/{agentEmailCommands-HGNTOOF3.js → agentEmailCommands-C33KPOFP.js} +16 -16
- package/{agentListCommands-TJAGNI7U.js → agentListCommands-KVLURCS7.js} +4 -4
- package/{agentMachineCommands-LX7LYP5C.js → agentMachineCommands-ICOLSVID.js} +5 -5
- package/{agentRecordCommands-BTNT2CID.js → agentRecordCommands-OWKWVY3Y.js} +15 -15
- package/{agentRunCommand-AWTIQN4B.js → agentRunCommand-FINKBYUN.js} +15 -15
- package/{agentRuntimeLocal-IWHECAEG.js → agentRuntimeLocal-SIQYQGSK.js} +4 -4
- package/{agentSlice-X2QCV4WW.js → agentSlice-VD3BAJAU.js} +1 -1
- package/{appDeleteCommands-5V5XNCOC.js → appDeleteCommands-LSIIQFYN.js} +4 -4
- package/{appDeployCommands-VXOHBAQ5.js → appDeployCommands-VYGKN7HU.js} +4 -4
- package/{appDeployStatusCommands-OH45XPZT.js → appDeployStatusCommands-ODFHFUR7.js} +4 -4
- package/{appGetCommands-L4IAC6AP.js → appGetCommands-DPQY67UZ.js} +4 -4
- package/{appListCommands-LS4YZVY5.js → appListCommands-EFXENXWX.js} +4 -4
- package/{authCommand-E2KFUS4J.js → authCommand-WLWOEVYI.js} +5 -5
- package/{chatQueueReduxAdapter-U7XNAUPH.js → chatQueueReduxAdapter-N5432EP2.js} +3 -3
- package/{chunk-6AWD37OI.js → chunk-33BBDA67.js} +9 -9
- package/{chunk-ZU2H6WIX.js → chunk-3YVCM5PE.js} +1 -1
- package/{chunk-MJHHVH7D.js → chunk-4YAMAMNA.js} +6 -6
- package/{chunk-4YL2BXS7.js → chunk-4ZL2KBI7.js} +1 -1
- package/{chunk-PZFSINTN.js → chunk-5JXRVJAC.js} +3 -3
- package/{chunk-P4Q2EYHT.js → chunk-6L6UPZNH.js} +6 -6
- package/{chunk-5WYNOWDN.js → chunk-72COHDZR.js} +9 -9
- package/{chunk-IQUYI3QB.js → chunk-7GRFFW7R.js} +3 -3
- package/{chunk-A25TOOMK.js → chunk-7M72YPM2.js} +2 -2
- package/{chunk-VOXLJGEG.js → chunk-AV4Z57LV.js} +2 -0
- package/{chunk-CNPQJ6Z5.js → chunk-AZ6DT2UD.js} +1 -1
- package/{chunk-7AIGZTJ4.js → chunk-IERBSHMR.js} +2 -2
- package/{chunk-SH2CND5A.js → chunk-JBL24PK6.js} +1 -1
- package/{chunk-QTXG62UK.js → chunk-MCX2LX27.js} +8 -8
- package/{chunk-A5C6BSLO.js → chunk-OZ4JNDIL.js} +1 -1
- package/{chunk-2DO42AEN.js → chunk-QAG4ZQZ7.js} +1 -1
- package/{chunk-AGOQMUIT.js → chunk-QDNFRWAX.js} +2 -2
- package/{chunk-6O2AU6RJ.js → chunk-RPO6WAZV.js} +1 -1
- package/{chunk-BBMYBLCJ.js → chunk-S3HB4CQY.js} +2 -2
- package/{chunk-KHP6MASA.js → chunk-VZGLZTG7.js} +7 -7
- package/{chunk-I2UBTFAP.js → chunk-XB7ACJFH.js} +1 -1
- package/{createAgentAutomationAction-JCB6QE35.js → createAgentAutomationAction-IHKV53QC.js} +4 -4
- package/{createDialogAction-KUTVRAVR.js → createDialogAction-4ARDCKPP.js} +5 -5
- package/{createPageAction-FGECIUOW.js → createPageAction-GQOCPICU.js} +4 -4
- package/{dialogCommands-CMOEOOSH.js → dialogCommands-YOTCP26N.js} +4 -4
- package/{dialogSlice-QOK4QUSI.js → dialogSlice-NX26W623.js} +3 -3
- package/{docCreateCommands-GEQXMOLF.js → docCreateCommands-JVAMHES4.js} +4 -4
- package/{docDeleteCommands-4U3XHYYC.js → docDeleteCommands-LW5DWICT.js} +4 -4
- package/{docReadCommands-D33RAMDE.js → docReadCommands-AQOZS3I5.js} +4 -4
- package/{docStore-3Q2U743R.js → docStore-YAE7GYHZ.js} +5 -5
- package/{docUpdateCommands-TFG3WL6F.js → docUpdateCommands-FFGGX5RG.js} +4 -4
- package/{handleSendMessageAction-N47LDTXU.js → handleSendMessageAction-7YKH4UBI.js} +3 -3
- package/index.js +47 -47
- package/{machineCommands-BKPQVPFD.js → machineCommands-X7YMGFMB.js} +15 -15
- package/{machineWsRunDispatch-OJEKYCXU.js → machineWsRunDispatch-KWWJ4HTI.js} +15 -15
- package/package.json +1 -1
- package/{readlineWorkspace-3I7S45CJ.js → readlineWorkspace-GEZVQ7IM.js} +15 -15
- package/{runAgentClientLoop-U2UQ4OO6.js → runAgentClientLoop-6NCW5AS6.js} +11 -11
- package/{spaceCommands-XQY2URWJ.js → spaceCommands-7MJVL4XR.js} +4 -4
- package/{spaceSlice-DCSYGLQY.js → spaceSlice-JVVDCGA3.js} +4 -4
- package/{streamAgentChatTurn-MDSNFOAK.js → streamAgentChatTurn-UAKCHWFN.js} +12 -12
- package/{tools-TH3CM2BJ.js → tools-ROUITGAR.js} +7 -7
- package/{tuiSummaryLlmCaller-5CSCW5HP.js → tuiSummaryLlmCaller-U4EGD2SX.js} +3 -3
- package/{updateDialogTitleAction-WGRL752X.js → updateDialogTitleAction-R4M6ZXCX.js} +4 -4
|
@@ -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";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
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,7 +155,7 @@ 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
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
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,
|
|
@@ -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";
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
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,7 +54,7 @@ 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
60
|
} from "./chunk-HR5XDXYM.js";
|
|
@@ -62,7 +62,7 @@ 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";
|
|
@@ -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
|
/**
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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();
|
|
@@ -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,
|
|
@@ -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";
|
|
@@ -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",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7M72YPM2.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareAndPersistMessage,
|
|
6
6
|
uiAskChoiceFunc,
|
|
7
7
|
uiAskChoiceFunctionSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MCX2LX27.js";
|
|
9
9
|
import {
|
|
10
10
|
require_date_fns
|
|
11
11
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
resolvePlatformChatCompletionsEndpoint,
|
|
4
4
|
resolvePlatformHostedCredentialProvider,
|
|
5
5
|
resolvePlatformResponsesEndpoint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AV4Z57LV.js";
|
|
7
7
|
import {
|
|
8
8
|
CLIENT_VERSION_TOO_OLD_CODE,
|
|
9
9
|
buildClientVersionGateErrorDetail,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-YYLHWIW6.js";
|
|
11
11
|
import {
|
|
12
12
|
runLlm
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5JXRVJAC.js";
|
|
14
14
|
import {
|
|
15
15
|
getApproxPricePerImage
|
|
16
16
|
} from "./chunk-AGGIDPCZ.js";
|
|
@@ -3584,7 +3584,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
3584
3584
|
runtimeOptions: args.runtimeOptions
|
|
3585
3585
|
});
|
|
3586
3586
|
if (agentKeyToUse) {
|
|
3587
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
3587
|
+
const { streamAgentChatTurn } = await import("./agentSlice-VD3BAJAU.js");
|
|
3588
3588
|
await dispatch(
|
|
3589
3589
|
streamAgentChatTurn({
|
|
3590
3590
|
agentKey: agentKeyToUse,
|
|
@@ -4848,7 +4848,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
if (isCurrentDialog) {
|
|
4850
4850
|
await thunkApi.dispatch(resetMsgs());
|
|
4851
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
4851
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-NX26W623.js");
|
|
4852
4852
|
dispatch(clearPendingAttachments2());
|
|
4853
4853
|
}
|
|
4854
4854
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -4856,15 +4856,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
4856
4856
|
|
|
4857
4857
|
// packages/chat/dialog/dialogSlice.ts
|
|
4858
4858
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
4859
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
4859
|
+
const { createDialogAction } = await import("./createDialogAction-4ARDCKPP.js");
|
|
4860
4860
|
return createDialogAction(args, thunkApi);
|
|
4861
4861
|
};
|
|
4862
4862
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
4863
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
4863
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-IHKV53QC.js");
|
|
4864
4864
|
return createAgentAutomationAction(args, thunkApi);
|
|
4865
4865
|
};
|
|
4866
4866
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
4867
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
4867
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-R4M6ZXCX.js");
|
|
4868
4868
|
return updateDialogTitleAction(args, thunkApi);
|
|
4869
4869
|
};
|
|
4870
4870
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -4888,7 +4888,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
4888
4888
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
4889
4889
|
};
|
|
4890
4890
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
4891
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
4891
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-7YKH4UBI.js");
|
|
4892
4892
|
return handleSendMessageAction(args, thunkApi);
|
|
4893
4893
|
};
|
|
4894
4894
|
function clearDialogState() {
|
|
@@ -4901,7 +4901,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
4901
4901
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
4902
4902
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
4903
4903
|
try {
|
|
4904
|
-
const { createDocState } = await import("./docStore-
|
|
4904
|
+
const { createDocState } = await import("./docStore-YAE7GYHZ.js");
|
|
4905
4905
|
const pageKey = await createDocState(
|
|
4906
4906
|
{ slateData, title },
|
|
4907
4907
|
{ dispatch, getState }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7M72YPM2.js";
|
|
4
4
|
import {
|
|
5
5
|
require_date_fns
|
|
6
6
|
} from "./chunk-M76ECQRD.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-GQOCPICU.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
providerHttpFailure,
|
|
8
8
|
readSseFrames,
|
|
9
9
|
throwIfChatCompletionStreamFailed
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XB7ACJFH.js";
|
|
11
11
|
import {
|
|
12
12
|
FRESH_TOOL_OUTPUT_MAX_CHARS,
|
|
13
13
|
MAX_HISTORICAL_TOOL_CONTENT_CHARS,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
buildProviderAuthHeaders,
|
|
52
52
|
buildProviderExecutionPlan
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-JBL24PK6.js";
|
|
54
54
|
import {
|
|
55
55
|
NOLO_WORKSPACE_TOOL_NAMES,
|
|
56
56
|
buildNoloWorkspaceCommandArgs,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
parseAgentRunEvent,
|
|
20
20
|
t,
|
|
21
21
|
toolLabel
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-33BBDA67.js";
|
|
23
23
|
import {
|
|
24
24
|
getReadableCliDb
|
|
25
25
|
} from "./chunk-43CXXVJD.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
} from "./chunk-LTRXGFMS.js";
|
|
53
53
|
import {
|
|
54
54
|
formatAgentListCard
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-72COHDZR.js";
|
|
56
56
|
import {
|
|
57
57
|
isTransientFetchError
|
|
58
58
|
} from "./chunk-5XTOKQLW.js";
|
|
@@ -74,12 +74,12 @@ import {
|
|
|
74
74
|
chooseMemoryOwners,
|
|
75
75
|
loadMemoryCandidatesFromDb,
|
|
76
76
|
resolveAgentMemoryPolicy
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-IERBSHMR.js";
|
|
78
78
|
import {
|
|
79
79
|
API_REPORTED_COST_MULTIPLIER,
|
|
80
80
|
normalizeUsage,
|
|
81
81
|
parseUiAskChoiceContent
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-MCX2LX27.js";
|
|
83
83
|
import {
|
|
84
84
|
getDefaultCliLocalRuntimeDb
|
|
85
85
|
} from "./chunk-IA3A5373.js";
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
LOCAL_TURN_ABORTED_CODE,
|
|
96
96
|
readActionGate,
|
|
97
97
|
readCommandActionGatePayload
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-S3HB4CQY.js";
|
|
99
99
|
import {
|
|
100
100
|
resolveAgentRuntimeConfigFromRecord
|
|
101
101
|
} from "./chunk-VKSBVRGP.js";
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
import {
|
|
108
108
|
resolveClientVersion,
|
|
109
109
|
resolvePlatformAuthToken
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-JBL24PK6.js";
|
|
111
111
|
import {
|
|
112
112
|
isQuotaExhaustedError
|
|
113
113
|
} from "./chunk-IWUMSAQF.js";
|
|
@@ -5444,7 +5444,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
5444
5444
|
// packages/cli/client/agentRun.ts
|
|
5445
5445
|
import { ulid } from "ulid";
|
|
5446
5446
|
async function loadRunLocalAgentTurn() {
|
|
5447
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
5447
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-SIQYQGSK.js");
|
|
5448
5448
|
return runLocalAgentTurn;
|
|
5449
5449
|
}
|
|
5450
5450
|
async function resolveCurrentMachineId(options) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-7M72YPM2.js";
|
|
4
|
+
import "./chunk-MCX2LX27.js";
|
|
5
5
|
import "./chunk-EVBFYPDC.js";
|
|
6
6
|
import "./chunk-H2G6JXTR.js";
|
|
7
7
|
import "./chunk-YYLHWIW6.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-5JXRVJAC.js";
|
|
9
9
|
import "./chunk-AGGIDPCZ.js";
|
|
10
10
|
import "./chunk-SG65C33A.js";
|
|
11
11
|
import "./chunk-5RGU3J7P.js";
|
|
@@ -13,7 +13,7 @@ import "./chunk-M76ECQRD.js";
|
|
|
13
13
|
import "./chunk-MRWGHF56.js";
|
|
14
14
|
import "./chunk-F22JQTSX.js";
|
|
15
15
|
import "./chunk-HR5XDXYM.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-AV4Z57LV.js";
|
|
17
17
|
import "./chunk-NQ4N4IGO.js";
|
|
18
18
|
import "./chunk-FD36SCCD.js";
|
|
19
19
|
import "./chunk-BO3YFOZR.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDialogAction,
|
|
3
3
|
isLocalOwnerDialogAgents
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-IERBSHMR.js";
|
|
5
|
+
import "./chunk-7M72YPM2.js";
|
|
6
|
+
import "./chunk-MCX2LX27.js";
|
|
7
7
|
import "./chunk-EVBFYPDC.js";
|
|
8
8
|
import "./chunk-H2G6JXTR.js";
|
|
9
9
|
import "./chunk-YYLHWIW6.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-5JXRVJAC.js";
|
|
11
11
|
import "./chunk-AGGIDPCZ.js";
|
|
12
12
|
import "./chunk-SG65C33A.js";
|
|
13
13
|
import "./chunk-5RGU3J7P.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-AETZ7AD6.js";
|
|
|
18
18
|
import "./chunk-KHCLMKZZ.js";
|
|
19
19
|
import "./chunk-F22JQTSX.js";
|
|
20
20
|
import "./chunk-HR5XDXYM.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-AV4Z57LV.js";
|
|
22
22
|
import "./chunk-NQ4N4IGO.js";
|
|
23
23
|
import "./chunk-FD36SCCD.js";
|
|
24
24
|
import "./chunk-BO3YFOZR.js";
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
addContentToSpace,
|
|
16
16
|
client_default,
|
|
17
17
|
getCurrentSpaceId
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-7M72YPM2.js";
|
|
19
|
+
import "./chunk-MCX2LX27.js";
|
|
20
20
|
import "./chunk-EVBFYPDC.js";
|
|
21
21
|
import "./chunk-H2G6JXTR.js";
|
|
22
22
|
import "./chunk-YYLHWIW6.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-5JXRVJAC.js";
|
|
24
24
|
import "./chunk-AGGIDPCZ.js";
|
|
25
25
|
import "./chunk-SG65C33A.js";
|
|
26
26
|
import "./chunk-5RGU3J7P.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import "./chunk-KHCLMKZZ.js";
|
|
33
33
|
import "./chunk-F22JQTSX.js";
|
|
34
34
|
import "./chunk-HR5XDXYM.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-AV4Z57LV.js";
|
|
36
36
|
import "./chunk-NQ4N4IGO.js";
|
|
37
37
|
import "./chunk-FD36SCCD.js";
|
|
38
38
|
import "./chunk-BO3YFOZR.js";
|