nolo-cli 0.241.0-alpha.1 → 0.243.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/README.md +3 -5
- package/{_executeModel-UCWDB72C.js → _executeModel-QLKALBXT.js} +75 -75
- package/{action-24MZYW2B.js → action-4V2UISXC.js} +9 -9
- package/{addContentAction-HEMCSSHT.js → addContentAction-5MZDMGI6.js} +14 -14
- package/{addDialogAgentAction-SQYDOXHA.js → addDialogAgentAction-ONVFHUOL.js} +17 -17
- package/{agentDeleteCommand-P7O3ACNJ.js → agentDeleteCommand-AUYYX4MU.js} +97 -97
- package/{agentEmailCommands-A5BRSYWK.js → agentEmailCommands-TZPXTTII.js} +98 -98
- package/{agentListCommands-LDRCOOMO.js → agentListCommands-7Z74VVSY.js} +198 -161
- package/{agentMachineCommands-AYL53KJV.js → agentMachineCommands-7JQ45EPE.js} +48 -46
- package/{agentProviderCommands-N5EA3ED2.js → agentProviderCommands-BQP2IK4C.js} +2 -2
- package/{agentRecordCommands-FICBZ57C.js → agentRecordCommands-OGOEBWLK.js} +95 -95
- package/{agentRunCommand-CTXQGDUM.js → agentRunCommand-ZKTHUSE5.js} +96 -96
- package/{agentRunControl-CO6BASZF.js → agentRunControl-CVCHDDDC.js} +10 -8
- package/{agentRuntimeLocal-5YN4D5WT.js → agentRuntimeLocal-ODDHRQ3M.js} +48 -41
- package/{agentSlice-DJ5D4DU4.js → agentSlice-ITLJEJAW.js} +14 -14
- package/{appDeleteCommands-B4E7N7M2.js → appDeleteCommands-QM6AWGQ5.js} +49 -47
- package/{appDeployCommands-E4DTXRRM.js → appDeployCommands-6XA2ONV6.js} +49 -47
- package/{appDeployStatusCommands-FCNHYHZM.js → appDeployStatusCommands-E75X542I.js} +49 -47
- package/{appGetCommands-4DXSQHUZ.js → appGetCommands-VKC2FHBH.js} +49 -47
- package/{appListCommands-2NN5E4F6.js → appListCommands-CICA4AQI.js} +49 -47
- package/{authCommand-47DR6GZT.js → authCommand-KVLFWXDS.js} +16 -16
- package/{authCommands-ZZ3L5IFM.js → authCommands-6AUYO65N.js} +3 -3
- package/{builtinSkillRegistry-AYWYQVA4.js → builtinSkillRegistry-LRVAQCPW.js} +8 -8
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
- package/{chromeOpsCommands-VZWAY2KR.js → chromeOpsCommands-TBPM6MR4.js} +1 -1
- package/{chunk-FPMPWNVQ.js → chunk-3IQ5GP5Y.js} +3 -3
- package/{chunk-NWWQY2J5.js → chunk-3S52WBJS.js} +7 -7
- package/chunk-4JFSDWTN.js +21 -0
- package/{chunk-C3GOEQJF.js → chunk-5PASH2MB.js} +2 -2
- package/{chunk-7Q7MKJZN.js → chunk-5UY2WQJ6.js} +323 -124
- package/{chunk-DVYAFH2Q.js → chunk-6PXFEPHL.js} +1 -1
- package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-H6CHPU6M.js → chunk-6ZQXUJGM.js} +4 -4
- package/{chunk-QGMIUVBT.js → chunk-76OIOVDN.js} +19 -19
- package/{chunk-KOIDLCAQ.js → chunk-7Y3L3IDA.js} +4 -4
- package/{chunk-DWWUVRB5.js → chunk-A4RK66EV.js} +1 -1
- package/{chunk-ZT3DYK5T.js → chunk-AERVJIZ2.js} +4 -4
- package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
- package/{chunk-TTEBPPUV.js → chunk-B5U64NZU.js} +1 -1
- package/{chunk-UKSKCDBG.js → chunk-BEJ243X3.js} +1 -1
- package/{chunk-TE2XH4KH.js → chunk-BZLF2LAP.js} +3 -3
- package/{chunk-ZVOL2MAJ.js → chunk-CO6E7YK6.js} +1 -1
- package/{chunk-NQQL2DKF.js → chunk-CQG24S2Q.js} +13 -6
- package/{chunk-25OCZXSX.js → chunk-CYAEPGKY.js} +23 -23
- package/{chunk-X37RQEA3.js → chunk-DEOPZE4S.js} +6 -6
- package/{chunk-B72AFRR2.js → chunk-DHRYMWMY.js} +4 -4
- package/{chunk-FXX6VFMV.js → chunk-DM323UA6.js} +84 -71
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-CT6GT2BG.js → chunk-DOCK6V3Z.js} +13 -13
- package/{chunk-ZTLTDUV6.js → chunk-FBVN3B5T.js} +4 -4
- package/{chunk-7NIBQ4HY.js → chunk-FDZ2GBWO.js} +30 -2
- package/{chunk-LMFMV5UC.js → chunk-FQFSLPNJ.js} +2 -2
- package/{chunk-ZQUCJBS4.js → chunk-G3SJCNHX.js} +2 -2
- package/{chunk-7U2TFUWW.js → chunk-GEKRDIMM.js} +5 -5
- package/{chunk-LT3DMEIB.js → chunk-GEY2UH2I.js} +17 -13
- package/{chunk-DLTMAXLF.js → chunk-GFBBHM53.js} +6 -6
- package/{chunk-OYHJ4TW7.js → chunk-HBO6UW3O.js} +4 -4
- package/{chunk-BDERPCJW.js → chunk-HKT7KOIX.js} +4 -4
- package/{chunk-3NFWMSTA.js → chunk-HTENYMO3.js} +5 -5
- package/{chunk-BWW6WRX6.js → chunk-HZN5VE32.js} +16 -13
- package/{chunk-G6OPRPXH.js → chunk-I27WRAPF.js} +37 -31
- package/{chunk-OJRTTERA.js → chunk-IBQHHCQE.js} +2 -1
- package/{chunk-LN4ZVSO7.js → chunk-JFGKVVLB.js} +8 -8
- package/{chunk-EIFSCI4C.js → chunk-JHHAIL34.js} +265 -102
- package/{chunk-JBWXPACD.js → chunk-JP2BH4NC.js} +1 -1
- package/{chunk-MM73SP4K.js → chunk-JV5FHHF7.js} +1 -1
- package/{chunk-NBB2EBQD.js → chunk-JVJ53XCH.js} +1 -1
- package/{chunk-Y5RN44VH.js → chunk-K3GJXP2N.js} +16 -16
- package/{chunk-OATIWAKN.js → chunk-KC2QVCI7.js} +1 -1
- package/{chunk-VP3BINY7.js → chunk-KMIDT4SW.js} +31 -1
- package/{chunk-IPRPYKBP.js → chunk-KOTJT7CY.js} +3 -3
- package/{chunk-4YFC3DWW.js → chunk-KQHEGELM.js} +1 -1
- package/{chunk-5TJE4QCL.js → chunk-KV5FDJOD.js} +2 -2
- package/{chunk-WRKMXMU7.js → chunk-KZAT2M2V.js} +12 -8
- package/{chunk-DGUUOHBF.js → chunk-LNFCR5IA.js} +4 -4
- package/{chunk-3V6JT6WN.js → chunk-MAURG3J4.js} +269 -112
- package/{chunk-WHO3LYDW.js → chunk-MEDPR36J.js} +2 -2
- package/{chunk-EW37CXCQ.js → chunk-NCJZUXRA.js} +6 -6
- package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
- package/{chunk-6D25V6CB.js → chunk-NJJK3PDA.js} +4 -4
- package/{chunk-U4VSBDO5.js → chunk-O5MEXHJW.js} +65 -46
- package/{chunk-YFRJAE3R.js → chunk-OGZE6BZG.js} +12 -4
- package/{chunk-KGIIZXPL.js → chunk-ORVM574D.js} +7 -7
- package/{chunk-YUZ2DAIH.js → chunk-OXFJWWOT.js} +1 -1
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-BIJTI5SX.js → chunk-Q25LWFGP.js} +2 -2
- package/{chunk-TFGGNRT6.js → chunk-QLUYDJST.js} +1 -1
- package/{chunk-IUXBKS5L.js → chunk-QXUVCIPB.js} +9 -9
- package/{chunk-XNEDFWT4.js → chunk-RRYDDDV7.js} +2 -2
- package/{chunk-24GVXSWK.js → chunk-RXCP7AIJ.js} +2 -2
- package/{chunk-UAOFSUG7.js → chunk-SEDJEJBH.js} +1 -1
- package/{chunk-LYDEFPQP.js → chunk-SF4GMDZO.js} +2 -2
- package/{chunk-CZLSTOVM.js → chunk-SGI2FIGK.js} +2 -2
- package/{chunk-FSIEHQNH.js → chunk-SMYUQDYW.js} +42 -5
- package/{chunk-7OTNBI77.js → chunk-T3CUXNV4.js} +1 -1
- package/{chunk-EBKHA63G.js → chunk-TKE4OJ4B.js} +179 -47
- package/{chunk-T444ENEC.js → chunk-TRN54YTP.js} +5 -5
- package/{chunk-2XMKW2OY.js → chunk-TT4JI6QR.js} +9 -9
- package/{chunk-I2OYPD3Y.js → chunk-U35UUM5K.js} +1 -0
- package/{chunk-6X3CS6NJ.js → chunk-V2COUWMQ.js} +8 -8
- package/{chunk-LCQJH7KN.js → chunk-VCU5GV42.js} +1 -1
- package/{chunk-ZBQ5UGYY.js → chunk-VF7F3ADU.js} +4 -4
- package/{chunk-HNWZJI4N.js → chunk-VNALJT32.js} +1 -1
- package/{chunk-TXFYIWAW.js → chunk-VTB6V4UF.js} +10 -10
- package/{chunk-QES2NCVM.js → chunk-VTDC64JY.js} +10 -10
- package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
- package/{chunk-YMCSR7PA.js → chunk-VVNP722P.js} +8 -8
- package/{chunk-N6EN3HK3.js → chunk-W4EAF272.js} +1 -1
- package/{chunk-X7IA2B7R.js → chunk-WBSJAIZP.js} +7 -3
- package/{chunk-LMZRXDWG.js → chunk-WDDZCQ6V.js} +3 -3
- package/{chunk-TXQVH72L.js → chunk-WIRH2ZLI.js} +3 -3
- package/{chunk-C646JEUV.js → chunk-WXZZQRAH.js} +4 -4
- package/{chunk-6BGJHJRN.js → chunk-X66UVBL3.js} +28 -28
- package/{chunk-UAHUJ4HH.js → chunk-XBWZ3SPO.js} +10 -37
- package/{chunk-4FE3IWRE.js → chunk-XRFUYUS7.js} +1 -1
- package/{chunk-XAFOLWLU.js → chunk-YDTLGWBU.js} +4 -4
- package/{chunk-FCAMGBLY.js → chunk-YDWMJOCW.js} +467 -279
- package/{chunk-GCVFX6ZL.js → chunk-YFDLRLW7.js} +3 -3
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/{chunk-DIBQXNGW.js → chunk-YO4DCVD2.js} +2 -2
- package/{chunk-NL7J2J5Z.js → chunk-YTYVSOY4.js} +3 -3
- package/{chunk-6XBOPKUH.js → chunk-Z5C2EICZ.js} +16 -16
- package/{chunk-MDVP5TLI.js → chunk-ZCFOIOZ6.js} +1 -1
- package/{chunk-F3FQPVHE.js → chunk-ZGHHY2PV.js} +2 -2
- package/{cliAgentConfigHelpers-RFR7ZCSK.js → cliAgentConfigHelpers-H3VR6JID.js} +9 -9
- package/{cliLocalAgentRecordReader-AJ4UKHKT.js → cliLocalAgentRecordReader-SQCTHOXC.js} +50 -44
- package/{commandRegistry-IHWZVV4G.js → commandRegistry-6P4GP7SY.js} +99 -91
- package/{contentThunks-YQRCBDKF.js → contentThunks-74IO72TZ.js} +34 -34
- package/{cooldownCommands-W67DE765.js → cooldownCommands-QL6DWGVU.js} +1 -1
- package/{createAgentAutomationAction-ERSDNR4R.js → createAgentAutomationAction-KRNQVWCA.js} +35 -35
- package/{createDialogAction-QXC7JZPE.js → createDialogAction-TWFKJNUJ.js} +35 -35
- package/{createPageAction-RLZ7776F.js → createPageAction-2O2RMNQH.js} +39 -39
- package/{dbSlice-7M2ESEUO.js → dbSlice-JBLCCYKC.js} +13 -13
- package/{deleteFile-WO6WSSNK.js → deleteFile-KV5VTKAT.js} +8 -8
- package/{dialogCommands-UIRO4QNN.js → dialogCommands-OILEFOMW.js} +51 -50
- package/{dialogNotifyCommand-VDUFYBZV.js → dialogNotifyCommand-KOKWBD5H.js} +11 -11
- package/{dialogSlice-A4U3C76D.js → dialogSlice-BZKPV4FB.js} +34 -34
- package/{docCreateCommands-MHPYTJWR.js → docCreateCommands-43U55CVY.js} +48 -46
- package/{docDeleteCommands-VYULMBAQ.js → docDeleteCommands-BFTJFJAV.js} +50 -48
- package/{docReadCommands-FV3GGZ7V.js → docReadCommands-PU3VWGCG.js} +48 -46
- package/{docStore-AWWI72FA.js → docStore-JTAXVIUB.js} +15 -15
- package/{docUpdateCommands-JNS3HX7F.js → docUpdateCommands-7JRDXTSJ.js} +48 -46
- package/fetchMessages-TQEUZD7H.js +2 -2
- package/{getPricing-U5AR7ZHS.js → getPricing-XZXEWFPY.js} +4 -4
- package/{handleSendMessageAction-WDJOUDNV.js → handleSendMessageAction-BCNWPO3U.js} +67 -67
- package/{hostCredentialCreate-H3FF2SAO.js → hostCredentialCreate-LKNAX2SV.js} +95 -95
- package/index.js +8 -8
- package/keys-RWF7UCB4.js +1 -1
- package/{localRuntimeAdapter-JAQQXZJP.js → localRuntimeAdapter-I5HVICYM.js} +103 -103
- package/{machineCommands-WYOFNB5I.js → machineCommands-PUOM4XEL.js} +222 -313
- package/{machineWsRunDispatch-Y7UIAZNM.js → machineWsRunDispatch-SOAAV7PQ.js} +94 -94
- package/{mcpLocalAuthorizeCommand-SCYEFLRK.js → mcpLocalAuthorizeCommand-TMBUP7FX.js} +14 -14
- package/{memberThunks-DIITWU4M.js → memberThunks-TWB77UHJ.js} +17 -17
- package/{models-CINY5UZR.js → models-RIKQRH6B.js} +2 -2
- package/package.json +1 -1
- package/{projectArchive-IZJXBW5N.js → projectArchive-3V5DIVKP.js} +39 -39
- package/{providerPresetApply-2QWXPJXZ.js → providerPresetApply-JBCXP3JP.js} +6 -6
- package/{providerRegistry-W4LCKK6V.js → providerRegistry-AMR7WUWQ.js} +6 -6
- package/{read-OBLJNMA2.js → read-CO6HMH5W.js} +8 -8
- package/{readDocTool-QQZ4DAER.js → readDocTool-P4MDVRNW.js} +1 -1
- package/{readlineWorkspace-WF3SWZGR.js → readlineWorkspace-NHVNU4DY.js} +491 -383
- package/{removeDialogAgentAction-HC3SOY3G.js → removeDialogAgentAction-D3R3QNPD.js} +19 -19
- package/{runAgentClientLoop-Z7V6TA3O.js → runAgentClientLoop-EWZ4UOXT.js} +74 -74
- package/{runtimeDoctorCommands-KX6YLPWV.js → runtimeDoctorCommands-EQS62LQV.js} +5 -5
- package/{secretCommands-STRAX275.js → secretCommands-36BCE3UE.js} +2 -2
- package/{setDialogExtraReferencesAction-DDZUQPY6.js → setDialogExtraReferencesAction-VORDLM57.js} +16 -16
- package/{setPrimaryDialogAgentAction-EB67OMAJ.js → setPrimaryDialogAgentAction-P5A65M32.js} +19 -19
- package/{settingThunks-TN6GFASU.js → settingThunks-JGBSDOC6.js} +24 -24
- package/{spaceCommands-HBYQUVJI.js → spaceCommands-SRICYK6S.js} +51 -49
- package/{streamAgentChatTurn-CM7QQXOS.js → streamAgentChatTurn-GHPLOX5L.js} +140 -125
- package/{switchDialogAgentAction-XY5TKQQE.js → switchDialogAgentAction-DMMWH5FG.js} +17 -17
- package/{tableCommands-MXFL3JIT.js → tableCommands-UHEA5QNL.js} +6 -6
- package/{toolApiClient-53YMJ2G6.js → toolApiClient-N5PYW2R3.js} +2 -2
- package/{tools-AT6H73LD.js → tools-ZSQGRWKI.js} +59 -59
- package/{tuiRestart-272SAYSK.js → tuiRestart-RATR636G.js} +9 -9
- package/{tuiSummaryLlmCaller-K2OVRVHG.js → tuiSummaryLlmCaller-J5HB4XVS.js} +14 -14
- package/{updateCommands-O3BOVVVN.js → updateCommands-5OYND6EF.js} +3 -3
- package/{updateDialogTitleAction-PGY4UPLH.js → updateDialogTitleAction-MEKAI3YO.js} +36 -36
- package/{usageCommand-SCF3ROV2.js → usageCommand-WW22APZ6.js} +2 -2
- package/{usageRebuildCommand-K5WPIBA5.js → usageRebuildCommand-B3S67JXH.js} +3 -3
- package/{windowsSelfUpdate-WJDUZLEO.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
- package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-ZCSQCHG3.js} +2 -2
- package/chunk-776CXKMX.js +0 -134
- package/chunk-TUSTONB3.js +0 -81
- package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
- package/{chunk-VMJVAJ6W.js → chunk-TB5KTLNB.js} +3 -3
- package/{dialogUsageCommand-SEC6UZWM.js → dialogUsageCommand-BZPKR3DW.js} +3 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
upsertSSREntity,
|
|
3
3
|
write
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VTB6V4UF.js";
|
|
5
5
|
import {
|
|
6
6
|
getRuntimeServerContext,
|
|
7
7
|
resolveRecordAuthority
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZGHHY2PV.js";
|
|
9
9
|
import {
|
|
10
10
|
TIMEOUT,
|
|
11
11
|
asyncThunkCreator,
|
|
12
12
|
buildCreateSlice,
|
|
13
13
|
noloRequest
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-T3CUXNV4.js";
|
|
15
15
|
import {
|
|
16
16
|
applyAgentSecretMigrationUpdates,
|
|
17
17
|
migrateAgentSecrets,
|
|
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
|
|
|
458
458
|
const overrides = {};
|
|
459
459
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
460
460
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
461
|
-
const { _executeModel } = await import("./_executeModel-
|
|
461
|
+
const { _executeModel } = await import("./_executeModel-QLKALBXT.js");
|
|
462
462
|
return _executeModel(
|
|
463
463
|
{
|
|
464
464
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
|
|
|
479
479
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
480
480
|
*/
|
|
481
481
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
482
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
482
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-EWZ4UOXT.js");
|
|
483
483
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
484
484
|
{
|
|
485
485
|
agentKey: args.agentKey,
|
|
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
|
|
|
495
495
|
* 聊天轮次流式 Agent 调用
|
|
496
496
|
*/
|
|
497
497
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
498
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
498
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-GHPLOX5L.js");
|
|
499
499
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
500
500
|
}),
|
|
501
501
|
/**
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
stablePromptCacheKey,
|
|
29
29
|
toOpenAiCompatibleMessages,
|
|
30
30
|
toResponsesTools
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CQG24S2Q.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveToolImagePolicy
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KOTJT7CY.js";
|
|
35
35
|
import {
|
|
36
36
|
isMeaningfulChatCompletionOutput,
|
|
37
37
|
isMeaningfulResponsesOutput
|
|
@@ -51,14 +51,14 @@ import {
|
|
|
51
51
|
resolvePlatformAuthToken,
|
|
52
52
|
resolvePlatformServerUrl,
|
|
53
53
|
resolveProviderTransportDecision
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-FQFSLPNJ.js";
|
|
55
55
|
import {
|
|
56
56
|
isRecord
|
|
57
57
|
} from "./chunk-KUG52IAP.js";
|
|
58
58
|
import {
|
|
59
59
|
NOLO_CLIENT_VERSION_HEADER,
|
|
60
60
|
isPlatformMimoProviderModel
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-O5MEXHJW.js";
|
|
62
62
|
|
|
63
63
|
// packages/ai/token/sseUsageExtract.ts
|
|
64
64
|
var TOKEN_FIELDS = [
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
canUsePlatformChatProvider,
|
|
11
11
|
parsePlatformChatCompletionResponse,
|
|
12
12
|
resolvePlatformChatProviderConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HBO6UW3O.js";
|
|
14
14
|
import {
|
|
15
15
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
16
16
|
classifySummaryError,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isTruncatedCompletion,
|
|
19
19
|
selectSummaryRoute,
|
|
20
20
|
summaryCompletionTokens
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-V2COUWMQ.js";
|
|
22
22
|
import {
|
|
23
23
|
isAbortError
|
|
24
24
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
resolvePlatformAuthToken,
|
|
30
30
|
resolvePlatformServerUrl
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FQFSLPNJ.js";
|
|
32
32
|
import {
|
|
33
33
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-O5MEXHJW.js";
|
|
35
35
|
|
|
36
36
|
// packages/core/accountSession/fetchAccountProfile.ts
|
|
37
37
|
async function fetchAccountProfile(input) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-R5GO3YZP.js";
|
|
8
8
|
import {
|
|
9
9
|
getCliLocale
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OGZE6BZG.js";
|
|
11
11
|
import {
|
|
12
12
|
ANTIGRAVITY_AUTH_URL,
|
|
13
13
|
ANTIGRAVITY_CALLBACK_PATH,
|
|
@@ -21,19 +21,19 @@ import {
|
|
|
21
21
|
getAntigravityUserAgent,
|
|
22
22
|
normalizeAntigravityTokenPayload,
|
|
23
23
|
refreshAntigravityToken
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JFGKVVLB.js";
|
|
25
25
|
import {
|
|
26
26
|
toErrorMessage
|
|
27
27
|
} from "./chunk-HNMXYYJR.js";
|
|
28
28
|
import {
|
|
29
29
|
asTrimmedString
|
|
30
30
|
} from "./chunk-3EUW3WEO.js";
|
|
31
|
-
import {
|
|
32
|
-
isRecord
|
|
33
|
-
} from "./chunk-KUG52IAP.js";
|
|
34
31
|
import {
|
|
35
32
|
asOptionalFiniteNumber
|
|
36
33
|
} from "./chunk-WWC7I6TA.js";
|
|
34
|
+
import {
|
|
35
|
+
isRecord
|
|
36
|
+
} from "./chunk-KUG52IAP.js";
|
|
37
37
|
|
|
38
38
|
// packages/cli/tui/wtAmbiguousWidth.ts
|
|
39
39
|
import fs from "node:fs";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
compareAgentSelection,
|
|
9
9
|
resolveModelTier
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QXUVCIPB.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROVIDER_RETRY_MS,
|
|
13
13
|
isAgentUnavailableNow,
|
|
@@ -21,23 +21,20 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
isOAuthApiKeyRef
|
|
23
23
|
} from "./chunk-UKZX3NHN.js";
|
|
24
|
-
import {
|
|
25
|
-
isOwnedAgentKey,
|
|
26
|
-
ownedAgentKey,
|
|
27
|
-
publicAgentKey
|
|
28
|
-
} from "./chunk-M2EJHDJP.js";
|
|
29
24
|
import {
|
|
30
25
|
createKey,
|
|
31
26
|
createTokenKey
|
|
32
27
|
} from "./chunk-SYTHYBMI.js";
|
|
33
28
|
import {
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
isOwnedAgentKey,
|
|
30
|
+
ownedAgentKey,
|
|
31
|
+
publicAgentKey
|
|
32
|
+
} from "./chunk-M2EJHDJP.js";
|
|
36
33
|
import {
|
|
37
34
|
isAntigravityOAuthAgent,
|
|
38
35
|
isSubscriptionEndpoint,
|
|
39
36
|
isSubscriptionOAuthCredential
|
|
40
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JFGKVVLB.js";
|
|
41
38
|
import {
|
|
42
39
|
asTrimmedLowercaseString
|
|
43
40
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -55,7 +52,15 @@ var GPT_SOL_RE = /^(?:openai\/)?gpt-\d+(?:\.\d+)*-sol(?:-[a-z0-9]+(?:[.-][a-z0-9
|
|
|
55
52
|
var GPT_ASTRA_RE = /^(?:openai\/)?gpt-\d+(?:\.\d+)*-astra(?:-[a-z0-9]+(?:[.-][a-z0-9]+)*)?$/i;
|
|
56
53
|
var KIMI_K3_MODELS = /* @__PURE__ */ new Set([
|
|
57
54
|
"kimi-k3",
|
|
58
|
-
"moonshotai/kimi-k3"
|
|
55
|
+
"moonshotai/kimi-k3",
|
|
56
|
+
// 2026-11-18:K3 由 K3.1 Pro 接替(目录换成 kimi-k3.1-pro),旗舰档门槛保持一致 —
|
|
57
|
+
// 不因换代把 199 档位约束漏掉。
|
|
58
|
+
"kimi-k3.1-pro",
|
|
59
|
+
"moonshotai/kimi-k3.1-pro",
|
|
60
|
+
// 旧 K2.6 经 PLATFORM_MODEL_ALIASES 执行同一 K3.1 Pro 上游与计费:档位判定按
|
|
61
|
+
// 请求 id 直查,不带这一条就会出现「换个旧 id 绕过 premium 门槛」。
|
|
62
|
+
"kimi-k2.6",
|
|
63
|
+
"moonshotai/kimi-k2.6"
|
|
59
64
|
]);
|
|
60
65
|
function classifyPremiumModel(model) {
|
|
61
66
|
const normalizedModel = asTrimmedLowercaseString(model);
|
|
@@ -85,7 +90,7 @@ function isGptProModel(provider, model) {
|
|
|
85
90
|
}
|
|
86
91
|
return classifyPremiumModel(model) !== void 0;
|
|
87
92
|
}
|
|
88
|
-
var GPT_PRO_BLOCKED_MESSAGE = `GPT Pro / Kimi K3 \u7B49\u9AD8\u7EA7\u6A21\u578B\u9700\u8981\u5148\u5F00\u901A ${GPT_PRO_REQUIRED_RECHARGE_AMOUNT} \u79EF\u5206\u6863\u4F4D\u3002`;
|
|
93
|
+
var GPT_PRO_BLOCKED_MESSAGE = `GPT Pro / Kimi K3.1 Pro \u7B49\u9AD8\u7EA7\u6A21\u578B\u9700\u8981\u5148\u5F00\u901A ${GPT_PRO_REQUIRED_RECHARGE_AMOUNT} \u79EF\u5206\u6863\u4F4D\u3002`;
|
|
89
94
|
function shouldBlockForGptPro(input) {
|
|
90
95
|
if (input?.premium !== true || input?.platformPaid !== true) {
|
|
91
96
|
return { blocked: false };
|
|
@@ -450,7 +455,6 @@ function toSafeAgentSummary(record2, options) {
|
|
|
450
455
|
const tools = Array.isArray(record2?.tools) ? record2.tools.filter((t) => typeof t === "string") : [];
|
|
451
456
|
const inputPrice = typeof record2?.inputPrice === "number" && Number.isFinite(record2.inputPrice) ? record2.inputPrice : null;
|
|
452
457
|
const outputPrice = typeof record2?.outputPrice === "number" && Number.isFinite(record2.outputPrice) ? record2.outputPrice : null;
|
|
453
|
-
const modelAbility = model ? getModelAbility(model) ?? null : null;
|
|
454
458
|
const favStatus = resolveFavoriteStatus(record2, options);
|
|
455
459
|
const isPublic = record2?.isPublic === true || record2?.isPublicFlag === true || record2?.publicRecordExists === true;
|
|
456
460
|
const updatedAt = safeTimestamp(record2?.updatedAt ?? record2?.createdAt ?? record2?.created);
|
|
@@ -516,7 +520,6 @@ function toSafeAgentSummary(record2, options) {
|
|
|
516
520
|
tools,
|
|
517
521
|
inputPrice,
|
|
518
522
|
outputPrice,
|
|
519
|
-
modelAbility,
|
|
520
523
|
isFavorite: favStatus.isFavorite,
|
|
521
524
|
favoritedAt: favStatus.favoritedAt,
|
|
522
525
|
isPublic,
|
|
@@ -3,35 +3,35 @@ import {
|
|
|
3
3
|
mergeReferences,
|
|
4
4
|
resolveReferenceAssets,
|
|
5
5
|
resolveToolsFromKeys
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-76OIOVDN.js";
|
|
7
7
|
import {
|
|
8
8
|
UI_CARD_ENVELOPE_MAX_BYTES,
|
|
9
9
|
getAllToolRuns,
|
|
10
10
|
parseUiCard,
|
|
11
11
|
uiCardFallback
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-K3GJXP2N.js";
|
|
13
13
|
import {
|
|
14
14
|
getDocState
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
resolveToolBaseUrl
|
|
18
|
-
} from "./chunk-4YFC3DWW.js";
|
|
15
|
+
} from "./chunk-NCJZUXRA.js";
|
|
19
16
|
import {
|
|
20
17
|
getTableState
|
|
21
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-X66UVBL3.js";
|
|
19
|
+
import {
|
|
20
|
+
selectAllMsgs
|
|
21
|
+
} from "./chunk-DM323UA6.js";
|
|
22
22
|
import {
|
|
23
23
|
getCurrentSpaceIdRaw,
|
|
24
24
|
getViewMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WXZZQRAH.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
27
|
+
selectById
|
|
28
|
+
} from "./chunk-VTB6V4UF.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
resolveToolBaseUrl
|
|
31
|
+
} from "./chunk-KQHEGELM.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
selectPendingFiles
|
|
34
|
+
} from "./chunk-U35UUM5K.js";
|
|
35
35
|
import {
|
|
36
36
|
getSessionSnapshotForState,
|
|
37
37
|
selectIdentityUserBalance,
|
|
@@ -43,12 +43,12 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
resolveAgentRecommendedSkillNames,
|
|
45
45
|
resolveAgentRequiredPackIds
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-JV5FHHF7.js";
|
|
47
47
|
import {
|
|
48
48
|
attachmentKind,
|
|
49
49
|
extractReferenceKeysFromMessage,
|
|
50
50
|
normalizeAttachmentPart
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-FBVN3B5T.js";
|
|
52
52
|
import {
|
|
53
53
|
asRecordOrEmpty
|
|
54
54
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -65,17 +65,17 @@ import {
|
|
|
65
65
|
expandEnabledPackPromptPatches,
|
|
66
66
|
expandEnabledPacks,
|
|
67
67
|
resolveEffectiveEnabledPacks
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-TKE4OJ4B.js";
|
|
69
|
+
import {
|
|
70
|
+
metaKey
|
|
71
|
+
} from "./chunk-SYTHYBMI.js";
|
|
69
72
|
import {
|
|
70
73
|
canonicalizeToolNames,
|
|
71
74
|
prioritizeToolNames
|
|
72
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-YLAHYLDQ.js";
|
|
73
76
|
import {
|
|
74
77
|
extractCustomId
|
|
75
78
|
} from "./chunk-M2EJHDJP.js";
|
|
76
|
-
import {
|
|
77
|
-
metaKey
|
|
78
|
-
} from "./chunk-SYTHYBMI.js";
|
|
79
79
|
import {
|
|
80
80
|
asNonEmptyStringArray
|
|
81
81
|
} from "./chunk-I42VC5KR.js";
|
|
@@ -84,20 +84,20 @@ import {
|
|
|
84
84
|
getModelPricing,
|
|
85
85
|
getPrices,
|
|
86
86
|
hasExplicitAgentPricing
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-LNFCR5IA.js";
|
|
88
88
|
import {
|
|
89
89
|
asTrimmedString
|
|
90
90
|
} from "./chunk-3EUW3WEO.js";
|
|
91
|
+
import {
|
|
92
|
+
asOptionalFiniteNumber
|
|
93
|
+
} from "./chunk-WWC7I6TA.js";
|
|
91
94
|
import {
|
|
92
95
|
getModelConfig,
|
|
93
96
|
getProviderByModelName
|
|
94
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-IBQHHCQE.js";
|
|
95
98
|
import {
|
|
96
99
|
isRecord
|
|
97
100
|
} from "./chunk-KUG52IAP.js";
|
|
98
|
-
import {
|
|
99
|
-
asOptionalFiniteNumber
|
|
100
|
-
} from "./chunk-WWC7I6TA.js";
|
|
101
101
|
import {
|
|
102
102
|
asOptionalTrimmedString
|
|
103
103
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -1757,12 +1757,17 @@ async function resolveTurnToolContext(input) {
|
|
|
1757
1757
|
|
|
1758
1758
|
// packages/app/utils/desktopActionGateChannel.ts
|
|
1759
1759
|
function targetForRunKind(kind, ctx = {}) {
|
|
1760
|
-
if (kind === "server-run"
|
|
1761
|
-
return {
|
|
1760
|
+
if (kind === "server-run") {
|
|
1761
|
+
return {
|
|
1762
|
+
kind: "web",
|
|
1763
|
+
server: ctx.server?.trim() ?? "",
|
|
1764
|
+
token: ctx.token ?? null
|
|
1765
|
+
};
|
|
1762
1766
|
}
|
|
1763
1767
|
return { kind: "desktop" };
|
|
1764
1768
|
}
|
|
1765
1769
|
var NEEDS_LOGIN_MESSAGE = "\u9700\u8981\u767B\u5F55\u540E\u624D\u80FD\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
|
|
1770
|
+
var MISSING_SERVER_MESSAGE = "\u672A\u914D\u7F6E\u670D\u52A1\u5668\u5730\u5740\uFF0C\u65E0\u6CD5\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
|
|
1766
1771
|
var gates = /* @__PURE__ */ new Map();
|
|
1767
1772
|
var targets = /* @__PURE__ */ new Map();
|
|
1768
1773
|
var failures = /* @__PURE__ */ new Map();
|
|
@@ -1784,12 +1789,13 @@ function notify() {
|
|
|
1784
1789
|
function pushGate(gate, target = { kind: "desktop" }, meta) {
|
|
1785
1790
|
if (!gate || typeof gate.id !== "string" || gate.id.length === 0) return;
|
|
1786
1791
|
failures.delete(gate.id);
|
|
1787
|
-
if (target.kind === "web" && !target.token) {
|
|
1788
|
-
|
|
1792
|
+
if (target.kind === "web" && (!target.token || !target.server.trim())) {
|
|
1793
|
+
const message = !target.token ? NEEDS_LOGIN_MESSAGE : MISSING_SERVER_MESSAGE;
|
|
1794
|
+
if (meta) failures.set(gate.id, { gateId: gate.id, meta: { ...meta, storage: "web" }, message });
|
|
1789
1795
|
gates.delete(gate.id);
|
|
1790
1796
|
targets.delete(gate.id);
|
|
1791
1797
|
metadata.delete(gate.id);
|
|
1792
|
-
errors.set(gate.id,
|
|
1798
|
+
errors.set(gate.id, message);
|
|
1793
1799
|
invalidateSnapshot();
|
|
1794
1800
|
notify();
|
|
1795
1801
|
return;
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
resolvePlatformEffectiveModel,
|
|
11
11
|
toCnyCredits,
|
|
12
12
|
zaiModels
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-O5MEXHJW.js";
|
|
14
14
|
|
|
15
15
|
// packages/integrations/qwen/models.ts
|
|
16
16
|
var qwenModels = [
|
|
@@ -3320,6 +3320,7 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
|
|
|
3320
3320
|
"glm-5.3",
|
|
3321
3321
|
"glm-5.2",
|
|
3322
3322
|
"kimi-k3",
|
|
3323
|
+
"kimi-k3.1-pro",
|
|
3323
3324
|
// Legacy OpenAI catalog ids — still support reasoning UI for agents that
|
|
3324
3325
|
// were never re-seeded after GPT-5.4 / GPT-5 were retired from the picker.
|
|
3325
3326
|
"gpt-5.4",
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
trimTrailingSlash
|
|
3
|
-
} from "./chunk-LMFMV5UC.js";
|
|
4
1
|
import {
|
|
5
2
|
toErrorMessage
|
|
6
3
|
} from "./chunk-HNMXYYJR.js";
|
|
4
|
+
import {
|
|
5
|
+
trimTrailingSlash
|
|
6
|
+
} from "./chunk-FQFSLPNJ.js";
|
|
7
|
+
import {
|
|
8
|
+
asOptionalFiniteNumber
|
|
9
|
+
} from "./chunk-WWC7I6TA.js";
|
|
7
10
|
import {
|
|
8
11
|
commandCodeModels,
|
|
9
12
|
kimiCodeModels,
|
|
@@ -14,10 +17,7 @@ import {
|
|
|
14
17
|
qwenTokenPlanModels,
|
|
15
18
|
stepfunModels,
|
|
16
19
|
stepfunStepPlanModels
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
asOptionalFiniteNumber
|
|
20
|
-
} from "./chunk-WWC7I6TA.js";
|
|
20
|
+
} from "./chunk-IBQHHCQE.js";
|
|
21
21
|
import {
|
|
22
22
|
asOptionalTrimmedString
|
|
23
23
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
|
|
27
27
|
PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE,
|
|
28
28
|
PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-O5MEXHJW.js";
|
|
30
30
|
import {
|
|
31
31
|
asTrimmedLowercaseString
|
|
32
32
|
} from "./chunk-QSJ3HFEF.js";
|