nolo-cli 0.16.0-alpha.15 → 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-UU2JO5OB.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-L6JRXPYK.js → agentDeleteCommand-6C77LXAA.js} +23 -21
- package/{agentEmailCommands-FE3GY3T5.js → agentEmailCommands-7KZPAGIW.js} +45 -41
- package/{agentListCommands-ZWSAIC4W.js → agentListCommands-EFFASIR2.js} +21 -19
- package/{agentMachineCommands-VWQ2GZBY.js → agentMachineCommands-XHLRGCLP.js} +21 -19
- package/{agentPullCommand-6HWUT3SW.js → agentPullCommand-ZZGU5KOY.js} +4 -4
- package/{agentRecordCommands-PYVZMRZM.js → agentRecordCommands-ITBT7MPU.js} +40 -36
- package/{agentRunCommand-3ADJ2J5U.js → agentRunCommand-HEBSX6ER.js} +41 -37
- package/{agentRuntimeLocal-LXTR6SAU.js → agentRuntimeLocal-KV6MQJQS.js} +14 -12
- package/{agentSlice-TI6ECUGN.js → agentSlice-HOLDB2UY.js} +5 -4
- package/{appDeleteCommands-QIS37SXE.js → appDeleteCommands-ROPKN6PL.js} +18 -16
- package/{appDeployCommands-WBHB7T5B.js → appDeployCommands-65E4ARQN.js} +18 -16
- package/{appDeployStatusCommands-A3OUV6GO.js → appDeployStatusCommands-RFWMQDSJ.js} +18 -16
- package/{appGetCommands-LCVYIH63.js → appGetCommands-LDO2HNAL.js} +18 -16
- package/{appListCommands-PC7QOBUO.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-ECGTEOC2.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-W6OKITU6.js → chunk-CIF5XTPN.js} +38 -41
- package/{chunk-W63ZTRQU.js → chunk-DS2YYH6W.js} +3 -3
- package/{chunk-ZDDHKIWB.js → chunk-DXOUTEQC.js} +7 -7
- package/{chunk-BOBNE3XT.js → chunk-ETXKHE7J.js} +5 -5
- package/{chunk-PFW2ZEON.js → chunk-EWLAMUG5.js} +4 -6
- package/{chunk-2OK7P5XF.js → chunk-HETVWFFQ.js} +363 -331
- package/{chunk-6IGLIDDE.js → chunk-HRLDQJW7.js} +39 -157
- package/{chunk-FTNTMGXT.js → chunk-IG3SA64O.js} +4 -4
- package/{chunk-SOW2GCA5.js → chunk-IOOMJJ4Z.js} +1 -1
- package/{chunk-5QJFYG2N.js → chunk-JJPANCH2.js} +10 -8
- package/{chunk-YJKXGHJ6.js → chunk-JKUL77KQ.js} +2 -2
- package/{chunk-GFPESFS6.js → chunk-JQOWVDDX.js} +6 -6
- package/{chunk-YZXEEGKV.js → chunk-KF27FHVT.js} +1 -1
- package/{chunk-EABWT43X.js → chunk-L2DKNKL4.js} +2 -2
- package/{chunk-TUWPYUVR.js → chunk-LD6DKWMF.js} +14 -14
- package/{chunk-Q6B6XJBG.js → chunk-LFTQYP3K.js} +15 -9
- package/{chunk-GM37ZF7R.js → chunk-MT2DOPXQ.js} +2 -2
- package/{chunk-UUDRNDC7.js → chunk-N3IKVYLL.js} +1 -1
- package/{chunk-NZBK3ZET.js → chunk-N77EBDJJ.js} +2 -2
- package/{chunk-HGDFFA6T.js → chunk-NJYEXLKX.js} +2 -2
- package/{chunk-3S2VOMIF.js → chunk-NLQBLZUO.js} +2 -2
- package/{chunk-URVWRKFU.js → chunk-PH7SXF5R.js} +134 -57
- package/{chunk-KMQPSTMJ.js → chunk-TRT4I4UD.js} +2 -2
- package/{chunk-64IEIMN4.js → chunk-V3A3PXQQ.js} +3 -3
- package/{chunk-2ZLEOGS5.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-U3DCTSPN.js → chunk-WWWIRXLT.js} +39 -49
- 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-XG7CSGP3.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-N4ZB7VX2.js → createAgentAutomationAction-63XOK7PE.js} +14 -13
- package/{createDialogAction-KF6HXCCZ.js → createDialogAction-NBFEO4SU.js} +16 -15
- package/{createPageAction-FXWSJONZ.js → createPageAction-JYVUSH57.js} +20 -19
- package/{dbSlice-7KQH6GOU.js → dbSlice-CJJKYYXK.js} +4 -3
- package/{dialogCommands-ULS6HV5V.js → dialogCommands-JO7YCVND.js} +19 -17
- package/{dialogSlice-K32QLYS7.js → dialogSlice-6SOMUMGM.js} +14 -13
- package/{docCreateCommands-RZTRTRU4.js → docCreateCommands-H7KQ345X.js} +17 -15
- package/{docDeleteCommands-FU36A663.js → docDeleteCommands-OSEFFFJ5.js} +18 -16
- package/{docReadCommands-IX4JXD4X.js → docReadCommands-7A5PGQ7J.js} +17 -15
- package/{docStore-L6HBNJ3R.js → docStore-K2SEQBBX.js} +15 -14
- package/{docUpdateCommands-W4OCR55Z.js → docUpdateCommands-3COEELBB.js} +17 -15
- package/{fetchMessages-KTNM7QAR.js → fetchMessages-BMGVZVSE.js} +4 -3
- package/{handleSendMessageAction-MFKKZXV7.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-4MFLZERH.js → machineCommands-DGDX3GHH.js} +47 -43
- package/{machineWsRunDispatch-AAHRNKIR.js → machineWsRunDispatch-ZV6BHKXA.js} +38 -34
- package/package.json +1 -1
- package/queryRunOverlay-KQDJBH32.js +203 -0
- package/{readlineWorkspace-7OPITHTN.js → readlineWorkspace-BUSQQXPY.js} +62 -64
- package/{removeDialogAgentAction-YDHBFEGI.js → removeDialogAgentAction-XRTUVGAN.js} +6 -5
- package/{runAgentClientLoop-HRWV7KE2.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-GMMQTMHK.js → spaceCommands-XPHOVJTB.js} +20 -18
- package/{spaceSlice-V2P5TTQU.js → spaceSlice-EGOJICFM.js} +14 -13
- package/{streamAgentChatTurn-ZANOYOUR.js → streamAgentChatTurn-LAFUD4KS.js} +88 -66
- package/{tools-YHZP6NXU.js → tools-O6DVCZ3R.js} +24 -20
- package/types-ZSTJ7MPR.js +7 -0
- package/{updateDialogTitleAction-IKTPGPPE.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"
|
|
@@ -2216,8 +2218,6 @@ function buildServerPlatformToolExecutors(args) {
|
|
|
2216
2218
|
}
|
|
2217
2219
|
const body = { userInput: query };
|
|
2218
2220
|
if (args.agentKey) body.agentKey = args.agentKey;
|
|
2219
|
-
const memorySubjectId = typeof call.runtimeContext?.memorySubjectId === "string" ? call.runtimeContext.memorySubjectId.trim() : args.memorySubjectId?.trim();
|
|
2220
|
-
if (memorySubjectId) body.memorySubjectId = memorySubjectId;
|
|
2221
2221
|
const raw = await postServer("/api/memory/query", body, {
|
|
2222
2222
|
retryTransient: true
|
|
2223
2223
|
});
|
|
@@ -2244,8 +2244,6 @@ function buildServerPlatformToolExecutors(args) {
|
|
|
2244
2244
|
source: "agent-inferred"
|
|
2245
2245
|
};
|
|
2246
2246
|
if (args.agentKey) body.agentKey = args.agentKey;
|
|
2247
|
-
const memorySubjectId = typeof call.runtimeContext?.memorySubjectId === "string" ? call.runtimeContext.memorySubjectId.trim() : args.memorySubjectId?.trim();
|
|
2248
|
-
if (memorySubjectId) body.memorySubjectId = memorySubjectId;
|
|
2249
2247
|
const raw = await postServer("/api/memory/remember", body, {
|
|
2250
2248
|
retryTransient: true
|
|
2251
2249
|
});
|
|
@@ -3014,8 +3012,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3014
3012
|
...buildServerPlatformToolExecutors({
|
|
3015
3013
|
env: args.env,
|
|
3016
3014
|
fetchImpl: args.fetchImpl,
|
|
3017
|
-
agentKey: args.agentKey
|
|
3018
|
-
memorySubjectId: args.memorySubjectId
|
|
3015
|
+
agentKey: args.agentKey
|
|
3019
3016
|
}),
|
|
3020
3017
|
...buildCliWorkspaceToolExecutors({
|
|
3021
3018
|
env: args.env,
|
|
@@ -3062,7 +3059,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3062
3059
|
}
|
|
3063
3060
|
};
|
|
3064
3061
|
},
|
|
3065
|
-
|
|
3062
|
+
ask_user: async (call) => {
|
|
3066
3063
|
const parsedArgs = (() => {
|
|
3067
3064
|
try {
|
|
3068
3065
|
return JSON.parse(call.arguments || "{}");
|
|
@@ -3078,8 +3075,8 @@ function buildLocalToolExecutors(args) {
|
|
|
3078
3075
|
if (!hasQuestions && (!question || choices.length === 0)) {
|
|
3079
3076
|
return {
|
|
3080
3077
|
content: JSON.stringify({
|
|
3081
|
-
error: "
|
|
3082
|
-
detail: "
|
|
3078
|
+
error: "ask_user",
|
|
3079
|
+
detail: "ask_user \u9700\u8981 question+choices \u6216 questions\u3002"
|
|
3083
3080
|
}),
|
|
3084
3081
|
metadata: { uiAskChoice: true, error: true }
|
|
3085
3082
|
};
|
|
@@ -3095,7 +3092,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3095
3092
|
if (result.kind === "multi-submitted") {
|
|
3096
3093
|
return {
|
|
3097
3094
|
content: JSON.stringify({
|
|
3098
|
-
type: "
|
|
3095
|
+
type: "ask_user",
|
|
3099
3096
|
question,
|
|
3100
3097
|
choices,
|
|
3101
3098
|
blocking,
|
|
@@ -3112,7 +3109,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3112
3109
|
if (result.kind === "selected") {
|
|
3113
3110
|
return {
|
|
3114
3111
|
content: JSON.stringify({
|
|
3115
|
-
type: "
|
|
3112
|
+
type: "ask_user",
|
|
3116
3113
|
question,
|
|
3117
3114
|
choices,
|
|
3118
3115
|
blocking,
|
|
@@ -3127,7 +3124,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3127
3124
|
}
|
|
3128
3125
|
return {
|
|
3129
3126
|
content: JSON.stringify({
|
|
3130
|
-
type: "
|
|
3127
|
+
type: "ask_user",
|
|
3131
3128
|
question,
|
|
3132
3129
|
choices,
|
|
3133
3130
|
blocking,
|
|
@@ -3142,7 +3139,7 @@ function buildLocalToolExecutors(args) {
|
|
|
3142
3139
|
}
|
|
3143
3140
|
return {
|
|
3144
3141
|
content: JSON.stringify({
|
|
3145
|
-
type: "
|
|
3142
|
+
type: "ask_user",
|
|
3146
3143
|
question,
|
|
3147
3144
|
choices,
|
|
3148
3145
|
blocking,
|
|
@@ -10700,7 +10697,7 @@ function buildOpenAiTools(args) {
|
|
|
10700
10697
|
const toolset = buildLocalWorkspaceToolsetForEnv(args);
|
|
10701
10698
|
const toolNameSet = new Set(args.toolNames ?? []);
|
|
10702
10699
|
const callAgentTools = toolNameSet.has("callAgent") ? prepareTools(["callAgent"]) : [];
|
|
10703
|
-
const uiAskChoiceTools = toolNameSet.has("
|
|
10700
|
+
const uiAskChoiceTools = toolNameSet.has("ask_user") ? prepareTools(["ask_user"]) : [];
|
|
10704
10701
|
const readPastedTextTools = toolNameSet.has("readPastedText") ? [
|
|
10705
10702
|
{
|
|
10706
10703
|
type: "function",
|
|
@@ -10760,10 +10757,10 @@ function buildOpenAiTools(args) {
|
|
|
10760
10757
|
var CLI_DEFAULT_TOOLS = ["exa_search", "fetchWebpage"];
|
|
10761
10758
|
function addDefaultCliCoreTools(toolNames, env, options) {
|
|
10762
10759
|
const declaredOnly = env && shouldUseDeclaredOnlyLocalWorkspaceTools(env);
|
|
10763
|
-
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");
|
|
10764
10761
|
const injected = declaredOnly ? [...forcedTools] : [...forcedTools, ...CLI_DEFAULT_TOOLS];
|
|
10765
10762
|
const combined = [...toolNames, ...injected];
|
|
10766
|
-
const filtered = options?.hasUserChoice === true ? combined : combined.filter((name) => name !== "
|
|
10763
|
+
const filtered = options?.hasUserChoice === true ? combined : combined.filter((name) => name !== "ask_user");
|
|
10767
10764
|
return [...new Set(filtered)];
|
|
10768
10765
|
}
|
|
10769
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-W6OKITU6.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
|
|
@@ -544,7 +544,6 @@ function planCompression(input) {
|
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
// packages/agent-runtime/autoExecutionProfiles.ts
|
|
547
|
-
var AUTO_ASSISTANT_MEMORY_SUBJECT_ID = "builtin:auto";
|
|
548
547
|
var createProfile = (input) => ({
|
|
549
548
|
id: input.id,
|
|
550
549
|
tier: input.tier,
|
|
@@ -598,7 +597,6 @@ export {
|
|
|
598
597
|
serializeMessageContent,
|
|
599
598
|
normalizeAssistantContentBuffer,
|
|
600
599
|
planCompression,
|
|
601
|
-
AUTO_ASSISTANT_MEMORY_SUBJECT_ID,
|
|
602
600
|
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
603
601
|
resolveAutoExecutionProfile
|
|
604
602
|
};
|