nolo-cli 0.8.0-alpha.23 → 0.8.0-alpha.25
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-YXTTYRXS.js → _executeModel-IYPAOWQQ.js} +48 -48
- package/{action-QM2ONPYZ.js → action-UAHWPMZB.js} +7 -8
- package/{addContentAction-UXY3GM53.js → addContentAction-PFIP76LT.js} +6 -8
- package/{addDialogAgentAction-MUBYOG65.js → addDialogAgentAction-LWDAIDEU.js} +8 -9
- package/{agentDeleteCommand-4NO7Y6UI.js → agentDeleteCommand-M6KIV6ZZ.js} +36 -27
- package/{agentEmailCommands-NPP5TGZV.js → agentEmailCommands-JGAZ26N2.js} +60 -59
- package/{agentListCommands-IP5BNB5W.js → agentListCommands-3TQWUC4W.js} +120 -28
- package/{agentMachineCommands-24NFTIKY.js → agentMachineCommands-EBCDKO4T.js} +36 -26
- package/{agentRecordCommands-7AWSR46F.js → agentRecordCommands-ZKOLGEMX.js} +53 -52
- package/{agentRunCommand-P46WCJ6P.js → agentRunCommand-L6A3DKTB.js} +56 -57
- package/{agentRuntimeLocal-V5UV7S4R.js → agentRuntimeLocal-6Q4CEFXY.js} +27 -14
- package/{agentSlice-3CVAZZOP.js → agentSlice-XRG5ODYW.js} +7 -8
- package/{authCommand-B6P2XYLN.js → authCommand-ELPMOABY.js} +13 -13
- package/{authCommands-4YKA4GTU.js → authCommands-PUQRVHHW.js} +5 -5
- package/{chunk-AFON4QUU.js → chunk-3QKO4EHV.js} +3 -3
- package/{chunk-D55DXHXL.js → chunk-4GBNEA5B.js} +1 -1
- package/{chunk-PXZAAB4L.js → chunk-4LG74DRG.js} +4 -4
- package/{chunk-RBCNBU2A.js → chunk-524BDL33.js} +1 -0
- package/{chunk-HAC6GPRE.js → chunk-5EUAXXSV.js} +2 -2
- package/{chunk-P7GAHW32.js → chunk-5LDYVJXY.js} +191 -40
- package/{chunk-DSNLHTP3.js → chunk-66DXKPRS.js} +9 -2
- package/{chunk-5NYGMN4O.js → chunk-67Z375LK.js} +17 -17
- package/{chunk-6OHYC4BY.js → chunk-6PXKSN2M.js} +4 -3
- package/{chunk-LFFATN2M.js → chunk-ALEDPZVP.js} +94 -54
- package/{chunk-ZAUDEKML.js → chunk-DW75SYWV.js} +95 -2327
- package/{chunk-A4MYG3TR.js → chunk-EEUWELOX.js} +15 -15
- package/chunk-GVQT3FIB.js +2286 -0
- package/chunk-I2HCZWJU.js +144 -0
- package/{chunk-LBUTKV7S.js → chunk-IG2EZS3N.js} +67 -20
- package/chunk-IKXL2HZ3.js +70 -0
- package/{chunk-2CVZSC5L.js → chunk-IVAOVLM7.js} +1 -1
- package/{chunk-L3KWEH3V.js → chunk-KPFGD3YA.js} +43 -12
- package/{chunk-4VA3UQRF.js → chunk-KRMH46UV.js} +10 -10
- package/{chunk-MIQOUMSN.js → chunk-LFETMU66.js} +8 -8
- package/{chunk-RBB43B5W.js → chunk-LWYCA4ZT.js} +307 -43
- package/{chunk-EUN3SYY7.js → chunk-MMCDCZM4.js} +6 -6
- package/{chunk-YOCHZD7D.js → chunk-NCGFB7NN.js} +5 -3
- package/{chunk-KLOCUWKZ.js → chunk-OCDEWRE2.js} +1 -1
- package/{chunk-LJCH34R2.js → chunk-OOOKLEJ7.js} +6 -6
- package/{chunk-C4FTUXVF.js → chunk-QLUFR47U.js} +11 -1
- package/{chunk-RYMUT5JO.js → chunk-RB43SIIG.js} +32 -26
- package/{chunk-RQPZX6KP.js → chunk-S37OTGU7.js} +2 -2
- package/{chunk-AOKWJZ5N.js → chunk-S3UTETIC.js} +3 -2
- package/{chunk-ZJS64PZJ.js → chunk-SCBYSC74.js} +1 -1
- package/{chunk-AWY2AFHN.js → chunk-TSKWE74T.js} +53 -7
- package/{chunk-UBSKX3LP.js → chunk-UZZCXRHF.js} +6 -6
- package/{chunk-Q2WC4KGQ.js → chunk-V6ICY2YU.js} +5 -5
- package/{chunk-6KRA6AWI.js → chunk-VNGCTQ32.js} +1 -1
- package/{chunk-BB2PII22.js → chunk-WKWEV6K4.js} +1 -1
- package/{chunk-LW6FJFCT.js → chunk-WO6IG6YT.js} +146 -50
- package/{chunk-JTINRTBT.js → chunk-WPHL6ALY.js} +1 -1
- package/{chunk-KTHLAJEY.js → chunk-WZF7M6GX.js} +1 -1
- package/{chunk-LTH6AVG7.js → chunk-XDXO65DS.js} +3 -3
- package/{chunk-BFDWXLFF.js → chunk-XGMCGPEA.js} +64 -5
- package/{chunk-WESWWEVA.js → chunk-XGOTQ6ZG.js} +1 -1
- package/{chunk-VBKJTOAW.js → chunk-XHQWJUW4.js} +2 -2
- package/{chunk-O7VS7JLJ.js → chunk-XIZIRGXB.js} +15 -15
- package/{chunk-PTT6KSYQ.js → chunk-Y7QCVJ73.js} +239 -90
- package/{chunk-6UUD2WES.js → chunk-ZR4VHQ5D.js} +14 -13
- package/{createAgentAutomationAction-DYQOGAVE.js → createAgentAutomationAction-HZJ4LPCW.js} +23 -25
- package/{createDialogAction-ETB3KQQE.js → createDialogAction-KICYAHEQ.js} +25 -27
- package/{createPageAction-UF2RHA63.js → createPageAction-VWBZOQPP.js} +25 -27
- package/{dbSlice-R5EJKZBW.js → dbSlice-V4H2JFNB.js} +5 -6
- package/{deleteFile-WPWVZE4B.js → deleteFile-M7UNIUOO.js} +3 -3
- package/{dialogCommands-LYYC7XHF.js → dialogCommands-UMT7AOOR.js} +31 -22
- package/{dialogSlice-IFBZ4IT2.js → dialogSlice-G3WPGLY5.js} +23 -25
- package/{docCreateCommands-I66OI374.js → docCreateCommands-MAZSFQQ5.js} +34 -25
- package/{docDeleteCommands-OVRBCHMF.js → docDeleteCommands-DOTLD7HA.js} +34 -26
- package/{docReadCommands-YLWUMEH7.js → docReadCommands-PH255AKZ.js} +34 -25
- package/{docStore-65WO7U36.js → docStore-K7U47JYV.js} +22 -24
- package/{docUpdateCommands-NSICS4IN.js → docUpdateCommands-RLRID2K7.js} +34 -25
- package/fetchMessages-KTNM7QAR.js +1 -1
- package/{getPricing-7PUT44ZS.js → getPricing-6TOZXPAU.js} +4 -4
- package/{handleSendMessageAction-T76HEDOP.js → handleSendMessageAction-UAI2ZOGG.js} +27 -29
- package/index.js +62 -62
- package/{localDialogRead-YSKFFRTT.js → localDialogRead-2VRI24F4.js} +1 -1
- package/{machineCommands-4HQY6UVZ.js → machineCommands-FE5HOJWR.js} +58 -57
- package/{machineWsRunDispatch-7YW2M4FS.js → machineWsRunDispatch-J56M67NJ.js} +52 -51
- package/{models-MFXNI3TF.js → models-LSCRJJ6P.js} +2 -2
- package/package.json +1 -1
- package/{read-5ZMY7FKP.js → read-2MIMRBZ2.js} +3 -3
- package/{readDocTool-2NXDK32S.js → readDocTool-QHVGQHUJ.js} +1 -1
- package/{readlineWorkspace-FLQWOAUR.js → readlineWorkspace-GK33VXX2.js} +196 -123
- package/{removeDialogAgentAction-KOLQ2R5W.js → removeDialogAgentAction-7GO2PRVQ.js} +12 -13
- package/{runAgentClientLoop-IUV2TR3X.js → runAgentClientLoop-EEC3BHWI.js} +45 -46
- package/{setDialogExtraReferencesAction-OMTEO7X6.js → setDialogExtraReferencesAction-ZIDAVJSZ.js} +8 -9
- package/{setPrimaryDialogAgentAction-DOCIS6V4.js → setPrimaryDialogAgentAction-LK35C2D7.js} +12 -13
- package/{settingSlice-UWZJYDOA.js → settingSlice-PRRC6IJ7.js} +6 -7
- package/{skillDiscovery-UGSQGX2U.js → skillDiscovery-ZYHSX7VD.js} +3 -3
- package/{spaceCommands-BDDAT4VU.js → spaceCommands-XE4PS24W.js} +36 -29
- package/{spaceSlice-HH633ZA4.js → spaceSlice-OE57MB22.js} +21 -23
- package/{streamAgentChatTurn-UBZOVFKV.js → streamAgentChatTurn-CI6VMD2Y.js} +208 -101
- package/{toolApiClient-C7P7YSE4.js → toolApiClient-QI3YBNWB.js} +2 -2
- package/{tools-OQZ34KCU.js → tools-I5VPDJHG.js} +32 -33
- package/{tuiSummaryLlmCaller-42AEL3LL.js → tuiSummaryLlmCaller-TXLF4MEI.js} +5 -5
- package/{updateDialogTitleAction-A3OOMSDO.js → updateDialogTitleAction-BKXHTAYL.js} +27 -28
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-AZPCASRE.js +0 -36
- package/chunk-RBCENBG7.js +0 -36
- package/chunk-UAD2WT54.js +0 -64
- package/{agentPullCommand-N6UWRTVL.js → agentPullCommand-LHFBA5EI.js} +6 -6
- package/{chunk-JK7VW2FN.js → chunk-5MIDPSSK.js} +3 -3
- package/{chunk-VC6OZXO5.js → chunk-6WWHKODG.js} +4 -4
- package/{chunk-BT37DVDA.js → chunk-7VKWMOSI.js} +9 -9
- package/{chunk-3QAF2LTL.js → chunk-DZ3XJVET.js} +3 -3
- package/{chunk-5CS33IBL.js → chunk-PDL2AV3E.js} +3 -3
- package/{chunk-5MMZUWSG.js → chunk-TOILAPLH.js} +5 -5
- package/{chunk-DVRHHFEA.js → chunk-TSUJOM6N.js} +3 -3
- package/{db-6QED3ZVO.js → db-HCJ5PRB5.js} +3 -3
- package/{memoryCommands-HG4WKTU7.js → memoryCommands-HGNEENIN.js} +3 -3
- package/{offlineMarxistsAgentCommand-BCPJITJL.js → offlineMarxistsAgentCommand-5OOWZLJI.js} +3 -3
- package/{runtimeDoctorCommands-UWR5UDSM.js → runtimeDoctorCommands-4YVMXBQP.js} +5 -5
- package/{tableCommands-M3DJUETS.js → tableCommands-LV2PPHNY.js} +6 -6
- package/{understanding-ZOESBLF3.js → understanding-3CUQQ6SV.js} +3 -3
|
@@ -18,55 +18,67 @@ import {
|
|
|
18
18
|
resolveOpenAiCompatibleProviderConfig,
|
|
19
19
|
shouldCacheHybridRemoteRecord,
|
|
20
20
|
shouldFetchAgentRuntimeRecordRemotely
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IG2EZS3N.js";
|
|
22
22
|
import {
|
|
23
23
|
buildPlatformChatCompletionRequest,
|
|
24
24
|
canUsePlatformChatProvider,
|
|
25
25
|
hasDirectOpenAiCompatibleProvider,
|
|
26
26
|
parsePlatformChatCompletionData,
|
|
27
27
|
parsePlatformChatCompletionResponse,
|
|
28
|
+
resolveLegacyDeepSeekProxyChatFallback,
|
|
28
29
|
resolvePlatformChatProviderConfig,
|
|
29
30
|
shouldUsePlatformChatProvider
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZR4VHQ5D.js";
|
|
31
32
|
import "./chunk-ZNFJWEN4.js";
|
|
32
33
|
import {
|
|
33
34
|
resolveAgentRuntimeConfigFromRecord
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NCGFB7NN.js";
|
|
35
36
|
import {
|
|
36
37
|
runLocalAgentTurn
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-LWYCA4ZT.js";
|
|
38
39
|
import "./chunk-OPZYGHUC.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-VNGCTQ32.js";
|
|
40
41
|
import {
|
|
41
42
|
pickAgentRuntimeInferenceOptions
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-TSKWE74T.js";
|
|
43
44
|
import {
|
|
44
45
|
resolveRuntimeToolSurfaceForAgent
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-6PXKSN2M.js";
|
|
47
|
+
import "./chunk-GVQT3FIB.js";
|
|
48
|
+
import "./chunk-S3UTETIC.js";
|
|
48
49
|
import {
|
|
49
50
|
resolveCurrentRunRuntimeToolPolicy,
|
|
50
51
|
resolveLocalRuntimeEnvFromPolicy,
|
|
51
52
|
resolveLocalWorkspaceExecutorOptionsFromPolicy,
|
|
52
53
|
resolveRequestedRuntimeToolNames
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-PDL2AV3E.js";
|
|
54
55
|
import "./chunk-JZPBVBIY.js";
|
|
55
56
|
import "./chunk-BYXBJQAS.js";
|
|
57
|
+
import "./chunk-HNMXYYJR.js";
|
|
58
|
+
import "./chunk-DWLEOOGR.js";
|
|
59
|
+
import "./chunk-IKXL2HZ3.js";
|
|
60
|
+
import "./chunk-524BDL33.js";
|
|
56
61
|
import "./chunk-KX6YBIHG.js";
|
|
57
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-XGMCGPEA.js";
|
|
63
|
+
import "./chunk-KPFGD3YA.js";
|
|
58
64
|
import "./chunk-O4BU24WZ.js";
|
|
59
65
|
import "./chunk-I42VC5KR.js";
|
|
60
66
|
import "./chunk-WWC7I6TA.js";
|
|
67
|
+
import "./chunk-WPHL6ALY.js";
|
|
61
68
|
import "./chunk-QSJ3HFEF.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-XHQWJUW4.js";
|
|
70
|
+
import "./chunk-TSUJOM6N.js";
|
|
71
|
+
import "./chunk-OOSFSFMA.js";
|
|
72
|
+
import "./chunk-GBRG75BQ.js";
|
|
73
|
+
import "./chunk-KUG52IAP.js";
|
|
64
74
|
import "./chunk-3EUW3WEO.js";
|
|
65
75
|
import "./chunk-U6VC4MU4.js";
|
|
66
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-LCBAMY2M.js";
|
|
67
77
|
import "./chunk-4SN6J65J.js";
|
|
68
78
|
import "./chunk-CF7PE763.js";
|
|
69
79
|
import "./chunk-G3SUCT4W.js";
|
|
80
|
+
import "./chunk-QLUFR47U.js";
|
|
81
|
+
import "./chunk-KKY4B2Q2.js";
|
|
70
82
|
import "./chunk-4VNS5WPM.js";
|
|
71
83
|
export {
|
|
72
84
|
buildAgentRuntimeAgentLookupKeys,
|
|
@@ -92,6 +104,7 @@ export {
|
|
|
92
104
|
readOpenAiCompatibleSseCompletion,
|
|
93
105
|
resolveAgentRuntimeConfigFromRecord,
|
|
94
106
|
resolveCurrentRunRuntimeToolPolicy,
|
|
107
|
+
resolveLegacyDeepSeekProxyChatFallback,
|
|
95
108
|
resolveLocalRuntimeEnvFromPolicy,
|
|
96
109
|
resolveLocalToolPolicy,
|
|
97
110
|
resolveLocalWorkspaceExecutorOptionsFromPolicy,
|
|
@@ -7,24 +7,23 @@ import {
|
|
|
7
7
|
slice,
|
|
8
8
|
streamAgentChatTurn,
|
|
9
9
|
updateAgent
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-AZPCASRE.js";
|
|
13
|
-
import "./chunk-JTINRTBT.js";
|
|
14
|
-
import "./chunk-5CS33IBL.js";
|
|
10
|
+
} from "./chunk-KRMH46UV.js";
|
|
11
|
+
import "./chunk-PDL2AV3E.js";
|
|
15
12
|
import "./chunk-JZPBVBIY.js";
|
|
16
13
|
import "./chunk-KX6YBIHG.js";
|
|
14
|
+
import "./chunk-KPFGD3YA.js";
|
|
17
15
|
import "./chunk-O4BU24WZ.js";
|
|
18
16
|
import "./chunk-I42VC5KR.js";
|
|
19
17
|
import "./chunk-WWC7I6TA.js";
|
|
18
|
+
import "./chunk-WPHL6ALY.js";
|
|
20
19
|
import "./chunk-QSJ3HFEF.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-XHQWJUW4.js";
|
|
21
|
+
import "./chunk-TSUJOM6N.js";
|
|
23
22
|
import "./chunk-OOSFSFMA.js";
|
|
24
23
|
import "./chunk-GBRG75BQ.js";
|
|
24
|
+
import "./chunk-KUG52IAP.js";
|
|
25
25
|
import "./chunk-3EUW3WEO.js";
|
|
26
26
|
import "./chunk-U6VC4MU4.js";
|
|
27
|
-
import "./chunk-KUG52IAP.js";
|
|
28
27
|
import "./chunk-LCBAMY2M.js";
|
|
29
28
|
import "./chunk-4SN6J65J.js";
|
|
30
29
|
import "./chunk-CF7PE763.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultOpenBrowser
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7VKWMOSI.js";
|
|
4
4
|
import "./chunk-6HYVJV7B.js";
|
|
5
5
|
import {
|
|
6
6
|
generateCloudflareEmailRoutingToken,
|
|
7
7
|
parseFlagWithOptionalValue,
|
|
8
8
|
runCloudflareOAuthLogin,
|
|
9
9
|
upsertEnvVariable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4LG74DRG.js";
|
|
11
11
|
import {
|
|
12
12
|
generatePkcePair,
|
|
13
13
|
runAntigravityOAuthLogin,
|
|
@@ -17,28 +17,28 @@ import {
|
|
|
17
17
|
runXaiOAuthDeviceCode,
|
|
18
18
|
runXaiOAuthLogin,
|
|
19
19
|
startCallbackServer
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TOILAPLH.js";
|
|
21
21
|
import "./chunk-JBTJAPUF.js";
|
|
22
|
-
import {
|
|
23
|
-
buildEnvFromProfile,
|
|
24
|
-
loadProfileConfig
|
|
25
|
-
} from "./chunk-ROWQEJRP.js";
|
|
26
22
|
import {
|
|
27
23
|
createOAuthTokenStore
|
|
28
24
|
} from "./chunk-JZPBVBIY.js";
|
|
29
|
-
import "./chunk-O4BU24WZ.js";
|
|
30
|
-
import "./chunk-I42VC5KR.js";
|
|
31
|
-
import "./chunk-WWC7I6TA.js";
|
|
32
|
-
import "./chunk-AVMJVOQY.js";
|
|
33
|
-
import "./chunk-OLZBQWZU.js";
|
|
34
25
|
import {
|
|
35
26
|
toErrorMessage
|
|
36
27
|
} from "./chunk-HNMXYYJR.js";
|
|
37
28
|
import "./chunk-H33743XH.js";
|
|
38
29
|
import "./chunk-LM6IYQ3F.js";
|
|
30
|
+
import {
|
|
31
|
+
buildEnvFromProfile,
|
|
32
|
+
loadProfileConfig
|
|
33
|
+
} from "./chunk-ROWQEJRP.js";
|
|
34
|
+
import "./chunk-AVMJVOQY.js";
|
|
35
|
+
import "./chunk-OLZBQWZU.js";
|
|
36
|
+
import "./chunk-O4BU24WZ.js";
|
|
37
|
+
import "./chunk-I42VC5KR.js";
|
|
38
|
+
import "./chunk-WWC7I6TA.js";
|
|
39
|
+
import "./chunk-KUG52IAP.js";
|
|
39
40
|
import "./chunk-3EUW3WEO.js";
|
|
40
41
|
import "./chunk-U6VC4MU4.js";
|
|
41
|
-
import "./chunk-KUG52IAP.js";
|
|
42
42
|
import "./chunk-LCBAMY2M.js";
|
|
43
43
|
import "./chunk-4SN6J65J.js";
|
|
44
44
|
import "./chunk-CF7PE763.js";
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
runLoginCommand,
|
|
7
7
|
runLogoutCommand,
|
|
8
8
|
runWhoamiCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7VKWMOSI.js";
|
|
10
10
|
import "./chunk-6HYVJV7B.js";
|
|
11
11
|
import "./chunk-JBTJAPUF.js";
|
|
12
|
+
import "./chunk-H33743XH.js";
|
|
13
|
+
import "./chunk-LM6IYQ3F.js";
|
|
12
14
|
import "./chunk-ROWQEJRP.js";
|
|
15
|
+
import "./chunk-AVMJVOQY.js";
|
|
16
|
+
import "./chunk-OLZBQWZU.js";
|
|
13
17
|
import "./chunk-O4BU24WZ.js";
|
|
14
18
|
import "./chunk-I42VC5KR.js";
|
|
15
19
|
import "./chunk-WWC7I6TA.js";
|
|
16
|
-
import "./chunk-AVMJVOQY.js";
|
|
17
|
-
import "./chunk-OLZBQWZU.js";
|
|
18
|
-
import "./chunk-H33743XH.js";
|
|
19
|
-
import "./chunk-LM6IYQ3F.js";
|
|
20
20
|
import "./chunk-3EUW3WEO.js";
|
|
21
21
|
import "./chunk-U6VC4MU4.js";
|
|
22
22
|
import "./chunk-LCBAMY2M.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
buildSkillDiscoveryLayer
|
|
3
|
-
} from "./chunk-C4FTUXVF.js";
|
|
4
1
|
import {
|
|
5
2
|
load
|
|
6
3
|
} from "./chunk-WZSRQNQG.js";
|
|
4
|
+
import {
|
|
5
|
+
buildSkillDiscoveryLayer
|
|
6
|
+
} from "./chunk-QLUFR47U.js";
|
|
7
7
|
|
|
8
8
|
// packages/agent-runtime/skillDiscovery.ts
|
|
9
9
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generatePkcePair,
|
|
3
3
|
startCallbackServer
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
asOptionalFiniteNumber
|
|
7
|
-
} from "./chunk-WWC7I6TA.js";
|
|
4
|
+
} from "./chunk-TOILAPLH.js";
|
|
8
5
|
import {
|
|
9
6
|
toErrorMessage
|
|
10
7
|
} from "./chunk-HNMXYYJR.js";
|
|
8
|
+
import {
|
|
9
|
+
asOptionalFiniteNumber
|
|
10
|
+
} from "./chunk-WWC7I6TA.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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
i18n_default,
|
|
3
3
|
toolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Y7QCVJ73.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalizeToolNames
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6PXKSN2M.js";
|
|
8
8
|
import {
|
|
9
9
|
asTrimmedLowercaseString
|
|
10
10
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
refreshAntigravityOAuthToken,
|
|
4
4
|
refreshOpenAiCodexToken,
|
|
5
5
|
refreshXaiOAuthToken
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TOILAPLH.js";
|
|
7
7
|
import {
|
|
8
8
|
CliProviderQuotaError,
|
|
9
9
|
executeCli
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
buildLocalAgentLookupKeys,
|
|
13
13
|
normalizeAgentHandle,
|
|
14
14
|
shouldReadAgentKeyRemotely
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SCBYSC74.js";
|
|
16
16
|
import {
|
|
17
17
|
LOCAL_CODEX_AGENT_ID,
|
|
18
18
|
LOCAL_CODEX_AGENT_KEY,
|
|
@@ -21,38 +21,42 @@ import {
|
|
|
21
21
|
} from "./chunk-VHBWHNVT.js";
|
|
22
22
|
import {
|
|
23
23
|
inferCaptureIntent
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WZF7M6GX.js";
|
|
25
25
|
import {
|
|
26
26
|
buildCliPrompt
|
|
27
27
|
} from "./chunk-ATNTHIZI.js";
|
|
28
28
|
import {
|
|
29
29
|
prepareTools
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5EUAXXSV.js";
|
|
31
31
|
import {
|
|
32
32
|
getAntigravityUserAgent,
|
|
33
33
|
isAntigravityOAuthAgent,
|
|
34
34
|
readAntigravityProjectId,
|
|
35
35
|
resolveAntigravityCloudCodeBaseUrl
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4GBNEA5B.js";
|
|
37
37
|
import {
|
|
38
38
|
FORCED_TOOLS,
|
|
39
39
|
addDefaultLightWebToolsForConfiguredAgents,
|
|
40
|
+
appendEnabledPackPromptPatches,
|
|
40
41
|
applyDisabledTools,
|
|
41
42
|
expandEnabledPacks,
|
|
42
43
|
readXPostFunc,
|
|
43
44
|
readXPostFunctionSchema,
|
|
44
45
|
readXhsProfileFunc,
|
|
45
46
|
readXhsProfileFunctionSchema
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-Y7QCVJ73.js";
|
|
47
48
|
import {
|
|
48
49
|
normalizeDialogTitle
|
|
49
50
|
} from "./chunk-OWOHNGCN.js";
|
|
51
|
+
import {
|
|
52
|
+
prepareTokenUsageData
|
|
53
|
+
} from "./chunk-DW75SYWV.js";
|
|
50
54
|
import {
|
|
51
55
|
BUILTIN_TITLE_LLM_CONFIG
|
|
52
56
|
} from "./chunk-V2J635L5.js";
|
|
53
57
|
import {
|
|
54
58
|
fetchServerSyncedCredential
|
|
55
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-KRMH46UV.js";
|
|
56
60
|
import {
|
|
57
61
|
buildAgentRuntimeDialogWritePlan,
|
|
58
62
|
buildLocalWorkspaceOpenAiTools,
|
|
@@ -65,23 +69,24 @@ import {
|
|
|
65
69
|
parseSseDataLineJson,
|
|
66
70
|
readOpenAiCompatibleSseCompletion,
|
|
67
71
|
resolveOpenAiCompatibleProviderConfig
|
|
68
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-IG2EZS3N.js";
|
|
69
73
|
import {
|
|
70
74
|
buildPlatformChatCompletionRequest,
|
|
71
75
|
canUsePlatformChatProvider,
|
|
72
76
|
parsePlatformChatCompletionData,
|
|
73
77
|
parsePlatformChatCompletionResponse,
|
|
74
78
|
readSseDataValues,
|
|
79
|
+
resolveLegacyDeepSeekProxyChatFallback,
|
|
75
80
|
resolvePlatformChatProviderConfig,
|
|
76
81
|
shouldUsePlatformChatProvider
|
|
77
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-ZR4VHQ5D.js";
|
|
78
83
|
import {
|
|
79
84
|
resolveAgentRuntimeConfigFromRecord
|
|
80
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-NCGFB7NN.js";
|
|
81
86
|
import {
|
|
82
87
|
parseToolArgumentsJson,
|
|
83
88
|
summarizeToolArguments
|
|
84
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-LWYCA4ZT.js";
|
|
85
90
|
import {
|
|
86
91
|
buildLoadSkillExecutor,
|
|
87
92
|
buildNoloWorkspaceCliToolExecutors,
|
|
@@ -89,34 +94,22 @@ import {
|
|
|
89
94
|
canonicalizeToolNames,
|
|
90
95
|
parseNoloWorkspaceToolArguments,
|
|
91
96
|
resolveRuntimeToolSurfaceForAgent
|
|
92
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-6PXKSN2M.js";
|
|
93
98
|
import {
|
|
94
99
|
clipCompactText
|
|
95
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-GVQT3FIB.js";
|
|
96
101
|
import {
|
|
97
102
|
createFileCredentialBroker,
|
|
98
103
|
resolveCurrentRunRuntimeToolPolicy,
|
|
99
104
|
resolveLocalWorkspaceExecutorOptionsFromPolicy,
|
|
100
105
|
resolveRequestedRuntimeToolNames
|
|
101
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-PDL2AV3E.js";
|
|
102
107
|
import {
|
|
103
108
|
createOAuthTokenStore,
|
|
104
109
|
isTokenExpired,
|
|
105
110
|
readOAuthCredential,
|
|
106
111
|
resolveFreshAccessToken
|
|
107
112
|
} from "./chunk-JZPBVBIY.js";
|
|
108
|
-
import {
|
|
109
|
-
asRecordOrEmpty
|
|
110
|
-
} from "./chunk-KX6YBIHG.js";
|
|
111
|
-
import {
|
|
112
|
-
dialogMessageRange
|
|
113
|
-
} from "./chunk-O4BU24WZ.js";
|
|
114
|
-
import {
|
|
115
|
-
asTrimmedNonEmptyStringArray
|
|
116
|
-
} from "./chunk-I42VC5KR.js";
|
|
117
|
-
import {
|
|
118
|
-
asOptionalFiniteNumber
|
|
119
|
-
} from "./chunk-WWC7I6TA.js";
|
|
120
113
|
import {
|
|
121
114
|
checkStaleRun,
|
|
122
115
|
finalizeRunRecord,
|
|
@@ -124,6 +117,12 @@ import {
|
|
|
124
117
|
listRunRecords,
|
|
125
118
|
spawnLocalBackgroundRun
|
|
126
119
|
} from "./chunk-AMJ7LA5D.js";
|
|
120
|
+
import {
|
|
121
|
+
toErrorMessage
|
|
122
|
+
} from "./chunk-HNMXYYJR.js";
|
|
123
|
+
import {
|
|
124
|
+
getDefaultCliLocalRuntimeDb
|
|
125
|
+
} from "./chunk-H33743XH.js";
|
|
127
126
|
import {
|
|
128
127
|
isCompiledBinary,
|
|
129
128
|
parseUserIdFromAuthToken
|
|
@@ -132,11 +131,18 @@ import {
|
|
|
132
131
|
DEFAULT_NOLO_SERVER_URL
|
|
133
132
|
} from "./chunk-OLZBQWZU.js";
|
|
134
133
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
134
|
+
asRecordOrEmpty
|
|
135
|
+
} from "./chunk-KX6YBIHG.js";
|
|
137
136
|
import {
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
createTokenKey,
|
|
138
|
+
dialogMessageRange
|
|
139
|
+
} from "./chunk-O4BU24WZ.js";
|
|
140
|
+
import {
|
|
141
|
+
asTrimmedNonEmptyStringArray
|
|
142
|
+
} from "./chunk-I42VC5KR.js";
|
|
143
|
+
import {
|
|
144
|
+
asOptionalFiniteNumber
|
|
145
|
+
} from "./chunk-WWC7I6TA.js";
|
|
140
146
|
import {
|
|
141
147
|
BUILTIN_NOLO_AGENT_KEY,
|
|
142
148
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
|
|
@@ -144,13 +150,13 @@ import {
|
|
|
144
150
|
PUBLIC_GLM_52_AGENT_KEY,
|
|
145
151
|
PUBLIC_KIMI_K26_IMAGE_AGENT_KEY,
|
|
146
152
|
PUBLIC_KIMI_K27_CODING_AGENT_KEY
|
|
147
|
-
} from "./chunk-
|
|
148
|
-
import {
|
|
149
|
-
asTrimmedString
|
|
150
|
-
} from "./chunk-3EUW3WEO.js";
|
|
153
|
+
} from "./chunk-XHQWJUW4.js";
|
|
151
154
|
import {
|
|
152
155
|
isRecord
|
|
153
156
|
} from "./chunk-KUG52IAP.js";
|
|
157
|
+
import {
|
|
158
|
+
asTrimmedString
|
|
159
|
+
} from "./chunk-3EUW3WEO.js";
|
|
154
160
|
import {
|
|
155
161
|
NOLO_CLUSTER_SERVERS
|
|
156
162
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -8327,9 +8333,26 @@ function resolveCliEffectiveEnabledPacks(args) {
|
|
|
8327
8333
|
}
|
|
8328
8334
|
const base = args.enabledPacks ?? [];
|
|
8329
8335
|
if (base.length === 0) {
|
|
8330
|
-
return ["code", "agent-orchestration"];
|
|
8336
|
+
return ["code", "agent-orchestration", "skills"];
|
|
8331
8337
|
}
|
|
8332
|
-
|
|
8338
|
+
const withOrchestration = base.includes("agent-orchestration") ? base : [...base, "agent-orchestration"];
|
|
8339
|
+
return withOrchestration.includes("skills") ? withOrchestration : [...withOrchestration, "skills"];
|
|
8340
|
+
}
|
|
8341
|
+
function withRuntimeEnabledPacksAndPrompt(config) {
|
|
8342
|
+
const rawRecord = config.rawRecord ?? {};
|
|
8343
|
+
const enabledPacks = config.enabledPacks ?? rawRecord.enabledPacks;
|
|
8344
|
+
const prompt = appendEnabledPackPromptPatches(
|
|
8345
|
+
config.prompt,
|
|
8346
|
+
enabledPacks
|
|
8347
|
+
);
|
|
8348
|
+
if (prompt === config.prompt && !enabledPacks?.length) {
|
|
8349
|
+
return config;
|
|
8350
|
+
}
|
|
8351
|
+
return {
|
|
8352
|
+
...config,
|
|
8353
|
+
...enabledPacks?.length ? { enabledPacks } : {},
|
|
8354
|
+
...prompt ? { prompt } : {}
|
|
8355
|
+
};
|
|
8333
8356
|
}
|
|
8334
8357
|
function resolveCliRequestedToolNames(agentConfig, env) {
|
|
8335
8358
|
const declaredOnly = shouldUseDeclaredOnlyLocalWorkspaceTools(env);
|
|
@@ -8641,6 +8664,33 @@ function createLocalDialogTitleGenerator(deps, ctx) {
|
|
|
8641
8664
|
return result.source === "llm" ? result.title : null;
|
|
8642
8665
|
};
|
|
8643
8666
|
}
|
|
8667
|
+
async function writeLocalTokenRecord(args) {
|
|
8668
|
+
const rawUsage = args.input.result.usage;
|
|
8669
|
+
if (!rawUsage || typeof rawUsage !== "object" || Object.keys(rawUsage).length === 0) {
|
|
8670
|
+
return;
|
|
8671
|
+
}
|
|
8672
|
+
const timestamp = args.now();
|
|
8673
|
+
const prepared = prepareTokenUsageData({
|
|
8674
|
+
rawUsage,
|
|
8675
|
+
agentConfig: {
|
|
8676
|
+
model: args.input.result.model || "unknown",
|
|
8677
|
+
provider: args.input.result.provider,
|
|
8678
|
+
apiSource: "cli"
|
|
8679
|
+
},
|
|
8680
|
+
userId: args.userId,
|
|
8681
|
+
agentId: args.input.agentKey,
|
|
8682
|
+
dialogId: args.dialogId,
|
|
8683
|
+
timestamp,
|
|
8684
|
+
entry_path: "cli-local"
|
|
8685
|
+
});
|
|
8686
|
+
const recordKey = createTokenKey.record(args.userId, timestamp);
|
|
8687
|
+
const tokenRecord = {
|
|
8688
|
+
id: args.createId(),
|
|
8689
|
+
type: "token",
|
|
8690
|
+
...prepared.tokenData
|
|
8691
|
+
};
|
|
8692
|
+
await args.store.write(recordKey, tokenRecord);
|
|
8693
|
+
}
|
|
8644
8694
|
async function writeDialog(args) {
|
|
8645
8695
|
let existingDialog = null;
|
|
8646
8696
|
if (args.input.continueDialogId) {
|
|
@@ -8674,6 +8724,22 @@ async function writeDialog(args) {
|
|
|
8674
8724
|
...titleOverride ? { titleOverride } : {}
|
|
8675
8725
|
});
|
|
8676
8726
|
await args.store.batch(plan.ops);
|
|
8727
|
+
try {
|
|
8728
|
+
await writeLocalTokenRecord({
|
|
8729
|
+
store: args.store,
|
|
8730
|
+
input: args.input,
|
|
8731
|
+
userId: args.userId,
|
|
8732
|
+
dialogId: plan.dialogId,
|
|
8733
|
+
now: args.now,
|
|
8734
|
+
createId: args.createId,
|
|
8735
|
+
output: args.output
|
|
8736
|
+
});
|
|
8737
|
+
} catch (error) {
|
|
8738
|
+
args.output?.write(
|
|
8739
|
+
`[nolo] Token usage record write failed (non-fatal): ${toErrorMessage(error)}
|
|
8740
|
+
`
|
|
8741
|
+
);
|
|
8742
|
+
}
|
|
8677
8743
|
const hasSubjectRefs = localTurnHasSubjectRefs(args.input);
|
|
8678
8744
|
const isLocalUser = args.userId === "local";
|
|
8679
8745
|
if (!isLocalUser) {
|
|
@@ -8707,6 +8773,42 @@ async function writeDialog(args) {
|
|
|
8707
8773
|
}
|
|
8708
8774
|
return { dialogId: plan.dialogId };
|
|
8709
8775
|
}
|
|
8776
|
+
function resolveCliDialogRecordKey(userId, dialogId) {
|
|
8777
|
+
if (dialogId.startsWith("dialog-") && !dialogId.includes("-msg-")) {
|
|
8778
|
+
return dialogId;
|
|
8779
|
+
}
|
|
8780
|
+
return `dialog-${userId}-${dialogId}`;
|
|
8781
|
+
}
|
|
8782
|
+
async function loadCliDialogSummary(args) {
|
|
8783
|
+
const dialogKey = resolveCliDialogRecordKey(args.userId, args.dialogId);
|
|
8784
|
+
const record = await args.store.read(dialogKey);
|
|
8785
|
+
if (!record || typeof record !== "object") return null;
|
|
8786
|
+
const summary = typeof record.summary === "string" ? record.summary.trim() : "";
|
|
8787
|
+
if (!summary) return null;
|
|
8788
|
+
const summarizedBeforeId = record.summarizedBeforeId;
|
|
8789
|
+
return {
|
|
8790
|
+
summary,
|
|
8791
|
+
...typeof summarizedBeforeId === "string" && summarizedBeforeId ? { summarizedBeforeId } : {}
|
|
8792
|
+
};
|
|
8793
|
+
}
|
|
8794
|
+
async function saveCliDialogSummary(args) {
|
|
8795
|
+
const dialogKey = resolveCliDialogRecordKey(args.userId, args.dialogId);
|
|
8796
|
+
const existing = await args.store.read(dialogKey) ?? {};
|
|
8797
|
+
const bareId = typeof existing.id === "string" && existing.id ? existing.id : args.dialogId.startsWith("dialog-") ? args.dialogId.slice(args.dialogId.lastIndexOf("-") + 1) : args.dialogId;
|
|
8798
|
+
const compressionCount = typeof existing.compressionCount === "number" ? existing.compressionCount + 1 : 1;
|
|
8799
|
+
await args.store.write(dialogKey, {
|
|
8800
|
+
...existing,
|
|
8801
|
+
id: bareId,
|
|
8802
|
+
dbKey: dialogKey,
|
|
8803
|
+
type: "dialog",
|
|
8804
|
+
userId: args.userId,
|
|
8805
|
+
summary: args.summary,
|
|
8806
|
+
...args.summarizedBeforeId !== void 0 ? { summarizedBeforeId: args.summarizedBeforeId } : {},
|
|
8807
|
+
compressionCount,
|
|
8808
|
+
summaryPending: false,
|
|
8809
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
8810
|
+
});
|
|
8811
|
+
}
|
|
8710
8812
|
function createCliLocalRuntimeAdapter(deps) {
|
|
8711
8813
|
const now = deps.now ?? Date.now;
|
|
8712
8814
|
const createId = deps.createId ?? createFallbackId;
|
|
@@ -8760,10 +8862,11 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
8760
8862
|
userId
|
|
8761
8863
|
});
|
|
8762
8864
|
const fallbackLocalCliAgentConfig = storedAgentConfig ? null : resolveBuiltinLocalCliAgentConfig(agentRef, userId);
|
|
8763
|
-
const
|
|
8865
|
+
const baseAgentConfig = withResolvedRuntimeToolSurface(
|
|
8764
8866
|
storedAgentConfig ?? fallbackLocalCliAgentConfig,
|
|
8765
8867
|
deps.env
|
|
8766
8868
|
);
|
|
8869
|
+
const agentConfig = baseAgentConfig ? withRuntimeEnabledPacksAndPrompt(baseAgentConfig) : baseAgentConfig;
|
|
8767
8870
|
const requestedToolNames = agentConfig ? resolveCliRequestedToolNames(agentConfig, deps.env) : [];
|
|
8768
8871
|
activeAgentToolNames = buildLocalPolicyToolNames({
|
|
8769
8872
|
agentKey: agentConfig?.key,
|
|
@@ -8800,6 +8903,18 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
8800
8903
|
dialogId,
|
|
8801
8904
|
store: await getOrCreateSharedStore(deps)
|
|
8802
8905
|
}),
|
|
8906
|
+
loadDialogSummary: async (dialogId) => loadCliDialogSummary({
|
|
8907
|
+
store: await getOrCreateSharedStore(deps),
|
|
8908
|
+
userId,
|
|
8909
|
+
dialogId
|
|
8910
|
+
}),
|
|
8911
|
+
saveDialogSummary: async (input) => saveCliDialogSummary({
|
|
8912
|
+
store: await getOrCreateSharedStore(deps),
|
|
8913
|
+
userId,
|
|
8914
|
+
dialogId: input.dialogId,
|
|
8915
|
+
summary: input.summary,
|
|
8916
|
+
summarizedBeforeId: input.summarizedBeforeId
|
|
8917
|
+
}),
|
|
8803
8918
|
saveTurn: async (input) => writeDialog({
|
|
8804
8919
|
store: await getOrCreateSharedStore(deps),
|
|
8805
8920
|
input,
|
|
@@ -9135,7 +9250,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
9135
9250
|
openAiToolNames: summarizeOpenAiToolNames(tools2),
|
|
9136
9251
|
stream
|
|
9137
9252
|
});
|
|
9138
|
-
|
|
9253
|
+
let res = await fetchWithTransientRetry(
|
|
9139
9254
|
fetchImpl,
|
|
9140
9255
|
request.url,
|
|
9141
9256
|
{
|
|
@@ -9146,8 +9261,44 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
9146
9261
|
loopbackRequest
|
|
9147
9262
|
}
|
|
9148
9263
|
);
|
|
9264
|
+
let responseProviderConfig = providerConfig2;
|
|
9265
|
+
let firstErrorRaw;
|
|
9149
9266
|
if (!res.ok) {
|
|
9150
|
-
|
|
9267
|
+
firstErrorRaw = await res.text().catch(() => "");
|
|
9268
|
+
const fallbackProviderConfig = resolveLegacyDeepSeekProxyChatFallback({
|
|
9269
|
+
providerConfig: providerConfig2,
|
|
9270
|
+
status: res.status,
|
|
9271
|
+
raw: firstErrorRaw
|
|
9272
|
+
});
|
|
9273
|
+
if (fallbackProviderConfig) {
|
|
9274
|
+
responseProviderConfig = fallbackProviderConfig;
|
|
9275
|
+
const fallbackRequest = buildPlatformChatCompletionRequest({
|
|
9276
|
+
providerConfig: fallbackProviderConfig,
|
|
9277
|
+
messages,
|
|
9278
|
+
tools: tools2,
|
|
9279
|
+
stream: false
|
|
9280
|
+
});
|
|
9281
|
+
logLocalRuntimeDiagnostic("provider.request.compatibility-fallback", {
|
|
9282
|
+
agentKey: agentConfig.key,
|
|
9283
|
+
provider: providerConfig2.provider,
|
|
9284
|
+
fromEndpoint: summarizeEndpoint(providerConfig2.endpoint) ?? null,
|
|
9285
|
+
toEndpoint: summarizeEndpoint(fallbackProviderConfig.endpoint) ?? null,
|
|
9286
|
+
reason: "legacy-proxy-responses-schema"
|
|
9287
|
+
});
|
|
9288
|
+
res = await fetchWithTransientRetry(
|
|
9289
|
+
fetchImpl,
|
|
9290
|
+
fallbackRequest.url,
|
|
9291
|
+
{ ...fallbackRequest.init },
|
|
9292
|
+
{
|
|
9293
|
+
sleep: deps.sleep,
|
|
9294
|
+
loopbackRequest
|
|
9295
|
+
}
|
|
9296
|
+
);
|
|
9297
|
+
firstErrorRaw = void 0;
|
|
9298
|
+
}
|
|
9299
|
+
}
|
|
9300
|
+
if (!res.ok) {
|
|
9301
|
+
const raw2 = firstErrorRaw ?? await res.text().catch(() => "");
|
|
9151
9302
|
const data2 = parsePlatformChatCompletionData(raw2);
|
|
9152
9303
|
const rawPreview = raw2.length > 200 ? `${raw2.slice(0, 200)}\u2026(${raw2.length}b)` : raw2;
|
|
9153
9304
|
const gatewayHeaders = [
|
|
@@ -9198,7 +9349,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
9198
9349
|
});
|
|
9199
9350
|
const data = parsePlatformChatCompletionData(raw);
|
|
9200
9351
|
return parsePlatformChatCompletionResponse({
|
|
9201
|
-
providerConfig:
|
|
9352
|
+
providerConfig: responseProviderConfig,
|
|
9202
9353
|
data,
|
|
9203
9354
|
trace: messages
|
|
9204
9355
|
});
|