nolo-cli 0.176.0-alpha.1 → 0.177.0-alpha.2
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-OV72YSE4.js → _executeModel-V4F6LXUR.js} +14 -14
- package/{accountResolver-YGMLY3WW.js → accountResolver-OHS53Q75.js} +2 -2
- package/{agentDeleteCommand-HOWS5BAT.js → agentDeleteCommand-Q34SO5JA.js} +18 -18
- package/{agentEmailCommands-3EETPZFC.js → agentEmailCommands-UKGXC6EZ.js} +20 -20
- package/{agentListCommands-7ZZHM4GC.js → agentListCommands-TKISVN5E.js} +8 -8
- package/{agentMachineCommands-BGQVXERS.js → agentMachineCommands-KH5DKZLK.js} +9 -9
- package/{agentRecordCommands-L2O46J54.js → agentRecordCommands-IS2D3GFH.js} +19 -19
- package/{agentRunCommand-7HDQ4RLO.js → agentRunCommand-FVBEBQY5.js} +20 -20
- package/{agentRuntimeLocal-3QX3FMER.js → agentRuntimeLocal-3WVVZA4K.js} +8 -8
- package/{agentSlice-VC7BZD5N.js → agentSlice-QNH6SH4J.js} +1 -1
- package/{appDeleteCommands-NJAVC6F4.js → appDeleteCommands-3FLNWSML.js} +8 -8
- package/{appDeployCommands-POTCQDWQ.js → appDeployCommands-SO2UPSMM.js} +8 -8
- package/{appDeployStatusCommands-YIG5S2ET.js → appDeployStatusCommands-TDUC6XEA.js} +8 -8
- package/{appGetCommands-HSXKEA64.js → appGetCommands-WOEMW3PO.js} +8 -8
- package/{appListCommands-GKLZKGKZ.js → appListCommands-2BXN56DM.js} +8 -8
- package/{authCommand-2IUG2PX7.js → authCommand-R2VRZLJY.js} +3 -3
- package/{chromeCommands-Z5LDHMYN.js → chromeCommands-VANHVOCE.js} +2 -2
- package/{chromeOpsCommands-CHBIUDJD.js → chromeOpsCommands-RY776THN.js} +2 -2
- package/{chunk-73FHDE7C.js → chunk-32Z3HRB4.js} +2 -2
- package/{chunk-P3KTMRQ2.js → chunk-33A622FT.js} +1 -1
- package/{chunk-S4SXPMPC.js → chunk-3TPHYXLU.js} +2 -2
- package/{chunk-GJU7F5IR.js → chunk-45QG4FAQ.js} +1 -1
- package/{chunk-U3YGSKXD.js → chunk-AEZBL2MY.js} +1 -1
- package/{chunk-DRR5E2EM.js → chunk-D6QFFZVF.js} +2 -2
- package/{chunk-MR7SWXO4.js → chunk-F5FKWNKF.js} +16 -16
- package/{chunk-36OQE7ZU.js → chunk-FQAQNSLP.js} +9 -9
- package/{chunk-SRZ6BQIP.js → chunk-HIVDQPQR.js} +9 -1
- package/{chunk-IR55JAHL.js → chunk-IWJROEPD.js} +3 -3
- package/{chunk-TV6QW46C.js → chunk-KVCFBIRU.js} +8 -8
- package/{chunk-IJOJMOCX.js → chunk-KYAMW3AY.js} +4 -4
- package/{chunk-GHNRJ3TK.js → chunk-KZMDDWPY.js} +3 -3
- package/{chunk-QMFYP3O4.js → chunk-NCBXTFBP.js} +2 -2
- package/{chunk-QA5LXQFO.js → chunk-NOW2BQI4.js} +56 -20
- package/{chunk-GA4NE7QH.js → chunk-OD6ENIKN.js} +3 -3
- package/{chunk-3ERN2PSD.js → chunk-OEVWFVSS.js} +3 -3
- package/{chunk-XIM37FAU.js → chunk-PSJXWKPQ.js} +8 -8
- package/{chunk-SYIWIP4D.js → chunk-QABYIMXP.js} +2 -2
- package/{chunk-JJE5HQ6M.js → chunk-SDONLCYB.js} +5 -5
- package/{chunk-CCWUO2ZE.js → chunk-SLSWIH7D.js} +2 -2
- package/{chunk-XRU4QTSX.js → chunk-SOY7VHZN.js} +0 -3
- package/{chunk-33AGCT5W.js → chunk-TM2I6CPS.js} +1 -1
- package/{chunk-UPJVQK5J.js → chunk-UVOA25PV.js} +2 -2
- package/{chunk-LQRXBYTS.js → chunk-VYQMMIBR.js} +8 -8
- package/{chunk-CS4FUKMG.js → chunk-XEAOB5YS.js} +2 -2
- package/{chunk-DPQYIS6D.js → chunk-YUXSWHQC.js} +3 -2
- package/{commandRegistry-B24YK3LB.js → commandRegistry-DRJQWHOB.js} +51 -51
- package/{contentThunks-F4Y7V4IH.js → contentThunks-BMJI3JJA.js} +3 -3
- package/{createAgentAutomationAction-7K5M7ULU.js → createAgentAutomationAction-VC3PLYUE.js} +3 -3
- package/{createDialogAction-SYA2LFEN.js → createDialogAction-VAB5FNNF.js} +4 -4
- package/{createPageAction-FAYZZVYI.js → createPageAction-QECNYENN.js} +3 -3
- package/{dialogCommands-K6AQZTAS.js → dialogCommands-XJEBD7GL.js} +8 -8
- package/{dialogSlice-QRWP73XJ.js → dialogSlice-JOMW24BQ.js} +2 -2
- package/{docCreateCommands-3ZDCDYLH.js → docCreateCommands-6W77Z3OF.js} +8 -8
- package/{docDeleteCommands-O74MHZEA.js → docDeleteCommands-BXROTTZN.js} +8 -8
- package/{docReadCommands-QJPAFQS3.js → docReadCommands-63O7O5GV.js} +8 -8
- package/{docStore-TABPPAGD.js → docStore-4KT7EHZO.js} +1 -1
- package/{docUpdateCommands-M3THSN6V.js → docUpdateCommands-BHCB5LCK.js} +8 -8
- package/{handleSendMessageAction-FRBUFXEC.js → handleSendMessageAction-OGUIPOMS.js} +8 -8
- package/index.js +4 -4
- package/{localRuntimeAdapter-2YSA5D7P.js → localRuntimeAdapter-UTNONWD3.js} +18 -18
- package/{machineCommands-LVRRVNPD.js → machineCommands-FKJYH63H.js} +19 -19
- package/{machineWsRunDispatch-HUQ6HPSC.js → machineWsRunDispatch-UYJUTEXN.js} +19 -19
- package/package.json +1 -1
- package/{readlineWorkspace-N74QNU7H.js → readlineWorkspace-JBPJ53IJ.js} +20 -20
- package/{runAgentClientLoop-NYZWX6JF.js → runAgentClientLoop-RDYMQTSB.js} +12 -12
- package/{spaceCommands-5ZN5J2X3.js → spaceCommands-XOBEB5PB.js} +8 -8
- package/{streamAgentChatTurn-LP3RQ3K5.js → streamAgentChatTurn-UOBJLR2V.js} +16 -16
- package/{tools-KYFVARQ5.js → tools-B55PB6ML.js} +7 -7
- package/{tuiSummaryLlmCaller-OM3V6TZG.js → tuiSummaryLlmCaller-H2CLON2B.js} +4 -4
- package/{updateDialogTitleAction-4ESKJ7L6.js → updateDialogTitleAction-NPNSXH5Z.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-NOW2BQI4.js";
|
|
21
|
+
import "./chunk-NCBXTFBP.js";
|
|
22
22
|
import "./chunk-ZNFJWEN4.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-D6QFFZVF.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-XEAOB5YS.js";
|
|
29
29
|
import "./chunk-2WZXXAQD.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-SOY7VHZN.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-NOW2BQI4.js";
|
|
22
|
+
import "./chunk-NCBXTFBP.js";
|
|
23
23
|
import "./chunk-ZNFJWEN4.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-D6QFFZVF.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-XEAOB5YS.js";
|
|
30
30
|
import "./chunk-2WZXXAQD.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-SOY7VHZN.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-NOW2BQI4.js";
|
|
22
|
+
import "./chunk-NCBXTFBP.js";
|
|
23
23
|
import "./chunk-ZNFJWEN4.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-D6QFFZVF.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-XEAOB5YS.js";
|
|
30
30
|
import "./chunk-2WZXXAQD.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-SOY7VHZN.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-NCBXTFBP.js";
|
|
69
69
|
import "./chunk-HNUWUO75.js";
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-SOY7VHZN.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,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-45QG4FAQ.js";
|
|
4
4
|
import {
|
|
5
5
|
format,
|
|
6
6
|
prepareAndPersistMessage,
|
|
7
7
|
uiAskChoiceFunc,
|
|
8
8
|
uiAskChoiceFunctionSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VYQMMIBR.js";
|
|
10
10
|
import {
|
|
11
11
|
formatISO
|
|
12
12
|
} from "./chunk-ZRAU6T47.js";
|
|
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
333
333
|
).unwrap();
|
|
334
334
|
if (dbSpaceId) {
|
|
335
335
|
try {
|
|
336
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
336
|
+
const { updateContentTitle } = await import("./contentThunks-BMJI3JJA.js");
|
|
337
337
|
await dispatch(
|
|
338
338
|
updateContentTitle({
|
|
339
339
|
spaceId: dbSpaceId,
|
|
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
async function createDocState(args, thunkApi) {
|
|
375
|
-
const { createPageAction } = await import("./createPageAction-
|
|
375
|
+
const { createPageAction } = await import("./createPageAction-QECNYENN.js");
|
|
376
376
|
return createPageAction(args, thunkApi);
|
|
377
377
|
}
|
|
378
378
|
function subscribe(listener) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveToolImagePolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SOY7VHZN.js";
|
|
7
7
|
import {
|
|
8
8
|
accumulateToolCallDelta,
|
|
9
9
|
createThinkParserState,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
stablePromptCacheKey,
|
|
31
31
|
toOpenAiCompatibleMessages,
|
|
32
32
|
toResponsesTools
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-AEZBL2MY.js";
|
|
34
34
|
import {
|
|
35
35
|
isMeaningfulChatCompletionOutput,
|
|
36
36
|
isMeaningfulResponsesOutput
|
|
@@ -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-SLSWIH7D.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-KVCFBIRU.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-QABYIMXP.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-VYQMMIBR.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-KZMDDWPY.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-NOW2BQI4.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-NCBXTFBP.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-D6QFFZVF.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-XEAOB5YS.js";
|
|
204
204
|
import {
|
|
205
205
|
resolveHistoricalToolContentCap
|
|
206
206
|
} from "./chunk-2WZXXAQD.js";
|
|
207
207
|
import {
|
|
208
208
|
resolveToolImagePolicy
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-SOY7VHZN.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,
|
|
@@ -827,13 +827,13 @@ function buildAnthropicMessagesBody(args) {
|
|
|
827
827
|
const notices = toolImageNotices(message);
|
|
828
828
|
const imageBlocks = [];
|
|
829
829
|
if (resolveToolImagePolicy({ ...args.agentConfig, routeKind: "anthropic" }).supportsToolImages) {
|
|
830
|
-
for (const image of images) {
|
|
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: {
|
|
@@ -9659,7 +9659,7 @@ async function createLocalDockerWorkload(args) {
|
|
|
9659
9659
|
const createLifecycle = args.createLifecycle ?? (async () => {
|
|
9660
9660
|
const [{ DockerWorkloadLifecycle, createDockerBindingAuthorizer }, accounts] = await Promise.all([
|
|
9661
9661
|
import("./workloadLifecycle-MZ2V5L43.js"),
|
|
9662
|
-
import("./accountResolver-
|
|
9662
|
+
import("./accountResolver-OHS53Q75.js")
|
|
9663
9663
|
]);
|
|
9664
9664
|
const resolveAccount = args.resolveAccount ?? accounts.createDockerAccountResolver({
|
|
9665
9665
|
env: args.env,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveRawAgentInput,
|
|
10
10
|
resolveServerUrl,
|
|
11
11
|
writeUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-33A622FT.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-F5FKWNKF.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-KVCFBIRU.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-QABYIMXP.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-32Z3HRB4.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-VYQMMIBR.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-NOW2BQI4.js";
|
|
119
119
|
import {
|
|
120
120
|
resolveAgentRuntimeConfigFromRecord
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-XEAOB5YS.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-3WVVZA4K.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,3 +1,8 @@
|
|
|
1
|
+
// packages/agent-runtime/imageSummary.ts
|
|
2
|
+
function formatImageSummary(summary) {
|
|
3
|
+
return `[${summary.kind} ${summary.width}x${summary.height} ${summary.bytes} bytes \u2192 ${summary.path}]`;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
// packages/agent-runtime/readImage.ts
|
|
2
7
|
import { readFile } from "node:fs/promises";
|
|
3
8
|
import { extname } from "node:path";
|
|
@@ -57,12 +62,15 @@ async function readLocalImage(path, options) {
|
|
|
57
62
|
height = resized.info.height;
|
|
58
63
|
mimeType = "image/jpeg";
|
|
59
64
|
}
|
|
65
|
+
const imageSummary = { width, height, bytes: output.length, path };
|
|
60
66
|
return {
|
|
61
|
-
|
|
67
|
+
imageSummary,
|
|
68
|
+
content: formatImageSummary({ kind: "image", ...imageSummary }),
|
|
62
69
|
images: [{ mimeType, dataBase64: output.toString("base64") }]
|
|
63
70
|
};
|
|
64
71
|
}
|
|
65
72
|
|
|
66
73
|
export {
|
|
74
|
+
formatImageSummary,
|
|
67
75
|
readLocalImage
|
|
68
76
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F5FKWNKF.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-QABYIMXP.js";
|
|
11
11
|
import {
|
|
12
12
|
runLocalAgentTurn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NOW2BQI4.js";
|
|
14
14
|
import {
|
|
15
15
|
applyToolSurfaceConstraints
|
|
16
16
|
} from "./chunk-2GRXE3YJ.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
toolRunUpdated,
|
|
21
21
|
uiCardFallback,
|
|
22
22
|
waitForAbortableDelay
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QABYIMXP.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-3TPHYXLU.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-32Z3HRB4.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-45QG4FAQ.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-VYQMMIBR.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-KZMDDWPY.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-JOMW24BQ.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-4KT7EHZO.js");
|
|
18567
18567
|
if (getDocState().pageKey === id) {
|
|
18568
18568
|
applyExternalDocUpdate({
|
|
18569
18569
|
slateData: finalSlateData,
|
|
@@ -57,8 +57,8 @@ function createToolImageBudget() {
|
|
|
57
57
|
return "delivered";
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function toolImageSource(message) {
|
|
61
|
-
const path = typeof message.content === "string" ? message.content.match(/→ ([^\s\x00-\x1f\x7f]+)/u)?.[1]?.replace(/\]$/, "") : void 0;
|
|
60
|
+
function toolImageSource(message, imageIndex = 0) {
|
|
61
|
+
const path = typeof message.content === "string" ? (Array.from(message.content.matchAll(/→ ([^\s\x00-\x1f\x7f]+)/gu))[imageIndex]?.[1] ?? message.content.match(/→ ([^\s\x00-\x1f\x7f]+)/u)?.[1])?.replace(/\]$/, "") : void 0;
|
|
62
62
|
return `${(message.tool_call_id ?? "unknown").replace(/[\x00-\x1f\x7f]/g, "")}${path ? ` (${path})` : ""}`;
|
|
63
63
|
}
|
|
64
64
|
function toolImageOmission(source, impossible) {
|
|
@@ -107,10 +107,10 @@ function projectOpenAiToolImages(messages, supportsImages) {
|
|
|
107
107
|
messages.forEach((message, index) => {
|
|
108
108
|
if (message.role === "tool") lastTool = index;
|
|
109
109
|
if (!supportsImages) return;
|
|
110
|
-
for (const image of toolImages(message)) {
|
|
110
|
+
for (const [imageIndex, image] of toolImages(message).entries()) {
|
|
111
111
|
const decision = budget(image);
|
|
112
112
|
if (decision === "duplicate") continue;
|
|
113
|
-
const source = toolImageSource(message);
|
|
113
|
+
const source = toolImageSource(message, imageIndex);
|
|
114
114
|
if (decision !== "delivered") {
|
|
115
115
|
omitted.push(toolImageOmission(source, decision === "impossible"));
|
|
116
116
|
continue;
|
|
@@ -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-V4F6LXUR.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-RDYMQTSB.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-UOBJLR2V.js");
|
|
388
388
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
389
389
|
}),
|
|
390
390
|
/**
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveToolImagePolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SOY7VHZN.js";
|
|
7
7
|
import {
|
|
8
8
|
projectOpenAiToolImages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KYAMW3AY.js";
|
|
10
10
|
import {
|
|
11
11
|
getAntigravityUserAgent,
|
|
12
12
|
readAntigravityProjectId,
|