nolo-cli 0.177.0-alpha.3 → 0.178.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.
Files changed (65) hide show
  1. package/{_executeModel-V4F6LXUR.js → _executeModel-4NEMABMW.js} +14 -14
  2. package/{agentDeleteCommand-ZW6A5N5R.js → agentDeleteCommand-7PYJJDKV.js} +16 -16
  3. package/{agentEmailCommands-PSWCVDBS.js → agentEmailCommands-UYTOH7YV.js} +18 -18
  4. package/{agentListCommands-NYYOKQ2U.js → agentListCommands-VONVOI52.js} +7 -7
  5. package/{agentMachineCommands-3QKXW7CS.js → agentMachineCommands-XVBXKT5N.js} +8 -8
  6. package/{agentRecordCommands-WVMYMRVI.js → agentRecordCommands-2R4K5YRD.js} +17 -17
  7. package/{agentRunCommand-VT7XPW4E.js → agentRunCommand-7FNT4GPD.js} +18 -18
  8. package/{agentRuntimeLocal-OIEOKQ26.js → agentRuntimeLocal-5ZHRXBGT.js} +7 -7
  9. package/{agentSlice-QNH6SH4J.js → agentSlice-5EC6UO2Q.js} +1 -1
  10. package/{appDeleteCommands-DJBT6TXH.js → appDeleteCommands-I56YU5PK.js} +7 -7
  11. package/{appDeployCommands-PO2OTNLX.js → appDeployCommands-2BRC7I7B.js} +7 -7
  12. package/{appDeployStatusCommands-I65SVQFQ.js → appDeployStatusCommands-2AM4QUP3.js} +7 -7
  13. package/{appGetCommands-NBSDDOG4.js → appGetCommands-6NBJYX6X.js} +7 -7
  14. package/{appListCommands-NUDI4I6D.js → appListCommands-QVJMOKWQ.js} +7 -7
  15. package/{authCommand-R2VRZLJY.js → authCommand-R6RPVFOB.js} +3 -3
  16. package/{chunk-KZMDDWPY.js → chunk-2435U3W7.js} +3 -3
  17. package/{chunk-SLSWIH7D.js → chunk-2JNBSOOP.js} +2 -2
  18. package/{chunk-45QG4FAQ.js → chunk-2SK76UW2.js} +1 -1
  19. package/{chunk-XWKEZYHG.js → chunk-3TI7DQZT.js} +1 -1
  20. package/{chunk-D6QFFZVF.js → chunk-52J3DJHF.js} +6 -6
  21. package/{chunk-PSJXWKPQ.js → chunk-77357UA3.js} +8 -8
  22. package/{chunk-KVCFBIRU.js → chunk-7EEVCDHJ.js} +8 -8
  23. package/{chunk-OEVWFVSS.js → chunk-7KZSSY4Z.js} +3 -3
  24. package/{chunk-VYQMMIBR.js → chunk-ARLRYGPE.js} +8 -8
  25. package/{chunk-XEAOB5YS.js → chunk-CPCC25EW.js} +2 -2
  26. package/{chunk-UVOA25PV.js → chunk-D44HRXTA.js} +2 -2
  27. package/{chunk-KYAMW3AY.js → chunk-E2BESSAW.js} +8 -5
  28. package/{chunk-SOY7VHZN.js → chunk-IM3STC63.js} +5 -3
  29. package/{chunk-AEZBL2MY.js → chunk-JDCX5RWD.js} +3 -3
  30. package/{chunk-OD6ENIKN.js → chunk-JGG265CD.js} +3 -3
  31. package/{chunk-G3Y3E6JT.js → chunk-JT5UEE22.js} +3 -3
  32. package/{chunk-NCBXTFBP.js → chunk-MRJABJ7J.js} +11 -9
  33. package/{chunk-STT5PIQ5.js → chunk-ND4TKDIA.js} +21 -21
  34. package/{chunk-QABYIMXP.js → chunk-OVQJYTGD.js} +2 -2
  35. package/{chunk-SDONLCYB.js → chunk-QTIJKYFI.js} +5 -5
  36. package/{chunk-33A622FT.js → chunk-QULQPNYV.js} +1 -1
  37. package/{chunk-3TPHYXLU.js → chunk-T2CVDTOD.js} +2 -2
  38. package/{chunk-NS3FGNV6.js → chunk-V4P5F66H.js} +9 -9
  39. package/{chunk-3QTBKJPI.js → chunk-VHBA3RHI.js} +9 -8
  40. package/{chunk-32Z3HRB4.js → chunk-Y3ZG4J2D.js} +2 -2
  41. package/{commandRegistry-QST6FMJ6.js → commandRegistry-GS5FPBNY.js} +47 -47
  42. package/{contentThunks-BMJI3JJA.js → contentThunks-SGJWVRBO.js} +3 -3
  43. package/{createAgentAutomationAction-VC3PLYUE.js → createAgentAutomationAction-2USDJSCP.js} +3 -3
  44. package/{createDialogAction-VAB5FNNF.js → createDialogAction-ZY4NCOX7.js} +4 -4
  45. package/{createPageAction-QECNYENN.js → createPageAction-JCMWP6AG.js} +3 -3
  46. package/{dialogCommands-PQPI2B4F.js → dialogCommands-ZMYGE7YA.js} +7 -7
  47. package/{dialogSlice-JOMW24BQ.js → dialogSlice-3YNAYWAK.js} +2 -2
  48. package/{docCreateCommands-K4KZUG7I.js → docCreateCommands-ADLHK2RD.js} +7 -7
  49. package/{docDeleteCommands-S53LJIXM.js → docDeleteCommands-52UOQ4CB.js} +7 -7
  50. package/{docReadCommands-ACBGMNCO.js → docReadCommands-M3SUWJ6Q.js} +7 -7
  51. package/{docStore-4KT7EHZO.js → docStore-A5HGECT6.js} +1 -1
  52. package/{docUpdateCommands-LL7IVHSL.js → docUpdateCommands-5YL5DPYY.js} +7 -7
  53. package/{handleSendMessageAction-OGUIPOMS.js → handleSendMessageAction-EVFYTUQM.js} +8 -8
  54. package/index.js +4 -4
  55. package/{localRuntimeAdapter-ZCRX2PAA.js → localRuntimeAdapter-KFRYLFNW.js} +16 -16
  56. package/{machineCommands-KYLK4EMZ.js → machineCommands-ZTMLAMH5.js} +17 -17
  57. package/{machineWsRunDispatch-5QYFBWBB.js → machineWsRunDispatch-GU2J67QW.js} +17 -17
  58. package/package.json +1 -1
  59. package/{readlineWorkspace-PWT6GHCI.js → readlineWorkspace-KV3J6BSP.js} +18 -18
  60. package/{runAgentClientLoop-RDYMQTSB.js → runAgentClientLoop-7VHCVJ5F.js} +12 -12
  61. package/{spaceCommands-HKDI3T3V.js → spaceCommands-TJX3HZPD.js} +7 -7
  62. package/{streamAgentChatTurn-UOBJLR2V.js → streamAgentChatTurn-K22LTOCL.js} +16 -16
  63. package/{tools-B55PB6ML.js → tools-4225EUMQ.js} +7 -7
  64. package/{tuiSummaryLlmCaller-H2CLON2B.js → tuiSummaryLlmCaller-AECO3FZT.js} +4 -4
  65. package/{updateDialogTitleAction-NPNSXH5Z.js → updateDialogTitleAction-5KXZAYTF.js} +3 -3
