nolo-cli 0.30.0-alpha.1 → 0.30.0-alpha.3
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-VBHHG7LT.js → _executeModel-FYUR7PQU.js} +17 -17
- package/{agentDeleteCommand-LLGZXUYJ.js → agentDeleteCommand-HHP47ZB2.js} +14 -14
- package/{agentEmailCommands-LC2FPN6G.js → agentEmailCommands-H6KRDTQW.js} +22 -22
- package/{agentListCommands-A6OBQ3QX.js → agentListCommands-GNVFOTB4.js} +16 -16
- package/{agentMachineCommands-4O4Q5B5X.js → agentMachineCommands-4HJHI26F.js} +14 -14
- package/{agentRecordCommands-W22RIQRV.js → agentRecordCommands-W6ITUONM.js} +21 -21
- package/{agentRunCommand-V4OBU4FB.js → agentRunCommand-VDLU4VKR.js} +21 -21
- package/{agentRuntimeLocal-I57YSGH4.js → agentRuntimeLocal-3X3ZTFT2.js} +11 -11
- package/{agentSlice-3ZHY7RAO.js → agentSlice-5HYCSSTE.js} +1 -1
- package/{appDeleteCommands-DJJF466K.js → appDeleteCommands-WFUF34TE.js} +15 -15
- package/{appDeployCommands-WJZGIOEZ.js → appDeployCommands-J2EAE53G.js} +15 -15
- package/{appDeployStatusCommands-ICYXUJNO.js → appDeployStatusCommands-RLXDEHTV.js} +15 -15
- package/{appGetCommands-UOCWYJPV.js → appGetCommands-ZGV3CKCM.js} +15 -15
- package/{appListCommands-EOKWTXPW.js → appListCommands-3VRX3EJI.js} +15 -15
- package/{authCommand-H5KE7K7K.js → authCommand-RR5LAYSW.js} +5 -5
- package/{chunk-TJYWZ3LO.js → chunk-2NYIVLAY.js} +1 -1
- package/{chunk-OYK7PA5U.js → chunk-2TZP235J.js} +3 -3
- package/{chunk-W2YKDXT7.js → chunk-3IPBZISR.js} +1 -1
- package/{chunk-MMCVBEAD.js → chunk-3Z6SPX5X.js} +24 -22
- package/{chunk-GAGUBI42.js → chunk-4ZMTXQFB.js} +3 -3
- package/{chunk-3RIWR23B.js → chunk-5NPAOURO.js} +1 -1
- package/{chunk-SWOTB2TX.js → chunk-6QP7LEI6.js} +10 -10
- package/{chunk-66O5MZYH.js → chunk-72NVMKWA.js} +1 -1
- package/{chunk-UKC5HU2C.js → chunk-7QW64TCG.js} +5 -5
- package/{chunk-GVKTKT3O.js → chunk-CTLXD6HB.js} +3 -3
- package/{chunk-VSTUQGLT.js → chunk-EIQDGAAE.js} +147 -1
- package/{chunk-SZ5CBYMZ.js → chunk-F3A5IZSX.js} +1 -1
- package/{chunk-HLG6GAUD.js → chunk-GABCPUMC.js} +1 -1
- package/{chunk-KW47OSRJ.js → chunk-IUA36RS4.js} +39 -61
- package/{chunk-QLV2GKU5.js → chunk-JRI2BRJY.js} +1 -1
- package/{chunk-KWKD3BCC.js → chunk-KH3JS4D5.js} +9 -9
- package/{chunk-CV6I4HBA.js → chunk-LWP3HB56.js} +1 -1
- package/{chunk-G6VITLCZ.js → chunk-LWYIHJKD.js} +2 -2
- package/{chunk-56IUA7RU.js → chunk-MNUJETMH.js} +1 -1
- package/{chunk-DCWBP2O7.js → chunk-MV6UZXZU.js} +8 -8
- package/{chunk-THTAR67C.js → chunk-O6YCGBJB.js} +9 -9
- package/{chunk-YWGSCF37.js → chunk-PACNSC37.js} +1 -1
- package/{chunk-7CD24PU4.js → chunk-QDNVDGLN.js} +2 -2
- package/{chunk-HI7QZNWX.js → chunk-R2JHVPHL.js} +4 -4
- package/{chunk-UTQZ73QQ.js → chunk-S342XWCB.js} +1 -1
- package/{chunk-L3VQOVKK.js → chunk-TAS3THIF.js} +2 -2
- package/{chunk-2XM5KUNE.js → chunk-V5BWE46D.js} +2 -2
- package/{chunk-T3Y5EMJS.js → chunk-WJD5RNVB.js} +1 -1
- package/{chunk-XD5NQEOH.js → chunk-WTPC3XD4.js} +1 -1
- package/{chunk-MEUZFIAJ.js → chunk-XORE26Z4.js} +1 -1
- package/{chunk-FS5TTXPS.js → chunk-YK2QRWTO.js} +2 -2
- package/{chunk-DI6MXJK5.js → chunk-YX26YZL4.js} +9 -9
- package/{createAgentAutomationAction-3GMH6ORX.js → createAgentAutomationAction-EKABYSSA.js} +3 -3
- package/{createDialogAction-R5MCL4RE.js → createDialogAction-HLP6TV4H.js} +4 -4
- package/{createPageAction-QYTG656R.js → createPageAction-4NEEWW6S.js} +3 -3
- package/{dialogCommands-NUQGIXVZ.js → dialogCommands-XB3ZNSP3.js} +15 -15
- package/{dialogSlice-CFDECXEU.js → dialogSlice-4IWM2WIY.js} +3 -3
- package/{docCreateCommands-UNFCXB5N.js → docCreateCommands-QSPTTAN7.js} +14 -14
- package/{docDeleteCommands-NG5IVKE5.js → docDeleteCommands-2E6JZXCP.js} +15 -15
- package/{docReadCommands-6J7MUUX6.js → docReadCommands-N2DQVLLT.js} +14 -14
- package/{docStore-MZZWJM4F.js → docStore-PFZCPHPC.js} +4 -4
- package/{docUpdateCommands-6AW3VZOX.js → docUpdateCommands-53KFSYEP.js} +14 -14
- package/{getPricing-XQYSSVV6.js → getPricing-67TQVKFV.js} +2 -2
- package/{handleSendMessageAction-IU2QNTLM.js → handleSendMessageAction-4IYJTQAL.js} +3 -3
- package/index.js +47 -47
- package/{machineCommands-Z2QEWTHZ.js → machineCommands-CR34SD5W.js} +20 -20
- package/{machineWsRunDispatch-SJTYHZHN.js → machineWsRunDispatch-G4O3NQ3I.js} +20 -20
- package/package.json +1 -1
- package/{readlineWorkspace-EY3BPXIU.js → readlineWorkspace-OOXRR2NG.js} +82 -45
- package/{runAgentClientLoop-N3YDLTMS.js → runAgentClientLoop-R5WNOWHI.js} +13 -13
- package/{spaceCommands-R6AEQNLG.js → spaceCommands-RZN5K5ND.js} +14 -14
- package/{spaceSlice-MCH7RLLP.js → spaceSlice-3BVGRL3V.js} +3 -3
- package/{streamAgentChatTurn-Q4U2CVMI.js → streamAgentChatTurn-RVOJZ2HO.js} +16 -16
- package/{tools-Y3UBLLYW.js → tools-QAKUH2P6.js} +8 -8
- package/{tuiSummaryLlmCaller-4474IBTI.js → tuiSummaryLlmCaller-YQBN5IMG.js} +3 -3
- package/{updateDialogTitleAction-3J7GH67I.js → updateDialogTitleAction-4O5PZVQR.js} +3 -3
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
normalizeDialogRecord,
|
|
4
4
|
readDialogSnapshot,
|
|
5
5
|
sortDialogs
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TAS3THIF.js";
|
|
7
7
|
import {
|
|
8
8
|
ANSI_ESCAPE_REGEX,
|
|
9
9
|
COLLAPSED_PASTE_PLACEHOLDER_RE,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
visibleWidth,
|
|
58
58
|
wrapTextToLines,
|
|
59
59
|
wrapTranscriptLine
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-KH3JS4D5.js";
|
|
61
61
|
import "./chunk-AOS5IN2I.js";
|
|
62
62
|
import "./chunk-6HYVJV7B.js";
|
|
63
63
|
import {
|
|
@@ -66,12 +66,12 @@ import {
|
|
|
66
66
|
listRemoteAgents,
|
|
67
67
|
listRemoteAgentsAcrossServers,
|
|
68
68
|
normalizeListedAgent
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-CTLXD6HB.js";
|
|
70
70
|
import "./chunk-ID4G2MAR.js";
|
|
71
71
|
import {
|
|
72
72
|
listUserRecordsFromServers,
|
|
73
73
|
readLiveDbRecordAfterTombstoneMerge
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-GABCPUMC.js";
|
|
75
75
|
import {
|
|
76
76
|
createCliLocalRuntimeAdapter,
|
|
77
77
|
initCliLocale,
|
|
@@ -79,8 +79,8 @@ import {
|
|
|
79
79
|
readTimestamp,
|
|
80
80
|
setCliLocale,
|
|
81
81
|
t
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import "./chunk-
|
|
82
|
+
} from "./chunk-3Z6SPX5X.js";
|
|
83
|
+
import "./chunk-WJD5RNVB.js";
|
|
84
84
|
import {
|
|
85
85
|
checkStaleRun,
|
|
86
86
|
isRunRecordClaimed,
|
|
@@ -97,8 +97,8 @@ import {
|
|
|
97
97
|
deleteDbRecord,
|
|
98
98
|
queryUserRecords,
|
|
99
99
|
readDbRecord
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
100
|
+
} from "./chunk-MNUJETMH.js";
|
|
101
|
+
import "./chunk-72NVMKWA.js";
|
|
102
102
|
import {
|
|
103
103
|
NOLO_DEFAULT_AGENT_KEY,
|
|
104
104
|
resolveCliAgentKeyInput
|
|
@@ -111,9 +111,9 @@ import {
|
|
|
111
111
|
buildLocalWorkspaceOpenAiTools,
|
|
112
112
|
buildLocalWorkspaceToolset,
|
|
113
113
|
getProcessRegistry
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-7QW64TCG.js";
|
|
115
115
|
import "./chunk-ZNFJWEN4.js";
|
|
116
|
-
import "./chunk-
|
|
116
|
+
import "./chunk-XORE26Z4.js";
|
|
117
117
|
import "./chunk-LTRXGFMS.js";
|
|
118
118
|
import "./chunk-ATNTHIZI.js";
|
|
119
119
|
import "./chunk-OIQPORYI.js";
|
|
@@ -121,30 +121,30 @@ import "./chunk-T27IEBNQ.js";
|
|
|
121
121
|
import "./chunk-JEXVIMYZ.js";
|
|
122
122
|
import {
|
|
123
123
|
prepareTools
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-3IPBZISR.js";
|
|
125
125
|
import {
|
|
126
126
|
readCommandActionGatePayload
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-IUA36RS4.js";
|
|
128
128
|
import "./chunk-N7J63Q6C.js";
|
|
129
129
|
import {
|
|
130
130
|
buildAgentsMdLayer,
|
|
131
131
|
partitionScopedBlocks,
|
|
132
132
|
renderTurnContextBlocksWithScope
|
|
133
133
|
} from "./chunk-PJY5AH5A.js";
|
|
134
|
-
import "./chunk-
|
|
134
|
+
import "./chunk-2NYIVLAY.js";
|
|
135
135
|
import {
|
|
136
136
|
buildCurrentTimeBlock,
|
|
137
137
|
buildIdentityBlock,
|
|
138
138
|
buildRuntimeGuidanceBlocks,
|
|
139
139
|
resolveToolGuidedSections
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-QDNVDGLN.js";
|
|
141
141
|
import "./chunk-D34RI6NI.js";
|
|
142
142
|
import {
|
|
143
143
|
resolvePlatformAuthToken
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-WTPC3XD4.js";
|
|
145
145
|
import "./chunk-4PWB7JRR.js";
|
|
146
146
|
import "./chunk-2MBTWINN.js";
|
|
147
|
-
import "./chunk-
|
|
147
|
+
import "./chunk-6QP7LEI6.js";
|
|
148
148
|
import "./chunk-Z5MXSEOJ.js";
|
|
149
149
|
import {
|
|
150
150
|
clipText,
|
|
@@ -157,17 +157,17 @@ import {
|
|
|
157
157
|
runShowsLogTail,
|
|
158
158
|
shortRunId
|
|
159
159
|
} from "./chunk-KXKQO4Q6.js";
|
|
160
|
-
import "./chunk-
|
|
160
|
+
import "./chunk-S342XWCB.js";
|
|
161
161
|
import "./chunk-KQHGZWSV.js";
|
|
162
|
-
import "./chunk-
|
|
163
|
-
import "./chunk-
|
|
162
|
+
import "./chunk-2TZP235J.js";
|
|
163
|
+
import "./chunk-YK2QRWTO.js";
|
|
164
164
|
import "./chunk-Q24P6TUS.js";
|
|
165
165
|
import "./chunk-G5JHHUAK.js";
|
|
166
166
|
import "./chunk-SWYMCHM7.js";
|
|
167
167
|
import "./chunk-44HACRCK.js";
|
|
168
|
-
import "./chunk-
|
|
168
|
+
import "./chunk-JRI2BRJY.js";
|
|
169
169
|
import "./chunk-DCDL3GC4.js";
|
|
170
|
-
import "./chunk-
|
|
170
|
+
import "./chunk-PACNSC37.js";
|
|
171
171
|
import "./chunk-3LY4F7SV.js";
|
|
172
172
|
import {
|
|
173
173
|
DEFAULT_CONTEXT_WINDOW,
|
|
@@ -176,13 +176,13 @@ import {
|
|
|
176
176
|
getModelContextWindow,
|
|
177
177
|
planCompression,
|
|
178
178
|
serializeMessageContent
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-O6YCGBJB.js";
|
|
180
180
|
import {
|
|
181
181
|
buildBuiltinSummaryContent,
|
|
182
182
|
clipCompactText
|
|
183
183
|
} from "./chunk-OB6FBSH3.js";
|
|
184
184
|
import "./chunk-IZ3CBMD5.js";
|
|
185
|
-
import "./chunk-
|
|
185
|
+
import "./chunk-4ZMTXQFB.js";
|
|
186
186
|
import "./chunk-JZPBVBIY.js";
|
|
187
187
|
import "./chunk-5RGU3J7P.js";
|
|
188
188
|
import "./chunk-M76ECQRD.js";
|
|
@@ -196,7 +196,7 @@ import "./chunk-3ASDTTEI.js";
|
|
|
196
196
|
import "./chunk-YLADSPDU.js";
|
|
197
197
|
import "./chunk-WTGCTVJG.js";
|
|
198
198
|
import "./chunk-CWMSB67P.js";
|
|
199
|
-
import "./chunk-
|
|
199
|
+
import "./chunk-EIQDGAAE.js";
|
|
200
200
|
import "./chunk-ZHXJ6M7T.js";
|
|
201
201
|
import "./chunk-CAENRKNJ.js";
|
|
202
202
|
import "./chunk-63W5N6P3.js";
|
|
@@ -3637,7 +3637,6 @@ var SLASH_COMMANDS = [
|
|
|
3637
3637
|
"/ctx",
|
|
3638
3638
|
"/runtime",
|
|
3639
3639
|
"/tools",
|
|
3640
|
-
"/thinking",
|
|
3641
3640
|
"/switch",
|
|
3642
3641
|
"/agent",
|
|
3643
3642
|
"/agents",
|
|
@@ -4726,6 +4725,18 @@ function finalizeCurrentTurn(history) {
|
|
|
4726
4725
|
}
|
|
4727
4726
|
}
|
|
4728
4727
|
}
|
|
4728
|
+
function appendLocalTurn(history, command, output) {
|
|
4729
|
+
finalizeCurrentTurn(history);
|
|
4730
|
+
history.turns.push({
|
|
4731
|
+
role: "local",
|
|
4732
|
+
command,
|
|
4733
|
+
content: output
|
|
4734
|
+
});
|
|
4735
|
+
if (history.turns.length > MAX_TUI_HISTORY_TURNS) {
|
|
4736
|
+
history.turns = history.turns.slice(history.turns.length - MAX_TUI_HISTORY_TURNS);
|
|
4737
|
+
}
|
|
4738
|
+
resetStreamingTurnCache();
|
|
4739
|
+
}
|
|
4729
4740
|
function applyOutputChunkToCurrentTurn(history, chunk) {
|
|
4730
4741
|
const next = applyTerminalOutputToText(history.currentContent, chunk);
|
|
4731
4742
|
if (next === history.currentContent) return false;
|
|
@@ -4753,7 +4764,7 @@ function fillUserBubbleRow(row, surfaceSeq, contentWidth) {
|
|
|
4753
4764
|
}
|
|
4754
4765
|
return renderSurfaceLine({ text: row, surface: surfaceSeq, padTo: contentWidth });
|
|
4755
4766
|
}
|
|
4756
|
-
function renderTurnBlock(role, content, contentWidth, colorEnabled) {
|
|
4767
|
+
function renderTurnBlock(role, content, contentWidth, colorEnabled, command) {
|
|
4757
4768
|
content = content.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
4758
4769
|
const lines = [];
|
|
4759
4770
|
if (role === "user") {
|
|
@@ -4772,6 +4783,21 @@ function renderTurnBlock(role, content, contentWidth, colorEnabled) {
|
|
|
4772
4783
|
...surfaceSeq ? rows.map((row) => fillUserBubbleRow(row, surfaceSeq, contentWidth)) : rows
|
|
4773
4784
|
);
|
|
4774
4785
|
}
|
|
4786
|
+
} else if (role === "local") {
|
|
4787
|
+
const dimSeq = colorEnabled ? "\x1B[2m" : "";
|
|
4788
|
+
const resetSeq = colorEnabled ? "\x1B[0m" : "";
|
|
4789
|
+
if (command) {
|
|
4790
|
+
lines.push(
|
|
4791
|
+
...wrapTranscriptLine(`${dimSeq}\u203A ${command}${resetSeq}`, contentWidth)
|
|
4792
|
+
);
|
|
4793
|
+
}
|
|
4794
|
+
if (content) {
|
|
4795
|
+
for (const line of content.split("\n")) {
|
|
4796
|
+
lines.push(
|
|
4797
|
+
...wrapTranscriptLine(`${dimSeq} ${line}${resetSeq}`, contentWidth)
|
|
4798
|
+
);
|
|
4799
|
+
}
|
|
4800
|
+
}
|
|
4775
4801
|
} else {
|
|
4776
4802
|
const styledEntry = styleAssistantTurn(content, colorEnabled);
|
|
4777
4803
|
for (const logicalLine of styledEntry.split("\n")) {
|
|
@@ -4905,13 +4931,22 @@ function getAssistantPlainLines(content) {
|
|
|
4905
4931
|
assistantPlainLinesCache.set(content, plainLines);
|
|
4906
4932
|
return plainLines;
|
|
4907
4933
|
}
|
|
4908
|
-
function countTurnLines(role, content, contentWidth) {
|
|
4934
|
+
function countTurnLines(role, content, contentWidth, command) {
|
|
4909
4935
|
content = content.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
4910
4936
|
let count = 0;
|
|
4911
4937
|
if (role === "user") {
|
|
4912
4938
|
for (const line of content.split("\n")) {
|
|
4913
4939
|
count += wrapTranscriptLine(`\u2503 ${line}`, contentWidth, "\u2503 ").length;
|
|
4914
4940
|
}
|
|
4941
|
+
} else if (role === "local") {
|
|
4942
|
+
if (command) {
|
|
4943
|
+
count += wrapTranscriptLine(`\u203A ${command}`, contentWidth).length;
|
|
4944
|
+
}
|
|
4945
|
+
if (content) {
|
|
4946
|
+
for (const line of content.split("\n")) {
|
|
4947
|
+
count += wrapTranscriptLine(` ${line}`, contentWidth).length;
|
|
4948
|
+
}
|
|
4949
|
+
}
|
|
4915
4950
|
} else {
|
|
4916
4951
|
const plainLines = getAssistantPlainLines(content);
|
|
4917
4952
|
for (let i = 0; i < plainLines.length; i++) {
|
|
@@ -4935,7 +4970,7 @@ function buildTurnOffsets(history, contentWidth) {
|
|
|
4935
4970
|
if (cached && cached.width === contentWidth) {
|
|
4936
4971
|
lineCount = cached.count;
|
|
4937
4972
|
} else {
|
|
4938
|
-
lineCount = countTurnLines(turn.role, turn.content, contentWidth);
|
|
4973
|
+
lineCount = countTurnLines(turn.role, turn.content, contentWidth, turn.command);
|
|
4939
4974
|
turnLineCountCache.set(turn, { width: contentWidth, count: lineCount });
|
|
4940
4975
|
}
|
|
4941
4976
|
entries.push({ startRow: offset, lineCount, separatorAbove });
|
|
@@ -4955,7 +4990,14 @@ function buildCopyViewLines(history) {
|
|
|
4955
4990
|
for (const [index, turn] of turns.entries()) {
|
|
4956
4991
|
if (index > 0) lines.push("");
|
|
4957
4992
|
const normalized = stripAnsi(turn.content).replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
4958
|
-
|
|
4993
|
+
if (turn.role === "local") {
|
|
4994
|
+
if (turn.command) {
|
|
4995
|
+
lines.push(`\u203A ${stripAnsi(turn.command)}`);
|
|
4996
|
+
}
|
|
4997
|
+
lines.push(...normalized.split("\n"));
|
|
4998
|
+
} else {
|
|
4999
|
+
lines.push(...normalized.split("\n"));
|
|
5000
|
+
}
|
|
4959
5001
|
}
|
|
4960
5002
|
return lines;
|
|
4961
5003
|
}
|
|
@@ -5019,7 +5061,7 @@ function renderHistory(output, history, inputLines) {
|
|
|
5019
5061
|
lines = cached.lines;
|
|
5020
5062
|
} else {
|
|
5021
5063
|
renderCacheMissCount += 1;
|
|
5022
|
-
lines = renderTurnBlock(turn.role, turn.content, contentWidth, colorEnabled);
|
|
5064
|
+
lines = renderTurnBlock(turn.role, turn.content, contentWidth, colorEnabled, turn.command);
|
|
5023
5065
|
turnLineCache.set(turn, {
|
|
5024
5066
|
width: contentWidth,
|
|
5025
5067
|
color: colorEnabled,
|
|
@@ -6485,7 +6527,7 @@ async function startTuiWorkspace(options) {
|
|
|
6485
6527
|
activeTurnAbort.abort();
|
|
6486
6528
|
}
|
|
6487
6529
|
};
|
|
6488
|
-
const emitCommandOutput = (text) => {
|
|
6530
|
+
const emitCommandOutput = (text, command = "") => {
|
|
6489
6531
|
if (!text) return;
|
|
6490
6532
|
if (!isInteractiveInput(input)) {
|
|
6491
6533
|
output.write(`${text}
|
|
@@ -6493,9 +6535,7 @@ async function startTuiWorkspace(options) {
|
|
|
6493
6535
|
return;
|
|
6494
6536
|
}
|
|
6495
6537
|
history.followBottom = true;
|
|
6496
|
-
|
|
6497
|
-
appendToCurrentTurn(history, text);
|
|
6498
|
-
finalizeCurrentTurn(history);
|
|
6538
|
+
appendLocalTurn(history, command, text);
|
|
6499
6539
|
renderHistoryToOutput();
|
|
6500
6540
|
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
6501
6541
|
};
|
|
@@ -6516,21 +6556,17 @@ async function startTuiWorkspace(options) {
|
|
|
6516
6556
|
const previousAgentKey = state.agentKey;
|
|
6517
6557
|
state = result.nextState;
|
|
6518
6558
|
const interactive = isInteractiveInput(input);
|
|
6519
|
-
if (
|
|
6520
|
-
|
|
6521
|
-
startTurn(history, "user");
|
|
6522
|
-
appendToCurrentTurn(history, line.trim());
|
|
6523
|
-
finalizeCurrentTurn(history);
|
|
6524
|
-
renderHistoryToOutput();
|
|
6525
|
-
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
6526
|
-
}
|
|
6527
|
-
if (result.output) {
|
|
6528
|
-
emitCommandOutput(result.output);
|
|
6559
|
+
if (result.action?.type !== "chat" && result.action?.type !== "exit" && result.output) {
|
|
6560
|
+
emitCommandOutput(result.output, interactive ? line.trim() : "");
|
|
6529
6561
|
}
|
|
6530
6562
|
if (state.agentKey !== previousAgentKey) {
|
|
6531
6563
|
persistExplicitAgentSwitch(previousAgentKey);
|
|
6532
6564
|
}
|
|
6533
|
-
if (result.action?.type === "exit")
|
|
6565
|
+
if (result.action?.type === "exit") {
|
|
6566
|
+
if (result.output) output.write(`${result.output}
|
|
6567
|
+
`);
|
|
6568
|
+
return true;
|
|
6569
|
+
}
|
|
6534
6570
|
if (result.action?.type === "clear") {
|
|
6535
6571
|
if (result.action.dialogId) {
|
|
6536
6572
|
const authToken = resolvePlatformAuthToken(options.env ?? {});
|
|
@@ -7363,6 +7399,7 @@ ${renderStatusLine(state)}
|
|
|
7363
7399
|
}
|
|
7364
7400
|
export {
|
|
7365
7401
|
ANSI_ESCAPE_REGEX,
|
|
7402
|
+
appendLocalTurn,
|
|
7366
7403
|
appendToCurrentTurn,
|
|
7367
7404
|
applyOutputChunkToCurrentTurn,
|
|
7368
7405
|
applyScrollAction,
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAgentContexts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5BWE46D.js";
|
|
4
4
|
import {
|
|
5
5
|
generateRequestBody,
|
|
6
6
|
mergeReferences,
|
|
7
7
|
performFetchRequest
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-MV6UZXZU.js";
|
|
9
|
+
import "./chunk-2NYIVLAY.js";
|
|
10
|
+
import "./chunk-QDNVDGLN.js";
|
|
11
11
|
import "./chunk-D34RI6NI.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-WTPC3XD4.js";
|
|
13
13
|
import "./chunk-4PWB7JRR.js";
|
|
14
14
|
import {
|
|
15
15
|
findToolExecutor
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6QP7LEI6.js";
|
|
17
17
|
import "./chunk-Z5MXSEOJ.js";
|
|
18
18
|
import "./chunk-KXKQO4Q6.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-S342XWCB.js";
|
|
20
20
|
import "./chunk-KQHGZWSV.js";
|
|
21
21
|
import {
|
|
22
22
|
getToolResultErrorData
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-2TZP235J.js";
|
|
24
|
+
import "./chunk-YK2QRWTO.js";
|
|
25
25
|
import "./chunk-Q24P6TUS.js";
|
|
26
26
|
import "./chunk-G5JHHUAK.js";
|
|
27
27
|
import "./chunk-SWYMCHM7.js";
|
|
28
28
|
import "./chunk-44HACRCK.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-JRI2BRJY.js";
|
|
30
30
|
import "./chunk-DCDL3GC4.js";
|
|
31
31
|
import "./chunk-3LY4F7SV.js";
|
|
32
32
|
import {
|
|
33
33
|
updateTokensAction
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-O6YCGBJB.js";
|
|
35
35
|
import "./chunk-OB6FBSH3.js";
|
|
36
36
|
import "./chunk-IZ3CBMD5.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-4ZMTXQFB.js";
|
|
38
38
|
import "./chunk-JZPBVBIY.js";
|
|
39
39
|
import "./chunk-5RGU3J7P.js";
|
|
40
40
|
import "./chunk-M76ECQRD.js";
|
|
@@ -46,7 +46,7 @@ import "./chunk-WTGCTVJG.js";
|
|
|
46
46
|
import "./chunk-CWMSB67P.js";
|
|
47
47
|
import {
|
|
48
48
|
getApiEndpoint
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-EIQDGAAE.js";
|
|
50
50
|
import "./chunk-ZHXJ6M7T.js";
|
|
51
51
|
import "./chunk-CAENRKNJ.js";
|
|
52
52
|
import "./chunk-63W5N6P3.js";
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readLiveDbRecordAfterTombstoneMerge
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GABCPUMC.js";
|
|
4
4
|
import {
|
|
5
5
|
readDbRecord,
|
|
6
6
|
writeAgentRecord
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-MNUJETMH.js";
|
|
8
|
+
import "./chunk-72NVMKWA.js";
|
|
9
9
|
import "./chunk-K6QEHQZ3.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-7QW64TCG.js";
|
|
11
11
|
import "./chunk-ZNFJWEN4.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-XORE26Z4.js";
|
|
13
13
|
import "./chunk-OIQPORYI.js";
|
|
14
14
|
import "./chunk-T27IEBNQ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-IUA36RS4.js";
|
|
16
16
|
import "./chunk-N7J63Q6C.js";
|
|
17
17
|
import "./chunk-PJY5AH5A.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-QDNVDGLN.js";
|
|
19
19
|
import "./chunk-D34RI6NI.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WTPC3XD4.js";
|
|
21
21
|
import "./chunk-4PWB7JRR.js";
|
|
22
22
|
import "./chunk-2MBTWINN.js";
|
|
23
23
|
import "./chunk-KQHGZWSV.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-2TZP235J.js";
|
|
25
|
+
import "./chunk-YK2QRWTO.js";
|
|
26
26
|
import "./chunk-SWYMCHM7.js";
|
|
27
27
|
import "./chunk-44HACRCK.js";
|
|
28
28
|
import "./chunk-DCDL3GC4.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-PACNSC37.js";
|
|
30
30
|
import {
|
|
31
31
|
authRoutes
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-O6YCGBJB.js";
|
|
33
33
|
import "./chunk-OB6FBSH3.js";
|
|
34
34
|
import "./chunk-IZ3CBMD5.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-4ZMTXQFB.js";
|
|
36
36
|
import "./chunk-JZPBVBIY.js";
|
|
37
37
|
import "./chunk-5RGU3J7P.js";
|
|
38
38
|
import "./chunk-M76ECQRD.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
} from "./chunk-YLADSPDU.js";
|
|
46
46
|
import "./chunk-WTGCTVJG.js";
|
|
47
47
|
import "./chunk-CWMSB67P.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-EIQDGAAE.js";
|
|
49
49
|
import "./chunk-ZHXJ6M7T.js";
|
|
50
50
|
import "./chunk-CAENRKNJ.js";
|
|
51
51
|
import "./chunk-IDZTNRP2.js";
|
|
@@ -53,10 +53,10 @@ import {
|
|
|
53
53
|
updateContentTitle,
|
|
54
54
|
updateSpace,
|
|
55
55
|
uploadAndAddFileToSpace
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-O6YCGBJB.js";
|
|
57
57
|
import "./chunk-OB6FBSH3.js";
|
|
58
58
|
import "./chunk-IZ3CBMD5.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-4ZMTXQFB.js";
|
|
60
60
|
import "./chunk-JZPBVBIY.js";
|
|
61
61
|
import "./chunk-5RGU3J7P.js";
|
|
62
62
|
import "./chunk-M76ECQRD.js";
|
|
@@ -66,7 +66,7 @@ import "./chunk-3ASDTTEI.js";
|
|
|
66
66
|
import "./chunk-YLADSPDU.js";
|
|
67
67
|
import "./chunk-WTGCTVJG.js";
|
|
68
68
|
import "./chunk-CWMSB67P.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-EIQDGAAE.js";
|
|
70
70
|
import "./chunk-ZHXJ6M7T.js";
|
|
71
71
|
import "./chunk-CAENRKNJ.js";
|
|
72
72
|
import "./chunk-446VANPP.js";
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
sanitizeOutboundResponsesInput,
|
|
23
23
|
sendOpenAICompletionsRequest,
|
|
24
24
|
updateTotalUsage
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YX26YZL4.js";
|
|
26
26
|
import "./chunk-JEXVIMYZ.js";
|
|
27
27
|
import {
|
|
28
28
|
prepareTools
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3IPBZISR.js";
|
|
30
30
|
import {
|
|
31
31
|
applyImageConfigRuntimeOverride,
|
|
32
32
|
buildDynamicContexts,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
trimMessagesWithSummary,
|
|
41
41
|
tryPreprocessWebImageOrReject,
|
|
42
42
|
validateAccessAndBalance
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-IUA36RS4.js";
|
|
44
44
|
import "./chunk-N7J63Q6C.js";
|
|
45
45
|
import "./chunk-PJY5AH5A.js";
|
|
46
46
|
import {
|
|
@@ -55,9 +55,9 @@ import {
|
|
|
55
55
|
resolveToolsFromKeys,
|
|
56
56
|
selectResponsesConversationState,
|
|
57
57
|
updateResponsesConversationState
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-MV6UZXZU.js";
|
|
59
|
+
import "./chunk-2NYIVLAY.js";
|
|
60
|
+
import "./chunk-QDNVDGLN.js";
|
|
61
61
|
import {
|
|
62
62
|
extractImagePartsFromResponseOutput,
|
|
63
63
|
extractTextFromResponseOutput,
|
|
@@ -65,31 +65,31 @@ import {
|
|
|
65
65
|
} from "./chunk-D34RI6NI.js";
|
|
66
66
|
import {
|
|
67
67
|
isOpenAiResponsesModel
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-WTPC3XD4.js";
|
|
69
69
|
import "./chunk-4PWB7JRR.js";
|
|
70
70
|
import {
|
|
71
71
|
createSSEParser,
|
|
72
72
|
shouldBlockForGptPro,
|
|
73
73
|
waitForAbortableDelay
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-6QP7LEI6.js";
|
|
75
75
|
import "./chunk-Z5MXSEOJ.js";
|
|
76
76
|
import "./chunk-KXKQO4Q6.js";
|
|
77
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-S342XWCB.js";
|
|
78
78
|
import "./chunk-KQHGZWSV.js";
|
|
79
79
|
import {
|
|
80
80
|
resolveRuntimeToolSurfaceForAgent
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-2TZP235J.js";
|
|
82
|
+
import "./chunk-YK2QRWTO.js";
|
|
83
83
|
import "./chunk-Q24P6TUS.js";
|
|
84
84
|
import "./chunk-G5JHHUAK.js";
|
|
85
85
|
import "./chunk-SWYMCHM7.js";
|
|
86
86
|
import "./chunk-44HACRCK.js";
|
|
87
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-JRI2BRJY.js";
|
|
88
88
|
import "./chunk-DCDL3GC4.js";
|
|
89
89
|
import {
|
|
90
90
|
getPublicImageAgentDefaultProfile,
|
|
91
91
|
getPublicImageAgentMode
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-PACNSC37.js";
|
|
93
93
|
import "./chunk-3LY4F7SV.js";
|
|
94
94
|
import {
|
|
95
95
|
addToolMessage,
|
|
@@ -109,14 +109,14 @@ import {
|
|
|
109
109
|
selectCurrentSpaceId,
|
|
110
110
|
selectDialogConfigByKey,
|
|
111
111
|
updateTokens
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-O6YCGBJB.js";
|
|
113
113
|
import "./chunk-OB6FBSH3.js";
|
|
114
114
|
import {
|
|
115
115
|
createCliChatTurnStream,
|
|
116
116
|
getCliChatSession,
|
|
117
117
|
startCliChatSession
|
|
118
118
|
} from "./chunk-IZ3CBMD5.js";
|
|
119
|
-
import "./chunk-
|
|
119
|
+
import "./chunk-4ZMTXQFB.js";
|
|
120
120
|
import "./chunk-JZPBVBIY.js";
|
|
121
121
|
import "./chunk-5RGU3J7P.js";
|
|
122
122
|
import "./chunk-M76ECQRD.js";
|
|
@@ -138,7 +138,7 @@ import "./chunk-WTGCTVJG.js";
|
|
|
138
138
|
import "./chunk-CWMSB67P.js";
|
|
139
139
|
import {
|
|
140
140
|
getApiEndpoint
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-EIQDGAAE.js";
|
|
142
142
|
import "./chunk-ZHXJ6M7T.js";
|
|
143
143
|
import "./chunk-CAENRKNJ.js";
|
|
144
144
|
import "./chunk-63W5N6P3.js";
|
|
@@ -8,24 +8,24 @@ import {
|
|
|
8
8
|
toolQueryFunc,
|
|
9
9
|
toolQueryFunctionSchema,
|
|
10
10
|
toolRegistry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6QP7LEI6.js";
|
|
12
12
|
import "./chunk-Z5MXSEOJ.js";
|
|
13
13
|
import "./chunk-KXKQO4Q6.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-S342XWCB.js";
|
|
15
15
|
import "./chunk-KQHGZWSV.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-2TZP235J.js";
|
|
17
|
+
import "./chunk-YK2QRWTO.js";
|
|
18
18
|
import "./chunk-Q24P6TUS.js";
|
|
19
19
|
import "./chunk-G5JHHUAK.js";
|
|
20
20
|
import "./chunk-SWYMCHM7.js";
|
|
21
21
|
import "./chunk-44HACRCK.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-JRI2BRJY.js";
|
|
23
23
|
import "./chunk-DCDL3GC4.js";
|
|
24
24
|
import "./chunk-3LY4F7SV.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-O6YCGBJB.js";
|
|
26
26
|
import "./chunk-OB6FBSH3.js";
|
|
27
27
|
import "./chunk-IZ3CBMD5.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-4ZMTXQFB.js";
|
|
29
29
|
import "./chunk-JZPBVBIY.js";
|
|
30
30
|
import "./chunk-5RGU3J7P.js";
|
|
31
31
|
import "./chunk-M76ECQRD.js";
|
|
@@ -35,7 +35,7 @@ import "./chunk-3ASDTTEI.js";
|
|
|
35
35
|
import "./chunk-YLADSPDU.js";
|
|
36
36
|
import "./chunk-WTGCTVJG.js";
|
|
37
37
|
import "./chunk-CWMSB67P.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-EIQDGAAE.js";
|
|
39
39
|
import "./chunk-ZHXJ6M7T.js";
|
|
40
40
|
import "./chunk-CAENRKNJ.js";
|
|
41
41
|
import "./chunk-63W5N6P3.js";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
canUsePlatformChatProvider,
|
|
4
4
|
parsePlatformChatCompletionResponse,
|
|
5
5
|
resolvePlatformChatProviderConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XORE26Z4.js";
|
|
7
7
|
import "./chunk-T27IEBNQ.js";
|
|
8
8
|
import "./chunk-N7J63Q6C.js";
|
|
9
9
|
import "./chunk-D34RI6NI.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-WTPC3XD4.js";
|
|
11
11
|
import {
|
|
12
12
|
BUILTIN_SUMMARY_LLM_CONFIG
|
|
13
13
|
} from "./chunk-OB6FBSH3.js";
|
|
14
14
|
import "./chunk-DWLEOOGR.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-EIQDGAAE.js";
|
|
16
16
|
import "./chunk-ZHXJ6M7T.js";
|
|
17
17
|
import "./chunk-CAENRKNJ.js";
|
|
18
18
|
import "./chunk-QSJ3HFEF.js";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
selectAllMsgs,
|
|
8
8
|
serializeMessageContent,
|
|
9
9
|
updateContentTitle
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O6YCGBJB.js";
|
|
11
11
|
import {
|
|
12
12
|
BUILTIN_TITLE_LLM_CONFIG
|
|
13
13
|
} from "./chunk-OB6FBSH3.js";
|
|
14
14
|
import "./chunk-IZ3CBMD5.js";
|
|
15
15
|
import {
|
|
16
16
|
runLlm
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4ZMTXQFB.js";
|
|
18
18
|
import "./chunk-JZPBVBIY.js";
|
|
19
19
|
import "./chunk-5RGU3J7P.js";
|
|
20
20
|
import {
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-YLADSPDU.js";
|
|
29
29
|
import "./chunk-WTGCTVJG.js";
|
|
30
30
|
import "./chunk-CWMSB67P.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-EIQDGAAE.js";
|
|
32
32
|
import "./chunk-ZHXJ6M7T.js";
|
|
33
33
|
import "./chunk-CAENRKNJ.js";
|
|
34
34
|
import "./chunk-446VANPP.js";
|