nolo-cli 0.16.0-alpha.1 → 0.16.0-alpha.11
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-QAUS6B7J.js → _executeModel-LGHYA5XS.js} +29 -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-365DMKHW.js → agentDeleteCommand-PBIUC4FT.js} +18 -17
- package/{agentEmailCommands-TQMXL36I.js → agentEmailCommands-KC2QCPQV.js} +35 -34
- package/{agentListCommands-6B5X4RC6.js → agentListCommands-N64PHBXM.js} +20 -19
- package/{agentMachineCommands-LOEARB6V.js → agentMachineCommands-P7S5WAVA.js} +18 -17
- package/{agentRecordCommands-DCH2WBL2.js → agentRecordCommands-JKZR2TZJ.js} +34 -33
- package/{agentRunCommand-SGMH67WT.js → agentRunCommand-2ELKCBWR.js} +34 -33
- package/{agentRuntimeLocal-YSYZ33ER.js → agentRuntimeLocal-T6YECTNF.js} +15 -16
- package/{agentSlice-IVE735EV.js → agentSlice-NXLMDKR7.js} +3 -3
- package/{appDeleteCommands-6QYOO3JB.js → appDeleteCommands-D6B6Z4ZQ.js} +19 -18
- package/{appDeployCommands-WTCT6XO6.js → appDeployCommands-YMO5FK4T.js} +19 -18
- package/{appDeployStatusCommands-CGWGZJKB.js → appDeployStatusCommands-EO5DWWPQ.js} +19 -18
- package/{appGetCommands-O4OCAMRW.js → appGetCommands-6SMZ3URQ.js} +19 -18
- package/{appListCommands-UENFP4XY.js → appListCommands-RZXSWR2G.js} +19 -18
- package/{authCommand-YFTR3347.js → authCommand-MSSBXCQ6.js} +8 -2
- package/{chunk-EMXI3N3Z.js → chunk-22NGXGN3.js} +2 -2
- package/{chunk-WPN6RMDF.js → chunk-2WXMU64E.js} +3 -3
- package/{chunk-SFXYKGK2.js → chunk-3S2VOMIF.js} +3 -3
- package/{chunk-WRN5EQT7.js → chunk-47QUPRHO.js} +3 -3
- package/{chunk-YNHQIXX5.js → chunk-4LXOVZ4W.js} +21 -21
- package/{chunk-O53CP2QR.js → chunk-6CRACQXW.js} +3 -3
- package/{chunk-E237VE6U.js → chunk-6KBBMW4D.js} +2 -2
- package/{chunk-U7LEGLEB.js → chunk-6N4KODMN.js} +1 -1
- package/{chunk-GRTFNYLR.js → chunk-A7O4KKLZ.js} +3 -3
- package/{chunk-WA6KZL5V.js → chunk-AAODAAUQ.js} +23 -20
- package/{chunk-Z24FGIU2.js → chunk-BXXECNBU.js} +3 -3
- package/{chunk-4NLUNENX.js → chunk-C4MMO7W4.js} +1 -1
- package/{chunk-JKWWVF2I.js → chunk-D3HVJJIA.js} +1 -1
- package/{chunk-VE6XMVKG.js → chunk-D4NCEGGR.js} +167 -53
- package/{chunk-TTGAVETO.js → chunk-EABWT43X.js} +2 -2
- package/{chunk-YYIRR6QC.js → chunk-EQTZPEID.js} +140 -175
- package/{chunk-RSYUDGGZ.js → chunk-F3UOACU4.js} +1 -1
- package/{chunk-RKM3K52F.js → chunk-GPELDE6I.js} +2 -2
- package/{chunk-OGGHETUE.js → chunk-HQPG2PIV.js} +62 -19
- package/{chunk-BFRVXJJJ.js → chunk-HSASSW4L.js} +27 -11
- package/{chunk-XVP3C2KY.js → chunk-IWLUTMYX.js} +1 -1
- package/{chunk-B4KT7RN2.js → chunk-JTMNCCWF.js} +2 -2
- package/chunk-KFEVY3ST.js +255 -0
- package/{chunk-WNLPAOIT.js → chunk-KFHN5NGJ.js} +1 -1
- package/{chunk-ISYE6GZB.js → chunk-L6NVTGI7.js} +1 -1
- package/{chunk-J55UHASN.js → chunk-MSA4JAOZ.js} +1 -1
- package/{chunk-HRQCKQA5.js → chunk-MUCU6ATG.js} +8 -257
- package/{chunk-524BDL33.js → chunk-O6W2O2DA.js} +1 -15
- package/{chunk-4QQFLN5C.js → chunk-OVBVEXZ7.js} +4 -4
- package/{chunk-QZVGMD5F.js → chunk-PU4LXVAC.js} +1 -1
- package/{chunk-4IJYA27C.js → chunk-RG2U2MTJ.js} +1 -1
- package/{chunk-6MHDWKOT.js → chunk-RIF3XLXK.js} +9 -5
- package/{chunk-IKXL2HZ3.js → chunk-RK5NYQEL.js} +1 -1
- package/{chunk-JS33TCQ3.js → chunk-RPDGJO4D.js} +2 -2
- package/{chunk-EHLHSX7R.js → chunk-UB4RYYNQ.js} +9 -2
- package/{chunk-YC3DJILJ.js → chunk-VHXXRWNL.js} +22 -8
- package/{chunk-G2MKOQCB.js → chunk-WBA6SIBB.js} +1 -1
- package/{chunk-6565R2TI.js → chunk-XEWUC53Z.js} +38 -20
- package/{chunk-OOIN7HSO.js → chunk-XJITGCTM.js} +10 -1
- package/{chunk-V2J635L5.js → chunk-XOIF2TNF.js} +2 -2
- package/{chunk-VPTJB4HM.js → chunk-XPC5C7BK.js} +0 -3
- package/{chunk-I66RU7P7.js → chunk-XRSPI6CP.js} +1 -1
- package/{chunk-N5424GSW.js → chunk-YJKXGHJ6.js} +1 -1
- package/{chunk-QLFCNUVQ.js → chunk-ZH62XNZE.js} +877 -172
- package/chunk-ZHXJ6M7T.js +27 -0
- package/{chunk-OQMPU2ML.js → chunk-ZXQ52OY2.js} +4 -4
- package/{createAgentAutomationAction-TS6NNZ4X.js → createAgentAutomationAction-RKWIMKHW.js} +13 -13
- package/{createDialogAction-5HVQ33EX.js → createDialogAction-VN7MEBS3.js} +14 -14
- package/{createPageAction-4F3ZGQJD.js → createPageAction-JBUWBHHC.js} +13 -13
- package/{dbSlice-OP6UPXKA.js → dbSlice-7KQH6GOU.js} +2 -2
- package/{dialogCommands-ZL6L24BS.js → dialogCommands-DFY5HJ6M.js} +19 -18
- package/{dialogSlice-FAWUQDJW.js → dialogSlice-NNYBU35K.js} +13 -13
- package/{docCreateCommands-LYROQTFH.js → docCreateCommands-5L76YTI2.js} +18 -17
- package/{docDeleteCommands-6TWGTZNR.js → docDeleteCommands-3GASP3VR.js} +19 -18
- package/{docReadCommands-PRULNF26.js → docReadCommands-ALA77AZM.js} +18 -17
- package/{docStore-2UHVWLTV.js → docStore-DR22GGF3.js} +14 -14
- package/{docUpdateCommands-NNYYWJBI.js → docUpdateCommands-6AZGXE5M.js} +18 -17
- package/{getPricing-UGDJHI7M.js → getPricing-RYY6OBA4.js} +4 -4
- package/{handleSendMessageAction-LJPUYNOH.js → handleSendMessageAction-FHITDM7H.js} +201 -15
- package/index.js +47 -47
- package/{machineCommands-JQPEQFSE.js → machineCommands-3B4IHHVK.js} +33 -32
- package/{machineWsRunDispatch-FFFNWVEW.js → machineWsRunDispatch-AXZ6OL3V.js} +33 -32
- package/{models-LSCRJJ6P.js → models-5K5G2CZI.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-QSXHSBHA.js → readlineWorkspace-DBZCXS7Y.js} +145 -92
- package/{removeDialogAgentAction-HUFVN35S.js → removeDialogAgentAction-YDHBFEGI.js} +5 -5
- package/{runAgentClientLoop-A75BUU6D.js → runAgentClientLoop-AB7PQ3TB.js} +26 -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-4LE45GB7.js → spaceCommands-AB2D7A2R.js} +18 -17
- package/{spaceSlice-444MFUP6.js → spaceSlice-TEJDCU6A.js} +13 -13
- package/{streamAgentChatTurn-DJAE7USZ.js → streamAgentChatTurn-NZ3HLAXS.js} +30 -32
- package/{tools-YB6LXSVN.js → tools-M4USUF3R.js} +20 -20
- package/{tuiSummaryLlmCaller-QQL3JA5I.js → tuiSummaryLlmCaller-VUNVBRX3.js} +7 -6
- package/{updateDialogTitleAction-6HGFBM64.js → updateDialogTitleAction-SMPQVKWT.js} +13 -13
- package/chunk-BYXBJQAS.js +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
i18n_default,
|
|
3
3
|
toolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D4NCEGGR.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalizeToolNames
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JTMNCCWF.js";
|
|
8
8
|
import {
|
|
9
9
|
isNoloHostedProvider
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O6W2O2DA.js";
|
|
11
11
|
import {
|
|
12
12
|
asTrimmedLowercaseString
|
|
13
13
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BUILTIN_SUMMARY_LLM_CONFIG,
|
|
3
3
|
buildBuiltinSummaryContent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XOIF2TNF.js";
|
|
5
5
|
import {
|
|
6
6
|
authRoutes
|
|
7
7
|
} from "./chunk-MRC4Q34M.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
deleteServerSyncedCredential,
|
|
17
17
|
runLlm
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZXQ52OY2.js";
|
|
19
19
|
import {
|
|
20
20
|
cleanupCliSessionForDialog
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RPDGJO4D.js";
|
|
22
22
|
import {
|
|
23
23
|
fetchMessages
|
|
24
24
|
} from "./chunk-SOTZ6RDN.js";
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
normalizeAssistantContentBuffer,
|
|
37
37
|
planCompression,
|
|
38
38
|
serializeMessageContent
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-OVBVEXZ7.js";
|
|
40
40
|
import {
|
|
41
41
|
findModelConfig,
|
|
42
42
|
getModelConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-HQPG2PIV.js";
|
|
44
44
|
import {
|
|
45
45
|
createFileCredentialBroker
|
|
46
46
|
} from "./chunk-5CS33IBL.js";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
selectRemoteServer,
|
|
75
75
|
selectRemoteServers,
|
|
76
76
|
selectRemoteSyncServers
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-EABWT43X.js";
|
|
78
78
|
import {
|
|
79
79
|
asRecordOrEmpty
|
|
80
80
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
createSpaceKey,
|
|
86
86
|
localSpaceAuthorityPatchStamp,
|
|
87
87
|
normalizeSpaceId
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-IWLUTMYX.js";
|
|
89
89
|
import {
|
|
90
90
|
patch,
|
|
91
91
|
read,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
uploadFileAction,
|
|
99
99
|
upsertSSREntity,
|
|
100
100
|
write
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-3S2VOMIF.js";
|
|
102
102
|
import {
|
|
103
103
|
DB_PREFIX,
|
|
104
104
|
SEPARATOR,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
} from "./chunk-QSJ3HFEF.js";
|
|
137
137
|
import {
|
|
138
138
|
readAction
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-XPC5C7BK.js";
|
|
140
140
|
import {
|
|
141
141
|
DEVICE_LOCAL_OWNER_ID,
|
|
142
142
|
asyncThunkCreator,
|
|
@@ -5529,7 +5529,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
5529
5529
|
runtimeOptions: args.runtimeOptions
|
|
5530
5530
|
});
|
|
5531
5531
|
if (agentKeyToUse) {
|
|
5532
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
5532
|
+
const { streamAgentChatTurn } = await import("./agentSlice-NXLMDKR7.js");
|
|
5533
5533
|
await dispatch(
|
|
5534
5534
|
streamAgentChatTurn({
|
|
5535
5535
|
agentKey: agentKeyToUse,
|
|
@@ -8249,7 +8249,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
8249
8249
|
}
|
|
8250
8250
|
if (isCurrentDialog) {
|
|
8251
8251
|
await thunkApi.dispatch(resetMsgs());
|
|
8252
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
8252
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-NNYBU35K.js");
|
|
8253
8253
|
dispatch(clearPendingAttachments2());
|
|
8254
8254
|
clearWorkflow();
|
|
8255
8255
|
}
|
|
@@ -8258,35 +8258,35 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
8258
8258
|
|
|
8259
8259
|
// packages/chat/dialog/dialogSlice.ts
|
|
8260
8260
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
8261
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
8261
|
+
const { createDialogAction } = await import("./createDialogAction-VN7MEBS3.js");
|
|
8262
8262
|
return createDialogAction(args, thunkApi);
|
|
8263
8263
|
};
|
|
8264
8264
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
8265
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
8265
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-RKWIMKHW.js");
|
|
8266
8266
|
return createAgentAutomationAction(args, thunkApi);
|
|
8267
8267
|
};
|
|
8268
8268
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
8269
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
8269
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-SMPQVKWT.js");
|
|
8270
8270
|
return updateDialogTitleAction(args, thunkApi);
|
|
8271
8271
|
};
|
|
8272
8272
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
8273
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
8273
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-EJHHJZWW.js");
|
|
8274
8274
|
return addDialogAgentAction(args, thunkApi);
|
|
8275
8275
|
};
|
|
8276
8276
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
8277
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
8277
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-YDHBFEGI.js");
|
|
8278
8278
|
return removeDialogAgentAction(args, thunkApi);
|
|
8279
8279
|
};
|
|
8280
8280
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
8281
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
8281
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-IIVDCY5C.js");
|
|
8282
8282
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
8283
8283
|
};
|
|
8284
8284
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
8285
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
8285
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-LR6MSIXO.js");
|
|
8286
8286
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
8287
8287
|
};
|
|
8288
8288
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
8289
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
8289
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-FHITDM7H.js");
|
|
8290
8290
|
return handleSendMessageAction(args, thunkApi);
|
|
8291
8291
|
};
|
|
8292
8292
|
function clearDialogState() {
|
|
@@ -8299,7 +8299,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
8299
8299
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
8300
8300
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
8301
8301
|
try {
|
|
8302
|
-
const { createDocState } = await import("./docStore-
|
|
8302
|
+
const { createDocState } = await import("./docStore-DR22GGF3.js");
|
|
8303
8303
|
const pageKey = await createDocState(
|
|
8304
8304
|
{ slateData, title },
|
|
8305
8305
|
{ dispatch, getState }
|
|
@@ -14455,7 +14455,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
14455
14455
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
14456
14456
|
const readSpace = async (dbKey) => {
|
|
14457
14457
|
try {
|
|
14458
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
14458
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-7KQH6GOU.js");
|
|
14459
14459
|
if (fresh) {
|
|
14460
14460
|
return await dispatch(readAndWait2(dbKey)).unwrap();
|
|
14461
14461
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4LXOVZ4W.js";
|
|
4
4
|
import {
|
|
5
5
|
require_date_fns
|
|
6
6
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
patch,
|
|
15
15
|
readAndWait
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3S2VOMIF.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-JBUWBHHC.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readDbRecord,
|
|
3
3
|
writeAgentRecord
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C4MMO7W4.js";
|
|
5
5
|
import {
|
|
6
6
|
buildSkillSummaryMarker
|
|
7
7
|
} from "./chunk-VF4K2QE6.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-A7GB5UGH.js";
|
|
14
14
|
import {
|
|
15
15
|
createSpaceKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IWLUTMYX.js";
|
|
17
17
|
import {
|
|
18
18
|
asTrimmedLowercaseString
|
|
19
19
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -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`);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MSA4JAOZ.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C4MMO7W4.js";
|
|
8
8
|
import {
|
|
9
9
|
toSafeAgentSummary
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XJITGCTM.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/agentListHelpers.ts
|
|
13
13
|
function parseAgentRecordId(privateKey, explicitId) {
|
|
@@ -7,21 +7,23 @@ import {
|
|
|
7
7
|
processThinkChunk
|
|
8
8
|
} from "./chunk-LSFAWXKC.js";
|
|
9
9
|
import {
|
|
10
|
-
buildProviderExecutionPlan,
|
|
11
|
-
canUsePlatformChatProvider,
|
|
12
10
|
convertMessagesToResponsesInput,
|
|
13
11
|
extractTextFromResponseOutput,
|
|
14
12
|
extractToolCallsFromResponseOutput,
|
|
15
|
-
hasDirectOpenAiCompatibleProvider,
|
|
16
13
|
hasImageParts,
|
|
14
|
+
shouldStripReasoningContentForOutbound,
|
|
15
|
+
toOpenAiCompatibleMessages,
|
|
16
|
+
toResponsesTools
|
|
17
|
+
} from "./chunk-KFEVY3ST.js";
|
|
18
|
+
import {
|
|
19
|
+
buildProviderExecutionPlan,
|
|
20
|
+
canUsePlatformChatProvider,
|
|
21
|
+
hasDirectOpenAiCompatibleProvider,
|
|
17
22
|
resolveAgentRuntimeLocation,
|
|
18
23
|
resolvePlatformAuthToken,
|
|
19
|
-
resolvePlatformChatCompletionsEndpoint,
|
|
20
24
|
resolvePlatformServerUrl,
|
|
21
|
-
resolveProviderTransportDecision
|
|
22
|
-
|
|
23
|
-
toResponsesTools
|
|
24
|
-
} from "./chunk-HRQCKQA5.js";
|
|
25
|
+
resolveProviderTransportDecision
|
|
26
|
+
} from "./chunk-MUCU6ATG.js";
|
|
25
27
|
import {
|
|
26
28
|
clipCompactText
|
|
27
29
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -257,9 +259,21 @@ async function resolvePlatformChatProviderConfig(args) {
|
|
|
257
259
|
function buildPlatformChatCompletionRequest(args) {
|
|
258
260
|
const usesResponsesApi = isResponsesEndpoint(args.providerConfig.endpoint);
|
|
259
261
|
const requestOptions = usesResponsesApi ? toResponsesRequestOptions(args.providerConfig.requestOptions) : args.providerConfig.requestOptions;
|
|
262
|
+
const shouldStripReasoning = shouldStripReasoningContentForOutbound(
|
|
263
|
+
args.providerConfig.provider,
|
|
264
|
+
args.providerConfig.model
|
|
265
|
+
);
|
|
260
266
|
const body = {
|
|
261
267
|
model: args.providerConfig.model,
|
|
262
|
-
...usesResponsesApi ? {
|
|
268
|
+
...usesResponsesApi ? {
|
|
269
|
+
input: convertMessagesToResponsesInput(args.messages, {
|
|
270
|
+
stripReasoningContent: shouldStripReasoning
|
|
271
|
+
})
|
|
272
|
+
} : {
|
|
273
|
+
messages: toOpenAiCompatibleMessages(args.messages, {
|
|
274
|
+
stripReasoningContent: shouldStripReasoning
|
|
275
|
+
})
|
|
276
|
+
},
|
|
263
277
|
stream: args.stream ?? false,
|
|
264
278
|
...args.stream ? { stream_options: { include_usage: true } } : {},
|
|
265
279
|
...requestOptions,
|
|
@@ -287,16 +301,6 @@ function buildPlatformChatCompletionRequest(args) {
|
|
|
287
301
|
}
|
|
288
302
|
};
|
|
289
303
|
}
|
|
290
|
-
function resolveLegacyDeepSeekProxyChatFallback(args) {
|
|
291
|
-
if (args.status !== 400 || args.providerConfig.provider.toLowerCase() !== "deepseek" || !isResponsesEndpoint(args.providerConfig.endpoint) || !/UPSTREAM_400/.test(args.raw) || !/missing field [`\"]?(?:function|messages)/i.test(args.raw)) {
|
|
292
|
-
return void 0;
|
|
293
|
-
}
|
|
294
|
-
const endpoint = resolvePlatformChatCompletionsEndpoint("deepseek");
|
|
295
|
-
return endpoint ? {
|
|
296
|
-
...args.providerConfig,
|
|
297
|
-
endpoint
|
|
298
|
-
} : void 0;
|
|
299
|
-
}
|
|
300
304
|
function tryParseJson(raw) {
|
|
301
305
|
try {
|
|
302
306
|
return JSON.parse(raw);
|
|
@@ -409,7 +413,6 @@ export {
|
|
|
409
413
|
readSseDataValues,
|
|
410
414
|
resolvePlatformChatProviderConfig,
|
|
411
415
|
buildPlatformChatCompletionRequest,
|
|
412
|
-
resolveLegacyDeepSeekProxyChatFallback,
|
|
413
416
|
parsePlatformChatCompletionData,
|
|
414
417
|
parsePlatformChatCompletionResponse,
|
|
415
418
|
canUsePlatformChatProvider2 as canUsePlatformChatProvider,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
prepareAndPersistMessage,
|
|
4
4
|
uiAskChoiceFunc,
|
|
5
5
|
uiAskChoiceFunctionSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4LXOVZ4W.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-O6W2O2DA.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,
|