@@ -64,7 +64,7 @@ import {
64
64
  import {
65
65
  inlineImageUrlsForCustomProvider,
66
66
  prepareTools
67
- } from "./chunk-SLSWIH7D.js";
67
+ } from "./chunk-2JNBSOOP.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-KVCFBIRU.js";
89
+ } from "./chunk-7EEVCDHJ.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-QABYIMXP.js";
100
+ } from "./chunk-OVQJYTGD.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-VYQMMIBR.js";
109
+ } from "./chunk-ARLRYGPE.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-KZMDDWPY.js";
116
+ } from "./chunk-2435U3W7.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-3QTBKJPI.js";
173
+ } from "./chunk-VHBA3RHI.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-NCBXTFBP.js";
185
+ } from "./chunk-MRJABJ7J.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-D6QFFZVF.js";
196
+ } from "./chunk-52J3DJHF.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-XEAOB5YS.js";
203
+ } from "./chunk-CPCC25EW.js";
204
204
  import {
205
205
  resolveHistoricalToolContentCap
206
206
  } from "./chunk-2WZXXAQD.js";
207
207
  import {
208
208
  resolveToolImagePolicy
209
- } from "./chunk-SOY7VHZN.js";
209
+ } from "./chunk-IM3STC63.js";
210
210
  import {
211
211
  collectStablePromptPrefix,
212
212
  convertMessagesToResponsesInput,
213
213
  findAgentStatePairingIssues,
214
214
  stablePromptCacheKey,
215
215
  toResponsesTools
216
- } from "./chunk-AEZBL2MY.js";
216
+ } from "./chunk-JDCX5RWD.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-KYAMW3AY.js";
225
+ } from "./chunk-E2BESSAW.js";
226
226
  import {
227
227
  buildNoloWorkspaceOpenAiTools,
228
228
  filterClientNoloWorkspaceToolNames,
@@ -796,7 +796,7 @@ function buildAnthropicMessagesBody(args) {
796
796
  system.push({ type: "text", text: args.agentConfig.prompt.trim() });
797
797
  }
798
798
  const messages = [];
799
- const imageBudget = createToolImageBudget();
799
+ const imageBudget = createToolImageBudget(resolveToolImagePolicy({ ...args.agentConfig, routeKind: "anthropic" }).maxImagesPerRequest);
800
800
  for (const raw of rawMessages) {
801
801
  if (!raw || typeof raw !== "object") continue;
802
802
  const message = raw;
@@ -2446,7 +2446,7 @@ function collectInstructions(messages, agentPrompt) {
2446
2446
  }
2447
2447
  function convertMessagesToCodexInput(messages, supportsToolImages = false) {
2448
2448
  const normalizedToolImages = typeof supportsToolImages === "boolean" ? supportsToolImages : supportsToolImages.supportsToolImages === true;
2449
- return convertMessagesToResponsesInput(messages, { supportsToolImages: normalizedToolImages }).map((item) => {
2449
+ return convertMessagesToResponsesInput(messages, { supportsToolImages: normalizedToolImages, maxImagesPerRequest: typeof supportsToolImages === "boolean" ? void 0 : supportsToolImages.maxImagesPerRequest }).map((item) => {
2450
2450
  if (item.type !== "reasoning") return item;
2451
2451
  return {
2452
2452
  type: "reasoning",
@@ -2468,7 +2468,7 @@ function buildCodexRequestBody(args, identity = createCodexRequestIdentity(), se
2468
2468
  model: typeof args.openAiBody.model === "string" ? args.openAiBody.model : args.agentConfig.model,
2469
2469
  routeKind: "codex/responses",
2470
2470
  legacySupportsToolImages: false
2471
- }).supportsToolImages);
2471
+ }));
2472
2472
  const instructions = collectInstructions(rawMessages, args.agentConfig.prompt);
2473
2473
  const stableInstructions = collectStablePromptPrefix(rawMessages, args.agentConfig.prompt);
2474
2474
  const model = asOptionalTrimmedString(args.openAiBody.model) ?? asOptionalTrimmedString(args.agentConfig.model) ?? "gpt-5.5";
@@ -2999,14 +2999,14 @@ function buildGeminiCustomNativeProvider(p) {
2999
2999
  return { ok: true, mimeType: image.headers.get("content-type") ?? "application/octet-stream", bytes: new Uint8Array(await image.arrayBuffer()) };
3000
3000
  }
3001
3001
  });
3002
- const supportsToolImages = resolveToolImagePolicy({
3002
+ const toolImagePolicy = {
3003
3003
  routeKind: "gemini-native",
3004
3004
  ...agentConfig,
3005
3005
  provider: agentConfig.provider ?? "google",
3006
3006
  model,
3007
3007
  hasVision: agentConfig.hasVision
3008
- }).supportsToolImages;
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 });
3008
+ };
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, toolImagePolicy });
3010
3010
  log("provider.request.start", { agentKey: agentConfig.key, transport, requestUrl: nativeEndpoint, model, messageCount: messages.length, toolCount: tools.length, requestedToolNames });
