nolo-cli 0.153.0 → 0.153.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-YAHIA3TR.js → _executeModel-7PZNF3KM.js} +17 -18
- package/{agentDeleteCommand-6W2VQADC.js → agentDeleteCommand-52SBFMA4.js} +17 -18
- package/{agentEmailCommands-ZTS5JSP5.js → agentEmailCommands-FLTHAK4Y.js} +19 -20
- package/{agentListCommands-MM5OLPBY.js → agentListCommands-LKFRVROH.js} +6 -6
- package/{agentMachineCommands-WPFV4TSD.js → agentMachineCommands-V3E6STQ6.js} +7 -7
- package/{agentRecordCommands-YW7XO5CX.js → agentRecordCommands-KAOY56RD.js} +18 -19
- package/{agentRunCommand-R2JTIRPZ.js → agentRunCommand-FXAN65RN.js} +19 -20
- package/{agentRuntimeLocal-RJKTDWNN.js → agentRuntimeLocal-V4URZOQL.js} +6 -6
- package/{agentSlice-7FNTOPHE.js → agentSlice-LAV5TJXT.js} +1 -1
- package/{appDeleteCommands-7EOM274T.js → appDeleteCommands-7EZRTNIP.js} +6 -6
- package/{appDeployCommands-2I3QYJ5G.js → appDeployCommands-3U6MEES7.js} +6 -6
- package/{appDeployStatusCommands-LEML7FPR.js → appDeployStatusCommands-TAC6BYC6.js} +6 -6
- package/{appGetCommands-ZQSVHGQM.js → appGetCommands-MFNPLXGO.js} +6 -6
- package/{appListCommands-BVA7XKQO.js → appListCommands-QVZAUEUU.js} +6 -6
- package/{chunk-JZYIISJB.js → chunk-3CHPRXKY.js} +3 -3
- package/{chunk-7NSQJKGA.js → chunk-7G4KH3C4.js} +5 -5
- package/{chunk-2MTE2PEH.js → chunk-AAMWEIEP.js} +2 -736
- package/{chunk-YPY2S3DV.js → chunk-AWY25K65.js} +1 -1
- package/{chunk-DRPDGHQB.js → chunk-AXYXKGPN.js} +1 -1
- package/{chunk-L57R6PFF.js → chunk-BUCB3RT4.js} +3 -3
- package/chunk-C5A3GWRG.js +2685 -0
- package/{chunk-5MM7NNO6.js → chunk-CNWKLQRL.js} +8 -3
- package/{chunk-OJ2PQXBV.js → chunk-DJKBZYMR.js} +14 -14
- package/{chunk-ZWG3C7VI.js → chunk-KJ7MT3UC.js} +1 -1
- package/{chunk-ILVOUUMR.js → chunk-MJ54WBLO.js} +2 -2
- package/{chunk-RL2OOQUM.js → chunk-QJJQZ4EK.js} +11 -11
- package/{chunk-QEONMOV7.js → chunk-RAEBIT7A.js} +2 -2
- package/{chunk-ACTR4SH2.js → chunk-RWSOTHY4.js} +3 -3
- package/{chunk-6TF64IF2.js → chunk-SGJRNVYF.js} +1 -1
- package/{chunk-NKBMD4TC.js → chunk-SOEJSA7I.js} +2 -2
- package/{chunk-ZGSW3HWM.js → chunk-SQ73U3BG.js} +2 -2
- package/{chunk-QSKN3E7Q.js → chunk-T64RZQBO.js} +14 -14
- package/{chunk-4J4RVSHE.js → chunk-TFPOD4YZ.js} +2 -2
- package/{chunk-ZGG7BBVE.js → chunk-V6P4AYYJ.js} +3 -3
- package/{chunk-L6EQV5OC.js → chunk-VSJIIKGY.js} +2 -2
- package/{chunk-GLUL4C5S.js → chunk-WUGRUG5Z.js} +10 -10
- package/{chunk-W2NNEHHW.js → chunk-XJOBYJWN.js} +9 -9
- package/{chunk-2EROINJB.js → chunk-YIIQNHJW.js} +7 -7
- package/{chunk-ANJTRG52.js → chunk-ZJZGF77K.js} +1 -1
- package/{commandRegistry-ZPK4AUWM.js → commandRegistry-BZGZP4AW.js} +40 -40
- package/{contentThunks-SXEQLAFP.js → contentThunks-56AWRCC4.js} +6 -6
- package/{createAgentAutomationAction-INVACTI3.js → createAgentAutomationAction-W5D4IHHK.js} +6 -6
- package/{createDialogAction-FDO3DYW4.js → createDialogAction-YMU646CH.js} +7 -7
- package/{createPageAction-Q5CQPEQH.js → createPageAction-T4WRPDOH.js} +7 -8
- package/{dialogCommands-MUFYPVMP.js → dialogCommands-3T3LM566.js} +6 -6
- package/{dialogSlice-DS22VO6X.js → dialogSlice-Z5KOY4CC.js} +5 -5
- package/{dist-NJC2W7I4.js → dist-Q2JSMAKA.js} +7 -361
- package/{docCreateCommands-OPWOKG62.js → docCreateCommands-OLNS64OJ.js} +6 -6
- package/{docDeleteCommands-IBV3WMKI.js → docDeleteCommands-U4UOLXZQ.js} +6 -6
- package/{docReadCommands-LVALHMLZ.js → docReadCommands-WUYVWGOH.js} +6 -6
- package/{docStore-UFEWRQ5W.js → docStore-2EN5A7PW.js} +1 -1
- package/{docUpdateCommands-Z5OUEAK7.js → docUpdateCommands-RKVB6XAQ.js} +6 -6
- package/{handleSendMessageAction-AOPC2RYQ.js → handleSendMessageAction-EF3LOTXW.js} +10 -10
- package/index.js +4 -4
- package/{localRuntimeAdapter-OK722XHN.js → localRuntimeAdapter-OAHN57AM.js} +17 -18
- package/{machineCommands-NW3KT5RE.js → machineCommands-RTYX5UN3.js} +18 -19
- package/{machineWsRunDispatch-EWQDI6TL.js → machineWsRunDispatch-ELDKKIHF.js} +18 -19
- package/package.json +6 -2
- package/{readlineWorkspace-ZTNEFMTX.js → readlineWorkspace-BUEUGN7D.js} +22 -23
- package/{runAgentClientLoop-PQTFXXFA.js → runAgentClientLoop-BDN5VYZN.js} +15 -16
- package/{spaceCommands-AWIIP7J5.js → spaceCommands-KHCPOFEB.js} +6 -6
- package/{streamAgentChatTurn-I4M3CUBF.js → streamAgentChatTurn-WFNIELXS.js} +18 -19
- package/{tools-TOSN72UD.js → tools-2LGM37M4.js} +11 -12
- package/{tuiSummaryLlmCaller-KLK6K3Q3.js → tuiSummaryLlmCaller-NBEHCAFU.js} +3 -3
- package/{updateDialogTitleAction-TJWFUJX4.js → updateDialogTitleAction-IFC2MM4P.js} +7 -7
- package/chunk-6COBMDV4.js +0 -7018
- package/chunk-IA7TRNNR.js +0 -11
- package/clipboardy-GCO3GT3I.js +0 -11793
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
escapeStringRegexp
|
|
3
|
-
} from "./chunk-IA7TRNNR.js";
|
|
4
1
|
import {
|
|
5
2
|
asTrimmedString
|
|
6
3
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -7141,6 +7138,14 @@ function ccount(value, character) {
|
|
|
7141
7138
|
function ok() {
|
|
7142
7139
|
}
|
|
7143
7140
|
|
|
7141
|
+
// node_modules/escape-string-regexp/index.js
|
|
7142
|
+
function escapeStringRegexp(string3) {
|
|
7143
|
+
if (typeof string3 !== "string") {
|
|
7144
|
+
throw new TypeError("Expected a string");
|
|
7145
|
+
}
|
|
7146
|
+
return string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
7147
|
+
}
|
|
7148
|
+
|
|
7144
7149
|
// node_modules/unist-util-is/lib/index.js
|
|
7145
7150
|
var convert = (
|
|
7146
7151
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
inlineImageUrlsForCustomProvider,
|
|
66
66
|
prepareTools
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-TFPOD4YZ.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-XJOBYJWN.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-SOEJSA7I.js";
|
|
101
101
|
import {
|
|
102
102
|
applyBuiltinAgentRuntimeOverride,
|
|
103
103
|
applyTokenUsageToDayStats,
|
|
@@ -106,17 +106,17 @@ import {
|
|
|
106
106
|
resolveBuiltinPlatformAgentConfig,
|
|
107
107
|
runKeyed,
|
|
108
108
|
validateAskChoiceInput
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-T64RZQBO.js";
|
|
110
|
+
import {
|
|
111
|
+
isOAuthApiKeyRef
|
|
112
|
+
} from "./chunk-UKZX3NHN.js";
|
|
110
113
|
import {
|
|
111
114
|
BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
|
|
112
115
|
BUILTIN_TITLE_LLM_CONFIG
|
|
113
116
|
} from "./chunk-523DITKR.js";
|
|
114
|
-
import {
|
|
115
|
-
isOAuthApiKeyRef
|
|
116
|
-
} from "./chunk-UKZX3NHN.js";
|
|
117
117
|
import {
|
|
118
118
|
fetchServerSyncedCredential
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-RWSOTHY4.js";
|
|
120
120
|
import {
|
|
121
121
|
isTombstoneRecord
|
|
122
122
|
} from "./chunk-D2MDMY2M.js";
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
runExecShellGates,
|
|
174
174
|
validateConfiguredRootExecutionLease,
|
|
175
175
|
verifyOwnerRouteAck
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-7G4KH3C4.js";
|
|
177
177
|
import {
|
|
178
178
|
accumulateGeminiChunks,
|
|
179
179
|
buildGeminiGenerateContentRequest,
|
|
@@ -196,14 +196,14 @@ import {
|
|
|
196
196
|
readPlatformChatSseCompletion,
|
|
197
197
|
resolvePlatformChatProviderConfig,
|
|
198
198
|
shouldUsePlatformChatProvider
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-VSJIIKGY.js";
|
|
200
200
|
import {
|
|
201
201
|
readSseDataValues,
|
|
202
202
|
readSseFrames
|
|
203
203
|
} from "./chunk-HNUWUO75.js";
|
|
204
204
|
import {
|
|
205
205
|
resolveAgentRuntimeConfigFromRecord
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-ZJZGF77K.js";
|
|
207
207
|
import {
|
|
208
208
|
isDevinOAuthAgent
|
|
209
209
|
} from "./chunk-5ZUL4CUO.js";
|
|
@@ -216,7 +216,7 @@ import {
|
|
|
216
216
|
findAgentStatePairingIssues,
|
|
217
217
|
stablePromptCacheKey,
|
|
218
218
|
toResponsesTools
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-SGJRNVYF.js";
|
|
220
220
|
import {
|
|
221
221
|
buildNoloWorkspaceOpenAiTools,
|
|
222
222
|
parseNoloWorkspaceToolArguments,
|
|
@@ -234,14 +234,14 @@ import {
|
|
|
234
234
|
} from "./chunk-2MBTWINN.js";
|
|
235
235
|
import {
|
|
236
236
|
normalizeUsage
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-KJ7MT3UC.js";
|
|
238
238
|
import {
|
|
239
239
|
createProviderCallTimingTracker,
|
|
240
240
|
finalizeProviderCallTiming,
|
|
241
241
|
observeMeaningfulProviderResponse,
|
|
242
242
|
observeMeaningfulProviderResponseAt,
|
|
243
243
|
withProviderCallTimingFields
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-AAMWEIEP.js";
|
|
245
245
|
import {
|
|
246
246
|
clipCompactText
|
|
247
247
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
333
333
|
).unwrap();
|
|
334
334
|
if (dbSpaceId) {
|
|
335
335
|
try {
|
|
336
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
336
|
+
const { updateContentTitle } = await import("./contentThunks-56AWRCC4.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-T4WRPDOH.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-AXYXKGPN.js";
|
|
13
13
|
import {
|
|
14
14
|
getReadableCliDb
|
|
15
15
|
} from "./chunk-P5QACQDK.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
resolveBoundMachineId,
|
|
28
28
|
resolveFileWriteGateEnabled,
|
|
29
29
|
resolveLocalUserId
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-DJKBZYMR.js";
|
|
31
31
|
import {
|
|
32
32
|
clearCredentialAvailability,
|
|
33
33
|
readCredentialEntry,
|
|
@@ -75,14 +75,14 @@ import {
|
|
|
75
75
|
} from "./chunk-BMQ2MJUK.js";
|
|
76
76
|
import {
|
|
77
77
|
resolveCliLocalRuntimeKeyCapability
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-XJOBYJWN.js";
|
|
79
79
|
import {
|
|
80
80
|
isTransientFetchError
|
|
81
81
|
} from "./chunk-KFHREHUQ.js";
|
|
82
82
|
import {
|
|
83
83
|
parseUiCard,
|
|
84
84
|
uiCardFallback
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-SOEJSA7I.js";
|
|
86
86
|
import {
|
|
87
87
|
isGatewayHttpStatus
|
|
88
88
|
} from "./chunk-NF64D32W.js";
|
|
@@ -91,11 +91,11 @@ import {
|
|
|
91
91
|
chooseMemoryOwners,
|
|
92
92
|
loadMemoryCandidatesFromDb,
|
|
93
93
|
resolveAgentMemoryPolicy
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-RAEBIT7A.js";
|
|
95
95
|
import {
|
|
96
96
|
API_REPORTED_COST_MULTIPLIER,
|
|
97
97
|
parseUiAskChoiceContent
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-T64RZQBO.js";
|
|
99
99
|
import {
|
|
100
100
|
isOAuthApiKeyRef
|
|
101
101
|
} from "./chunk-UKZX3NHN.js";
|
|
@@ -107,11 +107,11 @@ import {
|
|
|
107
107
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
108
108
|
LOCAL_TURN_ABORTED_CODE,
|
|
109
109
|
readActionGate
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-7G4KH3C4.js";
|
|
111
111
|
import {
|
|
112
112
|
devinChannelContextWindow,
|
|
113
113
|
resolveAgentRuntimeConfigFromRecord
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-ZJZGF77K.js";
|
|
115
115
|
import {
|
|
116
116
|
isDevinOAuthAgent
|
|
117
117
|
} from "./chunk-5ZUL4CUO.js";
|
|
@@ -137,10 +137,10 @@ import {
|
|
|
137
137
|
} from "./chunk-3MZAGMYY.js";
|
|
138
138
|
import {
|
|
139
139
|
normalizeUsage
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-KJ7MT3UC.js";
|
|
141
141
|
import {
|
|
142
142
|
findModelContextWindow
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-AAMWEIEP.js";
|
|
144
144
|
import {
|
|
145
145
|
clipCompactText
|
|
146
146
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -11245,7 +11245,7 @@ function isBalanceExhaustedError(error) {
|
|
|
11245
11245
|
|
|
11246
11246
|
// packages/cli/client/agentRun.ts
|
|
11247
11247
|
async function loadRunLocalAgentTurn() {
|
|
11248
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
11248
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-V4URZOQL.js");
|
|
11249
11249
|
return runLocalAgentTurn;
|
|
11250
11250
|
}
|
|
11251
11251
|
var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C5A3GWRG.js";
|
|
4
4
|
import {
|
|
5
5
|
format,
|
|
6
6
|
prepareAndPersistMessage,
|
|
7
7
|
uiAskChoiceFunc,
|
|
8
8
|
uiAskChoiceFunctionSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-T64RZQBO.js";
|
|
10
10
|
import {
|
|
11
11
|
formatISO
|
|
12
12
|
} from "./chunk-ZRAU6T47.js";
|
|
@@ -308,7 +308,7 @@ var slice = createSliceWithThunks({
|
|
|
308
308
|
const overrides = {};
|
|
309
309
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
310
310
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
311
|
-
const { _executeModel } = await import("./_executeModel-
|
|
311
|
+
const { _executeModel } = await import("./_executeModel-7PZNF3KM.js");
|
|
312
312
|
return _executeModel(
|
|
313
313
|
{
|
|
314
314
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -329,7 +329,7 @@ var slice = createSliceWithThunks({
|
|
|
329
329
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
330
330
|
*/
|
|
331
331
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
332
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
332
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-BDN5VYZN.js");
|
|
333
333
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
334
334
|
{
|
|
335
335
|
agentKey: args.agentKey,
|
|
@@ -345,7 +345,7 @@ var slice = createSliceWithThunks({
|
|
|
345
345
|
* 聊天轮次流式 Agent 调用
|
|
346
346
|
*/
|
|
347
347
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
348
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
348
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-WFNIELXS.js");
|
|
349
349
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
350
350
|
}),
|
|
351
351
|
/**
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-VYNMQ6HW.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchAndCacheTableRows
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-C5A3GWRG.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-2LGM37M4.js");
|
|
525
525
|
const { executor } = findToolExecutor(run.toolName);
|
|
526
526
|
toolRunStarted({
|
|
527
527
|
id: run.id,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
clipMultilineText,
|
|
3
3
|
fetchAndSerializeTable,
|
|
4
4
|
waitForAbortableDelay
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SOEJSA7I.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-T64RZQBO.js";
|
|
25
25
|
import {
|
|
26
26
|
createSpaceKey
|
|
27
27
|
} from "./chunk-UAD2WT54.js";
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
|
|
3
|
-
BUILTIN_SUMMARY_LLM_CONFIG
|
|
4
|
-
} from "./chunk-523DITKR.js";
|
|
5
1
|
import {
|
|
6
2
|
isOAuthApiKeyRef
|
|
7
3
|
} from "./chunk-UKZX3NHN.js";
|
|
@@ -9,12 +5,16 @@ import {
|
|
|
9
5
|
buildDialogAttachmentPlan,
|
|
10
6
|
extractFileContentIds
|
|
11
7
|
} from "./chunk-OFFL4DCR.js";
|
|
8
|
+
import {
|
|
9
|
+
BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
|
|
10
|
+
BUILTIN_SUMMARY_LLM_CONFIG
|
|
11
|
+
} from "./chunk-523DITKR.js";
|
|
12
12
|
import {
|
|
13
13
|
isMediaToolConfirmation
|
|
14
14
|
} from "./chunk-QYPE3TS3.js";
|
|
15
15
|
import {
|
|
16
16
|
runLlm
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RWSOTHY4.js";
|
|
18
18
|
import {
|
|
19
19
|
getApproxPricePerImage
|
|
20
20
|
} from "./chunk-4JH2UMJR.js";
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
extractReferenceKeysFromMessage,
|
|
106
106
|
normalizeUsage,
|
|
107
107
|
resolveAutoExecutionProfile
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-KJ7MT3UC.js";
|
|
109
109
|
import {
|
|
110
110
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
111
111
|
DEFAULT_CONTEXT_WINDOW,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
getModelInfo,
|
|
120
120
|
planCompression,
|
|
121
121
|
serializeMessageContent
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-AAMWEIEP.js";
|
|
123
123
|
import {
|
|
124
124
|
asRecordOrEmpty
|
|
125
125
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -10952,7 +10952,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
10952
10952
|
runtimeOptions: args.runtimeOptions
|
|
10953
10953
|
});
|
|
10954
10954
|
if (agentKeyToUse) {
|
|
10955
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
10955
|
+
const { streamAgentChatTurn } = await import("./agentSlice-LAV5TJXT.js");
|
|
10956
10956
|
await dispatch(
|
|
10957
10957
|
streamAgentChatTurn({
|
|
10958
10958
|
agentKey: agentKeyToUse,
|
|
@@ -13769,7 +13769,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13769
13769
|
}
|
|
13770
13770
|
if (isCurrentDialog) {
|
|
13771
13771
|
await thunkApi.dispatch(resetMsgs());
|
|
13772
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13772
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-Z5KOY4CC.js");
|
|
13773
13773
|
dispatch(clearPendingAttachments2());
|
|
13774
13774
|
}
|
|
13775
13775
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -13777,15 +13777,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13777
13777
|
|
|
13778
13778
|
// packages/chat/dialog/dialogSlice.ts
|
|
13779
13779
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13780
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13780
|
+
const { createDialogAction } = await import("./createDialogAction-YMU646CH.js");
|
|
13781
13781
|
return createDialogAction(args, thunkApi);
|
|
13782
13782
|
};
|
|
13783
13783
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13784
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13784
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-W5D4IHHK.js");
|
|
13785
13785
|
return createAgentAutomationAction(args, thunkApi);
|
|
13786
13786
|
};
|
|
13787
13787
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13788
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13788
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-IFC2MM4P.js");
|
|
13789
13789
|
return updateDialogTitleAction(args, thunkApi);
|
|
13790
13790
|
};
|
|
13791
13791
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -13809,7 +13809,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
13809
13809
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13810
13810
|
};
|
|
13811
13811
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13812
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13812
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-EF3LOTXW.js");
|
|
13813
13813
|
return handleSendMessageAction(args, thunkApi);
|
|
13814
13814
|
};
|
|
13815
13815
|
function clearDialogState() {
|
|
@@ -13822,7 +13822,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13822
13822
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13823
13823
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13824
13824
|
try {
|
|
13825
|
-
const { createDocState } = await import("./docStore-
|
|
13825
|
+
const { createDocState } = await import("./docStore-2EN5A7PW.js");
|
|
13826
13826
|
const pageKey = await createDocState(
|
|
13827
13827
|
{ slateData, title },
|
|
13828
13828
|
{ dispatch, getState }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DJKBZYMR.js";
|
|
5
5
|
import {
|
|
6
6
|
t
|
|
7
7
|
} from "./chunk-2AB2HA4M.js";
|
|
8
8
|
import {
|
|
9
9
|
clipMultilineText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SOEJSA7I.js";
|
|
11
11
|
import {
|
|
12
12
|
runLocalAgentTurn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7G4KH3C4.js";
|
|
14
14
|
import {
|
|
15
15
|
applyToolSurfaceConstraints
|
|
16
16
|
} from "./chunk-QLQ573SU.js";
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
stablePromptCacheKey,
|
|
28
28
|
toOpenAiCompatibleMessages,
|
|
29
29
|
toResponsesTools
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SGJRNVYF.js";
|
|
31
31
|
import {
|
|
32
32
|
isMeaningfulChatCompletionOutput,
|
|
33
33
|
isMeaningfulResponsesOutput
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AAMWEIEP.js";
|
|
35
35
|
import {
|
|
36
36
|
clipCompactText
|
|
37
37
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TFPOD4YZ.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3CHPRXKY.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XJOBYJWN.js";
|
|
22
22
|
import {
|
|
23
23
|
classifyApiError,
|
|
24
24
|
classifyGenerationError,
|
|
25
25
|
extractErrorDiagnostics
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SQ73U3BG.js";
|
|
27
27
|
import {
|
|
28
28
|
createSSEParser,
|
|
29
29
|
createToolRunId,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
toolRunSetPending,
|
|
33
33
|
toolRunStarted,
|
|
34
34
|
toolRunSucceeded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SOEJSA7I.js";
|
|
36
36
|
import {
|
|
37
37
|
getPublicImageAgentMode
|
|
38
38
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
messageStreaming,
|
|
43
43
|
toolResultNeedsUserConfirmation,
|
|
44
44
|
updateToolMessage
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-T64RZQBO.js";
|
|
46
46
|
import {
|
|
47
47
|
streamAgentChatTurn
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RWSOTHY4.js";
|
|
49
49
|
import {
|
|
50
50
|
getCurrentSpaceId
|
|
51
51
|
} from "./chunk-ZJ7UHBJS.js";
|
|
@@ -85,13 +85,13 @@ import {
|
|
|
85
85
|
} from "./chunk-56GBUMO5.js";
|
|
86
86
|
import {
|
|
87
87
|
normalizeChatCompletionsBodyForProvider
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-SGJRNVYF.js";
|
|
89
89
|
import {
|
|
90
90
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-KJ7MT3UC.js";
|
|
92
92
|
import {
|
|
93
93
|
getModelInfo
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-AAMWEIEP.js";
|
|
95
95
|
import {
|
|
96
96
|
isAbortError
|
|
97
97
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
toolRunUpdated,
|
|
21
21
|
uiCardFallback,
|
|
22
22
|
waitForAbortableDelay
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SOEJSA7I.js";
|
|
24
24
|
import {
|
|
25
25
|
isGatewayHttpStatus
|
|
26
26
|
} from "./chunk-NF64D32W.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
} from "./chunk-US6MKPE7.js";
|
|
53
53
|
import {
|
|
54
54
|
markdownToSlate
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-CNWKLQRL.js";
|
|
56
56
|
import {
|
|
57
57
|
extractMentionsFromSlate
|
|
58
58
|
} from "./chunk-AGIM7IMJ.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-VF4K2QE6.js";
|
|
65
65
|
import {
|
|
66
66
|
createDocState
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-MJ54WBLO.js";
|
|
68
68
|
import {
|
|
69
69
|
addMemberSpace,
|
|
70
70
|
fetchAuthoritativeRemoteSpace,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-J2ATF74A.js";
|
|
80
80
|
import {
|
|
81
81
|
createDialogAction
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-RAEBIT7A.js";
|
|
83
83
|
import {
|
|
84
84
|
setDialogExtraReferencesAction
|
|
85
85
|
} from "./chunk-CON6SI7N.js";
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
updateContentCategory,
|
|
103
103
|
updateContentTitle,
|
|
104
104
|
writeStoredCollapsedCategories
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-C5A3GWRG.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-T64RZQBO.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-RWSOTHY4.js";
|
|
130
130
|
import {
|
|
131
131
|
getCurrentSpaceId,
|
|
132
132
|
getCurrentSpaceIdRaw,
|
|
@@ -3881,7 +3881,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3881
3881
|
const deletedDialogIds = [];
|
|
3882
3882
|
const deletedDialogKeys = [];
|
|
3883
3883
|
const failures = [];
|
|
3884
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3884
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-Z5KOY4CC.js");
|
|
3885
3885
|
for (const target of targets) {
|
|
3886
3886
|
try {
|
|
3887
3887
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -18424,7 +18424,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18424
18424
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18425
18425
|
};
|
|
18426
18426
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18427
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18427
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-2EN5A7PW.js");
|
|
18428
18428
|
if (getDocState().pageKey === id) {
|
|
18429
18429
|
applyExternalDocUpdate({
|
|
18430
18430
|
slateData: finalSlateData,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
mergeReferences,
|
|
8
8
|
resolveReferenceAssets,
|
|
9
9
|
resolveToolsFromKeys
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SQ73U3BG.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-SOEJSA7I.js";
|
|
24
24
|
import {
|
|
25
25
|
resolveToolBaseUrl
|
|
26
26
|
} from "./chunk-MYOH447Z.js";
|
|
@@ -32,15 +32,15 @@ import {
|
|
|
32
32
|
} from "./chunk-YANF2RR4.js";
|
|
33
33
|
import {
|
|
34
34
|
getDocState
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MJ54WBLO.js";
|
|
36
36
|
import {
|
|
37
37
|
getTableState
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-C5A3GWRG.js";
|
|
39
39
|
import {
|
|
40
40
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
41
41
|
buildPersonalizationDialogPolicyContext,
|
|
42
42
|
selectAllMsgs
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-T64RZQBO.js";
|
|
44
44
|
import {
|
|
45
45
|
getCurrentSpaceIdRaw,
|
|
46
46
|
getViewMode
|
|
@@ -76,11 +76,11 @@ import {
|
|
|
76
76
|
} from "./chunk-WJZOQR2J.js";
|
|
77
77
|
import {
|
|
78
78
|
extractReferenceKeysFromMessage
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-KJ7MT3UC.js";
|
|
80
80
|
import {
|
|
81
81
|
getModelContextWindow,
|
|
82
82
|
planContextUsage
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-AAMWEIEP.js";
|
|
84
84
|
import {
|
|
85
85
|
asRecordOrEmpty
|
|
86
86
|
} from "./chunk-KX6YBIHG.js";
|