nolo-cli 0.171.0-alpha.1 → 0.172.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-YJW2HPFY.js → _executeModel-IABRBGAE.js} +18 -18
- package/{agentDeleteCommand-O3EG3HS4.js → agentDeleteCommand-ATU2HZT2.js} +20 -19
- package/{agentEmailCommands-AIWZNMRW.js → agentEmailCommands-YTKUTNLR.js} +22 -21
- package/{agentListCommands-377PQ6K4.js → agentListCommands-ZBA5JTWP.js} +14 -13
- package/{agentMachineCommands-TYL7KKSL.js → agentMachineCommands-ZSKWBVPO.js} +11 -10
- package/{agentRecordCommands-YPRND72K.js → agentRecordCommands-KVN6OF4P.js} +21 -20
- package/{agentRunCommand-T7AQKKH5.js → agentRunCommand-CC6JZOGT.js} +22 -21
- package/{agentRuntimeLocal-7ZE2ZQAL.js → agentRuntimeLocal-JA2Q6UBJ.js} +10 -9
- package/{agentSlice-BHH2DZKN.js → agentSlice-RVJDFNRB.js} +1 -1
- package/{appDeleteCommands-LHOX4HM3.js → appDeleteCommands-4XONJLO7.js} +10 -9
- package/{appDeployCommands-A6CQQTI3.js → appDeployCommands-SDGJMAUG.js} +10 -9
- package/{appDeployStatusCommands-7TTNQODL.js → appDeployStatusCommands-A6O3FEEW.js} +10 -9
- package/{appGetCommands-22F4E37N.js → appGetCommands-U4Z5HSNF.js} +10 -9
- package/{appListCommands-WCDOJUVV.js → appListCommands-T4HVTIUC.js} +10 -9
- package/{chunk-6OYC7NDH.js → chunk-2EC6FNS4.js} +44 -55
- package/chunk-2WZXXAQD.js +57 -0
- package/{chunk-AUGBRK3P.js → chunk-5WOL7BUP.js} +10 -2
- package/{chunk-C2OYZYJ7.js → chunk-6BDTSKUT.js} +3 -3
- package/{chunk-BJWOOJX5.js → chunk-74PQM3XI.js} +28 -24
- package/{chunk-O3FUFEUI.js → chunk-7TBARDLF.js} +1 -46
- package/{chunk-Q7UPF643.js → chunk-AKXKBNLQ.js} +1 -1
- package/{chunk-SC5TDLTP.js → chunk-BE42X662.js} +4 -4
- package/{chunk-XHR22EKE.js → chunk-BKCR2JHG.js} +48 -3
- package/{chunk-22FIHMYU.js → chunk-BW3LCST7.js} +2 -2
- package/{chunk-AGAB26VE.js → chunk-CZLO63PE.js} +10 -10
- package/{chunk-UIVOLTFM.js → chunk-F3F3ARBN.js} +2 -2
- package/{chunk-7L2HZQNN.js → chunk-FZSVCJUU.js} +102 -2
- package/{chunk-JHXY4H3P.js → chunk-I33CJERI.js} +2 -57
- package/{chunk-K2NTGYVK.js → chunk-ISMHFI2Y.js} +1 -1
- package/{chunk-BQSW7453.js → chunk-MYZHJKLG.js} +1 -1
- package/{chunk-WPOSH6PA.js → chunk-O4H4HD4X.js} +2 -2
- package/{chunk-7MBN2JZ5.js → chunk-ORKQ3T5D.js} +3 -3
- package/{chunk-72T5DXRH.js → chunk-R2RDXNEE.js} +8 -2
- package/{chunk-ZJ66I757.js → chunk-SDAIVJZG.js} +9 -9
- package/{chunk-X2Q5GT5J.js → chunk-TCWK2EQX.js} +2 -2
- package/{chunk-P4V35AFD.js → chunk-UA4VAUQL.js} +2 -2
- package/{chunk-CEYUVQYU.js → chunk-UG3UI4Z7.js} +13 -11
- package/{chunk-MIME4XKU.js → chunk-ULE7ABRN.js} +11 -11
- package/{chunk-DWQD3JTX.js → chunk-WKF6C3X5.js} +1 -1
- package/{chunk-UPC23AAN.js → chunk-WW5MNBTZ.js} +4 -4
- package/{chunk-EPMWJ7X7.js → chunk-X7KVZ2OK.js} +8 -8
- package/{chunk-6OC2YMGH.js → chunk-XBJIESNS.js} +1 -1
- package/{chunk-7CDMXZJA.js → chunk-ZB4JKLJM.js} +3 -3
- package/{commandRegistry-EAPXP4BC.js → commandRegistry-ICL67WF7.js} +40 -40
- package/{contentThunks-SJAKJV4V.js → contentThunks-SM5FP7FM.js} +6 -6
- package/{createAgentAutomationAction-IBSAZBSP.js → createAgentAutomationAction-ECWLREQU.js} +6 -6
- package/{createDialogAction-MQDTLASD.js → createDialogAction-LROHLFQ2.js} +7 -7
- package/{createPageAction-EOPBBQMH.js → createPageAction-KUQVLZMZ.js} +6 -6
- package/{dialogCommands-SV4M5HAV.js → dialogCommands-T5JYBPS6.js} +10 -9
- package/{dialogSlice-6CC3YDDL.js → dialogSlice-2FWQCZDB.js} +5 -5
- package/{docCreateCommands-UC2CPMH7.js → docCreateCommands-7F4ICTJQ.js} +10 -9
- package/{docDeleteCommands-SRPTGMZ2.js → docDeleteCommands-4INN7EWS.js} +10 -9
- package/{docReadCommands-U3TDUPOY.js → docReadCommands-7PZZR3C3.js} +10 -9
- package/{docStore-RSBDE3UH.js → docStore-WUR5MNKF.js} +1 -1
- package/{docUpdateCommands-G5J5UKGP.js → docUpdateCommands-H2YXAGOV.js} +10 -9
- package/{handleSendMessageAction-EM43KNSP.js → handleSendMessageAction-DVXNAQ2V.js} +13 -12
- package/index.js +4 -4
- package/{localRuntimeAdapter-N5WDXYSY.js → localRuntimeAdapter-M64P55I7.js} +20 -19
- package/{machineCommands-L34XTTLG.js → machineCommands-2H7QW35Q.js} +21 -20
- package/{machineWsRunDispatch-IKI7FGKI.js → machineWsRunDispatch-4L2DSIMF.js} +21 -20
- package/package.json +1 -1
- package/{readlineWorkspace-ZANIHEDR.js → readlineWorkspace-KNE2THUN.js} +23 -22
- package/{runAgentClientLoop-HPF2WFFQ.js → runAgentClientLoop-34ME2HDT.js} +16 -16
- package/{spaceCommands-6KPBWGGE.js → spaceCommands-HAVZ3PQN.js} +10 -9
- package/{streamAgentChatTurn-3SNWCCK2.js → streamAgentChatTurn-YXFJ3UWD.js} +23 -22
- package/{tools-7SMCO2GW.js → tools-M7H7Z44Z.js} +11 -11
- package/{tuiSummaryLlmCaller-H6WX54WY.js → tuiSummaryLlmCaller-KVAXEH7O.js} +10 -4
- package/{updateDialogTitleAction-XIMLNROU.js → updateDialogTitleAction-YXQ2AJVK.js} +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAgentCallPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XBJIESNS.js";
|
|
4
4
|
import {
|
|
5
5
|
SUBSCRIPTION_OAUTH_PROVIDERS
|
|
6
6
|
} from "./chunk-OQ3DOBYB.js";
|
|
@@ -94,61 +94,6 @@ var resolveAgentImageInputSupport = (agent) => {
|
|
|
94
94
|
return true;
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// packages/ai/agent/toolOutputPolicy.ts
|
|
98
|
-
var MAX_IN_TURN_TOOL_CONTENT_CHARS = 4e3;
|
|
99
|
-
var DEFAULT_TOOL_OUTPUT_PROFILE = {
|
|
100
|
-
maxChars: MAX_IN_TURN_TOOL_CONTENT_CHARS,
|
|
101
|
-
headRatio: 0.5
|
|
102
|
-
};
|
|
103
|
-
var TOOL_OUTPUT_PROFILES = {
|
|
104
|
-
readFile: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
|
|
105
|
-
read_file: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
|
|
106
|
-
readWorkspaceFile: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
|
|
107
|
-
globFiles: { maxChars: 2800, headRatio: 0.85 },
|
|
108
|
-
execShell: { maxChars: 4e3, headRatio: 0.35 },
|
|
109
|
-
runCommand: { maxChars: 4e3, headRatio: 0.35 },
|
|
110
|
-
launchProcess: { maxChars: 2800, headRatio: 0.35 },
|
|
111
|
-
editFile: { maxChars: 1200, headRatio: 0.62 },
|
|
112
|
-
writeFile: { maxChars: 1e3, headRatio: 0.62 },
|
|
113
|
-
readPastedText: { maxChars: 4800, headRatio: 0.5, historicalMaxChars: 4800 },
|
|
114
|
-
// loadSkill 内联的是文档正文(SKILL.md 全文),与 readFile 同类,不该因为工具名未登记就退回
|
|
115
|
-
// DEFAULT 的 4000。历史事故(nolo-plan omitted middle)正是 headRatio 0.5 掐掉中段,把
|
|
116
|
-
// 「MUST / 禁止」所在的中段静默省略。取 4800(与 readFile 同级),不激进放大;headRatio 同 DEFAULT。
|
|
117
|
-
loadSkill: { maxChars: 4800, headRatio: 0.5 }
|
|
118
|
-
};
|
|
119
|
-
function resolveToolOutputProfile(toolName) {
|
|
120
|
-
return (toolName ? TOOL_OUTPUT_PROFILES[toolName] : void 0) ?? DEFAULT_TOOL_OUTPUT_PROFILE;
|
|
121
|
-
}
|
|
122
|
-
function resolveHistoricalToolContentCap(toolName, historicalMaxChars) {
|
|
123
|
-
const profile = toolName ? TOOL_OUTPUT_PROFILES[toolName] : void 0;
|
|
124
|
-
return profile?.historicalMaxChars !== void 0 ? Math.max(historicalMaxChars, profile.historicalMaxChars) : historicalMaxChars;
|
|
125
|
-
}
|
|
126
|
-
function projectToolMessageContent(input) {
|
|
127
|
-
const { content, toolName } = input;
|
|
128
|
-
const maxChars = resolveToolOutputProfile(toolName).maxChars;
|
|
129
|
-
if (content.length <= maxChars) return content;
|
|
130
|
-
return clipToolText(
|
|
131
|
-
content,
|
|
132
|
-
maxChars,
|
|
133
|
-
resolveToolOutputProfile(toolName).headRatio,
|
|
134
|
-
`
|
|
135
|
-
\u2026[\u622A\u65AD\uFF0C\u539F\u59CB\u957F\u5EA6 ${content.length} \u5B57\u7B26]`
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
function clipToolText(content, maxChars, headRatio, marker = "\n\n[... tool output middle omitted; head/tail preserved ...]\n\n") {
|
|
139
|
-
const normalized = content.replace(/\r\n/g, "\n").trim();
|
|
140
|
-
if (normalized.length <= maxChars) return normalized;
|
|
141
|
-
if (maxChars <= marker.length + 2) return normalized.slice(0, maxChars);
|
|
142
|
-
const available = maxChars - marker.length;
|
|
143
|
-
const headChars = Math.max(1, Math.floor(available * headRatio));
|
|
144
|
-
const tailChars = Math.max(1, available - headChars);
|
|
145
|
-
return `${normalized.slice(0, headChars)}${marker}${normalized.slice(-tailChars)}`;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
97
|
export {
|
|
149
|
-
resolveAgentImageInputSupport
|
|
150
|
-
resolveToolOutputProfile,
|
|
151
|
-
resolveHistoricalToolContentCap,
|
|
152
|
-
projectToolMessageContent,
|
|
153
|
-
clipToolText
|
|
98
|
+
resolveAgentImageInputSupport
|
|
154
99
|
};
|
|
@@ -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-SM5FP7FM.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-KUQVLZMZ.js");
|
|
376
376
|
return createPageAction(args, thunkApi);
|
|
377
377
|
}
|
|
378
378
|
function subscribe(listener) {
|
|
@@ -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-IABRBGAE.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-34ME2HDT.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-YXFJ3UWD.js");
|
|
388
388
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
389
389
|
}),
|
|
390
390
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSseFrames
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveAgentImageInputSupport
|
|
6
|
+
} from "./chunk-I33CJERI.js";
|
|
4
7
|
import {
|
|
5
8
|
accumulateToolCallDelta,
|
|
6
9
|
createThinkParserState,
|
|
@@ -27,11 +30,11 @@ import {
|
|
|
27
30
|
stablePromptCacheKey,
|
|
28
31
|
toOpenAiCompatibleMessages,
|
|
29
32
|
toResponsesTools
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FZSVCJUU.js";
|
|
31
34
|
import {
|
|
32
35
|
isMeaningfulChatCompletionOutput,
|
|
33
36
|
isMeaningfulResponsesOutput
|
|
34
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-BKCR2JHG.js";
|
|
35
38
|
import {
|
|
36
39
|
clipCompactText
|
|
37
40
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -478,6 +481,7 @@ async function resolvePlatformChatProviderConfig(args) {
|
|
|
478
481
|
serverUrl: resolvePlatformServerUrl(args.env),
|
|
479
482
|
authToken: resolvePlatformAuthToken(args.env),
|
|
480
483
|
agentKey: args.agentConfig.key,
|
|
484
|
+
hasVision: args.agentConfig.hasVision,
|
|
481
485
|
model: plan.model,
|
|
482
486
|
provider: plan.provider,
|
|
483
487
|
endpoint: plan.endpoint,
|
|
@@ -493,6 +497,7 @@ async function resolvePlatformChatProviderConfig(args) {
|
|
|
493
497
|
serverUrl: plan.serverUrl,
|
|
494
498
|
authToken: plan.authToken,
|
|
495
499
|
agentKey: plan.agentKey,
|
|
500
|
+
hasVision: args.agentConfig.hasVision,
|
|
496
501
|
model: plan.model,
|
|
497
502
|
provider: plan.provider,
|
|
498
503
|
endpoint: plan.endpoint,
|
|
@@ -524,6 +529,7 @@ function buildPlatformChatCompletionRequest(args) {
|
|
|
524
529
|
input: convertMessagesToResponsesInput(sanitizedMessages)
|
|
525
530
|
} : {
|
|
526
531
|
messages: toOpenAiCompatibleMessages(sanitizedMessages, {
|
|
532
|
+
supportsToolImages: resolveAgentImageInputSupport({ provider: args.providerConfig.usageProvider ?? args.providerConfig.provider, model: args.providerConfig.model, customProviderUrl: args.providerConfig.endpoint, hasVision: args.providerConfig.hasVision ?? false }),
|
|
527
533
|
stripReasoningContent: shouldStripReasoning
|
|
528
534
|
})
|
|
529
535
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assembleAgentDiscoveryResult,
|
|
3
3
|
resolveDiscoveryScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BE42X662.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchWithTransientRetry
|
|
7
7
|
} from "./chunk-KFHREHUQ.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
toolRunUpdated,
|
|
21
21
|
uiCardFallback,
|
|
22
22
|
waitForAbortableDelay
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UA4VAUQL.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-O4H4HD4X.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-F3F3ARBN.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-MYZHJKLG.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-ULE7ABRN.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-ORKQ3T5D.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-2FWQCZDB.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-WUR5MNKF.js");
|
|
18567
18567
|
if (getDocState().pageKey === id) {
|
|
18568
18568
|
applyExternalDocUpdate({
|
|
18569
18569
|
slateData: finalSlateData,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
clipMultilineText,
|
|
3
3
|
fetchAndSerializeTable,
|
|
4
4
|
waitForAbortableDelay
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UA4VAUQL.js";
|
|
6
6
|
import {
|
|
7
7
|
isGatewayHttpStatus
|
|
8
8
|
} from "./chunk-NF64D32W.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-AGIM7IMJ.js";
|
|
22
22
|
import {
|
|
23
23
|
fetchAndCacheMessages
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ULE7ABRN.js";
|
|
25
25
|
import {
|
|
26
26
|
createSpaceKey
|
|
27
27
|
} from "./chunk-UAD2WT54.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-VYNMQ6HW.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchAndCacheTableRows
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MYZHJKLG.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-M7H7Z44Z.js");
|
|
525
525
|
const { executor } = findToolExecutor(run.toolName);
|
|
526
526
|
toolRunStarted({
|
|
527
527
|
id: run.id,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveRawAgentInput,
|
|
10
10
|
resolveServerUrl,
|
|
11
11
|
writeUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AKXKBNLQ.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-74PQM3XI.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-SDAIVJZG.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-UA4VAUQL.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-F3F3ARBN.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-ULE7ABRN.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-2EC6FNS4.js";
|
|
119
119
|
import {
|
|
120
120
|
resolveAgentRuntimeConfigFromRecord
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-5WOL7BUP.js";
|
|
122
122
|
import {
|
|
123
123
|
createThinkParserState,
|
|
124
124
|
flushThinkParser,
|
|
@@ -142,9 +142,11 @@ import {
|
|
|
142
142
|
resolveCredentialKeyWithFallback
|
|
143
143
|
} from "./chunk-JLR5NWP2.js";
|
|
144
144
|
import {
|
|
145
|
-
isOAuthApiKeyRef,
|
|
146
145
|
normalizeUsage
|
|
147
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-7TBARDLF.js";
|
|
147
|
+
import {
|
|
148
|
+
isOAuthApiKeyRef
|
|
149
|
+
} from "./chunk-BKCR2JHG.js";
|
|
148
150
|
import {
|
|
149
151
|
clipCompactText
|
|
150
152
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -11374,7 +11376,7 @@ function isBalanceExhaustedError(error) {
|
|
|
11374
11376
|
|
|
11375
11377
|
// packages/cli/client/agentRun.ts
|
|
11376
11378
|
async function loadRunLocalAgentTurn() {
|
|
11377
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
11379
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-JA2Q6UBJ.js");
|
|
11378
11380
|
return runLocalAgentTurn;
|
|
11379
11381
|
}
|
|
11380
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();
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-QYPE3TS3.js";
|
|
12
12
|
import {
|
|
13
13
|
runLlm
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ORKQ3T5D.js";
|
|
15
15
|
import {
|
|
16
16
|
getApproxPricePerImage
|
|
17
17
|
} from "./chunk-4JH2UMJR.js";
|
|
@@ -101,10 +101,9 @@ import {
|
|
|
101
101
|
asOptionalJsonRecord,
|
|
102
102
|
devinChannelContextWindow,
|
|
103
103
|
extractReferenceKeysFromMessage,
|
|
104
|
-
isOAuthApiKeyRef,
|
|
105
104
|
normalizeUsage,
|
|
106
105
|
resolveAutoExecutionProfile
|
|
107
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-7TBARDLF.js";
|
|
108
107
|
import {
|
|
109
108
|
isDevinOAuthAgent
|
|
110
109
|
} from "./chunk-5ZUL4CUO.js";
|
|
@@ -119,9 +118,10 @@ import {
|
|
|
119
118
|
formatFileOperationsFromMessages,
|
|
120
119
|
formatMessagesForSummaryWithTruncation,
|
|
121
120
|
getModelInfo,
|
|
121
|
+
isOAuthApiKeyRef,
|
|
122
122
|
planCompression,
|
|
123
123
|
serializeMessageContent
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-BKCR2JHG.js";
|
|
125
125
|
import {
|
|
126
126
|
asRecordOrEmpty
|
|
127
127
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -11062,7 +11062,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
11062
11062
|
runtimeOptions: args.runtimeOptions
|
|
11063
11063
|
});
|
|
11064
11064
|
if (agentKeyToUse) {
|
|
11065
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
11065
|
+
const { streamAgentChatTurn } = await import("./agentSlice-RVJDFNRB.js");
|
|
11066
11066
|
await dispatch(
|
|
11067
11067
|
streamAgentChatTurn({
|
|
11068
11068
|
agentKey: agentKeyToUse,
|
|
@@ -13879,7 +13879,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13879
13879
|
}
|
|
13880
13880
|
if (isCurrentDialog) {
|
|
13881
13881
|
await thunkApi.dispatch(resetMsgs());
|
|
13882
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13882
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-2FWQCZDB.js");
|
|
13883
13883
|
dispatch(clearPendingAttachments2());
|
|
13884
13884
|
}
|
|
13885
13885
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -13887,15 +13887,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13887
13887
|
|
|
13888
13888
|
// packages/chat/dialog/dialogSlice.ts
|
|
13889
13889
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13890
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13890
|
+
const { createDialogAction } = await import("./createDialogAction-LROHLFQ2.js");
|
|
13891
13891
|
return createDialogAction(args, thunkApi);
|
|
13892
13892
|
};
|
|
13893
13893
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13894
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13894
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-ECWLREQU.js");
|
|
13895
13895
|
return createAgentAutomationAction(args, thunkApi);
|
|
13896
13896
|
};
|
|
13897
13897
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13898
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13898
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-YXQ2AJVK.js");
|
|
13899
13899
|
return updateDialogTitleAction(args, thunkApi);
|
|
13900
13900
|
};
|
|
13901
13901
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -13919,7 +13919,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
13919
13919
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13920
13920
|
};
|
|
13921
13921
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13922
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13922
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-DVXNAQ2V.js");
|
|
13923
13923
|
return handleSendMessageAction(args, thunkApi);
|
|
13924
13924
|
};
|
|
13925
13925
|
function clearDialogState() {
|
|
@@ -13932,7 +13932,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13932
13932
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13933
13933
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13934
13934
|
try {
|
|
13935
|
-
const { createDocState } = await import("./docStore-
|
|
13935
|
+
const { createDocState } = await import("./docStore-WUR5MNKF.js");
|
|
13936
13936
|
const pageKey = await createDocState(
|
|
13937
13937
|
{ slateData, title },
|
|
13938
13938
|
{ dispatch, getState }
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TCWK2EQX.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ORKQ3T5D.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSkillGuidancePromptBlock
|
|
12
12
|
} from "./chunk-3LNVSFTH.js";
|
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
resolveReasoningReplayOptions,
|
|
33
33
|
shouldStripReasoningContentForOutbound,
|
|
34
34
|
stablePromptCacheKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FZSVCJUU.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveAgentCallPlan,
|
|
38
38
|
resolveClientWire
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XBJIESNS.js";
|
|
40
40
|
import {
|
|
41
41
|
createFileCredentialBroker
|
|
42
42
|
} from "./chunk-76YUTLOT.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
mergeReferences,
|
|
8
8
|
resolveReferenceAssets,
|
|
9
9
|
resolveToolsFromKeys
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TCWK2EQX.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-UA4VAUQL.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-O4H4HD4X.js";
|
|
36
36
|
import {
|
|
37
37
|
getTableState
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MYZHJKLG.js";
|
|
39
39
|
import {
|
|
40
40
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
41
41
|
buildPersonalizationDialogPolicyContext,
|
|
42
42
|
selectAllMsgs
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ULE7ABRN.js";
|
|
44
44
|
import {
|
|
45
45
|
getCurrentSpaceIdRaw,
|
|
46
46
|
getViewMode
|
|
@@ -69,18 +69,18 @@ import {
|
|
|
69
69
|
} from "./chunk-WXOKJP3W.js";
|
|
70
70
|
import {
|
|
71
71
|
projectToolMessageContent
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-2WZXXAQD.js";
|
|
73
73
|
import {
|
|
74
74
|
attachmentKind,
|
|
75
75
|
normalizeAttachmentPart
|
|
76
76
|
} from "./chunk-WJZOQR2J.js";
|
|
77
77
|
import {
|
|
78
78
|
extractReferenceKeysFromMessage
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-7TBARDLF.js";
|
|
80
80
|
import {
|
|
81
81
|
getModelContextWindow,
|
|
82
82
|
planContextUsage
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-BKCR2JHG.js";
|
|
84
84
|
import {
|
|
85
85
|
asRecordOrEmpty
|
|
86
86
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchReferenceContents,
|
|
3
3
|
resolveReferenceAssets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TCWK2EQX.js";
|
|
5
5
|
import {
|
|
6
6
|
updateTokensAction
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ULE7ABRN.js";
|
|
8
8
|
import {
|
|
9
9
|
applyUpdateTokensFulfilled
|
|
10
10
|
} from "./chunk-OWYYDMGJ.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
extractReasoningFromResponseOutput,
|
|
13
13
|
extractTextFromResponseOutput,
|
|
14
14
|
extractToolCallsFromResponseOutput
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FZSVCJUU.js";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
18
|
} from "./chunk-KUG52IAP.js";
|