3011
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) });
3012
3012
  if (!response.ok) {
@@ -3549,20 +3549,20 @@ var resolveGeminiNativeToolTransport = async (ctx) => {
3549
3549
  model: providerConfig.model,
3550
3550
  complete: async (messages, options) => {
3551
3551
  const model = providerConfig.model;
3552
- const supportsToolImages = resolveToolImagePolicy({
3552
+ const toolImagePolicy = {
3553
3553
  routeKind: "gemini-native",
3554
3554
  provider: providerConfig.usageProvider ?? providerConfig.provider,
3555
3555
  model: providerConfig.model,
3556
3556
  customProviderUrl: providerConfig.endpoint,
3557
3557
  hasVision: agentConfig.hasVision
3558
- }).supportsToolImages;
3558
+ };
3559
3559
  const requestBody = buildGeminiGenerateContentRequest({
3560
3560
  messages,
3561
3561
  tools,
3562
3562
  maxTokens: typeof agentConfig.max_tokens === "number" ? agentConfig.max_tokens : void 0,
3563
3563
  temperature: typeof agentConfig.temperature === "number" ? agentConfig.temperature : void 0,
3564
3564
  attachSkipThoughtSignature: resolveGeminiModelQuirks(model).allowsThoughtSignatureSentinel,
3565
- supportsToolImages
3565
+ toolImagePolicy
3566
3566
  });
3567
3567
  const url = `https://generativelanguage.googleapis.com/v1beta/models/${model}:streamGenerateContent?alt=sse`;
3568
3568
  logLocalRuntimeDiagnostic("provider.request.start", {
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-VYNMQ6HW.js";
9
9
  import {
10
10
  fetchAndCacheTableRows
11
- } from "./chunk-45QG4FAQ.js";
11
+ } from "./chunk-2SK76UW2.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-B55PB6ML.js");
524
+ const { findToolExecutor } = await import("./tools-4225EUMQ.js");
525
525
  const { executor } = findToolExecutor(run.toolName);
526
526
  toolRunStarted({
527
527
  id: run.id,
@@ -7,7 +7,7 @@ import {
7
7
  mergeReferences,
8
8
  resolveReferenceAssets,
9
9
  resolveToolsFromKeys
10
- } from "./chunk-UVOA25PV.js";
10
+ } from "./chunk-D44HRXTA.js";
11
11
  import {
12
12
  UI_CARD_ENVELOPE_MAX_BYTES,
13
13
  getAllToolRuns,
@@ -20,7 +20,7 @@ import {
20
20
  selectSpaceContextLevel,
21
21
  selectUserTonePreset,
22
22
  uiCardFallback
23
- } from "./chunk-QABYIMXP.js";
23
+ } from "./chunk-OVQJYTGD.js";
24
24
  import {
25
25
  resolveToolBaseUrl
26
26
  } from "./chunk-MYOH447Z.js";
@@ -32,15 +32,15 @@ import {
32
32
  } from "./chunk-TDNAAXUQ.js";
33
33
  import {
34
34
  getDocState
35
- } from "./chunk-3TPHYXLU.js";
35
+ } from "./chunk-T2CVDTOD.js";
36
36
  import {
37
37
  getTableState
38
- } from "./chunk-45QG4FAQ.js";
38
+ } from "./chunk-2SK76UW2.js";
39
39
  import {
40
40
  PERSONALIZATION_DIALOG_CATEGORY,
41
41
  buildPersonalizationDialogPolicyContext,
42
42
  selectAllMsgs
43
- } from "./chunk-VYQMMIBR.js";
43
+ } from "./chunk-ARLRYGPE.js";
44
44
  import {
45
45
  getCurrentSpaceIdRaw,
46
46
  getViewMode
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-NBTY7YJF.js";
6
6
  import {
7
7
  resolveCliLocalRuntimeKeyCapability
8
- } from "./chunk-KVCFBIRU.js";
8
+ } from "./chunk-7EEVCDHJ.js";
9
9
  import {
10
10
  HIGH_RISK_MUTATION_TOOL_NAMES
11
11
  } from "./chunk-2GRXE3YJ.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-BMJI3JJA.js");
