nolo-cli 0.11.0 → 0.12.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-ZEDPX6OF.js → _executeModel-MWAY74HA.js} +51 -50
- package/{action-AA4IJ5K2.js → action-RAXNQQKC.js} +8 -9
- package/{addContentAction-QYVO4SYP.js → addContentAction-ZHI7TVV3.js} +7 -9
- package/{addDialogAgentAction-WVVKT5WQ.js → addDialogAgentAction-JWXPKXNC.js} +9 -10
- package/{agentDeleteCommand-RDPGYIWF.js → agentDeleteCommand-LXR5A5FV.js} +38 -28
- package/{agentEmailCommands-2HJJKS5F.js → agentEmailCommands-DXRAP7BB.js} +64 -62
- package/{agentListCommands-HFEVV3ZW.js → agentListCommands-ZFMS5ZLY.js} +127 -31
- package/{agentMachineCommands-25ZOENJU.js → agentMachineCommands-ZJLYVV52.js} +37 -26
- package/{agentPullCommand-GOL2S4W2.js → agentPullCommand-KRBRIFIY.js} +7 -7
- package/{agentRecordCommands-GTCOAM3L.js → agentRecordCommands-DFS626TB.js} +56 -54
- package/{agentRunCommand-YBS3JDLD.js → agentRunCommand-GWBIE2TS.js} +59 -59
- package/{agentRunControl-K4VKNEHF.js → agentRunControl-IX4F5W2C.js} +3 -3
- package/{agentRuntimeLocal-UQBMQI2M.js → agentRuntimeLocal-YNZSHMZC.js} +30 -15
- package/{agentSlice-6EKOBCCS.js → agentSlice-T2PXOEPQ.js} +8 -9
- package/{authCommand-O2OWACN4.js → authCommand-DMW336GT.js} +15 -15
- package/{authCommands-H7365TZP.js → authCommands-GH5T6RYV.js} +6 -6
- package/{chunk-7D3JY6C2.js → chunk-3HHTVM6G.js} +64 -5
- package/{chunk-AFON4QUU.js → chunk-3QKO4EHV.js} +3 -3
- package/{chunk-4SOKXIW4.js → chunk-43UD5ZP7.js} +8 -11
- package/{chunk-S3GS2PRL.js → chunk-4BTHUYMY.js} +597 -68
- package/{chunk-SV5MWASH.js → chunk-4EH7AR52.js} +12 -12
- package/{chunk-FXXSGWAJ.js → chunk-4GBNEA5B.js} +1 -1
- package/{chunk-PXZAAB4L.js → chunk-4LG74DRG.js} +4 -4
- package/{chunk-2FTTDCD4.js → chunk-4ON5AV72.js} +2 -1
- package/{chunk-IWX4UW2E.js → chunk-524BDL33.js} +89 -8
- package/{chunk-X2S7JTIG.js → chunk-5ITRDSHY.js} +1240 -136
- package/{chunk-ISNCLGUZ.js → chunk-5NBHQD4D.js} +4 -3
- package/{chunk-GBDSZATH.js → chunk-6LMFFG3K.js} +3 -3
- package/{chunk-OUI3ZHYD.js → chunk-6OVCRC72.js} +1 -1
- package/{chunk-CKOJQDKR.js → chunk-7JJCGV7N.js} +146 -3
- package/{chunk-MQI77IRB.js → chunk-7MYHLZ3F.js} +2 -2
- package/{chunk-5MOUAAMK.js → chunk-AM53Q2SD.js} +194 -2564
- package/chunk-BYXBJQAS.js +0 -0
- package/{chunk-LAX2JSTX.js → chunk-DE5BA4O6.js} +20 -2
- package/{chunk-BX6U3ETE.js → chunk-DRMGJFGQ.js} +293 -89
- package/{chunk-KJR5KAUQ.js → chunk-EBH7G34M.js} +20 -7
- package/{chunk-E4HNJSHC.js → chunk-G3B356GF.js} +16 -18
- package/{chunk-KQQVGRA3.js → chunk-GDBCUWQ3.js} +35 -29
- package/{chunk-Q3UKJVU4.js → chunk-GPZM7QH6.js} +10 -10
- package/chunk-IKXL2HZ3.js +70 -0
- package/{chunk-QNMFBBZK.js → chunk-IVAOVLM7.js} +1 -1
- package/{chunk-EVZKZF32.js → chunk-JUN3HFMN.js} +182 -75
- package/{chunk-NEM67FX7.js → chunk-JZDIW766.js} +1 -1
- package/{chunk-TACHTH5D.js → chunk-LHSJMY5V.js} +18 -18
- package/{chunk-XYZA7S7V.js → chunk-MEVCDATU.js} +6 -6
- package/{chunk-YOCHZD7D.js → chunk-NCGFB7NN.js} +5 -3
- package/{chunk-O26GI2JP.js → chunk-NITP2JDG.js} +39 -8
- package/{chunk-YPRZSPF3.js → chunk-OCDEWRE2.js} +1 -1
- package/{chunk-PNEW2Z3T.js → chunk-OHEKYYJF.js} +7 -7
- package/chunk-OOIN7HSO.js +146 -0
- package/{chunk-DWGAEFJL.js → chunk-OPKKB25T.js} +1 -1
- package/{chunk-AEZAORLG.js → chunk-QCA3EPYK.js} +5 -5
- package/{chunk-C4FTUXVF.js → chunk-QLUFR47U.js} +11 -1
- package/{chunk-C2MDQQ4O.js → chunk-RNQ5BLR2.js} +1 -1
- package/{chunk-L53FGHA4.js → chunk-RSEUHW6T.js} +1 -1
- package/{chunk-2W2VYVI5.js → chunk-RZ735TLX.js} +527 -176
- package/chunk-S3UTETIC.js +4885 -0
- package/chunk-S73OEOHH.js +2286 -0
- package/{chunk-YTBMA7NO.js → chunk-TSKWE74T.js} +58 -8
- package/{chunk-5OIFWVX7.js → chunk-UG3WOFU6.js} +1 -1
- package/{chunk-4ZDM73SD.js → chunk-V2J635L5.js} +1 -1
- package/{chunk-IPYUUY4E.js → chunk-WPHL6ALY.js} +1 -1
- package/{chunk-3NSIQZZ6.js → chunk-WTYKCU4W.js} +9 -9
- package/{chunk-LP65VRCI.js → chunk-WWU275LU.js} +6 -6
- package/{chunk-XFOLQLDN.js → chunk-XHQWJUW4.js} +2 -2
- package/{chunk-D6OQHXVG.js → chunk-YDCZVUFP.js} +7 -7
- package/{chunk-PXQN7IBQ.js → chunk-YTQLJYLB.js} +2 -2
- package/{chunk-ZEYDOXHF.js → chunk-ZPFRLGIZ.js} +1467 -869
- package/{chunk-ZPRK73XY.js → chunk-ZR4VHQ5D.js} +14 -13
- package/cliEnvHelpers-VYC2OPTB.js +30 -0
- package/{createAgentAutomationAction-LTI5QU35.js → createAgentAutomationAction-G32GKDGV.js} +25 -26
- package/{createDialogAction-OJJ7L3L3.js → createDialogAction-TISANRZK.js} +26 -27
- package/{createPageAction-5MXWVRGY.js → createPageAction-O7KOYNV4.js} +26 -27
- package/{dbSlice-RQFQQVHT.js → dbSlice-WDP2ZZHK.js} +6 -7
- package/{deleteFile-7XP5BGC7.js → deleteFile-M7UNIUOO.js} +4 -4
- package/{dialogCommands-JTJ3RPPW.js → dialogCommands-6JPB3YQY.js} +33 -23
- package/{dialogSlice-OWROKURJ.js → dialogSlice-PRHHYSP5.js} +26 -27
- package/{docCreateCommands-WJBEW2V7.js → docCreateCommands-75E6TZNN.js} +33 -23
- package/{docDeleteCommands-BVEHJOY5.js → docDeleteCommands-EJHLN7LW.js} +34 -25
- package/{docReadCommands-NEWOZIJV.js → docReadCommands-RJYBC4FS.js} +33 -23
- package/{docStore-3DXRYBMD.js → docStore-H5VWKT5D.js} +25 -26
- package/{docUpdateCommands-C7WHT7UU.js → docUpdateCommands-MG4CNISV.js} +33 -23
- package/fetchMessages-KTNM7QAR.js +1 -1
- package/{getPricing-3E6UNPKL.js → getPricing-6TOZXPAU.js} +7 -3
- package/{handleSendMessageAction-B5PRR7BE.js → handleSendMessageAction-QTUGICSZ.js} +29 -30
- package/index.js +77 -76
- package/{localDialogRead-YSKFFRTT.js → localDialogRead-2VRI24F4.js} +1 -1
- package/{machineCommands-IIIREAEK.js → machineCommands-MAV7M3TK.js} +63 -61
- package/{machineWsRunDispatch-3SIU6ILW.js → machineWsRunDispatch-ZOEGTKHC.js} +55 -53
- package/{memoryCommands-O4MIPIWQ.js → memoryCommands-AFMES3LN.js} +5 -5
- package/{models-4OPOOLFS.js → models-LSCRJJ6P.js} +2 -2
- package/package.json +1 -1
- package/{read-QJNKRROM.js → read-2MIMRBZ2.js} +4 -4
- package/{readDocTool-H6X6KO6X.js → readDocTool-QHVGQHUJ.js} +1 -1
- package/{readlineWorkspace-HGP3I3OC.js → readlineWorkspace-SWQKC7ZS.js} +1113 -678
- package/{removeDialogAgentAction-TCT35SOF.js → removeDialogAgentAction-GTX5AN54.js} +13 -13
- package/{runAgentClientLoop-EFM4PTVI.js → runAgentClientLoop-P25HACXX.js} +47 -47
- package/{runtimeDoctorCommands-ID43Z7VX.js → runtimeDoctorCommands-QNF3J3UV.js} +6 -6
- package/{setDialogExtraReferencesAction-CGYLZMFH.js → setDialogExtraReferencesAction-WFQ63KYO.js} +9 -10
- package/{setPrimaryDialogAgentAction-F6BFQDJU.js → setPrimaryDialogAgentAction-P57FXTSU.js} +13 -13
- package/{settingSlice-2I5HMG47.js → settingSlice-CK5YZGNI.js} +7 -8
- package/{skillDiscovery-UGSQGX2U.js → skillDiscovery-ZYHSX7VD.js} +3 -3
- package/{spaceCommands-MT7BWCIL.js → spaceCommands-6O5EFEM5.js} +37 -29
- package/{spaceSlice-BS5TSW3W.js → spaceSlice-4EXTYXS4.js} +28 -27
- package/{streamAgentChatTurn-I3VBFNR3.js → streamAgentChatTurn-Q3FJAHG2.js} +222 -128
- package/{toolApiClient-C7P7YSE4.js → toolApiClient-QI3YBNWB.js} +2 -2
- package/{tools-XSD2BOEN.js → tools-AHNQE4GP.js} +34 -34
- package/{tuiSummaryLlmCaller-32NRHTT2.js → tuiSummaryLlmCaller-TXLF4MEI.js} +8 -6
- package/{updateCommands-VOSPKXFF.js → updateCommands-XZDOOYFH.js} +13 -5
- package/{updateDialogTitleAction-7FYNJOGP.js → updateDialogTitleAction-XZDVLKVX.js} +29 -29
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-AZPCASRE.js +0 -36
- package/chunk-BBYVOSU2.js +0 -792
- package/chunk-DCOA4QSN.js +0 -105
- package/chunk-UAD2WT54.js +0 -64
- package/{chunk-JK7VW2FN.js → chunk-5MIDPSSK.js} +3 -3
- package/{chunk-5CS33IBL.js → chunk-PDL2AV3E.js} +3 -3
- package/{chunk-5MMZUWSG.js → chunk-TOILAPLH.js} +5 -5
- package/{chunk-OOM6SJNR.js → chunk-TSUJOM6N.js} +6 -6
- package/{db-6QED3ZVO.js → db-HCJ5PRB5.js} +3 -3
- package/{offlineMarxistsAgentCommand-BCPJITJL.js → offlineMarxistsAgentCommand-5OOWZLJI.js} +3 -3
- package/{tableCommands-M3DJUETS.js → tableCommands-E4SQWDOX.js} +6 -6
- package/{understanding-ZOESBLF3.js → understanding-3CUQQ6SV.js} +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getModelConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S3UTETIC.js";
|
|
4
4
|
import {
|
|
5
5
|
asTrimmedLowercaseString
|
|
6
6
|
} from "./chunk-QSJ3HFEF.js";
|
|
7
|
-
import {
|
|
8
|
-
asTrimmedString
|
|
9
|
-
} from "./chunk-3EUW3WEO.js";
|
|
10
7
|
import {
|
|
11
8
|
isRecord
|
|
12
9
|
} from "./chunk-KUG52IAP.js";
|
|
10
|
+
import {
|
|
11
|
+
asTrimmedString
|
|
12
|
+
} from "./chunk-3EUW3WEO.js";
|
|
13
13
|
import {
|
|
14
14
|
normalizeServerOrigin
|
|
15
15
|
} from "./chunk-CF7PE763.js";
|
|
@@ -29,8 +29,35 @@ function pickAgentRuntimeInferenceOptions(agentConfig) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
// packages/agent-runtime/openAiCompatibleMessages.ts
|
|
33
|
+
function preserveAgentStateFields(source, target) {
|
|
34
|
+
const mutableTarget = target;
|
|
35
|
+
if (source.role === "assistant") {
|
|
36
|
+
if (typeof source.reasoning_content === "string") {
|
|
37
|
+
mutableTarget.reasoning_content = source.reasoning_content;
|
|
38
|
+
}
|
|
39
|
+
if (Array.isArray(source.tool_calls)) {
|
|
40
|
+
mutableTarget.tool_calls = source.tool_calls;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (source.role === "tool") {
|
|
44
|
+
const toolCallId = typeof source.tool_call_id === "string" ? source.tool_call_id.trim() : typeof source.toolCallId === "string" ? source.toolCallId.trim() : "";
|
|
45
|
+
if (toolCallId) mutableTarget.tool_call_id = toolCallId;
|
|
46
|
+
}
|
|
47
|
+
return target;
|
|
48
|
+
}
|
|
49
|
+
function toOpenAiCompatibleMessages(messages) {
|
|
50
|
+
return messages.map(
|
|
51
|
+
(message) => preserveAgentStateFields(message, {
|
|
52
|
+
role: message.role,
|
|
53
|
+
content: message.content ?? ""
|
|
54
|
+
})
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
32
58
|
// packages/agent-runtime/platformProviderEndpoints.ts
|
|
33
59
|
var OPENAI_RESPONSES_ENDPOINT = "https://api.openai.com/v1/responses";
|
|
60
|
+
var DEEPSEEK_RESPONSES_ENDPOINT = "https://api.deepseek.com/v1/responses";
|
|
34
61
|
var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
|
|
35
62
|
deepinfra: "https://api.deepinfra.com/v1/openai/chat/completions",
|
|
36
63
|
deepseek: "https://api.deepseek.com/chat/completions",
|
|
@@ -47,7 +74,11 @@ var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
|
|
|
47
74
|
nolo: "https://ollama.com/v1/chat/completions"
|
|
48
75
|
};
|
|
49
76
|
function isOpenAiResponsesModel(args) {
|
|
50
|
-
|
|
77
|
+
const provider = asTrimmedLowercaseString(args.provider);
|
|
78
|
+
if (provider === "deepseek") {
|
|
79
|
+
return asTrimmedLowercaseString(args.model) === "deepseek-v4-flash";
|
|
80
|
+
}
|
|
81
|
+
if (provider !== "openai") return false;
|
|
51
82
|
if (args.endpointKey === "responses") return true;
|
|
52
83
|
if (!args.model) return false;
|
|
53
84
|
try {
|
|
@@ -56,10 +87,24 @@ function isOpenAiResponsesModel(args) {
|
|
|
56
87
|
return false;
|
|
57
88
|
}
|
|
58
89
|
}
|
|
90
|
+
function resolvePlatformResponsesEndpoint(provider) {
|
|
91
|
+
switch (asTrimmedLowercaseString(provider)) {
|
|
92
|
+
case "openai":
|
|
93
|
+
return OPENAI_RESPONSES_ENDPOINT;
|
|
94
|
+
case "deepseek":
|
|
95
|
+
return DEEPSEEK_RESPONSES_ENDPOINT;
|
|
96
|
+
default:
|
|
97
|
+
return void 0;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
var PLATFORM_PROVIDER_ENDPOINT_ALIASES = {
|
|
101
|
+
"ollama-cloud": "nolo"
|
|
102
|
+
};
|
|
59
103
|
function resolvePlatformChatCompletionsEndpoint(provider) {
|
|
60
104
|
const key = asTrimmedLowercaseString(provider);
|
|
61
105
|
if (!key) return void 0;
|
|
62
|
-
|
|
106
|
+
const aliased = PLATFORM_PROVIDER_ENDPOINT_ALIASES[key] ?? key;
|
|
107
|
+
return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS[aliased];
|
|
63
108
|
}
|
|
64
109
|
|
|
65
110
|
// packages/agent-runtime/providerResolution.ts
|
|
@@ -77,7 +122,7 @@ function resolvePlatformProviderEndpoint(agentConfig) {
|
|
|
77
122
|
model: agentConfig.model,
|
|
78
123
|
endpointKey: agentConfig.endpointKey
|
|
79
124
|
})) {
|
|
80
|
-
return
|
|
125
|
+
return resolvePlatformResponsesEndpoint(provider) ?? "";
|
|
81
126
|
}
|
|
82
127
|
const endpoint = resolvePlatformChatCompletionsEndpoint(provider);
|
|
83
128
|
if (!endpoint) {
|
|
@@ -407,6 +452,9 @@ var convertMessagesToResponsesInput = (messages) => {
|
|
|
407
452
|
continue;
|
|
408
453
|
}
|
|
409
454
|
const role = message.role;
|
|
455
|
+
if (role === "assistant" && typeof message.reasoning_content === "string" && message.reasoning_content) {
|
|
456
|
+
input.push({ type: "reasoning", content: message.reasoning_content });
|
|
457
|
+
}
|
|
410
458
|
const contentParts = normalizeMessageParts(message.content, role);
|
|
411
459
|
if (contentParts.length > 0) {
|
|
412
460
|
input.push({
|
|
@@ -517,8 +565,10 @@ var extractToolCallsFromResponseOutput = (response) => {
|
|
|
517
565
|
|
|
518
566
|
export {
|
|
519
567
|
pickAgentRuntimeInferenceOptions,
|
|
520
|
-
|
|
568
|
+
preserveAgentStateFields,
|
|
569
|
+
toOpenAiCompatibleMessages,
|
|
521
570
|
isOpenAiResponsesModel,
|
|
571
|
+
resolvePlatformResponsesEndpoint,
|
|
522
572
|
resolvePlatformChatCompletionsEndpoint,
|
|
523
573
|
trimTrailingSlash,
|
|
524
574
|
resolvePlatformServerUrl,
|
|
@@ -16,7 +16,7 @@ var BUILTIN_SUMMARY_LLM_CONFIG = {
|
|
|
16
16
|
provider: "deepseek",
|
|
17
17
|
id: "builtin-dialog-summary-llm",
|
|
18
18
|
name: "Builtin Dialog Summary LLM",
|
|
19
|
-
model: "deepseek-v4-
|
|
19
|
+
model: "deepseek-v4-flash",
|
|
20
20
|
prompt: "\u4F60\u662F\u4E00\u4E2A\u4E13\u4E1A\u7684\u5BF9\u8BDD\u8BB0\u5FC6\u52A9\u7406\u3002\u8BF7\u57FA\u4E8E\u3010\u73B0\u6709\u8BB0\u5FC6\u3011\u548C\u3010\u65B0\u589E\u5BF9\u8BDD\u3011\uFF0C\u8F93\u51FA\u4E00\u4EFD\u66F4\u65B0\u540E\u7684\u5BF9\u8BDD\u8BB0\u5FC6\u6863\u6848\u3002\u4E25\u683C\u53EA\u8F93\u51FA\u4E0B\u9762\u4E24\u90E8\u5206\uFF0C\u6807\u9898\u5FC5\u987B\u5B8C\u5168\u4E00\u81F4\uFF1A\n\u5173\u952E\u4E8B\u5B9E\u6863\u6848\n- ...\n\u5BF9\u8BDD\u5267\u60C5\u6458\u8981\n- ...\n\u8981\u6C42\uFF1A1) \u4F7F\u7528\u5BF9\u8BDD\u4E3B\u8BED\u8A00\uFF1B\u6DF7\u5408\u8BED\u8A00\u65F6\u4F18\u5148\u8DDF\u968F\u7528\u6237\u4E3B\u8981\u8BED\u8A00\uFF0C\u4E13\u6709\u540D\u8BCD\u4FDD\u7559\u539F\u6587\u30022) \u5173\u952E\u4E8B\u5B9E\u6863\u6848\u53EA\u4FDD\u7559\u4E4B\u540E\u7EE7\u7EED\u5BF9\u8BDD\u4ECD\u6709\u4EF7\u503C\u7684\u4FE1\u606F\uFF0C\u4F8B\u5982\u7528\u6237\u504F\u597D\u3001\u76EE\u6807\u3001\u7EA6\u675F\u3001\u6280\u672F\u6808\u3001\u786E\u5B9A\u7684\u6587\u4EF6\u540D/\u53D8\u91CF\u540D\u3001\u6838\u5FC3\u51B3\u7B56\u3001\u5F85\u529E\u4E8B\u9879\u30023) \u5BF9\u8BDD\u5267\u60C5\u6458\u8981\u5148\u6781\u7B80\u6982\u62EC\u65E7\u4E0A\u4E0B\u6587\uFF0C\u518D\u66F4\u8BE6\u7EC6\u8BB0\u5F55\u6700\u8FD1\u65B0\u589E\u7684\u8FDB\u5C55\u3001\u5206\u6B67\u3001\u7ED3\u8BBA\u548C\u4E0B\u4E00\u6B65\u30024) \u5FFD\u7565\u5BD2\u6684\u3001\u91CD\u590D\u5C1D\u8BD5\u3001\u5DF2\u653E\u5F03\u65B9\u6848\u548C\u65E0\u4EF7\u503C\u5E9F\u8BDD\u30025) \u4E0D\u8981\u7F16\u9020\u672A\u51FA\u73B0\u7684\u4FE1\u606F\uFF0C\u4E0D\u8981\u8F93\u51FA\u5F00\u573A\u767D\u3001\u7ED3\u675F\u8BED\u3001markdown \u4EE3\u7801\u5757\u6216\u989D\u5916\u7AE0\u8282\u3002"
|
|
21
21
|
};
|
|
22
22
|
var buildBuiltinSummaryContent = (previousSummary, messagesText) => `
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parsePositiveFiniteNumberOrFallback
|
|
3
3
|
} from "./chunk-Y5GCAMGP.js";
|
|
4
|
+
import {
|
|
5
|
+
asRecordOrEmpty
|
|
6
|
+
} from "./chunk-KX6YBIHG.js";
|
|
4
7
|
import {
|
|
5
8
|
patch,
|
|
6
9
|
readAndWait,
|
|
7
10
|
toTimestampMs,
|
|
8
11
|
upsert,
|
|
9
12
|
write
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
asRecordOrEmpty
|
|
13
|
-
} from "./chunk-KX6YBIHG.js";
|
|
13
|
+
} from "./chunk-NITP2JDG.js";
|
|
14
14
|
import {
|
|
15
15
|
createUserKey,
|
|
16
16
|
createUserPreferenceKey,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-QSJ3HFEF.js";
|
|
22
22
|
import {
|
|
23
23
|
BUILTIN_NOLO_AGENT_KEY
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XHQWJUW4.js";
|
|
25
25
|
import {
|
|
26
26
|
asyncThunkCreator,
|
|
27
27
|
buildCreateSlice,
|
|
@@ -29,18 +29,18 @@ import {
|
|
|
29
29
|
createAsyncThunk,
|
|
30
30
|
createSelector,
|
|
31
31
|
selectIdentityUserId
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TSUJOM6N.js";
|
|
33
33
|
import {
|
|
34
34
|
getAllServers,
|
|
35
35
|
getIsDesktopApp,
|
|
36
36
|
isProduction
|
|
37
37
|
} from "./chunk-OOSFSFMA.js";
|
|
38
|
-
import {
|
|
39
|
-
isLocalServerUrl
|
|
40
|
-
} from "./chunk-4SN6J65J.js";
|
|
41
38
|
import {
|
|
42
39
|
SERVERS
|
|
43
40
|
} from "./chunk-LCBAMY2M.js";
|
|
41
|
+
import {
|
|
42
|
+
isLocalServerUrl
|
|
43
|
+
} from "./chunk-4SN6J65J.js";
|
|
44
44
|
import {
|
|
45
45
|
normalizeServerOrigin
|
|
46
46
|
} from "./chunk-CF7PE763.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readDbRecord,
|
|
3
3
|
writeAgentRecord
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QCA3EPYK.js";
|
|
5
5
|
import {
|
|
6
6
|
buildSkillSummaryMarker
|
|
7
7
|
} from "./chunk-VF4K2QE6.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-VC6OZXO5.js";
|
|
11
11
|
import {
|
|
12
12
|
createSpaceKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3HHTVM6G.js";
|
|
14
14
|
import {
|
|
15
15
|
asTrimmedLowercaseString
|
|
16
16
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
readOption,
|
|
20
20
|
resolveAuthToken,
|
|
21
21
|
resolveServerUrl
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
DEFAULT_LOCAL_API_ORIGIN
|
|
25
|
-
} from "./chunk-4SN6J65J.js";
|
|
22
|
+
} from "./chunk-5NBHQD4D.js";
|
|
26
23
|
import {
|
|
27
24
|
NOLO_CLUSTER_SERVERS
|
|
28
25
|
} from "./chunk-LCBAMY2M.js";
|
|
26
|
+
import {
|
|
27
|
+
DEFAULT_LOCAL_API_ORIGIN
|
|
28
|
+
} from "./chunk-4SN6J65J.js";
|
|
29
29
|
import {
|
|
30
30
|
normalizeServerOrigin
|
|
31
31
|
} from "./chunk-CF7PE763.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
scheduleExistingRecordReplication,
|
|
8
8
|
shouldReplaceLocalWithRemoteRecord,
|
|
9
9
|
shouldReplicateLocalRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TSUJOM6N.js";
|
|
11
11
|
import {
|
|
12
12
|
fetchFromClientDb,
|
|
13
13
|
fetchFromServer,
|
|
@@ -466,13 +466,13 @@ var readAction = async (payload, thunkApi) => {
|
|
|
466
466
|
};
|
|
467
467
|
|
|
468
468
|
export {
|
|
469
|
+
readRequestManager,
|
|
469
470
|
BUILTIN_NOLO_AGENT_KEY,
|
|
470
471
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
|
|
471
472
|
PUBLIC_DEEPSEEK_V4_PRO_AGENT_KEY,
|
|
472
473
|
PUBLIC_KIMI_K27_CODING_AGENT_KEY,
|
|
473
474
|
PUBLIC_GLM_52_AGENT_KEY,
|
|
474
475
|
PUBLIC_KIMI_K26_IMAGE_AGENT_KEY,
|
|
475
|
-
readRequestManager,
|
|
476
476
|
resolveAgentReadServers,
|
|
477
477
|
readAction
|
|
478
478
|
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
// packages/core/drainReason.ts
|
|
2
2
|
var CORE_DRAIN_REASON = "core_draining";
|
|
3
3
|
|
|
4
|
-
// packages/core/gatewayHttpStatus.ts
|
|
5
|
-
function isGatewayHttpStatus(status) {
|
|
6
|
-
return status === 502 || status === 503 || status === 504;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
4
|
// packages/core/retryAfterMs.ts
|
|
10
5
|
function normalizeNonNegativeMs(value, fallbackMs) {
|
|
11
6
|
const parsed = Number(value);
|
|
@@ -26,9 +21,14 @@ function parseRetryAfterHeaderMs(value, nowMs = Date.now()) {
|
|
|
26
21
|
return null;
|
|
27
22
|
}
|
|
28
23
|
|
|
24
|
+
// packages/core/gatewayHttpStatus.ts
|
|
25
|
+
function isGatewayHttpStatus(status) {
|
|
26
|
+
return status === 502 || status === 503 || status === 504;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
29
|
export {
|
|
30
30
|
CORE_DRAIN_REASON,
|
|
31
|
-
isGatewayHttpStatus,
|
|
32
31
|
normalizeNonNegativeMs,
|
|
33
|
-
parseRetryAfterHeaderMs
|
|
32
|
+
parseRetryAfterHeaderMs,
|
|
33
|
+
isGatewayHttpStatus
|
|
34
34
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
i18n_default,
|
|
3
3
|
toolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RZ735TLX.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalizeToolNames
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-43UD5ZP7.js";
|
|
8
8
|
import {
|
|
9
9
|
asTrimmedLowercaseString
|
|
10
10
|
} from "./chunk-QSJ3HFEF.js";
|