nolo-cli 0.175.0-alpha.1 → 0.177.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-557MGBNC.js → _executeModel-6WX5JUK7.js} +14 -14
- package/{accountResolver-YGMLY3WW.js → accountResolver-OHS53Q75.js} +2 -2
- package/{agentDeleteCommand-WI6U4NFI.js → agentDeleteCommand-JQG2LSA5.js} +18 -18
- package/{agentEmailCommands-Z3TNB4JY.js → agentEmailCommands-OXTDO2NF.js} +20 -20
- package/{agentListCommands-UHHP6HFB.js → agentListCommands-4EXK3SYL.js} +8 -8
- package/{agentMachineCommands-FIUBHYRT.js → agentMachineCommands-EY7STQGY.js} +9 -9
- package/{agentRecordCommands-EQDWG4RY.js → agentRecordCommands-YBMNP36Y.js} +19 -19
- package/{agentRunCommand-WZCHXCYS.js → agentRunCommand-RLLMSTZO.js} +20 -20
- package/{agentRuntimeLocal-VQZCOFTL.js → agentRuntimeLocal-JNX6T5PK.js} +8 -8
- package/{agentSlice-YQHUKPIF.js → agentSlice-FYQAPKX5.js} +1 -1
- package/{appDeleteCommands-3QISRABE.js → appDeleteCommands-26FQDO25.js} +8 -8
- package/{appDeployCommands-UIMXDPOG.js → appDeployCommands-SUWSMHNK.js} +8 -8
- package/{appDeployStatusCommands-D2ZA54DA.js → appDeployStatusCommands-KQ7ENQE4.js} +8 -8
- package/{appGetCommands-QH2XYWOK.js → appGetCommands-HGMGWU5B.js} +8 -8
- package/{appListCommands-HH2HYJDZ.js → appListCommands-2N6XHLGI.js} +8 -8
- package/{authCommand-CVKPVPHN.js → authCommand-44AMFHPM.js} +3 -3
- package/{chromeCommands-Z5LDHMYN.js → chromeCommands-VANHVOCE.js} +2 -2
- package/{chromeOpsCommands-CHBIUDJD.js → chromeOpsCommands-RY776THN.js} +2 -2
- package/{chunk-MG63GUYM.js → chunk-33BY55WF.js} +3 -3
- package/{chunk-Z4UP2EDE.js → chunk-3MZ33FL7.js} +1 -1
- package/{chunk-RABMW33C.js → chunk-4NB4XLNL.js} +3 -3
- package/{chunk-HHEM4TV3.js → chunk-5VNY3X7V.js} +2 -2
- package/{chunk-KXIJYPVC.js → chunk-5ZTCH2Y6.js} +2 -2
- package/{chunk-UILL43UU.js → chunk-72ILVFRF.js} +35 -27
- package/{chunk-RNIZNIVT.js → chunk-ABEZP6S7.js} +9 -9
- package/{chunk-ISIFZP3N.js → chunk-AEZBL2MY.js} +64 -3
- package/{chunk-24VDDKCB.js → chunk-C2M3QZBC.js} +8 -8
- package/{chunk-LCCULKPJ.js → chunk-CY2NSJL5.js} +24 -5
- package/{chunk-Z4HDFBYK.js → chunk-DN2DBFJ2.js} +1 -1
- package/{chunk-4NYYWHM7.js → chunk-E23Y7NIR.js} +5 -5
- package/{chunk-EGT6ORP5.js → chunk-FR2AHCB6.js} +8 -8
- package/{chunk-SRZ6BQIP.js → chunk-HIVDQPQR.js} +9 -1
- package/{chunk-DWFRZ3UI.js → chunk-ITSMLMHJ.js} +12 -7
- package/{chunk-TMAQFKHS.js → chunk-IZAL4EF7.js} +2 -2
- package/{chunk-A6B3LSDB.js → chunk-KYAMW3AY.js} +10 -6
- package/{chunk-QFAISMV5.js → chunk-LP4XBYE7.js} +3 -3
- package/{chunk-LTWBOZE6.js → chunk-MBFXRU2T.js} +8 -8
- package/{chunk-VJ52BYBK.js → chunk-NF5NWGPH.js} +1 -1
- package/{chunk-L7ZCLG72.js → chunk-NRO3AZRC.js} +2 -2
- package/{chunk-FGSVT353.js → chunk-PAI4KXWW.js} +74 -25
- package/{chunk-RYBZM4A2.js → chunk-PN2D6STE.js} +2 -2
- package/{chunk-ONQ2APOE.js → chunk-RX7AYZIB.js} +3 -3
- package/{chunk-7QQOOHDG.js → chunk-XRU4QTSX.js} +24 -8
- package/{chunk-DPQYIS6D.js → chunk-YUXSWHQC.js} +3 -2
- package/{chunk-J63HVOSX.js → chunk-YWEMVIRS.js} +2 -2
- package/{commandRegistry-S54U5ZHX.js → commandRegistry-VUSP6YAY.js} +51 -51
- package/{contentThunks-NVX3NBHZ.js → contentThunks-HLBN6LDG.js} +3 -3
- package/{createAgentAutomationAction-EONFRZYA.js → createAgentAutomationAction-KZHZ7RGX.js} +3 -3
- package/{createDialogAction-ZVY45CNY.js → createDialogAction-R4QDGQPX.js} +4 -4
- package/{createPageAction-N5XSWPN2.js → createPageAction-BEQBAYSA.js} +3 -3
- package/{dialogCommands-A5CHG67A.js → dialogCommands-TH32KIJ4.js} +8 -8
- package/{dialogSlice-ST2FXOF3.js → dialogSlice-XUN4AEE6.js} +2 -2
- package/{docCreateCommands-BF354FQW.js → docCreateCommands-DU2MJR2G.js} +8 -8
- package/{docDeleteCommands-3K5K4XFO.js → docDeleteCommands-6POYBBEE.js} +8 -8
- package/{docReadCommands-A7ZDZIQV.js → docReadCommands-SN2JJSMI.js} +8 -8
- package/{docStore-PPUT7MQV.js → docStore-YGM3R64V.js} +1 -1
- package/{docUpdateCommands-5MGDR5ME.js → docUpdateCommands-JBC4GWE6.js} +8 -8
- package/{handleSendMessageAction-74EKQW4M.js → handleSendMessageAction-I3TYJFAZ.js} +8 -8
- package/index.js +4 -4
- package/{localRuntimeAdapter-ZAXRSVWI.js → localRuntimeAdapter-MUGE4TRL.js} +18 -18
- package/{machineCommands-MT4FDVVG.js → machineCommands-EEFNO3WU.js} +19 -19
- package/{machineWsRunDispatch-7T3SEMB6.js → machineWsRunDispatch-SXNCWZNO.js} +19 -19
- package/package.json +1 -1
- package/{readlineWorkspace-MTYLMWBM.js → readlineWorkspace-W23GKNU7.js} +20 -20
- package/{runAgentClientLoop-Z6STKR3Z.js → runAgentClientLoop-HZU57DWI.js} +12 -12
- package/{spaceCommands-M44RQPCK.js → spaceCommands-2D7RAC6A.js} +8 -8
- package/{streamAgentChatTurn-2ON7E6LT.js → streamAgentChatTurn-YGVG54KM.js} +16 -16
- package/{tools-ZB2YBHSS.js → tools-EHK4XG4X.js} +7 -7
- package/{tuiSummaryLlmCaller-I2MRY6T5.js → tuiSummaryLlmCaller-2MLU3QOG.js} +4 -4
- package/{updateDialogTitleAction-YMQAOVJ2.js → updateDialogTitleAction-FRLRJMQY.js} +3 -3
|
@@ -17,23 +17,23 @@ import "./chunk-RPZNVBA5.js";
|
|
|
17
17
|
import "./chunk-NBTY7YJF.js";
|
|
18
18
|
import "./chunk-VF4K2QE6.js";
|
|
19
19
|
import "./chunk-UAD2WT54.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-PAI4KXWW.js";
|
|
21
|
+
import "./chunk-ITSMLMHJ.js";
|
|
22
22
|
import "./chunk-ZNFJWEN4.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-CY2NSJL5.js";
|
|
24
24
|
import "./chunk-HNUWUO75.js";
|
|
25
25
|
import "./chunk-CHOZJMJS.js";
|
|
26
26
|
import "./chunk-PWTNI4N7.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-HIVDQPQR.js";
|
|
28
|
+
import "./chunk-5VNY3X7V.js";
|
|
29
29
|
import "./chunk-2WZXXAQD.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-XRU4QTSX.js";
|
|
31
31
|
import "./chunk-G6OOUQWJ.js";
|
|
32
32
|
import "./chunk-56GBUMO5.js";
|
|
33
33
|
import "./chunk-WJZOQR2J.js";
|
|
34
34
|
import "./chunk-ZEOR6XPJ.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-AEZBL2MY.js";
|
|
36
|
+
import "./chunk-KYAMW3AY.js";
|
|
37
37
|
import "./chunk-2GRXE3YJ.js";
|
|
38
38
|
import "./chunk-JLR5NWP2.js";
|
|
39
39
|
import "./chunk-XAFCJN32.js";
|
|
@@ -18,23 +18,23 @@ import "./chunk-RPZNVBA5.js";
|
|
|
18
18
|
import "./chunk-NBTY7YJF.js";
|
|
19
19
|
import "./chunk-VF4K2QE6.js";
|
|
20
20
|
import "./chunk-UAD2WT54.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-PAI4KXWW.js";
|
|
22
|
+
import "./chunk-ITSMLMHJ.js";
|
|
23
23
|
import "./chunk-ZNFJWEN4.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-CY2NSJL5.js";
|
|
25
25
|
import "./chunk-HNUWUO75.js";
|
|
26
26
|
import "./chunk-CHOZJMJS.js";
|
|
27
27
|
import "./chunk-PWTNI4N7.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-HIVDQPQR.js";
|
|
29
|
+
import "./chunk-5VNY3X7V.js";
|
|
30
30
|
import "./chunk-2WZXXAQD.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-XRU4QTSX.js";
|
|
32
32
|
import "./chunk-G6OOUQWJ.js";
|
|
33
33
|
import "./chunk-56GBUMO5.js";
|
|
34
34
|
import "./chunk-WJZOQR2J.js";
|
|
35
35
|
import "./chunk-ZEOR6XPJ.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-AEZBL2MY.js";
|
|
37
|
+
import "./chunk-KYAMW3AY.js";
|
|
38
38
|
import "./chunk-2GRXE3YJ.js";
|
|
39
39
|
import "./chunk-JLR5NWP2.js";
|
|
40
40
|
import "./chunk-XAFCJN32.js";
|
|
@@ -18,23 +18,23 @@ import "./chunk-RPZNVBA5.js";
|
|
|
18
18
|
import "./chunk-NBTY7YJF.js";
|
|
19
19
|
import "./chunk-VF4K2QE6.js";
|
|
20
20
|
import "./chunk-UAD2WT54.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-PAI4KXWW.js";
|
|
22
|
+
import "./chunk-ITSMLMHJ.js";
|
|
23
23
|
import "./chunk-ZNFJWEN4.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-CY2NSJL5.js";
|
|
25
25
|
import "./chunk-HNUWUO75.js";
|
|
26
26
|
import "./chunk-CHOZJMJS.js";
|
|
27
27
|
import "./chunk-PWTNI4N7.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-HIVDQPQR.js";
|
|
29
|
+
import "./chunk-5VNY3X7V.js";
|
|
30
30
|
import "./chunk-2WZXXAQD.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-XRU4QTSX.js";
|
|
32
32
|
import "./chunk-G6OOUQWJ.js";
|
|
33
33
|
import "./chunk-56GBUMO5.js";
|
|
34
34
|
import "./chunk-WJZOQR2J.js";
|
|
35
35
|
import "./chunk-ZEOR6XPJ.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-AEZBL2MY.js";
|
|
37
|
+
import "./chunk-KYAMW3AY.js";
|
|
38
38
|
import "./chunk-2GRXE3YJ.js";
|
|
39
39
|
import "./chunk-JLR5NWP2.js";
|
|
40
40
|
import "./chunk-XAFCJN32.js";
|
|
@@ -65,10 +65,10 @@ import {
|
|
|
65
65
|
detectLocalDevinCredentials,
|
|
66
66
|
extractDevinToken,
|
|
67
67
|
fetchAntigravityCloudCodeCompletion
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-ITSMLMHJ.js";
|
|
69
69
|
import "./chunk-HNUWUO75.js";
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-XRU4QTSX.js";
|
|
71
|
+
import "./chunk-KYAMW3AY.js";
|
|
72
72
|
import "./chunk-XAFCJN32.js";
|
|
73
73
|
import "./chunk-5ZUL4CUO.js";
|
|
74
74
|
import "./chunk-UKZX3NHN.js";
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
REQUIRED_CHROME_CONNECTOR_FEATURES,
|
|
8
8
|
createChromeConnectorClient,
|
|
9
9
|
resolveUploadRoots
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-YUXSWHQC.js";
|
|
11
|
+
import "./chunk-HIVDQPQR.js";
|
|
12
12
|
import "./chunk-KUG52IAP.js";
|
|
13
13
|
import {
|
|
14
14
|
toErrorMessage
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-72ILVFRF.js";
|
|
5
5
|
import {
|
|
6
6
|
t
|
|
7
7
|
} from "./chunk-TDX2L4W2.js";
|
|
8
8
|
import {
|
|
9
9
|
clipMultilineText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5ZTCH2Y6.js";
|
|
11
11
|
import {
|
|
12
12
|
runLocalAgentTurn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PAI4KXWW.js";
|
|
14
14
|
import {
|
|
15
15
|
applyToolSurfaceConstraints
|
|
16
16
|
} from "./chunk-2GRXE3YJ.js";
|
|
@@ -347,7 +347,7 @@ var slice = createSliceWithThunks({
|
|
|
347
347
|
const overrides = {};
|
|
348
348
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
349
349
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
350
|
-
const { _executeModel } = await import("./_executeModel-
|
|
350
|
+
const { _executeModel } = await import("./_executeModel-6WX5JUK7.js");
|
|
351
351
|
return _executeModel(
|
|
352
352
|
{
|
|
353
353
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -368,7 +368,7 @@ var slice = createSliceWithThunks({
|
|
|
368
368
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
369
369
|
*/
|
|
370
370
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
371
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
371
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-HZU57DWI.js");
|
|
372
372
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
373
373
|
{
|
|
374
374
|
agentKey: args.agentKey,
|
|
@@ -384,7 +384,7 @@ var slice = createSliceWithThunks({
|
|
|
384
384
|
* 聊天轮次流式 Agent 调用
|
|
385
385
|
*/
|
|
386
386
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
387
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
387
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-YGVG54KM.js");
|
|
388
388
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
389
389
|
}),
|
|
390
390
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAgentImageInputSupport
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XRU4QTSX.js";
|
|
4
4
|
import {
|
|
5
5
|
TOOL_HAD_IMAGES,
|
|
6
6
|
hadToolImages
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KYAMW3AY.js";
|
|
8
8
|
import {
|
|
9
9
|
asOptionalFiniteNumber
|
|
10
10
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-VYNMQ6HW.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchAndCacheTableRows
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DN2DBFJ2.js";
|
|
12
12
|
import {
|
|
13
13
|
require_react
|
|
14
14
|
} from "./chunk-YDH3FDFQ.js";
|
|
@@ -521,7 +521,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
521
521
|
if (!executionInput) {
|
|
522
522
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
523
523
|
}
|
|
524
|
-
const { findToolExecutor } = await import("./tools-
|
|
524
|
+
const { findToolExecutor } = await import("./tools-EHK4XG4X.js");
|
|
525
525
|
const { executor } = findToolExecutor(run.toolName);
|
|
526
526
|
toolRunStarted({
|
|
527
527
|
id: run.id,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
createChromeConnectorClientResolver,
|
|
52
52
|
createVerifiedChromeConnectorClient,
|
|
53
53
|
executeChromeConnectorTool
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-YUXSWHQC.js";
|
|
55
55
|
import {
|
|
56
56
|
applyPublicAgentCatalogOverride
|
|
57
57
|
} from "./chunk-W6E5IXIP.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
inlineImageUrlsForCustomProvider,
|
|
66
66
|
prepareTools
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-IZAL4EF7.js";
|
|
68
68
|
import {
|
|
69
69
|
getServerProviderSecret
|
|
70
70
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
resolveCliLocalRuntimeKeyCapability,
|
|
87
87
|
resolveCliLocalSpawnDispatch,
|
|
88
88
|
resolveStartAgentRunCwd
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-C2M3QZBC.js";
|
|
90
90
|
import {
|
|
91
91
|
deriveCredentialGroup,
|
|
92
92
|
deriveCustomProviderCredentialGroup
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
} from "./chunk-KFHREHUQ.js";
|
|
98
98
|
import {
|
|
99
99
|
resolveAgentRequiredPackIds
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-5ZTCH2Y6.js";
|
|
101
101
|
import {
|
|
102
102
|
applyBuiltinAgentRuntimeOverride,
|
|
103
103
|
applyTokenUsageToDayStats,
|
|
@@ -106,14 +106,14 @@ import {
|
|
|
106
106
|
resolveBuiltinPlatformAgentConfig,
|
|
107
107
|
runKeyed,
|
|
108
108
|
validateAskChoiceInput
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-MBFXRU2T.js";
|
|
110
110
|
import {
|
|
111
111
|
BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
|
|
112
112
|
BUILTIN_TITLE_LLM_CONFIG
|
|
113
113
|
} from "./chunk-523DITKR.js";
|
|
114
114
|
import {
|
|
115
115
|
fetchServerSyncedCredential
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-4NB4XLNL.js";
|
|
117
117
|
import {
|
|
118
118
|
isTombstoneRecord
|
|
119
119
|
} from "./chunk-D2MDMY2M.js";
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
runExecShellGates,
|
|
171
171
|
validateConfiguredRootExecutionLease,
|
|
172
172
|
verifyOwnerRouteAck
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-PAI4KXWW.js";
|
|
174
174
|
import {
|
|
175
175
|
accumulateGeminiChunks,
|
|
176
176
|
buildGeminiGenerateContentRequest,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
resolveAntigravityFinishReason,
|
|
183
183
|
resolveGeminiModelQuirks,
|
|
184
184
|
shouldUseGeminiNativeToolRoute
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-ITSMLMHJ.js";
|
|
186
186
|
import {
|
|
187
187
|
PlatformStreamInterruptedError,
|
|
188
188
|
buildPlatformChatCompletionRequest,
|
|
@@ -193,27 +193,27 @@ import {
|
|
|
193
193
|
readPlatformChatSseCompletion,
|
|
194
194
|
resolvePlatformChatProviderConfig,
|
|
195
195
|
shouldUsePlatformChatProvider
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-CY2NSJL5.js";
|
|
197
197
|
import {
|
|
198
198
|
readSseDataValues,
|
|
199
199
|
readSseFrames
|
|
200
200
|
} from "./chunk-HNUWUO75.js";
|
|
201
201
|
import {
|
|
202
202
|
resolveAgentRuntimeConfigFromRecord
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-5VNY3X7V.js";
|
|
204
204
|
import {
|
|
205
205
|
resolveHistoricalToolContentCap
|
|
206
206
|
} from "./chunk-2WZXXAQD.js";
|
|
207
207
|
import {
|
|
208
|
-
|
|
209
|
-
} from "./chunk-
|
|
208
|
+
resolveToolImagePolicy
|
|
209
|
+
} from "./chunk-XRU4QTSX.js";
|
|
210
210
|
import {
|
|
211
211
|
collectStablePromptPrefix,
|
|
212
212
|
convertMessagesToResponsesInput,
|
|
213
213
|
findAgentStatePairingIssues,
|
|
214
214
|
stablePromptCacheKey,
|
|
215
215
|
toResponsesTools
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-AEZBL2MY.js";
|
|
217
217
|
import {
|
|
218
218
|
EMPTY_TOOL_RESULT_TEXT,
|
|
219
219
|
createToolImageBudget,
|
|
@@ -222,7 +222,7 @@ import {
|
|
|
222
222
|
toolImageOmission,
|
|
223
223
|
toolImageSource,
|
|
224
224
|
toolImages
|
|
225
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-KYAMW3AY.js";
|
|
226
226
|
import {
|
|
227
227
|
buildNoloWorkspaceOpenAiTools,
|
|
228
228
|
filterClientNoloWorkspaceToolNames,
|
|
@@ -826,14 +826,14 @@ function buildAnthropicMessagesBody(args) {
|
|
|
826
826
|
const effective = text.trim() ? text : EMPTY_TOOL_RESULT_TEXT;
|
|
827
827
|
const notices = toolImageNotices(message);
|
|
828
828
|
const imageBlocks = [];
|
|
829
|
-
if (
|
|
830
|
-
for (const image of images) {
|
|
829
|
+
if (resolveToolImagePolicy({ ...args.agentConfig, routeKind: "anthropic" }).supportsToolImages) {
|
|
830
|
+
for (const [imageIndex, image] of images.entries()) {
|
|
831
831
|
const decision = imageBudget(image);
|
|
832
832
|
if (decision === "duplicate") continue;
|
|
833
833
|
if (decision !== "delivered") {
|
|
834
834
|
if (!notices.seen.has(image)) {
|
|
835
835
|
notices.seen.add(image);
|
|
836
|
-
notices.text.push(toolImageOmission(toolImageSource(message), decision === "impossible"));
|
|
836
|
+
notices.text.push(toolImageOmission(toolImageSource(message, imageIndex), decision === "impossible"));
|
|
837
837
|
}
|
|
838
838
|
} else {
|
|
839
839
|
imageBlocks.push({ type: "image", source: {
|
|
@@ -2444,8 +2444,9 @@ function collectInstructions(messages, agentPrompt) {
|
|
|
2444
2444
|
}
|
|
2445
2445
|
return systemTexts.join("\n\n");
|
|
2446
2446
|
}
|
|
2447
|
-
function convertMessagesToCodexInput(messages) {
|
|
2448
|
-
|
|
2447
|
+
function convertMessagesToCodexInput(messages, supportsToolImages = false) {
|
|
2448
|
+
const normalizedToolImages = typeof supportsToolImages === "boolean" ? supportsToolImages : supportsToolImages.supportsToolImages === true;
|
|
2449
|
+
return convertMessagesToResponsesInput(messages, { supportsToolImages: normalizedToolImages }).map((item) => {
|
|
2449
2450
|
if (item.type !== "reasoning") return item;
|
|
2450
2451
|
return {
|
|
2451
2452
|
type: "reasoning",
|
|
@@ -2462,7 +2463,12 @@ function buildCodexRequestBody(args, identity = createCodexRequestIdentity(), se
|
|
|
2462
2463
|
const role = m && typeof m === "object" ? String(m.role) : "";
|
|
2463
2464
|
return role !== "system" && role !== "developer";
|
|
2464
2465
|
});
|
|
2465
|
-
const input = convertMessagesToCodexInput(nonSystem
|
|
2466
|
+
const input = convertMessagesToCodexInput(nonSystem, resolveToolImagePolicy({
|
|
2467
|
+
...args.agentConfig,
|
|
2468
|
+
model: typeof args.openAiBody.model === "string" ? args.openAiBody.model : args.agentConfig.model,
|
|
2469
|
+
routeKind: "codex/responses",
|
|
2470
|
+
legacySupportsToolImages: false
|
|
2471
|
+
}).supportsToolImages);
|
|
2466
2472
|
const instructions = collectInstructions(rawMessages, args.agentConfig.prompt);
|
|
2467
2473
|
const stableInstructions = collectStablePromptPrefix(rawMessages, args.agentConfig.prompt);
|
|
2468
2474
|
const model = asOptionalTrimmedString(args.openAiBody.model) ?? asOptionalTrimmedString(args.agentConfig.model) ?? "gpt-5.5";
|
|
@@ -2993,12 +2999,13 @@ function buildGeminiCustomNativeProvider(p) {
|
|
|
2993
2999
|
return { ok: true, mimeType: image.headers.get("content-type") ?? "application/octet-stream", bytes: new Uint8Array(await image.arrayBuffer()) };
|
|
2994
3000
|
}
|
|
2995
3001
|
});
|
|
2996
|
-
const supportsToolImages =
|
|
3002
|
+
const supportsToolImages = resolveToolImagePolicy({
|
|
3003
|
+
routeKind: "gemini-native",
|
|
2997
3004
|
...agentConfig,
|
|
2998
3005
|
provider: agentConfig.provider ?? "google",
|
|
2999
3006
|
model,
|
|
3000
|
-
hasVision: agentConfig.hasVision
|
|
3001
|
-
});
|
|
3007
|
+
hasVision: agentConfig.hasVision
|
|
3008
|
+
}).supportsToolImages;
|
|
3002
3009
|
const body = buildGeminiGenerateContentRequest({ messages: inlineResult.messages, tools, maxTokens: typeof agentConfig.max_tokens === "number" ? agentConfig.max_tokens : void 0, temperature: typeof agentConfig.temperature === "number" ? agentConfig.temperature : void 0, attachSkipThoughtSignature: resolveGeminiModelQuirks(model).allowsThoughtSignatureSentinel, supportsToolImages });
|
|
3003
3010
|
log("provider.request.start", { agentKey: agentConfig.key, transport, requestUrl: nativeEndpoint, model, messageCount: messages.length, toolCount: tools.length, requestedToolNames });
|
|
3004
3011
|
const response = await fetchImpl(nativeEndpoint, { method: "POST", headers: { "Content-Type": "application/json", ...customNativeAuthHeaders("gemini", apiKey, apiKeyHeader), ...buildProviderSessionHeaders({ endpoint, sessionId: options?.dialogId ?? fallbackSessionId }) }, body: JSON.stringify(body), signal: options?.signal ? AbortSignal.any([options.signal, AbortSignal.timeout(options.timeoutMs ?? 12e4)]) : AbortSignal.timeout(options?.timeoutMs ?? 12e4) });
|
|
@@ -3542,12 +3549,13 @@ var resolveGeminiNativeToolTransport = async (ctx) => {
|
|
|
3542
3549
|
model: providerConfig.model,
|
|
3543
3550
|
complete: async (messages, options) => {
|
|
3544
3551
|
const model = providerConfig.model;
|
|
3545
|
-
const supportsToolImages =
|
|
3552
|
+
const supportsToolImages = resolveToolImagePolicy({
|
|
3553
|
+
routeKind: "gemini-native",
|
|
3546
3554
|
provider: providerConfig.usageProvider ?? providerConfig.provider,
|
|
3547
3555
|
model: providerConfig.model,
|
|
3548
3556
|
customProviderUrl: providerConfig.endpoint,
|
|
3549
|
-
hasVision: agentConfig.hasVision
|
|
3550
|
-
});
|
|
3557
|
+
hasVision: agentConfig.hasVision
|
|
3558
|
+
}).supportsToolImages;
|
|
3551
3559
|
const requestBody = buildGeminiGenerateContentRequest({
|
|
3552
3560
|
messages,
|
|
3553
3561
|
tools,
|
|
@@ -9651,7 +9659,7 @@ async function createLocalDockerWorkload(args) {
|
|
|
9651
9659
|
const createLifecycle = args.createLifecycle ?? (async () => {
|
|
9652
9660
|
const [{ DockerWorkloadLifecycle, createDockerBindingAuthorizer }, accounts] = await Promise.all([
|
|
9653
9661
|
import("./workloadLifecycle-MZ2V5L43.js"),
|
|
9654
|
-
import("./accountResolver-
|
|
9662
|
+
import("./accountResolver-OHS53Q75.js")
|
|
9655
9663
|
]);
|
|
9656
9664
|
const resolveAccount = args.resolveAccount ?? accounts.createDockerAccountResolver({
|
|
9657
9665
|
env: args.env,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveRawAgentInput,
|
|
10
10
|
resolveServerUrl,
|
|
11
11
|
writeUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NF5NWGPH.js";
|
|
13
13
|
import {
|
|
14
14
|
getReadableCliDb
|
|
15
15
|
} from "./chunk-62TBKWTV.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
resolveFileWriteGateEnabled,
|
|
32
32
|
resolveLocalUserId,
|
|
33
33
|
validateInstaboxWorkspaceSelection
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-72ILVFRF.js";
|
|
35
35
|
import {
|
|
36
36
|
clearCredentialAvailability,
|
|
37
37
|
readEffectiveCredentialEntry,
|
|
@@ -79,14 +79,14 @@ import {
|
|
|
79
79
|
} from "./chunk-BMQ2MJUK.js";
|
|
80
80
|
import {
|
|
81
81
|
resolveCliLocalRuntimeKeyCapability
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-C2M3QZBC.js";
|
|
83
83
|
import {
|
|
84
84
|
isTransientFetchError
|
|
85
85
|
} from "./chunk-KFHREHUQ.js";
|
|
86
86
|
import {
|
|
87
87
|
parseUiCard,
|
|
88
88
|
uiCardFallback
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-5ZTCH2Y6.js";
|
|
90
90
|
import {
|
|
91
91
|
isGatewayHttpStatus
|
|
92
92
|
} from "./chunk-NF64D32W.js";
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
chooseMemoryOwners,
|
|
96
96
|
loadMemoryCandidatesFromDb,
|
|
97
97
|
resolveAgentMemoryPolicy
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-PN2D6STE.js";
|
|
99
99
|
import {
|
|
100
100
|
API_REPORTED_COST_MULTIPLIER,
|
|
101
101
|
estimateMessagesTokens,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
resolveAgentContextWindow,
|
|
104
104
|
resolveOccupancy,
|
|
105
105
|
resolveOccupancyWindow
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-MBFXRU2T.js";
|
|
107
107
|
import {
|
|
108
108
|
buildSkillDiscoveryContextLayer
|
|
109
109
|
} from "./chunk-AU7AXHUL.js";
|
|
@@ -115,10 +115,10 @@ import {
|
|
|
115
115
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
116
116
|
LOCAL_TURN_ABORTED_CODE,
|
|
117
117
|
readActionGate
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-PAI4KXWW.js";
|
|
119
119
|
import {
|
|
120
120
|
resolveAgentRuntimeConfigFromRecord
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-5VNY3X7V.js";
|
|
122
122
|
import {
|
|
123
123
|
createThinkParserState,
|
|
124
124
|
flushThinkParser,
|
|
@@ -11376,7 +11376,7 @@ function isBalanceExhaustedError(error) {
|
|
|
11376
11376
|
|
|
11377
11377
|
// packages/cli/client/agentRun.ts
|
|
11378
11378
|
async function loadRunLocalAgentTurn() {
|
|
11379
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
11379
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-JNX6T5PK.js");
|
|
11380
11380
|
return runLocalAgentTurn;
|
|
11381
11381
|
}
|
|
11382
11382
|
var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
EMPTY_TOOL_RESULT_TEXT,
|
|
3
|
+
TOOL_HAD_IMAGES,
|
|
4
|
+
TOOL_IMAGES,
|
|
5
|
+
createToolImageBudget,
|
|
6
|
+
formatToolImageBudgetNote,
|
|
7
|
+
hadToolImages,
|
|
8
|
+
projectOpenAiToolImages,
|
|
9
|
+
toolImages
|
|
10
|
+
} from "./chunk-KYAMW3AY.js";
|
|
4
11
|
import {
|
|
5
12
|
getModelContextWindow
|
|
6
13
|
} from "./chunk-7ZGMQZ5D.js";
|
|
@@ -92,14 +99,57 @@ var toResponsesTools = (tools) => {
|
|
|
92
99
|
};
|
|
93
100
|
var convertMessagesToResponsesInput = (messages, options) => {
|
|
94
101
|
const input = [];
|
|
102
|
+
const imageBudget = createToolImageBudget();
|
|
103
|
+
let acceptedImages = 0;
|
|
95
104
|
for (const message of messages) {
|
|
96
105
|
if (!message?.role) continue;
|
|
97
106
|
if (message.role === "tool") {
|
|
98
107
|
if (!message.tool_call_id) continue;
|
|
108
|
+
if (!options?.supportsToolImages || !hadToolImages(message)) {
|
|
109
|
+
input.push({
|
|
110
|
+
type: "function_call_output",
|
|
111
|
+
call_id: message.tool_call_id,
|
|
112
|
+
output: normalizeToolOutput(message.content)
|
|
113
|
+
});
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
const images = toolImages(message);
|
|
117
|
+
const text = typeof message.content === "string" ? message.content : normalizeToolOutput(message.content);
|
|
118
|
+
const effectiveText = text.trim() ? text : EMPTY_TOOL_RESULT_TEXT;
|
|
119
|
+
const outputParts = [
|
|
120
|
+
{ type: "input_text", text: effectiveText }
|
|
121
|
+
];
|
|
122
|
+
let toolOmitted = 0;
|
|
123
|
+
for (const image of images) {
|
|
124
|
+
const decision = imageBudget(image);
|
|
125
|
+
if (decision === "duplicate") continue;
|
|
126
|
+
if (decision !== "delivered") {
|
|
127
|
+
toolOmitted += 1;
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
acceptedImages += 1;
|
|
131
|
+
outputParts.push({
|
|
132
|
+
type: "input_text",
|
|
133
|
+
text: `Image ${acceptedImages}`
|
|
134
|
+
});
|
|
135
|
+
outputParts.push({
|
|
136
|
+
type: "input_image",
|
|
137
|
+
image_url: `data:${image.mimeType};base64,${image.dataBase64}`
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
if (toolOmitted > 0) {
|
|
141
|
+
outputParts.push({
|
|
142
|
+
type: "input_text",
|
|
143
|
+
text: formatToolImageBudgetNote(toolOmitted)
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
const hadPersistedImages = message?.tool_result_metadata?.[TOOL_HAD_IMAGES] === true;
|
|
147
|
+
const hasInjectedParts = outputParts.some((p) => p.type === "input_image") || toolOmitted > 0;
|
|
148
|
+
const shouldUseArray = hadPersistedImages || hasInjectedParts;
|
|
99
149
|
input.push({
|
|
100
150
|
type: "function_call_output",
|
|
101
151
|
call_id: message.tool_call_id,
|
|
102
|
-
output: normalizeToolOutput(message.content)
|
|
152
|
+
output: shouldUseArray ? outputParts : normalizeToolOutput(message.content)
|
|
103
153
|
});
|
|
104
154
|
continue;
|
|
105
155
|
}
|
|
@@ -1000,6 +1050,17 @@ function preserveAgentStateFields(source, target, options) {
|
|
|
1000
1050
|
}
|
|
1001
1051
|
}
|
|
1002
1052
|
if (source.role === "tool") {
|
|
1053
|
+
if (TOOL_IMAGES in source) {
|
|
1054
|
+
mutableTarget[TOOL_IMAGES] = source[TOOL_IMAGES];
|
|
1055
|
+
}
|
|
1056
|
+
if (source.tool_result_metadata) {
|
|
1057
|
+
Object.defineProperty(mutableTarget, "tool_result_metadata", {
|
|
1058
|
+
value: source.tool_result_metadata,
|
|
1059
|
+
enumerable: false,
|
|
1060
|
+
configurable: true,
|
|
1061
|
+
writable: true
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1003
1064
|
const toolCallId = typeof source.tool_call_id === "string" ? source.tool_call_id.trim() : typeof source.toolCallId === "string" ? source.toolCallId.trim() : "";
|
|
1004
1065
|
if (toolCallId) mutableTarget.tool_call_id = toolCallId;
|
|
1005
1066
|
}
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
toolRunUpdated,
|
|
21
21
|
uiCardFallback,
|
|
22
22
|
waitForAbortableDelay
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5ZTCH2Y6.js";
|
|
24
24
|
import {
|
|
25
25
|
isGatewayHttpStatus
|
|
26
26
|
} from "./chunk-NF64D32W.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-VF4K2QE6.js";
|
|
65
65
|
import {
|
|
66
66
|
createDocState
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-NRO3AZRC.js";
|
|
68
68
|
import {
|
|
69
69
|
addMemberSpace,
|
|
70
70
|
fetchAuthoritativeRemoteSpace,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-BAWAKW7X.js";
|
|
80
80
|
import {
|
|
81
81
|
createDialogAction
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-PN2D6STE.js";
|
|
83
83
|
import {
|
|
84
84
|
setDialogExtraReferencesAction
|
|
85
85
|
} from "./chunk-IF7V3CBU.js";
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
updateContentCategory,
|
|
103
103
|
updateContentTitle,
|
|
104
104
|
writeStoredCollapsedCategories
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-DN2DBFJ2.js";
|
|
106
106
|
import {
|
|
107
107
|
buildDatabaseFileContentUrl,
|
|
108
108
|
deleteDialog,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
selectMsgById,
|
|
116
116
|
uiAskChoiceFunc,
|
|
117
117
|
uiAskChoiceFunctionSchema
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-MBFXRU2T.js";
|
|
119
119
|
import {
|
|
120
120
|
buildMediaToolConfirmation,
|
|
121
121
|
normalizeMediaConfirmExecutionRevision
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
runLlm,
|
|
127
127
|
streamAgentChatTurn,
|
|
128
128
|
updateAgent
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-4NB4XLNL.js";
|
|
130
130
|
import {
|
|
131
131
|
getCurrentSpaceId,
|
|
132
132
|
getCurrentSpaceIdRaw,
|
|
@@ -3882,7 +3882,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3882
3882
|
const deletedDialogIds = [];
|
|
3883
3883
|
const deletedDialogKeys = [];
|
|
3884
3884
|
const failures = [];
|
|
3885
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3885
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-XUN4AEE6.js");
|
|
3886
3886
|
for (const target of targets) {
|
|
3887
3887
|
try {
|
|
3888
3888
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -18563,7 +18563,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18563
18563
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18564
18564
|
};
|
|
18565
18565
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18566
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18566
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-YGM3R64V.js");
|
|
18567
18567
|
if (getDocState().pageKey === id) {
|
|
18568
18568
|
applyExternalDocUpdate({
|
|
18569
18569
|
slateData: finalSlateData,
|