336
+ const { updateContentTitle } = await import("./contentThunks-SGJWVRBO.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-QECNYENN.js");
375
+ const { createPageAction } = await import("./createPageAction-JCMWP6AG.js");
376
376
  return createPageAction(args, thunkApi);
377
377
  }
378
378
  function subscribe(listener) {
@@ -9,7 +9,7 @@ import {
9
9
  resolveRawAgentInput,
10
10
  resolveServerUrl,
11
11
  writeUsage
12
- } from "./chunk-33A622FT.js";
12
+ } from "./chunk-QULQPNYV.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-STT5PIQ5.js";
34
+ } from "./chunk-ND4TKDIA.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-KVCFBIRU.js";
82
+ } from "./chunk-7EEVCDHJ.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-QABYIMXP.js";
89
+ } from "./chunk-OVQJYTGD.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-32Z3HRB4.js";
98
+ } from "./chunk-Y3ZG4J2D.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-VYQMMIBR.js";
106
+ } from "./chunk-ARLRYGPE.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-3QTBKJPI.js";
118
+ } from "./chunk-VHBA3RHI.js";
119
119
  import {
120
120
  resolveAgentRuntimeConfigFromRecord
121
- } from "./chunk-XEAOB5YS.js";
121
+ } from "./chunk-CPCC25EW.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-OIEOKQ26.js");
11379
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-5ZHRXBGT.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();
@@ -2,7 +2,7 @@ import {
2
2
  DEVIN_CONNECT_URL,
3
3
  parseSseDataLineJson,
4
4
  parseSseDataLineObject
5
- } from "./chunk-NCBXTFBP.js";
5
+ } from "./chunk-MRJABJ7J.js";
6
6
  import {
7
7
  applyChatCompletionDelta,
8
8
  applyResponsesToolEvent,
@@ -11,7 +11,7 @@ import {
11
11
  flushChatCompletionStream,
12
12
  providerHttpFailure,
13
13
  throwIfChatCompletionStreamFailed
14
- } from "./chunk-D6QFFZVF.js";
14
+ } from "./chunk-52J3DJHF.js";
15
15
  import {
16
16
  readSseFrames
17
17
  } from "./chunk-HNUWUO75.js";
