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.
- package/{_executeModel-V4F6LXUR.js → _executeModel-4NEMABMW.js} +14 -14
- package/{agentDeleteCommand-ZW6A5N5R.js → agentDeleteCommand-7PYJJDKV.js} +16 -16
- package/{agentEmailCommands-PSWCVDBS.js → agentEmailCommands-UYTOH7YV.js} +18 -18
- package/{agentListCommands-NYYOKQ2U.js → agentListCommands-VONVOI52.js} +7 -7
- package/{agentMachineCommands-3QKXW7CS.js → agentMachineCommands-XVBXKT5N.js} +8 -8
- package/{agentRecordCommands-WVMYMRVI.js → agentRecordCommands-2R4K5YRD.js} +17 -17
- package/{agentRunCommand-VT7XPW4E.js → agentRunCommand-7FNT4GPD.js} +18 -18
- package/{agentRuntimeLocal-OIEOKQ26.js → agentRuntimeLocal-5ZHRXBGT.js} +7 -7
- package/{agentSlice-QNH6SH4J.js → agentSlice-5EC6UO2Q.js} +1 -1
- package/{appDeleteCommands-DJBT6TXH.js → appDeleteCommands-I56YU5PK.js} +7 -7
- package/{appDeployCommands-PO2OTNLX.js → appDeployCommands-2BRC7I7B.js} +7 -7
- package/{appDeployStatusCommands-I65SVQFQ.js → appDeployStatusCommands-2AM4QUP3.js} +7 -7
- package/{appGetCommands-NBSDDOG4.js → appGetCommands-6NBJYX6X.js} +7 -7
- package/{appListCommands-NUDI4I6D.js → appListCommands-QVJMOKWQ.js} +7 -7
- package/{authCommand-R2VRZLJY.js → authCommand-R6RPVFOB.js} +3 -3
- package/{chunk-KZMDDWPY.js → chunk-2435U3W7.js} +3 -3
- package/{chunk-SLSWIH7D.js → chunk-2JNBSOOP.js} +2 -2
- package/{chunk-45QG4FAQ.js → chunk-2SK76UW2.js} +1 -1
- package/{chunk-XWKEZYHG.js → chunk-3TI7DQZT.js} +1 -1
- package/{chunk-D6QFFZVF.js → chunk-52J3DJHF.js} +6 -6
- package/{chunk-PSJXWKPQ.js → chunk-77357UA3.js} +8 -8
- package/{chunk-KVCFBIRU.js → chunk-7EEVCDHJ.js} +8 -8
- package/{chunk-OEVWFVSS.js → chunk-7KZSSY4Z.js} +3 -3
- package/{chunk-VYQMMIBR.js → chunk-ARLRYGPE.js} +8 -8
- package/{chunk-XEAOB5YS.js → chunk-CPCC25EW.js} +2 -2
- package/{chunk-UVOA25PV.js → chunk-D44HRXTA.js} +2 -2
- package/{chunk-KYAMW3AY.js → chunk-E2BESSAW.js} +8 -5
- package/{chunk-SOY7VHZN.js → chunk-IM3STC63.js} +5 -3
- package/{chunk-AEZBL2MY.js → chunk-JDCX5RWD.js} +3 -3
- package/{chunk-OD6ENIKN.js → chunk-JGG265CD.js} +3 -3
- package/{chunk-G3Y3E6JT.js → chunk-JT5UEE22.js} +3 -3
- package/{chunk-NCBXTFBP.js → chunk-MRJABJ7J.js} +11 -9
- package/{chunk-STT5PIQ5.js → chunk-ND4TKDIA.js} +21 -21
- package/{chunk-QABYIMXP.js → chunk-OVQJYTGD.js} +2 -2
- package/{chunk-SDONLCYB.js → chunk-QTIJKYFI.js} +5 -5
- package/{chunk-33A622FT.js → chunk-QULQPNYV.js} +1 -1
- package/{chunk-3TPHYXLU.js → chunk-T2CVDTOD.js} +2 -2
- package/{chunk-NS3FGNV6.js → chunk-V4P5F66H.js} +9 -9
- package/{chunk-3QTBKJPI.js → chunk-VHBA3RHI.js} +9 -8
- package/{chunk-32Z3HRB4.js → chunk-Y3ZG4J2D.js} +2 -2
- package/{commandRegistry-QST6FMJ6.js → commandRegistry-GS5FPBNY.js} +47 -47
- package/{contentThunks-BMJI3JJA.js → contentThunks-SGJWVRBO.js} +3 -3
- package/{createAgentAutomationAction-VC3PLYUE.js → createAgentAutomationAction-2USDJSCP.js} +3 -3
- package/{createDialogAction-VAB5FNNF.js → createDialogAction-ZY4NCOX7.js} +4 -4
- package/{createPageAction-QECNYENN.js → createPageAction-JCMWP6AG.js} +3 -3
- package/{dialogCommands-PQPI2B4F.js → dialogCommands-ZMYGE7YA.js} +7 -7
- package/{dialogSlice-JOMW24BQ.js → dialogSlice-3YNAYWAK.js} +2 -2
- package/{docCreateCommands-K4KZUG7I.js → docCreateCommands-ADLHK2RD.js} +7 -7
- package/{docDeleteCommands-S53LJIXM.js → docDeleteCommands-52UOQ4CB.js} +7 -7
- package/{docReadCommands-ACBGMNCO.js → docReadCommands-M3SUWJ6Q.js} +7 -7
- package/{docStore-4KT7EHZO.js → docStore-A5HGECT6.js} +1 -1
- package/{docUpdateCommands-LL7IVHSL.js → docUpdateCommands-5YL5DPYY.js} +7 -7
- package/{handleSendMessageAction-OGUIPOMS.js → handleSendMessageAction-EVFYTUQM.js} +8 -8
- package/index.js +4 -4
- package/{localRuntimeAdapter-ZCRX2PAA.js → localRuntimeAdapter-KFRYLFNW.js} +16 -16
- package/{machineCommands-KYLK4EMZ.js → machineCommands-ZTMLAMH5.js} +17 -17
- package/{machineWsRunDispatch-5QYFBWBB.js → machineWsRunDispatch-GU2J67QW.js} +17 -17
- package/package.json +1 -1
- package/{readlineWorkspace-PWT6GHCI.js → readlineWorkspace-KV3J6BSP.js} +18 -18
- package/{runAgentClientLoop-RDYMQTSB.js → runAgentClientLoop-7VHCVJ5F.js} +12 -12
- package/{spaceCommands-HKDI3T3V.js → spaceCommands-TJX3HZPD.js} +7 -7
- package/{streamAgentChatTurn-UOBJLR2V.js → streamAgentChatTurn-K22LTOCL.js} +16 -16
- package/{tools-B55PB6ML.js → tools-4225EUMQ.js} +7 -7
- package/{tuiSummaryLlmCaller-H2CLON2B.js → tuiSummaryLlmCaller-AECO3FZT.js} +4 -4
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
})
|
|
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
|
|
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
|
-
}
|
|
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,
|
|
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
|
|
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
|
-
}
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
35
|
+
} from "./chunk-T2CVDTOD.js";
|
|
36
36
|
import {
|
|
37
37
|
getTableState
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2SK76UW2.js";
|
|
39
39
|
import {
|
|
40
40
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
41
41
|
buildPersonalizationDialogPolicyContext,
|
|
42
42
|
selectAllMsgs
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ARLRYGPE.js";
|
|
44
44
|
import {
|
|
45
45
|
getCurrentSpaceIdRaw,
|
|
46
46
|
getViewMode
|
|
@@ -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-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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
118
|
+
} from "./chunk-VHBA3RHI.js";
|
|
119
119
|
import {
|
|
120
120
|
resolveAgentRuntimeConfigFromRecord
|
|
121
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
3
|
+
} from "./chunk-2SK76UW2.js";
|
|
4
4
|
import {
|
|
5
5
|
format,
|
|
6
6
|
prepareAndPersistMessage,
|
|
7
7
|
uiAskChoiceFunc,
|
|
8
8
|
uiAskChoiceFunctionSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ARLRYGPE.js";
|
|
10
10
|
import {
|
|
11
11
|
formatISO
|
|
12
12
|
} from "./chunk-ZRAU6T47.js";
|