nolo-cli 0.52.0-alpha.1 → 0.54.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-4BPV4B2U.js → _executeModel-IVEOJ7L6.js} +20 -20
- package/{agentDeleteCommand-KZSETRE3.js → agentDeleteCommand-D7AFLKQN.js} +10 -10
- package/{agentEmailCommands-3AGHYFVG.js → agentEmailCommands-MXFZGF54.js} +24 -24
- package/{agentListCommands-KVLURCS7.js → agentListCommands-MP732Q23.js} +12 -12
- package/{agentMachineCommands-KUB2M4KB.js → agentMachineCommands-352JFJX4.js} +11 -11
- package/{agentRecordCommands-XDMCGNPQ.js → agentRecordCommands-G6EFHU3G.js} +23 -23
- package/{agentRunCommand-MXZGNSA3.js → agentRunCommand-UUWJMH7J.js} +23 -23
- package/{agentRuntimeLocal-SIQYQGSK.js → agentRuntimeLocal-KWBPJ53H.js} +10 -10
- package/{agentSlice-VD3BAJAU.js → agentSlice-V742SNKC.js} +1 -1
- package/{appDeleteCommands-LSIIQFYN.js → appDeleteCommands-GV4TF52A.js} +10 -10
- package/{appDeployCommands-VYGKN7HU.js → appDeployCommands-EZMUPNSW.js} +10 -10
- package/{appDeployStatusCommands-ODFHFUR7.js → appDeployStatusCommands-AAGELKAN.js} +10 -10
- package/{appGetCommands-DPQY67UZ.js → appGetCommands-W37KDAON.js} +10 -10
- package/{appListCommands-EFXENXWX.js → appListCommands-IFDWBBNV.js} +10 -10
- package/{authCommand-WLWOEVYI.js → authCommand-5HM57KPL.js} +7 -7
- package/{chatQueueReduxAdapter-N5432EP2.js → chatQueueReduxAdapter-ZXXP6E4O.js} +8 -8
- package/{chunk-VKSBVRGP.js → chunk-2T6XO4PK.js} +1 -1
- package/{chunk-3YVCM5PE.js → chunk-45E65JER.js} +1 -1
- package/{chunk-4YAMAMNA.js → chunk-5SXS7T5Q.js} +11 -10
- package/{chunk-JBL24PK6.js → chunk-5Y5G76BJ.js} +2 -2
- package/{chunk-BO3YFOZR.js → chunk-7UFH6THF.js} +1 -1
- package/{chunk-6L6UPZNH.js → chunk-ALMVQQPG.js} +8 -8
- package/{chunk-MCX2LX27.js → chunk-BKPUPZ6W.js} +12 -12
- package/{chunk-4ZL2KBI7.js → chunk-CULR4XB4.js} +1 -1
- package/{chunk-HMMOAG2I.js → chunk-DMCFF4KE.js} +7 -4
- package/{chunk-AV4Z57LV.js → chunk-ET7BXWAW.js} +2 -2
- package/{chunk-W3RZLXMA.js → chunk-FZMM2KZC.js} +2 -2
- package/{chunk-C2WF2OY7.js → chunk-GBXR3CSM.js} +1 -1
- package/{chunk-S3HB4CQY.js → chunk-J4Z6UI4C.js} +106 -18
- package/{chunk-VFN256RI.js → chunk-J7KVJAUQ.js} +26 -0
- package/{chunk-5JXRVJAC.js → chunk-K7CNV7GI.js} +3 -3
- package/{chunk-EVBFYPDC.js → chunk-M2CGG6VJ.js} +1 -1
- package/{chunk-IERBSHMR.js → chunk-MC66ASS6.js} +3 -3
- package/{chunk-Z2OCOUGR.js → chunk-OU7NGN5Y.js} +1 -1
- package/{chunk-QDNFRWAX.js → chunk-PEMGYJNS.js} +2 -2
- package/{chunk-F22JQTSX.js → chunk-PTHLNXGY.js} +2 -2
- package/{chunk-LQXYIEDC.js → chunk-R63FNYSI.js} +87 -45
- package/{chunk-5UVEQ7GT.js → chunk-RBJD33HM.js} +3 -3
- package/{chunk-7M72YPM2.js → chunk-RVHPY5PC.js} +2 -2
- package/{chunk-72COHDZR.js → chunk-SUFDWBLV.js} +13 -13
- package/{chunk-RPO6WAZV.js → chunk-VM7K5EJL.js} +2 -2
- package/{chunk-W3GYW6NZ.js → chunk-W6N3GLUU.js} +80 -25
- package/{chunk-Y7TGWSUN.js → chunk-WJV3G7BM.js} +1 -1
- package/{chunk-XB7ACJFH.js → chunk-WUMYQ2FE.js} +2 -2
- package/{chunk-OZ4JNDIL.js → chunk-XXZULHJ7.js} +1 -1
- package/{chunk-Z7A54NFZ.js → chunk-YFHUQLJF.js} +1 -1
- package/{chunk-AZ6DT2UD.js → chunk-ZMV5PCRS.js} +1 -1
- package/{createAgentAutomationAction-IHKV53QC.js → createAgentAutomationAction-LE3ZYDT6.js} +9 -9
- package/{createDialogAction-4ARDCKPP.js → createDialogAction-2C6SR62D.js} +10 -10
- package/{createPageAction-GQOCPICU.js → createPageAction-X4C7K3OD.js} +9 -9
- package/{dialogCommands-YOTCP26N.js → dialogCommands-CP2U44A7.js} +10 -10
- package/{dialogSlice-NX26W623.js → dialogSlice-2SH5636X.js} +8 -8
- package/{docCreateCommands-JVAMHES4.js → docCreateCommands-A2KIJSF7.js} +10 -10
- package/{docDeleteCommands-LW5DWICT.js → docDeleteCommands-NZ7XO4Z4.js} +10 -10
- package/{docReadCommands-AQOZS3I5.js → docReadCommands-VWVK4ZAR.js} +10 -10
- package/{docStore-YAE7GYHZ.js → docStore-J6GQYKHS.js} +10 -10
- package/{docUpdateCommands-FFGGX5RG.js → docUpdateCommands-YTUEC6PN.js} +10 -10
- package/{getPricing-JNOCWYDH.js → getPricing-I53UFOPH.js} +3 -3
- package/{handleSendMessageAction-7YKH4UBI.js → handleSendMessageAction-MD325XZS.js} +8 -8
- package/index.js +47 -47
- package/{machineCommands-JZVC7JEX.js → machineCommands-TCNZV2DC.js} +23 -23
- package/{machineWsRunDispatch-GUYB43AQ.js → machineWsRunDispatch-QSX5IWPH.js} +23 -23
- package/{models-N4NXQ44D.js → models-E2CYP4IB.js} +2 -2
- package/package.json +1 -1
- package/{readlineWorkspace-76MBPA5B.js → readlineWorkspace-N3RGX7EK.js} +67 -31
- package/{runAgentClientLoop-6NCW5AS6.js → runAgentClientLoop-R3NTOERA.js} +18 -18
- package/{spaceCommands-7MJVL4XR.js → spaceCommands-RC7XMYQ7.js} +10 -10
- package/{spaceSlice-JVVDCGA3.js → spaceSlice-KBVKKO3M.js} +9 -9
- package/{streamAgentChatTurn-UAKCHWFN.js → streamAgentChatTurn-WLWEBWSF.js} +21 -21
- package/{tools-ROUITGAR.js → tools-LSLDSUWU.js} +13 -13
- package/{tuiSummaryLlmCaller-U4EGD2SX.js → tuiSummaryLlmCaller-TPBL4BV2.js} +6 -6
- package/{updateDialogTitleAction-R4M6ZXCX.js → updateDialogTitleAction-4HJEARM7.js} +9 -9
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
parseAgentRunEvent,
|
|
20
20
|
t,
|
|
21
21
|
toolLabel
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-W6N3GLUU.js";
|
|
23
23
|
import {
|
|
24
24
|
getReadableCliDb
|
|
25
25
|
} from "./chunk-43CXXVJD.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
} from "./chunk-LTRXGFMS.js";
|
|
53
53
|
import {
|
|
54
54
|
formatAgentListCard
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-SUFDWBLV.js";
|
|
56
56
|
import {
|
|
57
57
|
isTransientFetchError
|
|
58
58
|
} from "./chunk-5XTOKQLW.js";
|
|
@@ -74,12 +74,12 @@ import {
|
|
|
74
74
|
chooseMemoryOwners,
|
|
75
75
|
loadMemoryCandidatesFromDb,
|
|
76
76
|
resolveAgentMemoryPolicy
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-MC66ASS6.js";
|
|
78
78
|
import {
|
|
79
79
|
API_REPORTED_COST_MULTIPLIER,
|
|
80
80
|
normalizeUsage,
|
|
81
81
|
parseUiAskChoiceContent
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-BKPUPZ6W.js";
|
|
83
83
|
import {
|
|
84
84
|
getDefaultCliLocalRuntimeDb
|
|
85
85
|
} from "./chunk-IA3A5373.js";
|
|
@@ -95,10 +95,10 @@ import {
|
|
|
95
95
|
LOCAL_TURN_ABORTED_CODE,
|
|
96
96
|
readActionGate,
|
|
97
97
|
readCommandActionGatePayload
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-J4Z6UI4C.js";
|
|
99
99
|
import {
|
|
100
100
|
resolveAgentRuntimeConfigFromRecord
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-2T6XO4PK.js";
|
|
102
102
|
import {
|
|
103
103
|
createThinkParserState,
|
|
104
104
|
flushThinkParser,
|
|
@@ -107,20 +107,20 @@ import {
|
|
|
107
107
|
import {
|
|
108
108
|
resolveClientVersion,
|
|
109
109
|
resolvePlatformAuthToken
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-5Y5G76BJ.js";
|
|
111
111
|
import {
|
|
112
112
|
isQuotaExhaustedError
|
|
113
113
|
} from "./chunk-IWUMSAQF.js";
|
|
114
114
|
import {
|
|
115
115
|
DEFAULT_CONTEXT_WINDOW,
|
|
116
116
|
getModelContextWindow
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-PTHLNXGY.js";
|
|
118
118
|
import {
|
|
119
119
|
clipCompactText
|
|
120
120
|
} from "./chunk-HR5XDXYM.js";
|
|
121
121
|
import {
|
|
122
122
|
findModelConfig
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-7UFH6THF.js";
|
|
124
124
|
import {
|
|
125
125
|
compactWhitespace
|
|
126
126
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
CLIENT_VERSION_TOO_OLD_CODE,
|
|
146
146
|
NOLO_CLIENT_VERSION_HEADER,
|
|
147
147
|
buildClientVersionUpgradeMessage
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-J7KVJAUQ.js";
|
|
149
149
|
import {
|
|
150
150
|
parsePositiveFiniteNumberOrFallback
|
|
151
151
|
} from "./chunk-Y5GCAMGP.js";
|
|
@@ -3999,36 +3999,45 @@ function formatToolTraceLine(text, colorEnabled, accent = "none") {
|
|
|
3999
3999
|
return `${dimCliText(text, true)}
|
|
4000
4000
|
`;
|
|
4001
4001
|
}
|
|
4002
|
+
var cleanUserText = (value) => stripAnsi2(value).replace(/[\r\n]+/g, " ").replace(/\s+/g, " ").trim();
|
|
4002
4003
|
function renderRunCard(snapshot, opts) {
|
|
4003
4004
|
const labels = agentRunCardLabels();
|
|
4004
4005
|
const timing = { startedAt: snapshot.startedAt, finishedAt: snapshot.finishedAt };
|
|
4005
|
-
const
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
});
|
|
4018
|
-
}
|
|
4019
|
-
return formatStatusRunCard(name, snapshot.status, {
|
|
4006
|
+
const safe = opts?.safe === true;
|
|
4007
|
+
const name = safe ? cleanUserText(snapshot.agentName ?? "agent") : snapshot.agentName ?? "agent";
|
|
4008
|
+
const source = safe ? {
|
|
4009
|
+
...snapshot,
|
|
4010
|
+
agentName: snapshot.agentName ? cleanUserText(snapshot.agentName) : snapshot.agentName,
|
|
4011
|
+
taskPreview: snapshot.taskPreview ? cleanUserText(snapshot.taskPreview) : snapshot.taskPreview,
|
|
4012
|
+
lastAssistantText: snapshot.lastAssistantText ? cleanUserText(snapshot.lastAssistantText) : snapshot.lastAssistantText,
|
|
4013
|
+
lastToolNames: snapshot.lastToolNames?.map(cleanUserText)
|
|
4014
|
+
} : snapshot;
|
|
4015
|
+
const hadError = safe && Boolean(source.errorMessage?.trim());
|
|
4016
|
+
const errorFields = safe ? { errorMessage: void 0, logLines: void 0 } : { errorMessage: source.errorMessage, logLines: source.logLines };
|
|
4017
|
+
const body = isAgentRunTerminalStatus(snapshot.status) ? formatFinishedRunCard(name, snapshot.status, {
|
|
4020
4018
|
runId: snapshot.runId,
|
|
4021
|
-
toolCallCount:
|
|
4022
|
-
lastToolNames:
|
|
4023
|
-
lastAssistantText:
|
|
4024
|
-
|
|
4025
|
-
|
|
4019
|
+
toolCallCount: source.toolCallCount,
|
|
4020
|
+
lastToolNames: source.lastToolNames,
|
|
4021
|
+
lastAssistantText: source.lastAssistantText,
|
|
4022
|
+
...errorFields,
|
|
4023
|
+
timing,
|
|
4024
|
+
...opts?.includeLogTail !== void 0 ? { includeLogTail: opts.includeLogTail } : {},
|
|
4025
|
+
labels
|
|
4026
|
+
}) : formatStatusRunCard(name, snapshot.status, {
|
|
4027
|
+
runId: snapshot.runId,
|
|
4028
|
+
toolCallCount: source.toolCallCount,
|
|
4029
|
+
lastToolNames: source.lastToolNames,
|
|
4030
|
+
lastAssistantText: source.lastAssistantText,
|
|
4031
|
+
...errorFields,
|
|
4026
4032
|
timing,
|
|
4027
4033
|
...opts?.includeLogTail !== void 0 ? { includeLogTail: opts.includeLogTail } : {},
|
|
4028
4034
|
labels
|
|
4029
4035
|
});
|
|
4036
|
+
return hadError ? `${body}
|
|
4037
|
+
error ${t("runDiagnosticsHidden")}` : body;
|
|
4030
4038
|
}
|
|
4031
|
-
function recoverOrchestrationCard(event, toolName) {
|
|
4039
|
+
function recoverOrchestrationCard(event, toolName, opts) {
|
|
4040
|
+
const safe = opts?.safe === true;
|
|
4032
4041
|
const content = typeof event.content === "string" ? event.content : "";
|
|
4033
4042
|
const trimmed = content.trim();
|
|
4034
4043
|
if (!trimmed.startsWith("{") && !trimmed.startsWith("[")) return null;
|
|
@@ -4059,27 +4068,30 @@ function recoverOrchestrationCard(event, toolName) {
|
|
|
4059
4068
|
if (!parsedEvent) return null;
|
|
4060
4069
|
const { kind, snapshot } = parsedEvent;
|
|
4061
4070
|
if (kind === "start") {
|
|
4062
|
-
|
|
4063
|
-
|
|
4071
|
+
const name = safe ? cleanUserText(snapshot.agentName ?? "agent") : snapshot.agentName ?? "agent";
|
|
4072
|
+
const task = snapshot.taskPreview ? safe ? cleanUserText(snapshot.taskPreview) : snapshot.taskPreview : snapshot.taskPreview;
|
|
4073
|
+
return formatStartRunCard(name, snapshot.status, {
|
|
4074
|
+
task,
|
|
4064
4075
|
runId: snapshot.runId,
|
|
4065
4076
|
labels
|
|
4066
4077
|
});
|
|
4067
4078
|
}
|
|
4068
4079
|
if (kind === "gone") return formatNotFoundRunCard(labels);
|
|
4069
4080
|
if (kind === "stop") return formatStopRunCard(snapshot.status, labels);
|
|
4070
|
-
return renderRunCard(snapshot);
|
|
4081
|
+
return renderRunCard(snapshot, opts);
|
|
4071
4082
|
}
|
|
4072
4083
|
function parseControlAgentRunStatusEvent(event) {
|
|
4073
4084
|
const parsed = parseAgentRunEvent(event);
|
|
4074
4085
|
return parsed?.kind === "status" ? parsed.snapshot : null;
|
|
4075
4086
|
}
|
|
4076
|
-
function formatOrchestrationCardBlock(event, toolName, colorEnabled) {
|
|
4087
|
+
function formatOrchestrationCardBlock(event, toolName, colorEnabled, opts) {
|
|
4088
|
+
const safe = opts?.safe === true;
|
|
4077
4089
|
const rawLabel = toolLabel(toolName);
|
|
4078
4090
|
const bakedCard = typeof event.metadata?.displayData === "string" && event.metadata.displayData.trim() ? event.metadata.displayData : "";
|
|
4079
|
-
const rawDataStr = recoverOrchestrationCard(event, toolName) || bakedCard || (typeof event.content === "string" ? event.content : "");
|
|
4091
|
+
const rawDataStr = recoverOrchestrationCard(event, toolName, { safe }) || bakedCard || (typeof event.content === "string" ? event.content : "");
|
|
4080
4092
|
const failed = event.type === "tool-error" || isFailedToolResult(event) || Boolean(event.metadata?.failed) || /^Error:/i.test(rawDataStr.trim());
|
|
4081
4093
|
if (failed) {
|
|
4082
|
-
const firstLine = rawDataStr.trim().split("\n")[0] || event.summary || event.message || t("toolFailed");
|
|
4094
|
+
const firstLine = safe ? t("toolFailed") : rawDataStr.trim().split("\n")[0] || event.summary || event.message || t("toolFailed");
|
|
4083
4095
|
const message = clip(firstLine, 96);
|
|
4084
4096
|
if (!colorEnabled) {
|
|
4085
4097
|
return `\u2717 ${rawLabel} ${message}
|
|
@@ -4092,11 +4104,12 @@ function formatOrchestrationCardBlock(event, toolName, colorEnabled) {
|
|
|
4092
4104
|
`;
|
|
4093
4105
|
}
|
|
4094
4106
|
const displayData = rawDataStr.trim();
|
|
4095
|
-
const lines = displayData ? displayData.split("\n")
|
|
4107
|
+
const lines = displayData ? displayData.split("\n") : [];
|
|
4108
|
+
const projected = safe ? sanitizeRunCardForNormal(lines) : lines;
|
|
4096
4109
|
if (!colorEnabled) {
|
|
4097
4110
|
let out2 = `\u25CF ${rawLabel}
|
|
4098
4111
|
`;
|
|
4099
|
-
for (const line of
|
|
4112
|
+
for (const line of projected) {
|
|
4100
4113
|
out2 += ` ${line}
|
|
4101
4114
|
`;
|
|
4102
4115
|
}
|
|
@@ -4106,12 +4119,40 @@ function formatOrchestrationCardBlock(event, toolName, colorEnabled) {
|
|
|
4106
4119
|
const labelPart = themeText(rawLabel, "muted", true);
|
|
4107
4120
|
let out = `${bullet} ${labelPart}
|
|
4108
4121
|
`;
|
|
4109
|
-
for (const line of
|
|
4122
|
+
for (const line of projected) {
|
|
4110
4123
|
out += ` ${themeText(line, "muted", true)}
|
|
4111
4124
|
`;
|
|
4112
4125
|
}
|
|
4113
4126
|
return out;
|
|
4114
4127
|
}
|
|
4128
|
+
function sanitizeRunCardForNormal(lines) {
|
|
4129
|
+
const out = [];
|
|
4130
|
+
let errorIndent = null;
|
|
4131
|
+
for (const line of lines) {
|
|
4132
|
+
if (/^(log tail:?|日志尾部:?)$/i.test(line.trim())) {
|
|
4133
|
+
if (out.length > 0 && out[out.length - 1].trim() === "") out.pop();
|
|
4134
|
+
break;
|
|
4135
|
+
}
|
|
4136
|
+
if (/^\s*error\b/i.test(line)) {
|
|
4137
|
+
out.push(` error ${t("runDiagnosticsHidden")}`);
|
|
4138
|
+
errorIndent = line.length - line.trimStart().length;
|
|
4139
|
+
continue;
|
|
4140
|
+
}
|
|
4141
|
+
if (errorIndent !== null) {
|
|
4142
|
+
if (line.trim() === "") {
|
|
4143
|
+
errorIndent = null;
|
|
4144
|
+
out.push(line);
|
|
4145
|
+
continue;
|
|
4146
|
+
}
|
|
4147
|
+
const indent = line.length - line.trimStart().length;
|
|
4148
|
+
const isLabelRow = /^\s{2}[a-z][a-zA-Z0-9]*\s{2,}/.test(line);
|
|
4149
|
+
if (indent > errorIndent && !isLabelRow) continue;
|
|
4150
|
+
errorIndent = null;
|
|
4151
|
+
}
|
|
4152
|
+
out.push(line);
|
|
4153
|
+
}
|
|
4154
|
+
return out;
|
|
4155
|
+
}
|
|
4115
4156
|
function mergeRunSnapshot(previous, next) {
|
|
4116
4157
|
return {
|
|
4117
4158
|
...previous,
|
|
@@ -4176,10 +4217,10 @@ function formatNormalToolLine(event, pending, colorEnabled) {
|
|
|
4176
4217
|
if (block) return block;
|
|
4177
4218
|
}
|
|
4178
4219
|
if (event.type === "tool-result" && (toolName === "listAgents" || toolName === "startAgentRun" || toolName === "controlAgentRun")) {
|
|
4179
|
-
return formatOrchestrationCardBlock(event, toolName, colorEnabled);
|
|
4220
|
+
return formatOrchestrationCardBlock(event, toolName, colorEnabled, { safe: true });
|
|
4180
4221
|
}
|
|
4181
4222
|
if (event.type === "tool-result" && toolName === "loadSkill") {
|
|
4182
|
-
return formatLoadSkillBlock(event, colorEnabled) ?? "";
|
|
4223
|
+
return formatLoadSkillBlock(event, colorEnabled, { safe: true }) ?? "";
|
|
4183
4224
|
}
|
|
4184
4225
|
const label = toolLabel(toolName);
|
|
4185
4226
|
if (readActionGate(event.metadata?.actionGate)) {
|
|
@@ -4382,14 +4423,14 @@ function formatTodoListForCli(event, colorEnabled) {
|
|
|
4382
4423
|
const text = [`\u2611 Todo (${todos.length})`, ...lines].join("\n") + "\n";
|
|
4383
4424
|
return colorEnabled ? themeText(text, "chrome") : text;
|
|
4384
4425
|
}
|
|
4385
|
-
function formatLoadSkillBlock(event, colorEnabled) {
|
|
4426
|
+
function formatLoadSkillBlock(event, colorEnabled, opts) {
|
|
4386
4427
|
if (event.type !== "tool-result" || event.toolName !== "loadSkill") return null;
|
|
4387
4428
|
const skillName = resolveLoadSkillName(event);
|
|
4388
4429
|
const content = typeof event.content === "string" ? event.content : "";
|
|
4389
4430
|
const failed = /^Skill\s+"[^"]*"\s+not found/.test(content) || isFailedToolResult(event);
|
|
4390
4431
|
const labelText = t("usedSkillLabel");
|
|
4391
4432
|
if (failed) {
|
|
4392
|
-
const message = clip(content.split("\n")[0] || t("toolFailed"), 96);
|
|
4433
|
+
const message = opts?.safe === true ? t("toolFailed") : clip(content.split("\n")[0] || t("toolFailed"), 96);
|
|
4393
4434
|
return formatToolTraceLine(`\u25B8 ${labelText} (${skillName}) \u2717 ${message}`, colorEnabled, "error");
|
|
4394
4435
|
}
|
|
4395
4436
|
if (!colorEnabled) {
|
|
@@ -5512,7 +5553,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
5512
5553
|
// packages/cli/client/agentRun.ts
|
|
5513
5554
|
import { ulid } from "ulid";
|
|
5514
5555
|
async function loadRunLocalAgentTurn() {
|
|
5515
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
5556
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-KWBPJ53H.js");
|
|
5516
5557
|
return runLocalAgentTurn;
|
|
5517
5558
|
}
|
|
5518
5559
|
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();
|
|
@@ -6137,6 +6178,7 @@ async function runLocalAgentTurnForCli(options, settings) {
|
|
|
6137
6178
|
contextReferenceResolver: (reference) => canResolveCollapsedPasteReference(options.pastedTextStore, reference)
|
|
6138
6179
|
} : {},
|
|
6139
6180
|
continueDialogId: currentDialogId,
|
|
6181
|
+
fileWriteSessionId: currentDialogId,
|
|
6140
6182
|
spaceId: options.spaceId,
|
|
6141
6183
|
category: options.category,
|
|
6142
6184
|
inheritedFromDialogKey: options.inheritedFromDialogKey,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W6N3GLUU.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SUFDWBLV.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J4Z6UI4C.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-NQ4N4IGO.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deleteDialog,
|
|
3
3
|
toast
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BKPUPZ6W.js";
|
|
5
5
|
import {
|
|
6
6
|
deleteServerSyncedCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K7CNV7GI.js";
|
|
8
8
|
import {
|
|
9
9
|
require_date_fns
|
|
10
10
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
toCompactAgentSummary,
|
|
18
18
|
toSafeAgentSummary,
|
|
19
19
|
toUnavailableAgentSummary
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YFHUQLJF.js";
|
|
21
21
|
import {
|
|
22
22
|
getUserDataItemTimestamp,
|
|
23
23
|
mergeAndDedupUserData
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "./chunk-INZZJSQF.js";
|
|
44
44
|
import {
|
|
45
45
|
createDocState
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-PEMGYJNS.js";
|
|
47
47
|
import {
|
|
48
48
|
ToolApiError,
|
|
49
49
|
buildToolRequestHeaders,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
buildBuiltinObjectSkillDbKey,
|
|
71
71
|
buildBuiltinObjectSkillPageContent,
|
|
72
72
|
createDialogAction
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-MC66ASS6.js";
|
|
74
74
|
import {
|
|
75
75
|
addCategory,
|
|
76
76
|
addContentToSpace,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
loadTableRows,
|
|
91
91
|
updateContentCategory,
|
|
92
92
|
updateContentTitle
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-RVHPY5PC.js";
|
|
94
94
|
import {
|
|
95
95
|
normalizeAppRouteId,
|
|
96
96
|
resolveDialogRuntimeAgentKey,
|
|
@@ -100,13 +100,13 @@ import {
|
|
|
100
100
|
selectMsgById,
|
|
101
101
|
uiAskChoiceFunc,
|
|
102
102
|
uiAskChoiceFunctionSchema
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-BKPUPZ6W.js";
|
|
104
104
|
import {
|
|
105
105
|
createAgent,
|
|
106
106
|
runLlm,
|
|
107
107
|
streamAgentChatTurn,
|
|
108
108
|
updateAgent
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-K7CNV7GI.js";
|
|
110
110
|
import {
|
|
111
111
|
getActiveDialogKey,
|
|
112
112
|
require_react,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
} from "./chunk-HR5XDXYM.js";
|
|
155
155
|
import {
|
|
156
156
|
DEFAULT_MODEL
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-7UFH6THF.js";
|
|
158
158
|
import {
|
|
159
159
|
compactWhitespace
|
|
160
160
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -11830,7 +11830,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
|
|
|
11830
11830
|
workspace: { mode: "lease" }
|
|
11831
11831
|
};
|
|
11832
11832
|
var findModelConfig = async (modelName, provider) => {
|
|
11833
|
-
const { ALL_MODELS } = await import("./models-
|
|
11833
|
+
const { ALL_MODELS } = await import("./models-E2CYP4IB.js");
|
|
11834
11834
|
const name = toTrimmedString(modelName);
|
|
11835
11835
|
const prov = toTrimmedString(provider ?? "");
|
|
11836
11836
|
if (!name) return null;
|
|
@@ -12071,7 +12071,7 @@ var buildFormDataFromArgs = async (args) => {
|
|
|
12071
12071
|
const trimmedModel = toTrimmedString(model);
|
|
12072
12072
|
const trimmedProvider = toTrimmedString(provider);
|
|
12073
12073
|
const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
|
|
12074
|
-
const { getModelPricing } = await import("./getPricing-
|
|
12074
|
+
const { getModelPricing } = await import("./getPricing-I53UFOPH.js");
|
|
12075
12075
|
const normalizedTools = tools ?? [];
|
|
12076
12076
|
const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
|
|
12077
12077
|
const formData = {
|
|
@@ -15385,7 +15385,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
15385
15385
|
const deletedDialogIds = [];
|
|
15386
15386
|
const deletedDialogKeys = [];
|
|
15387
15387
|
const failures = [];
|
|
15388
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
15388
|
+
const { deleteDialog } = await import("./dialogSlice-2SH5636X.js");
|
|
15389
15389
|
for (const target of targets) {
|
|
15390
15390
|
try {
|
|
15391
15391
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -24957,7 +24957,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
24957
24957
|
if (!executionInput) {
|
|
24958
24958
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
24959
24959
|
}
|
|
24960
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
24960
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-LSLDSUWU.js");
|
|
24961
24961
|
const { executor } = findToolExecutor2(run.toolName);
|
|
24962
24962
|
toolRunStarted({
|
|
24963
24963
|
id: run.id,
|
|
@@ -24981,7 +24981,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
24981
24981
|
const latestState = thunkApi.getState();
|
|
24982
24982
|
const userId = latestState.auth?.currentUser?.userId;
|
|
24983
24983
|
if (userId) {
|
|
24984
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
24984
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-KBVKKO3M.js");
|
|
24985
24985
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
24986
24986
|
}
|
|
24987
24987
|
}
|
|
@@ -27464,7 +27464,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
27464
27464
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
27465
27465
|
};
|
|
27466
27466
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
27467
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
27467
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-J6GQYKHS.js");
|
|
27468
27468
|
if (getDocState().pageKey === id) {
|
|
27469
27469
|
applyExternalDocUpdate({
|
|
27470
27470
|
slateData: finalSlateData,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
i18n_default,
|
|
3
3
|
toolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SUFDWBLV.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalizeToolNames
|
|
7
7
|
} from "./chunk-O6OSWFZQ.js";
|
|
8
8
|
import {
|
|
9
9
|
isNoloHostedProvider
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J7KVJAUQ.js";
|
|
11
11
|
import {
|
|
12
12
|
asTrimmedLowercaseString
|
|
13
13
|
} from "./chunk-QSJ3HFEF.js";
|