nolo-cli 0.69.0-alpha.3 → 0.70.0
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-DFUPTH24.js → _executeModel-YXI7ADJF.js} +30 -30
- package/{action-D22U6CTH.js → action-AOORTHTU.js} +4 -4
- package/{addContentAction-XAPUTGL4.js → addContentAction-E3S6F3IS.js} +3 -3
- package/{addDialogAgentAction-M7VLLBZM.js → addDialogAgentAction-EUBNJ5SS.js} +2 -2
- package/{agentDeleteCommand-VNTOS6BE.js → agentDeleteCommand-B5SKAPTR.js} +16 -16
- package/{agentEmailCommands-5SUJUECH.js → agentEmailCommands-LVUZQHBF.js} +35 -35
- package/{agentListCommands-RA5NNNII.js → agentListCommands-D2E7SFRQ.js} +18 -18
- package/{agentMachineCommands-Q3IGMXRD.js → agentMachineCommands-XNIBG4L2.js} +17 -17
- package/{agentRecordCommands-NSGMEUHK.js → agentRecordCommands-ID3URU2J.js} +34 -34
- package/{agentRunCommand-BO77DK64.js → agentRunCommand-KZMPUI53.js} +34 -34
- package/{agentRuntimeLocal-WDIBAXHF.js → agentRuntimeLocal-T47DU3IA.js} +16 -16
- package/{agentSlice-FT52UJXF.js → agentSlice-K5IE7FV3.js} +3 -3
- package/{appDeleteCommands-OVJIOW2J.js → appDeleteCommands-URD2F5YN.js} +16 -16
- package/{appDeployCommands-BF3I5ZYA.js → appDeployCommands-OACWEEWP.js} +16 -16
- package/{appDeployStatusCommands-EYEKXIWI.js → appDeployStatusCommands-TVYLIUEU.js} +16 -16
- package/{appGetCommands-HIGRIFZO.js → appGetCommands-ZWG2YEAE.js} +16 -16
- package/{appListCommands-BIP7SMU4.js → appListCommands-E3BMSQEY.js} +16 -16
- package/{authCommand-EVGFLAHO.js → authCommand-QHMBXOOH.js} +7 -7
- package/{chatQueueReduxAdapter-K5KB3KAK.js → chatQueueReduxAdapter-HL5A3L2W.js} +13 -13
- package/{chunk-3BIRZJCI.js → chunk-2L7EUBRN.js} +4 -4
- package/{chunk-DSRXPQWA.js → chunk-2XENHR3P.js} +4 -4
- package/{chunk-I5N43M6M.js → chunk-36G25COQ.js} +1 -1
- package/{chunk-E36HZARC.js → chunk-3E67YXGD.js} +2 -2
- package/{chunk-R2PJ4WKV.js → chunk-4ENGEYUY.js} +4 -4
- package/{chunk-YFADVSZE.js → chunk-4K6DB3GJ.js} +3 -3
- package/{chunk-5J7W2VWW.js → chunk-4MKPBCTN.js} +3 -2
- package/{chunk-UDQWGU7F.js → chunk-5TJQUZQ7.js} +1 -1
- package/{chunk-AJHEFRGJ.js → chunk-5YIL5WDC.js} +71 -220
- package/{chunk-NG4UT4K4.js → chunk-6IT5ECCC.js} +1 -1
- package/{chunk-GUR5O7MB.js → chunk-6RNOFHEM.js} +26 -26
- package/{chunk-BJCWNHVU.js → chunk-76JAMDUT.js} +2 -2
- package/{chunk-4EJ5QYB5.js → chunk-7JS3F5ZR.js} +1 -1
- package/{chunk-GBPZKFYK.js → chunk-BNATE77Z.js} +1 -1
- package/{chunk-LW2BWHRM.js → chunk-C2SHPJSS.js} +38 -28
- package/{chunk-ZZCJUXUI.js → chunk-IM5EETJX.js} +1 -1
- package/{chunk-3U3EA3BO.js → chunk-IOZR6BLM.js} +1 -1
- package/{chunk-ETVDF66U.js → chunk-JKAWV72Y.js} +14 -14
- package/{chunk-PZM3EENV.js → chunk-K647EQV3.js} +1 -1
- package/{chunk-ZLPA7K55.js → chunk-KRR3AG7T.js} +3 -3
- package/{chunk-WGBSEJ5K.js → chunk-LMEH4C4G.js} +3 -3
- package/{chunk-L77RUZVI.js → chunk-O2X6R45W.js} +3 -3
- package/{chunk-CLUJ44KW.js → chunk-OMHOVU2L.js} +1 -1
- package/{chunk-XWNRAIUL.js → chunk-OPNHMILE.js} +2 -2
- package/{chunk-VD2NV6C5.js → chunk-PADUIVUU.js} +3 -3
- package/{chunk-3QPYFHAH.js → chunk-RJ5HQDHL.js} +1 -1
- package/{chunk-PYXL2CJL.js → chunk-RSDPPLSM.js} +1 -1
- package/{chunk-LWFMRMP2.js → chunk-RXYIUZU5.js} +8 -8
- package/{chunk-EXMHJN7C.js → chunk-SHPRRU2W.js} +2 -2
- package/{chunk-FUZRQKU2.js → chunk-SKWZFK56.js} +4 -4
- package/{chunk-K7AG465Q.js → chunk-SQDGTW2T.js} +4 -2
- package/{chunk-UJ63UXGE.js → chunk-TQC77XVE.js} +1 -1
- package/{chunk-FPTQQSS6.js → chunk-UFTOGLCE.js} +1 -1
- package/{chunk-62NIW5JP.js → chunk-V3B6FQKC.js} +12 -12
- package/{chunk-CMH2SYHX.js → chunk-VLQRD7ZJ.js} +2 -2
- package/{chunk-ZW7BZH2L.js → chunk-VOEOMLKR.js} +9 -9
- package/{chunk-SZLVDREM.js → chunk-WMRPXIZY.js} +1 -1
- package/{chunk-PUOC4YRO.js → chunk-XTJTN3RW.js} +4 -0
- package/{chunk-KIS76A2P.js → chunk-Y7PULBIA.js} +1 -1
- package/{chunk-5CCXNZTD.js → chunk-Z3XXUE2E.js} +16 -16
- package/{chunk-HXAINXPQ.js → chunk-ZCVO2HLZ.js} +4 -4
- package/{chunk-PGSKWZCB.js → chunk-ZW22L5ES.js} +1 -1
- package/{contentThunks-EAWBISNO.js → contentThunks-XV3U3V2O.js} +14 -14
- package/{createAgentAutomationAction-QSJZAWUD.js → createAgentAutomationAction-UKKP6SAJ.js} +14 -14
- package/{createDialogAction-7OMDWUQ2.js → createDialogAction-WK6Y7DD7.js} +15 -15
- package/{createPageAction-5YRHFLR5.js → createPageAction-SLRDORVZ.js} +14 -14
- package/{dbSlice-GKGGFNOB.js → dbSlice-WL5T2LVF.js} +2 -2
- package/{dialogCommands-J6JW5543.js → dialogCommands-E5AAV7PB.js} +16 -16
- package/{dialogSlice-7S2IE53T.js → dialogSlice-2TSABNK5.js} +13 -13
- package/{docCreateCommands-OKBRNLDP.js → docCreateCommands-N7P5VBTU.js} +16 -16
- package/{docDeleteCommands-G7L466BF.js → docDeleteCommands-LZPPUYY6.js} +16 -16
- package/{docReadCommands-LR77KH6M.js → docReadCommands-UCQGMMBR.js} +16 -16
- package/{docStore-AETL5FRN.js → docStore-GX4LBBIB.js} +3 -3
- package/{docUpdateCommands-ZOICHED3.js → docUpdateCommands-H57EVVVE.js} +16 -16
- package/{getPricing-HRMSOF3E.js → getPricing-JRNHI5CV.js} +3 -3
- package/{handleSendMessageAction-2BZIEE2M.js → handleSendMessageAction-DYAB4HTU.js} +13 -13
- package/index.js +47 -47
- package/{machineCommands-XW5Y7WIZ.js → machineCommands-3Y3EHK2H.js} +34 -34
- package/{machineWsRunDispatch-W5CWYIMG.js → machineWsRunDispatch-RSVSJ4D7.js} +34 -34
- package/{memberThunks-KATHH3F4.js → memberThunks-OBDDU3NR.js} +3 -3
- package/{models-GS72DVJS.js → models-NBVTQACP.js} +2 -2
- package/package.json +1 -1
- package/{read-LC6HVYBN.js → read-OOTHDABU.js} +1 -1
- package/{readDocTool-N3ERJHHF.js → readDocTool-OU4QXJT6.js} +1 -1
- package/{readlineWorkspace-UPNB3WUE.js → readlineWorkspace-7FZA4JYG.js} +35 -35
- package/{removeDialogAgentAction-F5GPTALR.js → removeDialogAgentAction-BVU6E27N.js} +4 -4
- package/{runAgentClientLoop-CAS5IJWE.js → runAgentClientLoop-VZCX37ZP.js} +28 -28
- package/{setDialogExtraReferencesAction-AY4ZCF3A.js → setDialogExtraReferencesAction-AUKADSTQ.js} +3 -3
- package/{setPrimaryDialogAgentAction-HPMG7V3R.js → setPrimaryDialogAgentAction-HMHZWURC.js} +4 -4
- package/{settingSlice-OEJA4NQO.js → settingSlice-HIQRILF5.js} +3 -3
- package/{spaceCommands-FZXF2UST.js → spaceCommands-ANELRNRF.js} +16 -16
- package/{streamAgentChatTurn-3RGW4I7T.js → streamAgentChatTurn-QM364J6U.js} +32 -32
- package/{switchDialogAgentAction-HMDZTZ4I.js → switchDialogAgentAction-Y66ZTIGP.js} +2 -2
- package/{tools-YFW6QGIZ.js → tools-YNRN4HC7.js} +22 -22
- package/{tuiSummaryLlmCaller-J5BEPLW5.js → tuiSummaryLlmCaller-ZGATEM35.js} +10 -10
- package/{updateDialogTitleAction-QAUF6YRW.js → updateDialogTitleAction-OOYKI7LI.js} +14 -14
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-AGGIDPCZ.js";
|
|
14
14
|
import {
|
|
15
15
|
runLlm
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4ENGEYUY.js";
|
|
17
17
|
import {
|
|
18
18
|
cleanupCliSessionForDialog
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-76JAMDUT.js";
|
|
20
20
|
import {
|
|
21
21
|
getActiveDialogAgentId,
|
|
22
22
|
getDialogAgentIds,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
getModelInfo,
|
|
55
55
|
normalizeUsage,
|
|
56
56
|
resolveAutoExecutionProfile
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-2XENHR3P.js";
|
|
58
58
|
import {
|
|
59
59
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
60
60
|
buildCompactionMetricsFromPlan,
|
|
@@ -65,11 +65,11 @@ import {
|
|
|
65
65
|
normalizeAssistantContentBuffer,
|
|
66
66
|
planCompression,
|
|
67
67
|
serializeMessageContent
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-3E67YXGD.js";
|
|
69
69
|
import {
|
|
70
70
|
findModelConfig,
|
|
71
71
|
getModelConfig
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-TQC77XVE.js";
|
|
73
73
|
import {
|
|
74
74
|
toErrorMessage
|
|
75
75
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -80,14 +80,16 @@ import {
|
|
|
80
80
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
|
|
81
81
|
PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL,
|
|
82
82
|
PLATFORM_HOSTED_GLM_53_FLASH_BASETEN_PRICE,
|
|
83
|
+
PLATFORM_HOSTED_GLM_53_FLASH_MODEL,
|
|
83
84
|
getPlatformHostedDeepSeekV4Price,
|
|
85
|
+
isPlatformHostedClaudeModel,
|
|
84
86
|
isPlatformHostedDeepSeekV4Model,
|
|
85
87
|
isPlatformHostedImageModel,
|
|
86
88
|
isPlatformHostedOpenAIImageModel
|
|
87
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-5YIL5WDC.js";
|
|
88
90
|
import {
|
|
89
91
|
nolotusId
|
|
90
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-OPNHMILE.js";
|
|
91
93
|
import {
|
|
92
94
|
asRecordOrEmpty
|
|
93
95
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -97,7 +99,7 @@ import {
|
|
|
97
99
|
remove,
|
|
98
100
|
selectById,
|
|
99
101
|
write
|
|
100
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-4K6DB3GJ.js";
|
|
101
103
|
import {
|
|
102
104
|
buildDialogAgentListIndexDeleteOps,
|
|
103
105
|
createDialogMessageKeyAndId,
|
|
@@ -119,7 +121,7 @@ import {
|
|
|
119
121
|
builtinAgentCatalogEntryById,
|
|
120
122
|
builtinRuntimeFallbackEntries,
|
|
121
123
|
isBuiltinPlatformAgentKey
|
|
122
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-4MKPBCTN.js";
|
|
123
125
|
import {
|
|
124
126
|
extractCustomId,
|
|
125
127
|
extractUserId,
|
|
@@ -17086,7 +17088,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
17086
17088
|
runtimeOptions: args.runtimeOptions
|
|
17087
17089
|
});
|
|
17088
17090
|
if (agentKeyToUse) {
|
|
17089
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
17091
|
+
const { streamAgentChatTurn } = await import("./agentSlice-K5IE7FV3.js");
|
|
17090
17092
|
await dispatch(
|
|
17091
17093
|
streamAgentChatTurn({
|
|
17092
17094
|
agentKey: agentKeyToUse,
|
|
@@ -17395,20 +17397,15 @@ var calculateBasicCost = (model, usage, provider, externalPrice, billingServiceT
|
|
|
17395
17397
|
switch (provider) {
|
|
17396
17398
|
case "deepseek":
|
|
17397
17399
|
case "openai":
|
|
17400
|
+
case "deepinfra":
|
|
17398
17401
|
case "runinfra":
|
|
17399
17402
|
case "baseten":
|
|
17400
17403
|
return calculateCacheBasedCost(resolvedPrice, usage, externalPrice);
|
|
17401
|
-
// deepinfra:多数模型带上游缓存价(走 cache-hit 折扣);无缓存价的模型
|
|
17402
|
-
// (如 Claude 系,rate_per_input_token_cached=null)必须把 cache_read 按
|
|
17403
|
-
// input 全价计——calculateCacheBasedCost 在缺 inputCacheHit 时取 0 价,
|
|
17404
|
-
// 会把缓存 token 打成免费。与 nolo 组同一防御。
|
|
17405
|
-
case "deepinfra":
|
|
17406
|
-
return typeof resolvedPrice.inputCacheHit === "number" ? calculateCacheBasedCost(resolvedPrice, usage, externalPrice) : calculateSimpleCost(resolvedPrice, usage, externalPrice);
|
|
17407
|
-
// nolo: honor inputCacheHit only when the model defines it (K3 has
|
|
17408
17404
|
// without it keep simple full-price billing so cached tokens are not
|
|
17409
17405
|
// priced at 0 — but a platform-hosted model用于 agentic 循环时必须补上
|
|
17410
17406
|
// 这一项,否则每轮重放的上下文会被按 input 原价重复计费。
|
|
17411
17407
|
case "nolo":
|
|
17408
|
+
case "upstream-k3":
|
|
17412
17409
|
return typeof resolvedPrice.inputCacheHit === "number" ? calculateCacheBasedCost(resolvedPrice, usage, externalPrice) : calculateSimpleCost(resolvedPrice, usage, externalPrice);
|
|
17413
17410
|
case "anthropic":
|
|
17414
17411
|
return calculateAnthropicCost(resolvedPrice, usage, externalPrice);
|
|
@@ -17528,6 +17525,19 @@ var calculatePrice = ({
|
|
|
17528
17525
|
const pay3 = calculatePayDistribution(costs3, externalPrice, sharingLevel);
|
|
17529
17526
|
return { cost: sanitizeCost(costs3.charge), pay: pay3 };
|
|
17530
17527
|
}
|
|
17528
|
+
if (provider === "nolo" && isPlatformHostedClaudeModel(modelName)) {
|
|
17529
|
+
const compatModel = getModelConfig("nolo", PLATFORM_HOSTED_GLM_53_FLASH_MODEL);
|
|
17530
|
+
const costs3 = calculateBasicCost(
|
|
17531
|
+
compatModel,
|
|
17532
|
+
usage,
|
|
17533
|
+
provider,
|
|
17534
|
+
externalPrice,
|
|
17535
|
+
billingServiceTier,
|
|
17536
|
+
nowMs
|
|
17537
|
+
);
|
|
17538
|
+
const pay3 = calculatePayDistribution(costs3, externalPrice, sharingLevel);
|
|
17539
|
+
return { cost: sanitizeCost(costs3.charge), pay: pay3 };
|
|
17540
|
+
}
|
|
17531
17541
|
const zeroCostModel = {
|
|
17532
17542
|
name: modelName,
|
|
17533
17543
|
hasVision: false,
|
|
@@ -18219,7 +18229,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
18219
18229
|
}
|
|
18220
18230
|
if (isCurrentDialog) {
|
|
18221
18231
|
await thunkApi.dispatch(resetMsgs());
|
|
18222
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
18232
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-2TSABNK5.js");
|
|
18223
18233
|
dispatch(clearPendingAttachments2());
|
|
18224
18234
|
}
|
|
18225
18235
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -18227,39 +18237,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
18227
18237
|
|
|
18228
18238
|
// packages/chat/dialog/dialogSlice.ts
|
|
18229
18239
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
18230
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
18240
|
+
const { createDialogAction } = await import("./createDialogAction-WK6Y7DD7.js");
|
|
18231
18241
|
return createDialogAction(args, thunkApi);
|
|
18232
18242
|
};
|
|
18233
18243
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
18234
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
18244
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-UKKP6SAJ.js");
|
|
18235
18245
|
return createAgentAutomationAction(args, thunkApi);
|
|
18236
18246
|
};
|
|
18237
18247
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
18238
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
18248
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-OOYKI7LI.js");
|
|
18239
18249
|
return updateDialogTitleAction(args, thunkApi);
|
|
18240
18250
|
};
|
|
18241
18251
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
18242
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
18252
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-EUBNJ5SS.js");
|
|
18243
18253
|
return addDialogAgentAction(args, thunkApi);
|
|
18244
18254
|
};
|
|
18245
18255
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
18246
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
18256
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-BVU6E27N.js");
|
|
18247
18257
|
return removeDialogAgentAction(args, thunkApi);
|
|
18248
18258
|
};
|
|
18249
18259
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
18250
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
18260
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-HMHZWURC.js");
|
|
18251
18261
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
18252
18262
|
};
|
|
18253
18263
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
18254
|
-
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-
|
|
18264
|
+
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-Y66ZTIGP.js");
|
|
18255
18265
|
return switchDialogAgentAction(args, thunkApi);
|
|
18256
18266
|
};
|
|
18257
18267
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
18258
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
18268
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-AUKADSTQ.js");
|
|
18259
18269
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
18260
18270
|
};
|
|
18261
18271
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
18262
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
18272
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-DYAB4HTU.js");
|
|
18263
18273
|
return handleSendMessageAction(args, thunkApi);
|
|
18264
18274
|
};
|
|
18265
18275
|
function clearDialogState() {
|
|
@@ -18272,7 +18282,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
18272
18282
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
18273
18283
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
18274
18284
|
try {
|
|
18275
|
-
const { createDocState } = await import("./docStore-
|
|
18285
|
+
const { createDocState } = await import("./docStore-GX4LBBIB.js");
|
|
18276
18286
|
const pageKey = await createDocState(
|
|
18277
18287
|
{ slateData, title },
|
|
18278
18288
|
{ dispatch, getState }
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
resolveLocalUserId,
|
|
28
28
|
t,
|
|
29
29
|
toolLabel
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Z3XXUE2E.js";
|
|
31
31
|
import {
|
|
32
32
|
createRunActivityTracker,
|
|
33
33
|
popSingleQueueMessage,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
} from "./chunk-LTRXGFMS.js";
|
|
64
64
|
import {
|
|
65
65
|
formatAgentListCard
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-6RNOFHEM.js";
|
|
67
67
|
import {
|
|
68
68
|
isTransientFetchError
|
|
69
69
|
} from "./chunk-5XTOKQLW.js";
|
|
@@ -84,11 +84,11 @@ import {
|
|
|
84
84
|
chooseMemoryOwners,
|
|
85
85
|
loadMemoryCandidatesFromDb,
|
|
86
86
|
resolveAgentMemoryPolicy
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-SKWZFK56.js";
|
|
88
88
|
import {
|
|
89
89
|
API_REPORTED_COST_MULTIPLIER,
|
|
90
90
|
parseUiAskChoiceContent
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-C2SHPJSS.js";
|
|
92
92
|
import {
|
|
93
93
|
isOAuthApiKeyRef
|
|
94
94
|
} from "./chunk-YYLHWIW6.js";
|
|
@@ -111,10 +111,10 @@ import {
|
|
|
111
111
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
112
112
|
LOCAL_TURN_ABORTED_CODE,
|
|
113
113
|
readActionGate
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-RXYIUZU5.js";
|
|
115
115
|
import {
|
|
116
116
|
resolveAgentRuntimeConfigFromRecord
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-Y7PULBIA.js";
|
|
118
118
|
import {
|
|
119
119
|
createThinkParserState,
|
|
120
120
|
flushThinkParser,
|
|
@@ -122,10 +122,10 @@ import {
|
|
|
122
122
|
} from "./chunk-N7J63Q6C.js";
|
|
123
123
|
import {
|
|
124
124
|
isAntigravityOAuthAgent
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-ZW22L5ES.js";
|
|
126
126
|
import {
|
|
127
127
|
resolveClientVersion
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-VLQRD7ZJ.js";
|
|
129
129
|
import {
|
|
130
130
|
isQuotaExhaustedError,
|
|
131
131
|
isQuotaLimited403Body,
|
|
@@ -136,13 +136,13 @@ import {
|
|
|
136
136
|
DEFAULT_CONTEXT_WINDOW,
|
|
137
137
|
getModelContextWindow,
|
|
138
138
|
normalizeUsage
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-2XENHR3P.js";
|
|
140
140
|
import {
|
|
141
141
|
clipCompactText
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-3E67YXGD.js";
|
|
143
143
|
import {
|
|
144
144
|
findModelConfig
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-TQC77XVE.js";
|
|
146
146
|
import {
|
|
147
147
|
compactWhitespace
|
|
148
148
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
CLIENT_VERSION_TOO_OLD_CODE,
|
|
168
168
|
NOLO_CLIENT_VERSION_HEADER,
|
|
169
169
|
buildClientVersionUpgradeMessage
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-5YIL5WDC.js";
|
|
171
171
|
import {
|
|
172
172
|
parsePositiveFiniteNumberOrFallback
|
|
173
173
|
} from "./chunk-Y5GCAMGP.js";
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
BUILTIN_NOLO_AGENT_KEY,
|
|
182
182
|
BUILTIN_NOLO_AGENT_NAME,
|
|
183
183
|
builtinAgentCatalogEntryById
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-4MKPBCTN.js";
|
|
185
185
|
import {
|
|
186
186
|
parsePublicAgentId
|
|
187
187
|
} from "./chunk-BJIRLHJR.js";
|
|
@@ -5176,7 +5176,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
5176
5176
|
// packages/cli/client/agentRun.ts
|
|
5177
5177
|
import { ulid } from "ulid";
|
|
5178
5178
|
async function loadRunLocalAgentTurn() {
|
|
5179
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
5179
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-T47DU3IA.js");
|
|
5180
5180
|
return runLocalAgentTurn;
|
|
5181
5181
|
}
|
|
5182
5182
|
var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isImageUrlPart,
|
|
3
3
|
isOllamaEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XTJTN3RW.js";
|
|
5
5
|
import {
|
|
6
6
|
AGENT_SELECTION_PRIORITY_INSTRUCTIONS
|
|
7
7
|
} from "./chunk-V3ZKNK5D.js";
|
|
8
8
|
import {
|
|
9
9
|
getModelContextWindow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2XENHR3P.js";
|
|
11
11
|
import {
|
|
12
12
|
estimateTokenCount
|
|
13
13
|
} from "./chunk-PSCNXBYA.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
PLATFORM_HOSTED_KIMI_K3_MODEL,
|
|
19
19
|
isFireworksKimiModel,
|
|
20
20
|
isNoloHostedProvider
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5YIL5WDC.js";
|
|
22
22
|
import {
|
|
23
23
|
asTrimmedLowercaseString
|
|
24
24
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6RNOFHEM.js";
|
|
4
4
|
import {
|
|
5
5
|
i18n_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C2SHPJSS.js";
|
|
7
7
|
import {
|
|
8
8
|
canonicalizeToolNames
|
|
9
9
|
} from "./chunk-O6OSWFZQ.js";
|
|
10
10
|
import {
|
|
11
11
|
isNoloHostedProvider
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5YIL5WDC.js";
|
|
13
13
|
import {
|
|
14
14
|
asTrimmedLowercaseString
|
|
15
15
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z3XXUE2E.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6RNOFHEM.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RXYIUZU5.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
13
|
} from "./chunk-V3ZKNK5D.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
toTimestampMs,
|
|
14
14
|
upsert,
|
|
15
15
|
write
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4K6DB3GJ.js";
|
|
17
17
|
import {
|
|
18
18
|
createUserKey,
|
|
19
19
|
createUserPreferenceKey,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-QSJ3HFEF.js";
|
|
25
25
|
import {
|
|
26
26
|
BUILTIN_NOLO_AGENT_KEY
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4MKPBCTN.js";
|
|
28
28
|
import {
|
|
29
29
|
asyncThunkCreator,
|
|
30
30
|
buildCreateSlice,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
patch,
|
|
12
12
|
readAndWait
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4K6DB3GJ.js";
|
|
14
14
|
import {
|
|
15
15
|
asOptionalTrimmedString
|
|
16
16
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -326,7 +326,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
326
326
|
).unwrap();
|
|
327
327
|
if (dbSpaceId) {
|
|
328
328
|
try {
|
|
329
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
329
|
+
const { updateContentTitle } = await import("./contentThunks-XV3U3V2O.js");
|
|
330
330
|
await dispatch(
|
|
331
331
|
updateContentTitle({
|
|
332
332
|
spaceId: dbSpaceId,
|
|
@@ -365,7 +365,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
async function createDocState(args, thunkApi) {
|
|
368
|
-
const { createPageAction } = await import("./createPageAction-
|
|
368
|
+
const { createPageAction } = await import("./createPageAction-SLRDORVZ.js");
|
|
369
369
|
return createPageAction(args, thunkApi);
|
|
370
370
|
}
|
|
371
371
|
function subscribe(listener) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
readSseFrames,
|
|
9
9
|
streamSseDataValues,
|
|
10
10
|
throwIfChatCompletionStreamFailed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZCVO2HLZ.js";
|
|
12
12
|
import {
|
|
13
13
|
clipToolText,
|
|
14
14
|
hasImageInRuntimeMessages,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
resolveHistoricalToolContentCap,
|
|
17
17
|
resolveToolOutputProfile,
|
|
18
18
|
stripImagePartsFromMessages
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Y7PULBIA.js";
|
|
20
20
|
import {
|
|
21
21
|
downgradeUnparsableToolCalls,
|
|
22
22
|
hasParsableObjectArguments,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
requiresBareImageUrl,
|
|
40
40
|
resolveToolGuidedSections,
|
|
41
41
|
toBareImageUrlMessages
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KRR3AG7T.js";
|
|
43
43
|
import {
|
|
44
44
|
convertMessagesToResponsesInput,
|
|
45
45
|
extractReasoningFromResponseOutput,
|
|
@@ -49,16 +49,16 @@ import {
|
|
|
49
49
|
shouldStripReasoningContentForOutbound,
|
|
50
50
|
toOpenAiCompatibleMessages,
|
|
51
51
|
toResponsesTools
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-XTJTN3RW.js";
|
|
53
53
|
import {
|
|
54
54
|
getAntigravityUserAgent,
|
|
55
55
|
readAntigravityProjectId,
|
|
56
56
|
resolveAntigravityCloudCodeBaseUrl
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-ZW22L5ES.js";
|
|
58
58
|
import {
|
|
59
59
|
buildProviderAuthHeaders,
|
|
60
60
|
buildProviderExecutionPlan
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-VLQRD7ZJ.js";
|
|
62
62
|
import {
|
|
63
63
|
BRIDGE_STREAM_MAX_CHARS,
|
|
64
64
|
DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
resolveEmptyAssistantFallbackMessage,
|
|
87
87
|
resolveEmptyAssistantOutcome,
|
|
88
88
|
resolveTruncatedReasoningTailLog
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-2XENHR3P.js";
|
|
90
90
|
import {
|
|
91
91
|
COMPACTION_SUMMARY_SCHEMA_VERSION,
|
|
92
92
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
resolveCompressionTriggerRatio,
|
|
106
106
|
truncateToolOutputForContext,
|
|
107
107
|
withProviderCallTimingFields
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-3E67YXGD.js";
|
|
109
109
|
import {
|
|
110
110
|
estimateTokenCount
|
|
111
111
|
} from "./chunk-PSCNXBYA.js";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-AGGIDPCZ.js";
|
|
7
7
|
import {
|
|
8
8
|
getModelConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TQC77XVE.js";
|
|
10
10
|
import {
|
|
11
11
|
isPlatformHostedImageModel
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5YIL5WDC.js";
|
|
13
13
|
import {
|
|
14
14
|
asOptionalFiniteNumber
|
|
15
15
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2L7EUBRN.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareAndPersistMessage,
|
|
6
6
|
uiAskChoiceFunc,
|
|
7
7
|
uiAskChoiceFunctionSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-C2SHPJSS.js";
|
|
9
9
|
import {
|
|
10
10
|
require_date_fns
|
|
11
11
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
|
|
20
20
|
PLATFORM_HOSTED_KIMI_PROVIDER
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5YIL5WDC.js";
|
|
22
22
|
import {
|
|
23
23
|
read,
|
|
24
24
|
readAndWait,
|
|
25
25
|
removeCachedEntity,
|
|
26
26
|
upsertSSREntity,
|
|
27
27
|
write
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4K6DB3GJ.js";
|
|
29
29
|
import {
|
|
30
30
|
createAgentKey,
|
|
31
31
|
createDialogKey,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getModelConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TQC77XVE.js";
|
|
4
4
|
import {
|
|
5
5
|
isPlatformHostedDeepseekModel,
|
|
6
6
|
isPlatformHostedOpenAIImageModel,
|
|
7
7
|
resolvePlatformHostedRouting
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5YIL5WDC.js";
|
|
9
9
|
import {
|
|
10
10
|
asTrimmedLowercaseString
|
|
11
11
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -25,6 +25,8 @@ var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
|
|
|
25
25
|
qwen: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
26
26
|
// Moonshot AI(月之暗面)开放平台 OpenAI 兼容模式(按量计费)
|
|
27
27
|
moonshot: "https://api.moonshot.cn/v1/chat/completions",
|
|
28
|
+
// 平台托管 Kimi K3 的实际上游
|
|
29
|
+
crof: "https://crof.ai/v1/chat/completions",
|
|
28
30
|
// 平台托管 GLM 5.3 Flash 的实际上游(RunInfra 独家廉价快档)
|
|
29
31
|
runinfra: "https://api.runinfra.ai/v1/chat/completions"
|
|
30
32
|
// 无 nolo 默认上游:平台托管模型全部显式分流,未识别模型返回 undefined
|