nolo-cli 0.157.0-alpha.1 → 0.159.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-5WS2PA62.js → _executeModel-JISIM4PS.js} +41 -41
- package/{accountResolver-7RYB4D2P.js → accountResolver-55EDKEIK.js} +1 -1
- package/{action-ZJYUBXFC.js → action-GPPJC5TI.js} +4 -4
- package/{addContentAction-TVHB4526.js → addContentAction-BI6RDRTQ.js} +7 -7
- package/{addDialogAgentAction-FDPBU6K6.js → addDialogAgentAction-4RJYUSIK.js} +6 -6
- package/{agentDeleteCommand-Q6M4F3U6.js → agentDeleteCommand-2NMZDFL5.js} +54 -54
- package/{agentEmailCommands-FNH6FEHS.js → agentEmailCommands-VQ2QGKL4.js} +56 -56
- package/{agentListCommands-JUNMFS6E.js → agentListCommands-3CJ4GF6C.js} +21 -21
- package/{agentMachineCommands-VNLDEKNT.js → agentMachineCommands-BMOEPV5C.js} +20 -19
- package/{agentProviderCommands-X2HQE6HY.js → agentProviderCommands-CUBOAVPB.js} +2 -2
- package/{agentRecordCommands-47XXRVPI.js → agentRecordCommands-XRB7BLWV.js} +54 -54
- package/{agentRunCommand-QEXFJUXQ.js → agentRunCommand-VKCTAW55.js} +56 -55
- package/{agentRunControl-2C5GM3BW.js → agentRunControl-PPYWJRIJ.js} +4 -4
- package/{agentRuntimeLocal-O5GDAFTN.js → agentRuntimeLocal-7JDS3OAL.js} +14 -14
- package/{agentSlice-E3XS5FTQ.js → agentSlice-ST6QQ5FD.js} +7 -7
- package/{appDeleteCommands-C2J5RQ3I.js → appDeleteCommands-UVWHW4TJ.js} +19 -19
- package/{appDeployCommands-3YRK7PSU.js → appDeployCommands-67JPR4JU.js} +19 -19
- package/{appDeployStatusCommands-FPAX7MOK.js → appDeployStatusCommands-UTC6IR5V.js} +19 -19
- package/{appGetCommands-XAC2V766.js → appGetCommands-KLLIGWNC.js} +19 -19
- package/{appListCommands-ZJL2W5O7.js → appListCommands-AZKNWJUR.js} +19 -19
- package/{authCommand-J3XILHWW.js → authCommand-MSINEFHH.js} +12 -292
- package/{authCommands-77CHYBGF.js → authCommands-AMNIAKEG.js} +2 -2
- package/{builtinSkillRegistry-A6VSPJEJ.js → builtinSkillRegistry-H3AY27TR.js} +1 -1
- package/{chromeCommands-OBBNJCLS.js → chromeCommands-IY4NVSXZ.js} +17 -10
- package/{chunk-SW4S4XYB.js → chunk-2AB2HA4M.js} +84 -34
- package/{chunk-Z6KQDSZW.js → chunk-2SGAI64X.js} +2 -2
- package/{chunk-C5VPAHIU.js → chunk-32ZKZET7.js} +1 -1
- package/{chunk-XPWGOTBQ.js → chunk-3L2WKC3W.js} +1 -8
- package/{chunk-MM3662RS.js → chunk-42W7LKBM.js} +1 -1
- package/{chunk-FPWT3RH2.js → chunk-4CYTNZG3.js} +14 -14
- package/{chunk-L6EQV5OC.js → chunk-4JOZECCA.js} +3 -3
- package/{chunk-YBNHPX4S.js → chunk-4RJJDA57.js} +1 -1
- package/{chunk-B2EGWZJG.js → chunk-5MPS5OOY.js} +1 -1
- package/{chunk-TRW43TSC.js → chunk-6EQD4AQL.js} +41 -1
- package/{chunk-UUPR3TD7.js → chunk-7RF4O6AT.js} +1 -3
- package/{chunk-ZD2BLOY6.js → chunk-B5MSFO6R.js} +3 -3
- package/{chunk-2GGXHQIW.js → chunk-BLVSFYQ3.js} +4 -2
- package/{chunk-UTIMX333.js → chunk-C3WXTFRP.js} +1 -1
- package/{chunk-ROPSATAB.js → chunk-CON6SI7N.js} +1 -1
- package/{chunk-4Z245KOA.js → chunk-DC3SZCRR.js} +6 -2
- package/{chunk-X5SUT4CN.js → chunk-DD7BZWJ6.js} +6 -6
- package/{chunk-ANJTRG52.js → chunk-DFWLD7WU.js} +1 -38
- package/{chunk-PSJWPSKS.js → chunk-EWO77ZGF.js} +9 -43
- package/{chunk-DW7MGLMG.js → chunk-FUNTOSV3.js} +26 -22
- package/{chunk-MVJVF4ED.js → chunk-FVZVJA54.js} +7 -6
- package/{chunk-ZWG3C7VI.js → chunk-GB552UJS.js} +36 -1
- package/{chunk-EJU23ST5.js → chunk-GJNYJH7O.js} +682 -639
- package/{chunk-6MJNEXUU.js → chunk-HGDKT2D6.js} +4 -0
- package/{chunk-QDA4Y5O6.js → chunk-HXSN43Y5.js} +21 -17
- package/{chunk-7GC3EKUG.js → chunk-IE7G4BF5.js} +3 -3
- package/{chunk-T6CBQ6BN.js → chunk-INFHX73M.js} +1 -1
- package/{chunk-CE7PIHQD.js → chunk-IRTOYSA2.js} +3 -3
- package/{chunk-PEO24UB5.js → chunk-IULXURBL.js} +39 -12
- package/{chunk-WZ6OU4NX.js → chunk-J2ATF74A.js} +2 -2
- package/{chunk-SKPPKHD3.js → chunk-J4S44CSW.js} +2 -2
- package/{chunk-KOB75UNU.js → chunk-JKXXZUO4.js} +18 -2
- package/{chunk-K43ZF2C3.js → chunk-JPPQ3GUO.js} +1 -1
- package/{chunk-RUNKPFM5.js → chunk-JPSTJHGJ.js} +12 -8
- package/{chunk-I2ZMGXXF.js → chunk-KFHREHUQ.js} +1 -1
- package/{chunk-3C2QLERX.js → chunk-KMDDG73K.js} +1 -1
- package/{chunk-TZTWMGE3.js → chunk-M2P3OGXZ.js} +3 -3
- package/{chunk-IPAW7XLD.js → chunk-MFVOJ6KF.js} +2 -2
- package/{chunk-2MTE2PEH.js → chunk-MGSNS22D.js} +1 -1
- package/{chunk-FDT27L7S.js → chunk-MJKKEGF5.js} +8 -6
- package/{chunk-H4KACZMG.js → chunk-MNRZCEYU.js} +263 -128
- package/{chunk-CBHGZRCE.js → chunk-MYOH447Z.js} +1 -1
- package/{chunk-6MPAEODB.js → chunk-NDZOXXIM.js} +17 -3
- package/{chunk-VAZHH6FO.js → chunk-NJTXRGCJ.js} +18 -12
- package/{chunk-G47IPDOK.js → chunk-NUE735UT.js} +1 -1
- package/{chunk-HKT6QXP3.js → chunk-O4KVUI4W.js} +2 -2
- package/{chunk-36OMEXXR.js → chunk-OON4OBWI.js} +1 -1
- package/{chunk-7A4LJCDR.js → chunk-OVQFMCVI.js} +4 -4
- package/{chunk-SUKSWFLP.js → chunk-PIG2IUVZ.js} +1 -1
- package/{chunk-OH2M7WEU.js → chunk-PIYYH2LE.js} +3 -3
- package/{chunk-EM3YOZJ4.js → chunk-PKC7D6SX.js} +3 -3
- package/{chunk-SEJ5OS6F.js → chunk-PXYBUFDB.js} +4 -0
- package/{chunk-TYND6RDQ.js → chunk-QI2WVWXV.js} +73 -2
- package/{chunk-IYBIRCQV.js → chunk-QOYJE6NX.js} +1 -1
- package/{chunk-TNIX77YM.js → chunk-R5GO3YZP.js} +34 -1
- package/{chunk-XFKZ3MCV.js → chunk-R6ABE4UC.js} +223 -67
- package/{chunk-KX6LPG7W.js → chunk-RE5I35J7.js} +2 -2
- package/{chunk-VSOWPETY.js → chunk-RGYDJ352.js} +7 -7
- package/{chunk-D4OWHT5Y.js → chunk-SPKLALBU.js} +2 -2
- package/{chunk-JGRPBIZZ.js → chunk-SQX235S2.js} +1 -1
- package/{chunk-6TF64IF2.js → chunk-U6TTTB6V.js} +16 -2
- package/{chunk-3XZKV7QQ.js → chunk-US6MKPE7.js} +1 -1
- package/{chunk-I2RMFLLH.js → chunk-V7PCFWX3.js} +1 -1
- package/{chunk-HXHSTRGH.js → chunk-VYNMQ6HW.js} +0 -27
- package/{chunk-7BSQK2UC.js → chunk-WRCZXJ4N.js} +2 -2
- package/{chunk-ZEHTARJA.js → chunk-XEF4HW56.js} +42 -96
- package/chunk-Y5GCAMGP.js +9 -0
- package/{chunk-7KYVUFDG.js → chunk-YNCJYU4X.js} +2 -264
- package/{chunk-SCJD2PNK.js → chunk-YPG7TUQD.js} +3 -3
- package/{chunk-TJ2VPCBE.js → chunk-ZIGIN5IX.js} +2 -2
- package/{chunk-YANF2RR4.js → chunk-ZPKUJROL.js} +1 -1
- package/{chunk-HP6O6LTV.js → chunk-ZVQHBIWV.js} +6 -6
- package/{commandRegistry-OUBQIF62.js → commandRegistry-ROBNQFWA.js} +79 -87
- package/{contentThunks-B3FRQGP7.js → contentThunks-EWOJGG2I.js} +17 -16
- package/{createAgentAutomationAction-T2YFJ6MY.js → createAgentAutomationAction-I43ICGXU.js} +17 -16
- package/{createDialogAction-2NFGFBXW.js → createDialogAction-IIAHRXND.js} +18 -17
- package/{createPageAction-LDAVZDN7.js → createPageAction-OVK7PG4L.js} +17 -16
- package/{dbSlice-5QGKMQLO.js → dbSlice-DC2J53RC.js} +6 -6
- package/{deleteFile-EW6QNRRT.js → deleteFile-KYWEMNFX.js} +4 -4
- package/{dialogCommands-ZLBEAQHE.js → dialogCommands-K4OVKDYD.js} +22 -21
- package/{dialogSlice-64S3J6CP.js → dialogSlice-U22CFPRN.js} +16 -15
- package/{docCreateCommands-XOG5BBFQ.js → docCreateCommands-GI377ZFI.js} +17 -17
- package/{docDeleteCommands-NCW3BBRX.js → docDeleteCommands-NBQNTVHB.js} +18 -18
- package/{docReadCommands-OT7X44Y3.js → docReadCommands-6SKEW6AO.js} +17 -17
- package/{docStore-NIP7OO4I.js → docStore-SS2QUBG6.js} +7 -7
- package/{docUpdateCommands-JW7OWW2J.js → docUpdateCommands-NJ7JD6VA.js} +17 -17
- package/{getPricing-TX35D7PI.js → getPricing-XQ3N3RBP.js} +2 -2
- package/{handleSendMessageAction-TOKA7ED7.js → handleSendMessageAction-YVPRHPQR.js} +30 -29
- package/index.js +7 -7
- package/{localRuntimeAdapter-EQM6LFYC.js → localRuntimeAdapter-CC7ZPJRV.js} +54 -52
- package/{machineCommands-WJ7FZ67T.js → machineCommands-XEWIUHTY.js} +58 -56
- package/{machineWsRunDispatch-BQT4DEA2.js → machineWsRunDispatch-JYEWCXGP.js} +53 -53
- package/{memberThunks-KRV5YXOB.js → memberThunks-2DWKLE6W.js} +7 -7
- package/package.json +1 -1
- package/{profileConfig-ZGOFORWV.js → profileConfig-KN3N2BLF.js} +7 -1
- package/{providerPresetApply-CRZFMQD5.js → providerPresetApply-PKUOHQJT.js} +5 -5
- package/{providerRegistry-7IS43D3X.js → providerRegistry-HNQLIFN2.js} +5 -5
- package/{read-5KAZHHDM.js → read-L7QEJETH.js} +4 -4
- package/{readDocTool-5QO34OSX.js → readDocTool-QELXV2GW.js} +1 -1
- package/{readlineWorkspace-JHJSU5DS.js → readlineWorkspace-7MZPTN5U.js} +330 -117
- package/{removeDialogAgentAction-6X63HMI3.js → removeDialogAgentAction-376XSUP2.js} +8 -8
- package/{runAgentClientLoop-5QIGEALK.js → runAgentClientLoop-MLEVVWUH.js} +45 -40
- package/{runtimeDoctorCommands-56NWKNON.js → runtimeDoctorCommands-HEN5IPIH.js} +4 -4
- package/{secretCommands-ZXZRLR3R.js → secretCommands-DNY56NSU.js} +11 -1
- package/{setDialogExtraReferencesAction-4MAYKKYW.js → setDialogExtraReferencesAction-QBDSH63D.js} +7 -7
- package/{setPrimaryDialogAgentAction-EGBAMREH.js → setPrimaryDialogAgentAction-537QFGW3.js} +8 -8
- package/settingThunks-4Z43ZSAT.js +923 -0
- package/{spaceCommands-ZWDPTURU.js → spaceCommands-UM3ZQKJU.js} +17 -17
- package/{streamAgentChatTurn-456DWXNY.js → streamAgentChatTurn-J7HYND6V.js} +48 -48
- package/{switchDialogAgentAction-YBKTD6DO.js → switchDialogAgentAction-CSO6AKRL.js} +6 -6
- package/{tableCommands-U3QDY4L6.js → tableCommands-LBH3QPPO.js} +1 -1
- package/{toolApiClient-7WSJJJBV.js → toolApiClient-HGNO53TC.js} +2 -2
- package/{tools-IWNXKK4Y.js → tools-3CEH74XY.js} +34 -33
- package/{tuiSummaryLlmCaller-KLK6K3Q3.js → tuiSummaryLlmCaller-VSNIIH63.js} +6 -6
- package/{updateCommands-NQXAGFM7.js → updateCommands-LXZLG44Y.js} +2 -2
- package/{updateDialogTitleAction-SX53FZWO.js → updateDialogTitleAction-C557RTYG.js} +17 -16
- package/{workloadLifecycle-36DXRZKU.js → workloadLifecycle-6O6PMISX.js} +2 -2
- package/chunk-W4S6OTSC.js +0 -35
- package/settingThunks-FTDRZNSJ.js +0 -1371
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isDevinOAuthAgent
|
|
3
|
-
} from "./chunk-5ZUL4CUO.js";
|
|
4
1
|
import {
|
|
5
2
|
resolveAgentImageInputSupport
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
getModelContextWindow
|
|
9
|
-
} from "./chunk-2MTE2PEH.js";
|
|
3
|
+
} from "./chunk-QOYJE6NX.js";
|
|
10
4
|
import {
|
|
11
5
|
asOptionalFiniteNumber
|
|
12
6
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -55,35 +49,6 @@ async function stripImagePartsForTextOnlyAgent(messages, agentConfig) {
|
|
|
55
49
|
return { messages: !supportsVision && hasImages ? stripImagePartsFromMessages(messages) : messages };
|
|
56
50
|
}
|
|
57
51
|
|
|
58
|
-
// packages/agent-runtime/devin/devinChannelWindows.ts
|
|
59
|
-
var DEVIN_CHANNEL_CONTEXT_WINDOWS = {
|
|
60
|
-
// SWE-2 家族(catalog 无裸 swe-2 selector;旧点号/裸写法如 swe-2、
|
|
61
|
-
// swe-1.7 实测均 permission_denied,已不是可用 selector)。
|
|
62
|
-
"swe-2-max": 262e3,
|
|
63
|
-
"swe-2-high": 262e3,
|
|
64
|
-
"swe-2-medium": 262e3,
|
|
65
|
-
// SWE-1.7 家族。
|
|
66
|
-
"swe-1-7": 262e3,
|
|
67
|
-
"swe-1-7-medium": 262e3,
|
|
68
|
-
"swe-1-7-lightning": 202752,
|
|
69
|
-
// SWE-1.6 家族(免费档默认)。
|
|
70
|
-
"swe-1-6": 2e5,
|
|
71
|
-
"swe-1-6-fast": 2e5,
|
|
72
|
-
// 经 devin 通道转售、且与厂商原生窗口不同的模型(catalog 枚举型 selector)。
|
|
73
|
-
"MODEL_GPT_5_2_LOW": 384e3,
|
|
74
|
-
"MODEL_GPT_5_2_MEDIUM": 384e3,
|
|
75
|
-
"MODEL_GPT_5_2_HIGH": 384e3,
|
|
76
|
-
"MODEL_GPT_5_2_XHIGH": 384e3
|
|
77
|
-
};
|
|
78
|
-
var devinChannelContextWindow = (model) => {
|
|
79
|
-
const raw = model?.trim();
|
|
80
|
-
if (!raw) return void 0;
|
|
81
|
-
return DEVIN_CHANNEL_CONTEXT_WINDOWS[raw];
|
|
82
|
-
};
|
|
83
|
-
var resolveAgentContextWindow = (agent) => (isDevinOAuthAgent(agent) ? devinChannelContextWindow(agent.model) : void 0) ?? // provider 透传给全局解析:平台托管通道(CF)与 Codex OAuth 等通道对同一 id
|
|
84
|
-
// 窗口不同,按通道取真值,不做全局取大/取小。
|
|
85
|
-
getModelContextWindow(agent.model ?? "", agent.provider);
|
|
86
|
-
|
|
87
52
|
// packages/agent-runtime/agentRecordConfig.ts
|
|
88
53
|
function stringField(record, key) {
|
|
89
54
|
const value = record[key];
|
|
@@ -452,8 +417,6 @@ export {
|
|
|
452
417
|
hasImageInRuntimeMessages,
|
|
453
418
|
stripImagePartsFromMessages,
|
|
454
419
|
stripImagePartsForTextOnlyAgent,
|
|
455
|
-
devinChannelContextWindow,
|
|
456
|
-
resolveAgentContextWindow,
|
|
457
420
|
resolveAgentRuntimeConfigFromRecord,
|
|
458
421
|
buildDesktopAgentRuntimeAgentConfigSnapshot,
|
|
459
422
|
buildDesktopAgentRuntimeDialogHistorySnapshot,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SQX235S2.js";
|
|
4
4
|
import {
|
|
5
5
|
commandCodeModels,
|
|
6
6
|
kimiCodeModels,
|
|
7
|
+
minimaxModels,
|
|
7
8
|
moonshotModels,
|
|
8
9
|
opencodeGoModels,
|
|
9
10
|
qwenModels,
|
|
10
11
|
qwenTokenPlanModels,
|
|
11
12
|
stepfunModels,
|
|
12
13
|
stepfunStepPlanModels
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6EQD4AQL.js";
|
|
14
15
|
import {
|
|
15
16
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_OFF_PEAK_PRICE,
|
|
16
17
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
|
|
@@ -192,48 +193,13 @@ var TOGETHER_MODEL_OPTIONS = [
|
|
|
192
193
|
{ id: "zai-org/GLM-5.2", label: "GLM-5.2" },
|
|
193
194
|
{ id: "openai/gpt-oss-120b", label: "GPT-OSS 120B" }
|
|
194
195
|
];
|
|
195
|
-
var MINIMAX_MODEL_OPTIONS =
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
},
|
|
202
|
-
{ id: "MiniMax-M3", label: "MiniMax M3", hasVision: true }
|
|
203
|
-
];
|
|
196
|
+
var MINIMAX_MODEL_OPTIONS = minimaxModels.map((m, i) => ({
|
|
197
|
+
id: m.name,
|
|
198
|
+
label: m.displayName ?? m.name,
|
|
199
|
+
hasVision: m.hasVision,
|
|
200
|
+
...i === 0 ? { recommended: true } : {}
|
|
201
|
+
}));
|
|
204
202
|
var SUBSCRIPTION_OAUTH_PROVIDERS = [
|
|
205
|
-
{
|
|
206
|
-
kind: "oauth",
|
|
207
|
-
id: "workbuddy",
|
|
208
|
-
label: "WorkBuddy",
|
|
209
|
-
description: "\u4F7F\u7528 WorkBuddy \u56FD\u5185\u8D26\u53F7\u53CA\u5176\u5957\u9910\u6743\u76CA\uFF1B\u53EF\u7528\u989D\u5EA6\u4E0E\u8D39\u7387\u53EF\u80FD\u968F\u6D3B\u52A8\u53D8\u5316\uFF0C\u5177\u4F53\u4EE5\u8D26\u53F7\u9875\u9762\u4E3A\u51C6\u3002",
|
|
210
|
-
apiKeyRef: "workbuddy",
|
|
211
|
-
provider: "workbuddy",
|
|
212
|
-
defaultModel: "auto",
|
|
213
|
-
modelOptions: [
|
|
214
|
-
{ id: "auto", label: "Auto", recommended: true },
|
|
215
|
-
{ id: "hy3", label: "Hy3" },
|
|
216
|
-
{ id: "deepseek-v4.1-flash", label: "DeepSeek V4.1 Flash" },
|
|
217
|
-
{ id: "glm-5.3", label: "GLM-5.3" },
|
|
218
|
-
{ id: "kimi-k3-1", label: "Kimi K3" }
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
kind: "oauth",
|
|
223
|
-
id: "workbuddy-ai",
|
|
224
|
-
label: "WorkBuddy AI",
|
|
225
|
-
description: "Use your WorkBuddy AI account and its package benefits. Available quota and rates may change with promotions; check your account for current details.",
|
|
226
|
-
apiKeyRef: "workbuddy-ai",
|
|
227
|
-
provider: "workbuddy-ai",
|
|
228
|
-
defaultModel: "default-model",
|
|
229
|
-
modelOptions: [
|
|
230
|
-
{ id: "default-model", label: "Default", recommended: true },
|
|
231
|
-
{ id: "fast-model", label: "Fast" },
|
|
232
|
-
{ id: "balanced-model", label: "Balanced" },
|
|
233
|
-
{ id: "gpt-5.5", label: "GPT-5.5" },
|
|
234
|
-
{ id: "gemini-3.1-pro", label: "Gemini 3.1 Pro" }
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
203
|
{
|
|
238
204
|
kind: "oauth",
|
|
239
205
|
id: "chatgpt",
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
buildResponseGuidelines
|
|
3
|
-
} from "./chunk-W4S6OTSC.js";
|
|
4
1
|
import {
|
|
5
2
|
getLocalProviderSecret
|
|
6
3
|
} from "./chunk-HS7MLR74.js";
|
|
7
4
|
import {
|
|
8
5
|
performServerProxyFetchWithRetry
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RGYDJ352.js";
|
|
10
7
|
import {
|
|
11
8
|
shouldUseServerProxy
|
|
12
9
|
} from "./chunk-UKZX3NHN.js";
|
|
13
10
|
import {
|
|
14
11
|
fetchServerSyncedCredential
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DD7BZWJ6.js";
|
|
16
13
|
import {
|
|
17
14
|
buildSkillGuidancePromptBlock
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DC3SZCRR.js";
|
|
19
16
|
import {
|
|
17
|
+
CREDENTIAL_HYGIENE_RULE,
|
|
20
18
|
DELETE_SAFETY_RED_LINE,
|
|
19
|
+
DISPATCH_BACKEND_POLICY,
|
|
21
20
|
PARALLEL_DISPATCH_DEFAULT_RULE,
|
|
22
21
|
PLATFORM_RISK_CONTROL_RULE,
|
|
23
22
|
buildConsultationModeBlock,
|
|
24
23
|
buildIdentityBlock,
|
|
24
|
+
buildResponseGuidelines,
|
|
25
25
|
buildRuntimeGuidanceBlocks,
|
|
26
26
|
compileContextLayers,
|
|
27
27
|
detectDispatchIntentFromMessages,
|
|
28
28
|
resolveToolGuidedSections
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QI2WVWXV.js";
|
|
30
30
|
import {
|
|
31
31
|
convertMessagesToResponsesInput,
|
|
32
32
|
getUsageRequestOptions,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
resolveReasoningReplayOptions,
|
|
36
36
|
shouldStripReasoningContentForOutbound,
|
|
37
37
|
stablePromptCacheKey
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-U6TTTB6V.js";
|
|
39
39
|
import {
|
|
40
40
|
createFileCredentialBroker
|
|
41
41
|
} from "./chunk-UHTDNB5Y.js";
|
|
@@ -46,21 +46,21 @@ import {
|
|
|
46
46
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
47
47
|
isAntigravityCloudCodeBaseUrl,
|
|
48
48
|
isAntigravityOAuthAgent
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-SQX235S2.js";
|
|
50
50
|
import {
|
|
51
51
|
buildProviderAuthHeaders
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-PIG2IUVZ.js";
|
|
53
53
|
import {
|
|
54
54
|
isOpenAiResponsesModel,
|
|
55
55
|
resolvePlatformChatCompletionsEndpoint,
|
|
56
56
|
resolvePlatformResponsesEndpoint
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-V7PCFWX3.js";
|
|
58
58
|
import {
|
|
59
59
|
clampReasoningEffort,
|
|
60
60
|
findModelConfig,
|
|
61
61
|
getModelConfig,
|
|
62
62
|
isModelSupportReasoningEffort
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-6EQD4AQL.js";
|
|
64
64
|
import {
|
|
65
65
|
isRecord
|
|
66
66
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -216,16 +216,6 @@ function resolveAgentCallPlan(agentConfig, _env) {
|
|
|
216
216
|
vendor: provider || "anthropic"
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
if (oauthApiKeyRef === "workbuddy" || oauthApiKeyRef === "workbuddy-ai") {
|
|
220
|
-
return {
|
|
221
|
-
authMethod: { kind: "oauth", ref: oauthApiKeyRef },
|
|
222
|
-
transport: "server-proxy",
|
|
223
|
-
upstreamWire: "chat.completions",
|
|
224
|
-
endpoint: oauthApiKeyRef === "workbuddy" ? "https://copilot.tencent.com/v2/chat/completions" : "https://www.workbuddy.ai/v2/chat/completions",
|
|
225
|
-
requiredHeaders: [],
|
|
226
|
-
vendor: oauthApiKeyRef
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
219
|
if (oauthApiKeyRef === "xai") {
|
|
230
220
|
return {
|
|
231
221
|
authMethod: { kind: "oauth", ref: "xai" },
|
|
@@ -455,6 +445,13 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
|
455
445
|
cacheScope: "static",
|
|
456
446
|
content: DELETE_SAFETY_RED_LINE
|
|
457
447
|
},
|
|
448
|
+
// 凭据纪律:与红线同为无条件系统层块,四条装配线同源。
|
|
449
|
+
{
|
|
450
|
+
id: "credential-hygiene",
|
|
451
|
+
owner: "platform",
|
|
452
|
+
cacheScope: "static",
|
|
453
|
+
content: CREDENTIAL_HYGIENE_RULE
|
|
454
|
+
},
|
|
458
455
|
// 并行是默认:系统层固定块,紧随红线(同为无条件前缀,不随工具/轮次变化)。
|
|
459
456
|
{
|
|
460
457
|
id: "parallel-dispatch-default",
|
|
@@ -462,6 +459,13 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
|
462
459
|
cacheScope: "static",
|
|
463
460
|
content: PARALLEL_DISPATCH_DEFAULT_RULE
|
|
464
461
|
},
|
|
462
|
+
// 派发落点:并行派发纪律的下一层(派到哪个执行后端),紧随并行块。
|
|
463
|
+
{
|
|
464
|
+
id: "dispatch-backend-policy",
|
|
465
|
+
owner: "platform",
|
|
466
|
+
cacheScope: "static",
|
|
467
|
+
content: DISPATCH_BACKEND_POLICY
|
|
468
|
+
},
|
|
465
469
|
// 平台风控纪律:无条件静态前缀,紧随并行派发块。
|
|
466
470
|
{
|
|
467
471
|
id: "platform-risk-control",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GJNYJH7O.js";
|
|
5
5
|
import {
|
|
6
6
|
t
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2AB2HA4M.js";
|
|
8
8
|
import {
|
|
9
9
|
clipMultilineText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JPSTJHGJ.js";
|
|
11
11
|
import {
|
|
12
12
|
runLocalAgentTurn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IULXURBL.js";
|
|
14
14
|
import {
|
|
15
15
|
applyToolSurfaceConstraints
|
|
16
16
|
} from "./chunk-QLQ573SU.js";
|
|
@@ -672,8 +672,9 @@ ${Date.now()}
|
|
|
672
672
|
async function runOracleGenerateImage(args) {
|
|
673
673
|
const proc = args.spawn({
|
|
674
674
|
cmd: [
|
|
675
|
-
"
|
|
676
|
-
"
|
|
675
|
+
"bun",
|
|
676
|
+
"x",
|
|
677
|
+
"--bun",
|
|
677
678
|
"@steipete/oracle",
|
|
678
679
|
"--engine",
|
|
679
680
|
"browser",
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
+
isDevinOAuthAgent
|
|
3
|
+
} from "./chunk-5ZUL4CUO.js";
|
|
4
|
+
import {
|
|
5
|
+
getModelContextWindow,
|
|
2
6
|
normalizeTimingMs
|
|
3
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MGSNS22D.js";
|
|
4
8
|
import {
|
|
5
9
|
BUILTIN_NOLO_AGENT_KEY
|
|
6
10
|
} from "./chunk-LOEO7LRC.js";
|
|
@@ -25,6 +29,35 @@ import {
|
|
|
25
29
|
asOptionalTrimmedString
|
|
26
30
|
} from "./chunk-G3SUCT4W.js";
|
|
27
31
|
|
|
32
|
+
// packages/agent-runtime/devin/devinChannelWindows.ts
|
|
33
|
+
var DEVIN_CHANNEL_CONTEXT_WINDOWS = {
|
|
34
|
+
// SWE-2 家族(catalog 无裸 swe-2 selector;旧点号/裸写法如 swe-2、
|
|
35
|
+
// swe-1.7 实测均 permission_denied,已不是可用 selector)。
|
|
36
|
+
"swe-2-max": 262e3,
|
|
37
|
+
"swe-2-high": 262e3,
|
|
38
|
+
"swe-2-medium": 262e3,
|
|
39
|
+
// SWE-1.7 家族。
|
|
40
|
+
"swe-1-7": 262e3,
|
|
41
|
+
"swe-1-7-medium": 262e3,
|
|
42
|
+
"swe-1-7-lightning": 202752,
|
|
43
|
+
// SWE-1.6 家族(免费档默认)。
|
|
44
|
+
"swe-1-6": 2e5,
|
|
45
|
+
"swe-1-6-fast": 2e5,
|
|
46
|
+
// 经 devin 通道转售、且与厂商原生窗口不同的模型(catalog 枚举型 selector)。
|
|
47
|
+
"MODEL_GPT_5_2_LOW": 384e3,
|
|
48
|
+
"MODEL_GPT_5_2_MEDIUM": 384e3,
|
|
49
|
+
"MODEL_GPT_5_2_HIGH": 384e3,
|
|
50
|
+
"MODEL_GPT_5_2_XHIGH": 384e3
|
|
51
|
+
};
|
|
52
|
+
var devinChannelContextWindow = (model) => {
|
|
53
|
+
const raw = model?.trim();
|
|
54
|
+
if (!raw) return void 0;
|
|
55
|
+
return DEVIN_CHANNEL_CONTEXT_WINDOWS[raw];
|
|
56
|
+
};
|
|
57
|
+
var resolveAgentContextWindow = (agent) => (isDevinOAuthAgent(agent) ? devinChannelContextWindow(agent.model) : void 0) ?? // provider 透传给全局解析:平台托管通道(CF)与 Codex OAuth 等通道对同一 id
|
|
58
|
+
// 窗口不同,按通道取真值,不做全局取大/取小。
|
|
59
|
+
getModelContextWindow(agent.model ?? "", agent.provider);
|
|
60
|
+
|
|
28
61
|
// packages/agent-runtime/autoExecutionProfiles.ts
|
|
29
62
|
var createProfile = (input) => ({
|
|
30
63
|
id: input.id,
|
|
@@ -346,6 +379,8 @@ export {
|
|
|
346
379
|
resolveAutoExecutionProfile,
|
|
347
380
|
readCacheReadInputTokens,
|
|
348
381
|
readCacheCreationInputTokens,
|
|
382
|
+
devinChannelContextWindow,
|
|
383
|
+
resolveAgentContextWindow,
|
|
349
384
|
normalizeUsage,
|
|
350
385
|
asOptionalJsonRecord,
|
|
351
386
|
extractReferenceKeysFromMessage,
|