nolo-cli 0.12.0-alpha.9 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-PKRZBH3J.js → _executeModel-4F7VZR5U.js} +10 -10
- package/{agentDeleteCommand-OKQ5CSX2.js → agentDeleteCommand-MMRSG6AB.js} +6 -6
- package/{agentEmailCommands-7DORWXQH.js → agentEmailCommands-YFVKOGM7.js} +13 -13
- package/{agentListCommands-VTR33V4B.js → agentListCommands-2PZHIQ3I.js} +7 -7
- package/{agentMachineCommands-XHFM4UQB.js → agentMachineCommands-55UUZNHF.js} +6 -6
- package/{agentRecordCommands-XB7XBNJ7.js → agentRecordCommands-BTP3OAPL.js} +13 -13
- package/{agentRunCommand-XACEWDVO.js → agentRunCommand-WCO4B6VK.js} +13 -13
- package/{agentRuntimeLocal-NYFVPD5P.js → agentRuntimeLocal-QDJCBXM2.js} +3 -3
- package/{agentSlice-NGZWIMZX.js → agentSlice-6JAJOU3X.js} +1 -1
- package/{chunk-LKVDZQGM.js → chunk-2BVGERJ2.js} +1 -1
- package/{chunk-HO7RHQIN.js → chunk-3MI5LDDU.js} +1 -1
- package/{chunk-OPZYGHUC.js → chunk-3WGLLTK4.js} +59 -1
- package/{chunk-LBWFOYJJ.js → chunk-3XF6LCCN.js} +2 -2
- package/{chunk-3GOA33JO.js → chunk-5S4SWV5G.js} +2 -47
- package/{chunk-UWTMBOPF.js → chunk-5V524MHX.js} +3 -3
- package/{chunk-6KTC3MPK.js → chunk-ARSC56DC.js} +1 -1
- package/{chunk-SDYIF6SV.js → chunk-C3BFP57W.js} +1 -1
- package/{chunk-CGAYFFIB.js → chunk-CGDQDXKZ.js} +1 -1
- package/{chunk-A22NOC7Y.js → chunk-DHVDBZGS.js} +41 -11
- package/{chunk-4LNEIK4O.js → chunk-EIMX5ER5.js} +2 -2
- package/{chunk-XNV42PMD.js → chunk-FSUZIGIG.js} +8 -8
- package/{chunk-NS3DRNUZ.js → chunk-KWBH4RAL.js} +7 -7
- package/{chunk-UNEZBV37.js → chunk-MG6BVV3T.js} +5 -5
- package/{chunk-SKURMCJF.js → chunk-MZHSAPZP.js} +8 -8
- package/{chunk-P3J54V3I.js → chunk-O4FOPRCP.js} +1 -1
- package/{chunk-UP6JMU6C.js → chunk-OPM2DE2J.js} +1 -1
- package/{chunk-7CQLSRAC.js → chunk-QUHUVG6Y.js} +2 -2
- package/{chunk-7F5C7ILS.js → chunk-TQYYGE6G.js} +2 -2
- package/{chunk-QYZ46ZC3.js → chunk-VBSWHE5W.js} +1 -1
- package/{chunk-HYJNPPQ6.js → chunk-Y5P3ZRGC.js} +3 -3
- package/{chunk-REQCG2PB.js → chunk-YUMYYXPI.js} +23 -72
- package/{createAgentAutomationAction-AHSBJKGX.js → createAgentAutomationAction-4NY4JLOK.js} +2 -2
- package/{createDialogAction-RSNVGR5E.js → createDialogAction-I5WUWFJ6.js} +3 -3
- package/{createPageAction-47G4D5WU.js → createPageAction-HFTIQ7TW.js} +2 -2
- package/{dialogCommands-MPUFCOBR.js → dialogCommands-SVXRJFZS.js} +7 -7
- package/{dialogSlice-YNEFYFSU.js → dialogSlice-35LA3ZRG.js} +2 -2
- package/{docCreateCommands-LV6KUDP3.js → docCreateCommands-Z7RIAYKQ.js} +6 -6
- package/{docDeleteCommands-Y7FOYWMY.js → docDeleteCommands-NEYHUVZF.js} +7 -7
- package/{docReadCommands-UCCHERCP.js → docReadCommands-I4US2SDE.js} +6 -6
- package/{docStore-OBBYKQVD.js → docStore-3CP2IO6M.js} +3 -3
- package/{docUpdateCommands-FBKQBFWG.js → docUpdateCommands-UU5HQBRP.js} +6 -6
- package/{handleSendMessageAction-U5AX6CGB.js → handleSendMessageAction-FWTLQGOZ.js} +2 -2
- package/index.js +36 -36
- package/{machineCommands-EXVWHGWU.js → machineCommands-STHZKBDJ.js} +12 -12
- package/{machineWsRunDispatch-QZXCW3SI.js → machineWsRunDispatch-7YHT4TPT.js} +12 -12
- package/package.json +1 -1
- package/{readlineWorkspace-QKMGLM33.js → readlineWorkspace-KT3OV7JP.js} +18 -27
- package/{runAgentClientLoop-5DIJHAPN.js → runAgentClientLoop-FP2K33ZO.js} +7 -7
- package/{spaceCommands-KDZYXP5N.js → spaceCommands-GN73BCOB.js} +6 -6
- package/{spaceSlice-EO6JQRMP.js → spaceSlice-WTFNKOVA.js} +2 -2
- package/{streamAgentChatTurn-PLKJ3MZ6.js → streamAgentChatTurn-HBAQQVNK.js} +9 -9
- package/{tools-5QNY6YKE.js → tools-TPQYTLQZ.js} +5 -5
- package/{tuiSummaryLlmCaller-TQ34DAM5.js → tuiSummaryLlmCaller-XDC7WG4K.js} +2 -2
- package/{updateDialogTitleAction-V5AD52MZ.js → updateDialogTitleAction-AWXNPUQJ.js} +2 -2
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isBuiltinNoloAgentRef,
|
|
19
19
|
t,
|
|
20
20
|
toolLabel
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KWBH4RAL.js";
|
|
22
22
|
import {
|
|
23
23
|
CliProviderQuotaError
|
|
24
24
|
} from "./chunk-CMKUBIGW.js";
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
readDbRecord,
|
|
30
30
|
resolveAgentRecordFromHybridStore
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CGDQDXKZ.js";
|
|
32
32
|
import {
|
|
33
33
|
normalizeAgentHandle
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VBSWHE5W.js";
|
|
35
35
|
import {
|
|
36
36
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
37
37
|
isLocalCliAgentKey
|
|
@@ -48,14 +48,14 @@ import {
|
|
|
48
48
|
formatStatusRunCard,
|
|
49
49
|
formatStopRunCard,
|
|
50
50
|
isAgentRunTerminalStatus
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MZHSAPZP.js";
|
|
52
52
|
import {
|
|
53
53
|
isGatewayHttpStatus
|
|
54
54
|
} from "./chunk-RQSOAMPJ.js";
|
|
55
55
|
import {
|
|
56
56
|
buildMemorySubjectsForAgent,
|
|
57
57
|
resolveAgentMemoryPolicy
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-2BVGERJ2.js";
|
|
59
59
|
import {
|
|
60
60
|
parseExternalSkillMarkdown,
|
|
61
61
|
parseSkillDocProtocol
|
|
@@ -64,14 +64,14 @@ import {
|
|
|
64
64
|
API_REPORTED_COST_MULTIPLIER,
|
|
65
65
|
normalizeUsage,
|
|
66
66
|
parseUiAskChoiceContent
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-FSUZIGIG.js";
|
|
68
68
|
import {
|
|
69
69
|
buildSkillDiscoveryContextBlock
|
|
70
70
|
} from "./chunk-AS3ZQ3O2.js";
|
|
71
71
|
import {
|
|
72
72
|
buildPlatformChatCompletionRequest,
|
|
73
73
|
parsePlatformChatCompletionData
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-5S4SWV5G.js";
|
|
75
75
|
import {
|
|
76
76
|
resolveAgentRuntimeConfigFromRecord
|
|
77
77
|
} from "./chunk-NCGFB7NN.js";
|
|
@@ -1871,7 +1871,7 @@ function formatFetchTreeLines(items) {
|
|
|
1871
1871
|
return { header, count, lines };
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
|
-
//
|
|
1874
|
+
// node_modules/diff/libesm/diff/base.js
|
|
1875
1875
|
var Diff = class {
|
|
1876
1876
|
diff(oldStr, newStr, options = {}) {
|
|
1877
1877
|
let callback;
|
|
@@ -2073,7 +2073,7 @@ var Diff = class {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
};
|
|
2075
2075
|
|
|
2076
|
-
//
|
|
2076
|
+
// node_modules/diff/libesm/diff/line.js
|
|
2077
2077
|
var LineDiff = class extends Diff {
|
|
2078
2078
|
constructor() {
|
|
2079
2079
|
super(...arguments);
|
|
@@ -3160,6 +3160,12 @@ ${options.agentName} > `);
|
|
|
3160
3160
|
spinner.show(activeLabel);
|
|
3161
3161
|
options.activityReporter?.(activeLabel);
|
|
3162
3162
|
}
|
|
3163
|
+
if (event.type === "tool-result" && options.onAgentRunStatus && (event.toolName === "startAgentRun" || event.toolName === "controlAgentRun")) {
|
|
3164
|
+
const snapshot = extractAgentRunStatusSnapshot(event);
|
|
3165
|
+
if (snapshot) {
|
|
3166
|
+
options.onAgentRunStatus(snapshot);
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3163
3169
|
};
|
|
3164
3170
|
return {
|
|
3165
3171
|
spinner,
|
|
@@ -3208,6 +3214,30 @@ ${options.agentName} > (no text response)
|
|
|
3208
3214
|
}
|
|
3209
3215
|
};
|
|
3210
3216
|
}
|
|
3217
|
+
function extractAgentRunStatusSnapshot(event) {
|
|
3218
|
+
if (event.type !== "tool-result") return null;
|
|
3219
|
+
const content = typeof event.content === "string" ? event.content.trim() : "";
|
|
3220
|
+
if (!content.startsWith("{")) return null;
|
|
3221
|
+
try {
|
|
3222
|
+
const parsed = JSON.parse(content);
|
|
3223
|
+
const runId = typeof parsed.runId === "string" ? parsed.runId : "";
|
|
3224
|
+
const status = typeof parsed.status === "string" ? parsed.status : "running";
|
|
3225
|
+
const agentName = typeof parsed.agentName === "string" ? parsed.agentName : typeof parsed.name === "string" ? parsed.name : void 0;
|
|
3226
|
+
const logTail = typeof parsed.logTail === "string" ? parsed.logTail : void 0;
|
|
3227
|
+
const logLines = Array.isArray(parsed.logLines) ? parsed.logLines : void 0;
|
|
3228
|
+
const errorMessage = typeof parsed.errorMessage === "string" ? parsed.errorMessage : void 0;
|
|
3229
|
+
return {
|
|
3230
|
+
runId,
|
|
3231
|
+
agentName,
|
|
3232
|
+
status,
|
|
3233
|
+
logTail,
|
|
3234
|
+
logLines,
|
|
3235
|
+
errorMessage
|
|
3236
|
+
};
|
|
3237
|
+
} catch {
|
|
3238
|
+
return null;
|
|
3239
|
+
}
|
|
3240
|
+
}
|
|
3211
3241
|
|
|
3212
3242
|
// packages/cli/client/agentRunStream.ts
|
|
3213
3243
|
async function readStreamingAgentRun(options, res, existingSpinner) {
|
|
@@ -3590,7 +3620,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
3590
3620
|
// packages/cli/client/agentRun.ts
|
|
3591
3621
|
import { ulid } from "ulid";
|
|
3592
3622
|
async function loadRunLocalAgentTurn() {
|
|
3593
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
3623
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-QDJCBXM2.js");
|
|
3594
3624
|
return runLocalAgentTurn;
|
|
3595
3625
|
}
|
|
3596
3626
|
async function resolveCurrentMachineId(options) {
|
|
@@ -4027,7 +4057,7 @@ async function runLocalAgentTurnForCli(options, settings) {
|
|
|
4027
4057
|
} : void 0;
|
|
4028
4058
|
const currentDialogId = options.continueDialogId ?? ulid();
|
|
4029
4059
|
const runChildTurn = async (input) => {
|
|
4030
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
4060
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-QDJCBXM2.js");
|
|
4031
4061
|
return runLocalAgentTurn(input);
|
|
4032
4062
|
};
|
|
4033
4063
|
const createFreshChildBaseAdapter = () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KWBH4RAL.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MZHSAPZP.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
10
|
} from "./chunk-TA7VKOHU.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
deleteServerSyncedCredential,
|
|
17
17
|
runLlm
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y5P3ZRGC.js";
|
|
19
19
|
import {
|
|
20
20
|
cleanupCliSessionForDialog
|
|
21
21
|
} from "./chunk-RWO5DGXI.js";
|
|
@@ -10484,7 +10484,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
10484
10484
|
runtimeOptions: args.runtimeOptions
|
|
10485
10485
|
});
|
|
10486
10486
|
if (agentKeyToUse) {
|
|
10487
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
10487
|
+
const { streamAgentChatTurn } = await import("./agentSlice-6JAJOU3X.js");
|
|
10488
10488
|
await dispatch(
|
|
10489
10489
|
streamAgentChatTurn({
|
|
10490
10490
|
agentKey: agentKeyToUse,
|
|
@@ -13195,7 +13195,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13195
13195
|
}
|
|
13196
13196
|
if (isCurrentDialog) {
|
|
13197
13197
|
await thunkApi.dispatch(resetMsgs());
|
|
13198
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13198
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-35LA3ZRG.js");
|
|
13199
13199
|
dispatch(clearPendingAttachments2());
|
|
13200
13200
|
clearWorkflow();
|
|
13201
13201
|
}
|
|
@@ -13204,15 +13204,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13204
13204
|
|
|
13205
13205
|
// packages/chat/dialog/dialogSlice.ts
|
|
13206
13206
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13207
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13207
|
+
const { createDialogAction } = await import("./createDialogAction-I5WUWFJ6.js");
|
|
13208
13208
|
return createDialogAction(args, thunkApi);
|
|
13209
13209
|
};
|
|
13210
13210
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13211
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13211
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-4NY4JLOK.js");
|
|
13212
13212
|
return createAgentAutomationAction(args, thunkApi);
|
|
13213
13213
|
};
|
|
13214
13214
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13215
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13215
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-AWXNPUQJ.js");
|
|
13216
13216
|
return updateDialogTitleAction(args, thunkApi);
|
|
13217
13217
|
};
|
|
13218
13218
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -13232,7 +13232,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
13232
13232
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13233
13233
|
};
|
|
13234
13234
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13235
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13235
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-FWTLQGOZ.js");
|
|
13236
13236
|
return handleSendMessageAction(args, thunkApi);
|
|
13237
13237
|
};
|
|
13238
13238
|
function clearDialogState() {
|
|
@@ -13245,7 +13245,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13245
13245
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13246
13246
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13247
13247
|
try {
|
|
13248
|
-
const { createDocState } = await import("./docStore-
|
|
13248
|
+
const { createDocState } = await import("./docStore-3CP2IO6M.js");
|
|
13249
13249
|
const pageKey = await createDocState(
|
|
13250
13250
|
{ slateData, title },
|
|
13251
13251
|
{ dispatch, getState }
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
buildLocalAgentLookupKeys,
|
|
13
13
|
normalizeAgentHandle,
|
|
14
14
|
shouldReadAgentKeyRemotely
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VBSWHE5W.js";
|
|
16
16
|
import {
|
|
17
17
|
LOCAL_CODEX_AGENT_ID,
|
|
18
18
|
LOCAL_CODEX_AGENT_KEY,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
inlineImageUrlsForCustomProvider,
|
|
30
30
|
prepareTools
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-C3BFP57W.js";
|
|
32
32
|
import {
|
|
33
33
|
getAntigravityUserAgent,
|
|
34
34
|
isAntigravityOAuthAgent,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
readXPostFunctionSchema,
|
|
51
51
|
readXhsProfileFunc,
|
|
52
52
|
readXhsProfileFunctionSchema
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-MZHSAPZP.js";
|
|
54
54
|
import {
|
|
55
55
|
createDrainExhaustedResponse,
|
|
56
56
|
isCoreDrainingBody,
|
|
@@ -62,13 +62,13 @@ import {
|
|
|
62
62
|
} from "./chunk-OWOHNGCN.js";
|
|
63
63
|
import {
|
|
64
64
|
prepareTokenUsageData
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-FSUZIGIG.js";
|
|
66
66
|
import {
|
|
67
67
|
BUILTIN_TITLE_LLM_CONFIG
|
|
68
68
|
} from "./chunk-V2J635L5.js";
|
|
69
69
|
import {
|
|
70
70
|
fetchServerSyncedCredential
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-Y5P3ZRGC.js";
|
|
72
72
|
import {
|
|
73
73
|
buildAgentRuntimeDialogWritePlan,
|
|
74
74
|
buildLocalWorkspaceOpenAiTools,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
parseSseDataLineJson,
|
|
82
82
|
readOpenAiCompatibleSseCompletion,
|
|
83
83
|
resolveOpenAiCompatibleProviderConfig
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-MG6BVV3T.js";
|
|
85
85
|
import {
|
|
86
86
|
buildPlatformChatCompletionRequest,
|
|
87
87
|
canUsePlatformChatProvider,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
resolveLegacyDeepSeekProxyChatFallback,
|
|
92
92
|
resolvePlatformChatProviderConfig,
|
|
93
93
|
shouldUsePlatformChatProvider
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-5S4SWV5G.js";
|
|
95
95
|
import {
|
|
96
96
|
resolveAgentRuntimeConfigFromRecord
|
|
97
97
|
} from "./chunk-NCGFB7NN.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyChatCompletionDelta,
|
|
3
|
-
createToolCallAccumulator,
|
|
4
|
-
finalizeAccumulatedToolCalls,
|
|
5
3
|
flushChatCompletionStream,
|
|
6
4
|
providerHttpFailure,
|
|
7
5
|
readSseFrames,
|
|
8
6
|
throwIfChatCompletionStreamFailed
|
|
9
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5S4SWV5G.js";
|
|
10
8
|
import {
|
|
11
9
|
parseToolArgumentsJson
|
|
12
10
|
} from "./chunk-TA7VKOHU.js";
|
|
13
11
|
import {
|
|
14
12
|
createThinkParserState,
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
createToolCallAccumulator,
|
|
14
|
+
extractThinkContent,
|
|
15
|
+
finalizeAccumulatedToolCalls
|
|
16
|
+
} from "./chunk-3WGLLTK4.js";
|
|
17
17
|
import {
|
|
18
18
|
requiresBareImageUrl,
|
|
19
19
|
toBareImageUrlMessages
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
} from "./chunk-VF4K2QE6.js";
|
|
35
35
|
import {
|
|
36
36
|
createDocState
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-TQYYGE6G.js";
|
|
38
38
|
import {
|
|
39
39
|
createDialogAction
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2BVGERJ2.js";
|
|
41
41
|
import {
|
|
42
42
|
buildSkillDocMarkdown,
|
|
43
43
|
normalizeSkillBudgetTier,
|
|
@@ -76,13 +76,13 @@ import {
|
|
|
76
76
|
updateContentCategory,
|
|
77
77
|
updateContentTitle,
|
|
78
78
|
updateStep
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-FSUZIGIG.js";
|
|
80
80
|
import {
|
|
81
81
|
createAgent,
|
|
82
82
|
runLlm,
|
|
83
83
|
streamAgentChatTurn,
|
|
84
84
|
updateAgent
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-Y5P3ZRGC.js";
|
|
86
86
|
import {
|
|
87
87
|
NOLO_WORKSPACE_TOOL_NAMES,
|
|
88
88
|
buildNoloSubjectRefQueryTarget,
|
|
@@ -14104,7 +14104,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
14104
14104
|
const deletedDialogIds = [];
|
|
14105
14105
|
const deletedDialogKeys = [];
|
|
14106
14106
|
const failures = [];
|
|
14107
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
14107
|
+
const { deleteDialog } = await import("./dialogSlice-35LA3ZRG.js");
|
|
14108
14108
|
for (const target of targets) {
|
|
14109
14109
|
try {
|
|
14110
14110
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -23241,7 +23241,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23241
23241
|
if (!executionInput) {
|
|
23242
23242
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
23243
23243
|
}
|
|
23244
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
23244
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-TPQYTLQZ.js");
|
|
23245
23245
|
const { executor } = findToolExecutor2(run.toolName);
|
|
23246
23246
|
toolRunStarted({
|
|
23247
23247
|
id: run.id,
|
|
@@ -23265,7 +23265,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23265
23265
|
const latestState = thunkApi.getState();
|
|
23266
23266
|
const userId = latestState.auth?.currentUser?.userId;
|
|
23267
23267
|
if (userId) {
|
|
23268
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
23268
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-WTFNKOVA.js");
|
|
23269
23269
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
23270
23270
|
}
|
|
23271
23271
|
}
|
|
@@ -25668,7 +25668,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25668
25668
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
25669
25669
|
};
|
|
25670
25670
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
25671
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
25671
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-3CP2IO6M.js");
|
|
25672
25672
|
if (getDocState().pageKey === id) {
|
|
25673
25673
|
applyExternalDocUpdate({
|
|
25674
25674
|
slateData: finalSlateData,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O4FOPRCP.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CGDQDXKZ.js";
|
|
8
8
|
import {
|
|
9
9
|
toSafeAgentSummary
|
|
10
10
|
} from "./chunk-OOIN7HSO.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FSUZIGIG.js";
|
|
4
4
|
import {
|
|
5
5
|
require_date_fns
|
|
6
6
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
async function createDocState(args, thunkApi) {
|
|
370
|
-
const { createPageAction } = await import("./createPageAction-
|
|
370
|
+
const { createPageAction } = await import("./createPageAction-HFTIQ7TW.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
|
|
|
300
300
|
const overrides = {};
|
|
301
301
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
302
302
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
303
|
-
const { _executeModel } = await import("./_executeModel-
|
|
303
|
+
const { _executeModel } = await import("./_executeModel-4F7VZR5U.js");
|
|
304
304
|
return _executeModel(
|
|
305
305
|
{
|
|
306
306
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
|
|
|
321
321
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
322
322
|
*/
|
|
323
323
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
324
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
324
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-FP2K33ZO.js");
|
|
325
325
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
326
326
|
{
|
|
327
327
|
agentKey: args.agentKey,
|
|
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
|
|
|
337
337
|
* 聊天轮次流式 Agent 调用
|
|
338
338
|
*/
|
|
339
339
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
340
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
340
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-HBAQQVNK.js");
|
|
341
341
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
342
342
|
}),
|
|
343
343
|
/**
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-C3BFP57W.js";
|
|
9
9
|
import {
|
|
10
10
|
performFetchRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5V524MHX.js";
|
|
12
12
|
import {
|
|
13
13
|
createSSEParser,
|
|
14
14
|
createToolRunId,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
toolRunSetPending,
|
|
20
20
|
toolRunStarted,
|
|
21
21
|
toolRunSucceeded
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MZHSAPZP.js";
|
|
23
23
|
import {
|
|
24
24
|
getPublicImageAgentMode
|
|
25
25
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -29,18 +29,19 @@ import {
|
|
|
29
29
|
messageStreaming,
|
|
30
30
|
selectCurrentSpaceId,
|
|
31
31
|
updateToolMessage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FSUZIGIG.js";
|
|
33
33
|
import {
|
|
34
34
|
streamAgentChatTurn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-Y5P3ZRGC.js";
|
|
36
36
|
import {
|
|
37
37
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
38
38
|
} from "./chunk-TA7VKOHU.js";
|
|
39
39
|
import {
|
|
40
|
+
accumulateToolCallDelta,
|
|
40
41
|
createThinkParserState,
|
|
41
42
|
flushThinkParser,
|
|
42
43
|
processThinkChunk
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3WGLLTK4.js";
|
|
44
45
|
import {
|
|
45
46
|
getModelInfo
|
|
46
47
|
} from "./chunk-JFANOO7I.js";
|
|
@@ -804,72 +805,22 @@ async function parseApiError(response) {
|
|
|
804
805
|
|
|
805
806
|
// packages/ai/chat/accumulateToolCallChunks.ts
|
|
806
807
|
function accumulateToolCallChunks(currentAccumulatedCalls, toolCallChunks) {
|
|
807
|
-
const
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
if (fn.name) cur.function.name += fn.name;
|
|
824
|
-
if (fn.arguments) {
|
|
825
|
-
if (typeof fn.arguments === "string") {
|
|
826
|
-
const currentArgs = typeof cur.function.arguments === "string" ? cur.function.arguments : "";
|
|
827
|
-
cur.function.arguments = currentArgs + fn.arguments;
|
|
828
|
-
} else {
|
|
829
|
-
cur.function.arguments = fn.arguments;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
continue;
|
|
834
|
-
}
|
|
835
|
-
if (fn?.name || fn?.arguments) {
|
|
836
|
-
let targetIndex = -1;
|
|
837
|
-
if (id) {
|
|
838
|
-
targetIndex = out.findIndex((c) => c.id === id);
|
|
839
|
-
} else if (out.length > 0) {
|
|
840
|
-
targetIndex = out.length - 1;
|
|
841
|
-
}
|
|
842
|
-
if (targetIndex >= 0) {
|
|
843
|
-
const target = out[targetIndex];
|
|
844
|
-
if (fn.name) target.function.name += fn.name;
|
|
845
|
-
if (fn.arguments) {
|
|
846
|
-
if (typeof fn.arguments === "string") {
|
|
847
|
-
const currentArgs = typeof target.function.arguments === "string" ? target.function.arguments : "";
|
|
848
|
-
target.function.arguments = currentArgs + fn.arguments;
|
|
849
|
-
} else {
|
|
850
|
-
target.function.arguments = fn.arguments;
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
} else if (id) {
|
|
854
|
-
const newCall = {
|
|
855
|
-
id,
|
|
856
|
-
type: type || "function",
|
|
857
|
-
function: {
|
|
858
|
-
name: fn.name || "",
|
|
859
|
-
arguments: fn.arguments || (!fn.arguments && typeof fn.arguments === "object" ? {} : "")
|
|
860
|
-
// Initial empty value based on type? Or just default string
|
|
861
|
-
}
|
|
862
|
-
};
|
|
863
|
-
if (fn.arguments) {
|
|
864
|
-
newCall.function.arguments = fn.arguments;
|
|
865
|
-
} else {
|
|
866
|
-
newCall.function.arguments = "";
|
|
867
|
-
}
|
|
868
|
-
out.push(newCall);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
return out;
|
|
808
|
+
const accumulator = {
|
|
809
|
+
slots: currentAccumulatedCalls.map(
|
|
810
|
+
(call, position) => ({
|
|
811
|
+
...call,
|
|
812
|
+
// The accumulator appends into function.arguments, so the nested
|
|
813
|
+
// object has to be copied too or the caller's snapshot moves.
|
|
814
|
+
function: { ...call.function },
|
|
815
|
+
wireIndex: call.index ?? position
|
|
816
|
+
})
|
|
817
|
+
)
|
|
818
|
+
};
|
|
819
|
+
accumulateToolCallDelta(accumulator, toolCallChunks);
|
|
820
|
+
return accumulator.slots.map(({ wireIndex, ...call }) => ({
|
|
821
|
+
...call,
|
|
822
|
+
index: wireIndex
|
|
823
|
+
}));
|
|
873
824
|
}
|
|
874
825
|
|
|
875
826
|
// packages/ai/chat/toolCallArgumentGuard.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FSUZIGIG.js";
|
|
4
4
|
import "./chunk-V2J635L5.js";
|
|
5
5
|
import "./chunk-MRC4Q34M.js";
|
|
6
6
|
import "./chunk-MTU75CZ2.js";
|
|
7
7
|
import "./chunk-CWMSB67P.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-Y5P3ZRGC.js";
|
|
9
9
|
import "./chunk-RWO5DGXI.js";
|
|
10
10
|
import "./chunk-Z4NR32XR.js";
|
|
11
11
|
import "./chunk-M76ECQRD.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDialogAction,
|
|
3
3
|
isLocalOwnerDialogAgents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2BVGERJ2.js";
|
|
5
5
|
import "./chunk-VC6OZXO5.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-FSUZIGIG.js";
|
|
7
7
|
import "./chunk-V2J635L5.js";
|
|
8
8
|
import "./chunk-MRC4Q34M.js";
|
|
9
9
|
import "./chunk-MTU75CZ2.js";
|
|
10
10
|
import "./chunk-CWMSB67P.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-Y5P3ZRGC.js";
|
|
12
12
|
import "./chunk-RWO5DGXI.js";
|
|
13
13
|
import "./chunk-Z4NR32XR.js";
|
|
14
14
|
import "./chunk-M76ECQRD.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
addContentToSpace,
|
|
19
19
|
client_default,
|
|
20
20
|
selectCurrentSpaceId
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FSUZIGIG.js";
|
|
22
22
|
import "./chunk-V2J635L5.js";
|
|
23
23
|
import "./chunk-MRC4Q34M.js";
|
|
24
24
|
import "./chunk-MTU75CZ2.js";
|
|
25
25
|
import "./chunk-CWMSB67P.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-Y5P3ZRGC.js";
|
|
27
27
|
import "./chunk-RWO5DGXI.js";
|
|
28
28
|
import "./chunk-Z4NR32XR.js";
|
|
29
29
|
import "./chunk-M76ECQRD.js";
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
runDialogReadCommand,
|
|
9
9
|
runDialogStatusCommand,
|
|
10
10
|
sortDialogs
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OPM2DE2J.js";
|
|
12
12
|
import "./chunk-ID4G2MAR.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-O4FOPRCP.js";
|
|
14
|
+
import "./chunk-CGDQDXKZ.js";
|
|
15
|
+
import "./chunk-VBSWHE5W.js";
|
|
16
16
|
import "./chunk-VHBWHNVT.js";
|
|
17
17
|
import "./chunk-KQHGZWSV.js";
|
|
18
18
|
import "./chunk-MTU75CZ2.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-MG6BVV3T.js";
|
|
20
20
|
import "./chunk-ZNFJWEN4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-5S4SWV5G.js";
|
|
22
22
|
import "./chunk-NCGFB7NN.js";
|
|
23
23
|
import "./chunk-TA7VKOHU.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-3WGLLTK4.js";
|
|
25
25
|
import "./chunk-LUKQQJFL.js";
|
|
26
26
|
import "./chunk-TYPHUVK5.js";
|
|
27
27
|
import "./chunk-B4KT7RN2.js";
|