nolo-cli 0.16.0-alpha.16 → 0.16.0-alpha.17
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-UD2KY354.js → _executeModel-GP2DXECM.js} +34 -30
- package/{action-F5JACQBG.js → action-TK62YXTY.js} +6 -5
- package/{addContentAction-AQXEYRBE.js → addContentAction-IEEBATAA.js} +5 -4
- package/{addDialogAgentAction-EJHHJZWW.js → addDialogAgentAction-XUZNC36X.js} +4 -3
- package/{agentDeleteCommand-UVL3YSRK.js → agentDeleteCommand-6C77LXAA.js} +23 -21
- package/{agentEmailCommands-77H4MECZ.js → agentEmailCommands-7KZPAGIW.js} +45 -41
- package/{agentListCommands-J2F4E5C6.js → agentListCommands-EFFASIR2.js} +21 -19
- package/{agentMachineCommands-DKDXHUDO.js → agentMachineCommands-XHLRGCLP.js} +21 -19
- package/{agentPullCommand-6HWUT3SW.js → agentPullCommand-ZZGU5KOY.js} +4 -4
- package/{agentRecordCommands-KESYXWJZ.js → agentRecordCommands-ITBT7MPU.js} +40 -36
- package/{agentRunCommand-LZMUCDVH.js → agentRunCommand-HEBSX6ER.js} +41 -37
- package/{agentRuntimeLocal-44OVOJQ7.js → agentRuntimeLocal-KV6MQJQS.js} +14 -12
- package/{agentSlice-R4TX7ZSI.js → agentSlice-HOLDB2UY.js} +5 -4
- package/{appDeleteCommands-KXZCWKF2.js → appDeleteCommands-ROPKN6PL.js} +18 -16
- package/{appDeployCommands-JNXA3HP7.js → appDeployCommands-65E4ARQN.js} +18 -16
- package/{appDeployStatusCommands-IZ225RMY.js → appDeployStatusCommands-RFWMQDSJ.js} +18 -16
- package/{appGetCommands-WALF7VTA.js → appGetCommands-LDO2HNAL.js} +18 -16
- package/{appListCommands-Y3KMGFVO.js → appListCommands-S4MBG4KD.js} +18 -16
- package/{authCommand-MSSBXCQ6.js → authCommand-WJZPOLSS.js} +9 -8
- package/{authCommands-YXGOXNBZ.js → authCommands-XTBV7OFZ.js} +6 -5
- package/{chunk-IWLUTMYX.js → chunk-27MGYWLZ.js} +1 -1
- package/{chunk-PXZY7NIS.js → chunk-3J6QER3H.js} +5 -5
- package/{chunk-SOTZ6RDN.js → chunk-3Q7WHGCB.js} +1 -1
- package/{chunk-MTU75CZ2.js → chunk-B5TOXZAK.js} +1 -1
- package/{chunk-ARJBFRBT.js → chunk-CIF5XTPN.js} +37 -35
- package/{chunk-UIVHASVR.js → chunk-DS2YYH6W.js} +3 -3
- package/{chunk-Y62XMRMG.js → chunk-DXOUTEQC.js} +7 -7
- package/{chunk-X6LNYUFU.js → chunk-ETXKHE7J.js} +5 -5
- package/{chunk-IIHJMUV5.js → chunk-EWLAMUG5.js} +4 -4
- package/{chunk-LBOJLRSS.js → chunk-HETVWFFQ.js} +362 -314
- package/{chunk-QW7K3Y7V.js → chunk-HRLDQJW7.js} +39 -157
- package/{chunk-5PWAAPWU.js → chunk-IG3SA64O.js} +4 -4
- package/{chunk-SOW2GCA5.js → chunk-IOOMJJ4Z.js} +1 -1
- package/{chunk-NKN2NIW7.js → chunk-JJPANCH2.js} +10 -8
- package/{chunk-YJKXGHJ6.js → chunk-JKUL77KQ.js} +2 -2
- package/{chunk-6HV3GSA4.js → chunk-JQOWVDDX.js} +6 -6
- package/{chunk-FQLNGLOX.js → chunk-KF27FHVT.js} +1 -1
- package/{chunk-EABWT43X.js → chunk-L2DKNKL4.js} +2 -2
- package/{chunk-IAXU3LK5.js → chunk-LD6DKWMF.js} +14 -14
- package/{chunk-IPY6NKPP.js → chunk-LFTQYP3K.js} +3 -3
- package/{chunk-TX6S7JCM.js → chunk-MT2DOPXQ.js} +2 -2
- package/{chunk-3ZLCL32L.js → chunk-N3IKVYLL.js} +1 -1
- package/{chunk-4PIVMGLG.js → chunk-N77EBDJJ.js} +2 -2
- package/{chunk-IRLFPNG7.js → chunk-NJYEXLKX.js} +2 -2
- package/{chunk-3S2VOMIF.js → chunk-NLQBLZUO.js} +2 -2
- package/{chunk-PVHN3TZV.js → chunk-PH7SXF5R.js} +133 -51
- package/{chunk-KMQPSTMJ.js → chunk-TRT4I4UD.js} +2 -2
- package/{chunk-HYURMZU3.js → chunk-V3A3PXQQ.js} +3 -3
- package/{chunk-DLH6BOUO.js → chunk-VE7PIZFT.js} +1 -1
- package/{chunk-W4NVOSFF.js → chunk-WFHXMLHZ.js} +1 -1
- package/{chunk-H33743XH.js → chunk-WJRJDX2W.js} +1 -1
- package/{setDialogExtraReferencesAction-LR6MSIXO.js → chunk-WVQXRCCZ.js} +2 -17
- package/{chunk-RADTZFVM.js → chunk-WWWIRXLT.js} +39 -47
- package/chunk-X4Q4UZEY.js +26 -0
- package/{chunk-KFHN5NGJ.js → chunk-XGJRT3IK.js} +1 -1
- package/{chunk-OSIJVBXP.js → chunk-XV5I4HHL.js} +14 -85
- package/{chunk-SR4IC7DS.js → chunk-Y3GNPBAB.js} +1 -1
- package/{chunk-RPDGJO4D.js → chunk-YPAO6HUT.js} +2 -2
- package/chunk-YZ2PZFC6.js +671 -0
- package/chunk-ZZ2MH7LE.js +84 -0
- package/{cliExecutor-K3F7DMRO.js → cliExecutor-DNE7TCC4.js} +2 -2
- package/codingSkills-3RK4CIL2.js +48 -0
- package/{createAgentAutomationAction-HXIGGMHG.js → createAgentAutomationAction-63XOK7PE.js} +14 -13
- package/{createDialogAction-HDNEXHMH.js → createDialogAction-NBFEO4SU.js} +16 -15
- package/{createPageAction-F37QJEHE.js → createPageAction-JYVUSH57.js} +20 -19
- package/{dbSlice-7KQH6GOU.js → dbSlice-CJJKYYXK.js} +4 -3
- package/{dialogCommands-6HHOMMSZ.js → dialogCommands-JO7YCVND.js} +19 -17
- package/{dialogSlice-ZCVFV3WX.js → dialogSlice-6SOMUMGM.js} +14 -13
- package/{docCreateCommands-C6DUOJZQ.js → docCreateCommands-H7KQ345X.js} +17 -15
- package/{docDeleteCommands-WAKYWSKE.js → docDeleteCommands-OSEFFFJ5.js} +18 -16
- package/{docReadCommands-QXWKU7NB.js → docReadCommands-7A5PGQ7J.js} +17 -15
- package/{docStore-CSWTGKJJ.js → docStore-K2SEQBBX.js} +15 -14
- package/{docUpdateCommands-7AX4KLZZ.js → docUpdateCommands-3COEELBB.js} +17 -15
- package/{fetchMessages-KTNM7QAR.js → fetchMessages-BMGVZVSE.js} +4 -3
- package/{handleSendMessageAction-3KHB7J7E.js → handleSendMessageAction-L6NJXNIP.js} +15 -14
- package/index.js +51 -51
- package/{localDialogRead-2VRI24F4.js → localDialogRead-HQZPVIE3.js} +1 -1
- package/{localRuntimeDb-LGDF6FQP.js → localRuntimeDb-THJZGAOJ.js} +1 -1
- package/{machineCommands-GKOAG4SD.js → machineCommands-DGDX3GHH.js} +47 -43
- package/{machineWsRunDispatch-CBRB2L3Q.js → machineWsRunDispatch-ZV6BHKXA.js} +38 -34
- package/package.json +1 -1
- package/queryRunOverlay-KQDJBH32.js +203 -0
- package/{readlineWorkspace-LTW3NLCR.js → readlineWorkspace-BUSQQXPY.js} +61 -57
- package/{removeDialogAgentAction-YDHBFEGI.js → removeDialogAgentAction-XRTUVGAN.js} +6 -5
- package/{runAgentClientLoop-LVE52RH4.js → runAgentClientLoop-2YPEUG3Q.js} +30 -26
- package/runOverlayPresentation-BHD5POEM.js +79 -0
- package/{runtimeDoctorCommands-THIHX2SY.js → runtimeDoctorCommands-E2OUORHK.js} +6 -6
- package/setDialogExtraReferencesAction-WNZINFOX.js +27 -0
- package/{setPrimaryDialogAgentAction-57GRIGX5.js → setPrimaryDialogAgentAction-ECVV6DJ3.js} +6 -5
- package/{settingSlice-O23YDK2O.js → settingSlice-UVDEFVMQ.js} +5 -4
- package/{spaceCommands-7RB3OWGN.js → spaceCommands-XPHOVJTB.js} +20 -18
- package/{spaceSlice-HLNFOVCA.js → spaceSlice-EGOJICFM.js} +14 -13
- package/{streamAgentChatTurn-VS5W3C3N.js → streamAgentChatTurn-LAFUD4KS.js} +62 -37
- package/{tools-RWQXREN7.js → tools-O6DVCZ3R.js} +24 -20
- package/types-ZSTJ7MPR.js +7 -0
- package/{updateDialogTitleAction-C6WFIIAW.js → updateDialogTitleAction-DVQFOG64.js} +17 -16
- package/{chunk-O4BU24WZ.js → chunk-6Y7A3OQQ.js} +3 -3
- package/{chunk-CMKUBIGW.js → chunk-X7W4TNB4.js} +3 -3
- package/{localRuntimeAuthority-TEGCOWX4.js → localRuntimeAuthority-4IXJCHZ7.js} +3 -3
|
@@ -5,35 +5,37 @@ import {
|
|
|
5
5
|
pickDefined,
|
|
6
6
|
printCliError,
|
|
7
7
|
resolveCliContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KF27FHVT.js";
|
|
9
9
|
import {
|
|
10
10
|
hasFlag,
|
|
11
11
|
hasHelpArg
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-IG3SA64O.js";
|
|
13
|
+
import "./chunk-N77EBDJJ.js";
|
|
14
|
+
import "./chunk-Y3GNPBAB.js";
|
|
15
15
|
import "./chunk-VHBWHNVT.js";
|
|
16
16
|
import "./chunk-VF4K2QE6.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-AAODAAUQ.js";
|
|
17
|
+
import "./chunk-JJPANCH2.js";
|
|
19
18
|
import "./chunk-ZNFJWEN4.js";
|
|
19
|
+
import "./chunk-AAODAAUQ.js";
|
|
20
20
|
import "./chunk-OIQPORYI.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-DXOUTEQC.js";
|
|
22
22
|
import "./chunk-LSFAWXKC.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-IOOMJJ4Z.js";
|
|
24
24
|
import "./chunk-KFEVY3ST.js";
|
|
25
25
|
import "./chunk-MUCU6ATG.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-XV5I4HHL.js";
|
|
27
|
+
import "./chunk-EWLAMUG5.js";
|
|
28
28
|
import "./chunk-5MMAK75Q.js";
|
|
29
|
-
import "./chunk-HQPG2PIV.js";
|
|
30
29
|
import "./chunk-5CS33IBL.js";
|
|
31
30
|
import "./chunk-JZPBVBIY.js";
|
|
31
|
+
import "./chunk-HQPG2PIV.js";
|
|
32
32
|
import "./chunk-ZHXJ6M7T.js";
|
|
33
|
+
import "./chunk-HNMXYYJR.js";
|
|
34
|
+
import "./chunk-27MGYWLZ.js";
|
|
33
35
|
import "./chunk-AL2V7U3E.js";
|
|
34
36
|
import "./chunk-4PWB7JRR.js";
|
|
37
|
+
import "./chunk-ZZ2MH7LE.js";
|
|
35
38
|
import "./chunk-DWLEOOGR.js";
|
|
36
|
-
import "./chunk-HNMXYYJR.js";
|
|
37
39
|
import "./chunk-IDZTNRP2.js";
|
|
38
40
|
import {
|
|
39
41
|
readOption
|
|
@@ -42,13 +44,13 @@ import "./chunk-OLZBQWZU.js";
|
|
|
42
44
|
import "./chunk-RK5NYQEL.js";
|
|
43
45
|
import "./chunk-O6W2O2DA.js";
|
|
44
46
|
import "./chunk-KX6YBIHG.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-O4BU24WZ.js";
|
|
48
|
-
import "./chunk-I42VC5KR.js";
|
|
47
|
+
import "./chunk-NLQBLZUO.js";
|
|
48
|
+
import "./chunk-6Y7A3OQQ.js";
|
|
49
49
|
import "./chunk-WWC7I6TA.js";
|
|
50
50
|
import "./chunk-JTINRTBT.js";
|
|
51
|
+
import "./chunk-I42VC5KR.js";
|
|
51
52
|
import "./chunk-QSJ3HFEF.js";
|
|
53
|
+
import "./chunk-X4Q4UZEY.js";
|
|
52
54
|
import "./chunk-XPC5C7BK.js";
|
|
53
55
|
import "./chunk-DVRHHFEA.js";
|
|
54
56
|
import "./chunk-OOSFSFMA.js";
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultOpenBrowser
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TRT4I4UD.js";
|
|
4
4
|
import {
|
|
5
5
|
generateCloudflareEmailRoutingToken,
|
|
6
6
|
parseFlagWithOptionalValue,
|
|
7
7
|
runCloudflareOAuthLogin,
|
|
8
8
|
upsertEnvVariable
|
|
9
9
|
} from "./chunk-RG2U2MTJ.js";
|
|
10
|
-
import "./chunk-6HYVJV7B.js";
|
|
11
10
|
import {
|
|
12
11
|
generatePkcePair,
|
|
13
12
|
runAntigravityOAuthLogin,
|
|
@@ -18,19 +17,20 @@ import {
|
|
|
18
17
|
runXaiOAuthLogin,
|
|
19
18
|
startCallbackServer
|
|
20
19
|
} from "./chunk-UB4RYYNQ.js";
|
|
20
|
+
import "./chunk-6HYVJV7B.js";
|
|
21
21
|
import "./chunk-L6NVTGI7.js";
|
|
22
|
+
import "./chunk-WJRJDX2W.js";
|
|
23
|
+
import "./chunk-LM6IYQ3F.js";
|
|
22
24
|
import "./chunk-MUCU6ATG.js";
|
|
23
|
-
import "./chunk-HQPG2PIV.js";
|
|
24
25
|
import {
|
|
25
26
|
createOAuthTokenStore
|
|
26
27
|
} from "./chunk-JZPBVBIY.js";
|
|
28
|
+
import "./chunk-HQPG2PIV.js";
|
|
27
29
|
import "./chunk-ZHXJ6M7T.js";
|
|
28
|
-
import "./chunk-JBTJAPUF.js";
|
|
29
30
|
import {
|
|
30
31
|
toErrorMessage
|
|
31
32
|
} from "./chunk-HNMXYYJR.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-LM6IYQ3F.js";
|
|
33
|
+
import "./chunk-JBTJAPUF.js";
|
|
34
34
|
import {
|
|
35
35
|
buildEnvFromProfile,
|
|
36
36
|
loadProfileConfig
|
|
@@ -38,10 +38,11 @@ import {
|
|
|
38
38
|
import "./chunk-A7GB5UGH.js";
|
|
39
39
|
import "./chunk-OLZBQWZU.js";
|
|
40
40
|
import "./chunk-O6W2O2DA.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-I42VC5KR.js";
|
|
41
|
+
import "./chunk-6Y7A3OQQ.js";
|
|
43
42
|
import "./chunk-WWC7I6TA.js";
|
|
43
|
+
import "./chunk-I42VC5KR.js";
|
|
44
44
|
import "./chunk-QSJ3HFEF.js";
|
|
45
|
+
import "./chunk-X4Q4UZEY.js";
|
|
45
46
|
import "./chunk-3EUW3WEO.js";
|
|
46
47
|
import "./chunk-U6VC4MU4.js";
|
|
47
48
|
import "./chunk-KUG52IAP.js";
|
|
@@ -6,17 +6,18 @@ import {
|
|
|
6
6
|
runLoginCommand,
|
|
7
7
|
runLogoutCommand,
|
|
8
8
|
runWhoamiCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TRT4I4UD.js";
|
|
10
10
|
import "./chunk-6HYVJV7B.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-H33743XH.js";
|
|
11
|
+
import "./chunk-WJRJDX2W.js";
|
|
13
12
|
import "./chunk-LM6IYQ3F.js";
|
|
13
|
+
import "./chunk-JBTJAPUF.js";
|
|
14
14
|
import "./chunk-ROWQEJRP.js";
|
|
15
15
|
import "./chunk-A7GB5UGH.js";
|
|
16
16
|
import "./chunk-OLZBQWZU.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-I42VC5KR.js";
|
|
17
|
+
import "./chunk-6Y7A3OQQ.js";
|
|
19
18
|
import "./chunk-WWC7I6TA.js";
|
|
19
|
+
import "./chunk-I42VC5KR.js";
|
|
20
|
+
import "./chunk-X4Q4UZEY.js";
|
|
20
21
|
import "./chunk-3EUW3WEO.js";
|
|
21
22
|
import "./chunk-U6VC4MU4.js";
|
|
22
23
|
import "./chunk-LCBAMY2M.js";
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
patch,
|
|
12
12
|
remove,
|
|
13
13
|
write
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NLQBLZUO.js";
|
|
15
15
|
import {
|
|
16
16
|
createAgentKey,
|
|
17
17
|
toTrimmedString
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6Y7A3OQQ.js";
|
|
19
19
|
import {
|
|
20
20
|
asyncThunkCreator,
|
|
21
21
|
buildCreateSlice,
|
|
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
|
|
|
300
300
|
const overrides = {};
|
|
301
301
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
302
302
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
303
|
-
const { _executeModel } = await import("./_executeModel-
|
|
303
|
+
const { _executeModel } = await import("./_executeModel-GP2DXECM.js");
|
|
304
304
|
return _executeModel(
|
|
305
305
|
{
|
|
306
306
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
|
|
|
321
321
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
322
322
|
*/
|
|
323
323
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
324
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
324
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-2YPEUG3Q.js");
|
|
325
325
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
326
326
|
{
|
|
327
327
|
agentKey: args.agentKey,
|
|
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
|
|
|
337
337
|
* 聊天轮次流式 Agent 调用
|
|
338
338
|
*/
|
|
339
339
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
340
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
340
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-LAFUD4KS.js");
|
|
341
341
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
342
342
|
}),
|
|
343
343
|
/**
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
buildLocalAgentLookupKeys,
|
|
9
9
|
normalizeAgentHandle,
|
|
10
10
|
shouldReadAgentKeyRemotely
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Y3GNPBAB.js";
|
|
12
12
|
import {
|
|
13
13
|
LOCAL_CODEX_AGENT_ID,
|
|
14
14
|
LOCAL_CODEX_AGENT_KEY,
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
} from "./chunk-VHBWHNVT.js";
|
|
18
18
|
import {
|
|
19
19
|
inferCaptureIntent
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XGJRT3IK.js";
|
|
21
21
|
import {
|
|
22
22
|
inlineImageUrlsForCustomProvider,
|
|
23
23
|
prepareTools
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MT2DOPXQ.js";
|
|
25
25
|
import {
|
|
26
26
|
getAntigravityUserAgent,
|
|
27
27
|
isAntigravityOAuthAgent,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
readXhsProfileFunctionSchema,
|
|
43
43
|
rememberMemoryFunctionSchema,
|
|
44
44
|
resolveEffectiveEnabledPacks
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-PH7SXF5R.js";
|
|
46
46
|
import {
|
|
47
47
|
createDrainExhaustedResponse,
|
|
48
48
|
isCoreDrainingBody,
|
|
@@ -52,15 +52,18 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
normalizeDialogTitle
|
|
54
54
|
} from "./chunk-OWOHNGCN.js";
|
|
55
|
+
import {
|
|
56
|
+
getDefaultCliLocalRuntimeDb
|
|
57
|
+
} from "./chunk-WJRJDX2W.js";
|
|
55
58
|
import {
|
|
56
59
|
prepareTokenUsageData
|
|
57
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-HETVWFFQ.js";
|
|
58
61
|
import {
|
|
59
62
|
BUILTIN_TITLE_LLM_CONFIG
|
|
60
63
|
} from "./chunk-XOIF2TNF.js";
|
|
61
64
|
import {
|
|
62
65
|
fetchServerSyncedCredential
|
|
63
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-3J6QER3H.js";
|
|
64
67
|
import {
|
|
65
68
|
buildAgentRuntimeDialogWritePlan,
|
|
66
69
|
buildLocalWorkspaceOpenAiTools,
|
|
@@ -74,7 +77,7 @@ import {
|
|
|
74
77
|
parseSseDataLineObject,
|
|
75
78
|
readOpenAiCompatibleSseCompletion,
|
|
76
79
|
resolveOpenAiCompatibleProviderConfig
|
|
77
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-JJPANCH2.js";
|
|
78
81
|
import {
|
|
79
82
|
buildPlatformChatCompletionRequest,
|
|
80
83
|
canUsePlatformChatProvider,
|
|
@@ -89,7 +92,7 @@ import {
|
|
|
89
92
|
} from "./chunk-OIQPORYI.js";
|
|
90
93
|
import {
|
|
91
94
|
summarizeToolArguments
|
|
92
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-DXOUTEQC.js";
|
|
93
96
|
import {
|
|
94
97
|
convertMessagesToResponsesInput,
|
|
95
98
|
toResponsesTools
|
|
@@ -101,16 +104,12 @@ import {
|
|
|
101
104
|
buildLoadSkillExecutor,
|
|
102
105
|
buildNoloWorkspaceCliToolExecutors,
|
|
103
106
|
buildNoloWorkspaceOpenAiTools,
|
|
104
|
-
canonicalizeToolNames,
|
|
105
107
|
parseNoloWorkspaceToolArguments,
|
|
106
108
|
resolveRuntimeToolSurfaceForAgent
|
|
107
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-XV5I4HHL.js";
|
|
108
110
|
import {
|
|
109
111
|
clipCompactText
|
|
110
112
|
} from "./chunk-5MMAK75Q.js";
|
|
111
|
-
import {
|
|
112
|
-
isAdaptiveThinkingModelId
|
|
113
|
-
} from "./chunk-HQPG2PIV.js";
|
|
114
113
|
import {
|
|
115
114
|
createFileCredentialBroker,
|
|
116
115
|
resolveCurrentRunRuntimeToolPolicy,
|
|
@@ -123,6 +122,15 @@ import {
|
|
|
123
122
|
readOAuthCredential,
|
|
124
123
|
resolveFreshAccessToken
|
|
125
124
|
} from "./chunk-JZPBVBIY.js";
|
|
125
|
+
import {
|
|
126
|
+
isAdaptiveThinkingModelId
|
|
127
|
+
} from "./chunk-HQPG2PIV.js";
|
|
128
|
+
import {
|
|
129
|
+
toErrorMessage
|
|
130
|
+
} from "./chunk-HNMXYYJR.js";
|
|
131
|
+
import {
|
|
132
|
+
canonicalizeToolNames
|
|
133
|
+
} from "./chunk-ZZ2MH7LE.js";
|
|
126
134
|
import {
|
|
127
135
|
compactWhitespace
|
|
128
136
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -149,16 +157,10 @@ import {
|
|
|
149
157
|
import {
|
|
150
158
|
CliProviderQuotaError,
|
|
151
159
|
executeCli
|
|
152
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-X7W4TNB4.js";
|
|
153
161
|
import {
|
|
154
162
|
buildCliPrompt
|
|
155
163
|
} from "./chunk-ATNTHIZI.js";
|
|
156
|
-
import {
|
|
157
|
-
toErrorMessage
|
|
158
|
-
} from "./chunk-HNMXYYJR.js";
|
|
159
|
-
import {
|
|
160
|
-
getDefaultCliLocalRuntimeDb
|
|
161
|
-
} from "./chunk-H33743XH.js";
|
|
162
164
|
import {
|
|
163
165
|
isCompiledBinary,
|
|
164
166
|
parseUserIdFromAuthToken
|
|
@@ -170,13 +172,13 @@ import {
|
|
|
170
172
|
createTokenKey,
|
|
171
173
|
createUserKey,
|
|
172
174
|
dialogMessageRange
|
|
173
|
-
} from "./chunk-
|
|
174
|
-
import {
|
|
175
|
-
asTrimmedNonEmptyStringArray
|
|
176
|
-
} from "./chunk-I42VC5KR.js";
|
|
175
|
+
} from "./chunk-6Y7A3OQQ.js";
|
|
177
176
|
import {
|
|
178
177
|
asOptionalFiniteNumber
|
|
179
178
|
} from "./chunk-WWC7I6TA.js";
|
|
179
|
+
import {
|
|
180
|
+
asTrimmedNonEmptyStringArray
|
|
181
|
+
} from "./chunk-I42VC5KR.js";
|
|
180
182
|
import {
|
|
181
183
|
asTrimmedLowercaseString
|
|
182
184
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -558,7 +560,7 @@ var STRINGS = {
|
|
|
558
560
|
en: "abort the operation",
|
|
559
561
|
zh: "\u4E2D\u6B62\u64CD\u4F5C"
|
|
560
562
|
},
|
|
561
|
-
// --- Ask choice (
|
|
563
|
+
// --- Ask choice (ask_user) ------------------------------------------
|
|
562
564
|
askChoiceTitle: {
|
|
563
565
|
en: "question",
|
|
564
566
|
zh: "\u95EE\u9898"
|
|
@@ -3057,7 +3059,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3057
3059
|
}
|
|
3058
3060
|
};
|
|
3059
3061
|
},
|
|
3060
|
-
|
|
3062
|
+
ask_user: async (call) => {
|
|
3061
3063
|
const parsedArgs = (() => {
|
|
3062
3064
|
try {
|
|
3063
3065
|
return JSON.parse(call.arguments || "{}");
|
|
@@ -3073,8 +3075,8 @@ function buildLocalToolExecutors(args) {
|
|
|
3073
3075
|
if (!hasQuestions && (!question || choices.length === 0)) {
|
|
3074
3076
|
return {
|
|
3075
3077
|
content: JSON.stringify({
|
|
3076
|
-
error: "
|
|
3077
|
-
detail: "
|
|
3078
|
+
error: "ask_user",
|
|
3079
|
+
detail: "ask_user \u9700\u8981 question+choices \u6216 questions\u3002"
|
|
3078
3080
|
}),
|
|
3079
3081
|
metadata: { uiAskChoice: true, error: true }
|
|
3080
3082
|
};
|
|
@@ -3090,7 +3092,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3090
3092
|
if (result.kind === "multi-submitted") {
|
|
3091
3093
|
return {
|
|
3092
3094
|
content: JSON.stringify({
|
|
3093
|
-
type: "
|
|
3095
|
+
type: "ask_user",
|
|
3094
3096
|
question,
|
|
3095
3097
|
choices,
|
|
3096
3098
|
blocking,
|
|
@@ -3107,7 +3109,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3107
3109
|
if (result.kind === "selected") {
|
|
3108
3110
|
return {
|
|
3109
3111
|
content: JSON.stringify({
|
|
3110
|
-
type: "
|
|
3112
|
+
type: "ask_user",
|
|
3111
3113
|
question,
|
|
3112
3114
|
choices,
|
|
3113
3115
|
blocking,
|
|
@@ -3122,7 +3124,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3122
3124
|
}
|
|
3123
3125
|
return {
|
|
3124
3126
|
content: JSON.stringify({
|
|
3125
|
-
type: "
|
|
3127
|
+
type: "ask_user",
|
|
3126
3128
|
question,
|
|
3127
3129
|
choices,
|
|
3128
3130
|
blocking,
|
|
@@ -3137,7 +3139,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3137
3139
|
}
|
|
3138
3140
|
return {
|
|
3139
3141
|
content: JSON.stringify({
|
|
3140
|
-
type: "
|
|
3142
|
+
type: "ask_user",
|
|
3141
3143
|
question,
|
|
3142
3144
|
choices,
|
|
3143
3145
|
blocking,
|
|
@@ -10695,7 +10697,7 @@ function buildOpenAiTools(args) {
|
|
|
10695
10697
|
const toolset = buildLocalWorkspaceToolsetForEnv(args);
|
|
10696
10698
|
const toolNameSet = new Set(args.toolNames ?? []);
|
|
10697
10699
|
const callAgentTools = toolNameSet.has("callAgent") ? prepareTools(["callAgent"]) : [];
|
|
10698
|
-
const uiAskChoiceTools = toolNameSet.has("
|
|
10700
|
+
const uiAskChoiceTools = toolNameSet.has("ask_user") ? prepareTools(["ask_user"]) : [];
|
|
10699
10701
|
const readPastedTextTools = toolNameSet.has("readPastedText") ? [
|
|
10700
10702
|
{
|
|
10701
10703
|
type: "function",
|
|
@@ -10755,10 +10757,10 @@ function buildOpenAiTools(args) {
|
|
|
10755
10757
|
var CLI_DEFAULT_TOOLS = ["exa_search", "fetchWebpage"];
|
|
10756
10758
|
function addDefaultCliCoreTools(toolNames, env, options) {
|
|
10757
10759
|
const declaredOnly = env && shouldUseDeclaredOnlyLocalWorkspaceTools(env);
|
|
10758
|
-
const forcedTools = options?.hasUserChoice === true ? FORCED_TOOLS : FORCED_TOOLS.filter((name) => name !== "
|
|
10760
|
+
const forcedTools = options?.hasUserChoice === true ? FORCED_TOOLS : FORCED_TOOLS.filter((name) => name !== "ask_user");
|
|
10759
10761
|
const injected = declaredOnly ? [...forcedTools] : [...forcedTools, ...CLI_DEFAULT_TOOLS];
|
|
10760
10762
|
const combined = [...toolNames, ...injected];
|
|
10761
|
-
const filtered = options?.hasUserChoice === true ? combined : combined.filter((name) => name !== "
|
|
10763
|
+
const filtered = options?.hasUserChoice === true ? combined : combined.filter((name) => name !== "ask_user");
|
|
10762
10764
|
return [...new Set(filtered)];
|
|
10763
10765
|
}
|
|
10764
10766
|
function resolveCliEffectiveEnabledPacks(args) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CIF5XTPN.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PH7SXF5R.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DXOUTEQC.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-5CS33IBL.js";
|
|
@@ -2,17 +2,14 @@ import {
|
|
|
2
2
|
buildCurrentTimeBlock,
|
|
3
3
|
buildIdentityBlock,
|
|
4
4
|
buildRuntimeGuidanceBlocks
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
canonicalizeToolNames
|
|
8
|
-
} from "./chunk-OSIJVBXP.js";
|
|
5
|
+
} from "./chunk-IOOMJJ4Z.js";
|
|
9
6
|
import {
|
|
10
7
|
estimateTokenCount,
|
|
11
8
|
getModelContextWindow,
|
|
12
9
|
planCompression,
|
|
13
10
|
planContextUsage,
|
|
14
11
|
serializeMessageContent
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EWLAMUG5.js";
|
|
16
13
|
import {
|
|
17
14
|
clipCompactText
|
|
18
15
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -20,12 +17,15 @@ import {
|
|
|
20
17
|
findModelConfig,
|
|
21
18
|
getProviderByModelName
|
|
22
19
|
} from "./chunk-HQPG2PIV.js";
|
|
20
|
+
import {
|
|
21
|
+
toErrorMessage
|
|
22
|
+
} from "./chunk-HNMXYYJR.js";
|
|
23
23
|
import {
|
|
24
24
|
buildDialogSummaryLayer
|
|
25
25
|
} from "./chunk-AL2V7U3E.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
27
|
+
canonicalizeToolNames
|
|
28
|
+
} from "./chunk-ZZ2MH7LE.js";
|
|
29
29
|
import {
|
|
30
30
|
asRecordOrEmpty
|
|
31
31
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
clearCliLocalRuntimePreparedAgentCache
|
|
3
|
-
} from "./chunk-ARJBFRBT.js";
|
|
4
1
|
import {
|
|
5
2
|
getReadableCliDb
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WFHXMLHZ.js";
|
|
7
4
|
import {
|
|
8
5
|
buildCreatedAgentRecord,
|
|
9
6
|
buildUpdatedAgentRecord,
|
|
@@ -12,7 +9,10 @@ import {
|
|
|
12
9
|
resolveAgentRecordFromHybridStore,
|
|
13
10
|
sanitizeAgentRecordForCliOutput,
|
|
14
11
|
writeAgentRecord
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N77EBDJJ.js";
|
|
13
|
+
import {
|
|
14
|
+
clearCliLocalRuntimePreparedAgentCache
|
|
15
|
+
} from "./chunk-CIF5XTPN.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveCliAgentKeyInput
|
|
18
18
|
} from "./chunk-VHBWHNVT.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MODEL_LOOKUP_MAP
|
|
3
3
|
} from "./chunk-HQPG2PIV.js";
|
|
4
|
+
import {
|
|
5
|
+
addContentAction
|
|
6
|
+
} from "./chunk-27MGYWLZ.js";
|
|
4
7
|
import {
|
|
5
8
|
ALL_MODELS
|
|
6
9
|
} from "./chunk-RK5NYQEL.js";
|
|
7
|
-
import {
|
|
8
|
-
addContentAction
|
|
9
|
-
} from "./chunk-IWLUTMYX.js";
|
|
10
10
|
import {
|
|
11
11
|
upload
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NLQBLZUO.js";
|
|
13
13
|
import {
|
|
14
14
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
|
|
15
15
|
PUBLIC_KIMI_K26_IMAGE_AGENT_KEY
|