nolo-cli 0.8.0-alpha.21 → 0.8.0-alpha.24
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-42U3VOVZ.js → _executeModel-2ZAPHFOX.js} +46 -43
- package/{action-TLI3V62L.js → action-QM2ONPYZ.js} +9 -9
- package/{addContentAction-57RSIIMR.js → addContentAction-UXY3GM53.js} +8 -8
- package/{addDialogAgentAction-G3VWEA6E.js → addDialogAgentAction-MUBYOG65.js} +10 -10
- package/{agentDeleteCommand-5DD2IM3J.js → agentDeleteCommand-5TFSII4Z.js} +28 -27
- package/{agentEmailCommands-6FACJBU4.js → agentEmailCommands-XMXWGUMZ.js} +62 -58
- package/{agentListCommands-I6KZYCIG.js → agentListCommands-OWEFQEY4.js} +119 -33
- package/{agentMachineCommands-VKLIGMZA.js → agentMachineCommands-DGHYBBFC.js} +27 -26
- package/{agentPullCommand-O2MTUAFR.js → agentPullCommand-N6UWRTVL.js} +3 -3
- package/{agentRecordCommands-7TZICYDT.js → agentRecordCommands-I433EE5F.js} +53 -49
- package/{agentRunCommand-L4OM23KV.js → agentRunCommand-UQSX3IGW.js} +57 -52
- package/{agentRunControl-K4VKNEHF.js → agentRunControl-S3G62M6C.js} +3 -3
- package/{agentRuntimeLocal-ZYEIPTY4.js → agentRuntimeLocal-73SVOC5U.js} +14 -12
- package/{agentSlice-BX7GXSNO.js → agentSlice-JQCS4LR3.js} +9 -9
- package/{authCommand-EB5JSOX5.js → authCommand-B6P2XYLN.js} +11 -11
- package/{authCommands-XPEHTKSM.js → authCommands-4YKA4GTU.js} +7 -7
- package/{chunk-AS4PVWA4.js → chunk-2CVZSC5L.js} +1 -1
- package/{chunk-JRKKFRAV.js → chunk-3HPUUWOR.js} +58 -8
- package/{chunk-5KLGBAAR.js → chunk-3KGTFX3T.js} +2 -13
- package/{chunk-IWX4UW2E.js → chunk-524BDL33.js} +89 -8
- package/chunk-6QFNUK2G.js +144 -0
- package/{chunk-4QEWT7KD.js → chunk-AISLHYDB.js} +367 -85
- package/{chunk-2FTTDCD4.js → chunk-AMJ7LA5D.js} +1 -1
- package/{chunk-I6XMPTMR.js → chunk-BFDWXLFF.js} +2 -2
- package/{chunk-RL776AGR.js → chunk-BKGNXJAM.js} +1 -1
- package/{chunk-RCSJFQPB.js → chunk-BQECZ3Q4.js} +361 -90
- package/{chunk-VVX233PH.js → chunk-BT37DVDA.js} +9 -9
- package/{chunk-ENOG22KJ.js → chunk-BT57QC5K.js} +18 -20
- package/chunk-BYXBJQAS.js +0 -0
- package/{chunk-O2ZNTTET.js → chunk-C4DZRHFJ.js} +24 -15
- package/{chunk-4XENYTF5.js → chunk-DS3VC4EA.js} +3 -3
- package/{chunk-N54XAP77.js → chunk-FVVST32H.js} +1 -1
- package/{chunk-P3PKED2I.js → chunk-FZ2G3I4B.js} +11 -13
- package/{chunk-AGFH73SK.js → chunk-G7KM6BBZ.js} +1 -1
- package/{chunk-2ECQG4YX.js → chunk-GROGNZOA.js} +264 -161
- package/chunk-IOQIOZNI.js +42 -0
- package/{chunk-AL2KDGR2.js → chunk-IPA2WQGY.js} +201 -98
- package/{chunk-7DAJ4AI4.js → chunk-IYMGQ3TN.js} +9 -2
- package/{chunk-CKOJQDKR.js → chunk-JEMATI63.js} +1 -1
- package/{chunk-7U44LYTR.js → chunk-JTINRTBT.js} +1 -1
- package/{chunk-4O3CARJ4.js → chunk-KTHLAJEY.js} +1 -1
- package/{chunk-URUUZLPA.js → chunk-L3KWEH3V.js} +8 -8
- package/{chunk-XBUBEFNX.js → chunk-L76QNLGU.js} +1 -1
- package/{chunk-UB6SN4NJ.js → chunk-LE6JAIXE.js} +6 -6
- package/{chunk-2JCXITPK.js → chunk-LRKEOCWY.js} +15 -15
- package/{chunk-5EFXE3O7.js → chunk-LTH6AVG7.js} +3 -3
- package/{chunk-YPRZSPF3.js → chunk-OCDEWRE2.js} +1 -1
- package/{chunk-6KHNO3SK.js → chunk-P2SPC3FT.js} +27 -23
- package/{chunk-4IJYA27C.js → chunk-PXZAAB4L.js} +4 -4
- package/{chunk-VUW5FBDB.js → chunk-Q7S2ORXX.js} +9 -9
- package/{chunk-C3RUNRHT.js → chunk-QWM7YWVT.js} +1 -1
- package/{chunk-25LCXTML.js → chunk-RQPZX6KP.js} +2 -2
- package/chunk-S3UTETIC.js +4885 -0
- package/{chunk-SDJDLO5W.js → chunk-SBVUZC2E.js} +5 -5
- package/{chunk-VX3SXJ3N.js → chunk-UBSKX3LP.js} +6 -6
- package/{chunk-4ZDM73SD.js → chunk-V2J635L5.js} +1 -1
- package/{chunk-DSZUWUYB.js → chunk-VBKJTOAW.js} +1 -1
- package/{chunk-FVYY6MCS.js → chunk-VUEXKW6U.js} +17 -17
- package/{chunk-7KCUSYT2.js → chunk-WKQGZJVI.js} +7 -7
- package/{chunk-GU3PEVGZ.js → chunk-WM7P5OWZ.js} +2639 -1579
- package/{chunk-7GNGZRLZ.js → chunk-WTBWWBSF.js} +150 -78
- package/{chunk-FSO5B7GH.js → chunk-WVS3GX3B.js} +2 -2
- package/chunk-Z3NEXVYE.js +33 -0
- package/{createAgentAutomationAction-RJF3N2QY.js → createAgentAutomationAction-GXZNLJZK.js} +26 -24
- package/{createDialogAction-DRSPS6CE.js → createDialogAction-KLW42ZGF.js} +26 -24
- package/{createPageAction-6B2WMNO3.js → createPageAction-IBJHE6MH.js} +26 -24
- package/{dbSlice-Q3TM2FJV.js → dbSlice-R5EJKZBW.js} +7 -7
- package/{deleteFile-OW53A6BX.js → deleteFile-WPWVZE4B.js} +5 -5
- package/{dialogCommands-4IX4XIZE.js → dialogCommands-7O5PUZRU.js} +23 -22
- package/{dialogSlice-3M7KX2TX.js → dialogSlice-GGV7PF53.js} +25 -23
- package/{docCreateCommands-SIL3NPGT.js → docCreateCommands-7ZO2NQQF.js} +22 -21
- package/{docDeleteCommands-7IOMLUS4.js → docDeleteCommands-YKIXZYBR.js} +23 -22
- package/{docReadCommands-FNFXUA5L.js → docReadCommands-5UDONBUL.js} +22 -21
- package/{docStore-SV7E34D4.js → docStore-VDWTATFH.js} +25 -23
- package/{docUpdateCommands-X2HNDVUC.js → docUpdateCommands-EPZIIQMY.js} +22 -21
- package/fetchMessages-KTNM7QAR.js +1 -1
- package/{getPricing-3E6UNPKL.js → getPricing-6TOZXPAU.js} +7 -3
- package/{handleSendMessageAction-JYETO5RZ.js → handleSendMessageAction-MMATC5V5.js} +30 -28
- package/index.js +74 -74
- package/{localDialogRead-2VRI24F4.js → localDialogRead-YSKFFRTT.js} +1 -1
- package/{machineCommands-RIO3RP5Q.js → machineCommands-PTHPKSIZ.js} +59 -55
- package/{machineWsRunDispatch-W7UYLGB5.js → machineWsRunDispatch-M5L2NVWJ.js} +51 -47
- package/{memoryCommands-O4MIPIWQ.js → memoryCommands-HG4WKTU7.js} +2 -2
- package/{models-4OPOOLFS.js → models-H524GH3U.js} +3 -2
- package/package.json +1 -1
- package/{read-GW7ZEI23.js → read-5ZMY7FKP.js} +5 -5
- package/{readDocTool-HUFU6OCT.js → readDocTool-2NXDK32S.js} +1 -1
- package/{readlineWorkspace-27JR7WPW.js → readlineWorkspace-4NXMEOHP.js} +835 -622
- package/{removeDialogAgentAction-CXKR4NJI.js → removeDialogAgentAction-KOLQ2R5W.js} +13 -12
- package/{runAgentClientLoop-HZFAPJHS.js → runAgentClientLoop-FGUYNGSA.js} +45 -42
- package/{runtimeDoctorCommands-LRHLPDRC.js → runtimeDoctorCommands-UWR5UDSM.js} +5 -5
- package/{setDialogExtraReferencesAction-6RKUSXHX.js → setDialogExtraReferencesAction-OMTEO7X6.js} +10 -10
- package/{setPrimaryDialogAgentAction-T3UTBEFG.js → setPrimaryDialogAgentAction-DOCIS6V4.js} +13 -12
- package/{settingSlice-IVKXJXMG.js → settingSlice-UWZJYDOA.js} +8 -8
- package/{spaceCommands-E7VOF4LO.js → spaceCommands-S3EB6TOS.js} +29 -28
- package/{spaceSlice-TSVROA5U.js → spaceSlice-RG2GSV7K.js} +24 -22
- package/{streamAgentChatTurn-3C5RQZJF.js → streamAgentChatTurn-X576C23M.js} +209 -86
- package/{tableCommands-O7O2LBEG.js → tableCommands-M3DJUETS.js} +10 -10
- package/{toolApiClient-QI3YBNWB.js → toolApiClient-C7P7YSE4.js} +2 -2
- package/{tools-EQDEKR6N.js → tools-HURZ2N4O.js} +33 -30
- package/{tuiSummaryLlmCaller-RV3THLZF.js → tuiSummaryLlmCaller-DG2LBTBX.js} +8 -6
- package/{updateCommands-VOSPKXFF.js → updateCommands-TC5SX42Y.js} +3 -3
- package/{updateDialogTitleAction-3XV7VWSZ.js → updateDialogTitleAction-62LVIAUZ.js} +28 -26
- package/chunk-BBYVOSU2.js +0 -792
- package/chunk-DCOA4QSN.js +0 -105
- package/{chunk-DZ3XJVET.js → chunk-3QAF2LTL.js} +3 -3
- package/{chunk-EHLHSX7R.js → chunk-5MMZUWSG.js} +3 -3
- package/{chunk-ISNCLGUZ.js → chunk-AVMJVOQY.js} +3 -3
- package/{chunk-UTLZINAP.js → chunk-DVRHHFEA.js} +10 -10
- package/{chunk-4CQLVGRV.js → chunk-ID4G2MAR.js} +3 -3
- package/{chunk-5MIDPSSK.js → chunk-JK7VW2FN.js} +3 -3
- package/{chunk-TILFE6LV.js → chunk-YOCHZD7D.js} +3 -3
- package/{db-HCJ5PRB5.js → db-6QED3ZVO.js} +3 -3
- package/{understanding-3CUQQ6SV.js → understanding-ZOESBLF3.js} +3 -3
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadFileFromIndexedDb,
|
|
6
6
|
removeAction,
|
|
7
7
|
saveFileToIndexedDb
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JTINRTBT.js";
|
|
9
9
|
import {
|
|
10
10
|
fileKey,
|
|
11
11
|
getFileIdFromKey,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
readAction,
|
|
16
16
|
readRequestManager,
|
|
17
17
|
resolveAgentReadServers
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VBKJTOAW.js";
|
|
19
19
|
import {
|
|
20
20
|
asyncThunkCreator,
|
|
21
21
|
buildCreateSlice,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
shouldReplaceLocalWithRemoteRecord,
|
|
36
36
|
shouldReplicateLocalRecord,
|
|
37
37
|
uploadToCurrentServer
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-DVRHHFEA.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchFromClientDb,
|
|
41
41
|
fetchFromServer,
|
|
@@ -45,12 +45,12 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
isTombstoneRecord
|
|
47
47
|
} from "./chunk-GBRG75BQ.js";
|
|
48
|
-
import {
|
|
49
|
-
API_ENDPOINTS
|
|
50
|
-
} from "./chunk-LCBAMY2M.js";
|
|
51
48
|
import {
|
|
52
49
|
isRecord
|
|
53
50
|
} from "./chunk-KUG52IAP.js";
|
|
51
|
+
import {
|
|
52
|
+
API_ENDPOINTS
|
|
53
|
+
} from "./chunk-LCBAMY2M.js";
|
|
54
54
|
|
|
55
55
|
// packages/database/actions/readAndWait.ts
|
|
56
56
|
var hashTokenScope = (currentToken) => {
|
|
@@ -674,7 +674,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
674
674
|
// 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
|
|
675
675
|
read: create.asyncThunk(
|
|
676
676
|
async (payload, thunkApi) => {
|
|
677
|
-
const { readAction: readAction2 } = await import("./read-
|
|
677
|
+
const { readAction: readAction2 } = await import("./read-5ZMY7FKP.js");
|
|
678
678
|
return readAction2(payload, thunkApi);
|
|
679
679
|
},
|
|
680
680
|
{
|
|
@@ -748,7 +748,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
748
748
|
// 这里改成动态 import,运行期才解析,彻底断开这条边。
|
|
749
749
|
share: create.asyncThunk(
|
|
750
750
|
async (config, thunkApi) => {
|
|
751
|
-
const { shareResourceAction } = await import("./action-
|
|
751
|
+
const { shareResourceAction } = await import("./action-QM2ONPYZ.js");
|
|
752
752
|
return shareResourceAction(config, thunkApi);
|
|
753
753
|
}
|
|
754
754
|
),
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GROGNZOA.js";
|
|
4
4
|
import {
|
|
5
5
|
require_date_fns
|
|
6
6
|
} from "./chunk-M76ECQRD.js";
|
|
7
|
+
import {
|
|
8
|
+
patch,
|
|
9
|
+
readAndWait
|
|
10
|
+
} from "./chunk-L3KWEH3V.js";
|
|
7
11
|
import {
|
|
8
12
|
require_react
|
|
9
13
|
} from "./chunk-3ASDTTEI.js";
|
|
10
14
|
import {
|
|
11
15
|
toErrorMessage
|
|
12
16
|
} from "./chunk-HNMXYYJR.js";
|
|
13
|
-
import {
|
|
14
|
-
patch,
|
|
15
|
-
readAndWait
|
|
16
|
-
} from "./chunk-URUUZLPA.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-IBJHE6MH.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BQECZ3Q4.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IPA2WQGY.js";
|
|
8
8
|
import {
|
|
9
9
|
readPipeText,
|
|
10
10
|
spawnProcess
|
|
11
11
|
} from "./chunk-IDZTNRP2.js";
|
|
12
|
-
import {
|
|
13
|
-
parseUserIdFromAuthToken
|
|
14
|
-
} from "./chunk-ISNCLGUZ.js";
|
|
15
|
-
import {
|
|
16
|
-
DEFAULT_NOLO_SERVER_URL
|
|
17
|
-
} from "./chunk-OLZBQWZU.js";
|
|
18
12
|
import {
|
|
19
13
|
runLocalAgentTurn
|
|
20
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AISLHYDB.js";
|
|
21
15
|
import {
|
|
22
16
|
resolveLocalRuntimeEnvFromPolicy
|
|
23
17
|
} from "./chunk-5CS33IBL.js";
|
|
24
|
-
import {
|
|
25
|
-
toErrorMessage
|
|
26
|
-
} from "./chunk-HNMXYYJR.js";
|
|
27
18
|
import {
|
|
28
19
|
asRecordOrEmpty
|
|
29
20
|
} from "./chunk-KX6YBIHG.js";
|
|
30
21
|
import {
|
|
31
22
|
asTrimmedNonEmptyStringArray
|
|
32
23
|
} from "./chunk-I42VC5KR.js";
|
|
24
|
+
import {
|
|
25
|
+
parseUserIdFromAuthToken
|
|
26
|
+
} from "./chunk-AVMJVOQY.js";
|
|
27
|
+
import {
|
|
28
|
+
DEFAULT_NOLO_SERVER_URL
|
|
29
|
+
} from "./chunk-OLZBQWZU.js";
|
|
30
|
+
import {
|
|
31
|
+
toErrorMessage
|
|
32
|
+
} from "./chunk-HNMXYYJR.js";
|
|
33
33
|
import {
|
|
34
34
|
asTrimmedString
|
|
35
35
|
} from "./chunk-3EUW3WEO.js";
|
|
36
36
|
import {
|
|
37
37
|
asOptionalPositiveFiniteNumber
|
|
38
38
|
} from "./chunk-U6VC4MU4.js";
|
|
39
|
-
import {
|
|
40
|
-
asOptionalTrimmedString
|
|
41
|
-
} from "./chunk-G3SUCT4W.js";
|
|
42
39
|
import {
|
|
43
40
|
isRecord
|
|
44
41
|
} from "./chunk-KUG52IAP.js";
|
|
42
|
+
import {
|
|
43
|
+
asOptionalTrimmedString
|
|
44
|
+
} from "./chunk-G3SUCT4W.js";
|
|
45
45
|
|
|
46
46
|
// packages/ai/agent/machineRunPermissions.ts
|
|
47
47
|
var DEFAULT_POLICY = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UBSKX3LP.js";
|
|
4
4
|
import {
|
|
5
5
|
patch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L3KWEH3V.js";
|
|
7
7
|
import {
|
|
8
8
|
selectIdentityToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DVRHHFEA.js";
|
|
10
10
|
import {
|
|
11
11
|
getIsDesktopApp
|
|
12
12
|
} from "./chunk-OOSFSFMA.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-JEXVIMYZ.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareTools
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WVS3GX3B.js";
|
|
7
7
|
import {
|
|
8
8
|
performFetchRequest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WTBWWBSF.js";
|
|
10
10
|
import {
|
|
11
11
|
getPublicImageAgentMode
|
|
12
12
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
toolRunSetPending,
|
|
21
21
|
toolRunStarted,
|
|
22
22
|
toolRunSucceeded
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IPA2WQGY.js";
|
|
24
24
|
import {
|
|
25
25
|
addToolMessage,
|
|
26
26
|
getModelInfo,
|
|
@@ -28,13 +28,19 @@ import {
|
|
|
28
28
|
messageStreaming,
|
|
29
29
|
selectCurrentSpaceId,
|
|
30
30
|
updateToolMessage
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GROGNZOA.js";
|
|
32
32
|
import {
|
|
33
33
|
streamAgentChatTurn
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-Q7S2ORXX.js";
|
|
35
|
+
import {
|
|
36
|
+
selectCurrentServer
|
|
37
|
+
} from "./chunk-UBSKX3LP.js";
|
|
38
|
+
import {
|
|
39
|
+
write
|
|
40
|
+
} from "./chunk-L3KWEH3V.js";
|
|
35
41
|
import {
|
|
36
42
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
37
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AISLHYDB.js";
|
|
38
44
|
import {
|
|
39
45
|
createThinkParserState,
|
|
40
46
|
flushThinkParser,
|
|
@@ -42,10 +48,15 @@ import {
|
|
|
42
48
|
} from "./chunk-OPZYGHUC.js";
|
|
43
49
|
import {
|
|
44
50
|
getApiEndpoint
|
|
45
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-S3UTETIC.js";
|
|
46
52
|
import {
|
|
47
53
|
isNoloHostedProvider
|
|
48
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-524BDL33.js";
|
|
55
|
+
import {
|
|
56
|
+
createDialogMessageKeyAndId,
|
|
57
|
+
dialogMessageKey,
|
|
58
|
+
toTrimmedString
|
|
59
|
+
} from "./chunk-O4BU24WZ.js";
|
|
49
60
|
import {
|
|
50
61
|
extractCustomId
|
|
51
62
|
} from "./chunk-DFFIZ25G.js";
|
|
@@ -57,33 +68,22 @@ import {
|
|
|
57
68
|
import {
|
|
58
69
|
toErrorMessage
|
|
59
70
|
} from "./chunk-HNMXYYJR.js";
|
|
60
|
-
import {
|
|
61
|
-
selectCurrentServer
|
|
62
|
-
} from "./chunk-VX3SXJ3N.js";
|
|
63
|
-
import {
|
|
64
|
-
write
|
|
65
|
-
} from "./chunk-URUUZLPA.js";
|
|
66
|
-
import {
|
|
67
|
-
createDialogMessageKeyAndId,
|
|
68
|
-
dialogMessageKey,
|
|
69
|
-
toTrimmedString
|
|
70
|
-
} from "./chunk-O4BU24WZ.js";
|
|
71
71
|
import {
|
|
72
72
|
createAsyncThunk,
|
|
73
73
|
selectIdentityToken
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-DVRHHFEA.js";
|
|
75
75
|
import {
|
|
76
76
|
isAbortError
|
|
77
77
|
} from "./chunk-OOSFSFMA.js";
|
|
78
78
|
import {
|
|
79
79
|
asTrimmedString
|
|
80
80
|
} from "./chunk-3EUW3WEO.js";
|
|
81
|
-
import {
|
|
82
|
-
asOptionalTrimmedString
|
|
83
|
-
} from "./chunk-G3SUCT4W.js";
|
|
84
81
|
import {
|
|
85
82
|
isRecord
|
|
86
83
|
} from "./chunk-KUG52IAP.js";
|
|
84
|
+
import {
|
|
85
|
+
asOptionalTrimmedString
|
|
86
|
+
} from "./chunk-G3SUCT4W.js";
|
|
87
87
|
|
|
88
88
|
// packages/integrations/openai/filterAndCleanMessages.ts
|
|
89
89
|
var isValidMessagePart = (part) => {
|
|
@@ -182,6 +182,10 @@ var toOpenAIMessage = (rawMsg) => {
|
|
|
182
182
|
if (role === "assistant" && toolCalls) {
|
|
183
183
|
cleaned.tool_calls = toolCalls;
|
|
184
184
|
}
|
|
185
|
+
if (role === "assistant") {
|
|
186
|
+
const reasoningContent = typeof msg.reasoning_content === "string" ? msg.reasoning_content : typeof msg.thinkContent === "string" ? msg.thinkContent : "";
|
|
187
|
+
if (reasoningContent) cleaned.reasoning_content = reasoningContent;
|
|
188
|
+
}
|
|
185
189
|
if (role === "tool") {
|
|
186
190
|
const toolCallId = extractToolCallId(msg);
|
|
187
191
|
if (toolCallId) cleaned.tool_call_id = toolCallId;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generatePkcePair,
|
|
3
3
|
startCallbackServer
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
toErrorMessage
|
|
7
|
-
} from "./chunk-HNMXYYJR.js";
|
|
4
|
+
} from "./chunk-5MMZUWSG.js";
|
|
8
5
|
import {
|
|
9
6
|
asOptionalFiniteNumber
|
|
10
7
|
} from "./chunk-WWC7I6TA.js";
|
|
8
|
+
import {
|
|
9
|
+
toErrorMessage
|
|
10
|
+
} from "./chunk-HNMXYYJR.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/oauth/flows/cloudflare.ts
|
|
13
13
|
var CLOUDFLARE_OAUTH_AUTH_ENDPOINT = "https://dash.cloudflare.com/oauth2/auth";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
patch,
|
|
3
|
+
remove,
|
|
4
|
+
write
|
|
5
|
+
} from "./chunk-L3KWEH3V.js";
|
|
1
6
|
import {
|
|
2
7
|
applyAgentSecretMigrationUpdates,
|
|
3
8
|
createFileCredentialBroker,
|
|
4
9
|
migrateAgentSecrets,
|
|
5
10
|
normalizeAgentRuntimeToolPolicy
|
|
6
11
|
} from "./chunk-5CS33IBL.js";
|
|
7
|
-
import {
|
|
8
|
-
patch,
|
|
9
|
-
remove,
|
|
10
|
-
write
|
|
11
|
-
} from "./chunk-URUUZLPA.js";
|
|
12
12
|
import {
|
|
13
13
|
asRecordOrEmpty
|
|
14
14
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
asyncThunkCreator,
|
|
21
21
|
buildCreateSlice,
|
|
22
22
|
getRuntimeServerContext
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DVRHHFEA.js";
|
|
24
24
|
import {
|
|
25
25
|
asTrimmedString
|
|
26
26
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
|
|
|
300
300
|
const overrides = {};
|
|
301
301
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
302
302
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
303
|
-
const { _executeModel } = await import("./_executeModel-
|
|
303
|
+
const { _executeModel } = await import("./_executeModel-2ZAPHFOX.js");
|
|
304
304
|
return _executeModel(
|
|
305
305
|
{
|
|
306
306
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
|
|
|
321
321
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
322
322
|
*/
|
|
323
323
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
324
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
324
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-FGUYNGSA.js");
|
|
325
325
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
326
326
|
{
|
|
327
327
|
agentKey: args.agentKey,
|
|
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
|
|
|
337
337
|
* 聊天轮次流式 Agent 调用
|
|
338
338
|
*/
|
|
339
339
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
340
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
340
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-X576C23M.js");
|
|
341
341
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
342
342
|
}),
|
|
343
343
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer,
|
|
3
3
|
selectRemoteServers
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UBSKX3LP.js";
|
|
5
5
|
import {
|
|
6
6
|
createUserKey,
|
|
7
7
|
extractAgentInfo,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
noloWriteRequest,
|
|
17
17
|
selectIdentityUser,
|
|
18
18
|
selectIdentityUserId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DVRHHFEA.js";
|
|
20
20
|
import {
|
|
21
21
|
normalizeTimeFields
|
|
22
22
|
} from "./chunk-OOSFSFMA.js";
|