@@ -29,7 +29,7 @@ import {
29
29
  import {
30
30
  hasImageInRuntimeMessages,
31
31
  stripImagePartsFromMessages
32
- } from "./chunk-XEAOB5YS.js";
32
+ } from "./chunk-CPCC25EW.js";
33
33
  import {
34
34
  clipToolText,
35
35
  resolveHistoricalToolContentCap,
@@ -38,7 +38,7 @@ import {
38
38
  import {
39
39
  resolveAgentImageInputSupport,
40
40
  resolveToolImagePolicy
41
- } from "./chunk-SOY7VHZN.js";
41
+ } from "./chunk-IM3STC63.js";
42
42
  import {
43
43
  applyShapingCounts,
44
44
  attachProjectionFacts,
@@ -97,7 +97,7 @@ import {
97
97
  toOpenAiCompatibleMessages,
98
98
  toResponsesTools,
99
99
  transferDowngradedToolTurnOrigin
100
- } from "./chunk-AEZBL2MY.js";
100
+ } from "./chunk-JDCX5RWD.js";
101
101
  import {
102
102
  TOOL_HAD_IMAGES,
103
103
  TOOL_IMAGES,
@@ -110,7 +110,7 @@ import {
110
110
  toolImageDelivery,
111
111
  toolImages,
112
112
  withoutToolImages
113
- } from "./chunk-KYAMW3AY.js";
113
+ } from "./chunk-E2BESSAW.js";
114
114
  import {
115
115
  BRIDGE_STREAM_MAX_CHARS,
116
116
  CLI_NOLO_WORKSPACE_TOOL_NAMES,
@@ -20982,7 +20982,7 @@ function buildResponsesRequestBody(body, model, options) {
20982
20982
  ...body,
20983
20983
  model,
20984
20984
  input: Array.isArray(body.input) && body.input.length > 0 ? body.input : convertMessagesToResponsesInput(body.messages ?? [], {
20985
- supportsToolImages: options?.supportsToolImages
20985
+ ...options
20986
20986
  }),
20987
20987
  ...Array.isArray(body.tools) ? { tools: tools ?? void 0 } : {},
20988
20988
  ...typeof body.max_tokens === "number" ? { max_output_tokens: body.max_tokens } : {},
@@ -21323,6 +21323,7 @@ function buildOpenAiCompatibleChatCompletionRequest(args2) {
21323
21323
  hasVision: args2.providerConfig.hasVision
21324
21324
  });
21325
21325
  const messages = toOpenAiCompatibleMessages(sanitizedMessages, {
21326
+ maxImagesPerRequest: toolImagePolicy.maxImagesPerRequest,
21326
21327
  supportsToolImages: !isResponses && toolImagePolicy.supportsToolImages,
21327
21328
  stripReasoningContent: shouldStripReasoning,
21328
21329
  ...args2.shapingCounts ? { shapingCounts: args2.shapingCounts } : {},
@@ -21361,7 +21362,7 @@ function buildOpenAiCompatibleChatCompletionRequest(args2) {
21361
21362
  } : {}
21362
21363
  };
21363
21364
  const body = isResponses ? buildResponsesRequestBody(rawBody, args2.providerConfig.model, {
21364
- supportsToolImages: toolImagePolicy.supportsToolImages
21365
+ ...toolImagePolicy
21365
21366
  }) : normalizeChatCompletionsBodyForProvider({
21366
21367
  body: rawBody,
21367
21368
  provider: args2.providerConfig.provider,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-45QG4FAQ.js";
3
+ } from "./chunk-2SK76UW2.js";
4
4
  import {
5
5
  format,
6
6
  prepareAndPersistMessage,
7
7
  uiAskChoiceFunc,
8
8
  uiAskChoiceFunctionSchema
9
- } from "./chunk-VYQMMIBR.js";
9
+ } from "./chunk-ARLRYGPE.js";
10
10
  import {
11
11
  formatISO
12
12
  } from "./chunk-ZRAU6T47.js";