nolo-cli 0.30.0-alpha.9 → 0.30.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-5ARVVUIK.js → _executeModel-FYUR7PQU.js} +25 -26
- package/{action-HI3VRQLP.js → action-FENWPT3C.js} +7 -7
- package/{addContentAction-NCURJ6PK.js → addContentAction-Z5S5ZQ7I.js} +6 -6
- package/{addDialogAgentAction-RCY4ECF4.js → addDialogAgentAction-VUNVD2XR.js} +5 -5
- package/{agentDeleteCommand-5Q6TDCJU.js → agentDeleteCommand-HHP47ZB2.js} +18 -19
- package/{agentEmailCommands-DSX4BJ2I.js → agentEmailCommands-H6KRDTQW.js} +29 -30
- package/{agentListCommands-S66HL5RO.js → agentListCommands-GNVFOTB4.js} +20 -21
- package/{agentMachineCommands-ULCQ5ZNN.js → agentMachineCommands-4HJHI26F.js} +18 -19
- package/{agentRecordCommands-2AA3GEGO.js → agentRecordCommands-W6ITUONM.js} +28 -29
- package/{agentRunCommand-3KOT77XY.js → agentRunCommand-VDLU4VKR.js} +28 -29
- package/{agentRuntimeLocal-7TMDJD4S.js → agentRuntimeLocal-3X3ZTFT2.js} +15 -16
- package/{agentSlice-6IQRQZX3.js → agentSlice-5HYCSSTE.js} +6 -6
- package/{appDeleteCommands-UUDIWLNE.js → appDeleteCommands-WFUF34TE.js} +19 -20
- package/{appDeployCommands-CO6SZ7YP.js → appDeployCommands-J2EAE53G.js} +19 -20
- package/{appDeployStatusCommands-QEVKVECJ.js → appDeployStatusCommands-RLXDEHTV.js} +19 -20
- package/{appGetCommands-3YSCCLK4.js → appGetCommands-ZGV3CKCM.js} +19 -20
- package/{appListCommands-FBJAFZKK.js → appListCommands-3VRX3EJI.js} +19 -20
- package/{authCommand-3ADNCFKD.js → authCommand-RR5LAYSW.js} +3 -3
- package/{chunk-J3LHGBNO.js → chunk-2NYIVLAY.js} +1 -1
- package/{chunk-CYRMUTGB.js → chunk-2TZP235J.js} +6 -6
- package/{chunk-NZBH7FTB.js → chunk-3IPBZISR.js} +1 -1
- package/{chunk-Q243PXRU.js → chunk-3Z6SPX5X.js} +11 -11
- package/{chunk-G5GVZAXF.js → chunk-446VANPP.js} +4 -4
- package/{chunk-4F77PJBR.js → chunk-4ZMTXQFB.js} +5 -5
- package/{chunk-N2IX3ZYK.js → chunk-5NPAOURO.js} +1 -1
- package/{chunk-IPSPETAL.js → chunk-6QP7LEI6.js} +31 -38
- package/{chunk-GVPMJPCT.js → chunk-72NVMKWA.js} +1 -1
- package/{chunk-GKXS4F2I.js → chunk-7QW64TCG.js} +3 -3
- package/{chunk-LAXMH7JY.js → chunk-A4JDTA5T.js} +6 -6
- package/{chunk-ZJ2WITOO.js → chunk-BOL2D2JW.js} +2 -2
- package/{chunk-S2BMRBR2.js → chunk-CTLXD6HB.js} +3 -3
- package/{chunk-KGEVMUMI.js → chunk-DKRT67FG.js} +3 -3
- package/{chunk-ZJH3LKEW.js → chunk-DWQNDGO7.js} +2 -2
- package/{chunk-QBOW6RZN.js → chunk-F3A5IZSX.js} +2 -2
- package/{chunk-F3MP7CP6.js → chunk-G5JHHUAK.js} +1 -1
- package/{chunk-RWJPDKPB.js → chunk-GABCPUMC.js} +1 -1
- package/{chunk-VQ4QPCKE.js → chunk-IUA36RS4.js} +13 -15
- package/{chunk-ATK5WJOA.js → chunk-IZ3CBMD5.js} +4 -4
- package/{chunk-T4X4GCYT.js → chunk-JRI2BRJY.js} +5 -7
- package/{chunk-W3UDJJMA.js → chunk-KH3JS4D5.js} +9 -9
- package/{chunk-EDWM6D6L.js → chunk-LWP3HB56.js} +1 -1
- package/{chunk-2CYGIPJH.js → chunk-LWYIHJKD.js} +2 -2
- package/{chunk-PIC6Z7VI.js → chunk-MNUJETMH.js} +1 -1
- package/{chunk-R5Y4XELF.js → chunk-MV6UZXZU.js} +8 -8
- package/chunk-O6YCGBJB.js +16338 -0
- package/{chunk-43EPBPZ2.js → chunk-Q24P6TUS.js} +1 -1
- package/{chunk-OIW2RJ74.js → chunk-QDNVDGLN.js} +5 -5
- package/{chunk-ARPAHODF.js → chunk-R2JHVPHL.js} +4 -4
- package/{chunk-5RDLGLAP.js → chunk-R5V5G73M.js} +1 -0
- package/{chunk-2HQ4OG6N.js → chunk-S342XWCB.js} +1 -1
- package/{chunk-TXVSNFHC.js → chunk-TAS3THIF.js} +3 -3
- package/{chunk-BIPRFBC2.js → chunk-V5BWE46D.js} +2 -2
- package/{chunk-EBNSAABL.js → chunk-WJD5RNVB.js} +1 -1
- package/{chunk-6JH2DF7J.js → chunk-YK2QRWTO.js} +3 -3
- package/{chunk-V54H24CQ.js → chunk-YLADSPDU.js} +2 -2
- package/{chunk-2SOQY5L6.js → chunk-YX26YZL4.js} +12 -14
- package/{chunk-2IJAKBK2.js → chunk-ZFTCLBEX.js} +1 -3
- package/{createAgentAutomationAction-EYNYY2LB.js → createAgentAutomationAction-EKABYSSA.js} +10 -11
- package/{createDialogAction-OUIRWYZP.js → createDialogAction-HLP6TV4H.js} +11 -12
- package/{createPageAction-2I5PHJFF.js → createPageAction-4NEEWW6S.js} +10 -11
- package/{dbSlice-BBL3PEVW.js → dbSlice-OBV7VFCF.js} +5 -5
- package/{deleteFile-RJTEPOT4.js → deleteFile-AC45HYSM.js} +3 -3
- package/{dialogCommands-5CL4QYQ7.js → dialogCommands-XB3ZNSP3.js} +19 -20
- package/{dialogSlice-EKKVFKBJ.js → dialogSlice-4IWM2WIY.js} +10 -10
- package/{docCreateCommands-QHCLYGNW.js → docCreateCommands-QSPTTAN7.js} +18 -19
- package/{docDeleteCommands-DS6KOU6N.js → docDeleteCommands-2E6JZXCP.js} +19 -20
- package/{docReadCommands-FRI5DAKH.js → docReadCommands-N2DQVLLT.js} +18 -19
- package/{docStore-V7EJS4PX.js → docStore-PFZCPHPC.js} +11 -12
- package/{docUpdateCommands-RQO5ZTXT.js → docUpdateCommands-53KFSYEP.js} +18 -19
- package/{handleSendMessageAction-KCF7KII4.js → handleSendMessageAction-4IYJTQAL.js} +10 -10
- package/index.js +57 -57
- package/{machineCommands-IAGAKTHV.js → machineCommands-CR34SD5W.js} +27 -28
- package/{machineWsRunDispatch-JGKC2HEK.js → machineWsRunDispatch-G4O3NQ3I.js} +27 -28
- package/package.json +1 -1
- package/{read-64OQDO3I.js → read-QK7ZRX6G.js} +3 -3
- package/{readDocTool-MXM3T6PE.js → readDocTool-EYDMVRBL.js} +1 -1
- package/{readlineWorkspace-5AQHHIBK.js → readlineWorkspace-UAF5D7TC.js} +52 -90
- package/{removeDialogAgentAction-NEKVAMSH.js → removeDialogAgentAction-TBW3UZJW.js} +7 -7
- package/{runAgentClientLoop-6OGPS6SI.js → runAgentClientLoop-R5WNOWHI.js} +22 -23
- package/{setDialogExtraReferencesAction-WTOHQDIV.js → setDialogExtraReferencesAction-Q3ANF2NR.js} +6 -6
- package/{setPrimaryDialogAgentAction-LDJOYC4F.js → setPrimaryDialogAgentAction-FQ5R3EFJ.js} +7 -7
- package/{settingSlice-4M37TN7V.js → settingSlice-JKKV2T7O.js} +6 -6
- package/{spaceCommands-VTDNKTSF.js → spaceCommands-RZN5K5ND.js} +21 -203
- package/{spaceSlice-LGUZMB7Y.js → spaceSlice-3BVGRL3V.js} +10 -11
- package/{streamAgentChatTurn-TIGCZUNZ.js → streamAgentChatTurn-RVOJZ2HO.js} +25 -27
- package/{switchDialogAgentAction-XVWGKR2Z.js → switchDialogAgentAction-QQGVE4SL.js} +5 -5
- package/{tableCommands-RJZ3V4TF.js → tableCommands-PRJNWN6Q.js} +1 -1
- package/{tools-BQAOPYMR.js → tools-QAKUH2P6.js} +18 -19
- package/{updateDialogTitleAction-E6HMEDPH.js → updateDialogTitleAction-4O5PZVQR.js} +12 -14
- package/chunk-LEVCXTDN.js +0 -5558
- package/chunk-YLC42PIE.js +0 -7889
|
@@ -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,7 +111,7 @@ 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
116
|
import "./chunk-XORE26Z4.js";
|
|
117
117
|
import "./chunk-LTRXGFMS.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
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,19 +157,18 @@ 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-
|
|
164
|
-
import "./chunk-
|
|
165
|
-
import "./chunk-
|
|
162
|
+
import "./chunk-2TZP235J.js";
|
|
163
|
+
import "./chunk-YK2QRWTO.js";
|
|
164
|
+
import "./chunk-Q24P6TUS.js";
|
|
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
170
|
import "./chunk-PACNSC37.js";
|
|
171
171
|
import "./chunk-3LY4F7SV.js";
|
|
172
|
-
import "./chunk-YLC42PIE.js";
|
|
173
172
|
import {
|
|
174
173
|
DEFAULT_CONTEXT_WINDOW,
|
|
175
174
|
estimateTokenCount,
|
|
@@ -177,13 +176,13 @@ import {
|
|
|
177
176
|
getModelContextWindow,
|
|
178
177
|
planCompression,
|
|
179
178
|
serializeMessageContent
|
|
180
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-O6YCGBJB.js";
|
|
181
180
|
import {
|
|
182
181
|
buildBuiltinSummaryContent,
|
|
183
182
|
clipCompactText
|
|
184
183
|
} from "./chunk-OB6FBSH3.js";
|
|
185
|
-
import "./chunk-
|
|
186
|
-
import "./chunk-
|
|
184
|
+
import "./chunk-IZ3CBMD5.js";
|
|
185
|
+
import "./chunk-4ZMTXQFB.js";
|
|
187
186
|
import "./chunk-JZPBVBIY.js";
|
|
188
187
|
import "./chunk-5RGU3J7P.js";
|
|
189
188
|
import "./chunk-M76ECQRD.js";
|
|
@@ -194,7 +193,7 @@ import {
|
|
|
194
193
|
compactWhitespace
|
|
195
194
|
} from "./chunk-DWLEOOGR.js";
|
|
196
195
|
import "./chunk-3ASDTTEI.js";
|
|
197
|
-
import "./chunk-
|
|
196
|
+
import "./chunk-YLADSPDU.js";
|
|
198
197
|
import "./chunk-WTGCTVJG.js";
|
|
199
198
|
import "./chunk-CWMSB67P.js";
|
|
200
199
|
import "./chunk-EIQDGAAE.js";
|
|
@@ -223,20 +222,20 @@ import {
|
|
|
223
222
|
import {
|
|
224
223
|
DEFAULT_NOLO_SERVER_URL
|
|
225
224
|
} from "./chunk-OLZBQWZU.js";
|
|
226
|
-
import "./chunk-
|
|
227
|
-
import "./chunk-
|
|
225
|
+
import "./chunk-DKRT67FG.js";
|
|
226
|
+
import "./chunk-446VANPP.js";
|
|
228
227
|
import "./chunk-KX6YBIHG.js";
|
|
229
|
-
import "./chunk-
|
|
230
|
-
import "./chunk-
|
|
228
|
+
import "./chunk-A4JDTA5T.js";
|
|
229
|
+
import "./chunk-BOL2D2JW.js";
|
|
231
230
|
import {
|
|
232
231
|
asTrimmedLowercaseString
|
|
233
232
|
} from "./chunk-QSJ3HFEF.js";
|
|
234
|
-
import "./chunk-
|
|
233
|
+
import "./chunk-DWQNDGO7.js";
|
|
235
234
|
import {
|
|
236
235
|
extractCustomId
|
|
237
236
|
} from "./chunk-TOW4E763.js";
|
|
238
|
-
import "./chunk-
|
|
239
|
-
import "./chunk-
|
|
237
|
+
import "./chunk-ZFTCLBEX.js";
|
|
238
|
+
import "./chunk-R5V5G73M.js";
|
|
240
239
|
import "./chunk-LCBAMY2M.js";
|
|
241
240
|
import "./chunk-4SN6J65J.js";
|
|
242
241
|
import "./chunk-CF7PE763.js";
|
|
@@ -3638,6 +3637,7 @@ var SLASH_COMMANDS = [
|
|
|
3638
3637
|
"/ctx",
|
|
3639
3638
|
"/runtime",
|
|
3640
3639
|
"/tools",
|
|
3640
|
+
"/thinking",
|
|
3641
3641
|
"/switch",
|
|
3642
3642
|
"/agent",
|
|
3643
3643
|
"/agents",
|
|
@@ -4726,18 +4726,6 @@ function finalizeCurrentTurn(history) {
|
|
|
4726
4726
|
}
|
|
4727
4727
|
}
|
|
4728
4728
|
}
|
|
4729
|
-
function appendLocalTurn(history, command, output) {
|
|
4730
|
-
finalizeCurrentTurn(history);
|
|
4731
|
-
history.turns.push({
|
|
4732
|
-
role: "local",
|
|
4733
|
-
command,
|
|
4734
|
-
content: output
|
|
4735
|
-
});
|
|
4736
|
-
if (history.turns.length > MAX_TUI_HISTORY_TURNS) {
|
|
4737
|
-
history.turns = history.turns.slice(history.turns.length - MAX_TUI_HISTORY_TURNS);
|
|
4738
|
-
}
|
|
4739
|
-
resetStreamingTurnCache();
|
|
4740
|
-
}
|
|
4741
4729
|
function applyOutputChunkToCurrentTurn(history, chunk) {
|
|
4742
4730
|
const next = applyTerminalOutputToText(history.currentContent, chunk);
|
|
4743
4731
|
if (next === history.currentContent) return false;
|
|
@@ -4765,7 +4753,7 @@ function fillUserBubbleRow(row, surfaceSeq, contentWidth) {
|
|
|
4765
4753
|
}
|
|
4766
4754
|
return renderSurfaceLine({ text: row, surface: surfaceSeq, padTo: contentWidth });
|
|
4767
4755
|
}
|
|
4768
|
-
function renderTurnBlock(role, content, contentWidth, colorEnabled
|
|
4756
|
+
function renderTurnBlock(role, content, contentWidth, colorEnabled) {
|
|
4769
4757
|
content = content.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
4770
4758
|
const lines = [];
|
|
4771
4759
|
if (role === "user") {
|
|
@@ -4784,21 +4772,6 @@ function renderTurnBlock(role, content, contentWidth, colorEnabled, command) {
|
|
|
4784
4772
|
...surfaceSeq ? rows.map((row) => fillUserBubbleRow(row, surfaceSeq, contentWidth)) : rows
|
|
4785
4773
|
);
|
|
4786
4774
|
}
|
|
4787
|
-
} else if (role === "local") {
|
|
4788
|
-
const dimSeq = colorEnabled ? "\x1B[2m" : "";
|
|
4789
|
-
const resetSeq = colorEnabled ? "\x1B[0m" : "";
|
|
4790
|
-
if (command) {
|
|
4791
|
-
lines.push(
|
|
4792
|
-
...wrapTranscriptLine(`${dimSeq}\u203A ${command}${resetSeq}`, contentWidth)
|
|
4793
|
-
);
|
|
4794
|
-
}
|
|
4795
|
-
if (content) {
|
|
4796
|
-
for (const line of content.split("\n")) {
|
|
4797
|
-
lines.push(
|
|
4798
|
-
...wrapTranscriptLine(`${dimSeq} ${line}${resetSeq}`, contentWidth)
|
|
4799
|
-
);
|
|
4800
|
-
}
|
|
4801
|
-
}
|
|
4802
4775
|
} else {
|
|
4803
4776
|
const styledEntry = styleAssistantTurn(content, colorEnabled);
|
|
4804
4777
|
for (const logicalLine of styledEntry.split("\n")) {
|
|
@@ -4932,22 +4905,13 @@ function getAssistantPlainLines(content) {
|
|
|
4932
4905
|
assistantPlainLinesCache.set(content, plainLines);
|
|
4933
4906
|
return plainLines;
|
|
4934
4907
|
}
|
|
4935
|
-
function countTurnLines(role, content, contentWidth
|
|
4908
|
+
function countTurnLines(role, content, contentWidth) {
|
|
4936
4909
|
content = content.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
4937
4910
|
let count = 0;
|
|
4938
4911
|
if (role === "user") {
|
|
4939
4912
|
for (const line of content.split("\n")) {
|
|
4940
4913
|
count += wrapTranscriptLine(`\u2503 ${line}`, contentWidth, "\u2503 ").length;
|
|
4941
4914
|
}
|
|
4942
|
-
} else if (role === "local") {
|
|
4943
|
-
if (command) {
|
|
4944
|
-
count += wrapTranscriptLine(`\u203A ${command}`, contentWidth).length;
|
|
4945
|
-
}
|
|
4946
|
-
if (content) {
|
|
4947
|
-
for (const line of content.split("\n")) {
|
|
4948
|
-
count += wrapTranscriptLine(` ${line}`, contentWidth).length;
|
|
4949
|
-
}
|
|
4950
|
-
}
|
|
4951
4915
|
} else {
|
|
4952
4916
|
const plainLines = getAssistantPlainLines(content);
|
|
4953
4917
|
for (let i = 0; i < plainLines.length; i++) {
|
|
@@ -4971,7 +4935,7 @@ function buildTurnOffsets(history, contentWidth) {
|
|
|
4971
4935
|
if (cached && cached.width === contentWidth) {
|
|
4972
4936
|
lineCount = cached.count;
|
|
4973
4937
|
} else {
|
|
4974
|
-
lineCount = countTurnLines(turn.role, turn.content, contentWidth
|
|
4938
|
+
lineCount = countTurnLines(turn.role, turn.content, contentWidth);
|
|
4975
4939
|
turnLineCountCache.set(turn, { width: contentWidth, count: lineCount });
|
|
4976
4940
|
}
|
|
4977
4941
|
entries.push({ startRow: offset, lineCount, separatorAbove });
|
|
@@ -4991,14 +4955,7 @@ function buildCopyViewLines(history) {
|
|
|
4991
4955
|
for (const [index, turn] of turns.entries()) {
|
|
4992
4956
|
if (index > 0) lines.push("");
|
|
4993
4957
|
const normalized = stripAnsi(turn.content).replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
4994
|
-
|
|
4995
|
-
if (turn.command) {
|
|
4996
|
-
lines.push(`\u203A ${stripAnsi(turn.command)}`);
|
|
4997
|
-
}
|
|
4998
|
-
lines.push(...normalized.split("\n"));
|
|
4999
|
-
} else {
|
|
5000
|
-
lines.push(...normalized.split("\n"));
|
|
5001
|
-
}
|
|
4958
|
+
lines.push(...normalized.split("\n"));
|
|
5002
4959
|
}
|
|
5003
4960
|
return lines;
|
|
5004
4961
|
}
|
|
@@ -5062,7 +5019,7 @@ function renderHistory(output, history, inputLines) {
|
|
|
5062
5019
|
lines = cached.lines;
|
|
5063
5020
|
} else {
|
|
5064
5021
|
renderCacheMissCount += 1;
|
|
5065
|
-
lines = renderTurnBlock(turn.role, turn.content, contentWidth, colorEnabled
|
|
5022
|
+
lines = renderTurnBlock(turn.role, turn.content, contentWidth, colorEnabled);
|
|
5066
5023
|
turnLineCache.set(turn, {
|
|
5067
5024
|
width: contentWidth,
|
|
5068
5025
|
color: colorEnabled,
|
|
@@ -6528,7 +6485,7 @@ async function startTuiWorkspace(options) {
|
|
|
6528
6485
|
activeTurnAbort.abort();
|
|
6529
6486
|
}
|
|
6530
6487
|
};
|
|
6531
|
-
const emitCommandOutput = (text
|
|
6488
|
+
const emitCommandOutput = (text) => {
|
|
6532
6489
|
if (!text) return;
|
|
6533
6490
|
if (!isInteractiveInput(input)) {
|
|
6534
6491
|
output.write(`${text}
|
|
@@ -6536,7 +6493,9 @@ async function startTuiWorkspace(options) {
|
|
|
6536
6493
|
return;
|
|
6537
6494
|
}
|
|
6538
6495
|
history.followBottom = true;
|
|
6539
|
-
|
|
6496
|
+
startTurn(history, "assistant");
|
|
6497
|
+
appendToCurrentTurn(history, text);
|
|
6498
|
+
finalizeCurrentTurn(history);
|
|
6540
6499
|
renderHistoryToOutput();
|
|
6541
6500
|
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
6542
6501
|
};
|
|
@@ -6557,17 +6516,21 @@ async function startTuiWorkspace(options) {
|
|
|
6557
6516
|
const previousAgentKey = state.agentKey;
|
|
6558
6517
|
state = result.nextState;
|
|
6559
6518
|
const interactive = isInteractiveInput(input);
|
|
6560
|
-
if (
|
|
6561
|
-
|
|
6519
|
+
if (interactive && result.action?.type !== "chat") {
|
|
6520
|
+
history.followBottom = true;
|
|
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);
|
|
6562
6529
|
}
|
|
6563
6530
|
if (state.agentKey !== previousAgentKey) {
|
|
6564
6531
|
persistExplicitAgentSwitch(previousAgentKey);
|
|
6565
6532
|
}
|
|
6566
|
-
if (result.action?.type === "exit")
|
|
6567
|
-
if (result.output) output.write(`${result.output}
|
|
6568
|
-
`);
|
|
6569
|
-
return true;
|
|
6570
|
-
}
|
|
6533
|
+
if (result.action?.type === "exit") return true;
|
|
6571
6534
|
if (result.action?.type === "clear") {
|
|
6572
6535
|
if (result.action.dialogId) {
|
|
6573
6536
|
const authToken = resolvePlatformAuthToken(options.env ?? {});
|
|
@@ -7400,7 +7363,6 @@ ${renderStatusLine(state)}
|
|
|
7400
7363
|
}
|
|
7401
7364
|
export {
|
|
7402
7365
|
ANSI_ESCAPE_REGEX,
|
|
7403
|
-
appendLocalTurn,
|
|
7404
7366
|
appendToCurrentTurn,
|
|
7405
7367
|
applyOutputChunkToCurrentTurn,
|
|
7406
7368
|
applyScrollAction,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanupCliSessionForDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IZ3CBMD5.js";
|
|
4
4
|
import {
|
|
5
5
|
getPrimaryDialogAgentId,
|
|
6
6
|
removeDialogAgentId
|
|
@@ -12,18 +12,18 @@ import {
|
|
|
12
12
|
getActiveDialogKey
|
|
13
13
|
} from "./chunk-3ASDTTEI.js";
|
|
14
14
|
import "./chunk-ZHXJ6M7T.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-446VANPP.js";
|
|
16
16
|
import "./chunk-KX6YBIHG.js";
|
|
17
17
|
import {
|
|
18
18
|
patch,
|
|
19
19
|
selectById
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-A4JDTA5T.js";
|
|
21
|
+
import "./chunk-BOL2D2JW.js";
|
|
22
22
|
import "./chunk-QSJ3HFEF.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-DWQNDGO7.js";
|
|
24
24
|
import "./chunk-TOW4E763.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-ZFTCLBEX.js";
|
|
26
|
+
import "./chunk-R5V5G73M.js";
|
|
27
27
|
import "./chunk-LCBAMY2M.js";
|
|
28
28
|
import "./chunk-4SN6J65J.js";
|
|
29
29
|
import "./chunk-CF7PE763.js";
|
|
@@ -1,48 +1,47 @@
|
|
|
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
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-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-2TZP235J.js";
|
|
24
|
+
import "./chunk-YK2QRWTO.js";
|
|
25
|
+
import "./chunk-Q24P6TUS.js";
|
|
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
|
-
import "./chunk-YLC42PIE.js";
|
|
33
32
|
import {
|
|
34
33
|
updateTokensAction
|
|
35
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-O6YCGBJB.js";
|
|
36
35
|
import "./chunk-OB6FBSH3.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-IZ3CBMD5.js";
|
|
37
|
+
import "./chunk-4ZMTXQFB.js";
|
|
39
38
|
import "./chunk-JZPBVBIY.js";
|
|
40
39
|
import "./chunk-5RGU3J7P.js";
|
|
41
40
|
import "./chunk-M76ECQRD.js";
|
|
42
41
|
import "./chunk-HNMXYYJR.js";
|
|
43
42
|
import "./chunk-DWLEOOGR.js";
|
|
44
43
|
import "./chunk-3ASDTTEI.js";
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-YLADSPDU.js";
|
|
46
45
|
import "./chunk-WTGCTVJG.js";
|
|
47
46
|
import "./chunk-CWMSB67P.js";
|
|
48
47
|
import {
|
|
@@ -52,24 +51,24 @@ import "./chunk-ZHXJ6M7T.js";
|
|
|
52
51
|
import "./chunk-CAENRKNJ.js";
|
|
53
52
|
import "./chunk-63W5N6P3.js";
|
|
54
53
|
import "./chunk-VF4K2QE6.js";
|
|
55
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-DKRT67FG.js";
|
|
56
55
|
import {
|
|
57
56
|
selectCurrentServer
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-446VANPP.js";
|
|
59
58
|
import "./chunk-KX6YBIHG.js";
|
|
60
59
|
import {
|
|
61
60
|
read
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-A4JDTA5T.js";
|
|
62
|
+
import "./chunk-BOL2D2JW.js";
|
|
64
63
|
import "./chunk-QSJ3HFEF.js";
|
|
65
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-DWQNDGO7.js";
|
|
66
65
|
import {
|
|
67
66
|
extractCustomId
|
|
68
67
|
} from "./chunk-TOW4E763.js";
|
|
69
68
|
import {
|
|
70
69
|
selectIdentityToken
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-ZFTCLBEX.js";
|
|
71
|
+
import "./chunk-R5V5G73M.js";
|
|
73
72
|
import "./chunk-LCBAMY2M.js";
|
|
74
73
|
import "./chunk-4SN6J65J.js";
|
|
75
74
|
import "./chunk-CF7PE763.js";
|
package/{setDialogExtraReferencesAction-WTOHQDIV.js → setDialogExtraReferencesAction-Q3ANF2NR.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setDialogExtraReferencesAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q24P6TUS.js";
|
|
4
4
|
import "./chunk-M76ECQRD.js";
|
|
5
5
|
import "./chunk-3ASDTTEI.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-A4JDTA5T.js";
|
|
7
|
+
import "./chunk-BOL2D2JW.js";
|
|
8
8
|
import "./chunk-QSJ3HFEF.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-DWQNDGO7.js";
|
|
10
10
|
import "./chunk-TOW4E763.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ZFTCLBEX.js";
|
|
12
|
+
import "./chunk-R5V5G73M.js";
|
|
13
13
|
import "./chunk-LCBAMY2M.js";
|
|
14
14
|
import "./chunk-4SN6J65J.js";
|
|
15
15
|
import "./chunk-CF7PE763.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanupCliSessionForDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IZ3CBMD5.js";
|
|
4
4
|
import {
|
|
5
5
|
getPrimaryDialogAgentId,
|
|
6
6
|
replacePrimaryDialogAgentId
|
|
@@ -12,18 +12,18 @@ import {
|
|
|
12
12
|
getActiveDialogKey
|
|
13
13
|
} from "./chunk-3ASDTTEI.js";
|
|
14
14
|
import "./chunk-ZHXJ6M7T.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-446VANPP.js";
|
|
16
16
|
import "./chunk-KX6YBIHG.js";
|
|
17
17
|
import {
|
|
18
18
|
patch,
|
|
19
19
|
selectById
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-A4JDTA5T.js";
|
|
21
|
+
import "./chunk-BOL2D2JW.js";
|
|
22
22
|
import "./chunk-QSJ3HFEF.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-DWQNDGO7.js";
|
|
24
24
|
import "./chunk-TOW4E763.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-ZFTCLBEX.js";
|
|
26
|
+
import "./chunk-R5V5G73M.js";
|
|
27
27
|
import "./chunk-LCBAMY2M.js";
|
|
28
28
|
import "./chunk-4SN6J65J.js";
|
|
29
29
|
import "./chunk-CF7PE763.js";
|
|
@@ -87,15 +87,15 @@ import {
|
|
|
87
87
|
toggleEditorWordCount,
|
|
88
88
|
toggleEnableReadCurrentSpace,
|
|
89
89
|
toggleShowThinking
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-446VANPP.js";
|
|
91
91
|
import "./chunk-KX6YBIHG.js";
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-A4JDTA5T.js";
|
|
93
|
+
import "./chunk-BOL2D2JW.js";
|
|
94
94
|
import "./chunk-QSJ3HFEF.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-DWQNDGO7.js";
|
|
96
96
|
import "./chunk-TOW4E763.js";
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-ZFTCLBEX.js";
|
|
98
|
+
import "./chunk-R5V5G73M.js";
|
|
99
99
|
import "./chunk-LCBAMY2M.js";
|
|
100
100
|
import "./chunk-4SN6J65J.js";
|
|
101
101
|
import "./chunk-CF7PE763.js";
|