nolo-cli 0.12.0-alpha.5 → 0.12.0-alpha.7
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-L4JM5R23.js → _executeModel-Q4IYLZS4.js} +21 -21
- package/{action-RAXNQQKC.js → action-OTOWUMPW.js} +3 -3
- package/{addContentAction-ZHI7TVV3.js → addContentAction-JGBUVR7K.js} +2 -2
- package/{addDialogAgentAction-JWXPKXNC.js → addDialogAgentAction-V6CL2UCF.js} +1 -1
- package/{agentDeleteCommand-MWB2LXG6.js → agentDeleteCommand-7KI5P63D.js} +13 -13
- package/{agentEmailCommands-32ZZ4VSU.js → agentEmailCommands-DEMUYI4P.js} +25 -25
- package/{agentListCommands-SKUYB2RQ.js → agentListCommands-UOKKEHD5.js} +14 -14
- package/{agentMachineCommands-EHFBWQ2U.js → agentMachineCommands-P6O6QHTM.js} +13 -13
- package/{agentRecordCommands-DSMDSFMJ.js → agentRecordCommands-YTDXSM7M.js} +25 -25
- package/{agentRunCommand-MEVHCOMH.js → agentRunCommand-THSCEIK2.js} +26 -26
- package/{agentRuntimeLocal-PR67XWQK.js → agentRuntimeLocal-URCNA6VW.js} +10 -10
- package/{agentSlice-Y3NABOKT.js → agentSlice-X6ULYPOA.js} +2 -2
- package/{chunk-RNYKVIND.js → chunk-2XFDQEXO.js} +4 -4
- package/{chunk-FW4SQ6II.js → chunk-3ERGZN5Y.js} +1 -1
- package/{chunk-XRFEX5ZP.js → chunk-5KXZEOB6.js} +1 -1
- package/{chunk-ZR4VHQ5D.js → chunk-6TISG7CK.js} +1 -1
- package/{chunk-OILEWBXT.js → chunk-72PCQ5XQ.js} +1 -1
- package/{chunk-FHTPQXHP.js → chunk-7HV5OHEM.js} +1 -1
- package/{chunk-45JUQTYY.js → chunk-AS3ZQ3O2.js} +0 -17
- package/{chunk-5DVIMRVT.js → chunk-B4KT7RN2.js} +4 -4
- package/{chunk-CJIOTRWY.js → chunk-BLX7A3UL.js} +2 -2
- package/{chunk-74D2NYOA.js → chunk-C6C43FKQ.js} +4 -4
- package/{chunk-324SDMXK.js → chunk-D5UOJGZU.js} +2 -2
- package/{chunk-7MYHLZ3F.js → chunk-DPFWKRHG.js} +1 -1
- package/{chunk-MCXQFHBX.js → chunk-DWXS7QEV.js} +14 -14
- package/{chunk-G5S6HMHH.js → chunk-EGPNTKU2.js} +10 -10
- package/{chunk-B54KNGXI.js → chunk-F4RTTHOQ.js} +3 -3
- package/{chunk-Z6ZZXQOZ.js → chunk-GEJ3NVPG.js} +1 -1
- package/{chunk-OCDEWRE2.js → chunk-JKWWVF2I.js} +1 -1
- package/{chunk-WTYKCU4W.js → chunk-JU7J7EAV.js} +37 -37
- package/{chunk-S73OEOHH.js → chunk-NAEAB62H.js} +3 -3
- package/{chunk-S3UTETIC.js → chunk-OGGHETUE.js} +19 -4
- package/{chunk-YC2MRILU.js → chunk-PKDL3HPF.js} +2 -2
- package/{chunk-UG3WOFU6.js → chunk-QJSTNKJY.js} +1 -1
- package/{chunk-TZS6YZTS.js → chunk-QTNKHFAK.js} +157 -18
- package/{chunk-A4QALINN.js → chunk-R64KFNTS.js} +2 -2
- package/{chunk-TNQJQ6HM.js → chunk-REH2ABIG.js} +27 -33
- package/{chunk-6LMFFG3K.js → chunk-RWO5DGXI.js} +2 -2
- package/{chunk-FMT767NK.js → chunk-UIYF67QX.js} +24 -19
- package/{chunk-NITP2JDG.js → chunk-VKG4HXYV.js} +1 -1
- package/{chunk-TSKWE74T.js → chunk-WO24IT3V.js} +1 -1
- package/{chunk-3HHTVM6G.js → chunk-WVTBAALN.js} +1 -1
- package/{chunk-UJ5L6X7H.js → chunk-WWIMZXTC.js} +2 -2
- package/{chunk-4GBNEA5B.js → chunk-Y3BLUPNS.js} +1 -1
- package/{chunk-JCU2JDCV.js → chunk-YCXS3OPT.js} +15 -6
- package/{chunk-DFGCBRIA.js → chunk-YRWNTL6W.js} +11 -11
- package/{chunk-QY4QCWDL.js → chunk-Z2BX5TKZ.js} +3 -3
- package/{chunk-TVQEB7RV.js → chunk-ZPPBDWKK.js} +1 -1
- package/{createAgentAutomationAction-YWC4P6JX.js → createAgentAutomationAction-2RY5SO76.js} +8 -8
- package/{createDialogAction-IQP745JA.js → createDialogAction-ZBASPHZU.js} +9 -9
- package/{createPageAction-T4RZCJKF.js → createPageAction-F5IAHELK.js} +8 -8
- package/{dbSlice-WDP2ZZHK.js → dbSlice-J4PUZ6Y5.js} +1 -1
- package/{dialogCommands-BTHTTSE2.js → dialogCommands-3THDF2JT.js} +14 -14
- package/{dialogSlice-QR7SDOEV.js → dialogSlice-K2USDPWM.js} +8 -8
- package/{docCreateCommands-PQEX44Q7.js → docCreateCommands-ZBB5YVX6.js} +13 -13
- package/{docDeleteCommands-B3Q2M42N.js → docDeleteCommands-6K7UJDRZ.js} +14 -14
- package/{docReadCommands-RCUVTX3Q.js → docReadCommands-W3G6RMEK.js} +13 -13
- package/{docStore-Y43RC35L.js → docStore-UPTODHEV.js} +9 -9
- package/{docUpdateCommands-NS5QAUAJ.js → docUpdateCommands-B3BNRXSH.js} +13 -13
- package/{getPricing-6TOZXPAU.js → getPricing-UGDJHI7M.js} +2 -2
- package/{handleSendMessageAction-L7L463O4.js → handleSendMessageAction-VZNBYBOR.js} +8 -8
- package/index.js +36 -36
- package/{machineCommands-KJZXH2FO.js → machineCommands-DEIHAXA4.js} +24 -24
- package/{machineWsRunDispatch-V4HBAZY6.js → machineWsRunDispatch-EOCGXTWR.js} +24 -24
- package/package.json +1 -1
- package/{readlineWorkspace-LRPVHBM3.js → readlineWorkspace-5EUY7IQZ.js} +75 -55
- package/{removeDialogAgentAction-GTX5AN54.js → removeDialogAgentAction-XUZYQBV4.js} +3 -3
- package/{runAgentClientLoop-DXNOTYXP.js → runAgentClientLoop-BG7MN7X7.js} +18 -18
- package/{setDialogExtraReferencesAction-WFQ63KYO.js → setDialogExtraReferencesAction-PTAIFKGM.js} +1 -1
- package/{setPrimaryDialogAgentAction-P57FXTSU.js → setPrimaryDialogAgentAction-HRFTDB44.js} +3 -3
- package/{settingSlice-CK5YZGNI.js → settingSlice-VGRJUSE5.js} +2 -2
- package/{skillDiscovery-SZEA7TH6.js → skillDiscovery-6M2BZUFN.js} +1 -1
- package/{spaceCommands-VTJYPRFQ.js → spaceCommands-K5BQGCFE.js} +13 -13
- package/{spaceSlice-PSAREO5S.js → spaceSlice-5VGNKIE4.js} +10 -8
- package/{streamAgentChatTurn-54CNCH2V.js → streamAgentChatTurn-Y4AAGJJG.js} +45 -22
- package/{tools-SIU3JFHL.js → tools-HG53NEI2.js} +13 -13
- package/{tuiSummaryLlmCaller-TXLF4MEI.js → tuiSummaryLlmCaller-YEHSPGXZ.js} +3 -3
- package/{updateDialogTitleAction-3VT7R3GN.js → updateDialogTitleAction-3F5SATT4.js} +8 -8
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
normalizeDialogRecord,
|
|
4
4
|
readDialogSnapshot,
|
|
5
5
|
sortDialogs
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GEJ3NVPG.js";
|
|
7
7
|
import {
|
|
8
8
|
ANSI_ESCAPE_REGEX,
|
|
9
9
|
CLI_AUTO_TIER_AGENT_KEYS,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
visibleWidth,
|
|
58
58
|
wrapTextToLines,
|
|
59
59
|
wrapTranscriptLine
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-REH2ABIG.js";
|
|
61
61
|
import "./chunk-3QAF2LTL.js";
|
|
62
62
|
import "./chunk-6HYVJV7B.js";
|
|
63
63
|
import {
|
|
@@ -65,18 +65,18 @@ import {
|
|
|
65
65
|
listLocalCachedAgents,
|
|
66
66
|
listRemoteAgents,
|
|
67
67
|
listRemoteAgentsAcrossServers
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-BLX7A3UL.js";
|
|
69
69
|
import "./chunk-ID4G2MAR.js";
|
|
70
70
|
import {
|
|
71
71
|
listUserRecordsFromServers
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-72PCQ5XQ.js";
|
|
73
73
|
import {
|
|
74
74
|
createCliLocalRuntimeAdapter,
|
|
75
75
|
initCliLocale,
|
|
76
76
|
parseCliLocale,
|
|
77
77
|
setCliLocale,
|
|
78
78
|
t
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-DWXS7QEV.js";
|
|
80
80
|
import "./chunk-TOILAPLH.js";
|
|
81
81
|
import "./chunk-CMKUBIGW.js";
|
|
82
82
|
import "./chunk-JBTJAPUF.js";
|
|
@@ -86,22 +86,22 @@ import {
|
|
|
86
86
|
import {
|
|
87
87
|
queryUserRecords,
|
|
88
88
|
readDbRecord
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import "./chunk-
|
|
89
|
+
} from "./chunk-3ERGZN5Y.js";
|
|
90
|
+
import "./chunk-5KXZEOB6.js";
|
|
91
91
|
import {
|
|
92
92
|
resolveCliAgentKeyInput
|
|
93
93
|
} from "./chunk-VHBWHNVT.js";
|
|
94
94
|
import "./chunk-LTRXGFMS.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-QJSTNKJY.js";
|
|
96
96
|
import "./chunk-ATNTHIZI.js";
|
|
97
97
|
import "./chunk-JEXVIMYZ.js";
|
|
98
98
|
import {
|
|
99
99
|
prepareTools
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
100
|
+
} from "./chunk-PKDL3HPF.js";
|
|
101
|
+
import "./chunk-Y3BLUPNS.js";
|
|
102
102
|
import {
|
|
103
103
|
expandEnabledPacks
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-QTNKHFAK.js";
|
|
105
105
|
import "./chunk-RQSOAMPJ.js";
|
|
106
106
|
import "./chunk-OOIN7HSO.js";
|
|
107
107
|
import "./chunk-KQHGZWSV.js";
|
|
@@ -110,49 +110,49 @@ import "./chunk-3LY4F7SV.js";
|
|
|
110
110
|
import "./chunk-VP4WJWKW.js";
|
|
111
111
|
import "./chunk-63W5N6P3.js";
|
|
112
112
|
import "./chunk-VF4K2QE6.js";
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
113
|
+
import "./chunk-Z2BX5TKZ.js";
|
|
114
|
+
import "./chunk-D5UOJGZU.js";
|
|
115
115
|
import "./chunk-VC6OZXO5.js";
|
|
116
116
|
import "./chunk-OWOHNGCN.js";
|
|
117
117
|
import {
|
|
118
118
|
extractReferenceKeysFromMessage
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-UIYF67QX.js";
|
|
120
120
|
import {
|
|
121
121
|
buildBuiltinSummaryContent
|
|
122
122
|
} from "./chunk-V2J635L5.js";
|
|
123
123
|
import "./chunk-MRC4Q34M.js";
|
|
124
124
|
import "./chunk-MTU75CZ2.js";
|
|
125
125
|
import "./chunk-CWMSB67P.js";
|
|
126
|
-
import "./chunk-
|
|
127
|
-
import "./chunk-
|
|
126
|
+
import "./chunk-C6C43FKQ.js";
|
|
127
|
+
import "./chunk-RWO5DGXI.js";
|
|
128
128
|
import "./chunk-Z4NR32XR.js";
|
|
129
129
|
import "./chunk-M76ECQRD.js";
|
|
130
130
|
import {
|
|
131
131
|
buildSkillDiscoveryContextBlock
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-AS3ZQ3O2.js";
|
|
133
133
|
import "./chunk-WZSRQNQG.js";
|
|
134
134
|
import {
|
|
135
135
|
buildLocalWorkspaceOpenAiTools,
|
|
136
136
|
buildLocalWorkspaceToolset,
|
|
137
137
|
getProcessRegistry
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-2XFDQEXO.js";
|
|
139
139
|
import "./chunk-ZNFJWEN4.js";
|
|
140
|
-
import "./chunk-
|
|
140
|
+
import "./chunk-6TISG7CK.js";
|
|
141
141
|
import "./chunk-NCGFB7NN.js";
|
|
142
142
|
import {
|
|
143
143
|
readCommandActionGatePayload,
|
|
144
144
|
resolveAgentImageInputSupport
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-YCXS3OPT.js";
|
|
146
146
|
import "./chunk-OPZYGHUC.js";
|
|
147
147
|
import {
|
|
148
148
|
buildCurrentTimeBlock,
|
|
149
149
|
buildIdentityBlock,
|
|
150
150
|
buildRuntimeGuidanceBlocks
|
|
151
|
-
} from "./chunk-
|
|
152
|
-
import "./chunk-
|
|
151
|
+
} from "./chunk-7HV5OHEM.js";
|
|
152
|
+
import "./chunk-WO24IT3V.js";
|
|
153
153
|
import {
|
|
154
154
|
canonicalizeToolNames
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-B4KT7RN2.js";
|
|
156
156
|
import {
|
|
157
157
|
DEFAULT_CONTEXT_WINDOW,
|
|
158
158
|
clipCompactText,
|
|
@@ -160,8 +160,8 @@ import {
|
|
|
160
160
|
getModelContextWindow,
|
|
161
161
|
planCompression,
|
|
162
162
|
serializeMessageContent
|
|
163
|
-
} from "./chunk-
|
|
164
|
-
import "./chunk-
|
|
163
|
+
} from "./chunk-NAEAB62H.js";
|
|
164
|
+
import "./chunk-OGGHETUE.js";
|
|
165
165
|
import "./chunk-PDL2AV3E.js";
|
|
166
166
|
import "./chunk-JZPBVBIY.js";
|
|
167
167
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -197,12 +197,12 @@ import {
|
|
|
197
197
|
} from "./chunk-IDZTNRP2.js";
|
|
198
198
|
import "./chunk-IKXL2HZ3.js";
|
|
199
199
|
import "./chunk-524BDL33.js";
|
|
200
|
-
import "./chunk-
|
|
201
|
-
import "./chunk-
|
|
200
|
+
import "./chunk-DPFWKRHG.js";
|
|
201
|
+
import "./chunk-JU7J7EAV.js";
|
|
202
202
|
import "./chunk-Y5GCAMGP.js";
|
|
203
203
|
import "./chunk-KX6YBIHG.js";
|
|
204
|
-
import "./chunk-
|
|
205
|
-
import "./chunk-
|
|
204
|
+
import "./chunk-WVTBAALN.js";
|
|
205
|
+
import "./chunk-VKG4HXYV.js";
|
|
206
206
|
import "./chunk-WPHL6ALY.js";
|
|
207
207
|
import "./chunk-O4BU24WZ.js";
|
|
208
208
|
import "./chunk-I42VC5KR.js";
|
|
@@ -1070,6 +1070,27 @@ function createInitialAskChoiceState(questions) {
|
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
1072
|
function askChoiceReducer(state, action) {
|
|
1073
|
+
if (action.type === "HYDRATE_QUESTIONS") {
|
|
1074
|
+
if (state.phase !== "active") return state;
|
|
1075
|
+
const newQuestions = action.questions;
|
|
1076
|
+
if (newQuestions.length <= state.questionStates.length) {
|
|
1077
|
+
if (newQuestions.length === state.questions.length) return state;
|
|
1078
|
+
return { ...state, questions: newQuestions };
|
|
1079
|
+
}
|
|
1080
|
+
const appended = newQuestions.slice(state.questionStates.length).map(() => ({
|
|
1081
|
+
cursorIndex: 0,
|
|
1082
|
+
selectedIds: [],
|
|
1083
|
+
pickedId: null,
|
|
1084
|
+
otherText: "",
|
|
1085
|
+
otherFocused: false
|
|
1086
|
+
}));
|
|
1087
|
+
return {
|
|
1088
|
+
...state,
|
|
1089
|
+
questions: newQuestions,
|
|
1090
|
+
questionStates: [...state.questionStates, ...appended],
|
|
1091
|
+
activeIndex: Math.min(state.activeIndex, newQuestions.length - 1)
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1073
1094
|
if (state.phase !== "active") return state;
|
|
1074
1095
|
switch (action.type) {
|
|
1075
1096
|
case "CANCEL":
|
|
@@ -4967,7 +4988,7 @@ async function startTuiWorkspace(options) {
|
|
|
4967
4988
|
if (fixedInput.active && !fixedInput.isPaused()) {
|
|
4968
4989
|
output.write("\x1B[?2026h\x1B[?25l");
|
|
4969
4990
|
try {
|
|
4970
|
-
fixedInput.repaint(buffer);
|
|
4991
|
+
fixedInput.repaint(buffer, cursorPos);
|
|
4971
4992
|
} finally {
|
|
4972
4993
|
output.write("\x1B[?25h\x1B[?2026l");
|
|
4973
4994
|
}
|
|
@@ -4985,7 +5006,7 @@ async function startTuiWorkspace(options) {
|
|
|
4985
5006
|
fixedInput.resumeFromDialog();
|
|
4986
5007
|
flushPendingRender();
|
|
4987
5008
|
renderHistoryToOutput();
|
|
4988
|
-
fixedInput.repaint(buffer);
|
|
5009
|
+
fixedInput.repaint(buffer, cursorPos);
|
|
4989
5010
|
},
|
|
4990
5011
|
getInputLines: () => fixedInput.getInputLines(),
|
|
4991
5012
|
isPaused: () => fixedInput.isPaused()
|
|
@@ -5010,7 +5031,7 @@ async function startTuiWorkspace(options) {
|
|
|
5010
5031
|
output.write("\x1B[?2026h\x1B[?25l");
|
|
5011
5032
|
try {
|
|
5012
5033
|
renderHistory(output, history, fixedInput.getInputLines());
|
|
5013
|
-
if (fixedInput.active) fixedInput.repaint(buffer);
|
|
5034
|
+
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
5014
5035
|
} finally {
|
|
5015
5036
|
output.write("\x1B[?25h\x1B[?2026l");
|
|
5016
5037
|
}
|
|
@@ -5074,7 +5095,7 @@ ${t("copyViewHint")}
|
|
|
5074
5095
|
fixedInput.resumeFromDialog();
|
|
5075
5096
|
flushPendingRender();
|
|
5076
5097
|
renderHistoryToOutput();
|
|
5077
|
-
fixedInput.repaint(buffer);
|
|
5098
|
+
fixedInput.repaint(buffer, cursorPos);
|
|
5078
5099
|
}
|
|
5079
5100
|
return true;
|
|
5080
5101
|
};
|
|
@@ -5089,7 +5110,7 @@ ${t("copyViewHint")}
|
|
|
5089
5110
|
appendToCurrentTurn(history, message);
|
|
5090
5111
|
finalizeCurrentTurn(history);
|
|
5091
5112
|
renderHistoryToOutput();
|
|
5092
|
-
if (fixedInput.active) fixedInput.repaint(buffer);
|
|
5113
|
+
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
5093
5114
|
startTurn(history, "assistant");
|
|
5094
5115
|
const agentOutput = isInteractiveInput(input) ? createHistoryOutputStream(history, () => {
|
|
5095
5116
|
scheduleRender();
|
|
@@ -5155,7 +5176,7 @@ ${t("copyViewHint")}
|
|
|
5155
5176
|
finalizeCurrentTurn(history);
|
|
5156
5177
|
flushPendingRender();
|
|
5157
5178
|
renderHistoryToOutput();
|
|
5158
|
-
if (fixedInput.active) fixedInput.repaint(buffer);
|
|
5179
|
+
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
5159
5180
|
}
|
|
5160
5181
|
if (wasAborted) {
|
|
5161
5182
|
if (runResult.pendingToolName) {
|
|
@@ -5215,7 +5236,7 @@ ${t("copyViewHint")}
|
|
|
5215
5236
|
appendToCurrentTurn(history, text);
|
|
5216
5237
|
finalizeCurrentTurn(history);
|
|
5217
5238
|
renderHistoryToOutput();
|
|
5218
|
-
if (fixedInput.active) fixedInput.repaint(buffer);
|
|
5239
|
+
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
5219
5240
|
};
|
|
5220
5241
|
const runSubmittedLine = async (line, actionGateHandler, confirmDestructiveAction) => {
|
|
5221
5242
|
if (!line.trim()) return false;
|
|
@@ -5229,7 +5250,7 @@ ${t("copyViewHint")}
|
|
|
5229
5250
|
appendToCurrentTurn(history, line.trim());
|
|
5230
5251
|
finalizeCurrentTurn(history);
|
|
5231
5252
|
renderHistoryToOutput();
|
|
5232
|
-
if (fixedInput.active) fixedInput.repaint(buffer);
|
|
5253
|
+
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
5233
5254
|
}
|
|
5234
5255
|
if (result.output) {
|
|
5235
5256
|
emitCommandOutput(result.output);
|
|
@@ -5372,7 +5393,7 @@ ${t("copyViewHint")}
|
|
|
5372
5393
|
leaveAltScreen(output);
|
|
5373
5394
|
}
|
|
5374
5395
|
renderHistoryToOutput();
|
|
5375
|
-
fixedInput.repaint(buffer);
|
|
5396
|
+
fixedInput.repaint(buffer, cursorPos);
|
|
5376
5397
|
}
|
|
5377
5398
|
if (result.action?.type === "copy-view") {
|
|
5378
5399
|
const opened = await openCopyView();
|
|
@@ -5546,7 +5567,7 @@ ${stderrText.trim()}
|
|
|
5546
5567
|
${err.message}` : ""}`
|
|
5547
5568
|
);
|
|
5548
5569
|
}
|
|
5549
|
-
if (fixedInput.active) fixedInput.repaint(buffer);
|
|
5570
|
+
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
5550
5571
|
}
|
|
5551
5572
|
return false;
|
|
5552
5573
|
};
|
|
@@ -5556,7 +5577,6 @@ ${err.message}` : ""}`
|
|
|
5556
5577
|
let busy = false;
|
|
5557
5578
|
let done = false;
|
|
5558
5579
|
let resolveDone = null;
|
|
5559
|
-
let cursorPos2 = 0;
|
|
5560
5580
|
fixedInput = createFixedInput(output, {
|
|
5561
5581
|
getStatusLine: () => {
|
|
5562
5582
|
let base = renderStatusLine(state);
|
|
@@ -5600,13 +5620,13 @@ ${err.message}` : ""}`
|
|
|
5600
5620
|
fixedInput.init();
|
|
5601
5621
|
const paintFrame = (draft) => {
|
|
5602
5622
|
renderHistoryToOutput();
|
|
5603
|
-
fixedInput.repaint(draft,
|
|
5623
|
+
fixedInput.repaint(draft, cursorPos);
|
|
5604
5624
|
};
|
|
5605
5625
|
const onResize = () => {
|
|
5606
5626
|
if (done || copyViewExitResolver) return;
|
|
5607
5627
|
if (fixedInput.isPaused()) {
|
|
5608
5628
|
renderHistory(output, history, fixedInput.getInputLines());
|
|
5609
|
-
fixedInput.repaint(buffer,
|
|
5629
|
+
fixedInput.repaint(buffer, cursorPos);
|
|
5610
5630
|
return;
|
|
5611
5631
|
}
|
|
5612
5632
|
flushPendingRender();
|
|
@@ -5661,7 +5681,7 @@ ${err.message}` : ""}`
|
|
|
5661
5681
|
emitCommandOutput(t("forceStopped"));
|
|
5662
5682
|
flushPendingRender();
|
|
5663
5683
|
renderHistoryToOutput();
|
|
5664
|
-
if (fixedInput.active) fixedInput.repaint(buffer);
|
|
5684
|
+
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
5665
5685
|
return;
|
|
5666
5686
|
}
|
|
5667
5687
|
const stopBinding = chatQueueBinding;
|
|
@@ -5672,7 +5692,7 @@ ${err.message}` : ""}`
|
|
|
5672
5692
|
activeTurnAbort.abort();
|
|
5673
5693
|
return;
|
|
5674
5694
|
}
|
|
5675
|
-
const result = applyTuiInputKey(buffer, sequence, {},
|
|
5695
|
+
const result = applyTuiInputKey(buffer, sequence, {}, cursorPos, {
|
|
5676
5696
|
pasteStore
|
|
5677
5697
|
});
|
|
5678
5698
|
if (result.copyView) {
|
|
@@ -5724,8 +5744,8 @@ ${hint}` : hint;
|
|
|
5724
5744
|
}
|
|
5725
5745
|
releaseCollapsedPasteReferences(submittedText, pasteStore);
|
|
5726
5746
|
buffer = "";
|
|
5727
|
-
|
|
5728
|
-
if (fixedInput.active) fixedInput.repaint(buffer,
|
|
5747
|
+
cursorPos = 0;
|
|
5748
|
+
if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
|
|
5729
5749
|
return;
|
|
5730
5750
|
}
|
|
5731
5751
|
const binding = ensureChatQueueBinding(
|
|
@@ -5766,8 +5786,8 @@ ${hint}` : hint;
|
|
|
5766
5786
|
if (decision.kind === "queue-text") {
|
|
5767
5787
|
binding.enqueue(decision.text);
|
|
5768
5788
|
buffer = "";
|
|
5769
|
-
|
|
5770
|
-
fixedInput.repaint(buffer,
|
|
5789
|
+
cursorPos = 0;
|
|
5790
|
+
fixedInput.repaint(buffer, cursorPos);
|
|
5771
5791
|
} else if (decision.kind === "queue-blocked") {
|
|
5772
5792
|
} else if (decision.kind === "noop" && !submittedText.trim() && binding.queueLength() > 0) {
|
|
5773
5793
|
if (binding.preemptForDrain()) {
|
|
@@ -5813,7 +5833,7 @@ ${hint}` : hint;
|
|
|
5813
5833
|
if (drainedText !== null) {
|
|
5814
5834
|
busy = true;
|
|
5815
5835
|
buffer = "";
|
|
5816
|
-
|
|
5836
|
+
cursorPos = 0;
|
|
5817
5837
|
fixedInput.enterOutputMode(drainedText);
|
|
5818
5838
|
try {
|
|
5819
5839
|
const outcome = await runOneAgentTurn(
|
|
@@ -5834,13 +5854,13 @@ ${err.message}` : ""}`
|
|
|
5834
5854
|
}
|
|
5835
5855
|
refreshGitStatus();
|
|
5836
5856
|
flushPendingRender();
|
|
5837
|
-
fixedInput.exitOutputMode(buffer,
|
|
5857
|
+
fixedInput.exitOutputMode(buffer, cursorPos);
|
|
5838
5858
|
return;
|
|
5839
5859
|
}
|
|
5840
5860
|
}
|
|
5841
5861
|
busy = startsChatTurn;
|
|
5842
5862
|
buffer = "";
|
|
5843
|
-
|
|
5863
|
+
cursorPos = 0;
|
|
5844
5864
|
fixedInput.enterOutputMode(submittedText);
|
|
5845
5865
|
let shouldExit = false;
|
|
5846
5866
|
try {
|
|
@@ -5886,19 +5906,19 @@ ${err.message}` : ""}`
|
|
|
5886
5906
|
}
|
|
5887
5907
|
refreshGitStatus();
|
|
5888
5908
|
flushPendingRender();
|
|
5889
|
-
fixedInput.exitOutputMode(buffer,
|
|
5909
|
+
fixedInput.exitOutputMode(buffer, cursorPos);
|
|
5890
5910
|
return;
|
|
5891
5911
|
}
|
|
5892
5912
|
buffer = result.buffer;
|
|
5893
|
-
|
|
5894
|
-
fixedInput.repaint(buffer,
|
|
5913
|
+
cursorPos = result.cursorPos ?? buffer.length;
|
|
5914
|
+
fixedInput.repaint(buffer, cursorPos);
|
|
5895
5915
|
};
|
|
5896
5916
|
const onData = createRawInputDecoder((token) => {
|
|
5897
5917
|
void handleInputToken(token);
|
|
5898
5918
|
});
|
|
5899
5919
|
try {
|
|
5900
5920
|
input.on("data", onData);
|
|
5901
|
-
fixedInput.repaint(buffer,
|
|
5921
|
+
fixedInput.repaint(buffer, cursorPos);
|
|
5902
5922
|
refreshGitStatus();
|
|
5903
5923
|
await new Promise((resolve2) => {
|
|
5904
5924
|
resolveDone = resolve2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanupCliSessionForDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RWO5DGXI.js";
|
|
4
4
|
import {
|
|
5
5
|
getPrimaryDialogAgentId,
|
|
6
6
|
removeDialogAgentId
|
|
@@ -12,13 +12,13 @@ import "./chunk-BYXBJQAS.js";
|
|
|
12
12
|
import {
|
|
13
13
|
getActiveDialogKey
|
|
14
14
|
} from "./chunk-3ASDTTEI.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-JU7J7EAV.js";
|
|
16
16
|
import "./chunk-Y5GCAMGP.js";
|
|
17
17
|
import "./chunk-KX6YBIHG.js";
|
|
18
18
|
import {
|
|
19
19
|
patch,
|
|
20
20
|
selectById
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VKG4HXYV.js";
|
|
22
22
|
import "./chunk-WPHL6ALY.js";
|
|
23
23
|
import "./chunk-O4BU24WZ.js";
|
|
24
24
|
import "./chunk-I42VC5KR.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAgentContexts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZPPBDWKK.js";
|
|
4
4
|
import {
|
|
5
5
|
generateRequestBody,
|
|
6
6
|
mergeReferences,
|
|
7
7
|
performFetchRequest
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-YRWNTL6W.js";
|
|
9
|
+
import "./chunk-Y3BLUPNS.js";
|
|
10
10
|
import {
|
|
11
11
|
findToolExecutor,
|
|
12
12
|
getToolResultErrorData
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QTNKHFAK.js";
|
|
14
14
|
import "./chunk-RQSOAMPJ.js";
|
|
15
15
|
import "./chunk-OOIN7HSO.js";
|
|
16
16
|
import "./chunk-KQHGZWSV.js";
|
|
@@ -19,30 +19,30 @@ import "./chunk-3LY4F7SV.js";
|
|
|
19
19
|
import "./chunk-VP4WJWKW.js";
|
|
20
20
|
import "./chunk-63W5N6P3.js";
|
|
21
21
|
import "./chunk-VF4K2QE6.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-Z2BX5TKZ.js";
|
|
23
|
+
import "./chunk-D5UOJGZU.js";
|
|
24
24
|
import "./chunk-VC6OZXO5.js";
|
|
25
25
|
import {
|
|
26
26
|
updateTokensAction
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UIYF67QX.js";
|
|
28
28
|
import "./chunk-V2J635L5.js";
|
|
29
29
|
import "./chunk-MRC4Q34M.js";
|
|
30
30
|
import "./chunk-MTU75CZ2.js";
|
|
31
31
|
import "./chunk-CWMSB67P.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-C6C43FKQ.js";
|
|
33
|
+
import "./chunk-RWO5DGXI.js";
|
|
34
34
|
import "./chunk-Z4NR32XR.js";
|
|
35
35
|
import "./chunk-M76ECQRD.js";
|
|
36
36
|
import "./chunk-WZSRQNQG.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-7HV5OHEM.js";
|
|
38
|
+
import "./chunk-WO24IT3V.js";
|
|
39
39
|
import {
|
|
40
40
|
canonicalizeToolName
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-B4KT7RN2.js";
|
|
42
|
+
import "./chunk-NAEAB62H.js";
|
|
43
43
|
import {
|
|
44
44
|
getApiEndpoint
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-OGGHETUE.js";
|
|
46
46
|
import "./chunk-PDL2AV3E.js";
|
|
47
47
|
import "./chunk-JZPBVBIY.js";
|
|
48
48
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -58,16 +58,16 @@ import "./chunk-XENYHRUE.js";
|
|
|
58
58
|
import "./chunk-DWLEOOGR.js";
|
|
59
59
|
import "./chunk-IKXL2HZ3.js";
|
|
60
60
|
import "./chunk-524BDL33.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-DPFWKRHG.js";
|
|
62
62
|
import {
|
|
63
63
|
selectCurrentServer
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-JU7J7EAV.js";
|
|
65
65
|
import "./chunk-Y5GCAMGP.js";
|
|
66
66
|
import "./chunk-KX6YBIHG.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-WVTBAALN.js";
|
|
68
68
|
import {
|
|
69
69
|
read
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-VKG4HXYV.js";
|
|
71
71
|
import "./chunk-WPHL6ALY.js";
|
|
72
72
|
import "./chunk-O4BU24WZ.js";
|
|
73
73
|
import "./chunk-I42VC5KR.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanupCliSessionForDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RWO5DGXI.js";
|
|
4
4
|
import {
|
|
5
5
|
getPrimaryDialogAgentId,
|
|
6
6
|
replacePrimaryDialogAgentId
|
|
@@ -12,13 +12,13 @@ import "./chunk-BYXBJQAS.js";
|
|
|
12
12
|
import {
|
|
13
13
|
getActiveDialogKey
|
|
14
14
|
} from "./chunk-3ASDTTEI.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-JU7J7EAV.js";
|
|
16
16
|
import "./chunk-Y5GCAMGP.js";
|
|
17
17
|
import "./chunk-KX6YBIHG.js";
|
|
18
18
|
import {
|
|
19
19
|
patch,
|
|
20
20
|
selectById
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VKG4HXYV.js";
|
|
22
22
|
import "./chunk-WPHL6ALY.js";
|
|
23
23
|
import "./chunk-O4BU24WZ.js";
|
|
24
24
|
import "./chunk-I42VC5KR.js";
|
|
@@ -86,10 +86,10 @@ import {
|
|
|
86
86
|
toggleEditorWordCount,
|
|
87
87
|
toggleEnableReadCurrentSpace,
|
|
88
88
|
toggleShowThinking
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-JU7J7EAV.js";
|
|
90
90
|
import "./chunk-Y5GCAMGP.js";
|
|
91
91
|
import "./chunk-KX6YBIHG.js";
|
|
92
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-VKG4HXYV.js";
|
|
93
93
|
import "./chunk-WPHL6ALY.js";
|
|
94
94
|
import "./chunk-O4BU24WZ.js";
|
|
95
95
|
import "./chunk-I42VC5KR.js";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readLiveDbRecordAfterTombstoneMerge
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-72PCQ5XQ.js";
|
|
4
4
|
import {
|
|
5
5
|
readDbRecord,
|
|
6
6
|
writeAgentRecord
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-3ERGZN5Y.js";
|
|
8
|
+
import "./chunk-5KXZEOB6.js";
|
|
9
9
|
import "./chunk-VHBWHNVT.js";
|
|
10
10
|
import "./chunk-KQHGZWSV.js";
|
|
11
11
|
import {
|
|
12
12
|
authRoutes
|
|
13
13
|
} from "./chunk-MRC4Q34M.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-2XFDQEXO.js";
|
|
15
15
|
import "./chunk-ZNFJWEN4.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-6TISG7CK.js";
|
|
17
17
|
import "./chunk-NCGFB7NN.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-YCXS3OPT.js";
|
|
19
19
|
import "./chunk-OPZYGHUC.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-7HV5OHEM.js";
|
|
21
|
+
import "./chunk-WO24IT3V.js";
|
|
22
|
+
import "./chunk-B4KT7RN2.js";
|
|
23
|
+
import "./chunk-NAEAB62H.js";
|
|
24
|
+
import "./chunk-OGGHETUE.js";
|
|
25
25
|
import "./chunk-PDL2AV3E.js";
|
|
26
26
|
import "./chunk-JZPBVBIY.js";
|
|
27
27
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -36,10 +36,10 @@ import "./chunk-KX6YBIHG.js";
|
|
|
36
36
|
import {
|
|
37
37
|
createSpaceKey,
|
|
38
38
|
normalizeSpaceId
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-WVTBAALN.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveFileCategory
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-VKG4HXYV.js";
|
|
43
43
|
import "./chunk-WPHL6ALY.js";
|
|
44
44
|
import "./chunk-O4BU24WZ.js";
|
|
45
45
|
import "./chunk-I42VC5KR.js";
|
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
selectIsCategoryCollapsed,
|
|
34
34
|
selectIsDialogUnread,
|
|
35
35
|
selectIsDialogUnreadFromEntity,
|
|
36
|
+
selectMemberSpacesLoaded,
|
|
36
37
|
selectMembershipStatus,
|
|
37
38
|
selectOwnedMemberSpaces,
|
|
38
39
|
selectSpaceInitialized,
|
|
@@ -50,17 +51,17 @@ import {
|
|
|
50
51
|
updateContentTitle,
|
|
51
52
|
updateSpace,
|
|
52
53
|
uploadAndAddFileToSpace
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-UIYF67QX.js";
|
|
54
55
|
import "./chunk-V2J635L5.js";
|
|
55
56
|
import "./chunk-MRC4Q34M.js";
|
|
56
57
|
import "./chunk-MTU75CZ2.js";
|
|
57
58
|
import "./chunk-CWMSB67P.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-C6C43FKQ.js";
|
|
60
|
+
import "./chunk-RWO5DGXI.js";
|
|
60
61
|
import "./chunk-Z4NR32XR.js";
|
|
61
62
|
import "./chunk-M76ECQRD.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-NAEAB62H.js";
|
|
64
|
+
import "./chunk-OGGHETUE.js";
|
|
64
65
|
import "./chunk-PDL2AV3E.js";
|
|
65
66
|
import "./chunk-JZPBVBIY.js";
|
|
66
67
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -71,11 +72,11 @@ import "./chunk-SOTZ6RDN.js";
|
|
|
71
72
|
import "./chunk-DWLEOOGR.js";
|
|
72
73
|
import "./chunk-IKXL2HZ3.js";
|
|
73
74
|
import "./chunk-524BDL33.js";
|
|
74
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-JU7J7EAV.js";
|
|
75
76
|
import "./chunk-Y5GCAMGP.js";
|
|
76
77
|
import "./chunk-KX6YBIHG.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-WVTBAALN.js";
|
|
79
|
+
import "./chunk-VKG4HXYV.js";
|
|
79
80
|
import "./chunk-WPHL6ALY.js";
|
|
80
81
|
import "./chunk-O4BU24WZ.js";
|
|
81
82
|
import "./chunk-I42VC5KR.js";
|
|
@@ -129,6 +130,7 @@ export {
|
|
|
129
130
|
selectIsCategoryCollapsed,
|
|
130
131
|
selectIsDialogUnread,
|
|
131
132
|
selectIsDialogUnreadFromEntity,
|
|
133
|
+
selectMemberSpacesLoaded,
|
|
132
134
|
selectMembershipStatus,
|
|
133
135
|
selectOwnedMemberSpaces,
|
|
134
136
|
selectSpaceInitialized,
|