@iola_adm/iola-cli 0.1.57 → 0.1.58
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/package.json +1 -1
- package/src/cli.js +11 -8
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -794,10 +794,8 @@ async function startAgentReadline() {
|
|
|
794
794
|
|
|
795
795
|
async function startAgentRawInput() {
|
|
796
796
|
const state = { history: [], buffer: "", selected: 0, slashOpen: false, running: false, renderedInputLines: 0, rawMode: true, pendingOutput: "" };
|
|
797
|
-
emitKeypressEvents(input);
|
|
798
797
|
const wasRaw = input.isRaw;
|
|
799
|
-
input
|
|
800
|
-
input.resume();
|
|
798
|
+
activateRawInput(input);
|
|
801
799
|
|
|
802
800
|
const render = () => renderAgentInput(state);
|
|
803
801
|
render();
|
|
@@ -1376,14 +1374,19 @@ function startActivityIndicator(label = "работаю") {
|
|
|
1376
1374
|
function suspendRawInputForCommand(stream) {
|
|
1377
1375
|
if (!stream.isTTY || !stream.isRaw) return () => {};
|
|
1378
1376
|
stream.setRawMode(false);
|
|
1377
|
+
stream.pause();
|
|
1379
1378
|
return () => {
|
|
1380
|
-
|
|
1381
|
-
stream.setRawMode(true);
|
|
1382
|
-
stream.resume();
|
|
1383
|
-
}
|
|
1379
|
+
activateRawInput(stream);
|
|
1384
1380
|
};
|
|
1385
1381
|
}
|
|
1386
1382
|
|
|
1383
|
+
function activateRawInput(stream) {
|
|
1384
|
+
if (!stream.isTTY) return;
|
|
1385
|
+
emitKeypressEvents(stream);
|
|
1386
|
+
stream.setRawMode(true);
|
|
1387
|
+
stream.resume();
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1387
1390
|
function flushPendingAgentOutput(state) {
|
|
1388
1391
|
const text = state.pendingOutput;
|
|
1389
1392
|
state.pendingOutput = "";
|
|
@@ -6980,8 +6983,8 @@ async function onboard(args = []) {
|
|
|
6980
6983
|
else await installBrowserRuntime();
|
|
6981
6984
|
}
|
|
6982
6985
|
if (components.includes("gosuslugi")) {
|
|
6983
|
-
await handleGosuslugi(["terms"]);
|
|
6984
6986
|
if (process.stdin.isTTY) await handleGosuslugi(["consent"]);
|
|
6987
|
+
else await handleGosuslugi(["terms"]);
|
|
6985
6988
|
console.log("Параметры подключения можно указать командой: iola gosuslugi configure --auth-url URL --token-url URL --client-id ID --scope openid");
|
|
6986
6989
|
}
|
|
6987
6990
|
if (components.includes("index")) {
|