nolo-cli 0.171.0-alpha.1 → 0.171.0
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-YJW2HPFY.js → _executeModel-7J6IIHWQ.js} +29 -29
- package/{agentDeleteCommand-O3EG3HS4.js → agentDeleteCommand-F66NIWCF.js} +37 -37
- package/{agentEmailCommands-AIWZNMRW.js → agentEmailCommands-M4SHODDA.js} +41 -41
- package/{agentListCommands-377PQ6K4.js → agentListCommands-4BBFWXHX.js} +25 -25
- package/{agentMachineCommands-TYL7KKSL.js → agentMachineCommands-R55P5SZY.js} +21 -21
- package/{agentProviderCommands-TWVILNAN.js → agentProviderCommands-4USYTCL3.js} +2 -2
- package/{agentRecordCommands-YPRND72K.js → agentRecordCommands-PDWACZFR.js} +37 -37
- package/{agentRunCommand-T7AQKKH5.js → agentRunCommand-U2F74LTS.js} +38 -38
- package/{agentRunControl-SBHIICUQ.js → agentRunControl-EI3BGJFM.js} +5 -5
- package/{agentRuntimeLocal-7ZE2ZQAL.js → agentRuntimeLocal-7EZYBR6X.js} +19 -19
- package/{agentSlice-BHH2DZKN.js → agentSlice-UN7ZHCAM.js} +3 -3
- package/{appDeleteCommands-LHOX4HM3.js → appDeleteCommands-WS3UFMCB.js} +22 -22
- package/{appDeployCommands-A6CQQTI3.js → appDeployCommands-W5B7I73P.js} +22 -22
- package/{appDeployStatusCommands-7TTNQODL.js → appDeployStatusCommands-UEHNV2GU.js} +22 -22
- package/{appGetCommands-22F4E37N.js → appGetCommands-XJOBVREN.js} +22 -22
- package/{appListCommands-WCDOJUVV.js → appListCommands-BISQV6BQ.js} +22 -22
- package/{authCommand-BSOLJFPV.js → authCommand-H35CPF25.js} +12 -12
- package/{builtinSkillRegistry-V76JTNCJ.js → builtinSkillRegistry-LJV7FHNI.js} +2 -2
- package/{chunk-22FIHMYU.js → chunk-2AZSL4GL.js} +3 -3
- package/{chunk-6OYC7NDH.js → chunk-2DXGW4UO.js} +37 -160
- package/{chunk-UPC23AAN.js → chunk-3ELX6JK5.js} +10 -10
- package/{chunk-7CDMXZJA.js → chunk-3USFOET4.js} +3 -3
- package/{chunk-EPMWJ7X7.js → chunk-45IOFLGH.js} +11 -11
- package/{chunk-UIVOLTFM.js → chunk-46OQD3AP.js} +4 -4
- package/{chunk-GC64WGMD.js → chunk-6EQD4AQL.js} +1 -1
- package/{chunk-TWJYVVUB.js → chunk-6MXCQLLB.js} +74 -321
- package/{chunk-72T5DXRH.js → chunk-7NKZA46B.js} +4 -4
- package/{chunk-K2NTGYVK.js → chunk-7VWWGKEQ.js} +3 -3
- package/{chunk-XHR22EKE.js → chunk-ASSNAASW.js} +5 -5
- package/{chunk-JHXY4H3P.js → chunk-BSKTDOGA.js} +56 -56
- package/{chunk-X2Q5GT5J.js → chunk-CEQFVBI2.js} +3 -3
- package/{chunk-AUGBRK3P.js → chunk-CEXJ6Y3C.js} +1 -2
- package/{chunk-MIME4XKU.js → chunk-CMRP4XHV.js} +12 -12
- package/{chunk-Q7UPF643.js → chunk-DHNQA4VI.js} +1 -1
- package/{chunk-7L2HZQNN.js → chunk-DI7ZFGDQ.js} +2 -2
- package/{chunk-OQ3DOBYB.js → chunk-EWO77ZGF.js} +3 -3
- package/{chunk-AGAB26VE.js → chunk-FQU23S3P.js} +11 -11
- package/{chunk-HLAL63BZ.js → chunk-FYYSDHVQ.js} +1 -1
- package/{chunk-AJ52EA72.js → chunk-G3VYRPTV.js} +4 -4
- package/{chunk-O3FUFEUI.js → chunk-HEC32F3G.js} +1 -1
- package/{chunk-WPOSH6PA.js → chunk-HZMWJUSD.js} +2 -2
- package/{chunk-KNDA4K34.js → chunk-I7S63QUU.js} +1 -1
- package/{chunk-CAAH5LNN.js → chunk-IMMA7QFE.js} +2 -2
- package/{chunk-EWLPIR2S.js → chunk-IOFLVIKF.js} +1 -1
- package/{chunk-APB44JID.js → chunk-JPPQ3GUO.js} +3 -3
- package/{chunk-OPNHKULV.js → chunk-KJETBEEN.js} +1 -1
- package/{chunk-XWX5ZGWR.js → chunk-KMDDG73K.js} +1 -1
- package/{chunk-SUBKVXFM.js → chunk-LEZLJTQ4.js} +1 -1
- package/{chunk-W6E5IXIP.js → chunk-MFVOJ6KF.js} +3 -3
- package/{chunk-CEYUVQYU.js → chunk-O2AY3CVI.js} +16 -16
- package/{chunk-I2QHI2XM.js → chunk-PIG2IUVZ.js} +2 -2
- package/{chunk-ZJ66I757.js → chunk-QW6SSF7V.js} +15 -15
- package/{chunk-6OC2YMGH.js → chunk-SAZSXMTR.js} +4 -4
- package/{chunk-3LNVSFTH.js → chunk-SH3XD4E2.js} +1 -2
- package/{chunk-TSCI6X6C.js → chunk-SQX235S2.js} +1 -1
- package/{chunk-RATR6VCP.js → chunk-TOUKACDK.js} +1 -1
- package/{chunk-BQSW7453.js → chunk-URO44BCD.js} +1 -1
- package/{chunk-CI5DVWU7.js → chunk-URW5UM6Y.js} +1 -1
- package/{chunk-TVGX5QIN.js → chunk-V7PCFWX3.js} +2 -2
- package/{chunk-BJWOOJX5.js → chunk-WC7UXON2.js} +36 -89
- package/{chunk-P4V35AFD.js → chunk-WLPUUBFR.js} +3 -3
- package/{chunk-DWQD3JTX.js → chunk-WVREKHHJ.js} +3 -3
- package/{chunk-SC5TDLTP.js → chunk-XITIONPS.js} +6 -6
- package/{chunk-7MBN2JZ5.js → chunk-XLBQQ5SB.js} +4 -4
- package/{chunk-TYQZRSL6.js → chunk-XLQFVHNX.js} +1 -1
- package/{chunk-WXOKJP3W.js → chunk-YCRROBDY.js} +1 -2
- package/{chunk-C2OYZYJ7.js → chunk-Z6HR75HX.js} +3 -3
- package/{chunk-TDNAAXUQ.js → chunk-ZPKUJROL.js} +2 -2
- package/{commandRegistry-EAPXP4BC.js → commandRegistry-HI2DPDAH.js} +61 -61
- package/{contentThunks-SJAKJV4V.js → contentThunks-OO3MJAED.js} +11 -11
- package/{createAgentAutomationAction-IBSAZBSP.js → createAgentAutomationAction-F3O6FJ5W.js} +11 -11
- package/{createDialogAction-MQDTLASD.js → createDialogAction-UBQKDUK5.js} +13 -13
- package/{createPageAction-EOPBBQMH.js → createPageAction-RDEDO4GF.js} +11 -11
- package/{dialogCommands-SV4M5HAV.js → dialogCommands-P5HSDZ7T.js} +23 -23
- package/{dialogSlice-6CC3YDDL.js → dialogSlice-WZCWWYR3.js} +10 -10
- package/{docCreateCommands-UC2CPMH7.js → docCreateCommands-B2M3MGX7.js} +21 -21
- package/{docDeleteCommands-SRPTGMZ2.js → docDeleteCommands-NHCUX4XL.js} +22 -22
- package/{docReadCommands-U3TDUPOY.js → docReadCommands-FOLST4JD.js} +21 -21
- package/{docStore-RSBDE3UH.js → docStore-PTSCGC6T.js} +1 -1
- package/{docUpdateCommands-G5J5UKGP.js → docUpdateCommands-YZT2PQP2.js} +21 -21
- package/{getPricing-2UPNNW3Y.js → getPricing-XQ3N3RBP.js} +3 -3
- package/{handleSendMessageAction-EM43KNSP.js → handleSendMessageAction-3YMQS6XO.js} +23 -23
- package/index.js +47 -22
- package/{localRuntimeAdapter-N5WDXYSY.js → localRuntimeAdapter-ZIAOTUBE.js} +35 -35
- package/{machineCommands-L34XTTLG.js → machineCommands-3LSEP24P.js} +36 -36
- package/{machineWsRunDispatch-IKI7FGKI.js → machineWsRunDispatch-7A3TSH4Q.js} +36 -36
- package/{models-UUNO6DOL.js → models-PZQC7VV4.js} +2 -2
- package/package.json +1 -1
- package/{providerPresetApply-5K4PBX4J.js → providerPresetApply-PKUOHQJT.js} +6 -6
- package/{providerRegistry-K5MSZ3Y5.js → providerRegistry-HNQLIFN2.js} +6 -6
- package/{readlineWorkspace-ZANIHEDR.js → readlineWorkspace-67ZVVHVC.js} +43 -43
- package/{runAgentClientLoop-HPF2WFFQ.js → runAgentClientLoop-F6EQK26A.js} +27 -27
- package/{runtimeDoctorCommands-DXJH5HIB.js → runtimeDoctorCommands-LYMJEM4F.js} +6 -6
- package/{secretCommands-7S6REMJV.js → secretCommands-DNY56NSU.js} +2 -2
- package/{spaceCommands-6KPBWGGE.js → spaceCommands-XESXH5CW.js} +21 -21
- package/{streamAgentChatTurn-3SNWCCK2.js → streamAgentChatTurn-KXELVHFR.js} +33 -33
- package/{tools-7SMCO2GW.js → tools-FMNDEVTZ.js} +21 -21
- package/{tuiSummaryLlmCaller-H6WX54WY.js → tuiSummaryLlmCaller-FQOEF4IE.js} +8 -8
- package/{updateCommands-C56QMWHF.js → updateCommands-BXGFH4VX.js} +1 -1
- package/{updateDialogTitleAction-XIMLNROU.js → updateDialogTitleAction-65R3Y22L.js} +11 -11
- package/{chunk-5KTQVMCX.js → chunk-CGFNDIKK.js} +0 -0
- package/{chunk-76YUTLOT.js → chunk-UHTDNB5Y.js} +3 -3
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
refreshOpenAiCodexToken,
|
|
6
6
|
resolveServerSyncConfig,
|
|
7
7
|
xaiRefresh
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G3VYRPTV.js";
|
|
9
9
|
import {
|
|
10
10
|
clearCredentialAvailability,
|
|
11
11
|
markCredentialUnavailable,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./chunk-BU2YQBV4.js";
|
|
55
55
|
import {
|
|
56
56
|
applyPublicAgentCatalogOverride
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-MFVOJ6KF.js";
|
|
58
58
|
import {
|
|
59
59
|
buildCliPrompt
|
|
60
60
|
} from "./chunk-ATNTHIZI.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
inlineImageUrlsForCustomProvider,
|
|
66
66
|
prepareTools
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-2AZSL4GL.js";
|
|
68
68
|
import {
|
|
69
69
|
getServerProviderSecret
|
|
70
70
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -86,18 +86,18 @@ import {
|
|
|
86
86
|
resolveCliLocalRuntimeKeyCapability,
|
|
87
87
|
resolveCliLocalSpawnDispatch,
|
|
88
88
|
resolveStartAgentRunCwd
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-QW6SSF7V.js";
|
|
90
90
|
import {
|
|
91
91
|
deriveCredentialGroup,
|
|
92
92
|
deriveCustomProviderCredentialGroup
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-XITIONPS.js";
|
|
94
94
|
import {
|
|
95
95
|
fetchWithTransientRetry,
|
|
96
96
|
isTransientFetchError
|
|
97
97
|
} from "./chunk-KFHREHUQ.js";
|
|
98
98
|
import {
|
|
99
99
|
resolveAgentRequiredPackIds
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-WLPUUBFR.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-CMRP4XHV.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-XLBQQ5SB.js";
|
|
117
117
|
import {
|
|
118
118
|
isTombstoneRecord
|
|
119
119
|
} from "./chunk-D2MDMY2M.js";
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
applySystemBuiltinSkillFilter,
|
|
127
127
|
expandEnabledPacks,
|
|
128
128
|
resolveEffectiveEnabledPacks
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-YCRROBDY.js";
|
|
130
130
|
import {
|
|
131
131
|
DEFAULT_HYBRID_READ_TIMEOUT_MS,
|
|
132
132
|
Duration_exports,
|
|
@@ -168,10 +168,9 @@ import {
|
|
|
168
168
|
resolveSessionKey,
|
|
169
169
|
responsesStreamFailureStatus,
|
|
170
170
|
runExecShellGates,
|
|
171
|
-
toolImages,
|
|
172
171
|
validateConfiguredRootExecutionLease,
|
|
173
172
|
verifyOwnerRouteAck
|
|
174
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-2DXGW4UO.js";
|
|
175
174
|
import {
|
|
176
175
|
accumulateGeminiChunks,
|
|
177
176
|
buildGeminiGenerateContentRequest,
|
|
@@ -183,7 +182,7 @@ import {
|
|
|
183
182
|
resolveAntigravityFinishReason,
|
|
184
183
|
resolveGeminiModelQuirks,
|
|
185
184
|
shouldUseGeminiNativeToolRoute
|
|
186
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-KMDDG73K.js";
|
|
187
186
|
import {
|
|
188
187
|
PlatformStreamInterruptedError,
|
|
189
188
|
buildPlatformChatCompletionRequest,
|
|
@@ -194,26 +193,24 @@ import {
|
|
|
194
193
|
readPlatformChatSseCompletion,
|
|
195
194
|
resolvePlatformChatProviderConfig,
|
|
196
195
|
shouldUsePlatformChatProvider
|
|
197
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-7NKZA46B.js";
|
|
198
197
|
import {
|
|
199
198
|
readSseDataValues,
|
|
200
199
|
readSseFrames
|
|
201
200
|
} from "./chunk-HNUWUO75.js";
|
|
202
201
|
import {
|
|
203
|
-
IMAGE_OMITTED_PLACEHOLDER,
|
|
204
202
|
resolveAgentRuntimeConfigFromRecord
|
|
205
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-CEXJ6Y3C.js";
|
|
206
204
|
import {
|
|
207
|
-
resolveAgentImageInputSupport,
|
|
208
205
|
resolveHistoricalToolContentCap
|
|
209
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-BSKTDOGA.js";
|
|
210
207
|
import {
|
|
211
208
|
collectStablePromptPrefix,
|
|
212
209
|
convertMessagesToResponsesInput,
|
|
213
210
|
findAgentStatePairingIssues,
|
|
214
211
|
stablePromptCacheKey,
|
|
215
212
|
toResponsesTools
|
|
216
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-DI7ZFGDQ.js";
|
|
217
214
|
import {
|
|
218
215
|
buildNoloWorkspaceOpenAiTools,
|
|
219
216
|
filterClientNoloWorkspaceToolNames,
|
|
@@ -234,7 +231,7 @@ import {
|
|
|
234
231
|
import {
|
|
235
232
|
isOAuthApiKeyRef,
|
|
236
233
|
normalizeUsage
|
|
237
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-HEC32F3G.js";
|
|
238
235
|
import {
|
|
239
236
|
isDevinOAuthAgent
|
|
240
237
|
} from "./chunk-5ZUL4CUO.js";
|
|
@@ -244,7 +241,7 @@ import {
|
|
|
244
241
|
observeMeaningfulProviderResponse,
|
|
245
242
|
observeMeaningfulProviderResponseAt,
|
|
246
243
|
withProviderCallTimingFields
|
|
247
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-ASSNAASW.js";
|
|
248
245
|
import {
|
|
249
246
|
clipCompactText
|
|
250
247
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -258,19 +255,13 @@ import {
|
|
|
258
255
|
} from "./chunk-LIQJTQRN.js";
|
|
259
256
|
import {
|
|
260
257
|
createFileCredentialBroker
|
|
261
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-UHTDNB5Y.js";
|
|
262
259
|
import {
|
|
263
260
|
asRecordOrEmpty
|
|
264
261
|
} from "./chunk-KX6YBIHG.js";
|
|
265
262
|
import {
|
|
266
263
|
isAbortError
|
|
267
264
|
} from "./chunk-7DPNBQSV.js";
|
|
268
|
-
import {
|
|
269
|
-
createOAuthTokenStore,
|
|
270
|
-
isTokenExpired,
|
|
271
|
-
readOAuthCredential,
|
|
272
|
-
resolveFreshAccessToken
|
|
273
|
-
} from "./chunk-ZWQUWF6W.js";
|
|
274
265
|
import {
|
|
275
266
|
canonicalizeToolNames
|
|
276
267
|
} from "./chunk-5EBLANFT.js";
|
|
@@ -312,7 +303,7 @@ import {
|
|
|
312
303
|
terminateRunProcess,
|
|
313
304
|
transitionRunToTerminal,
|
|
314
305
|
withQueueLock
|
|
315
|
-
} from "./chunk-
|
|
306
|
+
} from "./chunk-URW5UM6Y.js";
|
|
316
307
|
import {
|
|
317
308
|
TASK_PREVIEW_MAX,
|
|
318
309
|
formatListRunsCard,
|
|
@@ -349,16 +340,16 @@ import {
|
|
|
349
340
|
} from "./chunk-LCBAMY2M.js";
|
|
350
341
|
import {
|
|
351
342
|
isAntigravityOAuthAgent
|
|
352
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-SQX235S2.js";
|
|
353
344
|
import {
|
|
354
345
|
buildProviderSessionHeaders,
|
|
355
346
|
resolvePlatformAuthToken
|
|
356
|
-
} from "./chunk-
|
|
347
|
+
} from "./chunk-PIG2IUVZ.js";
|
|
357
348
|
import {
|
|
358
349
|
anthropicOAuthModelMaxOutputTokens,
|
|
359
350
|
findModelConfig,
|
|
360
351
|
isAdaptiveThinkingModelId
|
|
361
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-6EQD4AQL.js";
|
|
362
353
|
import {
|
|
363
354
|
CLI_PROVIDER_VALUES,
|
|
364
355
|
isCliProvider
|
|
@@ -384,6 +375,12 @@ import {
|
|
|
384
375
|
import {
|
|
385
376
|
asTrimmedLowercaseString
|
|
386
377
|
} from "./chunk-QSJ3HFEF.js";
|
|
378
|
+
import {
|
|
379
|
+
createOAuthTokenStore,
|
|
380
|
+
isTokenExpired,
|
|
381
|
+
readOAuthCredential,
|
|
382
|
+
resolveFreshAccessToken
|
|
383
|
+
} from "./chunk-ZWQUWF6W.js";
|
|
387
384
|
|
|
388
385
|
// packages/agent-runtime/anthropicMessagesProvider.ts
|
|
389
386
|
import { randomUUID } from "node:crypto";
|
|
@@ -745,22 +742,6 @@ function foldIntoTrailingToolResult(blocks, extra) {
|
|
|
745
742
|
last.content = [...existing, ...extra];
|
|
746
743
|
return true;
|
|
747
744
|
}
|
|
748
|
-
function assertNonEmptyToolResults(messages) {
|
|
749
|
-
const placeholder = "[Tool completed without output]";
|
|
750
|
-
for (const message of messages) {
|
|
751
|
-
if (!Array.isArray(message.content)) continue;
|
|
752
|
-
for (const block of message.content) {
|
|
753
|
-
if (!block || block.type !== "tool_result") continue;
|
|
754
|
-
if (typeof block.content === "string") {
|
|
755
|
-
if (block.content.trim() === "") block.content = placeholder;
|
|
756
|
-
} else if (Array.isArray(block.content)) {
|
|
757
|
-
if (block.content.length === 0) block.content = placeholder;
|
|
758
|
-
} else if (block.content === void 0 || block.content === null) {
|
|
759
|
-
block.content = placeholder;
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
745
|
function hasClaudeCodeIdentity(system) {
|
|
765
746
|
return system.some((block) => {
|
|
766
747
|
if (!block || typeof block !== "object") return false;
|
|
@@ -806,23 +787,7 @@ function buildAnthropicMessagesBody(args) {
|
|
|
806
787
|
pushMessage(messages, "user", [{
|
|
807
788
|
type: "tool_result",
|
|
808
789
|
tool_use_id: toolUseId,
|
|
809
|
-
content: (
|
|
810
|
-
const text = typeof message.content === "string" ? message.content : JSON.stringify(message.content ?? "");
|
|
811
|
-
const images = toolImages(message);
|
|
812
|
-
if (!images.length) return text;
|
|
813
|
-
if (!resolveAgentImageInputSupport(args.agentConfig)) {
|
|
814
|
-
return [{ type: "text", text: `${text}
|
|
815
|
-
${IMAGE_OMITTED_PLACEHOLDER}` }];
|
|
816
|
-
}
|
|
817
|
-
return [
|
|
818
|
-
...text.trim() ? [{ type: "text", text }] : [],
|
|
819
|
-
...images.map((image) => ({ type: "image", source: {
|
|
820
|
-
type: "base64",
|
|
821
|
-
media_type: image.mimeType,
|
|
822
|
-
data: image.dataBase64
|
|
823
|
-
} }))
|
|
824
|
-
];
|
|
825
|
-
})()
|
|
790
|
+
content: typeof message.content === "string" ? message.content : JSON.stringify(message.content ?? "")
|
|
826
791
|
}]);
|
|
827
792
|
}
|
|
828
793
|
continue;
|
|
@@ -852,7 +817,6 @@ ${IMAGE_OMITTED_PLACEHOLDER}` }];
|
|
|
852
817
|
}
|
|
853
818
|
pushMessage(messages, role, blocks);
|
|
854
819
|
}
|
|
855
|
-
assertNonEmptyToolResults(messages);
|
|
856
820
|
if (!hasClaudeCodeIdentity(system)) {
|
|
857
821
|
system.unshift({ type: "text", text: CLAUDE_CODE_SYSTEM_INSTRUCTION });
|
|
858
822
|
}
|
|
@@ -1064,8 +1028,7 @@ function buildPreparedAgentCacheKey(args) {
|
|
|
1064
1028
|
const systemBuiltinSkillsKey = args.systemBuiltinSkills ? JSON.stringify(
|
|
1065
1029
|
Object.keys(args.systemBuiltinSkills).sort().map((key) => [key, args.systemBuiltinSkills?.[key]])
|
|
1066
1030
|
) : "default";
|
|
1067
|
-
|
|
1068
|
-
return `${args.userId}\0${args.agentRef}\0${args.cwd}\0${systemBuiltinSkillsKey}${wakeKey ? `\0${wakeKey}` : ""}`;
|
|
1031
|
+
return `${args.userId}\0${args.agentRef}\0${args.cwd}\0${systemBuiltinSkillsKey}`;
|
|
1069
1032
|
}
|
|
1070
1033
|
function clearCliLocalRuntimePreparedAgentCache() {
|
|
1071
1034
|
preparedAgentRuntimeCache.clear();
|
|
@@ -12206,7 +12169,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
12206
12169
|
const recordRunExecutionIsolation = async () => {
|
|
12207
12170
|
try {
|
|
12208
12171
|
const { writeFileSync: writeFileSync4, mkdirSync: mkdirSync4 } = await import("node:fs");
|
|
12209
|
-
const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-
|
|
12172
|
+
const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-EI3BGJFM.js");
|
|
12210
12173
|
const fact = resolveLocalRunExecutionIsolationFact({
|
|
12211
12174
|
// F1:显式点名宿主执行的 run 在审计里必须与 docker 沙盒区分开
|
|
12212
12175
|
// (reason: host-explicit-writes vs docker-workload)。
|
|
@@ -12238,7 +12201,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
12238
12201
|
dockerWorkloadReleased = true;
|
|
12239
12202
|
dockerWorkloadLoad = null;
|
|
12240
12203
|
if (loaded) {
|
|
12241
|
-
const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-
|
|
12204
|
+
const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-EI3BGJFM.js");
|
|
12242
12205
|
const exportRunDiff = deps.exportDockerRunDiffArtifact ?? exportDockerRunDiffArtifact;
|
|
12243
12206
|
const warn = (message) => process.stderr.write(`[nolo] ${message}
|
|
12244
12207
|
`);
|
|
@@ -12384,13 +12347,12 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
12384
12347
|
} catch {
|
|
12385
12348
|
}
|
|
12386
12349
|
}
|
|
12387
|
-
const cacheKey =
|
|
12350
|
+
const cacheKey = buildPreparedAgentCacheKey({
|
|
12388
12351
|
userId,
|
|
12389
12352
|
agentRef,
|
|
12390
12353
|
cwd: normalizeRuntimeCacheCwd(workspaceRoot),
|
|
12391
|
-
systemBuiltinSkills
|
|
12392
|
-
|
|
12393
|
-
})}:${dockerRuntimeEnabled ? "docker" : instaboxRuntimeEnabled ? "instabox" : "host"}`;
|
|
12354
|
+
systemBuiltinSkills
|
|
12355
|
+
});
|
|
12394
12356
|
const cached = deps.pastedTextStore ? void 0 : preparedAgentRuntimeCache.get(cacheKey);
|
|
12395
12357
|
if (cached) {
|
|
12396
12358
|
activeAgentToolNames = cached.activeAgentToolNames;
|
|
@@ -12414,17 +12376,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
12414
12376
|
deps.env,
|
|
12415
12377
|
systemBuiltinSkills
|
|
12416
12378
|
) : [];
|
|
12417
|
-
|
|
12418
|
-
const backendExecutionToolNames = dockerRuntimeEnabled ? dockerExecutionToolNames : instaboxRuntimeEnabled ? LOCAL_INSTABOX_TOOL_NAMES : null;
|
|
12419
|
-
if (backendExecutionToolNames) {
|
|
12420
|
-
effectiveToolNames = effectiveToolNames.filter((toolName) => {
|
|
12421
|
-
const normalized = normalizeLocalToolName(toolName);
|
|
12422
|
-
if (WORKSPACE_TOOL_NAMES.includes(normalized)) {
|
|
12423
|
-
return backendExecutionToolNames.includes(normalized);
|
|
12424
|
-
}
|
|
12425
|
-
return true;
|
|
12426
|
-
});
|
|
12427
|
-
}
|
|
12379
|
+
const effectiveToolNames = [...requestedToolNames, ...additionalToolNames];
|
|
12428
12380
|
activeAgentToolNames = buildLocalPolicyToolNames({
|
|
12429
12381
|
agentKey: agentConfig?.key,
|
|
12430
12382
|
toolNames: effectiveToolNames,
|
|
@@ -12440,15 +12392,10 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
12440
12392
|
localToolExecutors = buildCurrentToolExecutors(agentConfig?.key);
|
|
12441
12393
|
const exposedAgentConfig = agentConfig ? {
|
|
12442
12394
|
...agentConfig,
|
|
12443
|
-
toolNames: activeAgentToolNames,
|
|
12444
12395
|
exposedToolNames: activeAgentToolNames,
|
|
12445
12396
|
toolSurface: {
|
|
12446
12397
|
...agentConfig.toolSurface ?? {},
|
|
12447
12398
|
finalToolNames: activeAgentToolNames
|
|
12448
|
-
},
|
|
12449
|
-
runScopedToolSurface: {
|
|
12450
|
-
...agentConfig.runScopedToolSurface ?? {},
|
|
12451
|
-
finalToolNames: activeAgentToolNames
|
|
12452
12399
|
}
|
|
12453
12400
|
} : agentConfig;
|
|
12454
12401
|
if (exposedAgentConfig && !deps.pastedTextStore) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-VYNMQ6HW.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchAndCacheTableRows
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-URO44BCD.js";
|
|
12
12
|
import {
|
|
13
13
|
require_react
|
|
14
14
|
} from "./chunk-YDH3FDFQ.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
resolveBuiltinCapability,
|
|
24
24
|
resolveBuiltinSkillEntry
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SH3XD4E2.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_SYSTEM_AGENT_CAPABILITIES
|
|
28
28
|
} from "./chunk-EUGTFFO6.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-FMNDEVTZ.js");
|
|
525
525
|
const { executor } = findToolExecutor(run.toolName);
|
|
526
526
|
toolRunStarted({
|
|
527
527
|
id: run.id,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-62TBKWTV.js";
|
|
7
7
|
import {
|
|
8
8
|
clearCliLocalRuntimePreparedAgentCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WC7UXON2.js";
|
|
10
10
|
import {
|
|
11
11
|
readCredentialAvailability
|
|
12
12
|
} from "./chunk-R4BMKAR5.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
resolveAgentRecordFromHybridStore,
|
|
20
20
|
sanitizeAgentRecordForCliOutput,
|
|
21
21
|
writeAgentRecord
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KJETBEEN.js";
|
|
23
23
|
import {
|
|
24
24
|
resolveCliAgentKeyInput
|
|
25
25
|
} from "./chunk-NBTY7YJF.js";
|
|
@@ -244,7 +244,7 @@ async function runAgentCreateCommand(args, deps = {}) {
|
|
|
244
244
|
let verifyResult;
|
|
245
245
|
if (parsed.verify) {
|
|
246
246
|
try {
|
|
247
|
-
const { verifyCustomProvider } = await import("./agentProviderCommands-
|
|
247
|
+
const { verifyCustomProvider } = await import("./agentProviderCommands-4USYTCL3.js");
|
|
248
248
|
const rec = built.nextRecord;
|
|
249
249
|
verifyResult = await verifyCustomProvider({
|
|
250
250
|
providerUrl: rec.customProviderUrl,
|
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
} from "./chunk-JLR5NWP2.js";
|
|
12
12
|
import {
|
|
13
13
|
isOAuthApiKeyRef
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HEC32F3G.js";
|
|
15
15
|
import {
|
|
16
16
|
isOwnedAgentKey,
|
|
17
17
|
ownedAgentKey,
|
|
18
18
|
publicAgentKey
|
|
19
19
|
} from "./chunk-M2EJHDJP.js";
|
|
20
|
+
import {
|
|
21
|
+
getModelAbility
|
|
22
|
+
} from "./chunk-FYYSDHVQ.js";
|
|
20
23
|
import {
|
|
21
24
|
isSubscriptionEndpoint,
|
|
22
25
|
isSubscriptionOAuthCredential
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EWO77ZGF.js";
|
|
24
27
|
import {
|
|
25
28
|
isAntigravityOAuthAgent
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
getModelAbility
|
|
29
|
-
} from "./chunk-HLAL63BZ.js";
|
|
29
|
+
} from "./chunk-SQX235S2.js";
|
|
30
30
|
|
|
31
31
|
// packages/ai/agent/agentBilling.ts
|
|
32
32
|
function resolveBillingSource(candidate) {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-LIQJTQRN.js";
|
|
18
18
|
import {
|
|
19
19
|
createFileCredentialBroker
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UHTDNB5Y.js";
|
|
21
21
|
import {
|
|
22
22
|
asRecordOrEmpty
|
|
23
23
|
} from "./chunk-KX6YBIHG.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-7J6IIHWQ.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-F6EQK26A.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-KXELVHFR.js");
|
|
388
388
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
389
389
|
}),
|
|
390
390
|
/**
|
|
@@ -71,12 +71,11 @@ var TOOL_PACKS = {
|
|
|
71
71
|
// L2 - 联网搜索:与 CAPABILITY_PACKS「web-search」对齐。
|
|
72
72
|
// 社交读工具属于「social-reader」包,不得因 exa_search 被旁路注入。
|
|
73
73
|
LIGHT_WEB: ["exa_search", "fetchWebpage"],
|
|
74
|
-
//
|
|
74
|
+
// 本地工作区代码读写与执行。唯一真相源——「代码执行」能力包与 coding skill
|
|
75
75
|
// 都从这里取。以前两边各抄一份(coding 还多抄了 agent-orchestration 那 3 个),
|
|
76
76
|
// 改一个忘另一个就会静默不同步。
|
|
77
77
|
CODE: [
|
|
78
78
|
"readFile",
|
|
79
|
-
"read_image",
|
|
80
79
|
"writeFile",
|
|
81
80
|
"editFile",
|
|
82
81
|
"applyEdit",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WC7UXON2.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-WLPUUBFR.js";
|
|
11
11
|
import {
|
|
12
12
|
runLocalAgentTurn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2DXGW4UO.js";
|
|
14
14
|
import {
|
|
15
15
|
applyToolSurfaceConstraints
|
|
16
16
|
} from "./chunk-6J227QXV.js";
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
} from "./chunk-WWC7I6TA.js";
|
|
13
13
|
import {
|
|
14
14
|
getModelConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6EQD4AQL.js";
|
|
16
16
|
import {
|
|
17
17
|
isPlatformHostedImageModel,
|
|
18
18
|
isPlatformManagedProvider,
|
|
19
19
|
resolvePlatformEffectiveModel
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CGFNDIKK.js";
|
|
21
21
|
|
|
22
22
|
// packages/ai/llm/getPricing.ts
|
|
23
23
|
var MAX_OUTPUT_TOKENS = 8192;
|