nolo-cli 0.206.1 → 0.207.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-U2XB3H4R.js → _executeModel-J7C6BIAS.js} +20 -20
- package/{agentDeleteCommand-NVXNQ2VQ.js → agentDeleteCommand-KMRFMAZZ.js} +36 -36
- package/{agentEmailCommands-VUJOYASY.js → agentEmailCommands-6QO4IX72.js} +35 -35
- package/{agentListCommands-KDRCBFUE.js → agentListCommands-CPI4EWX4.js} +27 -47
- package/{agentMachineCommands-TGZIF2SL.js → agentMachineCommands-HSSTZYNV.js} +16 -16
- package/{agentProviderCommands-SKW4L6NN.js → agentProviderCommands-EMKA6NAN.js} +2 -2
- package/{agentPullCommand-LGASFNH7.js → agentPullCommand-2JMJP5BS.js} +1 -1
- package/{agentRecordCommands-DM5UHNZM.js → agentRecordCommands-ZL5I4ODT.js} +32 -32
- package/{agentRunCommand-T6JGFAFZ.js → agentRunCommand-ROWADWSO.js} +33 -33
- package/{agentRunControl-GOH5VSQU.js → agentRunControl-45EM36PW.js} +3 -3
- package/{agentRuntimeLocal-N5S7NSJB.js → agentRuntimeLocal-MYHHTO4B.js} +12 -12
- package/{agentSlice-6XXGHTPP.js → agentSlice-OGOKIDXG.js} +1 -1
- package/{appDeleteCommands-VJNS4HSF.js → appDeleteCommands-DKINMBOK.js} +18 -18
- package/{appDeployCommands-HLZIEHUP.js → appDeployCommands-C3JX4GRQ.js} +18 -18
- package/{appDeployStatusCommands-PT64TF2T.js → appDeployStatusCommands-LVRMBYUP.js} +18 -18
- package/{appGetCommands-FM2ICAF7.js → appGetCommands-CSD32O6F.js} +18 -18
- package/{appListCommands-QVC3TKQD.js → appListCommands-YFEJLREL.js} +18 -18
- package/authCommand-22FYBEGY.js +69 -0
- package/{authCommands-MZUXPRYJ.js → authCommands-WK6E42L2.js} +2 -2
- package/{chromeOpsCommands-ECVS6CAO.js → chromeOpsCommands-HEN5AX2J.js} +1 -1
- package/{chunk-5ZBZHVMF.js → chunk-2GALTKXN.js} +36 -19
- package/{authCommand-NZC3H2EN.js → chunk-2NZUZIHB.js} +18 -43
- package/{chunk-JBWLZ3CB.js → chunk-2REKDWYL.js} +2 -2
- package/{chunk-DDVXTOFJ.js → chunk-36ZR37HK.js} +8 -8
- package/{chunk-PPCUXO3E.js → chunk-3RQVYR4B.js} +103 -0
- package/{chunk-YJ6UWOO5.js → chunk-3YYHTRF7.js} +2 -2
- package/{chunk-64K7WX26.js → chunk-4WVJLODK.js} +1 -1
- package/{chunk-5OJDQAJ2.js → chunk-5FMSOP2W.js} +2 -2
- package/{chunk-2Q3LOAFE.js → chunk-6HVBI6TI.js} +2 -2
- package/{chunk-U7HTU2S7.js → chunk-7AUQ3WCW.js} +1 -1
- package/{chunk-3UCYYSKN.js → chunk-7VTNQXNS.js} +29 -29
- package/{chunk-QSAUX2Q2.js → chunk-7WSZHITX.js} +2 -2
- package/{chunk-NUAQ3QHF.js → chunk-AFHKLTOB.js} +2 -2
- package/{chunk-LKV5K7PW.js → chunk-AJ7K2REY.js} +2 -2
- package/{chunk-P64WRQYV.js → chunk-AZMYUSVF.js} +1 -1
- package/{chunk-IAYMBPDZ.js → chunk-BRA5E6CI.js} +2 -2
- package/{chunk-5XNUQGLF.js → chunk-DLTR5MMT.js} +7 -7
- package/{chunk-4RERKW4Q.js → chunk-DTVCIIUZ.js} +5 -5
- package/{chunk-5BHQICF2.js → chunk-E32ZPIX6.js} +7 -6
- package/{chunk-73PRLLT6.js → chunk-EI77BHWD.js} +5 -5
- package/{chunk-WPOKOKZA.js → chunk-EPRYABUO.js} +1 -1
- package/{chunk-WC6TH54L.js → chunk-FSGQN6RC.js} +5 -5
- package/{chunk-7LJEJV4F.js → chunk-GMEAELJ6.js} +88 -1
- package/{chunk-YF4ZRVP3.js → chunk-HXHPAEAN.js} +1 -1
- package/{chunk-7DQSP7JU.js → chunk-J5JTMQIA.js} +1 -1
- package/{chunk-EVG6HQQ7.js → chunk-JBOUVTZX.js} +2 -2
- package/{chunk-D3DGBEYY.js → chunk-JUNMZOX6.js} +2 -2
- package/{chunk-7T5TLIY4.js → chunk-LKDF3ATR.js} +1 -1
- package/{chunk-LEJSZV6V.js → chunk-P2ZLUIW2.js} +243 -15
- package/{chunk-PK5TD4ST.js → chunk-PQTOTGMI.js} +1 -1
- package/{chunk-3ZUXGHFS.js → chunk-Q54YKNWP.js} +4 -80
- package/{chunk-LDPZBAQK.js → chunk-Q55XFXQ6.js} +2 -2
- package/{chunk-L5FZUSB6.js → chunk-QVUYL2TW.js} +3 -3
- package/{chunk-XNOILBHV.js → chunk-QWHAFJIJ.js} +1 -1
- package/{chunk-W45PCJHS.js → chunk-R56VAYY4.js} +1 -1
- package/{chunk-4NWJ3Z3G.js → chunk-RIGJPEBW.js} +1 -1
- package/{chunk-K7ZZPUNO.js → chunk-RTAVELOC.js} +12 -12
- package/{chunk-5MXA4LWL.js → chunk-U6QSCADP.js} +1 -1
- package/{chunk-ZCKXJTCW.js → chunk-UDHMQGMR.js} +10 -10
- package/{chunk-7NMNKOW5.js → chunk-UVXVWXYH.js} +2 -2
- package/{chunk-JASKVAYJ.js → chunk-UYY2CECP.js} +2 -2
- package/{chunk-6AMR3AE6.js → chunk-UZT65S6D.js} +12 -1
- package/{chunk-LTI5T3A6.js → chunk-VY3D2DSK.js} +1 -1
- package/{chunk-SEOM7GLZ.js → chunk-WADDWY7O.js} +1 -1
- package/{chunk-YZGNKHUM.js → chunk-WBSCOXFS.js} +1 -1
- package/{chunk-2PW2KOII.js → chunk-XBZDTBTK.js} +2 -2
- package/{chunk-ZRDUMMDG.js → chunk-XDLQYUBV.js} +9 -7
- package/{chunk-UGCQKKXW.js → chunk-XE4Q46FF.js} +1 -1
- package/{chunk-BAPZCPYU.js → chunk-XKH3DAKH.js} +1 -1
- package/{chunk-MNWKNN6V.js → chunk-XXYDK7L5.js} +1 -1
- package/{chunk-2GKUVGRT.js → chunk-XYKRRB5Z.js} +13 -5
- package/{chunk-Y3ASVJWL.js → chunk-ZG6RWZGY.js} +3 -3
- package/{chunk-AWVFQMOV.js → chunk-ZYKJBRZ3.js} +5 -1
- package/{commandRegistry-PASVNTAX.js → commandRegistry-3WR5YAN4.js} +70 -70
- package/{contentThunks-IXBWQP4P.js → contentThunks-4AJV2XJY.js} +4 -4
- package/{cooldownCommands-I4ETQ4AO.js → cooldownCommands-YL7H74YB.js} +3 -3
- package/{createAgentAutomationAction-7O7PFPDO.js → createAgentAutomationAction-YMY5N7IX.js} +4 -4
- package/{createDialogAction-DRHO4XCF.js → createDialogAction-RIMBMOTA.js} +5 -5
- package/{createPageAction-TFGJRDZX.js → createPageAction-MDNA4BXK.js} +4 -4
- package/{db-2QOTXYGH.js → db-HUCI5R4G.js} +2 -2
- package/{dialogCommands-RYIONJLY.js → dialogCommands-LH6ILXLQ.js} +21 -21
- package/{dialogSlice-CXIZ5UTI.js → dialogSlice-JWULZZKI.js} +3 -3
- package/{dialogUsageCommand-QTG6ILEJ.js → dialogUsageCommand-ZCPPHPJ5.js} +1 -1
- package/{docCreateCommands-KC2V2RPX.js → docCreateCommands-ZJV2YVBO.js} +16 -16
- package/{docDeleteCommands-S2SDQL2S.js → docDeleteCommands-5YMS6VX6.js} +17 -17
- package/{docReadCommands-3YGFKAOZ.js → docReadCommands-UCHOA64J.js} +16 -16
- package/{docStore-5AHNSAEI.js → docStore-IGB6VYJW.js} +1 -1
- package/{docUpdateCommands-PU6MQTLW.js → docUpdateCommands-R7DXVPBN.js} +16 -16
- package/{getPricing-3PQY3TGI.js → getPricing-RPAQXFXY.js} +1 -1
- package/{handleSendMessageAction-SO3PD3YA.js → handleSendMessageAction-2TN3FOIF.js} +12 -12
- package/index.js +7 -7
- package/{localDialogRead-FUXGZ57B.js → localDialogRead-5VCMQQZF.js} +1 -1
- package/{localRuntimeAdapter-5B7QODVK.js → localRuntimeAdapter-QLD7V33U.js} +29 -29
- package/{localRuntimeAuthority-NEGF3LRQ.js → localRuntimeAuthority-OYH4AE4G.js} +2 -2
- package/{localRuntimeDb-SDYFAEKA.js → localRuntimeDb-VBIMCWUC.js} +1 -1
- package/{machineCommands-U3DO4TFR.js → machineCommands-3TQNL2KD.js} +30 -30
- package/{machineWsRunDispatch-Y3IMIZO7.js → machineWsRunDispatch-6Z6KSDUJ.js} +30 -30
- package/package.json +1 -1
- package/{providerPresetApply-EQESXT6X.js → providerPresetApply-YKCAQCBR.js} +3 -3
- package/{providerRegistry-PZ56P43E.js → providerRegistry-QBBABMUW.js} +3 -3
- package/{readlineWorkspace-32IDD2MQ.js → readlineWorkspace-NHPGVRF6.js} +558 -139
- package/{removeDialogAgentAction-BDLO7UC2.js → removeDialogAgentAction-GZ56EZZI.js} +1 -1
- package/{runAgentClientLoop-ERVJ4LFY.js → runAgentClientLoop-P3ZALQBG.js} +18 -18
- package/{runtimeDoctorCommands-3VFVTGPI.js → runtimeDoctorCommands-3R3ZOZVS.js} +5 -5
- package/{secretCommands-RLIO3QK5.js → secretCommands-ZCZ4KVET.js} +1 -1
- package/{setPrimaryDialogAgentAction-PGBTR247.js → setPrimaryDialogAgentAction-JPTPBQH4.js} +1 -1
- package/{spaceCommands-4UWABUD7.js → spaceCommands-VZ4FGE6E.js} +15 -15
- package/{streamAgentChatTurn-2M4L7PF4.js → streamAgentChatTurn-TXTRBFOW.js} +22 -22
- package/{tools-GINHFGST.js → tools-72N432Y2.js} +13 -13
- package/{tuiSummaryLlmCaller-CEIZAKUV.js → tuiSummaryLlmCaller-WJBM4E2H.js} +6 -6
- package/{updateCommands-X23W5F73.js → updateCommands-Q6CYAEYJ.js} +3 -3
- package/{updateDialogTitleAction-4EIHKTKR.js → updateDialogTitleAction-EWTTA5A4.js} +4 -4
- package/{windowsSelfUpdate-SVJKL6VH.js → windowsSelfUpdate-XSQVF2GK.js} +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XKH3DAKH.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XBZDTBTK.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveCredentialGroup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QVUYL2TW.js";
|
|
11
11
|
import {
|
|
12
12
|
isTombstoneRecord
|
|
13
13
|
} from "./chunk-D2MDMY2M.js";
|
|
@@ -307,81 +307,6 @@ async function decorateAgentsWithPublicStatusAcrossServers(args) {
|
|
|
307
307
|
return args.agents;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
// packages/ai/agent/quotaSnapshot.ts
|
|
311
|
-
function findTightestQuotaWindow(quota, now = Date.now()) {
|
|
312
|
-
if (!quota || !Array.isArray(quota.windows) || quota.windows.length === 0) {
|
|
313
|
-
return void 0;
|
|
314
|
-
}
|
|
315
|
-
let best;
|
|
316
|
-
let bestScore = -Infinity;
|
|
317
|
-
for (const w of quota.windows) {
|
|
318
|
-
let score = 0;
|
|
319
|
-
if (typeof w.utilization === "number" && w.utilization >= 0) {
|
|
320
|
-
score = 500 + Math.min(w.utilization, 1) * 500;
|
|
321
|
-
} else if (typeof w.remaining === "number" && typeof w.limit === "number" && w.limit > 0) {
|
|
322
|
-
const util = Math.max(0, 1 - w.remaining / w.limit);
|
|
323
|
-
score = 500 + util * 500;
|
|
324
|
-
} else if (typeof w.resetAt === "number" && w.resetAt > now) {
|
|
325
|
-
score = 200;
|
|
326
|
-
} else if (typeof w.remaining === "number") {
|
|
327
|
-
score = 100;
|
|
328
|
-
}
|
|
329
|
-
if (score > bestScore) {
|
|
330
|
-
bestScore = score;
|
|
331
|
-
best = w;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
return best ?? quota.windows[0];
|
|
335
|
-
}
|
|
336
|
-
function formatQuotaSummary(quota, now = Date.now(), options) {
|
|
337
|
-
const compact = options?.compact === true;
|
|
338
|
-
const planText = formatPlanLabel(quota?.plan);
|
|
339
|
-
const planName = typeof quota?.plan?.name === "string" ? quota.plan.name.trim() : "";
|
|
340
|
-
const tightest = findTightestQuotaWindow(quota, now);
|
|
341
|
-
if (!tightest) return compact ? planName || void 0 : planText;
|
|
342
|
-
const parts = [];
|
|
343
|
-
if (typeof tightest.utilization === "number") {
|
|
344
|
-
const pct = Math.round(tightest.utilization * 100);
|
|
345
|
-
parts.push(`${pct}%\u5DF2\u7528`);
|
|
346
|
-
} else if (typeof tightest.remaining === "number") {
|
|
347
|
-
if (typeof tightest.limit === "number") {
|
|
348
|
-
parts.push(`${tightest.remaining}/${tightest.limit}${tightest.unit ? ` ${tightest.unit}` : ""}`);
|
|
349
|
-
} else {
|
|
350
|
-
parts.push(`\u4F59${tightest.remaining}${tightest.unit ? ` ${tightest.unit}` : ""}`);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
if (compact) {
|
|
354
|
-
const head = parts.length > 0 ? parts[0] : void 0;
|
|
355
|
-
return [planName || void 0, head].filter(Boolean).join(" \xB7 ") || void 0;
|
|
356
|
-
}
|
|
357
|
-
if (tightest.scope && tightest.scope !== "user" && tightest.scope !== "project" && tightest.scope !== tightest.unit) {
|
|
358
|
-
parts.push(tightest.scope);
|
|
359
|
-
}
|
|
360
|
-
if (typeof tightest.resetAt === "number" && tightest.resetAt > now) {
|
|
361
|
-
const diffSec = Math.round((tightest.resetAt - now) / 1e3);
|
|
362
|
-
if (diffSec < 60) {
|
|
363
|
-
parts.push(`${diffSec}s\u540E\u91CD\u7F6E`);
|
|
364
|
-
} else if (diffSec < 3600) {
|
|
365
|
-
parts.push(`${Math.round(diffSec / 60)}m\u540E\u91CD\u7F6E`);
|
|
366
|
-
} else if (diffSec < 86400) {
|
|
367
|
-
const hours = (diffSec / 3600).toFixed(1).replace(/\.0$/, "");
|
|
368
|
-
parts.push(`${hours}h\u540E\u91CD\u7F6E`);
|
|
369
|
-
} else {
|
|
370
|
-
const days = (diffSec / 86400).toFixed(1).replace(/\.0$/, "");
|
|
371
|
-
parts.push(`${days}d\u540E\u91CD\u7F6E`);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
const onlyScope = parts.length === 0 || parts.length === 1 && parts[0] === tightest.scope;
|
|
375
|
-
if (onlyScope) return planText;
|
|
376
|
-
return [planText, ...parts].filter(Boolean).join(" \xB7 ");
|
|
377
|
-
}
|
|
378
|
-
function formatPlanLabel(plan) {
|
|
379
|
-
const name = typeof plan?.name === "string" ? plan.name.trim() : "";
|
|
380
|
-
if (!name) return void 0;
|
|
381
|
-
const credits = typeof plan?.monthlyCreditsUsd === "number" && Number.isFinite(plan.monthlyCreditsUsd) && plan.monthlyCreditsUsd > 0 ? `\u6708\u5EA6\u989D\u5EA6 $${plan.monthlyCreditsUsd}` : void 0;
|
|
382
|
-
return [`${name} \u5957\u9910`, credits].filter(Boolean).join(" \xB7 ");
|
|
383
|
-
}
|
|
384
|
-
|
|
385
310
|
export {
|
|
386
311
|
normalizeListedAgent,
|
|
387
312
|
parseAgentListArgs,
|
|
@@ -390,6 +315,5 @@ export {
|
|
|
390
315
|
listRemoteAgents,
|
|
391
316
|
listRemoteAgentsAcrossServers,
|
|
392
317
|
listFavoriteAgentIdsAcrossServers,
|
|
393
|
-
decorateAgentsWithPublicStatusAcrossServers
|
|
394
|
-
formatQuotaSummary
|
|
318
|
+
decorateAgentsWithPublicStatusAcrossServers
|
|
395
319
|
};
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-UEILX4EV.js";
|
|
4
4
|
import {
|
|
5
5
|
compareAgentSelection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6HVBI6TI.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_PROVIDER_RETRY_MS,
|
|
9
9
|
isAgentUnavailableNow,
|
|
10
10
|
resolveAgentAvailability
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GMEAELJ6.js";
|
|
12
12
|
import {
|
|
13
13
|
isOAuthApiKeyRef
|
|
14
14
|
} from "./chunk-UKZX3NHN.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isAntigravityOAuthAgent,
|
|
22
22
|
isSubscriptionEndpoint,
|
|
23
23
|
isSubscriptionOAuthCredential
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HXHPAEAN.js";
|
|
25
25
|
import {
|
|
26
26
|
getModelAbility
|
|
27
27
|
} from "./chunk-T43B7LB2.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveDiscoveryScope,
|
|
7
7
|
resolvePaginationArgs,
|
|
8
8
|
toDiscoverySafeAgentSummary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QVUYL2TW.js";
|
|
10
10
|
import {
|
|
11
11
|
getUserDataItemTimestamp,
|
|
12
12
|
mergeAndDedupUserData
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
toolRunUpdated,
|
|
39
39
|
uiCardFallback,
|
|
40
40
|
waitForAbortableDelay
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-7WSZHITX.js";
|
|
42
42
|
import {
|
|
43
43
|
isGatewayHttpStatus
|
|
44
44
|
} from "./chunk-NF64D32W.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
} from "./chunk-I5PBXF7O.js";
|
|
56
56
|
import {
|
|
57
57
|
createDocState
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-BRA5E6CI.js";
|
|
59
59
|
import {
|
|
60
60
|
ToolApiError,
|
|
61
61
|
buildToolRequestHeaders,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-63W5N6P3.js";
|
|
80
80
|
import {
|
|
81
81
|
createDialogAction
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-AJ7K2REY.js";
|
|
83
83
|
import {
|
|
84
84
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
85
85
|
addContentToSpace,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
updateContentCategory,
|
|
97
97
|
updateContentTitle,
|
|
98
98
|
writeStoredCollapsedCategories
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-WADDWY7O.js";
|
|
100
100
|
import {
|
|
101
101
|
getCurrentSpaceId,
|
|
102
102
|
getCurrentSpaceIdRaw,
|
|
@@ -119,14 +119,14 @@ import {
|
|
|
119
119
|
selectMsgById,
|
|
120
120
|
uiAskChoiceFunc,
|
|
121
121
|
uiAskChoiceFunctionSchema
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-UDHMQGMR.js";
|
|
123
123
|
import {
|
|
124
124
|
createAgent,
|
|
125
125
|
deleteServerSyncedCredential,
|
|
126
126
|
runLlm,
|
|
127
127
|
streamAgentChatTurn,
|
|
128
128
|
updateAgent
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-ZG6RWZGY.js";
|
|
130
130
|
import {
|
|
131
131
|
buildMediaToolConfirmation,
|
|
132
132
|
normalizeMediaConfirmExecutionRevision
|
|
@@ -222,11 +222,11 @@ import {
|
|
|
222
222
|
resolveNoloDialogInput,
|
|
223
223
|
resolveReadOnlyToolConstraints,
|
|
224
224
|
verifyNoloDialogSubjectRefQuery
|
|
225
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-6HVBI6TI.js";
|
|
226
226
|
import {
|
|
227
227
|
mergeAvailabilityDeadline,
|
|
228
228
|
resolveCredentialKeyWithFallback
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-GMEAELJ6.js";
|
|
230
230
|
import {
|
|
231
231
|
clipCompactText
|
|
232
232
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -1264,7 +1264,7 @@ var buildPlatformFormDataFromArgs = async (args) => {
|
|
|
1264
1264
|
const trimmedModel = toTrimmedString(model);
|
|
1265
1265
|
const trimmedProvider = toTrimmedString(provider);
|
|
1266
1266
|
const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
|
|
1267
|
-
const { getModelPricing } = await import("./getPricing-
|
|
1267
|
+
const { getModelPricing } = await import("./getPricing-RPAQXFXY.js");
|
|
1268
1268
|
const normalizedTools = tools ?? [];
|
|
1269
1269
|
const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
|
|
1270
1270
|
const formData = {
|
|
@@ -3898,7 +3898,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3898
3898
|
const deletedDialogIds = [];
|
|
3899
3899
|
const deletedDialogKeys = [];
|
|
3900
3900
|
const failures = [];
|
|
3901
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3901
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-JWULZZKI.js");
|
|
3902
3902
|
for (const target of targets) {
|
|
3903
3903
|
try {
|
|
3904
3904
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -18699,7 +18699,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18699
18699
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18700
18700
|
};
|
|
18701
18701
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18702
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18702
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-IGB6VYJW.js");
|
|
18703
18703
|
if (getDocState().pageKey === id) {
|
|
18704
18704
|
applyExternalDocUpdate({
|
|
18705
18705
|
slateData: finalSlateData,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-523DITKR.js";
|
|
12
12
|
import {
|
|
13
13
|
runLlm
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZG6RWZGY.js";
|
|
15
15
|
import {
|
|
16
16
|
isMediaToolConfirmation
|
|
17
17
|
} from "./chunk-QYPE3TS3.js";
|
|
@@ -11077,7 +11077,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
11077
11077
|
runtimeOptions: args.runtimeOptions
|
|
11078
11078
|
});
|
|
11079
11079
|
if (agentKeyToUse) {
|
|
11080
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
11080
|
+
const { streamAgentChatTurn } = await import("./agentSlice-OGOKIDXG.js");
|
|
11081
11081
|
await dispatch(
|
|
11082
11082
|
streamAgentChatTurn({
|
|
11083
11083
|
agentKey: agentKeyToUse,
|
|
@@ -13891,7 +13891,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13891
13891
|
}
|
|
13892
13892
|
if (isCurrentDialog) {
|
|
13893
13893
|
await thunkApi.dispatch(resetMsgs());
|
|
13894
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13894
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-JWULZZKI.js");
|
|
13895
13895
|
dispatch(clearPendingAttachments2());
|
|
13896
13896
|
}
|
|
13897
13897
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -13899,15 +13899,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13899
13899
|
|
|
13900
13900
|
// packages/chat/dialog/dialogSlice.ts
|
|
13901
13901
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13902
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13902
|
+
const { createDialogAction } = await import("./createDialogAction-RIMBMOTA.js");
|
|
13903
13903
|
return createDialogAction(args, thunkApi);
|
|
13904
13904
|
};
|
|
13905
13905
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13906
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13906
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-YMY5N7IX.js");
|
|
13907
13907
|
return createAgentAutomationAction(args, thunkApi);
|
|
13908
13908
|
};
|
|
13909
13909
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13910
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13910
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-EWTTA5A4.js");
|
|
13911
13911
|
return updateDialogTitleAction(args, thunkApi);
|
|
13912
13912
|
};
|
|
13913
13913
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -13915,11 +13915,11 @@ var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
|
13915
13915
|
return addDialogAgentAction(args, thunkApi);
|
|
13916
13916
|
};
|
|
13917
13917
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
13918
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
13918
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-GZ56EZZI.js");
|
|
13919
13919
|
return removeDialogAgentAction(args, thunkApi);
|
|
13920
13920
|
};
|
|
13921
13921
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
13922
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
13922
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-JPTPBQH4.js");
|
|
13923
13923
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
13924
13924
|
};
|
|
13925
13925
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -13931,7 +13931,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
13931
13931
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13932
13932
|
};
|
|
13933
13933
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13934
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13934
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-2TN3FOIF.js");
|
|
13935
13935
|
return handleSendMessageAction(args, thunkApi);
|
|
13936
13936
|
};
|
|
13937
13937
|
function clearDialogState() {
|
|
@@ -13944,7 +13944,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13944
13944
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13945
13945
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13946
13946
|
try {
|
|
13947
|
-
const { createDocState } = await import("./docStore-
|
|
13947
|
+
const { createDocState } = await import("./docStore-IGB6VYJW.js");
|
|
13948
13948
|
const pageKey = await createDocState(
|
|
13949
13949
|
{ slateData, title },
|
|
13950
13950
|
{ dispatch, getState }
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveToolImagePolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2REKDWYL.js";
|
|
7
7
|
import {
|
|
8
8
|
accumulateToolCallDelta,
|
|
9
9
|
createThinkParserState,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
resolvePlatformAuthToken,
|
|
48
48
|
resolvePlatformServerUrl,
|
|
49
49
|
resolveProviderTransportDecision
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-EPRYABUO.js";
|
|
51
51
|
import {
|
|
52
52
|
isRecord
|
|
53
53
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveToolImagePolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2REKDWYL.js";
|
|
7
7
|
import {
|
|
8
8
|
projectOpenAiToolImages
|
|
9
9
|
} from "./chunk-E2BESSAW.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getAntigravityUserAgent,
|
|
12
12
|
readAntigravityProjectId,
|
|
13
13
|
resolveAntigravityCloudCodeBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HXHPAEAN.js";
|
|
15
15
|
import {
|
|
16
16
|
asOptionalTrimmedString
|
|
17
17
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_SELECTION_PRIORITY_INSTRUCTIONS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6HVBI6TI.js";
|
|
4
4
|
import {
|
|
5
5
|
canonicalizeToolNames
|
|
6
6
|
} from "./chunk-AKE53VMW.js";
|
|
@@ -132,6 +132,16 @@ var DISPATCH_BACKEND_POLICY = [
|
|
|
132
132
|
"\u300C\u5199\u578B\u6D3E\u53D1\u9ED8\u8BA4\u843D docker \u6C99\u76D2\u300D\u53EA\u5C5E\u4E8E CLI \u672C\u5730\u6D3E\u53D1\u901A\u9053\u8FD9\u4E00\u8303\u56F4\uFF1B\u4E0D\u5E26\u5BBF\u4E3B\u72B6\u6001\u4E0E\u5BBF\u4E3B\u51ED\u636E\u7684\u72EC\u7ACB\u4EE3\u7801\u6539\u52A8 + \u8DD1\u6D4B\u8BD5\uFF0C\u6C99\u76D2\u4ECD\u662F\u9996\u9009\uFF08\u9694\u79BB\u662F\u4FDD\u9669\uFF0C\u4E0D\u662F\u8D1F\u62C5\uFF09\u3002"
|
|
133
133
|
].join("\n");
|
|
134
134
|
|
|
135
|
+
// packages/agent-runtime/dispatchCandidatePolicy.ts
|
|
136
|
+
var DISPATCH_CANDIDATE_POLICY = [
|
|
137
|
+
"\u3010\u6D3E\u53D1\u9009\u4EBA \xB7 \u53EF\u7528\u6027\u4E0E\u901F\u5EA6\u3011",
|
|
138
|
+
"**\u6BCF\u6B21\u6D3E\u53D1\u524D\u91CD\u65B0\u8BFB\u53EF\u7528\u6027**\uFF1A\u5019\u9009\u53EF\u7528\u6027\u53EA\u5BF9\u5F53\u6B21\u6D3E\u53D1\u751F\u6548\u3002\u7981\u6B62\u590D\u7528\u4EFB\u4F55\u65E9\u4E8E\u672C\u6B21\u6D3E\u53D1\u7684\u300C\u989D\u5EA6\u8017\u5C3D/\u51B7\u5374\u4E2D\u300D\u7ED3\u8BBA\u2014\u2014\u6062\u590D\u662F\u5E38\u6001\uFF0C\u51ED\u65E7\u7ED3\u8BBA\u8DF3\u8FC7\u53EF\u7528\u5019\u9009\u7B49\u4E8E\u81EA\u5DF1\u5236\u9020\u963B\u585E\u3002\u5224\u5B9A\u8981\u57FA\u4E8E\u672C\u6B21 listAgents \u7684\u8FD4\u56DE\u3002",
|
|
139
|
+
"**\u6267\u884C\u578B\u5757\u4F18\u5148\u5FEB\u901A\u9053**\uFF1A\u76EE\u6807/\u6587\u4EF6/\u9A8C\u6536\u5DF2\u660E\u786E\u7684\u6267\u884C\u578B\u4EFB\u52A1\uFF0C\u5728\u901A\u8FC7\u80DC\u4EFB\u6027\u7B5B\u9009\u7684\u514D\u8D39\u79C1\u6709\u901A\u9053\u91CC\u4F18\u5148\u9009 `tier: fast` \u4E14**\u6709 observed \u901F\u5EA6\u6570\u636E**\u7684\u5019\u9009\uFF1B\u901F\u5EA6\u6570\u636E\u672A\u77E5\u7684\u5019\u9009\u53EA\u4F5C\u515C\u5E95\uFF0C\u9009\u5B83\u65F6\u5728\u56DE\u590D\u91CC\u5199\u660E\u300C\u901F\u5EA6\u672A\u77E5\u300D\uFF0C\u4E0D\u8981\u5047\u88C5\u5B83\u5FEB\u6216\u6162\u3002",
|
|
140
|
+
"**\u957F\u4EFB\u52A1\u907F\u5F00\u989D\u5EA6\u4E0D\u53EF\u89C1\u7684\u901A\u9053**\uFF1A\u9884\u8BA1\u8D85\u8FC7 30 \u6B21\u5DE5\u5177\u8C03\u7528\u7684\u4EFB\u52A1\uFF0C\u4E0D\u8981\u6D3E\u7ED9 `availabilityStatus` \u4E3A\u672A\u9A8C\u8BC1 / \u65E0\u989D\u5EA6\u5FEB\u7167\u7684\u901A\u9053\u2014\u2014\u4E2D\u9014 402 \u4F1A\u8BA9\u6574\u5757\u5DE5\u4F5C\u4F5C\u5E9F\uFF0C\u4EE3\u4EF7\u8FDC\u9AD8\u4E8E\u7701\u4E0B\u7684\u9009\u62E9\u6210\u672C\u3002",
|
|
141
|
+
"**\u901F\u5EA6\u53EA\u8BA4\u672C\u7528\u6237\u5B9E\u6D4B**\uFF1A\u901F\u5EA6\u4F9D\u636E\u53EA\u6709 observed\uFF08\u672C\u7528\u6237\u8FD1\u671F\u771F\u5B9E\u8C03\u7528\u4E2D\u4F4D\u6570\uFF09\u3002\u4E0D\u8981\u5F15\u7528\u5916\u90E8\u57FA\u51C6\u3001\u5382\u5546\u5BA3\u79F0\u6216\u8BB0\u5FC6\u91CC\u7684\u6570\u5B57\u6765\u81EA\u8BC1\u300C\u54EA\u4E2A\u5FEB\u300D\uFF1B\u6CA1\u6709\u6837\u672C\u5C31\u662F\u6CA1\u6709\u6570\u636E\uFF0C\u4E0D\u7B49\u4E8E\u6162\u3002",
|
|
142
|
+
"\u8FD9\u4E9B\u89C4\u5219\u4E0D\u653E\u5BBD\u4EFB\u4F55\u65E2\u6709\u786C\u95E8\uFF1A\u5E73\u53F0\u79EF\u5206\u6263\u8D39\u6388\u6743\u3001429 \u9650\u6D41\u77E5\u60C5\u6743\u3001\u4F5C\u8005\u56DE\u907F\u3001review \u72EC\u7ACB\u6027\u3001\u5220\u9664\u4E0E\u63A8\u9001\u7684\u786E\u8BA4\uFF0C\u4E00\u6761\u90FD\u4E0D\u56E0\u300C\u66F4\u5FEB\u300D\u800C\u7ED5\u5F00\u3002"
|
|
143
|
+
].join("\n");
|
|
144
|
+
|
|
135
145
|
// packages/agent-runtime/platformRiskControl.ts
|
|
136
146
|
var PLATFORM_RISK_CONTROL_RULE = [
|
|
137
147
|
"\u3010\u5E73\u53F0\u98CE\u63A7\u7EAA\u5F8B \xB7 \u7B2C\u4E09\u65B9\u7AD9\u70B9\u81EA\u52A8\u5316\u3011",
|
|
@@ -832,6 +842,7 @@ export {
|
|
|
832
842
|
CREDENTIAL_HYGIENE_RULE,
|
|
833
843
|
PARALLEL_DISPATCH_DEFAULT_RULE,
|
|
834
844
|
DISPATCH_BACKEND_POLICY,
|
|
845
|
+
DISPATCH_CANDIDATE_POLICY,
|
|
835
846
|
PLATFORM_RISK_CONTROL_RULE,
|
|
836
847
|
isGptProModel,
|
|
837
848
|
shouldBlockForGptPro,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
classifyAgentApiKeyRef,
|
|
4
4
|
formatUnsupportedAgentApiKeyRefMessage,
|
|
5
5
|
shouldReadAgentKeyRemotely
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7AUQ3WCW.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveCliAgentKeyInput
|
|
9
9
|
} from "./chunk-NBTY7YJF.js";
|
|
@@ -558,7 +558,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
558
558
|
const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
|
|
559
559
|
const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
|
|
560
560
|
if (args.parsed.presetId) {
|
|
561
|
-
const { resolveProviderPresetFields } = await import("./providerPresetApply-
|
|
561
|
+
const { resolveProviderPresetFields } = await import("./providerPresetApply-YKCAQCBR.js");
|
|
562
562
|
const fields = resolveProviderPresetFields(args.parsed.presetId);
|
|
563
563
|
if (fields.kind === "manual") {
|
|
564
564
|
throw new Error(
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DEVIN_CONNECT_URL,
|
|
3
3
|
parseSseDataLineJson,
|
|
4
4
|
parseSseDataLineObject
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UYY2CECP.js";
|
|
6
6
|
import {
|
|
7
7
|
applyChatCompletionDelta,
|
|
8
8
|
applyResponsesToolEvent,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
flushChatCompletionStream,
|
|
12
12
|
providerHttpFailure,
|
|
13
13
|
throwIfChatCompletionStreamFailed
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UVXVWXYH.js";
|
|
15
15
|
import {
|
|
16
16
|
readSseFrames
|
|
17
17
|
} from "./chunk-HNUWUO75.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
hasImageInRuntimeMessages,
|
|
31
31
|
stripImagePartsFromMessages
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XXYDK7L5.js";
|
|
33
33
|
import {
|
|
34
34
|
clipToolText,
|
|
35
35
|
resolveHistoricalToolContentCap,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
resolveAgentImageInputSupport,
|
|
40
40
|
resolveToolImagePolicy
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-2REKDWYL.js";
|
|
42
42
|
import {
|
|
43
43
|
applyShapingCounts,
|
|
44
44
|
attachProjectionFacts,
|
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
CREDENTIAL_HYGIENE_RULE,
|
|
62
62
|
DELETE_SAFETY_RED_LINE,
|
|
63
63
|
DISPATCH_BACKEND_POLICY,
|
|
64
|
+
DISPATCH_CANDIDATE_POLICY,
|
|
64
65
|
PARALLEL_DISPATCH_DEFAULT_RULE,
|
|
65
66
|
PLATFORM_RISK_CONTROL_RULE,
|
|
66
67
|
TOOL_GUIDED_SECTION_ORDER,
|
|
@@ -73,7 +74,7 @@ import {
|
|
|
73
74
|
hashStablePrefixContent,
|
|
74
75
|
resolveResponseGuidelines,
|
|
75
76
|
resolveToolGuidedSections
|
|
76
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-UZT65S6D.js";
|
|
77
78
|
import {
|
|
78
79
|
classifyUnparsableToolArgs,
|
|
79
80
|
collectStablePromptPrefix,
|
|
@@ -130,7 +131,7 @@ import {
|
|
|
130
131
|
parseNoloWorkspaceToolArguments,
|
|
131
132
|
readTextStreamUpToChars,
|
|
132
133
|
resolveNoloDialogInput
|
|
133
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-6HVBI6TI.js";
|
|
134
135
|
import {
|
|
135
136
|
buildDialogFallbackTitleFromUserInput
|
|
136
137
|
} from "./chunk-2MBTWINN.js";
|
|
@@ -222,7 +223,7 @@ import {
|
|
|
222
223
|
import {
|
|
223
224
|
buildProviderAuthHeaders,
|
|
224
225
|
buildProviderExecutionPlan
|
|
225
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-EPRYABUO.js";
|
|
226
227
|
import {
|
|
227
228
|
toErrorMessage
|
|
228
229
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -19949,6 +19950,7 @@ async function runLocalAgentTurn(input) {
|
|
|
19949
19950
|
{ content: PARALLEL_DISPATCH_DEFAULT_RULE, cacheScope: "session" },
|
|
19950
19951
|
// 派发落点:并行派发纪律的下一层(派到哪个执行后端),沿用 session 占位约定。
|
|
19951
19952
|
{ content: DISPATCH_BACKEND_POLICY, cacheScope: "session" },
|
|
19953
|
+
{ content: DISPATCH_CANDIDATE_POLICY, cacheScope: "session" },
|
|
19952
19954
|
// 平台风控纪律:无条件系统层块,沿用 session 占位约定。
|
|
19953
19955
|
{ content: PLATFORM_RISK_CONTROL_RULE, cacheScope: "session" },
|
|
19954
19956
|
{ content: buildConsultationModeBlock(), cacheScope: "session" },
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3YYHTRF7.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZG6RWZGY.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSkillGuidancePromptBlock
|
|
12
12
|
} from "./chunk-Y6M7KJOA.js";
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
CREDENTIAL_HYGIENE_RULE,
|
|
15
15
|
DELETE_SAFETY_RED_LINE,
|
|
16
16
|
DISPATCH_BACKEND_POLICY,
|
|
17
|
+
DISPATCH_CANDIDATE_POLICY,
|
|
17
18
|
PARALLEL_DISPATCH_DEFAULT_RULE,
|
|
18
19
|
PLATFORM_RISK_CONTROL_RULE,
|
|
19
20
|
buildConsultationModeBlock,
|
|
@@ -23,7 +24,7 @@ import {
|
|
|
23
24
|
compileContextLayers,
|
|
24
25
|
detectDispatchIntentFromMessages,
|
|
25
26
|
resolveToolGuidedSections
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UZT65S6D.js";
|
|
27
28
|
import {
|
|
28
29
|
convertMessagesToResponsesInput,
|
|
29
30
|
getUsageRequestOptions,
|
|
@@ -36,7 +37,7 @@ import {
|
|
|
36
37
|
import {
|
|
37
38
|
resolveAgentCallPlan,
|
|
38
39
|
resolveClientWire
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-QWHAFJIJ.js";
|
|
40
41
|
import {
|
|
41
42
|
createFileCredentialBroker
|
|
42
43
|
} from "./chunk-UIOEHFF6.js";
|
|
@@ -50,7 +51,7 @@ import {
|
|
|
50
51
|
} from "./chunk-AKE53VMW.js";
|
|
51
52
|
import {
|
|
52
53
|
buildProviderAuthHeaders
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-EPRYABUO.js";
|
|
54
55
|
import {
|
|
55
56
|
clampReasoningEffort,
|
|
56
57
|
getModelConfig,
|
|
@@ -292,6 +293,13 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
|
292
293
|
cacheScope: "static",
|
|
293
294
|
content: DISPATCH_BACKEND_POLICY
|
|
294
295
|
},
|
|
296
|
+
// 派发选人:可用性重扫与速度口径(与后端块同级,紧随其后)。
|
|
297
|
+
{
|
|
298
|
+
id: "dispatch-candidate-policy",
|
|
299
|
+
owner: "platform",
|
|
300
|
+
cacheScope: "static",
|
|
301
|
+
content: DISPATCH_CANDIDATE_POLICY
|
|
302
|
+
},
|
|
295
303
|
// 平台风控纪律:无条件静态前缀,紧随并行派发块。
|
|
296
304
|
{
|
|
297
305
|
id: "platform-risk-control",
|