nolo-cli 0.98.0-alpha.4 → 0.98.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/README.md +1 -1
- package/{_executeModel-HYZ4NXRJ.js → _executeModel-YEIQBSEM.js} +74 -67
- package/action-PNPQLJHG.js +20 -0
- package/{addContentAction-O7R66HEX.js → addContentAction-RBOUD7SJ.js} +12 -11
- package/{addDialogAgentAction-74OA7KYP.js → addDialogAgentAction-IODCR6TB.js} +18 -19
- package/{agentDeleteCommand-2YAHAZFJ.js → agentDeleteCommand-4PLHGGLA.js} +47 -42
- package/{agentEmailCommands-SLEQANTK.js → agentEmailCommands-NXWEK7QA.js} +97 -87
- package/agentListCommands-VRVS3BJL.js +742 -0
- package/{agentMachineCommands-KBI77S35.js → agentMachineCommands-DJH5VXOD.js} +48 -43
- package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-IRNZXVGE.js} +1 -1
- package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-B4T2DJ5H.js} +1 -1
- package/agentRecordCommands-SQCFY7TA.js +138 -0
- package/agentRunCommand-3HT2JILG.js +167 -0
- package/{agentRunControl-AVJR4JW4.js → agentRunControl-3HWA2LLQ.js} +2 -2
- package/{agentRuntimeLocal-VXZSDIGT.js → agentRuntimeLocal-7TFUAJON.js} +48 -39
- package/{agentSlice-ZOYISPZD.js → agentSlice-XTZIXRNX.js} +14 -13
- package/{appDeleteCommands-32MHLR4L.js → appDeleteCommands-EZLI7EIO.js} +46 -41
- package/{appDeployCommands-WCQOUSOB.js → appDeployCommands-QBWG5BGL.js} +46 -41
- package/{appDeployStatusCommands-6QKB7DYN.js → appDeployStatusCommands-ZLG46B3T.js} +46 -41
- package/{appGetCommands-SFAPP5PB.js → appGetCommands-P4D34JD2.js} +46 -41
- package/{appListCommands-EKUBDRUO.js → appListCommands-JMYHZBQH.js} +46 -41
- package/{authCommand-F4EFRRX6.js → authCommand-NHDLY3IB.js} +118 -24
- package/{authCommands-RGOGCPP6.js → authCommands-UDBJVSZU.js} +7 -5
- package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-MAR5LPAC.js} +10 -8
- package/{chromeCommands-FZYAU75D.js → chromeCommands-K27J4OVZ.js} +124 -28
- package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-IXRLN57H.js} +4 -3
- package/{chunk-6OZ36FXI.js → chunk-27ONFIEY.js} +22 -4
- package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
- package/{chunk-53HEEOTT.js → chunk-2WJ57RJA.js} +83 -16
- package/{chunk-OIVSQH2O.js → chunk-3BXNTXYI.js} +299 -5
- package/{chunk-2D66PZ54.js → chunk-3WHINT3R.js} +24 -77
- package/{chunk-ABQYVJBJ.js → chunk-46Y5D2BZ.js} +5 -5
- package/{chunk-EYAQT56M.js → chunk-4DPP773Q.js} +2 -2
- package/{chunk-H62HCIUP.js → chunk-4FFUDT6D.js} +24 -21
- package/chunk-4LCOCOR5.js +50 -0
- package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
- package/{chunk-IIVGDG4I.js → chunk-4YSOUKUR.js} +13 -7
- package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
- package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
- package/chunk-5J3PYNUP.js +255 -0
- package/chunk-5MMAK75Q.js +15 -0
- package/{chunk-JPGCXHNM.js → chunk-5OA5HMTL.js} +1 -1
- package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
- package/{chunk-3BMYXEUW.js → chunk-6O4IK4V2.js} +1 -1
- package/{chunk-GQBOR3G6.js → chunk-7KVZ5LDQ.js} +2 -2
- package/{chunk-DNCEALKX.js → chunk-7MMSLEPA.js} +22 -29
- package/{chunk-L5UXH3B2.js → chunk-7TKWCTSY.js} +22 -6
- package/chunk-A4SQRTZ6.js +15 -0
- package/{chunk-7S4YWN7P.js → chunk-ADBZWMFB.js} +4 -4
- package/chunk-AGIM7IMJ.js +147 -0
- package/{chunk-5UTFL4QJ.js → chunk-AOTBKDRK.js} +7 -0
- package/{chunk-Q554LLSI.js → chunk-AUDNYVRC.js} +1 -1
- package/chunk-BMQ2MJUK.js +153 -0
- package/{chunk-6YTOJY35.js → chunk-BZ7NPA6G.js} +35 -2
- package/chunk-CHOZJMJS.js +78 -0
- package/{chunk-ACTMNVHM.js → chunk-CYSYR67N.js} +1 -1
- package/{chunk-37NKTC3Q.js → chunk-CYYWWZV7.js} +1 -1
- package/{chunk-GBRG75BQ.js → chunk-D2MDMY2M.js} +1 -0
- package/chunk-DZ7R5V3Y.js +164 -0
- package/{chunk-3VNWWVKB.js → chunk-E3YWHWCR.js} +50 -18
- package/{chunk-V4MJDUSR.js → chunk-E73ON47R.js} +2 -2
- package/{chunk-KQ4ONNQD.js → chunk-EKPKW6RM.js} +155 -8
- package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
- package/{chunk-HJUYAD4A.js → chunk-FJ5BGMNM.js} +5 -5
- package/{chunk-2F7RJC6L.js → chunk-FOXQ7BAB.js} +1 -1
- package/{chunk-6IG4XSS6.js → chunk-FY7DCYW7.js} +88 -17
- package/{chunk-J4MOO56S.js → chunk-GARACBQB.js} +10 -2
- package/chunk-GMZLP5DV.js +82 -0
- package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
- package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
- package/{chunk-QOKAKDPE.js → chunk-HIM3FCLF.js} +0 -1
- package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
- package/{chunk-VLTIYV3X.js → chunk-HP57OUJO.js} +4 -4
- package/{chunk-G4EBXCWF.js → chunk-IM6ZMFRL.js} +550 -515
- package/{chunk-34BLIAHQ.js → chunk-JY3XHK42.js} +47 -67
- package/{chunk-GPCZ7UXG.js → chunk-K6U4NKFJ.js} +1 -1
- package/{chunk-6VFARHZW.js → chunk-KQQMCLDJ.js} +934 -1091
- package/{chunk-T37GTQYU.js → chunk-KVKYLJOA.js} +20 -11
- package/{chunk-4OEFYTWL.js → chunk-LKERWYPX.js} +67 -48
- package/{chunk-OEVAY4J6.js → chunk-LNVJHIGA.js} +18 -20
- package/{chunk-LS2ZANRJ.js → chunk-LOCNXNOU.js} +1 -1
- package/chunk-M6NBAHCD.js +7881 -0
- package/{chunk-PUOC4YRO.js → chunk-M7VLQGQP.js} +11 -0
- package/chunk-NFG4GW2E.js +13536 -0
- package/{chunk-BFU6C242.js → chunk-NMFV26UG.js} +1 -1
- package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
- package/chunk-NWENLDMM.js +42 -0
- package/{chunk-AEOE4Z6Q.js → chunk-NZWAO6LH.js} +13 -15
- package/chunk-OCZKATRC.js +129 -0
- package/chunk-OW4APERY.js +870 -0
- package/{chunk-KQHGZWSV.js → chunk-OXME3PEE.js} +1 -1
- package/{chunk-TOP2VXOR.js → chunk-PCF3QU5Q.js} +5 -5
- package/{chunk-WV42OMV7.js → chunk-PTDYOADJ.js} +8 -8
- package/{chunk-PKUGW3X6.js → chunk-SDUYSRTJ.js} +23 -28
- package/{chunk-5H7KJX7J.js → chunk-SEB5HAUU.js} +5 -5
- package/{chunk-6D6VBVEW.js → chunk-SNMQMOD2.js} +80 -14
- package/{chunk-ITM7D3UQ.js → chunk-TN3SIMJZ.js} +11 -9
- package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
- package/{chunk-Z77CRGTW.js → chunk-TVCAR26G.js} +1 -1
- package/chunk-TY3TIUJK.js +89 -0
- package/{chunk-I3TQJXQ7.js → chunk-U3C3IA32.js} +9 -2
- package/{chunk-RG6JBBX5.js → chunk-U7XXEI5R.js} +166 -13
- package/{chunk-UZGQNTVW.js → chunk-UA324D4O.js} +8 -6
- package/{chunk-V7BKTIF6.js → chunk-UFUTWXPR.js} +19 -17
- package/chunk-UJXNKP5V.js +760 -0
- package/{chunk-UKZDAFYT.js → chunk-UM4PH574.js} +6 -10
- package/{chunk-XDJFSBVV.js → chunk-UUMRZHVT.js} +24 -5
- package/{chunk-GEPUP7OO.js → chunk-UVKDJUTL.js} +3 -3
- package/{chunk-5ZYCLPXL.js → chunk-V4BX25AC.js} +873 -227
- package/{chunk-ZCYXJSTU.js → chunk-V5OWQOJZ.js} +19 -88
- package/{chunk-NA35QHCF.js → chunk-V7Y6KRAH.js} +1 -1
- package/{chunk-3DII57IT.js → chunk-VCAQFMVN.js} +1 -1
- package/{chunk-JRQFUXY7.js → chunk-VEYL5MO5.js} +99 -22
- package/chunk-VIWDGTDA.js +8 -0
- package/chunk-VJVNU77E.js +83 -0
- package/{chunk-UKWGR5SS.js → chunk-VY6VFGKR.js} +194 -1144
- package/{chunk-BP4XNZRM.js → chunk-W72ISAKC.js} +4 -4
- package/{chunk-DHDMC6FO.js → chunk-WCGC6S77.js} +14 -9
- package/{chunk-QDSINZM3.js → chunk-WJ3B6FX6.js} +1 -14
- package/{chunk-HVURBGF3.js → chunk-XFUBXRVI.js} +6 -6
- package/{chunk-O6OSWFZQ.js → chunk-XUWRURDF.js} +6 -0
- package/{chunk-Q67DOFOO.js → chunk-Y3PMXGLH.js} +2 -0
- package/{chunk-ETI2NYVF.js → chunk-YPOPJAKN.js} +4 -4
- package/{chunk-SH43IESU.js → chunk-YUNJN43V.js} +44 -9
- package/chunk-YV25TM3R.js +780 -0
- package/{chunk-PDIBG2WC.js → chunk-ZDXOUUPB.js} +67 -45
- package/{chunk-YRPASJCG.js → chunk-ZH7YLZC5.js} +10 -10
- package/chunk-ZRAU6T47.js +56 -0
- package/commandRegistry-YXINJIJK.js +833 -0
- package/{contentThunks-G55OKUFE.js → contentThunks-ZZVD2LBR.js} +36 -34
- package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
- package/{createAgentAutomationAction-D2J2O5GS.js → createAgentAutomationAction-B2TFWNDC.js} +38 -36
- package/createDialogAction-DVG2MYBF.js +69 -0
- package/{createPageAction-FHZBN7DJ.js → createPageAction-UXBWURHH.js} +45 -42
- package/{chunk-AJ3A3445.js → cursorProvider-YGGNMVWX.js} +2496 -9897
- package/{dbSlice-XVWBAGYN.js → dbSlice-Q25STFGJ.js} +11 -10
- package/{deleteFile-YG6QMJLU.js → deleteFile-AJ2EZMHT.js} +7 -6
- package/{dialogCommands-5J56DFWN.js → dialogCommands-243UITH3.js} +49 -45
- package/{dialogSlice-D4V3HURH.js → dialogSlice-B77ICP3A.js} +40 -33
- package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
- package/{docCreateCommands-KYI2DC2U.js → docCreateCommands-RT6AVFDR.js} +48 -43
- package/{docDeleteCommands-67REUSRY.js → docDeleteCommands-TMKHOR5F.js} +49 -44
- package/{docReadCommands-HOSVSBDJ.js → docReadCommands-KIDSKS6N.js} +47 -42
- package/{docStore-5LROPEEP.js → docStore-NBER5SWJ.js} +16 -12
- package/{docUpdateCommands-EMGCSMXY.js → docUpdateCommands-C6OCR767.js} +48 -43
- package/{fetchMessages-EIU7UFFK.js → fetchMessages-I5ICDDHM.js} +5 -5
- package/{getPricing-LUSEABA6.js → getPricing-NMMFT3YI.js} +4 -4
- package/{handleSendMessageAction-QBPDYSLZ.js → handleSendMessageAction-4DBKTZDW.js} +110 -86
- package/index.js +87 -884
- package/{localDialogRead-BTFJ4V2I.js → localDialogRead-ZHZ3KXDM.js} +2 -2
- package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-TU6OBC76.js} +9 -6
- package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-VKWVOPPI.js} +1 -1
- package/{machineCommands-4ISPVTPN.js → machineCommands-Y2BN2TCO.js} +91 -81
- package/machineWsRunDispatch-POB6IF6W.js +154 -0
- package/{memberThunks-QGFLFVCI.js → memberThunks-R75S3RWP.js} +20 -18
- package/{models-T3SG6MJ5.js → models-ZPU5EDF4.js} +2 -2
- package/oauthTokenStore-ITEB663N.js +23 -0
- package/package.json +1 -1
- package/pdf-U6KSUEZZ.js +26435 -0
- package/processSpawn-SOAV3FEV.js +11 -0
- package/profileConfig-ZGOFORWV.js +43 -0
- package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-TEBH7FDX.js} +7 -7
- package/{providerRegistry-757OWH3O.js → providerRegistry-CBJLNCET.js} +11 -7
- package/{read-COE3ZYR6.js → read-SRQMNO26.js} +7 -6
- package/{readDocTool-5USN4A6V.js → readDocTool-RC3JUNJ2.js} +5 -3
- package/{readlineWorkspace-JFADM567.js → readlineWorkspace-OLCGKYLQ.js} +2704 -2060
- package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-46XQV5Q7.js} +21 -25
- package/{runAgentClientLoop-JFFIFP7N.js → runAgentClientLoop-BFVCLCBO.js} +75 -69
- package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-PIVSBZRZ.js} +4 -4
- package/runtimeModeArgs-2Y7BALTO.js +31 -0
- package/{setDialogExtraReferencesAction-X4HCPNZL.js → setDialogExtraReferencesAction-J4V5ADQF.js} +15 -13
- package/{setPrimaryDialogAgentAction-4GMIQLOD.js → setPrimaryDialogAgentAction-UHHV2QZW.js} +22 -26
- package/{chunk-AFUORTY4.js → settingThunks-PPZZZOWN.js} +226 -940
- package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-ZBU76COE.js} +3 -3
- package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
- package/{spaceCommands-NKJVJCQQ.js → spaceCommands-WQBSC4VD.js} +51 -46
- package/{streamAgentChatTurn-HFVTDCFD.js → streamAgentChatTurn-M7V35IXY.js} +199 -104
- package/{switchDialogAgentAction-N52LRPA3.js → switchDialogAgentAction-A2TMVGAE.js} +18 -19
- package/{tableCommands-O6NWHFKV.js → tableCommands-6U4BMLRR.js} +10 -10
- package/{toolApiClient-QVJ6HDNN.js → toolApiClient-EJT6TMFG.js} +3 -3
- package/tools-4XIEV6FW.js +116 -0
- package/{tuiSummaryLlmCaller-WFRWERGK.js → tuiSummaryLlmCaller-Q65IBDGO.js} +24 -21
- package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
- package/{updateDialogTitleAction-PER2C6MR.js → updateDialogTitleAction-TFQFP7FE.js} +82 -44
- package/action-YVYQEAAV.js +0 -31
- package/agentListCommands-KMS675GZ.js +0 -406
- package/agentRecordCommands-IPPPUHG4.js +0 -128
- package/agentRunCommand-24XO4RDT.js +0 -155
- package/browser-image-compression-MFDTD7K6.js +0 -1763
- package/chatQueueReduxAdapter-PMAMSHG7.js +0 -186
- package/chunk-M76ECQRD.js +0 -13658
- package/chunk-MEYIRKDN.js +0 -8967
- package/chunk-OCSGDPAT.js +0 -18885
- package/chunk-Q5FJJ6XI.js +0 -103
- package/chunk-S7Z2HMCN.js +0 -25
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YPREESF4.js +0 -225
- package/createDialogAction-E2EVICIE.js +0 -65
- package/machineWsRunDispatch-L4MKXQAO.js +0 -144
- package/settingSlice-ZQZVUPKK.js +0 -204
- package/syncMapping-N6RGXGBW.js +0 -437
- package/tools-BBBCUOUZ.js +0 -110
- package/{chunk-VMFTFOWF.js → chunk-3AH7LNUB.js} +7 -7
- package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
- package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import {
|
|
2
|
+
noloAgentId
|
|
3
|
+
} from "./chunk-A4SQRTZ6.js";
|
|
4
|
+
import {
|
|
5
|
+
asTrimmedLowercaseString
|
|
6
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
7
|
+
import {
|
|
8
|
+
normalizeServerOrigin
|
|
9
|
+
} from "./chunk-CF7PE763.js";
|
|
10
|
+
|
|
11
|
+
// packages/app/theme/fontPreference.ts
|
|
12
|
+
var FONT_PRESET_ALIASES = {
|
|
13
|
+
system: "system",
|
|
14
|
+
default: "system",
|
|
15
|
+
hei: "hei",
|
|
16
|
+
heiti: "hei",
|
|
17
|
+
sans: "hei",
|
|
18
|
+
song: "song",
|
|
19
|
+
songti: "song",
|
|
20
|
+
serif: "song",
|
|
21
|
+
kai: "kai",
|
|
22
|
+
kaiti: "kai",
|
|
23
|
+
"kai-ti": "kai",
|
|
24
|
+
"fang-song": "fang-song",
|
|
25
|
+
fangsong: "fang-song",
|
|
26
|
+
"fang song": "fang-song"
|
|
27
|
+
};
|
|
28
|
+
var normalizeFontPreset = (value) => {
|
|
29
|
+
const normalized = asTrimmedLowercaseString(value);
|
|
30
|
+
return FONT_PRESET_ALIASES[normalized];
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// packages/ai/policy/types.ts
|
|
34
|
+
var DEFAULT_AGENT_BASE_POLICY = {
|
|
35
|
+
version: 1,
|
|
36
|
+
tone: {
|
|
37
|
+
preset: "default",
|
|
38
|
+
resolutionMode: "blend"
|
|
39
|
+
},
|
|
40
|
+
knowledgeCaptureMaxLevel: 4,
|
|
41
|
+
spaceContextMaxLevel: 4,
|
|
42
|
+
selfEvolutionMode: "knowledge_only"
|
|
43
|
+
};
|
|
44
|
+
var DEFAULT_USER_PREFERENCE_PROFILE = {
|
|
45
|
+
version: 1,
|
|
46
|
+
tone: {
|
|
47
|
+
preset: "default"
|
|
48
|
+
},
|
|
49
|
+
knowledgeCaptureLevel: 2,
|
|
50
|
+
spaceContextLevel: 3
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// packages/app/settings/settingTypes.ts
|
|
54
|
+
var SYSTEM_DEFAULT_AGENT_ID = "system-default";
|
|
55
|
+
|
|
56
|
+
// packages/app/settings/settingNormalizers.ts
|
|
57
|
+
var hasOwn = (target, key) => Object.prototype.hasOwnProperty.call(target, key);
|
|
58
|
+
var normalizeDefaultAgentIdSetting = (value) => {
|
|
59
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
60
|
+
return void 0;
|
|
61
|
+
}
|
|
62
|
+
return value === noloAgentId || value === SYSTEM_DEFAULT_AGENT_ID ? SYSTEM_DEFAULT_AGENT_ID : value;
|
|
63
|
+
};
|
|
64
|
+
var normalizeAuthorityHomeServerSetting = (value) => {
|
|
65
|
+
const normalized = normalizeServerOrigin(value);
|
|
66
|
+
return /^https?:\/\//i.test(normalized) ? normalized : null;
|
|
67
|
+
};
|
|
68
|
+
var normalizeTonePresetSetting = (value) => {
|
|
69
|
+
switch (value) {
|
|
70
|
+
case "professional":
|
|
71
|
+
case "friendly":
|
|
72
|
+
case "direct":
|
|
73
|
+
case "pragmatic":
|
|
74
|
+
case "default":
|
|
75
|
+
return value;
|
|
76
|
+
default:
|
|
77
|
+
return DEFAULT_USER_PREFERENCE_PROFILE.tone?.preset ?? "default";
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var normalizePolicyLevelSetting = (value, fallback) => {
|
|
81
|
+
const n = Number(value);
|
|
82
|
+
if (n === 1 || n === 2 || n === 3 || n === 4) {
|
|
83
|
+
return n;
|
|
84
|
+
}
|
|
85
|
+
return fallback;
|
|
86
|
+
};
|
|
87
|
+
var resolveDefaultAgentIdSetting = (value) => normalizeDefaultAgentIdSetting(value) ?? SYSTEM_DEFAULT_AGENT_ID;
|
|
88
|
+
var omitKeys = (record, keys) => {
|
|
89
|
+
const next = { ...record };
|
|
90
|
+
keys.forEach((key) => {
|
|
91
|
+
delete next[key];
|
|
92
|
+
});
|
|
93
|
+
return next;
|
|
94
|
+
};
|
|
95
|
+
var isRecordLike = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
96
|
+
var normalizeSystemBuiltinSkills = (value, defaults) => {
|
|
97
|
+
const base = isRecordLike(value) ? value : {};
|
|
98
|
+
const result = { ...defaults };
|
|
99
|
+
for (const key of Object.keys(base)) {
|
|
100
|
+
result[key] = Boolean(base[key]);
|
|
101
|
+
}
|
|
102
|
+
return result;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// packages/ai/policy/selfUpdateFields.ts
|
|
106
|
+
var AGENT_UPDATE_FIELD_NAMES = [
|
|
107
|
+
"name",
|
|
108
|
+
"handle",
|
|
109
|
+
"model",
|
|
110
|
+
"provider",
|
|
111
|
+
"prompt",
|
|
112
|
+
"introduction",
|
|
113
|
+
"greeting",
|
|
114
|
+
"isPublic",
|
|
115
|
+
"tags",
|
|
116
|
+
"tools",
|
|
117
|
+
"references",
|
|
118
|
+
"temperature",
|
|
119
|
+
"top_p",
|
|
120
|
+
"frequency_penalty",
|
|
121
|
+
"presence_penalty",
|
|
122
|
+
"max_tokens",
|
|
123
|
+
"reasoning_effort"
|
|
124
|
+
];
|
|
125
|
+
var PRIMARY_AUTO_APPROVE_SELF_UPDATE_FIELDS = [
|
|
126
|
+
"greeting",
|
|
127
|
+
"introduction",
|
|
128
|
+
"tags"
|
|
129
|
+
];
|
|
130
|
+
var DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS = [
|
|
131
|
+
...PRIMARY_AUTO_APPROVE_SELF_UPDATE_FIELDS
|
|
132
|
+
];
|
|
133
|
+
var VALID_AGENT_UPDATE_FIELDS = new Set(AGENT_UPDATE_FIELD_NAMES);
|
|
134
|
+
var normalizeAgentUpdateFieldList = (value, fallback = DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS) => {
|
|
135
|
+
if (!Array.isArray(value)) {
|
|
136
|
+
return [...fallback];
|
|
137
|
+
}
|
|
138
|
+
const normalized = Array.from(
|
|
139
|
+
new Set(
|
|
140
|
+
value.filter(
|
|
141
|
+
(item) => typeof item === "string" && VALID_AGENT_UPDATE_FIELDS.has(item)
|
|
142
|
+
)
|
|
143
|
+
)
|
|
144
|
+
);
|
|
145
|
+
return normalized;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export {
|
|
149
|
+
normalizeFontPreset,
|
|
150
|
+
DEFAULT_AGENT_BASE_POLICY,
|
|
151
|
+
DEFAULT_USER_PREFERENCE_PROFILE,
|
|
152
|
+
AGENT_UPDATE_FIELD_NAMES,
|
|
153
|
+
DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS,
|
|
154
|
+
normalizeAgentUpdateFieldList,
|
|
155
|
+
SYSTEM_DEFAULT_AGENT_ID,
|
|
156
|
+
hasOwn,
|
|
157
|
+
normalizeDefaultAgentIdSetting,
|
|
158
|
+
normalizeAuthorityHomeServerSetting,
|
|
159
|
+
normalizeTonePresetSetting,
|
|
160
|
+
normalizePolicyLevelSetting,
|
|
161
|
+
resolveDefaultAgentIdSetting,
|
|
162
|
+
omitKeys,
|
|
163
|
+
normalizeSystemBuiltinSkills
|
|
164
|
+
};
|
|
@@ -100,7 +100,17 @@ var DEFAULT_LABELS = {
|
|
|
100
100
|
runStopped: "Run stopped",
|
|
101
101
|
runFinished: "Run finished",
|
|
102
102
|
logTail: "Log tail:",
|
|
103
|
-
runs: (count) => `Runs (${count})
|
|
103
|
+
runs: (count) => `Runs (${count})`,
|
|
104
|
+
toolCount: (count) => `${count} tools`,
|
|
105
|
+
statusWord: (status) => status,
|
|
106
|
+
rows: {
|
|
107
|
+
agent: "agent ",
|
|
108
|
+
status: "status ",
|
|
109
|
+
tools: "tools ",
|
|
110
|
+
note: "note ",
|
|
111
|
+
error: "error ",
|
|
112
|
+
task: "task "
|
|
113
|
+
}
|
|
104
114
|
};
|
|
105
115
|
function resolveLabels(labels) {
|
|
106
116
|
return {
|
|
@@ -109,7 +119,10 @@ function resolveLabels(labels) {
|
|
|
109
119
|
runStopped: labels?.runStopped ?? DEFAULT_LABELS.runStopped,
|
|
110
120
|
runFinished: labels?.runFinished ?? DEFAULT_LABELS.runFinished,
|
|
111
121
|
logTail: labels?.logTail ?? DEFAULT_LABELS.logTail,
|
|
112
|
-
runs: labels?.runs ?? DEFAULT_LABELS.runs
|
|
122
|
+
runs: labels?.runs ?? DEFAULT_LABELS.runs,
|
|
123
|
+
toolCount: labels?.toolCount ?? DEFAULT_LABELS.toolCount,
|
|
124
|
+
statusWord: labels?.statusWord ?? DEFAULT_LABELS.statusWord,
|
|
125
|
+
rows: { ...DEFAULT_LABELS.rows, ...labels?.rows ?? {} }
|
|
113
126
|
};
|
|
114
127
|
}
|
|
115
128
|
function shortRunId(runId) {
|
|
@@ -165,21 +178,21 @@ function formatStartRunCard(agentName, status = "running", opts) {
|
|
|
165
178
|
const lines = [L.runStarted];
|
|
166
179
|
const identity = formatIdentityRow(agentName, opts?.runId);
|
|
167
180
|
if (identity) {
|
|
168
|
-
lines.push(` agent
|
|
181
|
+
lines.push(` ${L.rows.agent}${identity}`);
|
|
169
182
|
}
|
|
170
|
-
lines.push(` status
|
|
183
|
+
lines.push(` ${L.rows.status}${icon} ${L.statusWord(status)}`);
|
|
171
184
|
const task = opts?.task?.trim();
|
|
172
185
|
if (task) {
|
|
173
|
-
lines.push(` task
|
|
186
|
+
lines.push(` ${L.rows.task}${clipText(task, TASK_PREVIEW_MAX)}`);
|
|
174
187
|
}
|
|
175
188
|
return lines.join("\n");
|
|
176
189
|
}
|
|
177
190
|
var TASK_PREVIEW_MAX = 72;
|
|
178
191
|
var NOTE_PREVIEW_MAX = 72;
|
|
179
|
-
function formatProgressRow(toolCallCount, lastToolNames) {
|
|
192
|
+
function formatProgressRow(toolCallCount, lastToolNames, labels = DEFAULT_LABELS) {
|
|
180
193
|
const parts = [];
|
|
181
194
|
if (typeof toolCallCount === "number" && Number.isFinite(toolCallCount)) {
|
|
182
|
-
parts.push(
|
|
195
|
+
parts.push(labels.toolCount(toolCallCount));
|
|
183
196
|
}
|
|
184
197
|
if (lastToolNames && lastToolNames.length > 0) {
|
|
185
198
|
parts.push(lastToolNames.join(", "));
|
|
@@ -190,21 +203,21 @@ function formatStatusRunCard(agentName, status = "running", opts) {
|
|
|
190
203
|
const L = resolveLabels(opts?.labels);
|
|
191
204
|
const icon = getAgentRunStatusIcon(status);
|
|
192
205
|
const age = formatRunAge(opts?.timing, opts?.now);
|
|
193
|
-
const lines = [L.runStatus, ` ${icon} ${status}${age ? ` ${age}` : ""}`];
|
|
206
|
+
const lines = [L.runStatus, ` ${icon} ${L.statusWord(status)}${age ? ` ${age}` : ""}`];
|
|
194
207
|
const identity = formatIdentityRow(agentName, opts?.runId);
|
|
195
208
|
if (identity) {
|
|
196
|
-
lines.push(` agent
|
|
209
|
+
lines.push(` ${L.rows.agent}${identity}`);
|
|
197
210
|
}
|
|
198
|
-
const progress = formatProgressRow(opts?.toolCallCount, opts?.lastToolNames);
|
|
211
|
+
const progress = formatProgressRow(opts?.toolCallCount, opts?.lastToolNames, L);
|
|
199
212
|
if (progress) {
|
|
200
|
-
lines.push(` tools
|
|
213
|
+
lines.push(` ${L.rows.tools}${progress}`);
|
|
201
214
|
}
|
|
202
215
|
const note = opts?.lastAssistantText?.trim();
|
|
203
216
|
if (note) {
|
|
204
|
-
lines.push(` note
|
|
217
|
+
lines.push(` ${L.rows.note}${clipText(note, NOTE_PREVIEW_MAX)}`);
|
|
205
218
|
}
|
|
206
219
|
if (opts?.errorMessage?.trim()) {
|
|
207
|
-
lines.push(` error
|
|
220
|
+
lines.push(` ${L.rows.error}${opts.errorMessage.trim()}`);
|
|
208
221
|
}
|
|
209
222
|
if (shouldShowLogTail(status, opts?.includeLogTail, opts?.logLines)) {
|
|
210
223
|
lines.push("", L.logTail, ...opts.logLines.map((l) => ` ${l}`));
|
|
@@ -223,11 +236,11 @@ function formatFinishedRunCard(agentName, status, opts) {
|
|
|
223
236
|
const L = resolveLabels(opts?.labels);
|
|
224
237
|
const icon = getAgentRunStatusIcon(status);
|
|
225
238
|
const age = formatRunAge(opts?.timing, opts?.now);
|
|
226
|
-
const summary = [status, age, formatProgressRow(opts?.toolCallCount, opts?.lastToolNames)].filter(Boolean).join(" \xB7 ");
|
|
239
|
+
const summary = [L.statusWord(status), age, formatProgressRow(opts?.toolCallCount, opts?.lastToolNames, L)].filter(Boolean).join(" \xB7 ");
|
|
227
240
|
const lines = [L.runFinished, ` ${icon} ${summary}`];
|
|
228
241
|
const identity = formatIdentityRow(agentName, opts?.runId);
|
|
229
242
|
if (identity) {
|
|
230
|
-
lines.push(` agent
|
|
243
|
+
lines.push(` ${L.rows.agent}${identity}`);
|
|
231
244
|
}
|
|
232
245
|
const note = opts?.lastAssistantText?.trim();
|
|
233
246
|
if (note) {
|
|
@@ -245,7 +258,7 @@ function formatStopRunCard(status = "killed", labels) {
|
|
|
245
258
|
const L = resolveLabels(labels);
|
|
246
259
|
const icon = getAgentRunStatusIcon(status);
|
|
247
260
|
return `${L.runStopped}
|
|
248
|
-
${icon} ${status}`;
|
|
261
|
+
${icon} ${L.statusWord(status)}`;
|
|
249
262
|
}
|
|
250
263
|
function formatListRunsCard(runs, labels) {
|
|
251
264
|
const L = resolveLabels(labels);
|
|
@@ -260,7 +273,7 @@ function formatListRunsCard(runs, labels) {
|
|
|
260
273
|
function formatNotFoundRunCard(labels) {
|
|
261
274
|
const L = resolveLabels(labels);
|
|
262
275
|
return `${L.runStatus}
|
|
263
|
-
? not_found`;
|
|
276
|
+
? ${L.statusWord("not_found")}`;
|
|
264
277
|
}
|
|
265
278
|
var AGENT_RUN_TERMINAL_STATUSES = /* @__PURE__ */ new Set([
|
|
266
279
|
"done",
|
|
@@ -276,6 +289,24 @@ var AGENT_RUN_TERMINAL_STATUSES = /* @__PURE__ */ new Set([
|
|
|
276
289
|
function isAgentRunTerminalStatus(status) {
|
|
277
290
|
return typeof status === "string" && AGENT_RUN_TERMINAL_STATUSES.has(status);
|
|
278
291
|
}
|
|
292
|
+
function formatAgentListCard(agents, maxDisplay = 8) {
|
|
293
|
+
const total = agents.length;
|
|
294
|
+
const lines = [`Agents (${total})`];
|
|
295
|
+
const visible = agents.slice(0, maxDisplay);
|
|
296
|
+
for (const agent of visible) {
|
|
297
|
+
const star = agent.isFavorite ? "\u2605" : " ";
|
|
298
|
+
const own = agent.isOwned ? "\u25CE" : " ";
|
|
299
|
+
const name = agent.name || "(unnamed)";
|
|
300
|
+
const model = agent.model || "\u2014";
|
|
301
|
+
const source = agent.apiSource || agent.provider || agent.cliProvider || "\u2014";
|
|
302
|
+
const key = agent.agentKey || "(agentKey unavailable)";
|
|
303
|
+
lines.push(`${star}${own} ${name} ${model} ${source} ${key}`);
|
|
304
|
+
}
|
|
305
|
+
if (total > maxDisplay) {
|
|
306
|
+
lines.push(`\u2026 +${total - maxDisplay} more`);
|
|
307
|
+
}
|
|
308
|
+
return lines.join("\n");
|
|
309
|
+
}
|
|
279
310
|
|
|
280
311
|
export {
|
|
281
312
|
buildDelegatedTaskContent,
|
|
@@ -295,5 +326,6 @@ export {
|
|
|
295
326
|
formatStopRunCard,
|
|
296
327
|
formatListRunsCard,
|
|
297
328
|
formatNotFoundRunCard,
|
|
298
|
-
isAgentRunTerminalStatus
|
|
329
|
+
isAgentRunTerminalStatus,
|
|
330
|
+
formatAgentListCard
|
|
299
331
|
};
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
patch,
|
|
6
6
|
read
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4FFUDT6D.js";
|
|
8
8
|
import {
|
|
9
9
|
DEVICE_LOCAL_OWNER_ID,
|
|
10
10
|
isDeviceLocalSpaceBody
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UJXNKP5V.js";
|
|
12
12
|
import {
|
|
13
13
|
selectIdentityUserId
|
|
14
14
|
} from "./chunk-SEJ5OS6F.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UA324D4O.js";
|
|
4
4
|
import {
|
|
5
5
|
kimiCodeModels,
|
|
6
6
|
moonshotModels,
|
|
@@ -9,13 +9,16 @@ import {
|
|
|
9
9
|
qwenTokenPlanModels,
|
|
10
10
|
stepfunModels,
|
|
11
11
|
stepfunStepPlanModels
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3BXNTXYI.js";
|
|
13
13
|
import {
|
|
14
14
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_OFF_PEAK_PRICE,
|
|
15
15
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
|
|
16
16
|
PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE,
|
|
17
17
|
PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y3PMXGLH.js";
|
|
19
|
+
import {
|
|
20
|
+
asTrimmedLowercaseString
|
|
21
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
19
22
|
|
|
20
23
|
// packages/integrations/commandcode/models.ts
|
|
21
24
|
var commandCodeModels = [
|
|
@@ -203,6 +206,60 @@ var deepseekModels = [
|
|
|
203
206
|
}
|
|
204
207
|
];
|
|
205
208
|
|
|
209
|
+
// packages/integrations/mistral/models.ts
|
|
210
|
+
var mistralModels = [
|
|
211
|
+
// ── Vibe 编码档(订阅主打,Vibe CLI 默认用最新档)──
|
|
212
|
+
{
|
|
213
|
+
name: "mistral-vibe-cli-latest",
|
|
214
|
+
displayName: "Mistral Vibe CLI",
|
|
215
|
+
hasVision: true,
|
|
216
|
+
contextWindow: 262144,
|
|
217
|
+
jsonOutput: true,
|
|
218
|
+
fnCall: true,
|
|
219
|
+
supportsTool: true,
|
|
220
|
+
price: { input: 0, output: 0 },
|
|
221
|
+
provider: "mistral",
|
|
222
|
+
description: "Mistral Vibe \u9ED8\u8BA4\u7F16\u7801\u6A21\u578B\uFF08\u8BA2\u9605\u6C60\u5185\uFF09\uFF0C\u9762\u5411 agentic coding\u3002"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "mistral-vibe-cli-fast",
|
|
226
|
+
displayName: "Mistral Vibe CLI Fast",
|
|
227
|
+
hasVision: true,
|
|
228
|
+
contextWindow: 262144,
|
|
229
|
+
jsonOutput: true,
|
|
230
|
+
fnCall: true,
|
|
231
|
+
supportsTool: true,
|
|
232
|
+
price: { input: 0, output: 0 },
|
|
233
|
+
provider: "mistral",
|
|
234
|
+
description: "Vibe \u7F16\u7801\u6863\u7684\u5FEB\u6863\uFF08\u8BA2\u9605\u6C60\u5185\uFF09\uFF0C\u4E0E latest \u540C\u4E3A 262k \u4E0A\u4E0B\u6587\u7684\u7F16\u7801\u6863\u3002"
|
|
235
|
+
},
|
|
236
|
+
// ── 通用档 ──
|
|
237
|
+
{
|
|
238
|
+
name: "mistral-medium-3.5",
|
|
239
|
+
displayName: "Mistral Medium 3.5",
|
|
240
|
+
hasVision: true,
|
|
241
|
+
contextWindow: 262144,
|
|
242
|
+
jsonOutput: true,
|
|
243
|
+
fnCall: true,
|
|
244
|
+
supportsTool: true,
|
|
245
|
+
price: { input: 0, output: 0 },
|
|
246
|
+
provider: "mistral",
|
|
247
|
+
description: "Mistral \u4E2D\u6863\u901A\u7528\u6A21\u578B\uFF08\u8BA2\u9605\u6C60\u5185\uFF09\uFF0C\u591A\u6A21\u6001\uFF0C\u9002\u5408\u65E5\u5E38\u95EE\u7B54\u4E0E\u8F7B\u91CF\u7F16\u7801\u3002"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: "mistral-large-latest",
|
|
251
|
+
displayName: "Mistral Large (latest)",
|
|
252
|
+
hasVision: true,
|
|
253
|
+
contextWindow: 262144,
|
|
254
|
+
jsonOutput: true,
|
|
255
|
+
fnCall: true,
|
|
256
|
+
supportsTool: true,
|
|
257
|
+
price: { input: 0, output: 0 },
|
|
258
|
+
provider: "mistral",
|
|
259
|
+
description: "Mistral \u65D7\u8230\u6863\uFF08\u8BA2\u9605\u6C60\u5185\uFF09\uFF0C\u8BA2\u9605\u989D\u5EA6\u6D88\u8017\u6700\u5FEB\uFF0C\u9002\u5408\u96BE\u9898\u515C\u5E95\u3002"
|
|
260
|
+
}
|
|
261
|
+
];
|
|
262
|
+
|
|
206
263
|
// packages/ai/agent/providerRegistry.ts
|
|
207
264
|
var QWEN_MODEL_OPTIONS = qwenModels.map((m, i) => ({
|
|
208
265
|
id: m.name,
|
|
@@ -267,6 +324,23 @@ var STEPFUN_STEP_PLAN_MODEL_OPTIONS = stepfunStepPlanModels.map((m, i) => ({
|
|
|
267
324
|
hasVision: m.hasVision,
|
|
268
325
|
...i === 0 ? { recommended: true } : {}
|
|
269
326
|
}));
|
|
327
|
+
var MISTRAL_MODEL_OPTIONS = mistralModels.map((m, i) => ({
|
|
328
|
+
id: m.name,
|
|
329
|
+
label: m.displayName ?? m.name,
|
|
330
|
+
hasVision: m.hasVision,
|
|
331
|
+
...i === 0 ? { recommended: true } : {}
|
|
332
|
+
}));
|
|
333
|
+
var TOGETHER_MODEL_OPTIONS = [
|
|
334
|
+
{
|
|
335
|
+
id: "meta-llama/Llama-3.3-70B-Instruct-Turbo",
|
|
336
|
+
label: "Llama 3.3 70B Instruct Turbo",
|
|
337
|
+
recommended: true
|
|
338
|
+
},
|
|
339
|
+
{ id: "deepseek-ai/DeepSeek-V4-Pro-0813", label: "DeepSeek V4 Pro" },
|
|
340
|
+
{ id: "Qwen/Qwen3.6-Plus", label: "Qwen3.6 Plus" },
|
|
341
|
+
{ id: "zai-org/GLM-5.2", label: "GLM-5.2" },
|
|
342
|
+
{ id: "openai/gpt-oss-120b", label: "GPT-OSS 120B" }
|
|
343
|
+
];
|
|
270
344
|
var SUBSCRIPTION_OAUTH_PROVIDERS = [
|
|
271
345
|
{
|
|
272
346
|
kind: "oauth",
|
|
@@ -279,6 +353,9 @@ var SUBSCRIPTION_OAUTH_PROVIDERS = [
|
|
|
279
353
|
defaultReasoningEffort: "medium",
|
|
280
354
|
modelOptions: [
|
|
281
355
|
{ id: "gpt-6-astra", label: "GPT-6 Astra", hasVision: true, recommended: true },
|
|
356
|
+
// GPT-6.1 Sol 已列入 Codex 订阅通道选型指南,但按账号灰度("when available
|
|
357
|
+
// to your account and client"),未开通的账号选它会 400,不影响其他选项。
|
|
358
|
+
{ id: "gpt-6.1-sol", label: "GPT-6.1 Sol", hasVision: true },
|
|
282
359
|
{ id: "gpt-5.6-sol", label: "GPT-5.6 Sol", hasVision: true },
|
|
283
360
|
{ id: "gpt-5.6-terra", label: "GPT-5.6 Terra", hasVision: true },
|
|
284
361
|
{ id: "gpt-5.6-luna", label: "GPT-5.6 Luna", hasVision: true }
|
|
@@ -324,11 +401,13 @@ var SUBSCRIPTION_OAUTH_PROVIDERS = [
|
|
|
324
401
|
description: "Anthropic Subscription",
|
|
325
402
|
apiKeyRef: "claude",
|
|
326
403
|
provider: "anthropic",
|
|
327
|
-
defaultModel: "claude-sonnet-5",
|
|
404
|
+
defaultModel: "claude-sonnet-5-5",
|
|
328
405
|
defaultReasoningEffort: "high",
|
|
329
406
|
modelOptions: [
|
|
407
|
+
{ id: "claude-opus-5-5", label: "Claude Opus 5.5", hasVision: true, recommended: true },
|
|
408
|
+
{ id: "claude-sonnet-5-5", label: "Claude Sonnet 5.5", hasVision: true },
|
|
330
409
|
{ id: "claude-sonnet-5", label: "Claude Sonnet 5", hasVision: true },
|
|
331
|
-
{ id: "claude-opus-5", label: "Claude Opus 5", hasVision: true
|
|
410
|
+
{ id: "claude-opus-5", label: "Claude Opus 5", hasVision: true },
|
|
332
411
|
{ id: "claude-opus-4-8", label: "Claude Opus 4.8", hasVision: true },
|
|
333
412
|
{ id: "claude-fable-5", label: "Claude Fable 5", hasVision: true }
|
|
334
413
|
]
|
|
@@ -533,13 +612,31 @@ var CUSTOM_API_KEY_TEMPLATES = [
|
|
|
533
612
|
commercialKind: "subscription",
|
|
534
613
|
accessVariant: "token_plan_endpoint"
|
|
535
614
|
},
|
|
615
|
+
{
|
|
616
|
+
kind: "api_key_template",
|
|
617
|
+
id: "mistral-plan",
|
|
618
|
+
label: "Mistral \u8BA2\u9605 (Vibe/Pro)",
|
|
619
|
+
description: "Mistral \u5B98\u65B9\u8BA2\u9605\uFF08Free $10 / Pro $30 \u6708\u5EA6 API credits\uFF0C\u8DE8 Studio/API/Vibe \u5171\u4EAB\uFF1BKey \u4ECE chat.mistral.ai \u203A Code \u203A Extensions \u751F\u6210\uFF09",
|
|
620
|
+
provider: "mistral",
|
|
621
|
+
baseUrl: "https://api.mistral.ai/v1",
|
|
622
|
+
defaultModel: "mistral-vibe-cli-latest",
|
|
623
|
+
modelOptions: MISTRAL_MODEL_OPTIONS,
|
|
624
|
+
keyFormatHint: "\u5728 chat.mistral.ai \u203A Code \u203A Extensions \u203A Vibe API Key \u751F\u6210\uFF0845 \u4F4D\uFF0C\u5F62\u5982 xxxxx\u2026nb3A\uFF09\uFF1B\u4E5F\u53EF\u7528 Studio \u7684 API Key\u3002\u4E24\u8005\u90FD\u76F4\u63A5\u6709\u6548\u4E8E api.mistral.ai/v1\u3002",
|
|
625
|
+
commercialKind: "subscription",
|
|
626
|
+
accessVariant: "token_plan_endpoint"
|
|
627
|
+
},
|
|
536
628
|
{
|
|
537
629
|
kind: "api_key_template",
|
|
538
630
|
id: "openai-api",
|
|
539
631
|
label: "OpenAI API",
|
|
540
632
|
provider: "openai",
|
|
541
633
|
baseUrl: "https://api.openai.com/v1",
|
|
542
|
-
defaultModel: "gpt-6-
|
|
634
|
+
defaultModel: "gpt-6.1-sol",
|
|
635
|
+
modelOptions: [
|
|
636
|
+
{ id: "gpt-6.1-sol", label: "GPT-6.1 Sol", hasVision: true, recommended: true },
|
|
637
|
+
{ id: "gpt-6-astra", label: "GPT-6 Astra", hasVision: true },
|
|
638
|
+
{ id: "gpt-6-luna", label: "GPT-6 Luna", hasVision: true }
|
|
639
|
+
],
|
|
543
640
|
commercialKind: "api",
|
|
544
641
|
accessVariant: "metered_key"
|
|
545
642
|
},
|
|
@@ -549,7 +646,7 @@ var CUSTOM_API_KEY_TEMPLATES = [
|
|
|
549
646
|
label: "Anthropic API",
|
|
550
647
|
provider: "anthropic",
|
|
551
648
|
baseUrl: "https://api.anthropic.com",
|
|
552
|
-
defaultModel: "claude-sonnet-5",
|
|
649
|
+
defaultModel: "claude-sonnet-5-5",
|
|
553
650
|
apiKeyHeader: "x-api-key",
|
|
554
651
|
commercialKind: "api",
|
|
555
652
|
accessVariant: "metered_key"
|
|
@@ -575,6 +672,19 @@ var CUSTOM_API_KEY_TEMPLATES = [
|
|
|
575
672
|
commercialKind: "api",
|
|
576
673
|
accessVariant: "metered_key"
|
|
577
674
|
},
|
|
675
|
+
// anthropic/claude-sonnet-5、qwen/qwen3.8-27b),不维护易腐的静态清单。
|
|
676
|
+
{
|
|
677
|
+
kind: "api_key_template",
|
|
678
|
+
id: "openrouter-api",
|
|
679
|
+
label: "OpenRouter API \u7528\u91CF\u8BA1\u8D39",
|
|
680
|
+
description: "OpenRouter \u805A\u5408\u7F51\u5173\uFF08OpenAI \u517C\u5BB9\uFF0C\u4E00\u4E2A Key \u8BBF\u95EE\u591A\u5BB6\u6A21\u578B\uFF0C\u6309\u91CF\u8BA1\u8D39\uFF09",
|
|
681
|
+
provider: "openrouter",
|
|
682
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
683
|
+
defaultModel: "anthropic/claude-sonnet-5",
|
|
684
|
+
keyFormatHint: "\u5728 openrouter.ai/keys \u521B\u5EFA\uFF0C\u5F62\u5982 sk-or-\u2026",
|
|
685
|
+
commercialKind: "api",
|
|
686
|
+
accessVariant: "metered_key"
|
|
687
|
+
},
|
|
578
688
|
// DeepSeek 模型统一改走 nolo provider(Ollama Cloud,thinking=max 快 28-49%)。
|
|
579
689
|
// 现按用户选择回归:自带 Key 的 metered 通道与平台托管通道并存,互不影响。
|
|
580
690
|
{
|
|
@@ -649,6 +759,21 @@ var CUSTOM_API_KEY_TEMPLATES = [
|
|
|
649
759
|
defaultModel: "MiniMax-Text-01",
|
|
650
760
|
commercialKind: "api",
|
|
651
761
|
accessVariant: "metered_key"
|
|
762
|
+
},
|
|
763
|
+
// Together AI 平台:用户自带 Key 的 metered 通道(复用 OpenAI-compatible 通道,
|
|
764
|
+
// apiSource:"custom",不扣平台积分)。模型 ID 为 namespaced 全 ID,直传不 remap;
|
|
765
|
+
// OpenAI 兼容 base_url = https://api.together.ai/v1(官方兼容文档在案)。
|
|
766
|
+
{
|
|
767
|
+
kind: "api_key_template",
|
|
768
|
+
id: "together-api",
|
|
769
|
+
label: "Together AI API \u7528\u91CF\u8BA1\u8D39",
|
|
770
|
+
description: "Together AI\uFF08OpenAI \u517C\u5BB9\uFF0C\u6309\u91CF\u8BA1\u8D39\uFF09",
|
|
771
|
+
provider: "together",
|
|
772
|
+
baseUrl: "https://api.together.ai/v1",
|
|
773
|
+
defaultModel: "meta-llama/Llama-3.3-70B-Instruct-Turbo",
|
|
774
|
+
modelOptions: TOGETHER_MODEL_OPTIONS,
|
|
775
|
+
commercialKind: "api",
|
|
776
|
+
accessVariant: "metered_key"
|
|
652
777
|
}
|
|
653
778
|
];
|
|
654
779
|
var ALL_PROVIDER_REGISTRY = [
|
|
@@ -666,6 +791,26 @@ function isCustomApiKeyTemplate(id) {
|
|
|
666
791
|
if (!id) return false;
|
|
667
792
|
return CUSTOM_API_KEY_TEMPLATES.some((p) => p.id === id);
|
|
668
793
|
}
|
|
794
|
+
function normalizeEndpointUrl(url) {
|
|
795
|
+
return asTrimmedLowercaseString(url).replace(/\/+$/, "");
|
|
796
|
+
}
|
|
797
|
+
var SUBSCRIPTION_ENDPOINT_URLS = new Set(
|
|
798
|
+
CUSTOM_API_KEY_TEMPLATES.filter((t) => t.commercialKind === "subscription").map(
|
|
799
|
+
(t) => normalizeEndpointUrl(t.baseUrl)
|
|
800
|
+
)
|
|
801
|
+
);
|
|
802
|
+
var SUBSCRIPTION_OAUTH_APIKEY_REFS = new Set(
|
|
803
|
+
SUBSCRIPTION_OAUTH_PROVIDERS.map((p) => asTrimmedLowercaseString(p.apiKeyRef))
|
|
804
|
+
);
|
|
805
|
+
function isSubscriptionEndpoint(customProviderUrl) {
|
|
806
|
+
if (typeof customProviderUrl !== "string") return false;
|
|
807
|
+
const normalized = normalizeEndpointUrl(customProviderUrl);
|
|
808
|
+
return normalized.length > 0 && SUBSCRIPTION_ENDPOINT_URLS.has(normalized);
|
|
809
|
+
}
|
|
810
|
+
function isSubscriptionOAuthCredential(apiKeyRef) {
|
|
811
|
+
const ref = asTrimmedLowercaseString(apiKeyRef ?? "");
|
|
812
|
+
return ref.length > 0 && SUBSCRIPTION_OAUTH_APIKEY_REFS.has(ref);
|
|
813
|
+
}
|
|
669
814
|
|
|
670
815
|
export {
|
|
671
816
|
SUBSCRIPTION_OAUTH_PROVIDERS,
|
|
@@ -673,5 +818,7 @@ export {
|
|
|
673
818
|
ALL_PROVIDER_REGISTRY,
|
|
674
819
|
findProviderById,
|
|
675
820
|
isSubscriptionOAuthProvider,
|
|
676
|
-
isCustomApiKeyTemplate
|
|
821
|
+
isCustomApiKeyTemplate,
|
|
822
|
+
isSubscriptionEndpoint,
|
|
823
|
+
isSubscriptionOAuthCredential
|
|
677
824
|
};
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
} from "./chunk-UAD2WT54.js";
|
|
8
8
|
import {
|
|
9
9
|
toTimestampMs
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4FFUDT6D.js";
|
|
11
|
+
import {
|
|
12
|
+
isTombstoneRecord
|
|
13
|
+
} from "./chunk-D2MDMY2M.js";
|
|
11
14
|
import {
|
|
12
15
|
fetchFromServer,
|
|
13
16
|
getAllServers
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HIM3FCLF.js";
|
|
15
18
|
import {
|
|
16
19
|
selectIdentityToken,
|
|
17
20
|
selectIdentityUserId
|
|
18
21
|
} from "./chunk-SEJ5OS6F.js";
|
|
19
|
-
import {
|
|
20
|
-
isTombstoneRecord
|
|
21
|
-
} from "./chunk-GBRG75BQ.js";
|
|
22
22
|
import {
|
|
23
23
|
__toESM
|
|
24
24
|
} from "./chunk-4VNS5WPM.js";
|
|
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
async function getDefaultCliLocalRuntimeDb(options = {}) {
|
|
17
|
-
const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-
|
|
17
|
+
const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-TU6OBC76.js");
|
|
18
18
|
return getAuthorityBackedDb(options);
|
|
19
19
|
}
|
|
20
20
|
|