nolo-cli 0.254.0-alpha.1 → 0.256.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-OMDET3E2.js → _executeModel-E2LL7FPO.js} +44 -43
- package/{action-4MADDU52.js → action-C6IQAKN4.js} +5 -5
- package/{addContentAction-MT4BECXT.js → addContentAction-53364YDW.js} +8 -8
- package/{addDialogAgentAction-ZZTJ5GBD.js → addDialogAgentAction-U5DD5EN5.js} +7 -7
- package/{agentDeleteCommand-5WXEECFH.js → agentDeleteCommand-ORNRRKJO.js} +59 -58
- package/{agentEmailCommands-3QWBB2JL.js → agentEmailCommands-2ALVFOD5.js} +60 -59
- package/{agentListCommands-WTEF5RKJ.js → agentListCommands-6I4NQPR4.js} +26 -25
- package/{agentMachineCommands-DP44GKA6.js → agentMachineCommands-PNHTIJ6A.js} +22 -21
- package/{agentRecordCommands-4I7P34GJ.js → agentRecordCommands-BEZPBYBM.js} +59 -58
- package/{agentRunCommand-VAKWFXJV.js → agentRunCommand-2T72V5KY.js} +63 -59
- package/{agentRunControl-5ABAIBQT.js → agentRunControl-3TIVJ3SR.js} +3 -2
- package/{agentRuntimeLocal-IO3GGTCJ.js → agentRuntimeLocal-3MAEFYSB.js} +18 -17
- package/{agentSlice-5ZSVWJHV.js → agentSlice-KOQXUPKT.js} +9 -9
- package/{appDeleteCommands-ZQ4ZEKTC.js → appDeleteCommands-IIOP3CZU.js} +24 -23
- package/{appDeployCommands-4XT7PFW5.js → appDeployCommands-S5ZNB7MA.js} +24 -23
- package/{appDeployStatusCommands-5RVMRYQW.js → appDeployStatusCommands-MQIGLK3T.js} +24 -23
- package/{appGetCommands-VH5W3RFK.js → appGetCommands-XFX4E3KR.js} +24 -23
- package/{appListCommands-TAHZLAL3.js → appListCommands-QR7LT4AK.js} +24 -23
- package/{authCommand-HBO5G6RL.js → authCommand-HKSXJT3J.js} +4 -4
- package/{builtinSkillRegistry-66PEOD4Y.js → builtinSkillRegistry-FVEEO4U2.js} +3 -3
- package/{chromeOpsCommands-AA555ANS.js → chromeOpsCommands-4UIKH26F.js} +1 -1
- package/{chunk-D3WOFN6N.js → chunk-223KZUJ6.js} +1 -1
- package/{chunk-4Z7Q4QZF.js → chunk-2RZBFJEG.js} +1014 -43
- package/{chunk-AX63ZU2W.js → chunk-3GGVFHWI.js} +4 -4
- package/{chunk-2RCMFPUZ.js → chunk-46FETNLF.js} +2 -2
- package/{chunk-CO6E7YK6.js → chunk-5P3PPQVP.js} +1 -1
- package/{chunk-KWARDHBI.js → chunk-6N4IKMTH.js} +37 -2
- package/{chunk-M7GMJBQJ.js → chunk-6VEO7Z3Y.js} +3 -3
- package/{chunk-2VYX3ZCR.js → chunk-6VNBJ7GI.js} +5 -5
- package/{chunk-MICGEDCN.js → chunk-7B55IVLF.js} +107 -27
- package/{chunk-GK772DEV.js → chunk-7BIJFGKS.js} +3 -3
- package/{chunk-3SEBCWLD.js → chunk-7EUJ65PF.js} +2057 -223
- package/{chunk-25BDZGD7.js → chunk-7JMBQ7YU.js} +2 -2
- package/{chunk-4GWNEPY6.js → chunk-7PTWFSZZ.js} +1 -1
- package/{chunk-CIAV4WK2.js → chunk-7WHCIA5V.js} +2 -2
- package/{chunk-KR4W72OK.js → chunk-ADUCBH4M.js} +45 -25
- package/{chunk-53UOBNTI.js → chunk-ADYWV732.js} +8 -8
- package/{chunk-WLHUANWZ.js → chunk-AIFQKNPP.js} +1 -1
- package/{chunk-GFXPPQZN.js → chunk-AKBNCTPY.js} +1 -1
- package/{chunk-3272HU62.js → chunk-APQBEIOQ.js} +1 -1
- package/{chunk-MW3XUUYS.js → chunk-APXC3SQO.js} +6 -6
- package/{chunk-52M4RYVP.js → chunk-BB76X6O4.js} +1 -1
- package/{chunk-HEUHCHAR.js → chunk-BD22OFDQ.js} +3 -3
- package/{chunk-ZAKWT4XQ.js → chunk-BD5YJJLJ.js} +3 -3
- package/{chunk-SID2TFMV.js → chunk-BXGU6274.js} +104 -55
- package/{chunk-SCY2O7CU.js → chunk-BZMDWGQQ.js} +2 -2
- package/{chunk-QV32GSVO.js → chunk-C63KMRJE.js} +1 -1
- package/{chunk-JKO32CCL.js → chunk-CBIGMWMI.js} +1 -1
- package/{chunk-JP2BH4NC.js → chunk-CEKRIR22.js} +1 -1
- package/{chunk-MR72IIX5.js → chunk-CVDJUPBN.js} +4 -4
- package/{chunk-6AJIU6OC.js → chunk-DCTQJDDQ.js} +3 -3
- package/{chunk-HS4JGZQH.js → chunk-DWES4SXY.js} +1 -1
- package/{chunk-D4CUS6NT.js → chunk-E4HBZDV6.js} +3 -3
- package/{chunk-2G3XMM3O.js → chunk-EXD7S7QW.js} +41 -5
- package/{chunk-YGDYYFRX.js → chunk-GYX6XTAI.js} +3 -5
- package/{chunk-VYRTLHIT.js → chunk-HDKMVYNJ.js} +1 -1
- package/chunk-HEVRQGGH.js +106 -0
- package/{chunk-4CL6QIQZ.js → chunk-HPDLPEUG.js} +2 -2
- package/{chunk-7STRX24O.js → chunk-IZHENZQ5.js} +8 -7
- package/{chunk-IGK4OXAO.js → chunk-JAGD4PSH.js} +499 -7
- package/{chunk-MCQXBKC6.js → chunk-JGVWHUYK.js} +2 -2
- package/{chunk-5UYDG6HP.js → chunk-JOJH3KWV.js} +26 -15
- package/{chunk-Z2ZCKNKX.js → chunk-JW6OURKM.js} +261 -228
- package/{chunk-VZCBYCHV.js → chunk-KG27JIG4.js} +2 -2
- package/{chunk-PTY2VZM5.js → chunk-KO5GO2BC.js} +6 -8
- package/{chunk-TA2JQUWA.js → chunk-KO5PFS74.js} +156 -1767
- package/{chunk-YW5L3XOO.js → chunk-LJ6WIQZO.js} +10 -10
- package/{chunk-OLS2J3WE.js → chunk-LLUBUHNT.js} +1 -1
- package/{chunk-IDCGMZLC.js → chunk-MD7O2NN2.js} +9 -9
- package/{chunk-XWR2YD4L.js → chunk-MLK3FEXG.js} +1 -1
- package/{chunk-KQBGXCKM.js → chunk-MNFUKRRU.js} +3 -3
- package/{chunk-YYHWEVBI.js → chunk-MUDMYJCM.js} +2 -2
- package/{chunk-NEDBPW44.js → chunk-NRUYSNSZ.js} +2 -2
- package/{chunk-UHW6SCVK.js → chunk-NUHQO3RB.js} +1 -1
- package/{chunk-CYGFNMCH.js → chunk-OKAXQFON.js} +1 -1
- package/{chunk-P4JX7YMQ.js → chunk-ONTHDYFU.js} +22 -2
- package/{chunk-PR25J652.js → chunk-PNBQ5JTA.js} +1 -1
- package/{chunk-K4LLTJUO.js → chunk-Q2MPKE4B.js} +5 -105
- package/{chunk-OMIXG25B.js → chunk-QGFLVQ6E.js} +1 -1
- package/{chunk-WMMKHEGQ.js → chunk-R3FZHW4Q.js} +12 -12
- package/{chunk-KZAT2M2V.js → chunk-RIWKZT7E.js} +22 -0
- package/{chunk-FRC2DNTN.js → chunk-RQKTCHQM.js} +1 -1
- package/{chunk-OWXOXKH7.js → chunk-SCAC3NM5.js} +2 -2
- package/{chunk-NXNHG3QT.js → chunk-SIHOY5YI.js} +21 -10
- package/{chunk-HKPIFK7F.js → chunk-TF427WGH.js} +5 -5
- package/{chunk-NMGG3NUB.js → chunk-U6QNVOR5.js} +1 -1
- package/{chunk-6WI4PFPP.js → chunk-V6S5OZSP.js} +68 -54
- package/{chunk-AIHNB5QH.js → chunk-VQR2ACSC.js} +6 -4
- package/{chunk-GJKEOBCV.js → chunk-WFEWP352.js} +10 -10
- package/{chunk-HEQJ5XND.js → chunk-WS36XPJD.js} +2 -2
- package/{chunk-MRYKRL2V.js → chunk-WSLL7VV4.js} +2 -2
- package/{dialogUsageCommand-3JMINURR.js → chunk-Y2TCTNUD.js} +19 -12
- package/{chunk-DNY33GGQ.js → chunk-YN23INFZ.js} +1 -1
- package/{chunk-5HUO7SEX.js → chunk-YQLAFJRQ.js} +1 -1
- package/{chunk-EG3JTV7H.js → chunk-Z3JZ2R5F.js} +2 -2
- package/{chunk-VPSPVLCM.js → chunk-ZMJMHXYX.js} +3 -3
- package/{chunk-W4S5FQWQ.js → chunk-ZTHAJU3O.js} +1 -1
- package/{cliAgentConfigHelpers-FKBPFPKR.js → cliAgentConfigHelpers-BXHQ3PXP.js} +2 -2
- package/{cliLocalAgentRecordReader-2WBUVRVD.js → cliLocalAgentRecordReader-Q6677YID.js} +22 -21
- package/{commandRegistry-DONNI3FW.js → commandRegistry-RNYUOKUE.js} +82 -78
- package/{contentThunks-THSXC6WQ.js → contentThunks-ZDBDDZP3.js} +20 -20
- package/{cooldownCommands-PT5L4LNB.js → cooldownCommands-Y4ZQQ35D.js} +1 -1
- package/{createAgentAutomationAction-WNQOJ4DG.js → createAgentAutomationAction-HEZ3G5L4.js} +20 -20
- package/{createDialogAction-YORDQFFC.js → createDialogAction-DK62W5VA.js} +21 -21
- package/{createPageAction-2S7V5OCW.js → createPageAction-W6NXHVKO.js} +21 -21
- package/{dbSlice-HXFRXGI3.js → dbSlice-RWPSVHBC.js} +7 -7
- package/{deleteFile-QDSZVTUJ.js → deleteFile-ECU6FU5C.js} +5 -5
- package/{dialogCommands-MEH4CVRL.js → dialogCommands-Z24IDINY.js} +28 -25
- package/{dialogNotifyCommand-JKYVSR6K.js → dialogNotifyCommand-IASQGEMW.js} +3 -3
- package/{dialogSlice-JOICDGQU.js → dialogSlice-62GISS77.js} +18 -18
- package/dialogTraceCommand-FDINAIZ6.js +961 -0
- package/dialogUsageCommand-WJ3U6KZU.js +27 -0
- package/{docCreateCommands-MVAYVGQ5.js → docCreateCommands-SXA4TMGJ.js} +23 -22
- package/{docDeleteCommands-TKXPRA3O.js → docDeleteCommands-ELXSZK3F.js} +24 -23
- package/{docReadCommands-MR2YKCZP.js → docReadCommands-DFLAQPI4.js} +23 -22
- package/{docStore-NKVLWCXX.js → docStore-UWF2PMCB.js} +8 -8
- package/{docUpdateCommands-VJ6A6F7F.js → docUpdateCommands-KB6M5HUH.js} +23 -22
- package/{handleSendMessageAction-SNNYOQ4P.js → handleSendMessageAction-ZV6OQPQG.js} +32 -32
- package/{hostCredentialCreate-SDQUFL23.js → hostCredentialCreate-3IA5IJFG.js} +59 -58
- package/index.js +7 -7
- package/{localRuntimeAdapter-JHYH5ZIR.js → localRuntimeAdapter-SSG5ORLZ.js} +58 -57
- package/{machineCommands-BXSBRM7L.js → machineCommands-ECFQMLHA.js} +59 -58
- package/{machineWsRunDispatch-KEXSHGSD.js → machineWsRunDispatch-7PROH7E7.js} +59 -58
- package/{mcpLocalAuthorizeCommand-Y3SOZFXT.js → mcpLocalAuthorizeCommand-RBXJDE6J.js} +2 -2
- package/{memberThunks-ZXEUM6DH.js → memberThunks-43B7UYC5.js} +9 -9
- package/package.json +1 -1
- package/{projectArchive-FDYE7VNC.js → projectArchive-JN43WW4E.js} +21 -21
- package/{read-T5WPCAY7.js → read-KG6INYUT.js} +5 -5
- package/{readDocTool-DW4DCRQG.js → readDocTool-N3GA52JR.js} +1 -1
- package/{readlineWorkspace-ME2C64XI.js → readlineWorkspace-D6EUSB2Q.js} +684 -874
- package/{removeDialogAgentAction-MXJEB77K.js → removeDialogAgentAction-EEVSOQOJ.js} +9 -9
- package/{runAgentClientLoop-UAGXVYW5.js → runAgentClientLoop-FEZTSUSJ.js} +51 -40
- package/{secretCommands-BXAQEOES.js → secretCommands-53NZFD4T.js} +2 -2
- package/{setDialogExtraReferencesAction-BILVMHM7.js → setDialogExtraReferencesAction-DNO5POHA.js} +8 -8
- package/{setPrimaryDialogAgentAction-CUBBWACR.js → setPrimaryDialogAgentAction-QABBEO4C.js} +9 -9
- package/{settingThunks-BRBBAGEK.js → settingThunks-DVKG4X4S.js} +10 -10
- package/{skillDiscovery-MDDKPTW3.js → skillDiscovery-5GEGWJ6N.js} +3 -3
- package/{spaceCommands-K4HHG7OO.js → spaceCommands-4ACQQNZL.js} +70 -25
- package/{streamAgentChatTurn-RZUB6JTH.js → streamAgentChatTurn-I425SVYJ.js} +62 -50
- package/{switchDialogAgentAction-SSI2CSNE.js → switchDialogAgentAction-KYWJSGOO.js} +7 -7
- package/{tableCommands-C3P2HHKK.js → tableCommands-EFA754RE.js} +2 -2
- package/{tools-23F5EEVM.js → tools-WBPFTSMK.js} +36 -35
- package/{tuiRestart-7IKI6JZK.js → tuiRestart-VN5F4GYU.js} +4 -3
- package/tuiSummaryLlmCaller-HROLGN4F.js +1 -1
- package/{updateCommands-BZ4YDHNM.js → updateCommands-VQEBBIGO.js} +3 -3
- package/{updateDialogTitleAction-TJWT4LXL.js → updateDialogTitleAction-VB5DTVXV.js} +20 -20
- package/{usageCommand-HVCMX7BG.js → usageCommand-WI6SQOPB.js} +1 -1
- package/{usageRebuildCommand-VMPIZ2ME.js → usageRebuildCommand-WQRLLZAT.js} +2 -2
- package/{windowsSelfUpdate-4BAXX7C3.js → windowsSelfUpdate-ZEZKGX4M.js} +2 -2
- package/lib-62SWPXNF.js +0 -21042
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
deleteDialog,
|
|
3
3
|
runtime_default,
|
|
4
4
|
toast
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7B55IVLF.js";
|
|
6
6
|
import {
|
|
7
7
|
getAllMemberSpaces,
|
|
8
8
|
getCurrentSpaceId,
|
|
9
9
|
getCurrentSpaceIdRaw,
|
|
10
10
|
updateCurrentSpaceIfMatch
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YN23INFZ.js";
|
|
12
12
|
import {
|
|
13
13
|
require_formatISO
|
|
14
14
|
} from "./chunk-UVLYNWIE.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
patchIndividualContentRecord,
|
|
24
24
|
readContentRecordForSpaceSync,
|
|
25
25
|
syncContentRecordSpaceId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-46FETNLF.js";
|
|
27
27
|
import {
|
|
28
28
|
createSpaceKey,
|
|
29
29
|
normalizeSpaceId
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
uploadFileAction,
|
|
37
37
|
upsertSSREntity,
|
|
38
38
|
write
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ADYWV732.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveFileCategory
|
|
42
42
|
} from "./chunk-3PVYUPXK.js";
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
resolveReplicationServers,
|
|
51
51
|
scheduleDeleteReplication,
|
|
52
52
|
scheduleWriteReplication
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-HPDLPEUG.js";
|
|
54
54
|
import {
|
|
55
55
|
createAsyncThunk
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-ZTHAJU3O.js";
|
|
57
57
|
import {
|
|
58
58
|
getIsDesktopApp
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-HDKMVYNJ.js";
|
|
60
60
|
import {
|
|
61
61
|
createClientLogger
|
|
62
62
|
} from "./chunk-QQ56R7KS.js";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "./chunk-BV3FLP2L.js";
|
|
75
75
|
import {
|
|
76
76
|
isSystemAdmin
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-5P3PPQVP.js";
|
|
78
78
|
import {
|
|
79
79
|
SEPARATOR,
|
|
80
80
|
createKey,
|
|
@@ -1513,11 +1513,11 @@ var ENTITY_DELETE_STRATEGIES = {
|
|
|
1513
1513
|
await dispatch(deleteTable({ dbKey: key })).unwrap();
|
|
1514
1514
|
},
|
|
1515
1515
|
file: async (key, { thunkAPI }) => {
|
|
1516
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1516
|
+
const { deleteFileAction } = await import("./deleteFile-ECU6FU5C.js");
|
|
1517
1517
|
await deleteFileAction(key, thunkAPI);
|
|
1518
1518
|
},
|
|
1519
1519
|
image: async (key, { thunkAPI }) => {
|
|
1520
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1520
|
+
const { deleteFileAction } = await import("./deleteFile-ECU6FU5C.js");
|
|
1521
1521
|
await deleteFileAction(key, thunkAPI);
|
|
1522
1522
|
},
|
|
1523
1523
|
agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
upsertSSREntity,
|
|
3
3
|
write
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ADYWV732.js";
|
|
5
5
|
import {
|
|
6
6
|
getRuntimeServerContext,
|
|
7
7
|
resolveRecordAuthority
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HPDLPEUG.js";
|
|
9
9
|
import {
|
|
10
10
|
TIMEOUT,
|
|
11
11
|
asyncThunkCreator,
|
|
12
12
|
buildCreateSlice,
|
|
13
13
|
noloRequest
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZTHAJU3O.js";
|
|
15
15
|
import {
|
|
16
16
|
applyAgentSecretMigrationUpdates,
|
|
17
17
|
buildAgentApiKeyCredentialRef,
|
|
18
18
|
migrateAgentSecrets,
|
|
19
19
|
normalizeAgentRuntimeToolPolicy
|
|
20
20
|
} from "./chunk-USGHJSGO.js";
|
|
21
|
-
import {
|
|
22
|
-
asRecordOrEmpty
|
|
23
|
-
} from "./chunk-KX6YBIHG.js";
|
|
24
21
|
import {
|
|
25
22
|
createFileCredentialBroker
|
|
26
23
|
} from "./chunk-E6A5NHDH.js";
|
|
24
|
+
import {
|
|
25
|
+
asRecordOrEmpty
|
|
26
|
+
} from "./chunk-KX6YBIHG.js";
|
|
27
27
|
import {
|
|
28
28
|
isLevelNotFoundError
|
|
29
29
|
} from "./chunk-OW765XBU.js";
|
|
@@ -471,7 +471,7 @@ var slice = createSliceWithThunks({
|
|
|
471
471
|
const overrides = {};
|
|
472
472
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
473
473
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
474
|
-
const { _executeModel } = await import("./_executeModel-
|
|
474
|
+
const { _executeModel } = await import("./_executeModel-E2LL7FPO.js");
|
|
475
475
|
return _executeModel(
|
|
476
476
|
{
|
|
477
477
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -492,7 +492,7 @@ var slice = createSliceWithThunks({
|
|
|
492
492
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
493
493
|
*/
|
|
494
494
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
495
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
495
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-FEZTSUSJ.js");
|
|
496
496
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
497
497
|
{
|
|
498
498
|
agentKey: args.agentKey,
|
|
@@ -508,7 +508,7 @@ var slice = createSliceWithThunks({
|
|
|
508
508
|
* 聊天轮次流式 Agent 调用
|
|
509
509
|
*/
|
|
510
510
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
511
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
511
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-I425SVYJ.js");
|
|
512
512
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
513
513
|
}),
|
|
514
514
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer,
|
|
3
3
|
selectRemoteServers
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BZMDWGQQ.js";
|
|
5
5
|
import {
|
|
6
6
|
noloDeleteRequest,
|
|
7
7
|
noloWriteRequest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZTHAJU3O.js";
|
|
9
9
|
import {
|
|
10
10
|
normalizeTimeFields
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HDKMVYNJ.js";
|
|
12
12
|
import {
|
|
13
13
|
selectIdentityUser,
|
|
14
14
|
selectIdentityUserId
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchReferenceContents,
|
|
3
3
|
resolveReferenceAssets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-APXC3SQO.js";
|
|
5
5
|
import {
|
|
6
6
|
updateTokensAction
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7B55IVLF.js";
|
|
8
8
|
import {
|
|
9
9
|
applyUpdateTokensFulfilled
|
|
10
10
|
} from "./chunk-U35UUM5K.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-ZYPXOQS2.js";
|
|
7
7
|
import {
|
|
8
8
|
clearCliLocalRuntimePreparedAgentCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V6S5OZSP.js";
|
|
10
10
|
import {
|
|
11
11
|
readCredentialAvailability
|
|
12
12
|
} from "./chunk-GIXWVN2W.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
resolveAgentRecordFromHybridStore,
|
|
26
26
|
sanitizeAgentRecordForCliOutput,
|
|
27
27
|
writeAgentRecord
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-E4HBZDV6.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveCliAgentKeyInput
|
|
31
31
|
} from "./chunk-BR3GT6MR.js";
|
|
@@ -5,7 +5,10 @@ import {
|
|
|
5
5
|
} from "./chunk-S25VJYXV.js";
|
|
6
6
|
import {
|
|
7
7
|
findPowerShellExecutable
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6N4IKMTH.js";
|
|
9
|
+
import {
|
|
10
|
+
resolveModelTier
|
|
11
|
+
} from "./chunk-HEVRQGGH.js";
|
|
9
12
|
import {
|
|
10
13
|
AUTH_ERROR_PATTERNS
|
|
11
14
|
} from "./chunk-EWQ3HGNZ.js";
|
|
@@ -1366,6 +1369,10 @@ function buildResultFrontMatter(input) {
|
|
|
1366
1369
|
["cacheInputTokens", input.cacheUsage?.input_tokens],
|
|
1367
1370
|
["cacheCachedTokens", input.cacheUsage?.cached_tokens],
|
|
1368
1371
|
["cacheHitRatio", input.cacheUsage?.cache_hit_ratio],
|
|
1372
|
+
// run 级 token 总量与生效档位(结构化回溯用;缺省省略,绝不写 0/unknown)
|
|
1373
|
+
["inputTokens", input.inputTokens],
|
|
1374
|
+
["outputTokens", input.outputTokens],
|
|
1375
|
+
["modelTier", input.modelTier],
|
|
1369
1376
|
["dialogId", input.dialogId],
|
|
1370
1377
|
["server", input.server],
|
|
1371
1378
|
["serverSync", input.serverSync],
|
|
@@ -3359,6 +3366,16 @@ function transitionRunToTerminal(runId, update, deps = {}, options = {}) {
|
|
|
3359
3366
|
if (update.cacheUsage) {
|
|
3360
3367
|
record2.cacheHitRatio = update.cacheUsage.cache_hit_ratio;
|
|
3361
3368
|
record2.cacheCachedTokens = update.cacheUsage.cached_tokens;
|
|
3369
|
+
if (typeof update.cacheUsage.input_tokens === "number") {
|
|
3370
|
+
record2.inputTokens = update.cacheUsage.input_tokens;
|
|
3371
|
+
}
|
|
3372
|
+
if (typeof update.cacheUsage.output_tokens === "number") {
|
|
3373
|
+
record2.outputTokens = update.cacheUsage.output_tokens;
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
const resolvedTier = record2.selectionCheck?.modelTier ?? resolveModelTier(record2.model);
|
|
3377
|
+
if (resolvedTier !== "unknown" || record2.selectionCheck?.modelTier) {
|
|
3378
|
+
record2.modelTier = resolvedTier;
|
|
3362
3379
|
}
|
|
3363
3380
|
record2.endedAt = now().toISOString();
|
|
3364
3381
|
let resultWriteFailed = false;
|
|
@@ -3402,7 +3419,10 @@ function transitionRunToTerminal(runId, update, deps = {}, options = {}) {
|
|
|
3402
3419
|
serverSync: update.serverSync,
|
|
3403
3420
|
cwd: record2.cwd,
|
|
3404
3421
|
continuedFrom: record2.continuedFrom,
|
|
3405
|
-
...update.cacheUsage ? { cacheUsage: update.cacheUsage } : {}
|
|
3422
|
+
...update.cacheUsage ? { cacheUsage: update.cacheUsage } : {},
|
|
3423
|
+
...typeof record2.inputTokens === "number" ? { inputTokens: record2.inputTokens } : {},
|
|
3424
|
+
...typeof record2.outputTokens === "number" ? { outputTokens: record2.outputTokens } : {},
|
|
3425
|
+
...record2.modelTier ? { modelTier: record2.modelTier } : {}
|
|
3406
3426
|
},
|
|
3407
3427
|
update.lastAssistantText ?? ""
|
|
3408
3428
|
);
|
|
@@ -5,6 +5,9 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
asRecordOrEmpty
|
|
7
7
|
} from "./chunk-KX6YBIHG.js";
|
|
8
|
+
import {
|
|
9
|
+
MODEL_TIER_GUIDANCE
|
|
10
|
+
} from "./chunk-HEVRQGGH.js";
|
|
8
11
|
import {
|
|
9
12
|
dialogIdFromKey,
|
|
10
13
|
isSupportedDialogId,
|
|
@@ -581,104 +584,6 @@ function shouldFetchAgentRuntimeRecordRemotely(dbKey) {
|
|
|
581
584
|
return /^agent(-pub)?-/.test(dbKey);
|
|
582
585
|
}
|
|
583
586
|
|
|
584
|
-
// packages/ai/agent/dispatchSelectionPolicy.ts
|
|
585
|
-
var DISPATCH_TIER_RANK = { easy: 0, normal: 1, complex: 2, extreme: 3 };
|
|
586
|
-
var MODEL_TIERS = [
|
|
587
|
-
{
|
|
588
|
-
tier: "extreme",
|
|
589
|
-
models: ["Claude Fable 5.1/5.2\u3001Opus 5.5", "GPT-6/6.2 Astra", "Gemini 4 Neon/Carbon"],
|
|
590
|
-
pattern: /^(?:gpt-6(?:[.-]2)?-astra|claude-(?:fable-5[.-][12]|opus-5[.-]5)|gemini-4-(?:neon|carbon))(?:$|[-@])/
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
tier: "complex",
|
|
594
|
-
models: [
|
|
595
|
-
"GPT-5.6/6/6.1/6.2 Sol\u30015.6/6.1 Terra",
|
|
596
|
-
"Claude Sonnet 5.5",
|
|
597
|
-
"Gemini 4 Hydrogen/Argon\u30012.5 Pro",
|
|
598
|
-
"Kimi K3/K3.1 Pro",
|
|
599
|
-
"DeepSeek V4 Pro"
|
|
600
|
-
],
|
|
601
|
-
pattern: /^(?:gpt-(?:(?:5[.-]6|6(?:[.-][12])?)-sol|(?:5[.-]6|6[.-]1)-terra)|gemini-(?:4-(?:hydrogen|argon)|2[.-]5-pro)|claude-sonnet-5[.-]5|kimi-k3(?:[.-]1-pro)?|k3(?:-256k)?|deepseek-v4-pro)(?:$|[-@])/
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
tier: "normal",
|
|
605
|
-
models: [
|
|
606
|
-
"Claude Haiku 4.5/5.5",
|
|
607
|
-
"DeepSeek Flash\uFF08\u5404\u4EE3\uFF09",
|
|
608
|
-
"GLM 5.3/Flash",
|
|
609
|
-
"MiMo V2.6 Pro",
|
|
610
|
-
"Grok 4.6/4.7",
|
|
611
|
-
"Gemini 3.6-3.8 Flash",
|
|
612
|
-
"LongCat 2.5"
|
|
613
|
-
],
|
|
614
|
-
pattern: /^(?:claude-haiku-[45][.-]5|deepseek-(?:[a-z0-9.-]+-)?flash|glm-5[.-]3|mimo-v2[.-]6-pro|grok-4[.-][67]|gemini-3[.-][678]-flash|longcat-2[.-]5)(?:$|[-@])/
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
tier: "easy",
|
|
618
|
-
models: ["MiniMax M3.1 Flash", "GPT-5.6/6 Luna"],
|
|
619
|
-
pattern: /^(?:minimax-m3[.-]1-flash|gpt-(?:5[.-]6|6)-luna)(?:$|[-@])/
|
|
620
|
-
}
|
|
621
|
-
];
|
|
622
|
-
var MODEL_TIER_GUIDANCE = MODEL_TIERS.map(
|
|
623
|
-
({ tier, models }) => `${tier}: ${models.join("\u3001")}`
|
|
624
|
-
).join("\n");
|
|
625
|
-
var DIFFICULTY_GRADING_ORDER = `- **\u5148\u5224\u6863\u518D\u9009\u6A21\u578B**\uFF08\u89C4\u5212\u590D\u6742\u2260\u6267\u884C\u590D\u6742\uFF09\uFF1A\u5148\u5B9A\u5B50\u4EFB\u52A1 difficulty \u518D\u9009\u8BE5\u6863\u80DC\u4EFB\u6A21\u578B\uFF1B\u91CD\u8981\u5EA6\u3001\u6587\u4EF6\u6570\u3001\u8017\u65F6\u3001\u53D1\u5E03\u5B89\u5168\u76EE\u5F55\u4E0D\u5347\u6863\uFF0C\u300C\u66F4\u7A33\u59A5/\u66F4\u5B89\u5168/\u72EC\u7ACB review\u300D\u4E0D\u662F\u5347\u6863\u7406\u7531\uFF0C\u9009\u8DB3\u591F\u80DC\u4EFB\u7684\u6700\u4F4E\u6863\uFF0C\u4E0D\u4E3A\u964D\u6863\u62C6\u788E\u3002`;
|
|
626
|
-
var DIFFICULTY_GRADING_TIERS = ` - \u56DB\u6863\uFF1Aeasy\uFF1D\u6839\u56E0\u4E0E\u505A\u6CD5\u660E\u786E\u3001\u5C40\u90E8\u53EF\u9A8C\uFF1Bnormal\uFF1D\u6309\u65E2\u5B9A\u5951\u7EA6\u5B9E\u73B0/\u9A8C\u8BC1\u6216\u5C40\u90E8\u5B9A\u4F4D\uFF1Bcomplex\uFF1D\u591A\u6839\u56E0\u3001\u8DE8\u72B6\u6001\u6216\u5E76\u53D1\u517C\u5BB9\u53D6\u820D\uFF1Bextreme\uFF1D\u67B6\u6784\u672A\u5B9A\u6216\u5B89\u5168/\u5B8C\u6574\u6027\u91CD\u5927\u53D6\u820D\u3002\u5347\u6863\u987B\u6307\u51FA\u672C\u5757\u672A\u51B3\u70B9\uFF0C\u4E0D\u6309\u9879\u76EE\u6574\u4F53\u5B9A\u6863\u3002\u5B9E\u73B0\u4E0E\u590D\u5BA1\u91CD\u5224\uFF0C\u4E0D\u7EE7\u627F\u89C4\u5212\u6863\u3002`;
|
|
627
|
-
function resolveModelTier(model) {
|
|
628
|
-
if (typeof model !== "string") return "unknown";
|
|
629
|
-
const id = model.trim().toLowerCase().split("/").at(-1).replace(/\s+/g, "-");
|
|
630
|
-
if (id.includes("-image") || id.startsWith("nano-banana")) return "unknown";
|
|
631
|
-
return MODEL_TIERS.find(({ pattern }) => pattern.test(id))?.tier ?? "unknown";
|
|
632
|
-
}
|
|
633
|
-
function normalizeDispatchDifficulty(value) {
|
|
634
|
-
if (value === "easy" || value === "\u7B80\u5355") return "easy";
|
|
635
|
-
if (value === "complex" || value === "\u590D\u6742") return "complex";
|
|
636
|
-
if (value === "extreme" || value === "\u6781\u7AEF\u590D\u6742" || value === "\u6781\u5176\u590D\u6742")
|
|
637
|
-
return "extreme";
|
|
638
|
-
return "normal";
|
|
639
|
-
}
|
|
640
|
-
function normalizeSelectionReason(value) {
|
|
641
|
-
if (typeof value !== "string") return void 0;
|
|
642
|
-
const trimmed = value.trim();
|
|
643
|
-
return trimmed.length > 0 ? trimmed : void 0;
|
|
644
|
-
}
|
|
645
|
-
function requiresSelectionReason(difficulty, modelTier) {
|
|
646
|
-
return modelTier !== "unknown" && DISPATCH_TIER_RANK[modelTier] - DISPATCH_TIER_RANK[difficulty] >= 2;
|
|
647
|
-
}
|
|
648
|
-
function checkDispatchSelection(input) {
|
|
649
|
-
const dimension = input.dimension === "design_frontend" || input.dimension === "writing" ? input.dimension : "general";
|
|
650
|
-
const difficulty = normalizeDispatchDifficulty(input.difficulty);
|
|
651
|
-
const modelTier = resolveModelTier(input.model);
|
|
652
|
-
const status = modelTier === "unknown" ? "unknown" : modelTier === difficulty ? "matched" : "mismatch";
|
|
653
|
-
const selectionReason = normalizeSelectionReason(input.selectionReason);
|
|
654
|
-
const message = status === "matched" ? void 0 : status === "unknown" ? "\u6A21\u578B\u6863\u4F4D\u672A\u77E5\uFF1B\u6309\u9886\u57DF\u4E0E\u53EF\u7528\u6027\u5224\u65AD\uFF0C\u4E0D\u963B\u65AD\uFF0C\u5DF2\u542F\u52A8\u52FF\u81EA\u52A8\u91CD\u6D3E\u3002" : selectionReason ? "\u6863\u4F4D\u4E0E\u96BE\u5EA6\u4E0D\u4E00\u81F4\uFF1B\u5DF2\u7ED9\u51FA\u8DE8\u6863\u7406\u7531\uFF0C\u4E0D\u963B\u65AD\uFF0C\u5DF2\u542F\u52A8\u52FF\u81EA\u52A8\u91CD\u6D3E\u3002" : requiresSelectionReason(difficulty, modelTier) ? "\u6A21\u578B\u9AD8\u51FA\u4EFB\u52A1\u96BE\u5EA6\u81F3\u5C11\u4E24\u6863\uFF1B\u542F\u52A8\u524D\u9700\u5728 selectionReason \u8BF4\u660E\u7406\u7531\u3002" : "\u6863\u4F4D\u4E0E\u96BE\u5EA6\u4E0D\u4E00\u81F4\uFF1B\u4E0D\u963B\u65AD\uFF0C\u5DF2\u542F\u52A8\u52FF\u81EA\u52A8\u91CD\u6D3E\u3002";
|
|
655
|
-
return {
|
|
656
|
-
dimension,
|
|
657
|
-
difficulty,
|
|
658
|
-
modelTier,
|
|
659
|
-
status,
|
|
660
|
-
...message ? { message } : {},
|
|
661
|
-
...selectionReason ? { selectionReason } : {}
|
|
662
|
-
};
|
|
663
|
-
}
|
|
664
|
-
function checkDispatchSelectionAdmission(input) {
|
|
665
|
-
const check = checkDispatchSelection(input);
|
|
666
|
-
if (!requiresSelectionReason(check.difficulty, check.modelTier) || check.selectionReason)
|
|
667
|
-
return { ok: true, check };
|
|
668
|
-
const error = {
|
|
669
|
-
code: "selection_reason_required",
|
|
670
|
-
message: `\u8DE8\u6863\u9009\u62E9\u7F3A\u5C11 selectionReason\uFF1A\u6A21\u578B\u6863\u4F4D ${check.modelTier} \u9AD8\u51FA\u4EFB\u52A1\u96BE\u5EA6 ${check.difficulty} \u81F3\u5C11\u4E24\u6863\uFF0C\u8BF7\u8865\u5145\u672C\u6B21\u8DE8\u6863\u7684\u5177\u4F53\u7406\u7531\u540E\u518D\u542F\u52A8\u3002`,
|
|
671
|
-
hint: "\u8865\u4E00\u53E5\u672C\u6B21\u4E3A\u4EC0\u4E48\u8FD9\u6837\u8DE8\u6863\uFF08\u5982\u9886\u57DF\u4F18\u52BF\u3001\u7528\u6237\u660E\u786E\u6307\u5B9A\uFF09\u5373\u53EF\uFF1B\u53EA\u6821\u9A8C\u7406\u7531\u662F\u5426\u5B58\u5728\uFF0C\u4E0D\u4EE3\u8868\u5DF2\u6838\u5B9E\u7528\u6237\u6388\u6743\u3001\u989D\u5EA6/\u8D39\u7528\u6743\u9650\u6216\u7F51\u7EDC\u53EF\u7528\u6027\u3002"
|
|
672
|
-
};
|
|
673
|
-
return { ok: false, check, error };
|
|
674
|
-
}
|
|
675
|
-
function assertDispatchSelectionAdmission(input) {
|
|
676
|
-
const admission = checkDispatchSelectionAdmission(input);
|
|
677
|
-
if (!admission.ok && admission.error)
|
|
678
|
-
throw new Error(`${admission.error.message} ${admission.error.hint}`);
|
|
679
|
-
return admission.check;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
587
|
// packages/ai/agent/agentSelectionPriority.ts
|
|
683
588
|
function parseAgentTimestamp(value) {
|
|
684
589
|
if (typeof value === "number" && Number.isFinite(value)) return value;
|
|
@@ -795,8 +700,8 @@ var CLOSED_OBJECT_SCHEMA_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
|
795
700
|
function stringToolParam(description) {
|
|
796
701
|
return { type: "string", description };
|
|
797
702
|
}
|
|
798
|
-
var READ_DIALOG_TOOL_DESCRIPTION = `Read a persisted dialog (meta + messages) by full dbKey (dialog-<userId>-<id>) or dialog URL; use listDialogs when unclear. A bare id only resolves for the currently logged-in user \u2014 pass user/server. For runs, do not poll a running dialog's full transcript: prefer controlAgentRun, else mode="status" for a compact snapshot; read the transcript only after done/failed/cancelled.
|
|
799
|
-
var LIST_AGENTS_TOOL_DESCRIPTION = "List agents for delegation. Default scope='all' dedupes the user's own/favorite agents (owned, OAuth, custom-API, local) with the public marketplace; scope='public' discovers shared/marketplace agents only
|
|
703
|
+
var READ_DIALOG_TOOL_DESCRIPTION = `Read a persisted dialog (meta + messages) by full dbKey (dialog-<userId>-<id>) or dialog URL; use listDialogs when unclear. A bare id only resolves for the currently logged-in user \u2014 pass user/server. For runs, do not poll a running dialog's full transcript: prefer controlAgentRun, else mode="status" for a compact snapshot; read the transcript only after done/failed/cancelled. Responses are budgeted: reasoning_content, tool_calls, tool results and metadata are head-truncated (truncated, messagesTotal/messagesReturned, omittedChars). For review or verification take diffs from the worktree instead of the full transcript.`;
|
|
704
|
+
var LIST_AGENTS_TOOL_DESCRIPTION = "List agents for delegation. Default scope='all' dedupes the user's own/favorite agents (owned, OAuth, custom-API, local) with the public marketplace; scope='public' discovers shared/marketplace agents only (they may consume platform credits \u2014 check billingSource). Each entry has a runnable agentKey (agent-<userId>-<id> / agent-pub-<id>): Copy the agentKey verbatim and do not infer it from the display name. Copy `agentKey` verbatim into startAgentRun. Returns planningRecommendation (reason, currentTier, requiresPaidApproval): advice when planning is needed, not authorization. availabilityStatus/availabilityReason/nextAvailableAt are advisory reference info, not dispatch gates; unavailableCount counts them. The fan-out guard limits same-batch concurrency only (sharing a credential alone is not a dependency) unless allowUnknownCredential confirms.";
|
|
800
705
|
function buildNoloWorkspaceOpenAiTools(args) {
|
|
801
706
|
const toolNames = new Set(args.toolNames ?? []);
|
|
802
707
|
const tools = [];
|
|
@@ -1353,11 +1258,6 @@ var AGENT_THREAD_ACTIVE_STATUSES = ["pending", "running"];
|
|
|
1353
1258
|
var AGENT_THREAD_TERMINAL_STATUSES = ["done", "failed", "cancelled", "orphaned"];
|
|
1354
1259
|
|
|
1355
1260
|
export {
|
|
1356
|
-
DISPATCH_TIER_RANK,
|
|
1357
|
-
DIFFICULTY_GRADING_ORDER,
|
|
1358
|
-
DIFFICULTY_GRADING_TIERS,
|
|
1359
|
-
resolveModelTier,
|
|
1360
|
-
assertDispatchSelectionAdmission,
|
|
1361
1261
|
resolveAgentSelectionPriority,
|
|
1362
1262
|
compareAgentSelection,
|
|
1363
1263
|
AGENT_SELECTION_PRIORITY_INSTRUCTIONS,
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
// packages/ai/policy/types.ts
|
|
2
|
-
var DEFAULT_USER_PREFERENCE_PROFILE = {
|
|
3
|
-
version: 1,
|
|
4
|
-
tone: {
|
|
5
|
-
preset: "default"
|
|
6
|
-
},
|
|
7
|
-
knowledgeCaptureLevel: 2,
|
|
8
|
-
spaceContextLevel: 3
|
|
9
|
-
};
|
|
10
|
-
|
|
11
1
|
// packages/ai/skills/userPromptSkillSlugs.ts
|
|
12
2
|
var RECOMMENDED_PROMPT_SKILL_SLUGS = ["ub-mode"];
|
|
13
3
|
var ALLOWED_PROMPT_SKILL_SLUGS = new Set(
|
|
@@ -94,10 +84,20 @@ function resolveUserEnabledSkills(preferences) {
|
|
|
94
84
|
return [];
|
|
95
85
|
}
|
|
96
86
|
|
|
87
|
+
// packages/ai/policy/types.ts
|
|
88
|
+
var DEFAULT_USER_PREFERENCE_PROFILE = {
|
|
89
|
+
version: 1,
|
|
90
|
+
tone: {
|
|
91
|
+
preset: "default"
|
|
92
|
+
},
|
|
93
|
+
knowledgeCaptureLevel: 2,
|
|
94
|
+
spaceContextLevel: 3
|
|
95
|
+
};
|
|
96
|
+
|
|
97
97
|
export {
|
|
98
|
-
DEFAULT_USER_PREFERENCE_PROFILE,
|
|
99
98
|
normalizeEnabledPromptSkills,
|
|
100
99
|
isAccountOnDemandWorkflowSkill,
|
|
101
100
|
normalizeEnabledSkills,
|
|
102
|
-
resolveUserEnabledSkills
|
|
101
|
+
resolveUserEnabledSkills,
|
|
102
|
+
DEFAULT_USER_PREFERENCE_PROFILE
|
|
103
103
|
};
|
|
@@ -18,14 +18,24 @@ var BUILTIN_AGENT_CATALOG = [
|
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
id: "01APPBUILDER00000001YAII3I",
|
|
21
|
+
// 2026-11 退场:应用构建能力已转为内置 skill(feedback / agent-creator /
|
|
22
|
+
// app-builder,见 ai/skills/specialistSkills.ts),入口统一走「用户当前
|
|
23
|
+
// 选中的 Agent + 对话级技能挂载」,不再需要专用预置 Agent。
|
|
24
|
+
// 保持 group: "builtin"(与 lifecycle 正交)以维持 BUILTIN_PLATFORM_AGENT_KEYS、
|
|
25
|
+
// 信任档与历史旧对话的回读/路由兼容;lifecycle=retired 让广场过滤掉它。
|
|
21
26
|
group: "builtin",
|
|
27
|
+
lifecycle: "retired",
|
|
22
28
|
name: "\u5E94\u7528\u6784\u5EFA\u52A9\u624B",
|
|
23
29
|
provider: "nolo",
|
|
24
30
|
model: "deepseek-flash"
|
|
25
31
|
},
|
|
26
32
|
{
|
|
27
33
|
id: "01ECOMMERCEAG00000001PYQ2J",
|
|
34
|
+
// 已退场(淘宝/京东专用工具已下线):group 与 lifecycle 正交——保持 builtin 组,
|
|
35
|
+
// 让 BUILTIN_PLATFORM_AGENT_KEYS / resolveAgentReadServers / 平台路由继续兼容
|
|
36
|
+
// 旧对话与硬 key 引用;lifecycle=retired 使 retiredCatalogIds() 在广场过滤它。
|
|
28
37
|
group: "builtin",
|
|
38
|
+
lifecycle: "retired",
|
|
29
39
|
name: "\u7535\u5546\u5546\u54C1\u53C2\u6570\u52A9\u624B",
|
|
30
40
|
// provider 必须是 "nolo"(平台托管命名空间):平台价只注册在 nolo 下,
|
|
31
41
|
// 写上游名 "openai" 会落零价虚拟模型(gpt-6-luna 在此口径下 cost=0 →
|
|
@@ -35,13 +45,22 @@ var BUILTIN_AGENT_CATALOG = [
|
|
|
35
45
|
},
|
|
36
46
|
{
|
|
37
47
|
id: "01NOLOAGENTCRT000000000001",
|
|
48
|
+
// AI 创建助手退场:能力转内置 skill agent-creator,入口走「用户当前选中的
|
|
49
|
+
// Agent + 对话级技能挂载」,保持 builtin 组做历史兼容。
|
|
38
50
|
group: "builtin",
|
|
51
|
+
lifecycle: "retired",
|
|
39
52
|
name: "AI \u521B\u5EFA\u52A9\u624B",
|
|
40
53
|
provider: "nolo",
|
|
41
54
|
model: "deepseek-flash"
|
|
42
55
|
},
|
|
43
56
|
{
|
|
44
57
|
id: "01NOLOFEEDBACKA000000000R2",
|
|
58
|
+
// 刻意保持活跃、不退场(2026-11 复核):反馈入口是**受控官方通道**——
|
|
59
|
+
// 服务端对「跨租户写用户反馈表」与「向管理员发紧急通知」有严格安全锁,
|
|
60
|
+
// 只豁免这个 key(tableToolHandlers / modelUsageToolHandlers 的
|
|
61
|
+
// 反馈入口白名单)。改成通用 Agent + feedback 技能会让普通用户写反馈报 403,
|
|
62
|
+
// 而给任意通用 Agent 打开跨租户写权限是不可接受的安全降级。
|
|
63
|
+
// 因此 app-builder / agent-creator 转内置 skill 退场,反馈入口继续在架。
|
|
45
64
|
group: "builtin",
|
|
46
65
|
name: "\u53CD\u9988\u5165\u53E3",
|
|
47
66
|
provider: "nolo",
|
|
@@ -49,7 +68,10 @@ var BUILTIN_AGENT_CATALOG = [
|
|
|
49
68
|
},
|
|
50
69
|
{
|
|
51
70
|
id: "01CHROMEOPR000000000001",
|
|
71
|
+
// 已退场:无生产 UI/路由入口;保持 builtin 组(同电商条目)以保留历史 key
|
|
72
|
+
// 的平台集群回读与路由,lifecycle=retired 保证广场不泄漏。
|
|
52
73
|
group: "builtin",
|
|
74
|
+
lifecycle: "retired",
|
|
53
75
|
name: "Chrome \u64CD\u4F5C\u5458",
|
|
54
76
|
provider: "nolo",
|
|
55
77
|
model: "deepseek-flash"
|
|
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
|
|
|
11658
11658
|
const output = deps.output ?? process.stdout;
|
|
11659
11659
|
const errorOutput = deps.errorOutput ?? process.stderr;
|
|
11660
11660
|
if (args[0] === "rebuild") {
|
|
11661
|
-
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-
|
|
11661
|
+
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-WQRLLZAT.js");
|
|
11662
11662
|
return runUsageRebuildCommand(args.slice(1), deps);
|
|
11663
11663
|
}
|
|
11664
11664
|
if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
|
|
@@ -11729,7 +11729,7 @@ async function runUsageCommand(args, deps) {
|
|
|
11729
11729
|
return 0;
|
|
11730
11730
|
}
|
|
11731
11731
|
async function resolveUsageUserId(env) {
|
|
11732
|
-
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-
|
|
11732
|
+
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-BXHQ3PXP.js");
|
|
11733
11733
|
return resolveLocalUserId(env);
|
|
11734
11734
|
}
|
|
11735
11735
|
function isLocalDbMissingError(error) {
|
|
@@ -3,29 +3,29 @@ import {
|
|
|
3
3
|
mergeReferences,
|
|
4
4
|
resolveReferenceAssets,
|
|
5
5
|
resolveToolsFromKeys
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-APXC3SQO.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-WFEWP352.js";
|
|
13
13
|
import {
|
|
14
14
|
getDocState
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BD5YJJLJ.js";
|
|
16
16
|
import {
|
|
17
17
|
getTableState
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LJ6WIQZO.js";
|
|
19
19
|
import {
|
|
20
20
|
selectAllMsgs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7B55IVLF.js";
|
|
22
22
|
import {
|
|
23
23
|
getCurrentSpaceIdRaw,
|
|
24
24
|
getViewMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YN23INFZ.js";
|
|
26
26
|
import {
|
|
27
27
|
selectById
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ADYWV732.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveToolBaseUrl
|
|
31
31
|
} from "./chunk-KQHEGELM.js";
|
|
@@ -41,12 +41,12 @@ import {
|
|
|
41
41
|
projectToolMessageContent,
|
|
42
42
|
resolveAgentRecommendedSkillNames,
|
|
43
43
|
resolveAgentRequiredPackIds
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-KO5GO2BC.js";
|
|
45
45
|
import {
|
|
46
46
|
attachmentKind,
|
|
47
47
|
extractReferenceKeysFromMessage,
|
|
48
48
|
normalizeAttachmentPart
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-7WHCIA5V.js";
|
|
50
50
|
import {
|
|
51
51
|
asRecordOrEmpty
|
|
52
52
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
expandEnabledPackPromptPatches,
|
|
64
64
|
expandEnabledPacks,
|
|
65
65
|
resolveEffectiveEnabledPacks
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-JW6OURKM.js";
|
|
67
67
|
import {
|
|
68
68
|
metaKey
|
|
69
69
|
} from "./chunk-SYTHYBMI.js";
|
|
@@ -1446,6 +1446,16 @@ var withRequestContextBlocks = (contexts, blocks) => {
|
|
|
1446
1446
|
requestContextBlocks: [...contexts.requestContextBlocks ?? [], ...cleaned]
|
|
1447
1447
|
};
|
|
1448
1448
|
};
|
|
1449
|
+
var canProxyToExplicitServerBase = (args) => {
|
|
1450
|
+
const { runtimeOptions, dialogExtraReferences } = args;
|
|
1451
|
+
if (Array.isArray(args.userInput)) return false;
|
|
1452
|
+
if (runtimeOptions?.extraTools?.length) return false;
|
|
1453
|
+
if (runtimeOptions?.editingTarget) return false;
|
|
1454
|
+
if (runtimeOptions?.imageConfigOverride) return false;
|
|
1455
|
+
if (Array.isArray(dialogExtraReferences) && dialogExtraReferences.length > 0)
|
|
1456
|
+
return false;
|
|
1457
|
+
return true;
|
|
1458
|
+
};
|
|
1449
1459
|
var mergeAgentToolsWithRuntime = (agentConfig, referencedTools, mentionedTools, runtimeOptions, state, accountSkillRuntime) => {
|
|
1450
1460
|
const userSkills = agentConfig.runtimePromptAlreadyInMessages ? null : accountSkillRuntime;
|
|
1451
1461
|
const userSkillPromptPatches = userSkills?.skillPromptPatches ?? [];
|
|
@@ -1845,6 +1855,7 @@ export {
|
|
|
1845
1855
|
buildDynamicContexts,
|
|
1846
1856
|
mergeContexts,
|
|
1847
1857
|
withRequestContextBlocks,
|
|
1858
|
+
canProxyToExplicitServerBase,
|
|
1848
1859
|
mergeAgentToolsWithRuntime,
|
|
1849
1860
|
applyImageConfigRuntimeOverride,
|
|
1850
1861
|
resolveImageGenerationStreamingState,
|